:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --blue: #0071e3;
  --blue-press: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --red: #ff3b30;
  --orange: #ff9f0a;
  --green: #34c759;
  --purple: #af52de;
  --sidebar: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --nav-w: 232px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Helvetica, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.011em;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.boot-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue);
  margin-bottom: 12px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(0.94); opacity: 0.8; } }

.install-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(1200px 500px at 50% -10%, #d6e6ff 0%, transparent 55%),
    var(--bg);
}
.install-card {
  width: min(640px, 100%);
  background: var(--bg-elevated);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.install-mark { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.install-mark h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.install-mark p { margin: 0; color: var(--muted); }
.lede { color: var(--ink-2); line-height: 1.5; }
.hint { color: var(--muted); font-size: 13px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-list li.ok::before { content: "✓ "; color: var(--green); }
.check-list li.bad::before { content: "✕ "; color: var(--red); }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.span-2 { grid-column: span 2; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fbfbfd;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
textarea { min-height: 88px; resize: vertical; }
.stack { display: grid; gap: 16px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.check input { width: auto; }
.color-pick { display: grid; gap: 8px; }
.color-pick > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  flex: 0 0 auto;
}
.swatch:hover { transform: scale(1.08); }
.swatch.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.swatch.custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ff3b30, #ff9f0a, #34c759, #0071e3, #af52de, #ff3b30);
}
.swatch.custom input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 980px;
  padding: 9px 16px;
  font-weight: 590;
  font-size: 15px;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform .12s ease, background .12s ease, opacity .12s;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-ghost { background: rgba(0,0,0,.05); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-tiny { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; padding: 12px 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: rgba(0,0,0,.05);
}
.icon-btn:hover { background: rgba(0,0,0,.08); }

.banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #003d82;
  font-size: 14px;
}
.banner.danger { background: #ffecec; color: #9b1c1c; }
.banner.warn { background: #fff4e0; color: #8a4b00; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 80% -10%, #cfe2ff 0%, transparent 50%),
    radial-gradient(700px 380px at 0% 100%, #e8e8ee 0%, transparent 45%),
    var(--bg);
}
.login-card {
  width: min(400px, 100%);
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card h1 { margin: 12px 0 4px; font-size: 34px; letter-spacing: -0.04em; font-family: var(--display); }
.login-card .sub { margin: 0 0 28px; color: var(--muted); }
.login-card form { display: grid; gap: 12px; text-align: left; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
}
.nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px 20px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 16px;
}
.brand h1 { font-size: 20px; margin: 0; letter-spacing: -0.03em; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.nav a, .nav button.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  font-weight: 510;
  font-size: 14px;
}
.nav a:hover, .nav button.nav-link:hover { background: rgba(0,0,0,.04); }
.nav a.active, .nav button.nav-link.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.nav .spacer { flex: 1; }
.nav-section {
  margin: 14px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.03);
}
.nav-user strong { display: block; font-size: 13px; }
.nav-user span { font-size: 12px; color: var(--muted); }
.nav-user.active { background: var(--blue-soft); color: var(--blue); }

.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(245,245,247,.82);
  backdrop-filter: saturate(180%) blur(20px);
  flex-wrap: nowrap;
}
.search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  position: relative;
}
.search input {
  padding-left: 36px;
  background: rgba(0,0,0,.05);
  border: 0;
  border-radius: 980px;
}
.search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted);
}
.view {
  padding: 8px 28px 40px;
  max-width: 1280px;
  width: 100%;
}
.view:has(.dash-page) { max-width: 1600px; }
.dash-page .title-row { margin: 0 0 12px; }
.dash-page .title-row h2 { font-size: 26px; }
.dash-page .title-row p { margin: 2px 0 0; font-size: 13px; }
.dash-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.dash-notes {
  position: sticky;
  top: 68px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
}
.qn-add {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
}
.qn-add textarea {
  min-height: 76px;
  resize: vertical;
  background: #fbfbfd;
}
.qn-add .btn { justify-self: end; }
.qn-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #c7c7cc transparent;
}
.qn-item {
  padding: 12px 14px 10px;
  border-top: 1px solid var(--line);
}
.qn-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.qn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.qn-empty {
  padding: 18px 14px 22px;
  color: var(--muted);
  font-size: 13px;
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 22px;
}
.title-row h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.title-row p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat.warn .v { color: var(--orange); }
.stat.bad .v { color: var(--red); }

.grid-2 { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.team-card { padding: 16px; overflow: visible; }
.team-card-meta { margin-top: 12px; }
.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
button.card { cursor: pointer; color: inherit; border: 0; width: 100%; }
.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.card-h h3 { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.list { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  background: transparent;
  border-left: 0; border-right: 0; border-bottom: 0;
  width: 100%;
}
.row:hover { background: rgba(0,0,0,.025); }
.row .t { font-weight: 590; }
.row .m { color: var(--muted); font-size: 13px; margin-top: 2px; }

.dash-todo { margin-bottom: 0; }
.dash-actions { display: flex; gap: 8px; }
.who-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 220px;
  padding: 5px 11px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who-box.none { background: #e8e8ed; color: #6e6e73; }

.dtable-wrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dtable tbody td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.dtable tbody tr { cursor: pointer; }
.dtable tbody tr:hover { background: rgba(0,0,0,.025); }
.dt-task { min-width: 220px; }
.dt-task strong { font-weight: 600; }
.dt-task .sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.dt-task .chip { padding: 1px 7px; font-size: 11px; }
.dt-when {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
  font-size: 13px;
}
.dtable .late { color: #c41c16; font-weight: 600; }
.dtable .muted { color: var(--muted); }
.dtable .pct-wrap { margin: 0; min-width: 130px; }

.delay-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.delay-tag.ok { background: #e8f7ee; color: #0d7a32; }
.delay-tag.delay { background: #fff4e0; color: #9a4d00; }
.delay-tag.late { background: #ffecec; color: #c41c16; }

.row.dash-mini {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.dash-mini .who-box { max-width: none; }
.dash-mini .dm-body { min-width: 0; }
.dash-mini .t { font-size: 14px; font-weight: 590; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-mini .m { color: var(--muted); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }

.dash .stats { gap: 10px; margin-bottom: 12px; }
.dash .stat { padding: 10px 14px; }
.dash .stat .k { font-size: 11px; }
.dash .stat .v { font-size: 24px; margin-top: 0; }
.dash .grid-2 { gap: 12px; margin-top: 12px; }
.dash .grid-2 > div { display: grid; gap: 12px; align-content: start; }
.dash .rings { padding: 4px 6px 12px; gap: 4px; }
.dash .ring { width: 100px; }
.dash .ring svg { width: 76px; height: 76px; }
.dash .ring strong { top: 26px; font-size: 16px; }
.led {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px;
  background: #c7c7cc;
  box-shadow: 0 0 0 3px rgba(199,199,204,.25);
}
.led.in_progress { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.led.blocked { background: var(--red); box-shadow: 0 0 0 3px rgba(255,59,48,.15); }
.led.completed { background: var(--green); }
.led.pending { background: var(--orange); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,0,0,.05);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip.urgent, .chip.critical { background: #ffecec; color: #c41c16; }
.chip.high { background: #fff4e0; color: #9a4d00; }
.chip.short { background: #e8f7ee; color: #0d7a32; }
.chip.long { background: #ece8ff; color: #5b2bb5; }
.chip.personal { background: #f3e8ff; color: #7a28b5; }
.chip.completed { background: #e8f7ee; color: #0d7a32; }
.chip.in_progress { background: var(--blue-soft); color: var(--blue); }
.chip.blocked { background: #ffecec; color: #c41c16; }
.chip.pending { background: #fff4e0; color: #9a4d00; }

.seg {
  display: inline-flex;
  background: rgba(0,0,0,.06);
  padding: 3px;
  border-radius: 10px;
}
.seg button {
  border: 0; background: transparent;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 590; color: var(--ink-2);
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td[data-go] { cursor: pointer; }
.table tr { cursor: default; }
.table tr:hover td { background: rgba(0,0,0,.02); }
.table .who-box { max-width: 180px; }

.avatar, .dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700;
  flex: 0 0 auto;
}

.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 { margin: 0 0 6px; color: var(--ink); }

.tl-wrap { overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.tl-shell {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tl-board {
  display: flex;
  overflow: auto;
  max-height: calc(100vh - 180px);
  scrollbar-width: thin;
  scrollbar-color: #c7c7cc #f2f2f4;
}
.tl-board::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
.tl-board::-webkit-scrollbar-track {
  background: #f2f2f4;
  border-radius: 99px;
  margin: 6px 10px;
}
.tl-board::-webkit-scrollbar-thumb {
  background: #c7c7cc;
  border-radius: 99px;
  border: 2px solid #f2f2f4;
  min-height: 36px;
  min-width: 48px;
}
.tl-board::-webkit-scrollbar-thumb:hover {
  background: #a1a1a6;
}
.tl-board::-webkit-scrollbar-thumb:active {
  background: var(--blue);
  border-color: #e8f1fb;
}
.tl-board::-webkit-scrollbar-corner {
  background: #fff;
}
.tl { min-width: 980px; }
.tl-head, .tl-row { display: grid; grid-template-columns: 188px 1fr; }
.tl-hours {
  display: grid;
  height: 32px;
  border-bottom: 1px solid var(--line);
}
.tl-hours span {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 4px 0;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line);
}
.tl-name {
  padding: 8px 12px;
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: #fff;
}
.tl-name strong { font-size: 13px; display: block; }
.tl-name small { color: var(--muted); }
.tl-track {
  position: relative;
  height: 64px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tl-block {
  position: absolute;
  top: 10px;
  height: 44px;
  border-radius: 10px;
  padding: 0 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: stretch;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  cursor: pointer;
  user-select: none;
}
.tl-btitle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 6px;
  pointer-events: none;
}
.tl-h {
  flex: 0 0 9px;
  border-radius: 6px;
  background: rgba(255,255,255,.28);
  cursor: ew-resize;
  z-index: 2;
}
.tl-h:hover { background: rgba(255,255,255,.7); }
.tl-block.resizing { z-index: 6; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
/* Helper blocks read as a lighter, hatched copy so the owner's bar stays dominant. */
.tl-block.is-helper {
  opacity: .78;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 6px, rgba(255,255,255,0) 6px 12px);
}
.tl-shared-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; margin-right: 5px; flex: 0 0 auto;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.15);
}
.tl-block.extra {
  top: 0; height: 100%; opacity: .12; border-radius: 0; box-shadow: none;
  display: block;
  padding: 0;
  cursor: default;
}
.date-nav { display: flex; align-items: center; gap: 8px; }

.split { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; padding: 4px 16px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.notes { white-space: pre-wrap; line-height: 1.5; }

/* Detail hero accents + shared status visuals */
.hero-info { border-left: 4px solid var(--blue); }
.hero-good { border-left: 4px solid var(--green); }
.hero-warn { border-left: 4px solid var(--orange); }
.hero-bad { border-left: 4px solid var(--red); }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.alert-ic { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.alert-ic svg { width: 100%; height: 100%; display: block; }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.alert strong { font-weight: 700; }
.alert-bad { background: #ffecec; color: #9b1c1c; }
.alert-warn { background: #fff4e0; color: #8a4b00; }
.alert-good { background: #e8f7ee; color: #0d7a32; }

.mstats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mstat {
  flex: 1 1 88px;
  min-width: 88px;
  background: #f6f6f8;
  border-radius: 12px;
  padding: 10px 12px;
}
.mstat-v {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mstat-k { font-size: 12px; color: var(--muted); font-weight: 600; }
.mstat.bad .mstat-v { color: var(--red); }
.mstat.warn .mstat-v { color: var(--orange); }
.mstat.good .mstat-v { color: var(--green); }

.pbar { height: 8px; border-radius: 99px; background: #ececf0; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.pbar.good i { background: var(--green); }

.phero { padding: 18px 20px; margin-bottom: 16px; overflow: visible; }
.phero-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.crumb { margin: 0; font-size: 13px; }
.phero-top h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.phero-meta { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.phero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-pill { padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.status-pill.info { background: var(--blue-soft); color: var(--blue); }
.status-pill.ok { background: #e8f7ee; color: #0d7a32; }
.status-pill.warn { background: #fff4e0; color: #9a4d00; }
.status-pill.bad { background: #ffecec; color: #c41c16; }
.phero-prog { margin-top: 16px; }
.phero-prog-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.phero-prog-head b { color: var(--ink); font-weight: 650; }
.phero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-who h2 { margin: 0; font-size: 26px; }
.profile-form { padding: 20px; display: grid; gap: 14px; margin-bottom: 16px; }
.pw-reveal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f2f2f4;
}
.pw-reveal code {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .04em;
  word-break: break-all;
}
.card-blockers { overflow: visible; border-left: 4px solid var(--red); }
.row.is-blocked { background: #fff7f6; }
.row.is-blocked:hover { background: #ffecec; }

.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact-block {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.fact-block h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-block p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

.tabs a .n {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  padding: 1px 7px;
  border-radius: 99px;
  vertical-align: middle;
}
.tabs a.on .n { background: var(--ink); color: #fff; }
.tabs a.hot { color: #c41c16; }
.tabs a.hot .n { background: #ffecec; color: #c41c16; }

.task-hero { padding: 18px 20px; margin-bottom: 16px; overflow: visible; }
.task-glance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.task-glance .who-box { max-width: none; }
.sched-rail {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(110px, 2.4fr) minmax(92px, 1fr);
  align-items: center;
  gap: 8px 12px;
  cursor: pointer;
  border-radius: 14px;
  padding: 4px 2px;
}
.sched-rail:hover { background: rgba(0, 0, 0, .02); }
.sched-pt small {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.sched-pt b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.15;
  margin: 2px 0 0;
}
.sched-pt .d { font-size: 13px; color: var(--muted); }
.sched-pt.end { text-align: right; }
.sched-bar {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: #ececf0;
  margin-top: 18px;
}
.sched-bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: inherit;
  background: var(--blue);
}
.sched-bar em {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  z-index: 2;
}
.sched-now {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--ink);
  box-shadow: 0 0 0 3px #fff;
  z-index: 1;
}
.sched.late .sched-bar i { background: var(--red); }
.sched.delay .sched-bar i { background: var(--orange); }
.sched.done .sched-bar i { background: var(--green); }
.sched.missing .sched-bar i { width: 0 !important; }
.sched-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  align-items: center;
}
.sched-fact { font-size: 13px; color: var(--muted); }
.sched-fact b { color: var(--ink); font-weight: 650; }
.task-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.task-done > span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  min-width: 40px;
}
.task-done .pct-wrap { flex: 1; margin: 0; }
.task-notes { padding: 12px 0 0; margin-top: 4px; border-top: 1px solid var(--line); }

.comments { padding: 0 16px 16px; display: grid; gap: 10px; }
.comment { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.comment .who { font-size: 12px; color: var(--muted); }
.composer { display: flex; gap: 8px; padding: 12px 16px 16px; }
.composer input { flex: 1; }

.doc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.doc .meta { font-size: 12px; color: var(--muted); }
.file-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px;
}

body.is-modal { overflow: hidden; }

.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 50;
  padding: 28px 16px;
  overflow: hidden;
}
.modal {
  width: min(640px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.modal.wide,
.modal.modal-lg { width: min(720px, 100%); }
.modal > h3 {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 18px 22px 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
  background: var(--bg-elevated);
  box-shadow: 0 1px 0 var(--line);
}
.modal .body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 22px 18px;
  display: grid;
  gap: 14px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7c7cc transparent;
}
.modal .body::-webkit-scrollbar {
  width: 10px;
}
.modal .body::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.modal .body::-webkit-scrollbar-thumb {
  background: #c7c7cc;
  border-radius: 99px;
  border: 2px solid var(--bg-elevated);
  min-height: 36px;
}
.modal .body::-webkit-scrollbar-thumb:hover {
  background: #a1a1a6;
}
.modal .body::-webkit-scrollbar-thumb:active {
  background: var(--blue);
  border-color: #e8f1fb;
}
.modal .foot {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px calc(16px + var(--safe-b));
  background: var(--bg-elevated);
  box-shadow: 0 -1px 0 var(--line);
}
.field-k { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.overlay-confirm { z-index: 70; }
.modal-confirm {
  width: min(400px, 100%);
  text-align: center;
  padding: 26px 24px 20px;
  overflow: visible;
  max-height: none;
}
.modal-confirm > h3 {
  padding: 4px 0 6px;
  font-size: 20px;
  box-shadow: none;
  background: transparent;
}
.modal-confirm .confirm-msg { margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 34ch; }
.modal-confirm .confirm-msg strong { color: var(--ink); }
.modal-confirm .foot {
  justify-content: center;
  padding: 20px 0 0;
  box-shadow: none;
  background: transparent;
}
.modal-confirm .foot .btn { min-width: 108px; }
.confirm-ic {
  width: 52px; height: 52px; margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.confirm-ic svg { width: 26px; height: 26px; }
.confirm-ic.danger { background: rgba(255,59,48,.12); color: #ff3b30; }
.confirm-ic.warn { background: rgba(255,159,10,.14); color: #c77700; }

/* Custom date & time picker */
.pick { display: block; }
.pick-btn {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfbfd;
  font: inherit; color: var(--ink); text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pick-btn:hover { background: #fff; border-color: #c9c9d0; }
.pick-btn:focus-visible { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.pick-btn.is-empty .pick-txt { color: var(--muted); }
.pick-ic { display: inline-flex; color: var(--muted); }
.pick-ic svg { width: 18px; height: 18px; }
.pick-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.overlay-pick { z-index: 75; align-items: flex-start; padding-top: 12vh; }
.pick-pop {
  width: min(320px, 100%);
  background: var(--bg, #fff);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
}
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pk-head strong { font-size: 15px; letter-spacing: -.02em; }
.pk-nav {
  width: 32px; height: 32px; border-radius: 9px; border: 0;
  background: transparent; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
}
.pk-nav:hover { background: rgba(0,0,0,.05); }
.pk-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 2px; }
.pk-dow span { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pk-cell {
  aspect-ratio: 1 / 1;
  border: 0; background: transparent; border-radius: 9px;
  font: inherit; font-size: 13px; color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.pk-cell.pk-pad { visibility: hidden; }
.pk-cell:hover:not(.pk-pad) { background: rgba(0,0,0,.06); }
.pk-cell.today { font-weight: 700; color: #0071e3; }
.pk-cell.on { background: #0071e3; color: #fff; font-weight: 600; }
.pk-time {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line, #eee);
}
.pk-time-ic { display: inline-flex; color: var(--muted); }
.pk-time-ic svg { width: 18px; height: 18px; }
.pk-time select {
  flex: 1; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--line, #e3e3e8); background: var(--bg); font: inherit; font-variant-numeric: tabular-nums;
}
.pk-colon { font-weight: 700; color: var(--muted); }
.pk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pk-foot-r { display: flex; gap: 8px; }

/* Task form: slots + helpers */
.field-block { display: grid; gap: 8px; }
.field-head { display: flex; align-items: center; justify-content: space-between; }
.field-head span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.slot-list { display: grid; gap: 8px; }
.slot-row { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; }
.slot-row .slot-pick { min-width: 0; }
.slot-dash { color: var(--muted); font-size: 14px; }
.slot-rm { flex: 0 0 auto; }
.due-pick { display: block; }

.helper-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line, #e3e3e8);
  border-radius: 999px;
  cursor: pointer; font-size: 13px;
  user-select: none;
}
.hp-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.hp-chip:has(input:checked) { border-color: #0071e3; background: rgba(0,113,227,.08); color: #0071e3; }
.hp-chip.is-owner { opacity: .4; cursor: not-allowed; }
.hp-chip .dot { flex: 0 0 auto; }

/* Task detail: helpers + multi-slot strip */
.helpers-chip { display: inline-flex; align-items: center; gap: 2px; padding-left: 4px; }
.helpers-chip .dot { margin-right: -6px; box-shadow: 0 0 0 2px var(--bg); }
.helpers-lbl { margin-left: 10px; font-weight: 600; }
.slot-strip { margin-top: 12px; }
.slot-strip-h { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip {
  display: inline-grid; gap: 1px;
  padding: 6px 12px; border-radius: 12px;
  background: rgba(0,0,0,.04); cursor: pointer;
  line-height: 1.2;
}
.slot-chip:hover { background: rgba(0,113,227,.1); }
.slot-chip b { font-size: 13px; }
.slot-chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.toast-wrap {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: grid; gap: 8px;
}
.toast {
  background: rgba(28,28,30,.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 980px;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.search-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 30;
}
.search-pop button {
  width: 100%; text-align: left; border: 0; background: #fff;
  padding: 10px 14px; border-top: 1px solid var(--line);
}
.search-pop .g { padding: 8px 14px 4px; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.muted { color: var(--muted); }
.right { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a, .tabs button {
  border: 0; background: none; padding: 10px 0 12px;
  color: var(--muted); font-weight: 590;
  box-shadow: inset 0 -2px 0 transparent;
}
.tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

.mail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.mail-item h4 { margin: 0 0 4px; font-size: 15px; }
.bottom-nav { display: none; }
.hidden { display: none !important; }

.rings {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 8px 8px 16px;
  flex-wrap: wrap;
}
.ring {
  width: 110px;
  text-align: center;
  position: relative;
}
.ring svg { width: 88px; height: 88px; display: block; margin: 0 auto; }
.ring strong {
  position: absolute;
  left: 0; right: 0; top: 32px;
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ring .rl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.ring .dotlet {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}

.pct-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pct-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #ececec;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: #ff6b6b;
}
.pct-slider:focus {
  background: #ececec;
  border-color: transparent;
  box-shadow: none;
}
.pct-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ff6b6b;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  cursor: pointer;
}
.pct-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ff6b6b;
  border: 2px solid #fff;
  cursor: pointer;
}
.pct-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
  position: relative;
}
.pct-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffb199, #ff6b6b);
  border-radius: 99px;
}
.pct-val {
  min-width: 36px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row.has-pct { align-items: center; }

.tl-week {
  display: flex;
  min-width: min-content;
}
.tl-names {
  flex: 0 0 188px;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  box-shadow: 8px 0 16px rgba(0,0,0,.04);
}
.tl-name-h { height: 52px; font-weight: 700; }
.tl-hours-spacer { height: 32px; border-bottom: 1px solid var(--line); }
.tl-scroll {
  flex: 0 0 auto;
}
.tl-day-col {
  flex: 0 0 720px;
  border-left: 1px solid var(--line);
}
.tl-day-col.is-today { background: #f7fbff; }
.tl-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 52px;
  background: inherit;
}
.tl-day-head h3 { margin: 0; font-size: 14px; letter-spacing: -0.02em; }
.chip.today { background: var(--blue-soft); color: var(--blue); }

.cal-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px 18px 8px;
  max-width: 520px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
}
.cal-dow {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0 10px;
}
.cal-cell {
  min-height: 58px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 6px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}
.cal-cell:hover { background: rgba(0,0,0,.04); }
.cal-cell.on { background: #ffe8e6; }
.cal-cell .n { font-size: 15px; font-weight: 600; }
.cal-cell.mute .n { color: #c7c7cc; }
.cal-counts { display: flex; gap: 6px; min-height: 14px; }
.cal-counts b {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cal-counts .mine { color: #ff3b30; }
.cal-counts .others { color: #34c759; }
.cal-legend {
  display: flex;
  gap: 16px;
  padding: 12px 4px 8px;
  font-size: 12px;
  color: var(--muted);
}
.cal-legend i { font-style: normal; font-weight: 700; }
.cal-legend .mine { color: #ff3b30; }
.cal-legend .others { color: #34c759; }
.cal-day-list { margin-top: 16px; }
.cal-split { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; align-items: start; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .nav { display: none; }
  .stats, .grid-2, .grid-3, .split, .field-grid, .form-2, .cal-split, .fact-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .overlay { padding: 12px 12px calc(84px + var(--safe-b)); align-items: end; }
  .modal { width: 100%; max-height: calc(100dvh - 96px - var(--safe-b)); border-radius: 18px; }
  .slot-row { grid-template-columns: 1fr auto; }
  .slot-row .slot-dash { display: none; }
  .view { padding: 8px 16px 96px; }
  .title-row h2 { font-size: 28px; }
  .topbar { padding: 10px 16px; }
  .who-box { max-width: 40vw; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-notes { position: static; max-height: none; }
  .sched-pt b { font-size: 22px; }
  .sched-rail { grid-template-columns: minmax(72px, 1fr) minmax(80px, 2fr) minmax(72px, 1fr); gap: 6px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 8px 8px calc(8px + var(--safe-b));
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    z-index: 40;
  }
  .bottom-nav a {
    color: var(--muted);
    font-size: 10px;
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 56px;
  }
  .bottom-nav a.on { color: var(--blue); }
  .bottom-nav svg { width: 22px; height: 22px; }
}
