:root { color-scheme: light; font-family: system-ui, sans-serif; color: #183029; background: #f4f7f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; }
main { width: min(100%, 560px); padding: clamp(24px, 6vw, 48px); background: #fff; border: 1px solid #dbe5df; border-radius: 20px; }
.eyebrow { color: #306b52; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.04em; margin: 28px 0 20px; }
p { line-height: 1.7; }
[hidden] { display: none !important; }
.activation h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 20px 0 12px; }
h2 { font-size: 1.4rem; line-height: 1.3; }
label { display: block; font-size: .9rem; font-weight: 650; margin-top: 20px; margin-bottom: 8px; }
input { width: 100%; min-height: 46px; border: 1px solid #bdcfc4; border-radius: 8px; padding: 11px 12px; font: inherit; color: inherit; background: #fff; }
input:focus { outline: 3px solid #c8e4d4; border-color: #306b52; }
input[aria-invalid] { border-color: #b52e2e; }
small { display: block; line-height: 1.5; margin-top: 7px; color: #53675e; }
.field-error { color: #a62828; }
.field-error:empty { display: none; }
button, .button { display: inline-block; width: 100%; border: 1px solid #21563e; border-radius: 8px; padding: 13px 16px; margin-top: 22px; background: #21563e; color: #fff; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
button:focus-visible, .button:focus-visible { outline: 3px solid #90bfa5; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
.secondary { background: #fff; color: #21563e; margin-top: 12px; }
#notice { padding: 12px 14px; background: #fff3ee; border: 1px solid #eed2c5; border-radius: 8px; color: #8a2e18; font-size: .95rem; }
.muted { font-size: .85rem; color: #53675e; }
select { width: 100%; min-height: 46px; padding: 10px; font: inherit; color: inherit; background: #fff; border: 1px solid #bdcfc4; border-radius: 8px; }
select:focus-visible { outline: 3px solid #c8e4d4; }
.dashboard { width: min(100%, 1080px); min-width: 0; }
.dashboard h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 14px 0; }
.dashboard h2 { font-size: 1.2rem; }
.dashboard-header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.compact { width: auto; margin-top: 0; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: end; }
.filter-grid > button { margin-bottom: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.metric { padding: 18px; border: 1px solid #dbe5df; border-radius: 12px; background: #f4f7f5; }
.metric h2 { font-size: .9rem; margin: 0; }
.metric p { font-size: 2rem; font-weight: 750; margin: 5px 0 0; }
.chart { min-height: 100px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-bar { fill: #306b52; }
.chart-label { fill: #53675e; font: 12px system-ui, sans-serif; }
.table-scroll { overflow-x: auto; min-width: 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 14px 8px; border-bottom: 1px solid #dbe5df; vertical-align: top; }
td { overflow-wrap: anywhere; }
.card-link { width: auto; text-align: left; background: transparent; color: #21563e; border: 0; text-decoration: underline; padding: 0; margin: 0; }
.history { padding-left: 24px; }
.history li { padding: 12px 0; border-bottom: 1px solid #dbe5df; overflow-wrap: anywhere; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.business-settings { padding-left: 0; list-style: none; }
.business-settings li { border-top: 1px solid #dbe5df; padding: 12px 0; overflow-wrap: anywhere; }
.admin-tabs { margin: 20px 0; }
.admin-tabs button { width: auto; margin: 0; }
.confirmation { padding: 20px; background: #fff3ee; border: 1px solid #eed2c5; border-radius: 12px; }
dl { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr); gap: 10px 20px; }
dt { font-weight: 650; } dd { margin: 0; overflow-wrap: anywhere; }
#panel-cards table, #panel-batches table, #panel-logs table { min-width: 680px; }
#cards .compact { white-space: nowrap; }
.table-hint { display: none; }
@media (max-width: 520px) { .table-hint { display: block; } }
@media (max-width: 520px) { .filter-grid { grid-template-columns: minmax(0, 1fr); } .metric { padding: 12px; } .dashboard-header { align-items: flex-start; } }
