:root {
  --ink: #18201d;
  --muted: #77817d;
  --line: #e4e8e4;
  --paper: #f7f8f5;
  --white: #ffffff;
  --green: #2f765b;
  --green-soft: #e9f3ed;
  --amber: #a16a19;
  --amber-soft: #fff3dc;
  --red: #b54c45;
  --red-soft: #fbe9e7;
  --shadow: 0 18px 50px rgba(31, 54, 44, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
.auth-locked .app-shell { display: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.auth-card { width: min(430px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.auth-brand { color: var(--ink); margin-bottom: 78px; }
.auth-card h1 { font-size: 34px; margin-bottom: 12px; }
.auth-copy { color: var(--muted); line-height: 1.6; font-size: 14px; margin-bottom: 24px; }
.auth-card label { display: grid; gap: 8px; color: #53605a; font-size: 12px; font-weight: 750; }
.auth-card input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: var(--ink); outline-color: var(--green); }
.auth-card input:disabled { background: #f1f3f1; cursor: not-allowed; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.signout-button { color: var(--muted); }
.signout-button:hover { color: var(--ink); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { background: #1f302a; color: #eef5f0; padding: 30px 24px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #c3e0cd; color: #1f302a; font-weight: 800; }
.sidebar-copy { margin-top: 98px; max-width: 165px; }
.sidebar-copy p { color: #b5c6bc; font-size: 14px; line-height: 1.65; }
.sidebar-foot { margin-top: auto; display: flex; gap: 9px; align-items: center; color: #b5c6bc; font-size: 12px; }
.pulse { width: 8px; height: 8px; background: #a7dfbc; border-radius: 50%; box-shadow: 0 0 0 5px rgba(167, 223, 188, .13); }
.main-content { max-width: 1320px; width: 100%; padding: 48px clamp(24px, 5vw, 72px) 70px; margin: 0 auto; }
.topbar, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.topbar { margin-bottom: 40px; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.055em; line-height: 1; margin: 10px 0 12px; }
h2 { font-size: 22px; letter-spacing: -0.035em; margin: 7px 0 0; }
.subhead { color: var(--muted); font-size: 15px; margin: 0; }
.button { border: 0; border-radius: 11px; padding: 12px 16px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #f9fffb; background: var(--green); box-shadow: 0 8px 18px rgba(47, 118, 91, .2); }
.button.primary span { font-size: 18px; margin-left: 7px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 54px; }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 126px; display: flex; flex-direction: column; }
.summary-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.summary-card strong { font-size: 35px; letter-spacing: -0.06em; line-height: 1; margin: 17px 0 9px; }
.summary-note { color: var(--muted); font-size: 12px; }
.good-note { color: var(--green); }.warning-note { color: var(--amber); }
.text-button { background: transparent; border: 0; color: var(--green); font-size: 13px; font-weight: 750; padding: 8px 0; }
.text-button span { font-size: 16px; margin-left: 5px; }
.section-heading { margin-bottom: 16px; }.section-actions { display: flex; align-items: center; gap: 18px; }
.site-list { display: grid; gap: 12px; }
.site-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.site-card:hover { box-shadow: var(--shadow); }
.site-row { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(140px, .75fr) minmax(140px, .8fr) auto; gap: 22px; align-items: center; }
.site-main { min-width: 0; }.site-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }.site-copy { min-width: 0; }.compact-thumb { width: 72px; height: 48px; flex: 0 0 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eef2ee; color: var(--green); text-decoration: none; }.compact-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }.compact-placeholder { font-size: 22px; }.site-name { font-weight: 800; font-size: 16px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.site-url { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-link { color: var(--red); font-size: 12px; font-weight: 800; text-decoration: none; }.evidence-link:hover { text-decoration: underline; }
.status-cell, .meta-cell { display: flex; flex-direction: column; gap: 7px; }.cell-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }.cell-value { font-size: 13px; font-weight: 700; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 6px 9px; font-size: 11px; font-weight: 800; }.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status-online { background: var(--green-soft); color: var(--green); }.status-attention { background: var(--red-soft); color: var(--red); }.status-slow { background: var(--amber-soft); color: var(--amber); }.status-pending { background: #eef1ef; color: var(--muted); }
.card-actions { display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }.icon-button, .expand-button, .schedule-select { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 9px; padding: 8px 10px; font-size: 12px; }.icon-button:hover, .expand-button:hover, .schedule-select:hover { border-color: #adc7b7; }.icon-button { color: var(--green); font-weight: 800; }.expand-button { color: var(--green); font-weight: 800; }.expand-button span { margin-left: 6px; font-size: 14px; }
.site-details { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 18px; }.evidence-panel, .detail-panel { background: #fbfcfa; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }.evidence-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.evidence-heading h3, .detail-panel h3 { font-size: 16px; letter-spacing: -.025em; margin: 6px 0 0; }.evidence-frame { min-height: 180px; border-radius: 9px; overflow: hidden; background: #eef2ee; display: grid; place-items: center; }.evidence-image { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: top; }.evidence-placeholder { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }.evidence-placeholder strong { color: var(--ink); font-size: 13px; }.placeholder-icon { color: var(--green); font-size: 30px; }.detail-panel dl { margin: 22px 0 0; display: grid; gap: 13px; }.detail-panel dl div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }.detail-panel dt { color: var(--muted); font-size: 11px; }.detail-panel dd { margin: 0; text-align: right; font-size: 12px; font-weight: 750; max-width: 60%; overflow-wrap: anywhere; }
.site-details[hidden] { display: none; }
.agent-panel { grid-column: 1 / -1; background: #f1f7f2; border: 1px solid #d7e7db; border-radius: 12px; padding: 16px; }.agent-panel h3 { font-size: 16px; letter-spacing: -.025em; margin: 6px 0 6px; }.agent-panel p { color: var(--muted); line-height: 1.5; font-size: 12px; margin: 0; }.label-note { color: var(--muted); font-size: 10px; font-weight: 600; margin-left: 4px; }.field-help { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 9px 0 0; }
.empty-state { border: 1px dashed #bdcfc4; border-radius: 18px; background: #fbfdfb; padding: 60px 24px; text-align: center; }.empty-icon { color: var(--green); font-size: 44px; line-height: 1; margin-bottom: 14px; }.empty-state h2 { margin-bottom: 10px; }.empty-state p { margin: 0 auto 22px; color: var(--muted); max-width: 420px; line-height: 1.6; font-size: 14px; }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 22px; right: 22px; max-width: 360px; background: #20342b; color: white; border-radius: 10px; padding: 12px 15px; font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: all .2s ease; }.toast.visible { opacity: 1; transform: translateY(0); }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(430px, calc(100vw - 30px)); box-shadow: 0 30px 100px rgba(20, 40, 29, .25); }.dialog-card { position: relative; padding: 30px; }.dialog-card::backdrop { background: rgba(24, 32, 29, .35); }.dialog-copy { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 24px; }.dialog-card h2 { font-size: 28px; margin: 9px 0 10px; }.dialog-card label { display: grid; gap: 8px; color: #53605a; font-size: 12px; font-weight: 750; margin-top: 16px; }.dialog-card input, .dialog-card select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: var(--ink); outline-color: var(--green); }.close-button { position: absolute; top: 18px; right: 20px; border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }.full-width { width: 100%; margin-top: 22px; }.form-error { color: var(--red); min-height: 16px; font-size: 12px; margin: 14px 0 0; }
@media (max-width: 850px) { .app-shell { display: block; }.sidebar { min-height: auto; padding: 20px 24px; }.sidebar-copy { display: none; }.sidebar-foot { margin-top: 22px; }.main-content { padding-top: 32px; }.summary-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 38px; }.site-row { grid-template-columns: 1fr 1fr; }.card-actions { justify-content: flex-start; } .site-details { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .topbar, .section-heading { align-items: flex-start; flex-direction: column; }.topbar { gap: 24px; }.summary-grid { gap: 9px; }.summary-card { min-height: 112px; padding: 15px; }.summary-card strong { margin-top: 13px; }.site-card { padding: 18px; }.site-row { grid-template-columns: 1fr; gap: 16px; }.card-actions { justify-content: space-between; }.schedule-select { flex: 1; }.main-content { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 520px) { .topbar-actions { width: 100%; justify-content: space-between; }.auth-card { padding: 26px; }.auth-brand { margin-bottom: 56px; } }
