:root {
  color-scheme: light;
  --nav: #11192e;
  --bg: #f5f7fb;
  --paper: #fff;
  --ink: #172139;
  --muted: #596581;
  --line: #e7ebf3;
  --accent: #5043d2;
  --accent-dark: #3e32b4;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--ink); font: 1rem/1.5 var(--font); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #7c71fa; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand strong { letter-spacing: -.045em; }
h1 { font-size: clamp(1.9rem, 3.1vw, 2.65rem); font-weight: 780; line-height: 1.18; }
h2 { font-size: 1.15rem; line-height: 1.35; }
h3 { font-size: 1rem; }
small, .small { font-size: .81rem; }
svg.ico { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 5; top: -8rem; left: 1rem; background: white; padding: 10px; }
.skip:focus { top: 1rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--nav); display: flex; flex-direction: column; padding: 30px 17px 20px; color: #e5ebff; }
.brand { background: none; border: 0; color: #fff; display: flex; gap: 11px; align-items: center; text-align: left; padding: 0 8px; min-height: 44px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: #6558eb; box-shadow: 0 5px 16px #080e2c66; }
.brand-icon .ico { width: 22px; height: 22px; }
.brand strong { font-size: 1.16rem; display: block; line-height: 1.18; }
.brand small { color: #a7b3d0; display: block; margin-top: 4px; font-size: .72rem; }
.sidebar nav { margin-top: 45px; display: grid; gap: 7px; }
.nav-btn { border: 0; border-radius: 9px; background: transparent; color: #bac6e2; display: flex; align-items: center; gap: 11px; padding: 11px 13px; text-align: left; min-height: 44px; font-size: .91rem; font-weight: 650; white-space: nowrap; }
.nav-btn:hover { background: #212e4b; color: #fff; }
.nav-btn[aria-current="page"] { color: #fff; background: #323865; }
.nav-btn[aria-current="page"] .ico { color: #c1baff; }
.sidebar-bottom { margin-top: auto; }
.demo-note { border: 1px solid #303c59; border-radius: 11px; padding: 11px; display: flex; align-items: baseline; gap: 8px; }
.demo-note strong { font-size: .82rem; color: #e5ebff; }
.demo-note p { font-size: .76rem; color: #aebad6; margin-top: 3px; }
.demo-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #a39aff; border-radius: 50%; }
.topbar { height: 72px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); gap: 14px; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: .89rem; color: var(--muted); }
.crumb strong { color: var(--ink); }
.crumb-divider { color: #a8b2c6; }
.role-switch { display: flex; align-items: center; gap: 10px; }
.role-switch small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.15; }
.avatar { width: 35px; height: 35px; background: #ece9ff; color: #473bb1; font-weight: 800; display: grid; place-items: center; border-radius: 11px; font-size: .83rem; flex: 0 0 auto; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: ""; position: absolute; right: 8px; top: calc(50% - 5px); width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
select { appearance: none; }
.role-switch select { padding: 1px 24px 1px 0; min-width: 104px; font-size: .85rem; line-height: 1.5; font-weight: 750; color: var(--ink); border: 0; background: transparent; }
.workspace main { max-width: 1450px; margin: 0 auto; padding: 36px 32px 52px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.page-head p, .panel-head p { color: var(--muted); }
.page-head p { margin-top: 9px; font-size: .96rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { min-height: 42px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dce2ee; color: var(--ink); background: #fff; border-radius: 9px; font-size: .875rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #f2f4fa; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-soft { background: #f2efff; border-color: #e6dfff; color: #4737bc; }
.btn-soft:hover { background: #e9e4ff; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--accent-dark); padding-inline: 6px; }
.btn-quiet:hover { background: #f3f1ff; }
.receipt-button { min-height: 38px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.stat { border-radius: 13px; border: 1px solid var(--line); background: #fff; min-width: 0; padding: 16px; box-shadow: 0 1px 2px #19224406; }
.stat .stat-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; font-size: .86rem; }
.stat-amount { margin-top: 11px; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 790; letter-spacing: -.045em; line-height: 1.16; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-amount small { font-size: .53em; font-weight: 680; padding-left: 3px; }
.stat .sub { margin-top: 7px; font-size: .775rem; color: var(--muted); }
.stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; color: #5341ca; background: #eeebff; }
.stat-icon.sky { color: #17628a; background: #e5f4fc; }
.stat-icon.green { color: #0e7052; background: #e0f5ec; }
.stat-icon.amber { color: #975005; background: #fff1df; }
.chart-grid { display: grid; grid-template-columns: minmax(0,1.44fr) minmax(0,1fr); gap: 14px; margin-bottom: 17px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; min-width: 0; box-shadow: 0 1px 2px #19224406; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 18px 19px 12px; }
.panel-head p { font-size: .81rem; margin-top: 5px; }
.chart-bars { padding: 5px 20px 20px; display: grid; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 53px minmax(0,1fr) minmax(75px,auto); gap: 12px; align-items: center; font-size: .88rem; }
.chart-row strong { text-align: right; font-size: .83rem; font-variant-numeric: tabular-nums; }
.bar-track { height: 11px; border-radius: 30px; background: #eff0fb; overflow: hidden; }
.bar-fill { height: 100%; background: #7567eb; border-radius: inherit; }
.chart-row:first-child .bar-fill { background: #5344d6; }
.stage-list { padding: 3px 19px 15px; display: grid; gap: 0; }
.stage-line { display: grid; grid-template-columns: minmax(104px,1fr) minmax(0,auto); align-items: center; gap: 7px; min-height: 37px; border-bottom: 1px solid #f0f2f8; font-size: .85rem; }
.stage-line:last-child { border-bottom: 0; }
.stage-line strong { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 60px; font-size: .78rem; font-weight: 680; color: #494e62; background: #eef0f5; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .78; }
.badge.violet { color: #4e3ab9; background: #efebff; }
.badge.sky { color: #255e8d; background: #e7f2ff; }
.badge.green { color: #146244; background: #def5e9; }
.badge.amber { color: #8b4b08; background: #fff0de; }
.data-frame { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 645px; }
th { font-size: .79rem; color: #52617d; font-weight: 710; background: #f8f9fd; }
td { font-size: .87rem; }
th, td { padding: 12px 13px; vertical-align: middle; border-top: 1px solid #edf0f6; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
td.amount-cell, th.amount-cell { text-align: right; white-space: nowrap; }
td.amount-cell { font-variant-numeric: tabular-nums; font-weight: 730; }
tbody tr:hover { background: #fbfbff; }
.table-link { color: #222b44; font-weight: 740; text-decoration: none; border: 0; background: none; padding: 0; text-align: left; }
.table-link:hover { color: var(--accent-dark); text-decoration: underline; }
.table-sub { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.filters { padding: 8px 19px 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters .select-wrap { min-width: 126px; }
.filters input { width: min(350px,100%); }
.filters input, .filters select, .field input, .field select, .field textarea { background: white; color: var(--ink); border: 1px solid #dbe1ed; border-radius: 8px; padding: 8px 10px; min-height: 41px; min-width: 0; font-size: .9rem; }
.filters select, .field select { padding-right: 26px; width: 100%; }
.results-label { color: var(--muted); font-size: .82rem; margin-left: auto; }
.empty { color: var(--muted); padding: 34px 18px; text-align: center; }
.empty strong { display: block; color: var(--ink); margin-bottom: 5px; }
.case-nav { margin-bottom: 11px; }
.case-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 7px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); gap: 14px; align-items: start; }
.detail-stack { display: grid; gap: 14px; }
.content { padding: 2px 19px 19px; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 15px; margin: 6px 0 0; }
.facts div { border-bottom: 1px solid #edf0f6; padding-bottom: 10px; min-width: 0; overflow-wrap: anywhere; }
.facts dt { color: var(--muted); font-size: .8rem; margin-bottom: 3px; }
.facts dd { margin: 0; font-size: .92rem; font-weight: 650; }
.receipt-img { display: block; max-width: 100%; max-height: 510px; margin: 0 auto; border-radius: 8px; }
.receipt-bg { padding: 10px; border-radius: 10px; background: #f1f3f8; }
.receipt-caption { margin-top: 6px; color: var(--muted); font-size: .81rem; text-align: center; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 3px 0 0; display: grid; }
.timeline li { position: relative; padding: 0 0 14px 19px; border-left: 1px solid #e6e3f7; margin-left: 4px; overflow-wrap: anywhere; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 1px; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; border-radius: 100%; background: #7668e7; }
.timeline strong { font-size: .9rem; }
.timeline p { font-size: .8rem; color: var(--muted); }
.notice { background: #fff5e7; color: #754412; border: 1px solid #f4e3c7; border-radius: 8px; padding: 8px 10px; font-size: .84rem; display: block; margin-bottom: 12px; overflow-wrap: anywhere; }
.textblock { white-space: pre-wrap; color: var(--muted); font-size: .9rem; margin: 10px 0 0; overflow-wrap: anywhere; }
dialog { border: 1px solid #e4e7ef; background: white; color: var(--ink); padding: 0; border-radius: 14px; width: min(670px,calc(100% - 22px)); max-height: calc(100dvh - 28px); box-shadow: 0 16px 70px #090e3c50; }
dialog::backdrop { background: #10182c75; }
.dialog-head { padding: 19px 21px 15px; display: flex; justify-content: space-between; align-items: start; gap: 10px; border-bottom: 1px solid var(--line); }
.dialog-head p { font-size: .83rem; color: var(--muted); margin-top: 5px; }
.close-btn { background: #f2f4fa; border: 0; border-radius: 8px; height: 32px; width: 32px; color: #344058; flex: 0 0 auto; }
.close-btn:hover { background: #e9eaf5; }
.dialog-body { padding: 16px 21px 20px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 12px; }
.field { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; font-size: .86rem; font-weight: 680; }
.field input, .field select, .field textarea { font-weight: 450; width: 100%; }
.field textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.upload { border: 1px dashed #c3c2e8; background: #f7f6ff; padding: 11px; border-radius: 10px; }
.upload input { padding: 4px 0; width: 100%; }
.upload input::file-selector-button { background: #fff; color: var(--ink); border: 1px solid #dce2ee; border-radius: 7px; padding: 6px 9px; margin-right: 7px; font: inherit; cursor: pointer; }
.upload-status { color: var(--muted); font-size: .8rem; margin-top: 5px; overflow-wrap: anywhere; }
.inline-error { color: #9d2141; font-size: .86rem; font-weight: 650; margin-top: 9px; }
.toast { position: fixed; z-index: 10; bottom: 18px; right: 19px; padding: 10px 14px; border-radius: 9px; max-width: min(370px,calc(100% - 35px)); background: #222a47; color: #fff; font-size: .91rem; box-shadow: 0 8px 24px #17255228; }
#print-area { display: none; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 174px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .topbar, .workspace main { padding-inline: 21px; }
  .stats { gap: 9px; }
  .stat { padding: 13px 10px; }
  .stat .stat-head { gap: 5px; }
}
@media (max-width: 770px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 9px 12px 0; }
  .brand { padding: 0 4px; min-height: 40px; }
  .brand-icon { width: 31px; height: 31px; border-radius: 8px; }
  .brand strong { font-size: 1.03rem; }
  .brand small, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 4px; margin-top: 6px; padding: 0 0 8px; overflow: auto; }
  .nav-btn { padding: 6px 8px; min-height: 35px; font-size: .8rem; gap: 5px; }
  .nav-btn .ico { width: .9rem; height: .9rem; }
  .topbar { height: 54px; padding-inline: 13px; }
  .crumb { font-size: .82rem; gap: 5px; }
  .workspace main { padding: 20px 12px 33px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chart-grid, .detail-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .page-head { align-items: start; flex-wrap: wrap; margin-bottom: 17px; }
  .page-head p { font-size: .84rem; margin-top: 5px; }
  .panel-head { padding: 13px 12px 9px; }
  .filters, .content { padding-inline: 12px; }
}
@media (max-width: 405px) {
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .select-wrap select { min-width: 0; }
  .dialog-head, .dialog-body { padding-inline: 13px; }
}
@media print {
  @page { margin: 16mm; }
  body { background: white; color: black; }
  .shell, dialog, .toast, .skip { display: none !important; }
  #print-area { display: block; }
  .print-title { font-size: 1.65rem; margin-bottom: 8px; }
  .print-facts { border-top: 2px solid #222; margin-top: 18px; }
  .print-facts div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid #aaa; padding: 8px; break-inside: avoid; }
  .print-facts dd { margin: 0; overflow-wrap: anywhere; }
  .print-evidence { margin-top: 17px; }
  .print-evidence img { display: block; max-width: 100%; max-height: 105mm; object-fit: contain; }
}

/* Receipt submission and review */
[hidden] { display: none !important; }
.intake-page { max-width: 930px; margin: 0 auto; }
.intake-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); gap: 18px; align-items: start; }
.intake-form { padding: 23px; display: grid; gap: 15px; }
.photo-zone { text-align: center; border: 1px dashed #a8a1e4; border-radius: 12px; padding: 20px 15px 16px; background: #f8f7ff; }
.photo-instruction strong { display: block; font-size: 1.1rem; margin-top: 9px; }
.photo-instruction p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.photo-glyph { display: grid; place-items: center; width: 47px; height: 47px; margin: 0 auto; color: var(--accent-dark); border-radius: 13px; background: #ebe7ff; }
.photo-glyph .ico { width: 25px; height: 25px; }
.photo-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.photo-buttons .btn { min-height: 44px; }
.photo-status { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; background:#eef5f0; color:#315841; font-size:.86rem; }
.photo-status[data-phase=idle] { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.photo-status[data-phase=prepare] { color:#483c89; background:#f2f0ff; }
.trial-slip { display:inline-grid; place-items:center; flex:none; width:28px; font-size:1.4rem; line-height:1.35; }
.photo-status[data-phase=prepare] .trial-slip { animation:trial-receipt-hop .9s ease-in-out infinite; }
.photo-status[data-phase=ready] .trial-slip { animation:trial-receipt-hop .45s ease-out 1; }
@keyframes trial-receipt-hop { 0%,100% { transform:rotate(-5deg); } 50% { transform:translateY(-3px) rotate(6deg); } }
@media(prefers-reduced-motion:reduce) { .photo-status .trial-slip { animation:none!important; } }
.intake-preview img { display: block; width: auto; max-width: 100%; max-height: 200px; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.purpose-field { gap: 6px; font-size: 1rem; }
.purpose-field input { min-height: 50px; font-size: 1rem; padding-inline: 12px; }
.optional-details { border-block-start: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.optional-details summary { cursor: pointer; padding: 8px 0; font-weight: 680; }
.optional-details summary span { padding-left: 4px; color: #697798; font-size: .77rem; font-weight: 500; }
.optional-details .field { color: var(--ink); }
.submit-hero { width: 100%; min-height: 53px; font-size: 1rem; }
.intake-secondary { display: flex; justify-content: center; gap: 12px; margin-top: -8px; }
.intake-secondary .btn { min-height: 38px; }
.recent-intake ul { padding: 0 15px 7px; margin: 0; list-style: none; }
.recent-intake li + li { border-top: 1px solid var(--line); }
.recent-intake li button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 11px 2px; border: 0; background: none; color: var(--ink); text-align: left; font-size: .88rem; }
.recent-intake li button:hover strong { color: var(--accent-dark); text-decoration: underline; }
.recent-intake li button small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 19px 11px; }
.quick-filter { border: 1px solid #dce2ee; background: white; color: var(--ink); border-radius: 8px; padding: 7px 9px; min-height: 40px; font-size: .85rem; font-weight: 650; }
.quick-filter span { color: var(--muted); padding-left: 6px; font-variant-numeric: tabular-nums; }
.quick-filter:hover, .quick-filter[aria-pressed="true"] { color: var(--accent-dark); background: #f1eeff; border-color: #cfc5ff; }
.quick-filter[aria-pressed="true"] span { color: inherit; }
.row-request { display: flex; align-items: center; gap: 9px; }
.receipt-thumb { display: grid; place-items: center; width: 32px; height: 39px; flex: 0 0 auto; color: #667599; border-radius: 5px; background: #f0f2f9; overflow: hidden; }
.receipt-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.amount-cell.muted-amount { color: var(--muted); font-weight: 500; font-size: .82rem; }
.review-optional { margin-top: 12px; }
.review-submit { margin-top: 12px; }
.mobile-requests { display: none; }
.success-note { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; background: #e7f6ee; color: #165d44; border: 1px solid #c8e8d7; border-radius: 9px; padding: 9px 11px; font-size: .88rem; }

@media (max-width: 920px) {
  .intake-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 770px) {
  .intake-grid { gap: 12px; }
  .intake-form { padding: 15px; gap: 12px; }
  .photo-zone { padding: 16px 11px 13px; }
  .photo-buttons { gap: 6px; }
  .photo-buttons .btn { flex: 1 1 auto; }
  .quick-filters { padding-inline: 12px; }
  .filters input, .filters select, .field input, .field select, .field textarea { font-size: 1rem; }
  .data-frame { display: none; }
  .mobile-requests { display: grid; padding: 0 12px 8px; margin: 0; list-style: none; }
  .mobile-requests li + li { border-top: 1px solid var(--line); }
  .mobile-request { display: flex; gap: 8px; justify-content: space-between; align-items: center; text-align: left; width: 100%; padding: 12px 1px; border: 0; background: none; color: var(--ink); }
  .mobile-request:hover { color: var(--accent-dark); }
  .mobile-request strong { font-size: .9rem; }
  .mobile-request small { display: block; color: var(--muted); margin-top: 4px; }
  .mobile-request > span:last-child { text-align: right; white-space: nowrap; }
  .detail-review .detail-stack { display: contents; }
  .detail-review .detail-evidence > :first-child { order: -1; }
  .detail-review .detail-evidence > :first-child .receipt-img { max-height: 260px; }
  .review-submit { width: 100%; min-height: 48px; }
}

/* Department and group administration */
.test-controls { display: flex; align-items: center; gap: 17px; }
.context-select { border-right: 1px solid var(--line); padding-right: 13px; min-width: 0; }
.context-select small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.15; }
.context-select select { max-width: 151px; background: transparent; border: 0; padding: 1px 25px 1px 0; font-weight: 750; font-size: .85rem; color: var(--ink); text-overflow: ellipsis; }
.organization-groups { margin-bottom: 16px; }
.organization-filter { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.group-label { font-size: .9rem; font-weight: 720; color: var(--muted); }
.admin-period { min-height: 40px; border: 1px solid #d9dfeb; padding: 7px 29px 7px 10px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 650; font-size: .86rem; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(169px, 1fr)); gap: 10px; }
.group-card { min-width: 0; display: grid; gap: 5px; text-align: left; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px #19224406; }
.group-card:hover { border-color: #a69cea; }
.group-card[aria-pressed="true"] { border-color: #9687ee; background: #f3f0ff; box-shadow: 0 0 0 1px #9687ee inset; }
.group-card-heading { display: flex; align-items: center; gap: 8px; }
.group-card-heading strong { font-size: .96rem; overflow-wrap: anywhere; }
.group-card-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #eeebff; color: #5541bf; }
.group-card[aria-pressed="true"] .group-card-icon { background: #ded7ff; }
.group-card-meta { color: var(--muted); font-size: .82rem; }
.group-card-total { font-weight: 735; font-size: .9rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.group-card-total small { color: var(--muted); font-weight: 560; white-space: nowrap; }
.organization-form { display: grid; gap: 11px; }
.organization-form .dialog-actions { margin-top: 4px; }
.organization-table th { white-space: nowrap; }
@media (max-width: 770px) {
  .test-controls { gap: 8px; }
  .context-select { padding-right: 7px; }
  .context-select select { max-width: 115px; }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .group-card { padding: 9px; }
  .group-card-heading { gap: 5px; }
  .group-card-icon { width: 27px; height: 27px; }
  .organization-table .panel-head p { line-height: 1.4; }
}
@media (max-width: 450px) {
  .crumb > span { display: none; }
  .role-switch { gap: 5px; }
  .role-switch .avatar { display: none; }
  .context-select select { max-width: 100px; }
}

/* Quarterly reporting */
.report-controls { margin-bottom: 14px; padding: 13px 15px; }
.report-controls p { margin-top: 9px; color: var(--muted); font-size: .84rem; }
.report-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.report-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.report-layout > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.report-table-wrap { overflow-x: auto; }
.report-summary-table { min-width: 380px; }
.report-summary-table tbody th { background: transparent; color: var(--ink); font-size: .86rem; }
.report-summary-table td, .report-summary-table th { padding: 10px 11px; }
.report-summary-table thead th { white-space: nowrap; }
.report-entries { margin-top: 14px; }
.report-entries > summary { cursor: pointer; font-weight: 730; padding: 13px 18px; }

@media (max-width: 1050px) {
  .report-layout { grid-template-columns: 1fr; }
  .report-layout > :nth-child(2) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 770px) {
  .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-summary-table { min-width: 325px; }
  .report-summary-table td, .report-summary-table th { padding: 9px 6px; }
  .report-summary-table th:first-child { padding-left: 11px; }
  .report-summary-table td:last-child, .report-summary-table th:last-child { padding-right: 11px; }
}
@media print {
  .print-report { font-size: 10pt; }
  .print-report h2 { margin: 15px 0 6px; break-after: avoid; font-size: 12pt; }
  .print-report-meta, .print-report-basis { margin: 4px 0; }
  .print-report-basis { font-size: 9pt; }
  .print-report .report-table-wrap { overflow: visible; }
  .print-report table { min-width: 0; }
  .print-report thead { display: table-header-group; }
  .print-report tr { break-inside: avoid; }
  .print-report th, .print-report td, .print-report .report-summary-table tbody th { font-size: 9pt; padding: 5px 6px; border-color: #ddd; }
  .print-report-note { white-space: pre-wrap; overflow-wrap: anywhere; }
}

.parking-feature { display:flex;align-items:center;gap:13px;padding:12px 16px;margin:0 0 18px;border:1px solid #c9d5e0;border-radius:14px;background:#f5f9fc;color:#203651;text-decoration:none }
.parking-feature:hover { background:#ecf3fa }
.parking-feature img { flex:none;width:46px;height:52px;object-fit:cover;object-position:50% 38%;border-radius:5px }
.parking-feature span { display:grid;gap:2px }.parking-feature small { color:#526374;font-size:.85rem }
.parking-feature strong { font-size:1.03rem }.parking-feature b { margin-left:auto;flex:none;font-size:.88rem;color:#345375 }
@media(max-width:470px){.parking-feature{gap:9px;padding:9px 10px}.parking-feature strong{font-size:.94rem}.parking-feature b{font-size:.79rem}}

.trial-hint { margin:0; padding:10px clamp(13px,3vw,32px); background:#eff6f2; color:#264c3d; font-size:.9rem; line-height:1.5; }
@media print { .trial-hint {display:none} }

.test-settings{position:relative;z-index:3}
.test-settings summary{cursor:pointer;font-weight:650;color:var(--ink);border:1px solid var(--line);padding:10px 16px;border-radius:12px;min-height:44px}
.test-settings .test-controls{position:absolute;right:0;top:calc(100% + 6px);width:min(390px,90vw);max-height:70dvh;overflow:auto;flex-direction:column;align-items:stretch;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px #182e281c}
.test-settings small{margin-bottom:6px}
.test-settings .context-select{border:0;padding:0}
.test-settings .avatar{display:none}
