:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #fff;
  --subtle: #f1f4fb;
  --ink: #171e2c;
  --muted: #5c687d;
  --line: #e3e8f1;
  --control-line: #98a3b6;
  --accent: #344dd3;
  --accent-dark: #293fbb;
  --accent-soft: #e9edff;
  --amber: #8c4b04;
  --red: #b52742;
  --green: #126752;
  --indigo: #5c429e;
  --blue-bg: #e9efff;
  --amber-bg: #fff2dc;
  --red-bg: #ffebef;
  --green-bg: #e1f4ec;
  --indigo-bg: #f1ebff;
  --radius: 20px;
  --space: 24px;
  --shadow: 0 2px 7px #18284408, 0 12px 28px #18284404;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { opacity: .56; cursor: wait; }
a { color: var(--accent); text-decoration: none; }
a:where(:hover) { color: var(--accent-dark); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:where(h1, h2, h3, h4, p, dl, dd) { margin: 0; }
svg { display: block; flex: 0 0 auto; }
[hidden] { display: none !important; }
input, select, textarea {
  display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--control-line);
  border-radius: 10px; color: var(--ink); background: var(--surface);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"], input[type="radio"] { display: inline-block; width: 18px; min-height: 18px; accent-color: var(--accent); }
textarea { resize: vertical; }
select { padding-right: 25px; }
.muted { color: var(--muted); }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.initial-state { display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 100dvh; color: var(--muted); }

.layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; display: flex; flex-direction: column; min-width: 0; height: 100dvh;
  padding: 26px 17px 17px; background: #fafdff; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 1px 5px 37px; color: var(--ink); }
.brand-mark {
  display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; border-radius: 13px;
  color: white; background: linear-gradient(145deg, #536df0, #344dd3 60%, #324bc7); box-shadow: 0 4px 12px #344dd337;
}
.brand strong, .brand small, .profile-text strong, .profile-text small { display: block; }
.brand strong { font-size: 15px; font-weight: 750; white-space: nowrap; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-link {
  position: relative; display: flex; align-items: center; min-height: 47px; padding: 10px 13px; gap: 11px;
  border-radius: 11px; color: var(--muted); font-weight: 600; transition: color 150ms ease, background 150ms ease;
}
.nav-link:hover { color: var(--ink); background: var(--subtle); }
.nav-link.selected { color: var(--accent-dark); background: var(--accent-soft); font-weight: 720; }
.nav-count { margin-left: auto; padding: 1px 7px; border-radius: 20px; background: var(--surface); color: var(--accent-dark); font-size: 12px; font-variant-numeric: tabular-nums; }
.sidebar-footer { margin-top: auto; display: grid; gap: 9px; }
.workspace-state { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.workspace-state > span { width: 7px; height: 7px; border-radius: 50%; background: #4a5ed9; }
.profile-menu { position: relative; color: var(--ink); }
.profile-menu summary {
  display: flex; align-items: center; list-style: none; gap: 10px; min-height: 56px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
}
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary:hover { background: var(--subtle); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 50%; color: var(--accent-dark); background: #e3e9ff; font-size: 12px; font-weight: 750; }
.profile-text { flex: 1; min-width: 0; }
.profile-text strong { font-size: 13px; overflow-wrap: anywhere; }
.profile-text small { font-size: 11px; color: var(--muted); }
.profile-popup {
  z-index: 8; position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 185px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 30px #192c4928;
}
.profile-label { padding: 8px 10px 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.profile-popup button { width: 100%; min-height: 40px; display: flex; justify-content: flex-start; align-items: center; gap: 8px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; padding: 5px 9px; text-align: left; }
.profile-popup button small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.profile-popup button:hover, .profile-popup button[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.main-area { min-width: 0; }
.topbar {
  position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; padding: 9px 32px; border-bottom: 1px solid var(--line);
  background: #fafcffed; backdrop-filter: blur(14px); gap: 12px;
}
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.mobile-profile, .bottom-nav { display: none; }
.page { margin: 0 auto; width: min(100%, 1440px); padding: 29px 32px 44px; }
.page:focus { outline: none; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; font-weight: 650;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease; white-space: nowrap;
}
.button:hover, .icon-button:hover { background: var(--subtle); }
.button.primary { color: white; border-color: var(--accent); background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.danger { color: var(--red); border-color: #e8a9b5; }
.button.ghost { color: var(--accent-dark); background: transparent; border-color: transparent; }
.button.ghost:hover { background: var(--accent-soft); }
.icon-button { padding: 0; width: 44px; height: 44px; color: var(--muted); }
.notification-button { position: relative; }
.notification-button i { position: absolute; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); width: 10px; height: 10px; top: 7px; right: 8px; }

.panel { padding: var(--space); min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero {
  isolation: isolate; display: grid; overflow: hidden; min-height: 264px; position: relative; align-items: center;
  border: 1px solid #dfe7f6; border-radius: 24px; background: #e7effc; box-shadow: var(--shadow);
}
.hero-copy { position: relative; z-index: 1; padding: 30px 34px; width: 60%; }
.hero-date { display: inline-flex; align-items: center; gap: 7px; color: #435985; font-size: 13px; font-weight: 650; }
.hero h1 { margin-top: 7px; font-size: clamp(34px, 4vw, 50px); line-height: 1.24; letter-spacing: -.045em; font-weight: 790; overflow-wrap: anywhere; }
.hero p { margin-top: 10px; color: #43516a; font-size: 16px; }
.hero p strong { color: var(--ink); }
.hero .button { margin-top: 22px; box-shadow: 0 5px 12px #283eaf23; }
.hero-visual {
  position: absolute; inset: 0 0 0 36%; z-index: -1;
  background: linear-gradient(90deg, #e7effc 0%, #e7effc9e 19%, #e7effc10 45%, transparent 58%),
    url('/hero-home.webp') center 55% / cover no-repeat, linear-gradient(130deg, #e5edfc, #b9c8e3 63%, #a4bace);
}
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 18px 0; }
.stat-card { position: relative; display: flex; align-items: center; gap: 13px; text-align: left; color: var(--ink); padding: 19px 17px; transition: border-color 150ms, background 150ms; }
.stat-card:hover { border-color: #bcc8ee; background: #fbfcff; }
.stat-icon, .quick-icon, .task-icon, .project-symbol {
  display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
}
.tone-blue, .badge.blue, .member-avatar.blue { color: var(--accent-dark); background: var(--blue-bg); }
.tone-amber, .badge.amber, .member-avatar.amber { color: var(--amber); background: var(--amber-bg); }
.tone-red, .badge.red { color: var(--red); background: var(--red-bg); }
.tone-green, .badge.green, .member-avatar.green { color: var(--green); background: var(--green-bg); }
.tone-indigo, .badge.indigo, .member-avatar.indigo { color: var(--indigo); background: var(--indigo-bg); }
.tone-slate, .badge.slate, .badge.gray { color: var(--muted); background: var(--subtle); }
.stat-copy { display: grid; min-width: 0; gap: 0; }
.stat-copy small { color: var(--muted); font-weight: 620; font-size: 13px; }
.stat-copy strong { font-size: 32px; font-weight: 760; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-arrow { color: #758198; margin: 0 1px auto auto; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr); gap: 18px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { font-size: 21px; font-weight: 750; letter-spacing: -.025em; }
.section-heading p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.section-heading a { display: flex; min-height: 40px; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; font-weight: 650; }
.task-panel { padding-bottom: 12px; }
.task-row, .quick-action {
  color: var(--ink); border: 0; border-top: 1px solid var(--line); background: transparent;
  display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 11px 3px; text-align: left; width: 100%;
}
.task-row:hover, .quick-action:hover { background: var(--subtle); }
.task-row > svg:last-child, .quick-action > svg:last-child { color: var(--muted); }
.task-row .task-icon { width: 38px; height: 38px; border-radius: 11px; }
.task-main { flex: 1; min-width: 0; }
.task-row strong, .quick-action strong { display: block; line-height: 1.35; font-weight: 690; overflow-wrap: anywhere; }
.task-row small, .quick-action small { display: block; margin-top: 4px; line-height: 1.35; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.task-time { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 100%; padding: 3px 8px; line-height: 1.45; border-radius: 20px; font-size: 12px; font-weight: 650; }
.quick-action > span:nth-child(2) { flex: 1; }
.quick-panel { padding-bottom: 12px; }
.quick-icon { width: 39px; height: 39px; border-radius: 11px; }

.view-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 1px 0 22px; }
.view-heading h1 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 780; line-height: 1.28; letter-spacing: -.035em; overflow-wrap: anywhere; }
.view-heading p { margin-top: 6px; color: var(--muted); }
.workspace-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 17px; }
.segmented { display: flex; flex-wrap: wrap; align-items: center; background: #e9edf5; padding: 4px; gap: 2px; border-radius: 12px; }
.segmented button {
  background: transparent; border: 0; color: var(--muted); padding: 5px 11px; min-height: 38px;
  border-radius: 8px; font-weight: 650; transition: color 150ms, background 150ms;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 3px #20324e14; }
.scope-control, .workspace-select { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.scope-control select, .workspace-select select { width: auto; max-width: 240px; }
.workspace-search { position: relative; margin-left: auto; color: var(--muted); }
.workspace-search > svg { position: absolute; left: 12px; top: 13px; }
.workspace-search input { min-width: 220px; padding-left: 38px; }
.empty-state { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 22px; text-align: center; color: var(--muted); }
.empty-state.compact { min-height: 155px; }
.empty-state strong { color: var(--ink); font-size: 16px; }
.empty-state > svg { color: var(--accent); margin-bottom: 2px; }
.empty-state p { font-size: 14px; }
.card-grid, .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { display: block; color: var(--ink); transition: border-color 150ms, box-shadow 150ms; }
.project-card:hover { color: var(--ink); border-color: #bac7f2; box-shadow: 0 8px 24px #263c7d0f; }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.project-symbol { color: var(--accent-dark); background: var(--blue-bg); }
.project-card h2 { font-size: 21px; letter-spacing: -.025em; }
.project-card p { margin-top: 4px; }
.project-progress { margin: 14px 0 10px; }
.project-progress progress { border: 0; width: 100%; height: 8px; color: var(--accent); accent-color: var(--accent); background: var(--subtle); border-radius: 9px; }
.project-progress progress::-webkit-progress-bar { background: var(--subtle); border-radius: 9px; }
.project-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 9px; }
.project-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 9px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.project-meta span { display: flex; align-items: center; gap: 5px; }
.back-link { display: inline-flex; width: fit-content; gap: 4px; align-items: center; min-height: 38px; font-weight: 650; margin-bottom: 3px; }
.project-overview { margin-bottom: 18px; }
.key-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; }
.key-values dt { font-size: 13px; color: var(--muted); }
.key-values dd { font-weight: 650; margin-top: 3px; overflow-wrap: anywhere; }
.project-overview-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.project-stage-list { display: grid; gap: 17px; }
.stage-summary { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.stage-summary h3, .point-summary h3 { font-size: 18px; }
.stage-summary .badge { margin-left: auto; }
.stage-card .inline-actions { margin-top: 17px; }
.project-task-brief { display: grid; gap: 10px; list-style: none; padding: 0; }
.project-task-brief li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.point-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.point-row { padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; align-content: start; gap: 9px; overflow-wrap: anywhere; }
.point-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.point-summary p, .point-review { margin-top: 4px; font-size: 13px; }
.point-review { padding: 8px 11px; border-radius: 9px; background: var(--subtle); }
.media-card { text-align: left; color: var(--ink); background: var(--surface); border-color: var(--line); padding: 0; overflow: hidden; display: grid; align-content: start; width: 100%; }
.media-card:hover { border-color: #bac7f2; }
.media-thumb { display: grid; place-items: center; position: relative; aspect-ratio: 16 / 10; overflow: hidden; width: 100%; color: var(--accent); background: linear-gradient(140deg, #e9f1ff, #eef0fb); }
.media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; }
.media-thumb .badge { position: absolute; top: 10px; left: 10px; }
.media-details { display: grid; gap: 3px; padding: 13px 16px; overflow-wrap: anywhere; }
.media-details .muted { font-size: 12px; }
.member-card { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 17px; }
.member-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: var(--accent-dark); background: var(--blue-bg); font-size: 17px; font-weight: 750; }
.member-main { flex: 1; min-width: 100px; }
.member-main h2 { font-size: 17px; font-weight: 720; }
.member-card > .muted { flex-basis: 100%; font-size: 13px; }
.member-main p { font-size: 13px; }

.dialog-sheet {
  border: 1px solid var(--line); border-radius: 23px; padding: 0; color: var(--ink); background: var(--surface);
  width: min(630px, calc(100% - 28px)); max-height: min(88dvh, 850px); box-shadow: 0 24px 90px #1323483d;
}
.dialog-sheet::backdrop { background: #18274870; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 21px 14px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 22px; line-height: 1.25; }
.dialog-heading p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dialog-sheet form, .task-dialog-content, .dialog-body { padding: 18px 21px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 14px 21px; border-top: 1px solid var(--line); gap: 8px; }
.dialog-sheet form .dialog-actions { margin: 5px -21px -18px; }
.dialog-error { color: var(--red); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.full, .full-width { grid-column: 1 / -1; }
.field { display: grid; min-width: 0; align-content: start; gap: 6px; color: var(--ink); font-weight: 650; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field textarea { font-weight: 450; }
.task-dialog-content { display: grid; gap: 13px; }
.task-dialog-content .badge { width: fit-content; }
.upload-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.upload-fieldset legend { font-weight: 700; margin-bottom: 6px; }
.upload-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-tile {
  border: 1px dashed #91a0d8; border-radius: 12px; background: #f6f8ff; color: var(--accent-dark);
  padding: 12px; cursor: pointer; min-height: 78px; display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 650; text-align: center;
}
.upload-tile:hover { background: var(--accent-soft); }
.upload-tile-copy { min-width: 0; display: grid; gap: 2px; text-align: left; }
.upload-tile-copy small { font-size: 12px; line-height: 1.35; font-weight: 500; }
.upload-tile:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.file-queue { overflow-wrap: anywhere; min-width: 0; padding-left: 24px; }
.check-option { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 44px; }
.dialog-sheet video, .dialog-sheet .preview-image { display: block; max-height: 52dvh; width: 100%; object-fit: contain; border-radius: 12px; background: var(--bg); }
.toast-stack { position: fixed; z-index: 20; bottom: 23px; right: 24px; max-width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; background: #25344c; color: white; padding: 11px 15px; border-radius: 12px; box-shadow: 0 8px 26px #19254132; }
.toast-error { background: #96263e; }
.login { width: min(930px, calc(100% - 40px)); margin: 0 auto; min-height: 100dvh; display: grid; grid-template-columns: 1.2fr 1fr; gap: 17px; align-content: center; }
.login-brand {
  min-height: 380px; display: grid; align-content: center; justify-items: start; gap: 10px; padding: 35px; border-radius: 24px;
  background: linear-gradient(120deg, #e7effce8, #edf2fd84), url('/hero-home.webp') center / cover no-repeat, var(--accent-soft);
}
.login-brand h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; line-height: 1.12; }
.login-brand p { color: #3e4e67; }
.login-form { display: grid; align-content: center; gap: 18px; }
.login-form h2 { font-size: 26px; }
.login-form form { display: grid; gap: 12px; }
.login-form form .button { width: 100%; }

@media (max-width: 1190px) {
  .layout { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .page, .topbar { padding-inline: 23px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr); }
  .panel { --space: 18px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 171px minmax(0, 1fr); }
  .brand { margin-left: 0; gap: 7px; }
  .brand-mark { width: 38px; height: 38px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr); gap: 12px; }
  .task-time { display: none; }
  .card-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .layout { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 58px; padding: 5px 13px; }
  .breadcrumb { gap: 5px; font-size: 13px; }
  .top-brand { display: none; }
  .breadcrumb > svg { display: none; }
  .top-actions { gap: 5px; }
  .top-actions .top-create { font-size: 13px; min-height: 42px; padding-inline: 8px; }
  .top-actions .top-create svg { width: 16px; height: 16px; }
  .mobile-profile { display: block; }
  .mobile-profile summary { min-height: 43px; padding: 4px; justify-content: center; }
  .mobile-profile .profile-text, .mobile-profile summary > svg { display: none; }
  .mobile-profile .profile-popup { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; }
  .bottom-nav {
    position: fixed; z-index: 4; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fafdfff5; backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-nav .nav-link { min-height: 49px; flex-direction: column; justify-content: center; padding: 3px 1px; gap: 2px; font-size: 12px; word-break: keep-all; }
  .page { padding: 16px 13px calc(82px + env(safe-area-inset-bottom)); }
  .hero { border-radius: 19px; min-height: 214px; }
  .hero-copy { padding: 19px 17px; width: 76%; }
  .hero h1 { font-size: clamp(28px, 7.2vw, 38px); }
  .hero p { font-size: 14px; margin-top: 6px; }
  .hero .button { margin-top: 14px; min-height: 42px; }
  .hero-visual { left: 29%; background-position: center right; }
  .stat-grid { gap: 7px; margin: 12px 0; }
  .stat-card { border-radius: 13px; gap: 7px; align-items: flex-start; flex-direction: column; padding: 10px; }
  .stat-copy small { font-size: 12px; }
  .stat-copy strong { font-size: 26px; }
  .stat-icon { width: 32px; height: 32px; border-radius: 9px; }
  .stat-icon svg { width: 17px; height: 17px; }
  .stat-arrow { position: absolute; top: 9px; right: 8px; margin: 0; }
  .stat-arrow svg { width: 13px; height: 13px; }
  .dashboard-grid, .detail-layout { grid-template-columns: 1fr; gap: 12px; }
  .segmented button { min-height: 44px; }
  .project-overview-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-time { display: inline; }
  .view-heading { margin-bottom: 16px; }
  .view-heading p { font-size: 14px; }
  .toast-stack { right: 10px; bottom: calc(62px + env(safe-area-inset-bottom)); }
  .login { grid-template-columns: 1fr; margin-block: 16px; align-content: center; }
  .login-brand { min-height: 190px; padding: 21px; }
}
@media (max-width: 450px) {
  .card-grid, .point-list { grid-template-columns: minmax(0, 1fr); }
  .media-grid { gap: 9px; }
  .media-details { padding: 9px; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .view-heading .button { padding-inline: 11px; }
  .workspace-search { margin-left: 0; width: 100%; }
  .workspace-search input { min-width: 0; }
  .task-time { display: none; }
  .task-row { gap: 8px; }
  .section-heading p { font-size: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-sheet { max-height: 92dvh; }
  .dialog-heading, .dialog-sheet form, .task-dialog-content, .dialog-body { padding-inline: 15px; }
  .dialog-sheet form .dialog-actions { margin-inline: -15px; }
  .scope-control { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
