:root { color-scheme: light; --ink: #193343; --muted: #526775; --accent: #147c99; --line: #c9dce3; --surface: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f2f8fa; color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.admin-shell { width: min(100% - 32px, 940px); margin: 0 auto; padding: 28px 0 100px; }
.admin-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
h1 { font-size: clamp(28px, 5vw, 42px); margin: 2px 0 0; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 23px; }
h3 { margin: 26px 0 12px; font-size: 18px; }
p { margin: 0; color: var(--muted); }
.intro { margin: 12px 0 24px; max-width: 620px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.section-nav a { padding: 9px 13px; border-radius: 100px; background: white; color: var(--ink); text-decoration: none; border: 1px solid var(--line); font-weight: 650; }
.section-nav a:last-child { margin-left: auto; color: var(--accent); }
.panel { background: var(--surface); border: 1px solid #d9e7ec; border-radius: 20px; padding: clamp(20px, 4vw, 32px); margin-bottom: 18px; box-shadow: 0 4px 18px #19334308; scroll-margin-top: 16px; }
.section-heading { display: flex; gap: 16px; align-items: start; margin-bottom: 25px; }
.section-heading > span { display: grid; place-items: center; background: #e3f3f7; color: var(--accent); border-radius: 12px; width: 38px; height: 38px; flex: 0 0 auto; font-weight: 800; }
.section-heading p { margin-top: 4px; }
.fields { display: grid; gap: 16px; }
.two-columns, .button-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 650; font-size: 14px; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { resize:vertical; }
input[type="color"] { padding: 3px; width: 100%; }
.color-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 14px; }
legend { padding: 0 7px; font-weight: 750; }
.button-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-actions { display: flex; gap: 8px; margin-top: 15px; }
.row-actions button, .secondary, .link-button { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 9px 13px; font-weight: 650; }
.row-actions [data-remove] { margin-left: auto; color: #a02138; }
.secondary { margin-top: 6px; }
.hint { margin-top: 12px; font-size: 13px; }
.state-row { margin-bottom: 18px; }
.save-bar { position: sticky; bottom: 10px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #193343; color: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: 0 8px 30px #19334355; }
.save-bar span { font-size: 14px; }
.primary { background: var(--accent); color: #fff; border: 0; border-radius: 11px; padding: 12px 20px; font-weight: 750; min-height: 46px; }
.save-bar .primary { background: #fff; color: var(--ink); }
.notice, .error-panel { padding: 14px 18px; margin-bottom: 20px; border-radius: 12px; }
.notice { color: #125e38; background: #e5f7ed; }
.error-panel { color: #9d2133; background: #fff0f2; }
.error-panel ul { margin: 8px 0 0; padding-left: 20px; }
.error { color: #9d2133; }
.login-panel { max-width: 460px; }
.login-panel p { margin: 8px 0 18px; }
.login-panel .primary { margin-top: 18px; }
@media (max-width: 700px) { .button-fields, .color-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .section-nav a:last-child { margin-left: 0; } }
@media (max-width: 520px) { .two-columns, .button-fields { grid-template-columns: 1fr; } .color-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .save-bar { flex-direction: column; align-items: stretch; } .save-bar .primary { width: 100%; } }

/* Editor with a persistent view of the donor screen. */
.admin-shell { width: min(100% - 40px, 1320px); }
.intro { max-width: 820px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 410px); gap: 26px; align-items: start; }
.editor-column { min-width: 0; }
.section-nav { margin-bottom: 16px; }
.section-nav a { font-size: 14px; background: #e5f1f5; border-color: transparent; }
.section-nav a:last-child { margin-left: 0; }
.section-nav a:hover, .section-nav a:focus-visible { background: #d2eaf2; }
.editor-section { padding: 0; overflow: hidden; }
.editor-section > summary { list-style: none; cursor: pointer; margin: 0; padding: 20px 22px; align-items: center; }
.editor-section > summary::-webkit-details-marker { display: none; }
.editor-section > summary::after { content: '⌄'; margin-left: auto; font-size: 25px; line-height: 1; color: var(--accent); transition: transform .16s ease; }
.editor-section[open] > summary::after { transform: rotate(180deg); }
.editor-section > summary .section-heading { margin: 0; }
.editor-section > summary h2 { font-size: 19px; }
.editor-section > summary p { font-size: 13px; }
.editor-section > summary + .fields, .editor-section > summary + .button-list, .editor-section > summary + .state-row { margin-top: 0; }
.editor-section > .fields, .editor-section > .button-list, .editor-section > .state-row, .editor-section > .secondary, .editor-section > .hint, .editor-section > h3, .editor-section > .currency-editor-controls { margin-left: 22px; margin-right: 22px; }
.editor-section > .fields, .editor-section > .button-list { margin-bottom: 22px; }
.currency-editor-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.currency-editor-note { margin-top: 0; }
.editor-section > .secondary { margin-bottom: 8px; }
.editor-section > .hint { margin-bottom: 22px; }
.editor-section > h3 { margin-top: 8px; }
.editor-section > .color-fields { margin-bottom: 22px; }
.button-row { padding: 13px 14px; margin-bottom: 12px; }
.button-row legend { font-size: 14px; }
.button-main-fields { grid-template-columns: minmax(100px, .6fr) minmax(0, 1.4fr); }
.button-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.button-options { margin-top: 12px; }
.button-options > summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 700; }
.row-actions { margin-top: 12px; }
.row-actions button { padding: 7px 10px; font-size: 13px; }
.state-row { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 10px; }
.state-row > summary { list-style: none; cursor: pointer; padding: 13px 15px; font-weight: 700; }
.state-row > summary::-webkit-details-marker { display: none; }
.state-row > summary::after { content: '+'; float: right; color: var(--accent); }
.state-row[open] > summary::after { content: '−'; }
.state-row > .fields { padding: 0 15px 16px; }
.save-bar { bottom: 12px; }
.preview-panel { position: sticky; top: 16px; border: 1px solid #d9e7ec; border-radius: 22px; background: #fff; padding: 18px; box-shadow: 0 12px 40px #19334312; }
.preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.preview-heading h2 { font-size: 21px; margin-top: 2px; }
.preview-heading p { font-size: 13px; margin-top: 3px; }
.preview-heading a { white-space: nowrap; color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; margin-top: 5px; }
.preview-stage-label { margin-bottom: 14px; }
.device-frame { width: 100%; height: min(68vh, 690px); min-height: 500px; border: 7px solid #193343; border-radius: 30px; overflow: hidden; box-shadow: 0 8px 28px #19334325; background: #f2f8fa; }
.device-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #f2f8fa; }
.preview-note { margin-top: 12px; text-align: center; font-size: 12px; }
@media (max-width: 1050px) {
    .editor-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; }
    .color-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .admin-shell { width: min(100% - 28px, 650px); }
    .editor-layout { display: flex; flex-direction: column-reverse; }
    .preview-panel, .editor-column { width: 100%; }
    .preview-panel { position: static; }
    .device-frame { width: min(100%, 390px); height: 540px; min-height: 0; margin: auto; }
    .section-nav { margin-top: 6px; }
}
@media (max-width: 520px) {
    .currency-editor-controls { grid-template-columns: 1fr; }
    .button-main-fields { grid-template-columns: 1fr 1.4fr; }
    .button-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preview-heading { flex-wrap: wrap; }
    .device-frame { height: 520px; }
}

.account-actions { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.admin-locked .admin-shell { width: min(100% - 32px, 480px); padding-top: clamp(60px, 12vh, 144px); }
.admin-locked .intro { margin-bottom: 28px; }
.admin-locked .login-panel { max-width: none; }
.admin-locked .login-panel form { display: grid; gap: 16px; }
.admin-locked .login-remember { flex-direction: row; align-items: center; gap: 10px; }
.admin-locked .login-remember input { width: 18px; min-height: 18px; height: 18px; padding: 0; }
.admin-locked .login-panel .primary { margin-top: 4px; width: 100%; }
.jars-panel { padding: 22px; }
.jars-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.jars-heading > span { color: var(--muted); font-size: 14px; }
.jar-list { display: grid; gap: 14px; }
.jar-organization { display: grid; gap: 8px; }
.jar-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jar-link { display: inline-flex; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.jar-link.is-selected { background: #e3f3f7; border-color: var(--accent); color: var(--accent); }
.new-jar { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.new-jar > summary { color: var(--accent); cursor: pointer; font-weight: 750; }
.new-jar-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; margin-top: 16px; }
.new-jar-form .primary { justify-self: start; }
@media (max-width: 700px) { .new-jar-form { grid-template-columns: 1fr; } .admin-header { flex-wrap: wrap; } }

.admin-unlocked .admin-shell { width: min(100% - 40px, 1440px); }
.admin-unlocked .admin-header { padding: 4px 0 24px; border-bottom: 1px solid var(--line); }
.admin-unlocked .admin-header h1 { font-size: clamp(25px, 3vw, 34px); }
.admin-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; padding-top: 26px; }
.admin-sidebar { position: sticky; top: 20px; background: #fff; border: 1px solid #d9e7ec; border-radius: 20px; padding: 18px 12px; box-shadow: 0 4px 18px #19334308; }
.sidebar-label { padding: 0 12px 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.admin-menu { display: grid; gap: 4px; }
.admin-menu a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14px; }
.admin-menu a:hover, .admin-menu a:focus-visible { background: #eaf4f7; }
.admin-menu a.is-current { background: #dff1f5; color: #075d76; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-foot { border-top: 1px solid var(--line); margin: 18px 10px 0; padding-top: 14px; display: grid; gap: 3px; font-size: 13px; overflow-wrap: anywhere; }
.sidebar-foot span { color: var(--muted); }
.admin-content { min-width: 0; }
.page-heading { margin: 2px 0 22px; }
.page-heading h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; margin: 4px 0 5px; }
.page-heading p { max-width: 680px; }
.admin-content > .panel { margin-bottom: 20px; }
.admin-content .panel h3:first-child { margin-top: 0; }
.panel-copy { margin: 6px 0 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.summary-card { background: #fff; border: 1px solid #d9e7ec; border-radius: 18px; padding: 22px; display: grid; gap: 8px; box-shadow: 0 4px 18px #19334308; }
.summary-card span { color: var(--muted); font-size: 14px; }
.summary-card strong { font-size: 31px; line-height: 1; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.action-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; display: grid; gap: 6px; color: var(--ink); }
.action-card:hover, .action-card:focus-visible { border-color: var(--accent); background: #f5fbfd; }
.action-card span { color: var(--muted); font-size: 13px; }
.overview-list { margin-top: 15px; }
.overview-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.overview-list > div:last-child { border: 0; }
.overview-list span, .panel-heading span { color: var(--muted); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.jar-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.jar-card { border: 1px solid var(--line); border-radius: 15px; padding: 18px; min-width: 0; }
.jar-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jar-card p { font-size: 12px; overflow-wrap: anywhere; margin: 10px 0 16px; }
.status-pill { background: #e5f7ed; color: #125e38; padding: 4px 9px; border-radius: 100px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-pill.is-inactive { background: #edf0f2; color: #526775; }
.jar-actions { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 700; }
.jar-actions a { color: var(--accent); }
.settings-form { display: flex; align-items: end; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.settings-form:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-form label { flex: 1; min-width: 0; }
.settings-form .primary { white-space: nowrap; }
.account-form { display: grid; gap: 16px; max-width: 500px; margin-top: 18px; }
.account-form .primary { justify-self: start; }
.config-list { margin: 10px 0 0; }
.config-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.config-list div:last-child { border: 0; }
.config-list dt { color: var(--muted); }
.config-list dd { margin: 0; font-weight: 700; text-align: right; }
.jar-picker { padding: 18px 22px; }
.jar-picker label { max-width: 520px; }
.admin-content .editor-layout { gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(310px, 36%); }
@media (max-width: 1180px) { .admin-workspace { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; } .admin-content .editor-layout { grid-template-columns: 1fr; } .preview-panel { position: static; } .device-frame { width: min(100%, 390px); margin: auto; } }
@media (max-width: 850px) { .admin-workspace { display: block; } .admin-sidebar { position: static; margin-bottom: 24px; padding: 10px; } .sidebar-label, .sidebar-foot { display: none; } .admin-menu { display: flex; overflow-x: auto; gap: 5px; } .admin-menu a { white-space: nowrap; } .admin-menu a.is-current { box-shadow: inset 0 -3px 0 var(--accent); } }
@media (max-width: 650px) { .admin-unlocked .admin-shell { width: min(100% - 28px, 620px); } .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .summary-card { padding: 14px; } .summary-card strong { font-size: 25px; } .quick-actions, .jar-cards { grid-template-columns: 1fr; } .settings-form { display: grid; } .settings-form .primary { justify-self: start; } .admin-content .editor-layout { display: flex; flex-direction: column-reverse; } }

/* Platform administration */
details.panel > summary { cursor:pointer; padding:4px 0; line-height:1.6; }
details.panel[open] > summary { margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.fields > button.primary { justify-self:start; align-self:end; }
.fields input, .fields select { min-width:0; }
.table-scroll { overflow:auto; max-width:100%; }
.table-scroll table { width:100%; border-collapse:collapse; text-align:left; font-size:14px; }
.table-scroll th { color:var(--muted); font-size:12px; letter-spacing:.04em; background:#f5f9fb; }
.table-scroll th,.table-scroll td { padding:15px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.table-scroll td small { display:block; color:var(--muted); margin-top:6px; overflow-wrap:anywhere; }
.table-scroll tr:last-child td { border-bottom:0; }
.nowrap { white-space:nowrap; }
.report-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:12px; align-items:end; }
.pagination { display:flex; justify-content:space-between; gap:16px; margin-top:20px; font-size:14px; }
.terminal-info { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:18px; border-top:1px solid var(--line); padding-top:16px; margin-top:20px; }
.terminal-info p { font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.terminal-info form { display:grid; gap:8px; }
.pairing-notice { background:#e6f5f9; border-color:#9dcbd8; }
.pairing-notice code { display:inline-block; padding:16px 0; font-size:clamp(22px,4vw,36px); letter-spacing:.12em; font-weight:800; }
a.primary { display:inline-block; text-decoration:none; font-size:14px; }
@media(max-width:1100px) { .report-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .report-filters { grid-template-columns:1fr; } .summary-grid { grid-template-columns:1fr; } details.panel > summary { font-size:14px; } .table-scroll { margin:0 -8px; } }

.menu-group-label { margin:10px 12px 4px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.status-pill.is-warning { background:#fff0d7; color:#744500; }
@media(max-width:850px) { .menu-group-label { display:none; } }
.profile-metadata { margin-top:20px; padding-top:14px; border-top:1px solid var(--line); }


/* Clear navigation, record lists and actionable status. */
.menu-toggle { display:none; }
.summary-card { text-decoration:none; color:var(--ink); }
.summary-card small, .record-meta, .attention-row small { color:var(--muted); font-size:13px; }
.summary-card[href]:hover { border-color:var(--accent); }
.list-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.list-toolbar > span { color:var(--muted); font-size:14px; }
.record-card { scroll-margin-top:20px; }
.connection-create-actions { display:flex; flex-wrap:wrap; gap:8px; }
.fleet-device-health { display:flex; flex-wrap:wrap; gap:6px 14px; margin:10px 0 4px; color:var(--muted); font-size:12px; }
.fleet-device-health strong { color:var(--text); }
.record-card > summary { position:relative; padding-right:25px !important; list-style:none; }
.record-card > summary::-webkit-details-marker { display:none; }
.record-card > summary::after { content:'+'; position:absolute; right:0; top:0; font-size:24px; color:var(--accent); }
.record-card[open] > summary::after { content:'−'; }
.record-card > summary strong { font-size:17px; }
.record-meta { display:block; margin:3px 0 8px; }
.record-help { margin-bottom:20px; padding:12px 15px; border-left:3px solid var(--accent); background:#f3f8fa; }
.record-card#create-record { border-style:dashed; margin-top:22px; }
.attention-row { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 0; border-bottom:1px solid var(--line); }
.attention-row:last-child { border-bottom:0; padding-bottom:0; }
.attention-row small { display:block; margin-top:4px; }
.attention-row p { margin:8px 0 0; max-width:580px; font-size:14px; }
a.secondary { text-decoration:none; display:inline-block; text-align:center; }
.attention-row > a { flex-shrink:0; }
.back-link { display:inline-block; margin-bottom:18px; font-weight:650; color:var(--accent); }
.jar-cards + .record-card { margin-top:22px; }
.jar-cards > .panel { min-width:0; }
.jar-cards h3 { overflow-wrap:anywhere; }
.report-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
.filter-actions { display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
.filter-actions a { font-size:13px; }
.field-error { color:#a32030; }
[aria-invalid="true"] { border-color:#a32030; }
button:disabled { opacity:.55; cursor:not-allowed; }
button, input, select { scroll-margin-top:24px; }
:focus-visible { outline:3px solid #147b9b; outline-offset:3px; }
.table-scroll .secondary { font-size:13px; }
@media (max-width:850px) {
    .menu-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; gap:14px; padding:12px; border:0; background:transparent; color:var(--ink); font-weight:750; text-align:left; }
    .menu-toggle span:first-child { margin-left:auto; color:var(--muted); font-size:13px; }
    .admin-menu { display:grid; overflow:visible; grid-template-columns:1fr 1fr; }
    .admin-sidebar[data-navigation-ready]:has(.menu-toggle[aria-expanded="false"]) .admin-menu { display:none; }
    .admin-menu a { white-space:normal; min-height:44px; }
    .menu-group-label { display:block; grid-column:1/-1; }
    .admin-menu a.is-current { box-shadow:inset 3px 0 0 var(--accent); }
}
@media (max-width:650px) {
    .attention-row { display:block; }
    .attention-row > a { margin-top:15px; }
    .report-filters { grid-template-columns:1fr; }
    .panel-heading { align-items:flex-start; flex-wrap:wrap; }
    .save-bar { flex-wrap:wrap; gap:10px; }
    .save-bar button { width:100%; }
    .record-card > summary .status-pill { display:inline-block; white-space:normal; margin-top:5px; }
    .account-actions { width:100%; justify-content:space-between; }
}

.skip-link { position:fixed; top:8px; left:8px; transform:translateY(-150%); z-index:20; background:white; color:var(--ink); border:2px solid var(--accent); padding:12px; border-radius:8px; }
.skip-link:focus { transform:none; }
.mobile-preview-link { display:none; }
.logo-path > summary { cursor:pointer; color:var(--accent); font-size:14px; }
.logo-path label { margin-top:12px; }
@media(max-width:650px) {
    .admin-content .editor-layout { flex-direction:column; }
    .mobile-preview-link { display:inline-block; margin:0 0 18px; color:var(--accent); font-weight:650; }
    .preview-panel { width:100%; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

.table-hint { display:none; }
@media(max-width:650px) { .table-hint { display:block; font-size:12px; margin:8px 0; } }

.status-pill.is-busy { background:#e3f2fa; color:#155775; }

.preview-controls { display:grid; gap:12px; margin-bottom:16px; }
.preview-viewport { position:relative; width:100%; height:calc((var(--preview-height, 844px) + 14px) * var(--preview-scale, 1)); }
.preview-viewport > .device-frame { position:absolute; left:50%; top:0; width:calc(var(--preview-width, 390px) + 14px); height:calc(var(--preview-height, 844px) + 14px); min-height:0; margin:0; transform:translateX(-50%) scale(var(--preview-scale, 1)); transform-origin:top center; }
@media (max-width:650px) { .save-bar { bottom:max(10px, env(safe-area-inset-bottom)); } }

/* Shared institution control center. */
.control-center { --ink:#182c3a; --muted:#536574; --accent:#08695f; --line:#dce4e8; background:#f4f6f8; }
.control-center .admin-header { align-items:center; }
.control-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand-mark { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border-radius:12px; background:#08695f; color:#fff; font-size:26px; font-weight:800; }
.control-center .admin-header h1 { font-size:16px; font-weight:600; letter-spacing:0; }
.control-center .admin-header .eyebrow { font-size:12px; letter-spacing:.13em; }
.control-center .account-actions { flex-wrap:wrap; }
.environment-badge { padding:5px 9px; border:1px solid #e7d7a4; border-radius:6px; color:#75530b; background:#fff8e6; font-size:11px; font-weight:750; letter-spacing:.04em; }
.account-name { font-size:14px; font-weight:600; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
.control-center .admin-workspace { gap:24px; }
.control-center .admin-sidebar { background:#142b35; border-color:#142b35; border-radius:14px; color:#fff; box-shadow:none; }
.control-center .admin-sidebar .sidebar-label, .control-center .menu-group-label { color:#b1c6ce; font-size:10px; letter-spacing:.08em; }
.control-center .admin-menu a { display:flex; align-items:center; gap:10px; color:#e0eaed; font-size:13px; border-radius:8px; min-height:44px; }
.control-center .admin-menu a:hover { background:#25424c; color:#fff; }
.control-center .admin-menu a.is-current { background:#24534f; color:#fff; box-shadow:inset 3px 0 0 #78c5b9; }
.nav-marker { font-size:10px; font-weight:600; color:#a2bfc8; font-variant-numeric:tabular-nums; }
.control-center .sidebar-foot { border-color:#3b515a; }
.control-center .sidebar-foot span { color:#b1c6ce; }
.control-center .panel, .control-center .preview-panel { border-color:var(--line); border-radius:14px; box-shadow:0 2px 8px #182c3a04; }
.control-center .page-heading h2 { font-size:clamp(25px,3vw,32px); letter-spacing:-.035em; }
.control-center .summary-grid { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.control-center .summary-card { border-radius:12px; border-top:3px solid #a4c8c3; box-shadow:none; }
.control-center .summary-card strong { font-variant-numeric:tabular-nums; color:var(--ink); font-size:32px; }
.control-center .summary-card small { line-height:1.5; }
.control-center .panel-heading h3 { margin:4px 0 0; }
.control-center .panel-heading > span { font-size:12px; }
.control-center .panel-heading a, .fleet-card > a, .readiness-grid a { color:var(--accent); font-size:13px; font-weight:650; text-decoration:none; }
.control-center .panel-heading a:hover, .fleet-card > a:hover, .readiness-grid a:hover { text-decoration:underline; }
.fleet-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.fleet-card { border:1px solid var(--line); border-radius:12px; padding:17px; min-width:0; background:#fafcfc; }
.fleet-card-heading { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.device-mark { color:var(--accent); font-size:22px; }
.fleet-card .status-pill { font-size:10px; white-space:normal; }
.fleet-card h4 { font-size:16px; margin:12px 0 2px; overflow-wrap:anywhere; }
.fleet-card p { font-size:12px; overflow-wrap:anywhere; }
.fleet-card dl { font-size:12px; margin:16px 0; }
.fleet-card dl div { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid #e9eef0; }
.fleet-card dt { color:var(--muted); }
.fleet-card dd { margin:0; text-align:right; font-weight:600; overflow-wrap:anywhere; min-width:0; }
.readiness-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin-top:22px; }
.step-number { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:8px; background:#e7f2ef; color:#08695f; font-size:12px; font-weight:750; }
.readiness-grid h4 { font-size:15px; margin:12px 0 6px; }
.readiness-grid p { font-size:13px; margin-bottom:12px; }
.control-center .table-scroll th { background:#f4f7f8; }
.control-center .table-scroll td { max-width:320px; overflow-wrap:anywhere; }
.control-center .table-scroll .status-pill { white-space:normal; }
@media(max-width:1180px) { .fleet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .control-center .menu-toggle { color:#fff; } .control-center .menu-toggle span:first-child { color:#c3d7dd; } }
@media(max-width:650px) {
    .control-center .summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .control-center .summary-card { padding:14px; }
    .control-center .summary-card span { font-size:12px; }
    .control-center .summary-card small { font-size:11px; }
    .fleet-grid, .readiness-grid { grid-template-columns:1fr; }
    .readiness-grid { gap:22px; }
    .control-center .panel { padding:20px; }
    .control-center .panel-heading { gap:12px; }
    .control-center .account-actions { justify-content:flex-start; gap:12px; }
}
@media(max-width:360px) { .control-center .summary-grid { grid-template-columns:1fr; } }

.attribution-notice { padding:16px 20px; margin:0 0 20px; border:1px solid #b9d4ce; border-left:4px solid #08695f; border-radius:10px; background:#edf6f3; color:#25483f; }
.attribution-notice p { margin:6px 0 0; font-size:13px; line-height:1.55; }
.beneficiary-workspace { display:grid; grid-template-columns:minmax(230px, .8fr) minmax(0, 1.7fr); gap:20px; align-items:start; }
.beneficiary-detail, .beneficiary-list { min-width:0; }
.beneficiary-list-item { display:flex; align-items:center; gap:10px; padding:14px 8px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; border-radius:8px; }
.beneficiary-list-item > span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.beneficiary-list-item small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.beneficiary-list-item:hover, .beneficiary-list-item.is-selected { background:#edf6f3; }
.beneficiary-list-item .status-pill { font-size:10px; padding:4px 6px; }
.person-initial { display:inline-grid; place-items:center; border-radius:50%; width:40px; height:40px; background:#deefea; color:#08695f; font-size:20px; font-weight:700; flex-shrink:0; }
.credential-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.credential-row small { display:block; color:var(--muted); margin:5px 0; font-size:12px; }
.credential-row form { margin:0; }
.beneficiary-preview { border:1px solid #c8ddd6; border-radius:16px; padding:30px 20px; margin:14px 0; text-align:center; background:#f6faf7; }
.beneficiary-preview img { border-radius:50%; object-fit:cover; }
.beneficiary-preview .person-initial { width:80px; height:80px; font-size:34px; }
.beneficiary-preview h3 { margin:16px 0 8px; }
.beneficiary-preview small { color:var(--muted); }
.full-field { grid-column:1 / -1; }
.transaction-report-table { min-width:1020px; }
.empty-state { padding:18px 0; color:var(--muted); line-height:1.6; }
.terminal-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; margin:18px 0; }
.terminal-facts div { border-bottom:1px solid var(--line); padding:10px 0; min-width:0; }
.terminal-facts dt { color:var(--muted); font-size:12px; }
.terminal-facts dd { margin:5px 0 0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.beneficiary-terminal-info { flex-basis:100%; width:100%; min-width:0; display:grid; gap:12px; }
.beneficiary-terminal-info .terminal-facts { margin:0; }
.beneficiary-terminal-info .attribution-notice { margin:0; }
.beneficiary-terminal-info small { display:block; margin-top:6px; font-weight:400; color:var(--muted); }
@media(max-width:1100px) { .beneficiary-workspace { grid-template-columns:1fr; } .beneficiary-list-item { padding:12px; } }
@media(max-width:650px) { .terminal-facts { grid-template-columns:1fr; } .beneficiary-list-item { flex-wrap:wrap; } .credential-row { align-items:flex-start; } .full-field { grid-column:auto; } }

/* Organization workspaces share the established teal palette and form controls. */
.control-center { --ink:#20333c; --muted:#5b6d76; --line:#dfe7e9; background:#f5f7f8; }
.control-center.admin-unlocked .admin-shell { width:min(100% - 48px,1440px); padding-top:18px; }
.control-center .admin-header { gap:28px; padding-bottom:20px; }
.organization-switcher { margin-left:auto; width:min(380px,32%); }
.organization-switcher > label { font-size:11px; color:var(--muted); margin-bottom:5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.organization-switcher > div { display:flex; gap:8px; align-items:center; }
.organization-switcher select { font-size:14px; font-weight:650; background:#fff; }
.organization-switcher .secondary { margin:0; font-size:12px; padding:10px; }
.control-center .account-actions { gap:14px; font-size:13px; }
.control-center .admin-workspace { grid-template-columns:220px minmax(0,1fr); gap:24px; padding-top:24px; }
.control-center .admin-sidebar { background:#fff; border:1px solid var(--line); color:var(--ink); border-radius:16px; padding:18px 10px; }
.control-center .admin-sidebar .sidebar-label, .control-center .menu-group-label { color:var(--muted); font-size:10px; }
.control-center .menu-group-label { border-color:var(--line); margin:14px 10px 5px; padding-top:16px; }
.control-center .admin-menu { gap:5px; }
.control-center .admin-menu a { color:#465b65; padding:11px 14px; font-size:13px; font-weight:600; min-height:46px; }
.control-center .admin-menu a:hover { background:#f0f5f4; color:var(--accent); }
.control-center .admin-menu a.is-current { color:#075e55; background:#e5f3ef; box-shadow:inset 3px 0 0 #14796b; font-weight:750; }
.control-center .sidebar-foot { border-color:var(--line); padding-top:18px; margin-top:22px; }
.control-center .sidebar-foot span { color:var(--muted); font-size:11px; line-height:1.6; }
.page-context { display:flex; gap:12px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:12px; margin-bottom:10px; }
.page-context .status-pill { font-size:10px; padding:4px 8px; }
.control-center .page-heading { margin-bottom:26px; }
.control-center .page-heading h2 { font-size:30px; font-weight:750; letter-spacing:-.035em; }
.control-center .page-heading p { font-size:14px; line-height:1.6; }
.control-center .summary-card { border-top:1px solid var(--line); position:relative; gap:6px; padding:18px; }
.control-center .summary-card > span { font-size:12px; font-weight:650; }
.control-center .summary-card strong { font-size:34px; letter-spacing:-.025em; }
.control-center .summary-card small { font-size:11px; }
.control-center .panel { border-radius:12px; padding:22px; box-shadow:none; }
.control-center .panel-heading { margin-bottom:18px; }
.control-center .panel-heading h3 { font-size:17px; }
.control-center .fleet-grid { grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; }
.control-center .fleet-card { background:#fff; padding:20px; border-radius:12px; }
.control-center .fleet-card h4 { font-size:16px; margin-top:18px; }
.control-center .fleet-card dl { margin-top:20px; }
.control-center .fleet-card dt { font-size:11px; }
.control-center .fleet-card dd { font-size:12px; }
.organization-card > summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 18px; }
.organization-card > summary strong { grid-column:1; }
.organization-card > summary .record-meta { grid-column:1; font-size:12px; }
.organization-card > summary .status-pill { grid-column:2; grid-row:1 / 3; }
.organization-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid var(--line); padding-top:18px; margin:20px 0; font-size:12px; }
.organization-actions a { color:var(--accent); font-weight:700; text-decoration:none; }
.organization-actions span { color:var(--muted); }
.organization-feature { background:#f6faf8; padding:20px; margin:8px 0 0; border-color:#cee2da; }
.organization-feature legend { color:#075e55; font-size:14px; }
.organization-feature p { font-size:12px; line-height:1.7; margin-top:12px; max-width:850px; }
.institution-notice { background:#f4f7f8; border:1px solid var(--line); border-radius:10px; padding:16px; font-size:13px; }
.institution-notice p { margin-top:5px; font-size:12px; }
.feature-empty { max-width:850px; }
.feature-empty h3 { margin:12px 0; font-size:22px; }
.feature-empty p { line-height:1.7; margin-bottom:24px; }
.feature-empty .primary { display:inline-block; text-decoration:none; }
.control-center .beneficiary-workspace { grid-template-columns:minmax(250px,.8fr) minmax(0,1.7fr); }
.control-center .beneficiary-list-item { padding:15px 10px; }
.control-center .attribution-notice { font-size:13px; padding:16px 20px; border-left-width:3px; }
.control-center .attribution-notice p { font-size:12px; line-height:1.7; margin-top:5px; }
.report-advanced { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:16px; }
.report-advanced > summary { cursor:pointer; font-size:13px; color:var(--accent); font-weight:650; }
.report-advanced .fields { margin-top:16px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.control-center .report-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
.control-center .report-filters .filter-actions { grid-column:1 / -1; justify-content:flex-start; }
.control-center .beneficiary-search { grid-template-columns:minmax(180px,.8fr) minmax(220px,1fr) auto; }
.control-center .beneficiary-search.has-workspace { grid-template-columns:minmax(200px,1fr) auto; }
.control-center .beneficiary-search .filter-actions { grid-column:auto; align-items:center; margin:0; }
@media(max-width:1200px) { .control-center .admin-workspace { gap:24px; grid-template-columns:205px minmax(0,1fr); } .control-center .beneficiary-workspace { grid-template-columns:1fr; } .control-center .account-name { max-width:130px; } }
@media(max-width:850px) { .control-center.admin-unlocked .admin-shell { width:calc(100% - 32px); } .control-center .admin-workspace { display:block; padding-top:20px; } .control-center .admin-sidebar { padding:10px; margin-bottom:22px; } .control-center .menu-toggle { color:var(--ink); } .control-center .menu-toggle span:first-child { color:var(--muted); } .organization-switcher { width:auto; flex:1; min-width:220px; margin-left:0; } .control-center .admin-header { flex-wrap:wrap; gap:18px; } .control-center .account-actions { margin-left:auto; } }
@media(max-width:650px) { .control-center .panel { padding:20px; } .control-center .admin-header { gap:16px; } .organization-switcher { flex-basis:100%; order:3; } .control-center .account-actions { margin-left:0; gap:10px; } .control-center .page-heading h2 { font-size:26px; } .control-center .report-filters, .report-advanced .fields { grid-template-columns:1fr; } .control-center .fleet-grid { grid-template-columns:1fr; } .organization-card > summary { grid-template-columns:1fr; } .organization-card > summary .status-pill { grid-column:1; grid-row:auto; justify-self:start; } .organization-actions { align-items:start; flex-direction:column; } }
@media(max-width:1100px) { .control-center .beneficiary-search { grid-template-columns:1fr; } .control-center .beneficiary-search .filter-actions { flex-wrap:wrap; } }
@media(max-width:650px) { .control-center .beneficiary-search.has-workspace { grid-template-columns:1fr; } }

/* Pilot operations: explicit state colors and a separate setup flow. */
.control-center { --good-bg:#e5f3ee; --good-ink:#075e55; --warning-bg:#fff3d8; --warning-ink:#784b09; --info-bg:#e9f1ff; --info-ink:#214d91; }
.control-center .summary-good { border-top:3px solid #23836d; }
.control-center .summary-warning { border-top:3px solid #b87516; background:#fffaf0; }
.control-center .summary-warning strong { color:var(--warning-ink); }
.control-center .status-pill { padding:6px 10px; font-size:12px; line-height:1.4; background:var(--good-bg); color:var(--good-ink); }
.control-center .status-pill.is-warning { background:var(--warning-bg); color:var(--warning-ink); }
.control-center .status-pill.is-busy { background:var(--info-bg); color:var(--info-ink); }
.control-center .status-pill.is-inactive { background:#edf1f3; color:#52616c; }
.control-center .page-context .status-pill { font-size:11px; }
.control-center .attention-panel.has-attention { border-color:#e8cc92; border-left:4px solid #b87516; background:#fffcf5; }
.control-center .attention-row { gap:20px; }
.control-center .attention-row small { display:block; margin-top:4px; }
.control-center .attention-row p { font-size:14px; line-height:1.55; max-width:720px; }
.control-center .attention-row .secondary { flex-shrink:0; text-decoration:none; }
.control-center .fleet-card { border-left:3px solid #23836d; padding:18px; }
.control-center .fleet-card.is-warning { border-left-color:#b87516; }
.control-center .fleet-card.is-inactive { border-left-color:#9daab1; }
.control-center .fleet-card.is-busy { border-left-color:#4274b7; }
.control-center .fleet-card-heading { align-items:start; gap:12px; flex-wrap:wrap; }
.control-center .fleet-card-heading h4 { margin:0; font-size:16px; }
.control-center .fleet-card > p { font-size:13px; margin-top:8px; }
.control-center .fleet-card dl { margin:16px 0; }
.control-center .fleet-card dt { font-size:12px; }
.control-center .fleet-card dd { font-size:13px; }
.daily-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:20px; }
.daily-actions .action-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; gap:8px; }
.daily-actions .eyebrow { font-size:10px; margin:0; }
.setup-callout { display:flex; align-items:center; justify-content:space-between; gap:24px; background:#edf4ff; }
.setup-callout h3 { margin:5px 0 8px; }
.setup-callout p { font-size:14px; }
.setup-callout .primary { flex-shrink:0; text-decoration:none; }
.launch-steps { counter-reset:launch; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:0; margin-top:24px; }
.launch-steps li { counter-increment:launch; position:relative; padding:18px 18px 18px 58px; border:1px solid var(--line); border-radius:10px; }
.launch-steps li::before { content:counter(launch); position:absolute; left:16px; top:18px; display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:var(--info-bg); color:var(--info-ink); font-weight:750; }
.launch-steps p, .readiness-intro > p { font-size:14px; margin:8px 0 12px; }
.launch-steps a, .readiness-device > a { color:var(--accent); font-size:14px; font-weight:700; }
.readiness-device { padding:24px 0; border-top:1px solid var(--line); }
.readiness-device:last-child { padding-bottom:0; }
.readiness-device h4 { font-size:18px; margin:0 0 5px; }
.readiness-device .panel-heading p { font-size:13px; }
.checklist { list-style:none; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.checklist li { display:flex; align-items:start; gap:12px; padding:14px 0; border-top:1px solid #edf0f2; }
.checklist strong { font-size:14px; }
.checklist p { margin-top:4px; font-size:13px; line-height:1.6; }
.check-indicator { flex:0 0 82px; text-align:center; border-radius:6px; padding:5px; font-size:11px; font-weight:700; }
.check-good { background:var(--good-bg); color:var(--good-ink); }
.check-warning { background:var(--warning-bg); color:var(--warning-ink); }
.check-info { background:var(--info-bg); color:var(--info-ink); }
.device-evidence { background:#f4f7f9; padding:16px; border-radius:10px; font-size:13px; margin:16px 0; overflow-wrap:anywhere; }
.device-evidence p { margin:6px 0; }
.device-evidence dl { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:12px; }
.device-evidence dd { margin:4px 0 0; font-weight:650; }
.provider-gate { border-left:4px solid #b87516; }
.provider-gate p { font-size:14px; margin:12px 0; }
@media(max-width:1050px) { .checklist { grid-template-columns:1fr; } .setup-callout { align-items:start; flex-direction:column; } }
@media(max-width:650px) { .control-center .summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .control-center .summary-card { padding:14px; } .control-center .summary-card small { font-size:12px; } .control-center .summary-card strong { font-size:30px; } .control-center .attention-row { flex-direction:column; align-items:start; } .daily-actions, .launch-steps, .device-evidence dl { grid-template-columns:1fr; } .control-center .panel { padding:18px; } .control-center .panel-heading { flex-wrap:wrap; } .setup-callout .primary { width:100%; text-align:center; } }

@media(max-width:650px) { .control-center .admin-header { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; padding-bottom:16px; } .control-center .account-actions { width:100%; flex-wrap:nowrap; justify-content:space-between; gap:8px; } .control-center .account-name { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; } .control-center .environment-badge { font-size:10px; padding:5px 7px; white-space:nowrap; } .control-center .account-actions form { margin:0; } .control-center .organization-switcher { width:100%; min-width:0; } .control-center .admin-header h1 { font-size:14px; } .control-center .brand-mark { width:38px; height:38px; } }

.daily-actions-heading { margin:24px 0 12px; font-size:17px; }

/* Live operations overview. */
.overview-live-bar, .overview-live-bar > div, .live-actions, .fleet-toolbar { display:flex; align-items:center; gap:12px; }
.overview-live-bar { justify-content:space-between; margin:0 0 16px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.live-indicator { width:8px; height:8px; border-radius:50%; background:#23836d; flex:none; }
.refresh-failed .live-indicator { background:#b87516; }
.control-center .live-actions label { display:flex; flex-direction:row; align-items:center; gap:7px; font-size:12px; white-space:nowrap; min-height:44px; }
.control-center .live-actions button { min-height:44px; }
.control-center .live-actions input { width:16px; height:16px; min-height:0; accent-color:#075e55; margin:0; padding:0; }
.control-center .overview-filters .summary-card { text-align:left; font:inherit; color:inherit; background:#fff; }
.control-center .overview-filters .summary-warning { background:#fffaf0; }
.overview-filters .summary-card[aria-pressed="true"] { outline:2px solid var(--accent); outline-offset:2px; }
.control-center .overview-filters .summary-card small { font-size:11px; }
.fleet-toolbar { justify-content:space-between; margin:0 0 20px; color:var(--muted); font-size:12px; flex-wrap:wrap; }
.control-center .fleet-toolbar label { flex:1 1 300px; display:flex; flex-direction:row; align-items:center; gap:12px; }
.fleet-toolbar input { flex:1; min-width:0; max-width:480px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#f8fafb; }
.control-center .fleet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.control-center .fleet-card { display:flex; flex-direction:column; min-width:0; background:#fff; }
.control-center .fleet-card[hidden], .fleet-empty[hidden] { display:none; }
.control-center .fleet-card-heading { min-height:48px; }
.control-center .fleet-card-heading .status-pill { font-size:11px; }
.collection-preview { background:#f3f7f6; border-radius:8px; margin:16px 0 12px; padding:12px; display:flex; flex-direction:column; gap:4px; }
.collection-preview > span { font-size:11px; color:var(--muted); }
.collection-preview > strong { font-size:16px; overflow-wrap:anywhere; }
.fleet-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; color:var(--muted); font-size:11px; }
.fleet-details { border:0; padding:0; margin:12px 0; }
.fleet-details > summary { padding:0; font-size:12px; font-weight:600; color:var(--muted); cursor:pointer; }
.control-center .fleet-details p { font-size:12px; line-height:1.6; margin:10px 0 0; }
.fleet-action { margin-top:auto; font-size:13px; border-top:1px solid #edf1f3; padding-top:12px; }
.fleet-disclaimer { margin-top:18px; font-size:12px; }
.fleet-empty { padding:20px; text-align:center; background:#f6f8fa; border-radius:10px; }
@media(max-width:1050px) { .control-center .fleet-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .overview-live-bar { gap:10px; } .live-actions { width:100%; justify-content:space-between; } .control-center .fleet-toolbar label { flex-direction:column; align-items:stretch; gap:6px; } .control-center .fleet-card-heading { min-height:0; flex-direction:column; gap:8px; } .control-center .fleet-card { padding:16px; } .control-center .overview-filters .summary-card > span { font-size:12px; } .control-center .overview-filters .summary-card small { display:none; } }

/* Monthly collection review and HR handoff. */
.report-month-basis { display:flex; flex-direction:column; gap:6px; font-size:12px; }
.report-month-basis strong { font-size:18px; color:var(--ink); }
.hr-period-heading, .hr-period-heading nav { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.hr-period-heading { margin-bottom:18px; }
.hr-period-heading h3 { margin:4px 0 0; font-size:24px; display:flex; align-items:center; gap:12px; }
.hr-period-heading nav a { text-decoration:none; font-size:12px; min-height:44px; display:flex; align-items:center; }
.hr-period-form .quick-actions { flex-wrap:wrap; margin:16px 0 12px; }
.control-center .hr-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
.control-center .hr-summary .hr-status-value { font-size:18px; line-height:1.4; margin:10px 0; }
.hr-demo-notice { margin:0 0 20px; color:#214d91; background:#eaf1fb; }
.notice.hr-data-warning { color:var(--warning-ink); background:var(--warning-bg); border-left:3px solid #b87516; }
.hr-checks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.hr-checks > div { padding:14px; border:1px solid var(--line); border-radius:10px; background:#f8fafb; }
.hr-checks strong { font-size:14px; }
.hr-checks p { margin:8px 0 12px; font-size:12px; line-height:1.6; }
.hr-checks a, .hr-steps a { font-size:12px; font-weight:650; }
.hr-exceptions > .hint { margin-top:16px; }
.hr-table-tools { display:flex; flex-wrap:wrap; align-items:end; gap:14px; margin:20px 0; }
.control-center .hr-table-tools label { flex:1 1 250px; font-size:12px; }
.hr-table-tools input { min-height:44px; }
.hr-table-tools > div { display:flex; gap:6px; flex-wrap:wrap; }
.hr-table-tools button { min-height:44px; font-size:12px; }
.hr-table-tools [aria-pressed="true"] { background:#e5f3ee; border-color:#075e55; color:#075e55; }
.hr-table-tools > span { font-size:12px; color:var(--muted); padding-bottom:12px; }
[data-hr-row][hidden], [data-hr-empty][hidden] { display:none; }
.hr-row-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hr-row-actions a { min-height:44px; display:inline-flex; align-items:center; font-size:12px; }
.hr-currency-totals > summary, .hr-institution > summary { cursor:pointer; font-size:16px; font-weight:700; }
.hr-currency-totals > p, .hr-institution > p { margin:16px 0 12px; font-size:13px; }
.hr-currency-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-top:16px; }
.hr-currency-grid article { display:flex; flex-direction:column; gap:8px; padding:16px; background:#f4f7f8; border-radius:10px; }
.hr-currency-grid article > strong { font-size:22px; }
.hr-currency-grid article p, .hr-currency-grid article small { font-size:12px; }
.hr-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; gap:20px; padding:0; margin:20px 0 0; }
.hr-steps li { display:flex; align-items:start; gap:12px; padding:16px; border:1px solid var(--line); border-radius:10px; }
.hr-steps li > span { display:grid; place-items:center; background:#e9f1ff; color:#214d91; font-weight:750; min-width:30px; height:30px; border-radius:8px; }
.hr-steps strong { font-size:14px; }
.hr-steps p, .hr-steps small { display:block; font-size:12px; line-height:1.7; margin:8px 0 10px; }
@media(max-width:1100px) { .hr-checks { grid-template-columns:1fr; gap:10px; } .control-center .hr-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .hr-period-heading nav { width:100%; } .hr-period-heading nav a { flex:1; justify-content:center; } .hr-period-heading h3 { font-size:22px; flex-wrap:wrap; } .hr-period-form .quick-actions { display:grid; grid-template-columns:1fr; } .hr-steps { grid-template-columns:1fr; gap:10px; } .hr-process .panel-heading .status-pill { white-space:normal; } [data-hr-report] .admin-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); } [data-hr-report] .admin-table tbody, [data-hr-report] .admin-table tr, [data-hr-report] .admin-table td { display:block; width:100%; } [data-hr-report] .admin-table tr { border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:12px; } [data-hr-report] .admin-table td { border:0; padding:8px 0; white-space:normal; } [data-hr-report] .admin-table td[data-label]::before { content:attr(data-label); display:block; font-size:11px; color:var(--muted); margin-bottom:4px; } [data-hr-report] .admin-table { min-width:0; width:100%; } .control-center [data-hr-row][hidden] { display:none; } }

/* V1: preserve the existing workspace layout and give actions one clear blue accent. */
.control-center { --ink:#20334d; --muted:#52647c; --accent:#245a9a; --line:#dce4ee; --surface:#fff; --background:#f4f7fb; --good:#166344; --warning:#805000; --danger:#a3263a; --space-sm:8px; --space-md:16px; --space-lg:24px; --radius:10px; background:var(--background); }
.control-center .brand-mark, .control-center .primary { background:var(--accent); }
.control-center .admin-menu a.is-current { color:#1d4e89; background:#eaf1fb; box-shadow:inset 3px 0 0 var(--accent); }
.control-center .admin-menu a:hover { color:#1d4e89; background:#f0f4fb; }
.control-center .summary-good { border-color:#bedbcf; }
.control-center .summary-card:focus-visible { outline-color:var(--accent); }
.control-center .panel { border-color:var(--line); }
.control-center .collection-preview, .control-center .action-card { background:#f6f8fc; }
.control-center .attribution-notice { border-color:#bed0e9; border-left-color:var(--accent); background:#eef4fc; color:var(--ink); }
.connection-guidance { padding:16px 18px; border-left:3px solid var(--accent); margin:0 0 20px; background:#eaf1fb; border-radius:8px; font-size:14px; }
.connection-guidance p { margin-top:6px; font-size:13px; }

/* Keep everyday status and the next action easy to scan. */
.control-center .overview-filters .summary-card { transition:background-color .15s ease, border-color .15s ease; }
.control-center .overview-filters .summary-card:hover { background:#f4f8fd; border-color:#8eafd5; }
.control-center .overview-filters .summary-card[aria-pressed="true"] { background:#edf4fd; }
.control-center .overview-filters .summary-card strong { line-height:1; }
.control-center .fleet-card { border-top:3px solid #a4bed8; }
.control-center .fleet-card.is-warning { border-top-color:#b87516; }
.control-center .fleet-card.is-inactive { border-top-color:#aebbc3; }
.control-center .fleet-card.is-busy { border-top-color:#28759b; }
.control-center .fleet-card-heading h4 { margin:0; line-height:1.35; }
.control-center .fleet-card-heading { min-height:0; align-items:flex-start; }
.control-center .fleet-card > p { margin:8px 0 0; line-height:1.45; }
.fleet-device-health { line-height:1.6; }
.connection-summary-status { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.connection-summary-status .status-pill { margin:0; }
.control-center .connection-card > summary { min-height:58px; }
.control-center .record-card > summary:hover strong { color:var(--accent); }
.control-center .record-card > summary:focus-visible, .terminal-list-guidance summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:4px; }
.terminal-list-guidance { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 18px; }
.terminal-list-guidance details { flex:1 1 240px; min-width:0; border:1px solid var(--line); border-radius:10px; background:#f7faff; padding:12px 15px; }
.terminal-list-guidance summary { cursor:pointer; color:var(--accent); font-size:13px; font-weight:700; line-height:1.5; }
.terminal-list-guidance p { color:var(--muted); font-size:13px; line-height:1.6; margin:10px 0; }
.terminal-list-guidance a { color:var(--accent); font-size:13px; font-weight:700; }
@media (prefers-reduced-motion:reduce) { .control-center .overview-filters .summary-card { transition:none; } }
@media (max-width:650px) { .terminal-list-guidance { display:grid; grid-template-columns:1fr; } .connection-summary-status .status-pill { font-size:11px; } }
.connection-card > summary { flex-wrap:wrap; }
.connection-card > summary .record-meta { flex-basis:100%; }
.connection-check { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:16px; margin:16px 0; background:#f5f8fc; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.connection-check p, .connection-check small { flex-basis:100%; }
.connection-card fieldset { margin:0; }
.connection-card fieldset .record-help { margin:0 0 16px; }
.connection-card input::placeholder { opacity:1; color:#66768b; font-size:13px; }
.connection-diagnostic { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:16px; margin-top:20px; border-top:1px solid var(--line); }
.connection-diagnostic small { color:var(--muted); }
.control-center button:disabled { cursor:not-allowed; opacity:.6; }
.control-center [aria-busy=true] { opacity:.8; }
.control-center .table-scroll th { background:#f0f4fa; }
@media(max-width:850px) { .control-center .admin-sidebar { border-radius:10px; } .connection-card .fields { grid-template-columns:1fr; } .connection-card .wide { grid-column:auto; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }.donation-totals { display:flex; flex-wrap:wrap; gap:16px; }
.donation-totals article { display:flex; flex:1 1 180px; flex-direction:column; align-items:flex-start; gap:9px; padding:16px; border:1px solid var(--line); border-radius:10px; }
.donation-totals strong { font-size:28px; color:var(--ink); font-variant-numeric:tabular-nums; }
.donation-totals small { font-size:12px; color:var(--muted); }.terminal-list-filters { display:flex; flex-wrap:wrap; align-items:end; gap:14px; padding:18px; margin:0 0 20px; background:#fff; border:1px solid var(--line); border-radius:10px; }
.terminal-list-filters label { flex:1 1 180px; font-size:12px; }
.terminal-list-filters label:first-child { flex-grow:2; }
.terminal-list-filters > span { font-size:12px; color:var(--muted); min-height:44px; display:flex; align-items:center; }
[data-terminal-record][hidden] { display:none; }.payment-detail { margin:12px 0; white-space:normal; min-width:220px; max-width:380px; }
.payment-detail summary { color:var(--accent); font-size:12px; font-weight:700; cursor:pointer; min-height:44px; display:flex; align-items:center; }
.payment-detail dl { font-size:12px; padding:12px; margin:8px 0; background:#f3f6fb; border-radius:8px; }
.payment-detail dt { color:var(--muted); font-size:11px; margin-top:8px; }
.payment-detail dd { margin:4px 0; overflow-wrap:anywhere; }
.payment-uncertain { color:#805000; font-size:12px; padding:12px; background:#fff8e8; border-radius:8px; }
.payment-events { padding:0; margin:12px 0; list-style:none; }
.payment-events li { display:flex; flex-direction:column; gap:4px; font-size:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.payment-events time { color:var(--muted); font-size:11px; }

/* Task-based navigation: six work areas, with related pages kept together. */
.workspace-tabs { display:flex; flex-wrap:wrap; gap:4px 20px; margin:-8px 0 24px; border-bottom:1px solid var(--line); }
.workspace-tabs a { display:flex; align-items:center; min-height:48px; color:var(--muted); font-size:14px; font-weight:600; text-decoration:none; padding:8px 0; border-bottom:3px solid transparent; }
.workspace-tabs a:hover { color:var(--accent); }
.workspace-tabs a[aria-current=page] { color:var(--accent); border-bottom-color:var(--accent); }
.control-center .admin-menu { gap:4px; }
.control-center .admin-menu a { min-height:48px; font-size:14px; }
.control-center .sidebar-foot { margin-top:20px; padding-top:16px; }
.sidebar-foot a { color:var(--accent); min-height:44px; display:flex; align-items:center; font-size:13px; font-weight:650; }
.control-center .page-heading { margin-bottom:18px; }
.control-center .overview-live-bar { margin-top:0; }
.control-center .profile-card .panel-heading { align-items:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.control-center .profile-card h3 { margin:0; }
.profile-card .profile-metadata { margin-top:20px; }
.payment-mode-setting { padding:16px; border:1px solid #bed0e9; border-radius:8px; background:#f0f5fc; }
@media(max-width:850px) { .workspace-tabs { gap:4px 16px; margin-bottom:20px; } .control-center .admin-sidebar { margin-bottom:18px; } .control-center .menu-open .sidebar-foot { display:flex; } }
.simulator-shell .page-heading { margin-top:28px; }
.simulator-notice { border-left:3px solid #a26b0c; }
.simulator-downloads { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
.simulator-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:20px 0; }
.simulator-toolbar p { font-size:13px; }
.simulator-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.control-center .simulator-card { margin:0 0 20px; }
.simulator-card h3 { margin:8px 0; }
.simulator-context { padding:12px; background:#f0f5fc; border-radius:8px; }
.simulator-amounts { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.simulator-amounts button { flex:1 1 110px; min-height:64px; font-size:18px; }
.simulator-custom { display:flex; align-items:end; flex-wrap:wrap; gap:10px; padding-top:12px; border-top:1px solid var(--line); }
.simulator-custom label { flex:1 1 120px; font-size:13px; }
.simulator-custom small { flex-basis:100%; color:var(--muted); }
.simulator-payment { margin:16px 0; padding:14px; border:1px solid var(--line); font-size:20px; font-weight:750; border-radius:8px; }
.simulator-outcomes { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.simulator-outcomes p { flex-basis:100%; font-size:13px; }
.simulator-selection { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:20px 0; }
.simulator-selection strong { flex-basis:100%; font-size:26px; }
.simulator-card details { border-top:1px solid var(--line); margin-top:20px; padding-top:12px; }
.simulator-card summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:13px; font-weight:650; }
.simulator-evidence pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.5; max-height:320px; overflow:auto; padding:12px; background:#f4f7fb; border-radius:8px; }
@media(max-width:850px) { .simulator-grid { grid-template-columns:1fr; } .simulator-toolbar { align-items:start; } }

/* Appearance editor and monthly report: show the common tasks first. */
.control-center .jar-picker { padding:16px 18px; margin-bottom:12px; }
.control-center .jar-picker label { max-width:520px; }
.control-center .section-nav { gap:7px; }
.control-center .section-nav a { background:#fff; border:1px solid #cbd9e9; color:#244e80; font-size:13px; }
.control-center .section-nav a:hover, .control-center .section-nav a:focus-visible { background:#eaf1fb; }
.control-center .button-main-fields { grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr); }
.control-center .save-bar .primary { background:#fff; color:#193343; }
.control-center .save-bar .primary:hover { background:#eaf1fb; }
.editor-developer-preview { margin-top:24px; }
.report-export-scope { margin:16px 0 0; padding:12px 14px; border-left:3px solid #2d609b; border-radius:6px; background:#f0f5fc; color:#30495f; font-size:13px; line-height:1.5; }
@media(max-width:520px) { .control-center .button-main-fields { grid-template-columns:1fr; } .control-center .section-nav a { flex:1 1 42%; text-align:center; } }

/* Desktop admin: readable summaries and clearer working areas. */
@media (min-width:851px) {
    .control-center .summary-card { gap:8px; padding:20px; box-shadow:0 4px 16px rgba(32,51,77,.04); }
    .control-center .summary-card > span { font-size:13px; line-height:1.4; }
    .control-center .summary-card small { font-size:12px; line-height:1.55; }
    .control-center .attribution-notice p { font-size:13px; line-height:1.6; }
    .control-center .table-scroll th { font-size:12px; letter-spacing:.02em; }
    .control-center .table-scroll td { line-height:1.5; }
    .control-center .table-scroll td small { font-size:12px; line-height:1.5; }
    .control-center .beneficiary-list-item { padding:16px 12px; }
    .control-center .beneficiary-list-item:hover { background:#f4f8fd; }
}

/* ==========================================================================
   Admin design v2 (2026-11): modern palette, role-aware chrome, clearer data.
   Appended last on purpose; overrides the earlier layered tweaks.
   ========================================================================== */
.control-center {
    --ink:#16303b; --muted:#59707c; --line:#dde7ea; --accent:#0b7a75; --accent-strong:#075e5a; --accent-soft:#e3f4f1;
    --bg:#f3f7f8; --card:#fff; --radius:16px;
    --ok:#157347; --ok-soft:#e4f5ea; --warn:#9a5b00; --warn-soft:#fff1d6; --bad:#b4233a; --bad-soft:#fde8ec; --info:#1d5fa8; --info-soft:#e5effb;
    --role-platform:#6d3fc4; --role-admin:#0b7a75; --role-operator:#b25e09; --role-reporter:#2563a8; --role-member:#64748b;
    background:radial-gradient(1200px 420px at 85% -120px,#d9f0ec 0,transparent 70%),var(--bg);
}
.control-center.admin-unlocked .admin-shell { width:min(100% - 48px,1480px); }

/* Header */
.control-center .admin-header { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 20px; margin-bottom:6px; box-shadow:0 1px 2px rgba(22,48,59,.04); }
.control-center .brand-mark { background:linear-gradient(135deg,#0b7a75,#2a9d8f 60%,#e9a23b); color:#fff; border-radius:13px; box-shadow:0 4px 10px rgba(11,122,117,.28); }
.control-center .admin-header h1 { font-size:17px; font-weight:700; }
.control-center .account-actions { gap:10px; }
.control-center .account-name { display:inline-flex; align-items:center; gap:8px; padding:4px 10px 4px 4px; border-radius:100px; border:1px solid var(--line); background:#fff; }
.control-center .account-name:hover { border-color:var(--accent); }
.avatar { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--accent-soft); color:var(--accent-strong); font-size:13px; font-weight:800; }
.environment-badge { border-radius:100px; padding:5px 11px; font-size:11px; font-weight:800; letter-spacing:.06em; background:var(--warn-soft); border-color:#f1d79a; color:var(--warn); }
.control-center .link-button { border:0; background:none; color:var(--muted); font-size:13px; text-decoration:underline; padding:6px; }

/* Role chips and banner */
.role-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:100px; font-size:12px; font-weight:750; color:#fff; background:var(--role-member); white-space:nowrap; }
.role-chip::before { content:''; width:7px; height:7px; border-radius:50%; background:#fff; opacity:.85; }
.role-chip.role-platform, .role-card.role-platform .role-chip { background:var(--role-platform); }
.role-chip.role-admin, .role-card.role-admin .role-chip { background:var(--role-admin); }
.role-chip.role-operator, .role-card.role-operator .role-chip { background:var(--role-operator); }
.role-chip.role-reporter, .role-card.role-reporter .role-chip { background:var(--role-reporter); }
.role-banner { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; margin:0 0 18px; padding:12px 16px; border-radius:12px; border:1px solid; font-size:14px; }
.role-banner strong { font-size:13px; letter-spacing:.02em; }
.role-banner.role-operator { background:#fff4e3; border-color:#f0d3a2; color:#6f4208; }
.role-banner.role-reporter { background:var(--info-soft); border-color:#c3d8f2; color:#1c4a80; }
.role-banner.role-member { background:#eef1f4; border-color:#d5dce2; color:#46515c; }

/* Sidebar */
.control-center .admin-sidebar { background:linear-gradient(180deg,#0f3a40 0,#12303a 100%); border:0; border-radius:var(--radius); color:#e6f1f2; padding:14px 12px; box-shadow:0 10px 28px rgba(15,58,64,.22); }
.control-center .admin-sidebar .sidebar-label { color:#8fb5b6; letter-spacing:.14em; }
.control-center .admin-menu { gap:3px; }
.control-center .admin-menu a { display:flex; align-items:center; gap:12px; color:#d3e5e6; padding:11px 12px; border-radius:11px; font-size:14px; font-weight:600; transition:background .15s,color .15s; }
.control-center .admin-menu a:hover { background:rgba(255,255,255,.09); color:#fff; }
.control-center .admin-menu a.is-current { background:#fff; color:var(--accent-strong); box-shadow:0 4px 12px rgba(0,0,0,.18); }
.nav-icon { width:20px; height:20px; flex:0 0 auto; opacity:.9; }
.control-center .sidebar-foot { border-color:rgba(255,255,255,.14); }
.role-card { display:grid; gap:7px; padding:12px; border-radius:12px; background:rgba(255,255,255,.07); }
.role-card small { color:#b9d2d3; font-size:12px; line-height:1.5; }
.control-center .sidebar-foot a { color:#9fe3da; font-weight:700; }
.control-center .menu-toggle { color:#fff; }

/* Page heading and tabs */
.control-center .page-context { color:var(--muted); font-weight:600; }
.control-center .page-heading h2 { font-size:clamp(26px,3vw,34px); font-weight:800; letter-spacing:-.035em; }
.control-center .workspace-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:4px; margin:0 0 20px; background:#e8eff1; border-radius:13px; width:fit-content; max-width:100%; }
.control-center .workspace-tabs a { padding:8px 16px; border-radius:10px; color:var(--muted); font-size:14px; font-weight:650; text-decoration:none; }
.control-center .workspace-tabs a:hover { color:var(--ink); }
.control-center .workspace-tabs a[aria-current="page"] { background:#fff; color:var(--accent-strong); box-shadow:0 1px 4px rgba(22,48,59,.14); }

/* Panels, cards, summary tiles */
.control-center .panel, .control-center .preview-panel { border:1px solid var(--line); border-radius:var(--radius); background:var(--card); box-shadow:0 1px 2px rgba(22,48,59,.04); }
.control-center .panel-heading h3 { font-size:18px; font-weight:750; }
.control-center .summary-grid { gap:14px; }
.control-center .summary-card { border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:14px; box-shadow:0 1px 2px rgba(22,48,59,.04); transition:transform .15s,box-shadow .15s; }
.control-center .summary-card[href]:hover, .control-center button.summary-card:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(22,48,59,.1); }
.control-center .summary-card.summary-good { border-top-color:var(--ok); }
.control-center .summary-card.summary-warning { border-top-color:#e09a1a; background:linear-gradient(180deg,#fffaf0,#fff 60%); }
.control-center .summary-card.summary-warning strong { color:var(--warn); }
.control-center button.summary-card { text-align:left; font:inherit; cursor:pointer; }
.control-center button.summary-card[aria-pressed="true"] { outline:2px solid var(--accent); outline-offset:1px; }
.control-center .fleet-card { border:1px solid var(--line); border-radius:14px; transition:box-shadow .15s,border-color .15s; }
.control-center .fleet-card:hover { border-color:#b8d6d3; box-shadow:0 8px 20px rgba(22,48,59,.08); }
.control-center .action-card { border-radius:14px; background:#fff; border:1px solid var(--line); transition:transform .15s,border-color .15s,box-shadow .15s; }
.control-center .action-card:hover { transform:translateY(-2px); border-color:var(--accent); box-shadow:0 8px 20px rgba(11,122,117,.12); background:#fff; }
.control-center .setup-callout { background:linear-gradient(120deg,#0f3a40,#0b7a75); color:#fff; border:0; }
.control-center .setup-callout h3, .control-center .setup-callout p, .control-center .setup-callout .eyebrow { color:#fff; }
.control-center .setup-callout .primary { background:#fff; color:var(--accent-strong); }
.control-center .eyebrow { color:var(--accent); }

/* Status pills with clear semantics */
.control-center .status-pill { background:var(--ok-soft); color:var(--ok); font-weight:750; }
.control-center .status-pill.is-inactive { background:#edf0f2; color:#4f5f6a; }
.control-center .status-pill.is-warning { background:var(--warn-soft); color:var(--warn); }
.control-center .status-pill.is-busy { background:var(--info-soft); color:var(--info); }
.control-center .status-pill.is-error, .control-center .status-pill.is-danger { background:var(--bad-soft); color:var(--bad); }

/* Buttons and forms */
.control-center .primary { background:var(--accent); border-radius:11px; font-weight:700; box-shadow:0 2px 6px rgba(11,122,117,.25); transition:background .15s,transform .1s; }
.control-center .primary:hover { background:var(--accent-strong); }
.control-center .primary:active { transform:translateY(1px); }
.control-center .secondary, .control-center .row-actions button { border-radius:10px; border:1px solid #cbd9de; background:#fff; color:var(--ink); transition:border-color .15s,background .15s; }
.control-center .secondary:hover, .control-center .row-actions button:hover { border-color:var(--accent); background:var(--accent-soft); }
.control-center .save-bar { background:linear-gradient(120deg,#0f3a40,#12515a); border-radius:14px; }
.control-center input, .control-center select, .control-center textarea { border:1px solid #cbd9de; border-radius:10px; transition:border-color .15s,box-shadow .15s; }
.control-center input:focus, .control-center select:focus, .control-center textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(11,122,117,.18); outline:none; }
.control-center label { color:#2a424d; }
.control-center .notice { background:var(--ok-soft); color:#0f5a35; border:1px solid #bfe4cd; }
.control-center .error-panel { background:var(--bad-soft); border:1px solid #f3c1cb; color:var(--bad); }

/* Tables */
.control-center .table-scroll { border:1px solid var(--line); border-radius:12px; }
.control-center .table-scroll th { background:#eef4f5; color:#47606c; text-transform:uppercase; font-size:11px; letter-spacing:.06em; position:sticky; top:0; }
.control-center .table-scroll tbody tr:nth-child(even) { background:#fafcfc; }
.control-center .table-scroll tbody tr:hover { background:var(--accent-soft); }

/* Login */
.control-center.admin-locked { background:radial-gradient(900px 500px at 50% -10%,#cfece7 0,transparent 70%),linear-gradient(180deg,#eaf4f4,#f6f9fa); }
.control-center.admin-locked .admin-header { border:0; background:none; box-shadow:none; justify-content:center; }
.control-center.admin-locked .login-panel { padding:30px; box-shadow:0 18px 50px rgba(15,58,64,.14); border-radius:20px; }
.control-center.admin-locked .login-panel h2 { font-size:26px; }

/* Mobile */
@media (max-width:850px) {
    .control-center .admin-sidebar { background:#0f3a40; }
    .control-center .admin-header { padding:12px 14px; }
    .control-center .role-chip { font-size:11px; }
    .control-center .workspace-tabs { width:100%; overflow-x:auto; flex-wrap:nowrap; }
    .control-center .workspace-tabs a { white-space:nowrap; }
}
@media (prefers-reduced-motion:reduce) { .control-center * { transition:none !important; } }

/* v2 fixes */
.control-center .sidebar-foot .role-chip, .control-center .admin-sidebar .role-chip { color:#fff; font-size:12px; justify-self:start; }
.control-center .account-name { white-space:nowrap; }
.control-center .account-actions { flex-wrap:nowrap; }
@media (max-width:1100px) { .control-center .account-actions { flex-wrap:wrap; justify-content:flex-end; } }

.control-center .menu-toggle span { color:#fff; }
.control-center .menu-toggle span:first-of-type { opacity:.8; font-weight:600; }

/* HR payout list */
.hr-payout { border-top:4px solid var(--accent); }
.hr-payout-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.hr-payout-lead { margin:0 0 14px; color:var(--ink); font-size:15px; }
.hr-payout-table .num, .hr-payout-table th.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hr-payout-table tfoot th, .hr-payout-table tfoot td { background:#eef6f5; font-weight:700; border-top:2px solid var(--accent); }
.hr-payout-table td small { display:block; }
@media print {
    body.control-center { background:#fff; }
    .admin-header, .admin-sidebar, .workspace-tabs, .role-banner, .page-heading p, .hr-period-form, .hr-summary, .hr-exceptions, .hr-currency-totals, .hr-institution, .hr-process, [data-hr-report], .hr-payout-actions, .skip-link, .hr-demo-notice, .hr-period-heading nav { display:none !important; }
    .admin-workspace { display:block; }
    .control-center .panel { box-shadow:none; border:0; }
    .hr-payout { border-top:0; }
    .hr-payout-table th, .hr-payout-table td { border-bottom:1px solid #999; font-size:12pt; }
}

.control-center a.primary, .control-center a.primary:visited { color:#fff; text-decoration:none; }
.hr-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:14px; }
.hr-more-exports > summary { cursor:pointer; color:var(--accent-strong); font-weight:650; font-size:14px; list-style:none; padding:9px 4px; }
.hr-more-exports > summary::-webkit-details-marker { display:none; }
.hr-more-exports > summary::before { content:'+ '; }
.hr-more-exports[open] > summary::before { content:'− '; }
.hr-more-exports > div { display:flex; gap:8px; flex-wrap:wrap; margin:4px 0 8px; }
.hr-period-form .fields { grid-template-columns:repeat(2,minmax(0,1fr)); }

/* Skin editor UX */
.control-center .info-notice { background:var(--info-soft); border:1px solid #c3d8f2; color:#1c4a80; }
.control-center .editor-column .section-nav { position:sticky; top:8px; z-index:5; padding:8px; background:rgba(243,247,248,.94); backdrop-filter:blur(6px); border:1px solid var(--line); border-radius:14px; }
.control-center .section-nav a.is-active { background:var(--accent); border-color:var(--accent); color:#fff; }
.control-center .editor-section[open] > summary .section-heading > span { background:var(--accent); color:#fff; }
