:root {
  --ink: #242126;
  --muted: #77727b;
  --line: #ece9ee;
  --paper: #fff;
  --subtle: #faf9fb;
  --accent: #f27550;
  --accent-hover: #db5c36;
  --accent-soft: #fff0ea;
  --purple: #765487;
  --purple-soft: #f1eaf6;
  --danger: #bc4e50;
  --danger-soft: #fff0f0;
  --success: #47856e;
  --success-soft: #eaf5ef;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html { color-scheme: light; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #fff; font: 14px/1.5 var(--font); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #e2d2ee; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
.icon { display: inline-block; width: 19px; height: 19px; object-fit: contain; flex: 0 0 19px; vertical-align: middle; }
.icon-button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.icon-button:hover { background: var(--subtle); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column; padding: 30px 18px 22px; border-right: 1px solid var(--line); background: #fff; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-photo { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; }
.brand strong { display: block; font-size: 17px; font-weight: 650; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.nav { display: grid; gap: 7px; margin-top: 40px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); background: transparent; text-align: left; font-size: 13px; font-weight: 500; }
.nav-item .icon { opacity: .5; }
.nav-item:hover { color: var(--ink); background: var(--subtle); }
.nav-item.active { border-color: #eadff0; color: var(--purple); background: var(--purple-soft); font-weight: 650; }
.nav-item.active .icon { opacity: .9; }
.sidebar-bottom { display: grid; gap: 18px; margin-top: auto; padding: 30px 12px 0; }
.connection { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.pulse { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--success); }
.quiet-button { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.quiet-button .icon { width: 15px; height: 15px; flex-basis: 15px; opacity: .5; }
.workspace { grid-column: 2; min-width: 0; padding: 34px 40px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1100px; margin: 0 auto 22px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 400; text-transform: none; }
.topbar h1 { margin: 0; color: #1d1a1f; font-size: 27px; font-weight: 650; line-height: 1.3; }
.profile { display: flex; align-items: center; gap: 9px; }
.profile span:last-child { display: grid; gap: 1px; }
.profile strong { font-size: 12px; font-weight: 600; }
.profile small { color: var(--muted); font-size: 10px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-weight: 600; }
#content, .notice { max-width: 1100px; margin-inline: auto; }
.notice { margin-bottom: 20px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--subtle); font-size: 11px; line-height: 1.55; }
#mode-notice { width: fit-content; margin-left: max(0px, calc((100% - 1100px) / 2)); margin-right: 0; padding: 6px 10px; border: 0; color: var(--purple); background: var(--purple-soft); font-size: 10px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 6px 0 26px; }
.metric { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 106px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 12px; font-size: 25px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric.warning strong { color: var(--purple); }
.metric.danger strong { color: var(--danger); }
.metric:nth-child(3) { background: #fff8f5; border-color: #f6e8e0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 13px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; color: var(--purple); background: transparent; font-size: 11px; font-weight: 600; }
.text-button .icon { width: 15px; height: 15px; flex-basis: 15px; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quick-link { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 100px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; text-align: left; }
.quick-link:hover { border-color: #d2bbdf; }
.quick-link > img { width: 68px; height: 68px; flex: 0 0 68px; object-fit: cover; border-radius: var(--radius); }
.quick-link > .quick-icon { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border-radius: var(--radius); background: var(--purple-soft); }
.quick-icon .icon { width: 26px; height: 26px; }
.quick-link-content { display: grid; gap: 4px; flex: 1; min-width: 0; }
.quick-link-content strong { font-size: 14px; font-weight: 600; }
.quick-link-content small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.quick-link > .icon { width: 17px; height: 17px; flex-basis: 17px; opacity: .4; }
.alert-list { display: grid; }
.alert { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 53px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.alert > .icon { opacity: .55; }
.alert strong { font-size: 12px; font-weight: 500; }
.alert button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0 6px 8px; border: 0; color: var(--purple); background: transparent; font-size: 11px; }
.alert button .icon { width: 15px; height: 15px; flex-basis: 15px; opacity: .5; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.split-grid > .panel { border: 0; border-radius: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.split-grid .panel-head { padding: 0 0 12px; }
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-head small { color: var(--muted); font-size: 10px; }
.data-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 12px; min-height: 90px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-row > :nth-child(2) { grid-column: 1; }
.data-row > :nth-child(3) { grid-column: 2; grid-row: 1; }
.data-row > :nth-child(4) { grid-column: 2; grid-row: 2; }
.data-row strong, .data-row span { min-width: 0; overflow-wrap: anywhere; }
.data-row strong { font-size: 12px; font-weight: 600; }
.data-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.money { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date { color: var(--muted); font-size: 10px; white-space: nowrap; }
.status { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; width: fit-content; padding: 3px 8px; border-radius: 30px; color: var(--success); background: var(--success-soft); font-size: 9px; font-weight: 500; text-transform: none; line-height: 1.5; }
.status.warning { color: var(--purple); background: var(--purple-soft); }
.status.danger { color: var(--danger); background: var(--danger-soft); }
.status.neutral { color: var(--muted); background: #f2f1f4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: var(--radius); font-size: 12px; font-weight: 600; }
.button.primary { color: #3d231c; background: var(--accent); }
.button.primary:hover { background: #f58a68; }
.button.secondary { color: var(--purple); border-color: #e6ddec; background: #fff; }
.button.secondary:hover { background: var(--purple-soft); }
.button.small { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.button .icon { width: 16px; height: 16px; flex-basis: 16px; }
.button.primary .icon { opacity: .8; }
.empty { padding: 32px 20px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
.searchbar { display: flex; gap: 9px; margin-bottom: 20px; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; padding-left: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--subtle); }
.search-field .icon { opacity: .35; width: 16px; height: 16px; flex-basis: 16px; }
.searchbar input { width: 100%; min-width: 0; padding: 12px; border: 0; border-radius: var(--radius); color: var(--ink); background: transparent; font-size: 12px; }
.participant { padding: 20px; border-bottom: 1px solid var(--line); }
.participant:last-child { border-bottom: 0; }
.participant-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.participant-person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.person-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: var(--radius); color: var(--purple); background: var(--purple-soft); font-size: 12px; font-weight: 500; }
.participant h3 { margin: 0; font-size: 14px; font-weight: 600; }
.participant-meta { margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.grant { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto; align-items: center; gap: 15px; margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.grant strong { font-size: 12px; font-weight: 500; }
.grant small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.participant-grant { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.participant-grant-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.participant-grant-head strong, .resource-list strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.participant-grant-head small, .resource-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.participant-grant-head .button { flex-shrink: 0; }
.grant-purchase-term { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.grant-purchase-term strong { font-weight: 500; color: var(--ink); }
.resource-head, .resource-list > li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(110px, 1fr); gap: 12px; }
.resource-head { padding: 10px 0 6px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.resource-head > :last-child { text-align: right; }
.resource-list { margin: 0; padding: 0; list-style: none; }
.resource-list > li { padding: 9px 0; border-top: 1px solid var(--line); }
.resource-deadline { text-align: right; }
.resource-list .resource-soon { color: #a34043; }
.resources-missing { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.material { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.material-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.material-heading { display: flex; gap: 13px; align-items: center; margin: 24px 0 13px; }
.material-type { display: grid; place-items: center; width: 52px; height: 56px; flex: 0 0 52px; border-radius: var(--radius); background: var(--purple-soft); }
.material-type.article { background: var(--accent-soft); }
.material-type .icon { width: 25px; height: 25px; }
.material h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.material p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.material-review { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.material footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 10px; }
.mailing-context { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.mailing { border-bottom: 1px solid var(--line); }
.mailing:last-child { border-bottom: 0; }
.mailing-summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 16px; padding: 17px 22px; list-style: none; cursor: pointer; }
.mailing-summary::-webkit-details-marker { display: none; }
.mailing-summary:hover { background: var(--subtle); }
.mailing-summary:focus-visible { outline-offset: -3px; }
.mailing-summary > .icon { opacity: .5; transition: transform .16s ease; }
.mailing[open] > .mailing-summary > .icon { transform: rotate(90deg); }
.mailing[open] > .mailing-summary { background: var(--subtle); }
.mailing-body { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.mailing-heading { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.mailing-heading strong { font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.mailing-heading .date { white-space: normal; }
.mailing-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mailing-stat { text-align: left; font-variant-numeric: tabular-nums; }
.mailing-stat span { display: block; color: var(--muted); font-size: 10px; }
.mailing-stat strong { display: block; margin: 6px 0 3px; font-size: 25px; font-weight: 600; }
.daily-increment { display: inline-block; padding: 2px 6px; border-radius: 20px; color: var(--purple); background: var(--purple-soft); font-size: 10px; white-space: nowrap; }
.daily-increment.unknown { color: var(--muted); background: var(--subtle); }
.mailing-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.mailing-history { margin-top: 18px; border-top: 1px solid var(--line); }
.mailing-history summary { padding: 13px 0; color: var(--ink); font-size: 11px; cursor: pointer; }
.mailing-history table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; font-variant-numeric: tabular-nums; }
.mailing-history th, .mailing-history td { padding: 10px 9px; border-top: 1px solid var(--line); text-align: right; overflow-wrap: anywhere; }
.mailing-history th:first-child { width: 25%; text-align: left; }
.mailing-history thead th { color: var(--muted); font-size: 10px; font-weight: 400; }
.mailing-history tbody th { font-weight: 400; }
.mailing-history .today { background: #faf7fc; }
.positive { color: var(--purple); font-weight: 600; }
.zero, .no-history { color: #a39da7; }
.getcourse-link { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; color: var(--purple); font-size: 11px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.getcourse-link .icon { width: 14px; height: 14px; flex-basis: 14px; opacity: .55; }
.getcourse-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.missing-link { color: var(--muted); font-size: 11px; line-height: 1.5; }
.audit-item { display: grid; grid-template-columns: 125px 150px minmax(0, 1fr); gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 11px; }
.audit-item:last-child { border-bottom: 0; }
.audit-item strong { font-weight: 500; }
.audit-item code { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.business-history > .section-head:first-child { margin-top: 0; }
.history-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.history-row:last-child { border-bottom: 0; }
.history-date { color: var(--muted); font-size: 10px; }
.history-description { min-width: 0; }
.history-description > strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.history-description > small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.history-description > .getcourse-link { margin-top: 5px; }
.history-result { display: grid; gap: 5px; justify-items: end; max-width: 160px; text-align: right; }
.history-result > small { color: var(--muted); font-size: 10px; }
.skeleton { min-height: 220px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius); animation: breathe 1.4s ease infinite alternate; }
@keyframes breathe { from { opacity: .45; } to { opacity: 1; } }
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 30px 18px; background: #fff; }
.login-panel { width: min(380px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.login-photo { width: 58px; height: 58px; margin-bottom: 24px; border-radius: 50%; object-fit: cover; }
.login-panel h1 { margin: 0; font-size: 27px; font-weight: 650; }
.login-copy { margin: 10px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.login-form input, .login-form select { width: 100%; height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.login-form .button { width: 100%; }
.form-error { min-height: 0; margin: 0; color: var(--danger); font-size: 11px; }
.form-error:not(:empty) { margin-top: 8px; }
.demo-hint { margin: 17px 0 0; color: var(--muted); font-size: 10px; }
dialog { width: min(460px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 16px 70px #30213920; }
dialog::backdrop { background: #27212d66; }
.dialog-card { position: relative; padding: 28px; }
.dialog-card h2 { margin: 0; padding-right: 28px; font-size: 22px; font-weight: 600; line-height: 1.4; }
.dialog-product { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }
.dialog-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f5f3f6; }
.dialog-close .icon { width: 16px; height: 16px; opacity: .5; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.period-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.period-picker label { position: relative; }
.period-picker input { position: absolute; opacity: 0; }
.period-picker span { display: grid; place-items: center; min-height: 43px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; }
.period-picker input:checked + span { color: var(--purple); border-color: #c4a5d6; background: var(--purple-soft); font-weight: 600; }
.period-picker input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.date-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 13px; padding: 14px 0; border-block: 1px solid var(--line); }
.date-preview span { color: var(--muted); font-size: 11px; }
.date-preview strong { font-size: 14px; font-weight: 600; text-align: right; }
.dialog-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.command-summary { margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--subtle); font-size: 12px; line-height: 1.9; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 17px; border: 1px solid #e6ddec; border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 5px 28px #33283c15; font-size: 12px; transform: translateY(15px); opacity: 0; pointer-events: none; transition: .18s ease; z-index: 100; }
.toast.show { transform: translateY(0); opacity: 1; }
.mobile-header, .mobile-nav { display: none; }
.overview .summary-grid { gap: 10px; margin: 0 0 20px; }
.overview .metric { min-height: 76px; padding: 10px 13px; justify-content: flex-start; gap: 5px; background: var(--subtle); border-color: var(--line); }
.overview .metric strong { margin-top: 0; font-size: 23px; }
.overview .metric.income strong { color: #346c58; }
.overview .section-head { align-items: center; margin: 20px 0 10px; }
.overview .section-head h2 { font-size: 15px; }
.attention-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 6px; border-radius: 50%; color: #a34043; background: var(--danger-soft); font-size: 11px; font-weight: 600; }
.overview .alert-list { gap: 6px; }
.overview .alert { min-height: 45px; padding: 5px 11px; gap: 9px; border: 0; border-left: 3px solid #cbb9d6; border-radius: 0 6px 6px 0; background: #f8f5fa; }
.overview .alert.danger { border-left-color: var(--danger); background: var(--danger-soft); }
.overview .alert.danger strong, .overview .alert.danger button { color: #9b393d; }
.overview .alert strong { font-weight: 500; line-height: 1.5; }
.overview .alert > .icon { width: 17px; height: 17px; opacity: .65; }
.overview .alert button { min-height: 34px; }
.overview .quick-links { gap: 10px; }
.overview .quick-link { min-height: 65px; gap: 10px; padding: 10px 12px; }
.overview .quick-link > img, .overview .quick-link > .quick-icon { width: 36px; height: 36px; flex-basis: 36px; }
.overview .quick-icon .icon { width: 19px; height: 19px; }
.overview .quick-link-content { gap: 1px; }
.overview .quick-link-content strong { font-size: 12px; }
.overview .quick-link-content small { font-size: 10px; }
.overview .split-grid { gap: 24px; margin-top: 24px; }
.overview .panel-head { min-height: 36px; padding-bottom: 8px; }
.overview .panel-head h3 { font-size: 14px; }
.overview .data-row { min-height: 70px; gap: 4px 10px; padding: 10px 0; }
.overview .data-row small { margin-top: 1px; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.access-grid > .empty { grid-column: 1 / -1; }
.access-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); }
.access-card strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.access-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.access-card-product strong { font-weight: 500; }
.access-card-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; margin-top: auto; }
.access-card-status small { margin: 0; }
.access-card > .button { width: 100%; min-height: 36px; }
.system-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.system-note > .icon { width: 14px; height: 14px; flex-basis: 14px; opacity: .4; }
.system-note .text-button { margin-left: auto; font-size: 10px; white-space: nowrap; }
.management-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.catalog-import { position: relative; cursor: pointer; overflow: hidden; }
.catalog-import-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.catalog-import input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.catalog-import:focus-within { outline: 3px solid #e2d2ee; outline-offset: 3px; }
.management-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(130px, 1fr); gap: 14px; }
.management label:not(.target-row):not(.catalog-import), .management legend { font-size: 11px; color: var(--muted); }
.management-fields label, .feedback-choice, .operation-reason { display: grid; gap: 6px; }
.management input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .management select, .management textarea { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; font-size: 12px; }
.management textarea { resize: vertical; }
.management-method { margin: 18px 0; }
.method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 480px; }
.method-options label { position: relative; }
.method-options input { position: absolute; opacity: 0; }
.method-options span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer; font-size: 12px; }
.method-options input:checked + span { color: var(--purple); border-color: #c4a5d6; background: var(--purple-soft); font-weight: 600; }
.method-options input:focus-visible + span { outline: 3px solid #e2d2ee; outline-offset: 3px; }
.method-options .icon { width: 17px; height: 17px; flex-basis: 17px; opacity: .7; }
.feedback-choice { max-width: 300px; margin-bottom: 20px; }
.management-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); align-items: start; gap: 28px; }
.management h2 { margin: 0; font-size: 16px; font-weight: 600; }
.catalog-head { display: grid; gap: 12px; margin-bottom: 8px; }
.catalog-course { border-bottom: 1px solid var(--line); padding: 12px 0; }
.catalog-course > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.catalog-course h3 { margin: 0; font-size: 13px; font-weight: 600; }
.catalog-course > header .icon-button { width: 30px; height: 30px; flex-basis: 30px; padding: 7px; border: 0; }
.target-row { display: flex; align-items: start; gap: 10px; min-height: 48px; padding: 10px 0; cursor: pointer; }
.target-row input { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--purple); }
.target-row strong { display: block; font-size: 12px; font-weight: 500; }
.target-row small { display: block; font-size: 10px; color: var(--muted); }
.target-row:has(input:disabled) { opacity: .5; cursor: default; }
.catalog-lessons > summary { width: fit-content; padding: 7px 0; font-size: 11px; color: var(--purple); cursor: pointer; }
.catalog-lessons > summary span { margin-left: 5px; color: var(--muted); }
.catalog-lessons > div { padding-left: 16px; }
.operation-reason { margin-top: 20px; }
.operation-preview { position: sticky; top: 24px; border-left: 1px solid var(--line); padding-left: 24px; min-width: 0; }
.selection-person { margin: 9px 0 14px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.selection-list { list-style: none; margin: 0; padding: 0; }
.selection-list li { position: relative; padding: 10px 33px 10px 0; border-top: 1px solid var(--line); }
.selection-list strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.selection-list small, .confirmation-items small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.selection-list .icon-button { position: absolute; right: 0; top: 8px; width: 28px; height: 28px; padding: 7px; border: 0; }
.selection-list .icon-button .icon { width: 14px; height: 14px; }
.selection-warning { display: block; margin-top: 5px; color: #9b393d; font-size: 10px; }
.empty-selection { margin: 16px 0; color: var(--muted); font-size: 12px; }
.operation-totals { margin: 10px 0; padding: 12px 0; border-block: 1px solid var(--line); font-size: 11px; }
.operation-totals div { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.operation-totals div:last-child { margin-bottom: 0; }
.operation-totals dt { color: var(--muted); }
.operation-totals dd { margin: 0; text-align: right; }
.operation-safety { padding: 10px 12px; border-left: 2px solid #c4a5d6; background: #f8f5fa; color: #665071; font-size: 11px; line-height: 1.6; }
.operation-preview > .button { width: 100%; margin-top: 12px; }
.operation-preview > .button:disabled { cursor: not-allowed; }
.management-history { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.management-command { border-bottom: 1px solid var(--line); }
.management-command > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; }
.management-command > summary::-webkit-details-marker { display: none; }
.management-command strong { display: block; font-size: 12px; font-weight: 500; }
.management-command small { display: block; font-size: 10px; color: var(--muted); }
.management-command > summary > .icon { width: 16px; height: 16px; opacity: .5; }
.management-command[open] > summary > .icon { transform: rotate(90deg); }
.management-command-body { padding-bottom: 14px; font-size: 11px; }
.management-command-body ul, .confirmation-items { padding-left: 18px; }
.management-command-body li, .confirmation-items li { margin-block: 7px; overflow-wrap: anywhere; }
#management-confirm { width: min(540px, calc(100% - 28px)); }
#management-confirm-content { font-size: 12px; }
@media (max-width: 1100px) {
  .workspace { padding: 28px 26px 50px; }
  .split-grid { grid-template-columns: 1fr; gap: 20px; }
  .grant { grid-template-columns: minmax(0, 1fr) auto; }
  .grant > :nth-child(3) { grid-column: 1; }
  .grant > :nth-child(4) { grid-column: 2; }
}
@media (max-width: 760px) {
  .app-shell { display: block; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; height: 63px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fffffffa; z-index: 30; }
  .mobile-header .brand-photo { width: 33px; height: 33px; flex-basis: 33px; }
  .mobile-header .brand strong { font-size: 15px; }
  .sidebar { display: none; top: 63px; bottom: calc(66px + env(safe-area-inset-bottom)); width: min(270px, 88vw); padding-top: 18px; box-shadow: 12px 12px 36px #29202f0a; }
  .sidebar.open { display: flex; }
  .sidebar .brand { display: none; }
  .sidebar .nav { margin: 0; }
  .workspace { padding: 22px 18px 30px; }
  .topbar { gap: 12px; margin-bottom: 15px; }
  .topbar h1 { font-size: 23px; }
  .eyebrow { font-size: 11px; }
  .profile span:last-child { display: none; }
  .avatar { width: 33px; height: 33px; flex-basis: 33px; font-size: 12px; }
  .notice { margin-bottom: 18px; font-size: 11px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
  .metric { min-height: 94px; padding: 13px; }
  .metric strong { font-size: 24px; }
  .section-head { margin-top: 25px; }
  .section-head h2 { font-size: 17px; }
  .quick-links { grid-template-columns: 1fr; gap: 10px; }
  .quick-link { min-height: 92px; padding: 13px; }
  .quick-link > img, .quick-link > .quick-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .alert { grid-template-columns: 22px minmax(0, 1fr) 24px; }
  .alert button { width: 24px; height: 32px; padding: 0; font-size: 0; }
  .alert button .icon { width: 17px; height: 17px; flex-basis: 17px; }
  .participant { padding: 17px; }
  .participant-head { gap: 7px; flex-wrap: wrap; }
  .participant-head > .status { margin-left: 48px; }
  .participant-person { align-items: flex-start; }
  .grant { gap: 10px; }
  .grant > :nth-child(2) { grid-column: 1; }
  .grant > :nth-child(4) { grid-column: 2; grid-row: 1 / 4; }
  .material-grid { grid-template-columns: 1fr; gap: 12px; }
  .material { padding: 17px; }
  .material h3 { font-size: 16px; }
  .mailing-summary { padding: 15px 17px; gap: 12px; }
  .mailing-body { padding: 17px; }
  .mailing-metrics { gap: 7px; }
  .mailing-stat span { font-size: 10px; }
  .mailing-history th, .mailing-history td { padding: 10px 4px; }
  .mailing-history thead th { font-size: 9px; }
  .daily-increment { font-size: 9px; padding-inline: 5px; }
  .audit-item { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 14px; }
  .history-date { grid-column: 1 / -1; }
  .history-result { max-width: 125px; }
  .mobile-nav { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; z-index: 40; }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 65px; padding: 8px 3px; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
  .mobile-nav button .icon { opacity: .4; }
  .mobile-nav button.active { color: var(--purple); font-weight: 650; }
  .mobile-nav button.active .icon { opacity: .9; }
  .dialog-card { padding: 24px 20px; }
  .dialog-card h2 { font-size: 21px; }
  .dialog-actions .button { flex: 1; }
  .toast { left: 16px; right: 16px; bottom: 78px; }
  .overview .summary-grid { gap: 8px; margin-bottom: 17px; }
  .overview .metric { min-height: 68px; padding: 9px 11px; gap: 4px; }
  .overview .metric span { font-size: 10px; }
  .overview .metric strong { font-size: 21px; }
  .overview .section-head { margin-top: 17px; margin-bottom: 9px; }
  .overview .alert { grid-template-columns: 18px minmax(0, 1fr) 32px; padding: 5px 8px; gap: 7px; }
  .overview .alert strong { font-size: 11px; }
  .overview .alert button { width: 32px; height: 36px; justify-content: center; }
  .overview .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .overview .quick-link { min-height: 65px; padding: 9px; gap: 8px; }
  .overview .quick-link > img, .overview .quick-link > .quick-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .overview .quick-link > .icon { display: none; }
  .overview .quick-link-content strong { font-size: 11px; }
  .overview .quick-link-content small { font-size: 10px; }
  .overview .split-grid { margin-top: 20px; gap: 20px; }
  .access-grid { gap: 8px; }
  .access-card { padding: 10px; }
  .system-note { flex-wrap: wrap; }
  .management-layout { grid-template-columns: 1fr; gap: 24px; }
  .management-fields { grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; }
  .management input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .management select, .management textarea { padding: 10px 9px; }
  .operation-preview { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .management-command > summary { grid-template-columns: minmax(0, 1fr) 16px; }
  .management-command > summary > .status { grid-column: 1; grid-row: 2; }
  .management-command > summary > .icon { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
