:root {
  color-scheme: light;
  --bg: #f3f6fc;
  --panel: #fff;
  --ink: #15263c;
  --muted: #455a75;
  --border: #dce5f0;
  --soft: #edf3ff;
  --blue: #1356c0;
  --blue-dark: #0e459e;
  --blue-focus: #1c64cc;
  --green: #166146;
  --green-bg: #e9f6ef;
  --amber: #815115;
  --amber-bg: #fff2da;
  --red: #9f332c;
  --red-bg: #fcecea;
  --shadow: 0 8px 25px rgb(30 62 106 / 5%);
  --radius: 20px;
  --nav: 230px;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--system); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button, .button, input:not([type="checkbox"]), select, textarea { min-height: 44px; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 44px;
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel);
  color: var(--ink); cursor: pointer; text-decoration: none; text-align: center; line-height: 1.3; font-weight: 600;
}
button:hover, .button:hover { border-color: #b7c9e1; background: #f4f7fe; }
button:disabled { opacity: .64; cursor: wait; }
button.primary, .button.primary { background: var(--blue); color: white; border-color: var(--blue); }
button.primary:hover, .button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
button.flat { background: transparent; border-color: transparent; }
button.flat:hover { background: var(--soft); }
button.danger { color: var(--red); background: var(--red-bg); border-color: #efd1cd; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--blue-focus); outline-offset: 2px; }
.skip { position: fixed; top: -60px; padding: 12px; z-index: 100; background: white; }
.skip:focus { left: 8px; top: 8px; }
h1, h2, h3, h4, p, ol, ul, dl { margin: 0; }
h1, h2, h3 { line-height: 1.24; letter-spacing: -.022em; }
h1 { font-size: clamp(29px, 2.55vw, 39px); font-weight: 750; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
small, .small { font-size: 14px; }
p { overflow-wrap: anywhere; }
::selection { background: #cee0ff; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.numerical { font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.icon { font-size: 18px; font-family: var(--system); line-height: 1; flex: 0 0 auto; width: 23px; text-align: center; }
.mark {
  color: white; background: linear-gradient(145deg, #4984e7 4%, #1755ba 94%); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; position: relative; flex: 0 0 40px; box-shadow: 0 4px 8px #2a65bf26;
}
.mark::before { content: ''; width: 18px; height: 14px; border: 2px solid white; border-radius: 4px; transform: translate(-2px,2px); }
.mark::after { content: ''; width: 13px; height: 10px; position: absolute; top: 9px; right: 8px; border-top: 2px solid #fff; border-right: 2px solid #fff; border-radius: 3px; }
.first-load { padding: 42px; color: var(--muted); }
.desktop-shell { min-height: 100dvh; display: grid; grid-template-columns: var(--nav) minmax(0,1fr); grid-template-rows: 72px 1fr; }
.topbar {
  grid-column: 1/-1; position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 26px;
}
.product { display: inline-flex; gap: 11px; align-items: center; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); text-decoration: none; }
.desktop-shell .product { min-width: calc(var(--nav) - 26px); }
.top-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; min-width: 0; }
.top-tools .select-compact { width: 145px; }
.top-tools .sync-global { white-space: nowrap; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.top-tools .button-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar { grid-column: 1; grid-row: 2; background: #fff; border-right: 1px solid var(--border); }
.sidebar-inner { position: sticky; top: 72px; display: flex; flex-direction: column; padding: 20px 16px; gap: 5px; min-height: calc(100dvh - 72px); }
.sidebar .nav { display: grid; gap: 4px; }
.nav-link { justify-content: flex-start; font-weight: 580; padding: 9px 12px; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 10px; display: flex; align-items: center; gap: 9px; min-height: 44px; }
.nav-link:hover { background: #f3f7fe; }
.nav-link[aria-current="page"] { background: var(--soft); color: var(--blue-dark); font-weight: 720; border-color: #deeaff; }
.sidebar-foot { margin-top: auto; padding: 12px 2px 0; border-top: 1px solid var(--border); }
.sidebar-foot button { justify-content: flex-start; width: 100%; color: var(--muted); font-weight: 550; }
.main { min-width: 0; padding: 20px clamp(18px, 2.7vw, 40px) 42px; }
.content { max-width: 1540px; margin-inline: auto; min-width: 0; }
.notice { display: flex; align-items: center; gap: 11px; border: 1px solid #dbe5f7; background: #edf3fc; border-radius: 12px; padding: 9px 13px; color: #314c71; margin-bottom: 23px; font-size: 14px; }
.notice strong { white-space: nowrap; }
.notice .icon { color: var(--blue); }
.notice.warning { background: var(--amber-bg); color: var(--amber); border-color: #efddbc; }
.notice.danger { background: var(--red-bg); color: var(--red); border-color: #f1d4ce; }
.notice button { margin-left: auto; flex: 0 0 auto; min-height: 44px; }
.view-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 13px; margin-bottom: 20px;
  padding: 4px 0; min-width: 0;
}
.view-header p { color: var(--muted); margin-top: 7px; }
.view-header > :last-child { flex-shrink: 0; }
.view-heading { min-width: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.space { justify-content: space-between; }
.fill { flex: 1; min-width: 0; }
.stacked { display: grid; gap: 13px; min-width: 0; align-content: start; }
.double { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0;
}
.panel h2 + p, .panel h3 + p { margin-top: 8px; }
.panel-title { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 13px; }
.empty { display: grid; gap: 4px; justify-items: start; padding: 22px 16px; background: #f7f9fd; border: 1px dashed #ccd9eb; border-radius: 13px; color: var(--muted); }
.empty strong { color: var(--ink); }
.empty .icon { font-size: 24px; margin-bottom: 5px; color: #4d74aa; }
.empty.compact { padding: 13px 12px; }
.empty.compact .icon { display: none; }
.blank { padding: 23px; min-height: 96px; }
.stat-deck { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; margin-bottom: 15px; }
.stat {
  width: 100%; justify-content: space-between; text-align: left; align-items: flex-start; padding: 16px;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--panel);
}
.stat .stat-main { display: grid; gap: 3px; }
.stat .stat-main > span { font-weight: 620; font-size: 15px; }
.stat .stat-num { font-size: 31px; font-weight: 740; line-height: 1.15; }
.stat .stat-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--soft); color: var(--blue); display: grid; place-items: center; }
.stat.warn .stat-icon { color: var(--amber); background: var(--amber-bg); }
.stat.alert .stat-icon { color: var(--red); background: var(--red-bg); }
.stat.selected { border-color: #7ca5e9; background: #fafdff; }
.board { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px, .42fr); gap: 15px; align-items: start; }
.board-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.group { border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-width: 0; }
.group > h3 { margin-bottom: 10px; }
.group .count { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 5px; }
.sync-list { display: grid; margin-top: 12px; }
.sync-row { padding: 10px 0; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.sync-row .top { display: flex; align-items: flex-start; gap: 7px; justify-content: space-between; }
.sync-row .top b { line-height: 1.35; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 4px 8px; line-height: 1.3; color: #39516f; background: #edf2f9; max-width: 100%; }
.pill.blue { color: var(--blue-dark); background: var(--soft); }
.pill.amber { color: var(--amber); background: var(--amber-bg); }
.pill.red { color: var(--red); background: var(--red-bg); }
.pill.green { color: var(--green); background: var(--green-bg); }
.pill.dot::before { content: ''; border-radius: 50%; width: 6px; height: 6px; background: currentColor; }
.segment { display: flex; gap: 4px; align-items: center; max-width: 100%; padding: 3px; background: #edf2fa; border-radius: 11px; overflow-x: auto; }
.segment button { flex-shrink: 0; border-color: transparent; background: transparent; color: var(--muted); white-space: nowrap; padding-inline: 12px; }
.segment button[aria-pressed="true"] { background: #fff; color: var(--blue-dark); border-color: #d5e2f3; }
.item-list { display: grid; gap: 7px; }
.item-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.item-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; text-align: left; justify-content: normal; width: 100%; padding: 11px 12px; font-weight: 500; border-radius: 12px; }
.item-card .pill { align-self: start; justify-self: end; }
.item-title { display: block; min-width: 0; overflow-wrap: anywhere; font-weight: 710; }
.item-card .meta-line { grid-column: 1/-1; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.item-card .action-line { grid-column: 1/-1; color: #2b4567; }
.item-card[aria-current="true"] { border-color: #78a3e5; background: #f4f8ff; }
.selection { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; flex: 0 0 44px; }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--blue); }
.content-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0,1.05fr); gap: 15px; align-items: start; }
.content-split.calendar-split { grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr); }
.content-split > * { min-width: 0; }
.detail { min-width: 0; display: grid; align-content: start; gap: 13px; }
.detail-head { display: grid; gap: 10px; position: relative; }
.detail-head h2 { overflow-wrap: anywhere; }
.detail-head .title-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 6px; }
.detail-head .close-detail { padding: 7px 8px; }
.detail-head .meta-line { color: var(--muted); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 13px; }
.details-grid dt { color: var(--muted); font-size: 14px; }
.details-grid dd { margin: 0; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0 0 0 12px; margin: 3px 0 0; }
.timeline li { border-left: 2px solid #d8e5f7; padding: 0 0 15px 14px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #3971c4; }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { overflow-wrap: anywhere; display: block; }
.timeline .meta-line { font-size: 14px; color: var(--muted); }
.tagline { padding: 10px 12px; background: #f4f7fd; border-radius: 11px; margin: 3px 0; }
.kv { display: grid; gap: 9px; }
.kv .line { display: grid; grid-template-columns: minmax(100px,.4fr) minmax(0,1fr); align-items: start; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.kv .line > :last-child { overflow-wrap: anywhere; }
.version-list { display: grid; gap: 11px; }
.record-card { border: 1px solid var(--border); border-radius: 13px; padding: 12px; display: grid; gap: 7px; min-width: 0; }
.record-card .record-prefix { color: var(--muted); font-size: 14px; }
.record-card .record-body { overflow-wrap: anywhere; }
.calendar-controls { margin-bottom: 13px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.calendar-label { font-size: 18px; font-weight: 700; }
.calendar-scroll { overflow-x: auto; margin-bottom: 12px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(76px,1fr)); gap: 4px; min-width: 540px; }
.weekday { padding: 5px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; }
.calendar-cell { min-height: 124px; border: 1px solid var(--border); border-radius: 10px; padding: 5px; min-width: 0; background: #fbfcff; }
.calendar-cell.month { min-height: 92px; }
.calendar-cell.today { border-color: #7ea6e6; }
.day-label { min-height: 26px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; padding: 1px 4px; font-size: 14px; }
.slot { display: block; width: 100%; min-width: 0; font-size: 13px; padding: 6px 5px; margin-top: 4px; text-align: left; background: #edf3ff; color: #1d4f99; overflow-wrap: anywhere; }
.day-strip { display: flex; gap: 5px; overflow-x: auto; padding: 1px 2px 9px; scroll-snap-type: x proximity; }
.day-strip button { flex: 1 0 54px; min-width: 52px; padding-inline: 6px; flex-direction: column; scroll-snap-align: start; }
.day-strip button[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.more-grid { display: grid; gap: 9px; }
.more-grid button { justify-content: flex-start; width: 100%; }
label.field { display: grid; min-width: 0; align-content: start; gap: 5px; color: var(--ink); font-weight: 630; }
.field .hint { font-size: 14px; font-weight: 450; color: var(--muted); }
input:not([type="checkbox"]), textarea, select {
  display: block; width: 100%; min-width: 0; border: 1px solid #c5d3e4; border-radius: 9px; background: white; padding: 8px 10px; font-weight: 450;
}
input[type="file"] { white-space: normal; }
textarea { resize: vertical; min-height: 93px; }
.checkbox-field { display: flex; gap: 9px; min-height: 44px; align-items: center; padding: 3px 1px; }
.checkbox-field input { flex: 0 0 auto; }
.filter-line { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-line > input, .filter-line > select { min-width: 0; flex: 1 1 125px; }
.filter-line > label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.filter-line input[type=date] { min-width: 0; }
.record-card > summary { cursor: pointer; }
.record-card pre { overflow-wrap: anywhere; white-space: pre-wrap; }
.pagination { margin-top: 12px; }
#dialog {
  border: 1px solid var(--border); border-radius: 19px; color: var(--ink); background: #fff; width: min(660px,calc(100vw - 28px)); max-width: unset;
  max-height: min(88dvh, var(--usable-height, 88dvh)); padding: 0; box-shadow: 0 20px 70px #1b365b3c;
}
#dialog::backdrop { background: rgb(19 38 65 / 42%); }
.dialog-inner { display: grid; grid-template-rows: auto minmax(0,1fr) auto; max-height: inherit; overflow: hidden; }
.dialog-head, .dialog-foot { padding: 12px 17px; background: #fcfdff; display: flex; gap: 9px; align-items: center; justify-content: space-between; }
.dialog-head { border-bottom: 1px solid var(--border); }
.dialog-foot { border-top: 1px solid var(--border); flex-wrap: wrap; }
.dialog-body { padding: 15px 17px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-body .notice { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 13px; }
.form-grid .wide { grid-column: 1/-1; }
.check-group { border: 1px solid var(--border); border-radius: 12px; padding: 11px; display: grid; gap: 8px; }
.check-row { background: #f6f9fe; border-radius: 9px; padding: 9px; }
.toast {
  position: fixed; z-index: 25; bottom: 19px; right: 19px; max-width: min(480px, calc(100vw - 38px)); padding: 12px 16px;
  color: #fff; background: #1d375b; border-radius: 11px; box-shadow: var(--shadow);
}
.mobile-shell .topbar { position: static; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left)); min-height: 62px; }
.mobile-shell .top-tools { gap: 2px; }
.mobile-shell .product { font-size: 17px; gap: 7px; min-width: 0; }
.mobile-shell .mark { flex-basis: 35px; width: 35px; height: 35px; border-radius: 9px; }
.mobile-shell .mark::after { top: 7px; right: 6px; }
.mobile-shell .topbar button { padding-inline: 6px; }
.mobile-shell .main { padding: 11px max(12px, env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); max-width: 780px; margin-inline: auto; }
.mobile-shell .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 11; display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  background: #fff; border-top: 1px solid var(--border); padding: 3px max(5px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); }
.mobile-shell .bottom-nav .nav-link { flex-direction: column; justify-content: center; gap: 4px; min-height: 53px; padding: 3px; font-size: 13px; text-align: center; line-height: 1.16; }
.mobile-shell .notice { font-size: 13px; margin-bottom: 12px; position: relative; align-items: flex-start; }
.mobile-shell .notice strong { white-space: normal; }
.mobile-shell .view-header { margin-bottom: 11px; gap: 6px; align-items: center; flex-wrap: wrap; }
.mobile-shell .view-header h1 { font-size: 29px; }
.mobile-shell .mobile-controls { display: grid; grid-template-columns: minmax(125px, .7fr) minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 10px; }
.mobile-shell .stat-deck { grid-template-columns: 1fr; }
.mobile-shell .stat { align-items: center; padding: 8px 12px; }
.mobile-shell .stat .stat-main { grid-template-columns: 1fr auto; flex: 1; align-items: center; gap: 15px; }
.mobile-shell .stat .stat-num { font-size: 24px; }
.mobile-shell .stat .stat-icon { width: 32px; height: 32px; flex-basis: 32px; }
.mobile-shell .board, .mobile-shell .board-groups, .mobile-shell .double, .mobile-shell .content-split { display: grid; grid-template-columns: minmax(0,1fr); }
.mobile-shell .panel { padding: 13px; border-radius: 15px; }
.mobile-shell .panel-title { margin-bottom: 10px; }
.mobile-shell .view-header .small { font-size: 13px; }
.mobile-shell .filter-line > label { flex: 1 1 135px; flex-wrap: wrap; }
.mobile-shell .details-grid { grid-template-columns: 1fr 1fr; }
.mobile-shell .detail-page { min-height: 100dvh; }
.mobile-shell .detail-page .main { padding-bottom: calc(77px + env(safe-area-inset-bottom)); }
.mobile-shell .detail-bar { display: flex; gap: 9px; align-items: center; min-width: 0; }
.mobile-shell .detail-bar strong { overflow-wrap: anywhere; }
.mobile-shell .detail-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 11; display: flex; gap: 5px; overflow-x: auto;
  background: #fff; border-top: 1px solid var(--border); padding: 6px max(9px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
.mobile-shell .detail-sticky button { white-space: nowrap; flex: 1 0 auto; }
.mobile-shell .calendar { min-width: initial; grid-template-columns: repeat(7,minmax(44px,1fr)); }
.mobile-shell .calendar-cell { padding: 2px; }
.mobile-shell .calendar-cell.month { min-height: 55px; }
.mobile-shell .calendar-cell .slot { min-height: 44px; text-align: center; }
.mobile-shell .schedule-list { display: grid; gap: 8px; }
.mobile-shell .calendar-controls .segment { order: 3; width: 100%; }
.mobile-shell [data-schedule-view="day"] .calendar-controls > button { padding-inline: 6px; }
.mobile-shell [data-schedule-view="day"] .calendar-label { flex: 1 0 auto; font-size: 16px; white-space: nowrap; }
.mobile-shell .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
.content-split .board { grid-template-columns: minmax(0,1fr); }
.content-split .stat-deck { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content-split .view-header { align-items: flex-start; flex-wrap: wrap; }
.content-split .view-header > :last-child { flex-shrink: 1; }

/* The light-blue material works with opaque surfaces on browsers without blur. */
body {
  background: radial-gradient(ellipse at 96% 5%, #d5e8ff 0%, transparent 49%),
    linear-gradient(146deg,#f9fbff 0%,#ebf3ff 44%,#f7faff 100%);
  background-attachment: fixed;
}
.topbar, .sidebar, .mobile-shell .bottom-nav, .mobile-shell .detail-sticky { background: #f5f9ff; }
.panel, .stat { background: #fcfdff; border-color: #d4e2f5; }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .topbar, .sidebar, .mobile-shell .bottom-nav, .mobile-shell .detail-sticky {
    background: rgb(248 252 255 / 79%); -webkit-backdrop-filter: blur(19px) saturate(145%); backdrop-filter: blur(19px) saturate(145%);
  }
  .panel, .stat { background: rgb(255 255 255 / 83%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  #dialog::backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.view-header {
  isolation: isolate; position: relative; overflow: hidden; min-height: 106px; padding: 20px 22px;
  background: linear-gradient(119deg,#f8fbff 3%,#e3efff 51%,#c9e1ff 100%);
  border: 1px solid #d3e4fa; border-radius: 19px;
}
.view-header.workbench-hero {
  min-height: 145px; padding: 24px 25px; align-items: center;
  background: linear-gradient(125deg,#f7fbff 0%,#e2f0ff 33%,#c1dbff 74%,#dcf1ff 100%);
}
.view-header::after {
  content: ''; position: absolute; z-index: -1; width: 70%; height: 260%; top: -105%; right: -17%; pointer-events: none;
  border: 1px solid #f8fcffd7; border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 50% 50%,transparent 0 31px,#ffffff74 32px 33px,transparent 34px 55px);
  transform: rotate(-22deg); opacity: .7;
}
.view-header h1 { color: #163a73; }
.view-header .toolbar { position: relative; }
.button.primary, button.primary { background: linear-gradient(145deg,#286fda,#104dab 86%); box-shadow: 0 4px 12px #1658b22b; }
.button.primary:hover, button.primary:hover { background: linear-gradient(145deg,#2165cc,#0a438f 86%); }
.nav-link[aria-current="page"] { background: linear-gradient(105deg,#e0edff,#eff6ff); }
.stat .stat-icon { background: linear-gradient(145deg,#d4e5ff,#edf5ff); color: #1559b7; }
.stat.selected { background: linear-gradient(130deg,#fafdff,#eaf3ff); }
html[data-motion="full"] button, html[data-motion="full"] a.button, html[data-motion="full"] .nav-link {
  transition: transform .24s cubic-bezier(.2,.8,.26,1.4), border-color .18s ease, color .15s, background-color .2s, box-shadow .25s ease;
}
html[data-motion="full"] .stat:hover, html[data-motion="full"] .item-card:hover {
  transform: translateY(-3px); box-shadow: 0 11px 25px #1a5ca81c;
}
html[data-motion="full"] button:active, html[data-motion="full"] .nav-link:active { transform: scale(.965); }
html[data-motion="full"] .enter-motion { animation: surface-enter .5s cubic-bezier(.18,.85,.23,1) both; }
html[data-motion="full"] .view-header.enter-motion::after { animation: glass-light 1.7s cubic-bezier(.16,1,.26,1) both; }
html[data-motion="full"] .stagger-in .stat { animation: surface-enter .45s cubic-bezier(.18,.85,.23,1) both; }
html[data-motion="full"] .stagger-in .stat:nth-child(2) { animation-delay: 55ms; }
html[data-motion="full"] .stagger-in .stat:nth-child(3) { animation-delay: 110ms; }
html[data-motion="full"] .stagger-in .stat:nth-child(4) { animation-delay: 165ms; }
html[data-motion="full"] #dialog[open] { animation: dialog-enter .36s cubic-bezier(.13,.85,.23,1) both; }
html[data-motion="full"] #dialog[open]::backdrop { animation: backdrop-enter .28s ease-out both; }
html[data-motion="full"] .mobile-shell .detail-page .enter-motion { animation-name: detail-enter; }
html[data-motion="reduced"] .view-header, html[data-motion="reduced"] .view-header.workbench-hero { background: #e7f1ff; }
html[data-motion="reduced"] .view-header::after { display: none; }
html[data-motion="reduced"] .panel, html[data-motion="reduced"] .stat, html[data-motion="reduced"] .topbar,
html[data-motion="reduced"] .bottom-nav, html[data-motion="reduced"] .detail-sticky {
  background: #fdfdff; -webkit-backdrop-filter: none; backdrop-filter: none;
}
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .view-header, .view-header.workbench-hero { background: #e7f1ff; }
  .view-header::after { display: none; }
  html[data-motion="full"] .enter-motion, html[data-motion="full"] .stagger-in .stat,
  html[data-motion="full"] #dialog[open], html[data-motion="full"] #dialog[open]::backdrop { animation: none; }
}
@keyframes surface-enter { from { opacity: .3; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes detail-enter { from { opacity: .32; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes dialog-enter { from { opacity: .5; transform: translateY(24px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.assistant-working { display: inline-block; width: .78em; height: .78em; vertical-align: -.06em; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: assistant-spin 1s linear infinite; }
@keyframes assistant-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .assistant-working { animation: none; } }
@keyframes glass-light { from { transform: translate(13%,12%) rotate(-28deg) scale(.87); opacity: .15; } to { transform: rotate(-22deg); opacity: .7; } }
@media (min-width: 1025px) and (max-width: 1220px) {
  :root { --nav: 190px; }
  .topbar { padding-inline: 17px; }
  .top-tools .sync-global .synctime { display: none; }
}
@media (max-width: 680px) {
  #dialog { inset: 0 0 auto; width: 100%; height: min(100dvh,var(--usable-height,100dvh)); margin: 0; max-height: unset; border-radius: 0; border: 0; }
  .dialog-inner { height: 100%; }
  .dialog-head { padding-top: max(10px,env(safe-area-inset-top)); }
  .dialog-foot { padding-bottom: max(10px,env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; }
  .dialog-foot .draft-status { flex: 1 0 100%; }
  .mobile-shell .view-header > :last-child { flex-shrink: 1; }
  .mobile-shell .item-card { grid-template-columns: minmax(0,1fr); }
  .mobile-shell .item-card .pill { justify-self: start; order: 2; }
  .mobile-shell .view-header, .mobile-shell .view-header.workbench-hero { padding: 17px 14px; min-height: 88px; }
  .mobile-shell .view-header.workbench-hero { min-height: 122px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mark { background: var(--blue); }
}
.mission-panel,.collab-summary { display:grid; gap:1rem; margin:1rem 0; }
.mission-panel { grid-template-columns:3fr 2fr; align-items:center; padding:clamp(1rem,3vw,2rem);
  border:1px solid #c9e0fa; border-radius:1.3rem; color:#123450; background:linear-gradient(112deg,#f5fbff,#dcefff 64%,#e8eaff); }
.mission-panel h2 { margin:.35rem 0; font-size:clamp(1.35rem,3vw,2rem); overflow-wrap:anywhere; }
.mission-panel p,.collab-summary p { margin:.4rem 0; }
.milestones { display:grid; gap:.4rem; }
.milestones progress { width:100%; accent-color:#287bc4; }
.collab-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
.collab-summary > div { min-width:0; padding:1rem; border:1px solid #dae7f4; border-radius:1rem; background:rgba(255,255,255,.82); }
.collab-summary h3 { margin:0; font-size:1rem; }
.collab-summary p,.collab-summary li { font-size:.88rem; overflow-wrap:anywhere; }
.collab-summary ul { padding-left:1.1rem; }
.collab-summary li span { display:block; }
.collab-summary summary { cursor:pointer; color:#185b92; }
html[data-motion="full"] .mission-panel { animation:mission-enter .38s ease-out both; }
@keyframes mission-enter { from {opacity:0;transform:translateY(6px)} to {opacity:1;transform:translateY(0)} }
@media(max-width:720px) { .mission-panel,.collab-summary { grid-template-columns:minmax(0,1fr); gap:.6rem; } }
