:root {
  --ink: #13231e; --muted: #697872; --line: #dce5e0; --paper: #f4f7f4;
  --card: #fff; --green: #0b704b; --green-soft: #e8f4ed; --lime: #b9e455;
  --amber: #b76311; --amber-soft: #fff0dd;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.shell { min-height: 100vh; padding: 0 4.5vw 64px; background: radial-gradient(circle at 92% 0%, #dff0dc 0, transparent 28%), var(--paper); }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(19,35,30,.12); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--lime); font-weight: 900; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.sync-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.sync-state span { width: 8px; height: 8px; border-radius: 50%; background: #39a66f; box-shadow: 0 0 0 4px #dcefe4; }
.account { display: flex; align-items: center; gap: 18px; }
.account form { margin: 0; }
.admin-link { color: var(--ink); font-size: 12px; font-weight: 750; text-decoration: none; }
.admin-link:hover, .admin-link.active { color: var(--green); }
.logout-button { border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; }
.demo-banner { margin-top: 16px; padding: 11px 14px; border: 1px solid #e7d2a8; border-radius: 11px; background: #fff8e7; color: #755321; font-size: 12px; }
.demo-banner strong { margin-right: 5px; }
.hero { padding: 58px 0 38px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(34px, 4vw, 62px); line-height: .98; letter-spacing: -.055em; }
.lede { margin: 18px 0 0; max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.primary-button { border: 0; border-radius: 12px; padding: 13px 18px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(19,35,30,.14); }
.schedule-chip { min-width: 180px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); }
.schedule-chip span, .schedule-chip strong { display: block; }
.schedule-chip span { margin-bottom: 4px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.schedule-chip strong { font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metrics article { min-height: 138px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.84); }
.metrics article > span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.metrics strong { display: block; margin: 14px 0 9px; font-size: 35px; line-height: 1; letter-spacing: -.04em; }
.metrics strong small { color: var(--muted); font-size: 17px; }
.metrics em { color: var(--muted); font-size: 12px; font-style: normal; }
.metrics .positive { color: var(--green); }
.metrics .attention { border-color: #f1cf9f; background: var(--amber-soft); }
.history-panel { display: grid; grid-template-columns: 220px minmax(300px, 1fr) auto; align-items: end; gap: 28px; min-height: 190px; margin-bottom: 18px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: #183128; color: white; }
.history-panel .eyebrow { color: var(--lime); }
.history-panel h2 { max-width: 190px; }
.chart { height: 120px; display: flex; align-items: end; gap: clamp(5px, 1.2vw, 16px); }
.chart-day { height: 100%; flex: 1; display: flex; align-items: center; justify-content: end; flex-direction: column; gap: 8px; }
.chart-stack { width: min(28px, 78%); min-height: 8px; display: flex; overflow: hidden; border-radius: 5px 5px 2px 2px; flex-direction: column; background: rgba(255,255,255,.12); }
.chart-stack i { display: block; background: var(--lime); }
.chart-stack b { display: block; flex: 1; background: #5fbf9b; }
.chart-day small { color: #aabdb5; font-size: 9px; }
.legend { align-self: start; display: flex; flex-direction: column; gap: 9px; color: #cbd8d2; font-size: 10px; }
.legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 2px; }
.legend .print::before { background: var(--lime); }
.legend .scan::before { background: #5fbf9b; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 18px 55px rgba(39,60,51,.06); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.filters { display: flex; padding: 4px; border-radius: 11px; background: #eff3f0; }
.filters a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; text-decoration: none; }
.filters .active { background: white; color: var(--ink); font-weight: 700; box-shadow: 0 2px 8px rgba(19,35,30,.08); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 850px; border-collapse: collapse; }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid #edf1ee; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
td { font-size: 13px; }
td strong, td small { display: block; }
td small { max-width: 360px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.toner-set { display: flex; align-items: end; gap: 5px; height: 38px; }
.toner-dot { position: relative; width: 18px; height: 29px; overflow: hidden; border: 1px solid #d9e2dd; border-radius: 4px 4px 6px 6px; background: #eef2ef; }
.toner-dot i { position: absolute; right: 0; bottom: 0; left: 0; opacity: .78; }
.toner-dot small { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: white; font-size: 7px; font-weight: 900; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.toner-dot.black i { background: #26302c; } .toner-dot.cyan i { background: #1bb8d1; } .toner-dot.magenta i { background: #d0418b; } .toner-dot.yellow i { background: #efc625; }
.toner-dot.low { border-color: #d66b3d; box-shadow: 0 0 0 2px #fde2d7; }
.coverage-set { display: grid; grid-template-columns: repeat(2, minmax(54px, 1fr)); gap: 5px; min-width: 130px; }
.coverage-pill { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 7px; border: 1px solid #dfe7e3; border-radius: 7px; background: #f7faf8; font-size: 11px; font-weight: 750; }
.coverage-pill b { font-size: 9px; }
.coverage-pill.black b { color: #26302c; } .coverage-pill.cyan b { color: #0793ad; }
.coverage-pill.magenta b { color: #b62b74; } .coverage-pill.yellow b { color: #a98400; }
.coverage-empty { display: block; max-width: 150px; color: #78837d; font-size: 11px; line-height: 1.35; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; font-size: 11px; font-weight: 750; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status.online { background: var(--green-soft); color: var(--green); } .status.online::before { background: #35a16d; }
.status.warning { background: var(--amber-soft); color: var(--amber); } .status.warning::before { background: #dc8230; }
.status.offline { background: #eef0ef; color: #6b7470; } .status.offline::before { background: #8c9691; }
.empty-state { padding: 44px; color: var(--muted); text-align: center; font-size: 13px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 15%, #dff0dc 0, transparent 34%), var(--paper); }
.login-card { width: min(100%, 520px); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 25px 70px rgba(19,35,30,.12); }
.login-brand { margin-bottom: 42px; }
.login-card h1 { font-size: clamp(38px, 7vw, 58px); }
.login-form { display: grid; gap: 16px; margin-top: 28px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.login-form input { width: 100%; padding: 13px 14px; border: 1px solid #ccd8d1; border-radius: 11px; background: #fbfcfb; color: var(--ink); outline: none; }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,112,75,.12); }
.login-error { margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.brand-link { color: inherit; text-decoration: none; }
.settings-shell { padding-bottom: 80px; }
.settings-hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 58px 0 38px; }
.settings-hero h1 { max-width: 680px; }
.connection-state { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 13px; border: 1px solid #e5c59b; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #cf792a; }
.connection-state.configured { border-color: #cce4d6; background: var(--green-soft); color: var(--green); }
.connection-state.configured i { background: #35a16d; }
.settings-message { margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: 12px; font-size: 13px; }
.settings-message.success { border-color: #cce4d6; background: var(--green-soft); color: var(--green); }
.settings-message.error { border-color: #efc5ad; background: #fff0e8; color: #a44a22; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 18px; }
.settings-card, .integration-card { border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 18px 55px rgba(39,60,51,.06); }
.settings-card { padding: 28px; }
.settings-card-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.settings-card-heading .eyebrow { margin-bottom: 5px; }
.settings-card-heading > small { color: var(--muted); font-size: 10px; }
.settings-form { display: grid; gap: 20px; margin-top: 24px; }
.settings-form > label { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.settings-form input[type="url"], .settings-form input[type="password"] { width: 100%; padding: 13px 14px; border: 1px solid #ccd8d1; border-radius: 11px; background: #fbfcfb; color: var(--ink); outline: none; }
.settings-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,112,75,.12); }
.settings-form label > small { color: var(--muted); font-size: 10px; font-weight: 500; }
.settings-form .check-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 600; }
.settings-form .check-label input { width: 16px; height: 16px; accent-color: var(--green); }
.form-actions { display: flex; justify-content: end; gap: 10px; padding-top: 4px; }
.secondary-button { border: 1px solid var(--line); border-radius: 12px; padding: 12px 17px; background: white; color: var(--ink); font-weight: 750; cursor: pointer; }
.settings-aside { display: grid; align-content: start; gap: 10px; }
.info-card { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); }
.info-card > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 900; }
.info-card strong { font-size: 13px; }
.info-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.integration-card { display: grid; grid-template-columns: 1fr minmax(360px, .8fr); align-items: center; gap: 30px; margin-top: 18px; padding: 26px 28px; }
.integration-card .eyebrow { margin-bottom: 5px; }
.integration-card p:not(.eyebrow) { margin: 8px 0 0; max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.integration-card pre { overflow-x: auto; margin: 0; padding: 18px; border-radius: 14px; background: #183128; color: #d9e8e0; font-size: 11px; line-height: 1.65; }
.collector-card { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 18px 55px rgba(39,60,51,.06); }
.collector-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.collector-heading .eyebrow { margin-bottom: 5px; }
.collector-heading p:not(.eyebrow) { margin: 8px 0 0; max-width: 720px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.collector-heading code { padding: 2px 5px; border-radius: 5px; background: #eff3f0; color: var(--green); }
.secondary-button:disabled { opacity: .48; cursor: not-allowed; }
.collector-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin-top: 24px; }
.collector-form label { display: grid; gap: 8px; color: var(--ink); font-size: 11px; font-weight: 800; }
.collector-form select, .collector-form input { width: 100%; padding: 12px 13px; border: 1px solid #ccd8d1; border-radius: 11px; background: #fbfcfb; color: var(--ink); outline: none; }
.collector-form select { padding-right: 36px; }
.collector-form select:focus, .collector-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,112,75,.12); }
.collector-form select:disabled { color: #9aa59f; background: #f1f4f2; }
.collector-summary { display: grid; grid-template-columns: 150px minmax(180px, .7fr) 1fr auto; align-items: center; gap: 18px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f1f4f2; }
.collector-test-form { margin: 0; }
.collector-summary > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.collector-summary strong { font-size: 13px; }
.collector-summary small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.collector-summary.selected { background: var(--green-soft); }
.collector-summary.selected > span { color: var(--green); }
.collector-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px; border: 1px dashed #cad5cf; border-radius: 14px; background: #f8faf8; }
.collector-empty strong { font-size: 13px; }
.collector-empty span { color: var(--muted); font-size: 11px; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } .hero { align-items: start; flex-direction: column; } .history-panel { grid-template-columns: 1fr; align-items: start; } .history-panel h2 { max-width: none; } .legend { flex-direction: row; } }
@media (max-width: 900px) { .settings-grid, .integration-card { grid-template-columns: 1fr; } .collector-form { grid-template-columns: 1fr 1fr; } .collector-form .primary-button { min-height: 44px; } }
@media (max-width: 560px) { .shell { padding: 0 18px 40px; } .topbar { height: 72px; } .sync-state { display: none; } .account { gap: 12px; } .hero, .settings-hero { padding-top: 38px; } .settings-hero { align-items: start; flex-direction: column; } .metrics { grid-template-columns: 1fr; } .metrics article { min-height: 120px; } .panel-heading { align-items: start; flex-direction: column; } .history-panel { padding: 20px 16px; } .chart { gap: 3px; } .chart-day small { transform: rotate(-45deg); } .login-card { padding: 28px 22px; } .settings-card, .collector-card { padding: 22px 18px; } .settings-card-heading, .collector-heading { align-items: start; flex-direction: column; } .form-actions { align-items: stretch; flex-direction: column; } .integration-card { padding: 22px 18px; } .collector-form { grid-template-columns: 1fr; } .collector-summary { grid-template-columns: 1fr; gap: 5px; } .collector-summary small { white-space: normal; } .collector-empty { align-items: start; flex-direction: column; } }
