:root {
  color-scheme: light;
  --canvas: #f5f6f3;
  --surface: #ffffff;
  --surface-subtle: #eef0ec;
  --ink: #111311;
  --ink-soft: #323632;
  --muted: #6a706a;
  --line: #daddd7;
  --line-strong: #bfc4bd;
  --green: #246744;
  --green-dark: #18482f;
  --green-soft: #e7f1eb;
  --amber: #8a5b12;
  --amber-soft: #f7edd8;
  --danger: #a82b21;
  --danger-soft: #f9e9e7;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 14px 32px rgba(17, 19, 17, 0.1);
  --shell: 1320px;
  --content: 1040px;
  --header-height: 68px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.55; letter-spacing: 0; }
body, button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, input, select, textarea { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { overflow-wrap: anywhere; }
h1 { margin-bottom: 14px; font-size: 42px; line-height: 1.12; font-weight: 720; }
h2 { margin-bottom: 10px; font-size: 25px; line-height: 1.25; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.3; }
p { margin-bottom: 16px; color: var(--muted); }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow, .narrow-page { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.narrow-page { width: 100%; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--radius); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.muted, small { color: var(--muted); }
.optional { color: var(--muted); font-size: 13px; font-weight: 500; }

.campus-topbar, .topbar { position: sticky; z-index: 100; top: 0; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.campus-topbar-inner, .topbar-inner { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.campus-brand, .brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 760; white-space: nowrap; }
.campus-brand img { width: 30px; height: 30px; }
.brand img { width: 138px; max-height: 32px; }
.campus-nav, .nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.campus-nav a, .nav > a { min-height: 38px; display: inline-flex; align-items: center; padding: 7px 11px; color: var(--muted); border-radius: var(--radius); font-size: 14px; font-weight: 650; white-space: nowrap; }
.campus-nav a:hover, .campus-nav a[aria-current="page"], .nav > a:hover, .nav > a[aria-current="page"] { background: var(--surface-subtle); color: var(--ink); }
.campus-actions, .nav { justify-content: flex-end; }
.campus-actions { display: flex; align-items: center; gap: 8px; min-width: 92px; min-height: 42px; }
.header-placeholder { width: 88px; height: 36px; border-radius: var(--radius); background: var(--surface-subtle); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center; }
.button:hover { background: #2a2d2a; border-color: #2a2d2a; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--surface-subtle); }
.button.quiet { background: transparent; color: var(--ink); border-color: transparent; }
.button.quiet:hover { background: var(--surface-subtle); }
.button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.46; }
.icon-button { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius); background: transparent; }
.icon-button:hover { background: var(--surface-subtle); }
.bell-icon { position: relative; width: 16px; height: 16px; display: block; border: 2px solid var(--ink); border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom: 0; }
.bell-icon::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: -3px; height: 2px; background: var(--ink); }
.bell-icon::after { content: ""; position: absolute; left: 5px; bottom: -7px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.notification-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; display: grid; place-items: center; padding-inline: 4px; background: var(--danger); color: #fff; border: 2px solid #fff; border-radius: 8px; font-size: 9px; font-weight: 800; }

.account-menu { position: relative; }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-button { min-width: 44px; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 7px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.account-button:hover, .account-menu[open] .account-button { background: var(--surface-subtle); }
.account-avatar, .account-page-avatar { position: relative; flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 800; }
.account-avatar img, .account-page-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-summary-copy { min-width: 0; display: grid; line-height: 1.2; }
.account-summary-copy strong, .account-summary-copy span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-copy strong { font-size: 13px; }
.account-summary-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-panel { position: absolute; z-index: 120; top: calc(100% + 9px); right: 0; width: min(330px, calc(100vw - 24px)); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.account-panel-head { display: flex; align-items: center; gap: 11px; padding: 4px 4px 12px; }
.account-panel-head > div { min-width: 0; display: grid; }
.account-panel-head strong, .account-panel-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel-head span { color: var(--muted); font-size: 13px; }
.account-school { padding: 10px; margin: 0 0 10px; background: var(--surface-subtle); border-radius: var(--radius); font-size: 13px; }
.account-actions { display: grid; border-top: 1px solid var(--line); padding-top: 7px; }
.account-actions a, .account-actions button { min-height: 40px; display: flex; align-items: center; width: 100%; padding: 8px 10px; background: transparent; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 650; text-align: left; }
.account-actions a:hover, .account-actions button:hover { background: var(--surface-subtle); }

.segmented-control { display: inline-flex; max-width: 100%; padding: 3px; background: var(--surface-subtle); border-radius: var(--radius); }
.segmented-control button { min-height: 34px; padding: 6px 13px; background: transparent; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.segmented-control button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(17, 19, 17, 0.08); }

.campus-page, .page-main, .app-main { min-height: calc(100vh - var(--header-height)); padding: 48px 0 80px; }
.page-heading, .module-heading, .detail-heading, .page-header, .admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.page-heading > div, .module-heading > div, .detail-heading > div, .page-header > div { min-width: 0; }
.page-heading p:last-child, .module-heading p:last-child, .detail-heading p:last-child, .page-header p:last-child { max-width: 720px; margin-bottom: 0; }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2, .section-head p:last-child { margin-bottom: 0; }
.section-head > a { color: var(--green); font-weight: 700; }
.actions, .context-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.auth-required { max-width: 660px; padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.auth-required p { max-width: 520px; }

.login-page { background: var(--ink); }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 32px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left)); }
.login-card { width: min(100%, 470px); padding: 38px; background: var(--surface); border-radius: var(--radius-lg); }
.login-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 72px; font-weight: 800; }
.login-brand img { width: 30px; height: 30px; }
.login-copy h1 { font-size: 48px; }
.login-copy p:last-child { max-width: 350px; }
.login-button { width: 100%; min-height: 52px; margin-top: 22px; }
.login-status { min-height: 22px; margin: 14px 0 0; font-size: 13px; text-align: center; }
.login-status.ready { color: var(--green); }
.login-status.error { color: var(--danger); }
.login-links { display: flex; justify-content: center; gap: 20px; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.campus-welcome { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 48px; margin: 8px 0 58px; }
.campus-welcome h1 { max-width: 780px; font-size: 50px; }
.campus-welcome > div > p:last-child { margin-bottom: 0; }
.notice-summary { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.notice-summary:hover { border-color: var(--line-strong); }
.notice-summary > span:nth-child(2) { min-width: 0; display: grid; }
.notice-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
a.product-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.product-symbol { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 46px; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 20px; font-weight: 800; }
.homework-product .product-symbol { background: var(--green); }
.class-product .product-symbol { background: var(--ink); }
.zongping-product .product-symbol { background: var(--amber); }
.future-product .product-symbol { background: var(--surface-subtle); color: var(--ink); }
.product-status { position: absolute; top: 24px; right: 20px; padding: 4px 7px; background: var(--surface-subtle); border-radius: var(--radius-sm); color: var(--muted); font-size: 11px; font-weight: 700; }
.product-status.active { background: var(--green-soft); color: var(--green-dark); }
.product-status.pending { background: var(--amber-soft); color: var(--amber); }
.product-card > div { flex: 1; }
.product-card h3 { font-size: 23px; }
.product-card p { margin-bottom: 0; }
.product-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 22px; color: var(--ink); font-size: 13px; font-weight: 750; }
.product-action.muted { color: var(--muted); }
.campus-context-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.campus-context-band h2, .campus-context-band p:last-child { margin-bottom: 0; }
.invitation-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 18px; background: var(--amber-soft); border-radius: var(--radius-lg); }
.invitation-strip p { margin: 2px 0 0; color: var(--amber); }

.module-heading { margin-bottom: 42px; }
.access-chip, .badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 5px 9px; background: var(--surface-subtle); color: var(--muted); border-radius: var(--radius-sm); font-size: 12px; font-weight: 750; }
.access-chip.granted, .badge.approved, .badge.active, .badge.verified, .badge.completed { background: var(--green-soft); color: var(--green-dark); }
.badge.pending_review, .badge.pending, .badge.recording, .badge.under_review { background: var(--amber-soft); color: var(--amber); }
.badge.rejected, .badge.removed, .badge.needs_manual_review, .badge.resubmit_required { background: var(--danger-soft); color: var(--danger); }
.badge.large { padding: 7px 11px; font-size: 13px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module-card { min-height: 174px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.module-card:hover { border-color: var(--ink); }
.module-card.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.module-card.primary p, .module-card.primary .module-index { color: #bfc4bd; }
.module-card.accent { border-top: 3px solid var(--green); }
.module-card h2 { font-size: 22px; }
.module-card p { margin-bottom: 0; }
.module-index { color: var(--green); font-size: 12px; font-weight: 800; }
.module-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); }
.module-note p { margin: 0; }
.module-note a { color: var(--green); font-weight: 700; }

.filter-panel { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .compact-select span { font-size: 13px; font-weight: 720; }
.field small { line-height: 1.4; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); outline: 0; }
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--green); }
.form, .profile-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.checkbox-line input { flex: 0 0 auto; margin-top: 2px; }
.scope-note, .form-note, .community-notice { padding: 12px 14px; margin: 0; background: var(--green-soft); color: var(--green-dark); border-radius: var(--radius); font-size: 13px; }
.list-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.list-summary p { margin: 0; color: var(--ink); font-weight: 700; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource-card { min-width: 0; min-height: 150px; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.resource-card:hover { border-color: var(--ink); }
.resource-media { width: 88px; height: 104px; display: grid; place-items: center; overflow: hidden; background: var(--surface-subtle); border-radius: var(--radius); }
.resource-media img { width: 100%; height: 100%; object-fit: cover; }
.file-kind { display: grid; place-items: center; min-width: 48px; min-height: 38px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 11px; font-weight: 800; }
.resource-copy { min-width: 0; display: grid; align-content: center; }
.resource-copy > strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.resource-kicker { margin-bottom: 5px; color: var(--green); font-size: 11px; font-weight: 750; }
.resource-description { display: -webkit-box; overflow: hidden; margin-top: 7px; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
.resource-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.resource-arrow { color: var(--muted); }
.status-media { height: 88px; }
.status-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface); border-radius: 50%; font-weight: 800; }
.status-mark.approved { color: var(--green); }
.status-mark.rejected, .status-mark.needs_manual_review, .status-mark.resubmit_required { color: var(--danger); }
.mine-filter { margin-bottom: 20px; }

.upload-page { max-width: var(--shell); }
.upload-workspace { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1.2fr); align-items: start; gap: 16px; }
.upload-fields, .file-uploader { display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.drop-zone { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 22px; background: var(--surface-subtle); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); cursor: pointer; text-align: center; }
.drop-zone:hover, .drop-zone.dragging { background: var(--green-soft); border-color: var(--green); }
.drop-zone input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.drop-symbol { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 5px; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 20px; }
.upload-queue { display: grid; gap: 8px; }
.upload-item { min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.upload-item.failed { border-color: #dfaaa5; background: var(--danger-soft); }
.upload-item.completed { border-color: #acd1ba; }
.upload-preview { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; background: var(--surface-subtle); border-radius: var(--radius); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-item-copy { min-width: 0; display: grid; gap: 3px; }
.upload-item-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-copy > span, .upload-item-copy small { font-size: 11px; }
progress { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: var(--radius-sm); background: var(--surface-subtle); }
progress::-webkit-progress-bar { background: var(--surface-subtle); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.upload-item-actions { display: grid; justify-items: stretch; gap: 5px; }
.icon-text-button { min-height: 30px; padding: 4px 8px; background: transparent; color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; }
.icon-text-button:hover { background: var(--surface-subtle); color: var(--ink); }
.upload-submit { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.upload-submit > .actions { justify-content: space-between; }
.upload-result { margin-top: 18px; }

.notification-page, .account-page, .detail-page, .profile-page { max-width: var(--content); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.notification-toolbar p { margin: 0; }
.notification-list { display: grid; gap: 8px; }
.notification-item { min-height: 104px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
a.notification-item:hover { border-color: var(--ink); }
.notification-item.unread { border-left: 3px solid var(--green); }
.notification-source { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); font-weight: 800; }
.source-class { background: var(--amber); }
.source-school, .source-homework { background: var(--green); }
.notification-copy { min-width: 0; display: grid; gap: 3px; }
.notification-copy > span:last-child { color: var(--muted); font-size: 13px; }
.notification-meta { color: var(--muted); font-size: 11px; }
.notification-side { display: grid; justify-items: end; gap: 10px; color: var(--muted); font-size: 11px; }
.unread-dot { color: var(--green); font-weight: 800; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }

.account-overview { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(400px, 1.2fr); gap: 16px; align-items: stretch; }
.account-identity { min-height: 250px; display: flex; align-items: flex-end; gap: 18px; padding: 26px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.account-identity h2 { margin-bottom: 2px; font-size: 28px; }
.account-identity p { margin: 0; color: #bfc4bd; }
.account-page-avatar { width: 64px; height: 64px; background: #fff; color: var(--ink); font-size: 22px; }
.account-command-list { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.account-command-list > button, .account-command-list > a { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.account-command-list > :last-child { border-bottom: 0; }
.account-command-list > button:hover, .account-command-list > a:hover { background: var(--surface-subtle); }
.account-command-list span:first-child { min-width: 0; display: grid; }
.account-command-list small { margin-top: 3px; }
.account-command-list .danger-command strong { color: var(--danger); }
.account-context { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.account-context dl, .detail-definition, .status-list, .confirmation-list { display: grid; grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr); margin: 0; }
.account-context dt, .account-context dd, .detail-definition dt, .detail-definition dd, .status-list dt, .status-list dd, .confirmation-list dt, .confirmation-list dd { min-width: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-context dt, .detail-definition dt, .status-list dt, .confirmation-list dt { color: var(--muted); font-size: 13px; }

.detail-heading { align-items: flex-start; }
.detail-heading h1 { max-width: 820px; }
.detail-description { max-width: 780px; font-size: 17px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 32px; }
.attachment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.attachment-card { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.attachment-preview-button { min-width: 0; padding: 0; background: transparent; cursor: pointer; text-align: left; }
.attachment-media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.attachment-media img { width: 100%; height: 100%; object-fit: cover; }
.attachment-type { min-width: 70px; min-height: 48px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: 13px; font-weight: 800; }
.attachment-copy { display: grid; gap: 4px; min-width: 0; padding: 13px; }
.attachment-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-download { margin: 0 12px 12px; }
.detail-sidebar { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: 20px; }
.detail-meta-block { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.detail-actions { display: grid; gap: 8px; }
.preview-dialog .dialog-inner { width: min(960px, calc(100vw - 28px)); }
.preview-body { min-height: 280px; display: grid; place-items: center; padding: 0; background: #202320; }
.preview-image { max-width: 100%; max-height: 72vh; object-fit: contain; }
.preview-pdf { width: 100%; height: min(72vh, 760px); border: 0; background: #fff; }
.detail-skeleton { display: grid; gap: 34px; }
.skeleton-block { height: 130px; background: var(--surface-subtle); border-radius: var(--radius-lg); }
.skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skeleton-grid span { height: 300px; background: var(--surface-subtle); border-radius: var(--radius-lg); }

.daily-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-lg); }
.daily-status span { color: var(--muted); }
.daily-status.rest, .daily-status.neutral { border-left-color: var(--line-strong); }
.assignment-list, .calendar-list { display: grid; gap: 8px; }
.assignment-strip, .calendar-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.assignment-strip summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.assignment-strip summary::-webkit-details-marker { display: none; }
.assignment-summary { min-width: 0; display: grid; gap: 5px; }
.assignment-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.assignment-brief { color: var(--muted); }
.disclosure-mark { font-size: 20px; }
.assignment-strip[open] .disclosure-mark { transform: rotate(45deg); }
.assignment-detail { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.assignment-detail > p { padding-top: 16px; }
.assignment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; cursor: pointer; text-align: left; }
.calendar-row:hover { border-color: var(--ink); }

.membership-section { margin-bottom: 36px; }
.membership-list { display: grid; gap: 8px; }
.membership-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.membership-row h3, .membership-row p { margin-bottom: 0; }
.profile-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 34px; }
.profile-progress { position: sticky; top: calc(var(--header-height) + 24px); }
.profile-progress ol { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.profile-progress li { display: flex; align-items: center; gap: 10px; padding: 13px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.profile-progress li span { color: var(--green); font-size: 11px; }
.profile-wizard { display: grid; gap: 14px; }
.wizard-section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.wizard-heading { display: flex; gap: 14px; margin-bottom: 22px; }
.wizard-heading > span { color: var(--green); font-size: 12px; font-weight: 800; }
.wizard-heading h2, .wizard-heading p { margin-bottom: 3px; }
.choice-field, .permission-options { min-width: 0; padding: 0; margin: 18px 0; border: 0; }
.choice-field legend, .permission-options legend { margin-bottom: 10px; font-weight: 720; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-option { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }

.business-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.business-nav > button, .business-more > summary { min-height: 38px; padding: 8px 12px; background: transparent; border-radius: var(--radius); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 720; list-style: none; }
.business-nav > button[aria-pressed="true"], .business-nav > button:hover, .business-more > summary:hover { background: var(--ink); color: #fff; }
.business-more { position: relative; }
.business-more > summary::-webkit-details-marker { display: none; }
.business-more > div { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; min-width: 150px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.business-more > div button { min-height: 36px; padding: 7px 10px; background: transparent; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.business-more > div button:hover { background: var(--surface-subtle); }
.admin-content { min-height: 460px; }
.admin-workspace { padding: 24px 0; }
.admin-overview-feed { display: grid; gap: 10px; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-toolbar { display: flex; justify-content: flex-end; margin: 10px 0 14px; }
.activity-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activity-strip { align-items: flex-start; }
.activity-strip-copy { min-width: 0; }
.activity-strip-copy p + p { color: var(--muted); font-size: 12px; }
.activity-dialog-inner { width: min(760px, calc(100vw - 28px)); }
.activity-detail { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.activity-detail-actions { display: grid; gap: 10px; margin-bottom: 14px; }
.lottery-control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lottery-control input { width: 120px; min-height: 42px; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.toggle-line { display: flex; align-items: center; gap: 9px; min-height: 42px; font-weight: 720; }
.toggle-line input { width: 18px; height: 18px; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { min-height: 130px; display: grid; align-content: space-between; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.metric strong { font-size: 30px; }
.metric span { color: var(--muted); font-size: 13px; }
.strip-list, .log-list { display: grid; gap: 8px; }
.management-strip, .review-strip, .log-strip { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: left; }
button.review-strip { cursor: pointer; }
button.review-strip:hover { border-color: var(--ink); }
.management-strip p, .review-strip p { margin: 4px 0 0; }
.strip-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.strip-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.inline-field { grid-template-columns: auto minmax(160px, 280px) auto; align-items: center; }
.split-panels { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: 26px; }
.staff-form { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.permission-options { display: grid; gap: 8px; }
.permission-options label { display: flex; align-items: center; gap: 8px; }
.log-strip summary { width: 100%; display: grid; grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) auto; gap: 12px; cursor: pointer; list-style: none; }
.log-strip summary::-webkit-details-marker { display: none; }
.log-strip summary > *, .log-primary { min-width: 0; }
.log-primary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.log-primary strong, .log-target, .log-actor, .log-detail dd { overflow-wrap: anywhere; }
.log-detail { width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.log-detail dl { display: grid; grid-template-columns: minmax(88px, 0.3fr) minmax(0, 1fr); margin: 0; }
.log-detail dt, .log-detail dd { min-width: 0; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.log-detail dt { color: var(--muted); font-size: 13px; }
.review-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-file { min-width: 0; }
.review-file img, .review-file iframe { width: 100%; max-height: 400px; object-fit: contain; border: 1px solid var(--line); }

.dialog { max-width: none; padding: 0; background: transparent; border: 0; }
.dialog::backdrop { background: rgba(17, 19, 17, 0.58); }
.dialog-inner { width: min(600px, calc(100vw - 28px)); max-height: min(88vh, 860px); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin-bottom: 0; }
.dialog-close { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface-subtle); border-radius: var(--radius); cursor: pointer; font-size: 22px; }
.dialog-body { padding: 20px; }
.dialog-message { color: var(--ink-soft); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dialog-steps { padding-left: 22px; color: var(--ink-soft); }

.toast-region { position: fixed; z-index: 300; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(390px, calc(100vw - 36px)); display: grid; gap: 8px; }
.toast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.toast-marker { width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.toast.success .toast-marker { background: #69c58e; }
.toast.error .toast-marker { background: #f4847a; }
.toast-copy { overflow-wrap: anywhere; }
.toast-close { width: 28px; height: 28px; background: transparent; color: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 20px; }

.state-view { grid-column: 1 / -1; min-height: 210px; display: grid; justify-items: center; align-content: center; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.state-view h2 { margin: 7px 0; font-size: 20px; }
.state-view p { max-width: 520px; margin-bottom: 16px; }
.state-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-subtle); border-radius: 50%; font-weight: 800; }
.state-view.error .state-mark, .state-view.forbidden .state-mark { background: var(--danger-soft); color: var(--danger); }
.state-view.success .state-mark { background: var(--green-soft); color: var(--green); }
.empty { min-height: 110px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 24px; color: var(--muted); text-align: center; }
.empty.compact { min-height: 100px; background: var(--surface-subtle); border-radius: var(--radius); }
.message { padding: 16px; background: var(--amber-soft); color: var(--amber); border-radius: var(--radius); }
.message.error { background: var(--danger-soft); color: var(--danger); }
.loading { color: var(--muted); }
.skeleton-group { min-height: 150px; display: grid; align-content: center; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.skeleton-line { height: 13px; background: var(--surface-subtle); border-radius: var(--radius-sm); animation: skeleton-pulse 1.4s ease-in-out infinite; }
.skeleton-line.line-1 { width: 46%; }
.skeleton-line.line-2 { width: 82%; }
.skeleton-line.line-3 { width: 64%; }
@keyframes skeleton-pulse { 50% { opacity: 0.48; } }

.topbar .nav { display: flex; }
.page-main .page-header { padding-top: 10px; }
.prose { display: grid; gap: 14px; }
.prose section { padding: 24px 0; border-top: 1px solid var(--line); }
.prose li { margin: 8px 0; color: var(--ink-soft); }
.footer { padding: 24px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner, .footer-links { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { justify-content: flex-end; color: var(--muted); font-size: 13px; }
.directory-search { max-width: 680px; margin-bottom: 38px; }
.directory-search > label { display: block; margin-bottom: 7px; font-weight: 720; }
.directory-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.directory-section { margin-top: 34px; }
.space-directory, .candidate-list { display: grid; gap: 8px; }
.space-row, .candidate-row, .space-card, .platform-map, .workflow-step, .policy-item, .stat { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.space-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.space-row p, .candidate-row p { margin-bottom: 0; }
.choice-grid, .space-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero, .band { padding: 52px 0; }
.surface { background: var(--surface); }
.platform-hero-grid, .policy-grid, .workflow, .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workflow, .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-copy { max-width: 700px; }
.learning-notice { margin-top: 18px; color: var(--amber); }
.form-note { background: var(--amber-soft); color: var(--amber); }

@media (max-width: 1060px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { min-height: 270px; }
  .upload-workspace { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
  .account-overview { grid-template-columns: 1fr 1.2fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .activity-toolbar { justify-content: stretch; }
  .activity-toolbar .compact-select { width: 100%; }
  .lottery-control { align-items: stretch; flex-direction: column; }
  .lottery-control input, .lottery-control .button { width: 100%; }
}

@media (max-width: 820px) {
  :root { --header-height: 104px; }
  .shell, .narrow { width: min(calc(100% - 32px), var(--shell)); }
  .campus-topbar-inner { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 9px 0 8px; }
  .campus-brand { min-height: 42px; }
  .campus-actions { grid-column: 2; grid-row: 1; }
  .campus-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  .campus-nav::-webkit-scrollbar { display: none; }
  .topbar-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .topbar .nav { overflow-x: auto; }
  .account-summary-copy { display: none; }
  .campus-page, .page-main, .app-main { padding-top: 34px; }
  .campus-welcome { grid-template-columns: 1fr; gap: 24px; margin-bottom: 42px; }
  .campus-welcome h1 { font-size: 42px; }
  .notice-summary { max-width: 420px; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel .button { width: 100%; }
  .resource-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-row: 1; }
  .detail-meta-block { padding: 0 0 20px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .profile-workspace { grid-template-columns: 1fr; }
  .profile-progress { position: static; overflow-x: auto; }
  .profile-progress ol { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .profile-progress li { padding-right: 14px; }
  .account-overview { grid-template-columns: 1fr; }
  .account-identity { min-height: 210px; }
  .split-panels { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .inline-field { grid-template-columns: auto minmax(0, 1fr) auto; }
}

@media (max-width: 620px) {
  :root { --header-height: 101px; }
  body { font-size: 15px; }
  h1 { font-size: 34px; }
  h2 { font-size: 22px; }
  .shell, .narrow { width: min(calc(100% - 24px), var(--shell)); }
  .campus-brand span { font-size: 15px; }
  .campus-nav { gap: 2px; }
  .campus-nav a { min-height: 34px; padding: 6px 8px; font-size: 12px; }
  .campus-page, .page-main, .app-main { padding: 28px 0 max(58px, env(safe-area-inset-bottom)); }
  .page-heading, .module-heading, .detail-heading, .page-header, .admin-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .page-heading > .button, .page-header > .button { width: 100%; }
  .back-link { margin-bottom: 18px; }
  .login-main { align-items: center; padding: 20px; }
  .login-card { padding: 28px 22px; }
  .login-brand { margin-bottom: 54px; }
  .login-copy h1 { font-size: 42px; }
  .campus-welcome h1 { font-size: 36px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card { min-height: 242px; padding: 16px; }
  .product-symbol { width: 40px; height: 40px; margin-bottom: 34px; font-size: 17px; }
  .product-status { top: 17px; right: 12px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-card h3 { font-size: 18px; }
  .product-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 13px; }
  .product-action { font-size: 12px; }
  .campus-context-band { align-items: flex-start; flex-direction: column; }
  .context-actions { width: 100%; }
  .context-actions .button { flex: 1 1 140px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 142px; padding: 18px; }
  .module-note { grid-template-columns: 1fr; gap: 6px; }
  .filter-panel { grid-template-columns: 1fr; padding: 14px; }
  .list-summary { align-items: flex-start; flex-direction: column; gap: 9px; }
  .resource-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .resource-media { width: 72px; height: 88px; }
  .resource-arrow { display: none; }
  .resource-description { -webkit-line-clamp: 1; }
  .segmented-control { width: 100%; overflow-x: auto; }
  .segmented-control button { flex: 1 0 auto; }
  .upload-fields, .file-uploader { padding: 17px; }
  .form-row { grid-template-columns: 1fr; }
  .upload-item { grid-template-columns: 52px minmax(0, 1fr); }
  .upload-preview { width: 52px; height: 52px; }
  .upload-item-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-item-actions > * { width: 100%; }
  .upload-submit > .actions { align-items: stretch; flex-direction: column; }
  .upload-submit .button { width: 100%; }
  .notification-toolbar { align-items: flex-start; flex-direction: column; }
  .notification-item { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .notification-source { width: 38px; height: 38px; }
  .notification-side { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; }
  .attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .attachment-copy { padding: 10px; }
  .attachment-download { margin: 0 8px 8px; }
  .detail-heading .badge { align-self: flex-start; }
  .daily-status { align-items: flex-start; flex-direction: column; gap: 4px; }
  .assignment-strip summary { min-height: 74px; padding: 14px; }
  .assignment-detail { padding: 0 14px 14px; }
  .assignment-actions .button { flex: 1 1 130px; }
  .membership-row { align-items: flex-start; flex-direction: column; }
  .membership-row .actions { width: 100%; }
  .membership-row .button { flex: 1 1 100px; }
  .wizard-section { padding: 17px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .business-nav > button, .business-more > summary { width: 100%; min-width: 0; padding-inline: 6px; text-align: center; }
  .business-more > div { right: 0; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 108px; padding: 14px; }
  .management-strip, .review-strip, .log-strip { align-items: flex-start; flex-direction: column; }
  .log-strip summary { grid-template-columns: minmax(0, 1fr); }
  .strip-actions { width: 100%; justify-content: flex-start; }
  .strip-actions .button { flex: 1 1 120px; }
  .inline-field { grid-template-columns: 1fr; }
  .review-files { grid-template-columns: 1fr; }
  .dialog-inner { max-height: calc(100vh - 20px - env(safe-area-inset-bottom)); }
  .dialog-actions .button { flex: 1 1 120px; }
  .toast-region { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .platform-hero-grid, .policy-grid, .workflow, .stats-grid { grid-template-columns: 1fr; }
  .space-directory { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .product-card { min-height: 232px; padding: 14px; }
  .product-card h3 { font-size: 17px; }
  .attachment-grid { grid-template-columns: 1fr; }
  .business-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
