:root {
  color-scheme: light;
  --background: #f3f6f2;
  --paper: #fff;
  --ink: #172b27;
  --muted: #536963;
  --quiet: #6c7e78;
  --line: #dfe8e1;
  --light-line: #eaf0ea;
  --green: #087666;
  --green-dark: #05594e;
  --mint: #e3f3ec;
  --amber: #725318;
  --cream: #f9efd8;
  --shadow: 0 2px 3px #142f2110;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--green-dark); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #148c78; outline-offset: 3px; }
.skip { position: fixed; z-index: 10; left: 10px; top: 10px; padding: 10px 14px; border-radius: 8px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
h1, h2, h3, h4, p { margin: 0; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.small-text { font-size: .875rem; }
.noscript { padding: 32px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0, 1fr); }
.sidebar { min-width: 0; height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 25px 16px 18px; border-right: 1px solid var(--line); background: #fbfcf9; z-index: 3; }
.brand { font-size: 1.06rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 3px 7px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #0c665a; display: grid; place-items: center; flex: none; }
.brand-mark i { display: block; width: 15px; height: 15px; border: 1.5px solid #e3faef; border-radius: 3px; position: relative; }
.brand-mark i::before, .brand-mark i::after { content: ""; position: absolute; }
.brand-mark i::before { width: 5px; height: 5px; border: 1px solid #e3faef; border-radius: 1px; inset: 3.5px; }
.brand-mark i::after { inset: 2px -5px; border-inline: 2px dotted #e3faef; }
.nav-list { display: grid; gap: 6px; margin-top: 36px; }
.nav-list a, .sidebar-settings { display: flex; align-items: center; gap: 11px; text-decoration: none; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: .93rem; white-space: nowrap; }
.nav-list a { padding: 10px 11px; min-height: 45px; }
.nav-list a:hover, .sidebar-settings:hover { background: #edf3ed; color: var(--ink); }
.nav-list a[aria-current="page"] { color: #07564c; background: #e2f1e9; box-shadow: inset 3px 0 #168573; }
.nav-icon { width: 20px; text-align: center; font-size: 1.12rem; line-height: 1; flex: none; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.sidebar-settings { width: 100%; background: none; border: none; text-align: left; padding: 10px 11px; }
.sidebar-settings span { font-size: 1.08rem; }
.sidebar-progress { background: #f0f5ef; padding: 13px; border-radius: 10px; border: 1px solid var(--line); font-size: .87rem; }
.sidebar-progress strong { font-size: .88rem; }
.sidebar-progress .meter { margin: 8px 0 6px; }

.main-shell { min-width: 0; }
.topbar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px clamp(18px, 2.7vw, 42px); background: #fbfcf9; border-bottom: 1px solid var(--line); }
.topbar-title { font-weight: 760; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-date { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.mobile-settings { display: none !important; }
.main-content { width: min(100%, 1520px); margin-inline: auto; padding: 27px clamp(18px, 2.7vw, 42px) 62px; }
.tree-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .55fr); align-items: center; gap: 16px; margin-bottom: 16px; }
.tree-overview h2 { font-size: 1.12rem; }
.tree-overview .meter { margin-top: 7px; }
.tree { display: grid; gap: 12px; }
.tree-branch summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px clamp(12px, 2vw, 22px); cursor: pointer; list-style: none; }
.tree-branch summary::-webkit-details-marker { display: none; }
.tree-branch-title { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.tree-branch-title::before { content: '+'; color: var(--green); font-size: 1.15rem; line-height: 1; min-width: .85rem; }
.tree-branch[open] .tree-branch-title::before { content: '−'; }
.tree-skills { margin: 0 0 15px 20px; padding: 0 15px 0 22px; border-left: 1px solid #bdd7cc; list-style: none; }
.tree-skills li { position: relative; padding: 12px 0; }
.tree-skills li + li { border-top: 1px solid var(--light-line); }
.tree-skills li::before { position: absolute; top: 25px; left: -22px; width: 15px; border-top: 1px solid #bdd7cc; content: ''; }
.tree-skill-title { display: flex; align-items: center; gap: 9px; cursor: pointer; width: fit-content; }
.tree-skills p { margin-top: 4px; }
.tree-videos { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 6px; }
.tree-videos .link-button { text-align: left; min-height: 30px; }
.field-intro { margin-bottom: 12px; }
.account-confirm { display: flex; gap: 6px; align-items: center; }
.account-button { max-width: 120px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(294px, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 214px; border-radius: 17px; padding: clamp(24px, 3vw, 38px); display: flex; align-items: center; color: #f0fff7; background: linear-gradient(114deg, #113432, #0c282a 68%, #173b37); box-shadow: 0 7px 20px #182d2322; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("hero.png") right center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #112f2ef2 0%, #102e2ddb 40%, #102e2d40 70%, #102e2d26 100%); }
.hero-content { max-width: 730px; min-width: 0; }
.hero-date { color: #b8e6d4; font-size: .875rem; font-weight: 680; letter-spacing: .01em; margin-bottom: 6px; }
.hero h1 { font-size: clamp(1.85rem, 3.4vw, 3.05rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 840; text-wrap: balance; }
.hero-subtitle { color: #def3e9; margin: 11px 0 16px; font-size: 1rem; }
.hero-actions, .toolbar, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hero .btn.primary { background: #d9f7e8; color: #154437; border-color: #d9f7e8; }
.hero .btn.primary:hover { background: #f0fff6; }
.hero .btn.outline { background: #cadece13; color: #f0fff7; border-color: #b6e4d869; }
.hero .btn.outline:hover { background: #cadece2a; }

.metrics { display: grid; gap: 13px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 17px; }
.metric { padding: 14px; min-width: 0; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: var(--shadow); }
.metric-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: none; border-radius: 9px; color: #0a6252; background: #e6f4eb; font-size: 1.08rem; font-weight: 750; }
.metric:nth-child(2) .metric-icon { color: #365d85; background: #e9f1f9; }
.metric:nth-child(3) .metric-icon { color: #79561d; background: #f8eed9; }
.metric:nth-child(4) .metric-icon { color: #5e5482; background: #efedf8; }
.metric-name { color: var(--muted); font-size: .86rem; font-weight: 640; white-space: nowrap; }
.metric-number { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.metric-number small { font-size: .79rem; color: var(--quiet); font-weight: 600; margin-left: 3px; }

.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.pad { padding: clamp(15px, 2vw, 22px); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-head h2, .panel-head h3 { font-size: 1.16rem; font-weight: 800; line-height: 1.32; letter-spacing: -.015em; }
.panel-head h2 + p, .panel-head h3 + p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.pill { display: inline-flex; width: max-content; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px; background: #eef3ef; color: var(--muted); font-weight: 680; font-size: .83rem; white-space: nowrap; }
.pill.good { background: var(--mint); color: var(--green-dark); }
.pill.warn { background: var(--cream); color: var(--amber); }
.meter { --percent: 0%; height: 7px; border-radius: 10px; background: #e7eee8; overflow: hidden; }
.meter::before { content: ""; display: block; width: var(--percent); height: 100%; background: #178a75; border-radius: inherit; }
.meter-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.panel .meter + .meter-info { margin-top: 6px; }

.btn, .icon-button { border: 1px solid transparent; border-radius: 8px; background: var(--mint); min-height: 39px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 7px 12px; font-weight: 680; font-size: .9rem; line-height: 1.25; white-space: nowrap; color: var(--green-dark); text-decoration: none; }
.btn:hover, .icon-button:hover { background: #d7eee1; }
.btn.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.btn.outline, .icon-button { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.outline:hover, .icon-button:hover { border-color: #91baa9; background: #f3f9f5; }
.btn.small { min-height: 34px; padding: 5px 9px; font-size: .86rem; }
.btn.danger { background: #fcedea; color: #8e2e26; }
.btn.danger:hover { background: #f8dcd8; }
.btn:disabled { cursor: default; opacity: .48; }
.icon-button { width: 36px; height: 36px; min-height: 36px; padding: 0; }
.link-button { padding: 3px 0; border: 0; background: none; color: var(--green-dark); font-size: .88rem; font-weight: 710; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: #033a31; }

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 13px; }
.day-nav strong { display: block; font-size: 1.04rem; }
.date-controls { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.date-label { color: var(--muted); font-size: .86rem; }
.video-panel { overflow: hidden; }
.video-panel .panel-head { padding: 19px 19px 12px; }
.video-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 19px 12px; }
.video-tools .text-check { font-size: .88rem; }
.video-list { list-style: none; padding: 0; margin: 0; }
.video-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 12px 17px; border-top: 1px solid var(--light-line); }
.video-row:hover { background: #f8fbf8; }
.video-row.finished { background: #f5faf6; }
.clip-check { padding-top: 3px; }
.check { width: 18px; height: 18px; margin: 0; accent-color: var(--green); vertical-align: middle; flex: none; cursor: pointer; }
.clip-main { min-width: 0; }
.clip-title { font-weight: 720; display: block; overflow-wrap: anywhere; cursor: pointer; }
.clip-id { color: #55736c; font: 650 .75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; margin-right: 7px; white-space: nowrap; }
.clip-meta { margin-top: 4px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.clip-time { min-width: max-content; text-align: right; color: var(--ink); font-size: .88rem; font-weight: 670; }
.clip-time span { display: block; color: var(--muted); font-size: .81rem; font-weight: 500; }
.clip-copy { margin-top: 2px; font-size: .81rem; }
.empty { padding: 22px; color: var(--muted); }
.task-list { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.task-line { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: .93rem; cursor: pointer; }
.task-line + .task-line { border-top: 1px solid var(--light-line); }
.task-line .check { margin-top: 3px; }
.task-line.checked span { color: var(--muted); }
.evidence { margin-top: 8px; border-radius: 8px; padding: 9px 11px; background: #f2f7ef; color: #3d6359; font-size: .875rem; }
.practice-name { margin-top: 10px; font-weight: 740; font-size: .95rem; }
.day-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.side-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.mini-day { padding: 5px 2px; display: grid; justify-items: center; gap: 4px; border: 1px solid transparent; border-radius: 8px; background: #f3f6f3; font-size: .86rem; font-weight: 660; }
.mini-day:hover { border-color: #82c8b1; }
.mini-day small { font-size: .74rem; color: var(--muted); }
.mini-day.done { background: var(--mint); color: var(--green-dark); }
.mini-day.started { background: var(--cream); color: var(--amber); }
.mini-day.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.week-link { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; gap: 8px; }
.note-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9px; margin-top: 12px; }
.form-label { display: grid; gap: 5px; color: var(--muted); font-size: .88rem; font-weight: 640; min-width: 0; }
.wide-input { grid-column: 1 / -1; }
input:not([type="checkbox"]), select, textarea { max-width: 100%; min-width: 0; border: 1px solid #cddbd1; border-radius: 8px; background: white; padding: 8px 10px; min-height: 40px; color: var(--ink); font-size: .94rem; }
textarea { resize: vertical; min-height: 99px; line-height: 1.55; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #4e675e 50%), linear-gradient(135deg, #4e675e 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.notes-help, .field-error { margin-top: 7px; font-size: .85rem; color: var(--muted); }
.field-error { color: #8f3027; }
.text-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.text-check .check { width: 16px; height: 16px; }

.view-head { margin: 2px 0 17px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.view-head h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 830; letter-spacing: -.035em; }
.view-head p { color: var(--muted); margin-top: 2px; }
.filter-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(145px, .8fr) minmax(130px, .7fr); gap: 12px; margin-bottom: 14px; }
.list-head { padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; gap: 9px; font-weight: 690; font-size: .92rem; }
.catalog-row { align-items: center; padding-block: 13px; }
.catalog-row .pill { margin-bottom: 1px; }
.catalog-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.pager { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); }

.calendar-block { padding: 15px; }
.month-tools { padding: 4px 2px 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.month-tools h2 { font-size: 1.24rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekday { color: var(--muted); padding-block: 3px; text-align: center; font-size: .82rem; font-weight: 740; }
.calendar-date { display: flex; flex-direction: column; text-align: left; gap: 4px; align-items: flex-start; width: 100%; min-height: 78px; border: 1px solid var(--light-line); background: #f8faf7; color: var(--ink); padding: 7px; border-radius: 8px; }
.calendar-date:not(:disabled):hover { border-color: var(--green); }
.calendar-date:disabled { opacity: .4; cursor: default; }
.calendar-date strong { font-size: 1rem; line-height: 1.1; }
.calendar-date .calendar-phase { font-size: .79rem; color: var(--muted); line-height: 1.26; overflow-wrap: anywhere; }
.calendar-date.done { background: #dff4e8; border-color: #b7dfc8; }
.calendar-date.started { background: #fcf1d9; border-color: #eedbb2; }
.calendar-date.is-today { box-shadow: inset 0 0 0 1.5px var(--green); }
.calendar-tag { min-width: 17px; height: 17px; padding-left: 1px; display: grid; place-items: center; border-radius: 50%; font-weight: 780; font-size: .69rem; background: var(--mint); color: var(--green-dark); }
.legend { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; padding: 13px 2px 0; color: var(--muted); font-size: .85rem; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 11px; height: 11px; border-radius: 3px; background: #eef2ed; border: 1px solid var(--line); }
.legend .done i { background: #cbead7; }
.legend .started i { background: #faeac4; }
.week-bars { display: grid; gap: 12px; margin-top: 15px; }
.week-bar { display: grid; grid-template-columns: 115px minmax(60px, 1fr) 47px; align-items: center; gap: 10px; font-size: .88rem; }
.week-bar .meter { height: 11px; }
.phase-list { display: grid; gap: 12px; margin-top: 13px; }
.phase-row { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(105px, .9fr) auto; align-items: center; column-gap: 13px; row-gap: 3px; padding-bottom: 11px; border-bottom: 1px solid var(--light-line); }
.phase-row:last-child { border-bottom: 0; padding-bottom: 0; }
.phase-row strong { font-size: .94rem; }
.phase-row p { font-size: .84rem; color: var(--muted); }
.outlet + .outlet { border-top: 1px solid var(--light-line); margin-top: 10px; padding-top: 10px; }
.outlet a { font-weight: 680; }
.weekly-career { display: grid; gap: 10px; margin-top: 15px; }
.weekly-career details { border-radius: 9px; border: 1px solid var(--line); padding: 10px 12px; }
.weekly-career summary { cursor: pointer; font-weight: 700; }
.weekly-career details[open] summary { margin-bottom: 7px; }
.weekly-career .pill { margin: 0 3px; }
.job-form { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.job-list { display: grid; gap: 10px; margin-top: 15px; }
.job { border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.job select { max-width: 139px; min-height: 34px; }
.job .toolbar { margin-top: 6px; }

.dialog { width: min(calc(100% - 30px), 515px); max-height: 86dvh; border: 1px solid var(--line); border-radius: 15px; padding: 23px; color: var(--ink); box-shadow: 0 18px 80px #152c3040; }
.dialog::backdrop { background: #172b297a; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.dialog h2 { font-size: 1.24rem; }
.dialog form { display: grid; gap: 9px; }
.dialog .form-actions { margin-top: 6px; }
.dialog-backup { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; }
.dialog-backup p { margin: 4px 0 9px; }
.toast { position: fixed; z-index: 8; right: max(15px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); max-width: min(92vw, 480px); border-radius: 9px; padding: 10px 16px; background: #113b31; color: white; box-shadow: 0 9px 35px #142f2140; font-size: .9rem; }
.storage-warning { padding: 8px 12px; margin-bottom: 12px; border-radius: 9px; background: var(--cream); color: #694923; font-size: .88rem; }

@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 191px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .content-grid { grid-template-columns: minmax(0, 1.45fr) minmax(268px, 1fr); }
  .metric { padding: 11px; gap: 7px; }
  .metric-icon { width: 32px; height: 32px; }
  .metric-name { font-size: .81rem; }
  .video-row { gap: 8px; padding-inline: 12px; }
}

@media (max-width: 940px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 15px 5px; }
  .brand { padding: 2px 0 5px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-list { display: flex; overflow-x: auto; gap: 5px; margin-top: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .nav-list a { padding: 7px 9px; min-height: 38px; font-size: .88rem; flex: none; }
  .nav-list a[aria-current="page"] { box-shadow: none; }
  .nav-icon { width: 15px; font-size: 1rem; }
  .sidebar-bottom { display: none; }
  .mobile-settings { display: inline-flex !important; }
  .topbar { min-height: 51px; padding: 7px 15px; }
  .topbar-actions { gap: 7px; }
  .main-content { padding-top: 17px; }
}

@media (max-width: 690px) {
  .tree-overview { grid-template-columns: 1fr; gap: 8px; }
  .main-content { padding-inline: 12px; }
  .content-grid { grid-template-columns: 1fr; gap: 13px; }
  .stack { gap: 12px; }
  .topbar-date { display: none; }
  .metrics { gap: 7px; margin-block: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 22px 17px; min-height: 185px; border-radius: 12px; }
  .hero::before { background-position: 58% center; }
  .hero::after { background: linear-gradient(90deg, #102f2ef2 0%, #102f2dc9 52%, #102f2d80); }
  .hero h1 { font-size: 1.76rem; }
  .hero-subtitle { margin: 8px 0 12px; font-size: .9rem; }
  .day-nav { align-items: flex-start; margin-top: 13px; }
  .day-nav strong { font-size: .93rem; }
  .date-controls { gap: 4px; }
  .date-controls .btn { padding-inline: 7px; font-size: .8rem; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-panel label:first-child { grid-column: 1 / -1; }
  .video-panel .panel-head { padding: 14px 12px 8px; }
  .video-tools { padding: 0 12px 10px; }
  .clip-title { font-size: .95rem; }
  .clip-meta { font-size: .79rem; }
  .calendar-block { padding: 9px; }
  .calendar-grid { gap: 3px; }
  .calendar-date { min-height: 51px; gap: 4px; padding: 6px 4px; }
  .calendar-date .calendar-phase { font-size: .67rem; }
  .calendar-date strong { font-size: .87rem; }
  .view-head p { font-size: .92rem; }
  .phase-row { grid-template-columns: minmax(120px, 1fr) minmax(55px, .65fr) auto; gap: 6px; }
}

@media (max-width: 390px) {
  .topbar-title { font-size: .93rem; }
  .nav-icon { display: none; }
  .nav-list a { padding-inline: 8px; }
  .day-nav { flex-direction: column; gap: 5px; }
  .date-controls { justify-content: flex-start; }
  .video-row { gap: 6px; padding-inline: 9px; }
  .clip-time { font-size: .78rem; }
  .clip-copy { font-size: .75rem; }
  .week-bar { grid-template-columns: 100px minmax(60px, 1fr) 39px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav-list a, .mini-day { transition: background .15s, border-color .15s; }
}
