/* DOT Studio — visual system. Colours sampled from DOT's diagrams and proposals; confirm against DOT's brand file.
   Gold means ONE thing: "your turn / needs your decision". Status is always a word plus a shape, never colour alone. */
:root {
  --navy: #1C1C1E; --navy-2: #343432; --slate: #343432; --gold: #DE6B3C; --gold-ink: #A64A22; --gold-tint: #FBE9DF;
  --cream: #F2EFE9; --paper: #FBFAF7; --sage: #6E9179; --sage-ink: #2F5D46; --sage-tint: #E3E9DF; --rust: #8F2D3A; --rust-tint: #F3E3E2;
  --ink: #1C1C1E; --grey: #8A877F; --grey-ink: #5A5852; --grey-2: #BEB9AD; --line: #E4DFD5; --line-2: #CFC9BC; --shadow: none;
  --r: 30px; --r-s: 16px; --serif: "Outfit", "Noto Sans Devanagari", "Noto Sans Gujarati", system-ui, sans-serif; --sans: "DM Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; --rail: 92px;
  /* the iPhone home-indicator inset (0 elsewhere): ONE value every bottom-anchored element adds, so an installed app never hides a button */
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--cream); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--slate); }
h1, h2, h3 { font-family: var(--serif); color: var(--slate); font-weight: 600; margin: 0; letter-spacing: .2px; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
svg.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.li > svg.ic { color: var(--slate); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--grey-ink); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.rail { width: var(--rail); background: var(--navy); color: #fff; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; z-index: 40; }
.rail .brand { width: 54px; margin-bottom: 14px; display: block; }
.rail .brand img { width: 100%; display: block; }
.rail-btn { width: 60px; border: 0; background: transparent; color: #E4DFD5; border-radius: 12px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: 10.5px; position: relative; }
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover { background: var(--navy-2); color: #fff; }
.rail-btn.on { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.rail-btn .dot { position: absolute; top: 4px; right: 12px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 4px; }
.rail .spacer { flex: 1; }
.rail .me { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--navy-2); cursor: pointer; padding: 0; background: transparent; }
.main { flex: 1; margin-left: var(--rail); min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px 0; }
.topbar .search { flex: 1; max-width: 460px; position: relative; }
.topbar .search input { width: 100%; height: 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); padding: 0 14px 0 38px; }
.topbar .search svg { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; color: var(--grey-ink); }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); z-index: 30; max-height: 360px; overflow: auto; }
.search-results button { display: flex; width: 100%; gap: 10px; text-align: left; border: 0; background: transparent; padding: 9px 12px; cursor: pointer; align-items: center; }
.search-results button:hover { background: var(--cream); }
.content { padding: 18px 28px 80px; flex: 1; min-width: 0; }
.bar-flow { margin: 0; }
.viewas-bar { background: var(--slate); color: #fff; padding: 9px 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.viewas-bar b { color: var(--gold); }
.viewas-bar .btn { background: #fff; color: var(--slate); }
.demo-bar { background: var(--gold-tint); color: var(--gold-ink); padding: 8px 28px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.demo-bar select { border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 6px; background: var(--paper); }
.tabbar { display: none; }

@media (max-width: 760px) {
  .rail { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 12px 16px 0; }
  .content { padding: 14px 16px calc(96px + var(--safe-b)); }
  .viewas-bar, .demo-bar { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 28px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(66px + var(--safe-b)); background: var(--navy); z-index: 40; align-items: center; justify-content: space-around; padding-bottom: var(--safe-b); }
  .tabbar .rail-btn { width: 64px; }
  .tabbar .plus { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--navy); border: 0; display: flex; align-items: center; justify-content: center; margin-top: -26px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .tabbar .plus svg { width: 26px; height: 26px; }
}

/* ---------- page ---------- */
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.page-head .grow { flex: 1; min-width: 200px; }
.page-head .lede { color: var(--slate); margin-top: 6px; font-size: 15.5px; max-width: 760px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { border: 1px solid var(--line-2); background: var(--paper); color: var(--slate); border-radius: 10px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; min-height: 40px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--slate); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn.primary:hover { background: var(--navy); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--paper); border-color: var(--line); }
.btn.danger { color: var(--rust); border-color: var(--rust-tint); }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { flex: 1; min-width: 0; }
.card.attn { border-left: 4px solid var(--gold); }
.card.late { border-left: 4px solid var(--rust); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section-title { font-family: var(--serif); font-size: 21px; color: var(--slate); margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-title .count { font-family: var(--sans); font-size: 13px; color: var(--grey-ink); }

/* figures: every number is a button that opens the list behind it */
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fig { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-align: left; cursor: pointer; box-shadow: var(--shadow); display: block; width: 100%; }
.fig:hover { border-color: var(--slate); }
.fig .l { font-size: 12.5px; color: var(--grey-ink); text-transform: uppercase; letter-spacing: .5px; }
.fig .v { font-family: var(--serif); font-size: 32px; color: var(--slate); line-height: 1.1; margin-top: 4px; font-weight: 600; }
.fig .m { font-size: 12.5px; color: var(--grey-ink); margin-top: 2px; }
.fig.gold { border-color: var(--gold); background: linear-gradient(0deg, var(--gold-tint), var(--paper) 70%); }
.fig.gold .v { color: var(--gold-ink); }
.fig.rust .v { color: var(--rust); }
.fig.sage .v { color: var(--sage-ink); }
.fig[data-nogo] { cursor: default; }
.sentence { font-family: var(--serif); font-size: 21px; color: var(--slate); margin: 0 0 16px; line-height: 1.35; }
.sentence b { color: var(--navy); font-weight: 600; }
.sentence b.turn { color: var(--gold-ink); }

/* chips & status */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 2px 9px; font-size: 12px; font-weight: 500; border: 1px solid var(--line-2); background: var(--paper); color: var(--slate); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.gold { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-ink); }
.chip.sage { border-color: var(--sage); background: var(--sage-tint); color: var(--sage-ink); }
.chip.rust { border-color: var(--rust); background: var(--rust-tint); color: var(--rust); }
.chip.grey { color: var(--grey-ink); }
.chip.navy { border-color: var(--navy); color: var(--navy); }
.chip.solid { background: var(--slate); border-color: var(--slate); color: #fff; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.st i { flex: none; width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid var(--grey-2); }
.st.wait i { border-color: var(--slate); }
.st.done i { background: var(--sage-ink); border-color: var(--sage-ink); }
.st.turn i { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-tint); }
.st.late i { background: var(--rust); border-color: var(--rust); border-radius: 2px; transform: rotate(45deg); }
.st.going i { border-color: var(--slate); background: linear-gradient(90deg, var(--slate) 50%, transparent 50%); }
.st.late { color: var(--rust); }
.stage-dots { display: inline-flex; gap: 4px; align-items: center; }
.stage-dots span { width: 18px; height: 6px; border-radius: 3px; background: var(--line-2); }
.stage-dots span.done { background: var(--sage-ink); }
.stage-dots span.current { background: var(--gold); }
.stage-dots span.late { background: var(--rust); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--sage-ink); }
.progress.gold > i { background: var(--gold); }
.progress.rust > i { background: var(--rust); }

/* avatars */
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--slate); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; background-size: cover; background-position: center; border: 2px solid var(--paper); }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.av.xl { width: 72px; height: 72px; font-size: 24px; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }

/* project cards (the studio wall) */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: left; padding: 0; }
.pcard:hover { border-color: var(--slate); transform: translateY(-1px); }
.cover { aspect-ratio: 16 / 9; position: relative; display: flex; align-items: flex-end; padding: 12px; color: #fff; background-size: cover; background-position: center; }
.cover .tag { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.cover .tag .chip { background: rgba(255,255,255,.92); border-color: transparent; }
.cover .mono-mark { font-family: var(--serif); font-size: 40px; opacity: .9; font-weight: 600; }
.cover.c-terracotta { background-image: linear-gradient(135deg, #6E9179, #A64A22); }
.cover.c-sage { background-image: linear-gradient(135deg, #8A877F, #2F5D46); }
.cover.c-slate { background-image: linear-gradient(135deg, #8A877F, #343432); }
.cover.c-gold { background-image: linear-gradient(135deg, #DE6B3C, #1C1C1E); }
.cover.c-navy { background-image: linear-gradient(135deg, #A64A22, #1C1C1E); }
.cover.c-olive { background-image: linear-gradient(135deg, #8A877F, #5A5852); }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pcard .client { font-family: var(--serif); font-size: 20px; color: var(--slate); line-height: 1.15; }
.pcard .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }

/* lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.li .s { font-size: 12.5px; color: var(--grey-ink); overflow-wrap: anywhere; }
.li.click { cursor: pointer; border-radius: 8px; }
.li.click:hover { background: var(--cream); }
/* a long list: its first rows, then "Show more" (js/core/ui.js UI.page) */
.more-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 4px 2px; }
.wall + .more-row { padding-top: 14px; }
.thumb { width: 54px; height: 42px; border-radius: 8px; flex: none; background: var(--line); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--grey-ink); }
.thumb svg { width: 20px; height: 20px; }

/* desk row: three big buttons */
.desk-row { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 10px; flex-wrap: wrap; }
.desk-row .grow { flex: 1; min-width: 200px; }
.tap { display: flex; gap: 8px; }
.tap button { min-width: 88px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; font-weight: 600; color: var(--slate); }
.tap button.done:hover, .tap button.done.on { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.tap button.still:hover, .tap button.still.on { background: var(--slate); border-color: var(--slate); color: #fff; }
.tap button.stuck:hover, .tap button.stuck.on { background: var(--rust); border-color: var(--rust); color: #fff; }
@media (max-width: 760px) { .tap { width: 100%; } .tap button { flex: 1; min-width: 0; } .pill, .btn.sm { min-height: 40px; min-width: 40px; } .seg button { min-height: 40px; } .linkish { min-height: 40px; display: inline-flex; align-items: center; } }
/* keyboard and screen-reader basics: a skip link, a polite live region for page changes, no motion when the person asks for none */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* tables become cards on a phone */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--grey-ink); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--cream); }
.tbl .r { text-align: right; }
@media (max-width: 760px) {
  table.tbl.cards thead { display: none; }
  table.tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 10px; padding: 8px 10px; background: var(--paper); }
  .tbl.cards td { border: 0; padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; }
  .tbl.cards td::before { content: attr(data-l); color: var(--grey-ink); font-size: 12px; flex: none; }
  .tbl.cards td.r { text-align: right; }
}

/* tabs & segmented controls */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; color: var(--grey-ink); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--slate); border-bottom-color: var(--gold); }
.seg { display: inline-flex; background: var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 6px 12px; cursor: pointer; color: var(--slate); font-size: 13.5px; }
.seg button.on { background: var(--paper); box-shadow: var(--shadow); font-weight: 600; }

/* forms */
.form { display: grid; gap: 12px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .form .row2, .form .row3 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; color: var(--slate); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--grey-ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); padding: 9px 11px; min-height: 42px; font-size: 15px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn.mic { width: auto; align-self: flex-start; margin: 6px 0 0; min-height: 40px; }
.btn.mic.on { background: var(--rust); color: #fff; border-color: var(--rust); }
@media (max-width: 760px) { input, select, textarea { font-size: 16px !important; } }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--slate); }
.err { color: var(--rust); font-size: 13.5px; }
.note { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; font-size: 13.5px; color: var(--slate); }
.note.attn { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-ink); }
.note.late { background: var(--rust-tint); border-color: var(--rust); color: var(--rust); }
.more-fields > summary { cursor: pointer; color: var(--slate); font-weight: 500; padding: 4px 0; }

/* modal (a bottom sheet on a phone) */
.overlay { position: fixed; inset: 0; background: rgba(19, 48, 61, .45); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow: auto; }
.modal { background: var(--paper); border-radius: 18px; width: 100%; max-width: 620px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; min-width: 0; max-height: 88vh; }
.modal.wide { max-width: 940px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
.modal-head h2 { flex: 1; font-size: 24px; min-width: 0; }
.modal-body { padding: 4px 20px 16px; overflow: auto; min-width: 0; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.x { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--grey-ink); }
.x:hover { background: var(--cream); }
.x svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal.wide { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal-foot { padding-bottom: calc(16px + var(--safe-b)); }
}
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); max-width: 92vw; font-size: 14px; pointer-events: auto; }
.toast.err { background: var(--rust); }
.toast.ok { background: var(--sage-ink); }
.toast .btn { margin-left: 12px; vertical-align: middle; min-height: 40px; }
@media (max-width: 760px) { .toast-host { bottom: calc(84px + var(--safe-b)); } }

/* gantt */
.gantt { position: relative; overflow-x: auto; }
.g-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; min-height: 30px; border-bottom: 1px dashed var(--line); }
.g-row .g-name { font-size: 13px; padding-right: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-track { position: relative; height: 22px; }
.g-bar { position: absolute; top: 4px; height: 14px; border-radius: 7px; background: var(--line-2); }
.g-bar.base { background: transparent; border: 1.5px dashed var(--grey-2); }
.g-bar.fc { background: var(--slate); opacity: .9; }
.g-bar.fc.done { background: var(--sage-ink); }
.g-bar.fc.late { background: var(--rust); }
.g-bar.fc.current { background: var(--gold); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); z-index: 2; }
.g-scale { display: grid; grid-template-columns: 220px 1fr; font-size: 12px; color: var(--grey-ink); }
.g-scale .ticks { position: relative; height: 18px; }
.g-scale .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 760px) { .g-row, .g-scale { grid-template-columns: 120px 1fr; } }

/* journey ribbon */
.journey { display: flex; gap: 0; overflow-x: auto; padding: 4px 0 10px; }
.journey .step { flex: 1; min-width: 92px; position: relative; text-align: center; font-size: 12px; color: var(--grey-ink); padding-top: 28px; }
.journey .step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: var(--line-2); }
.journey .step:first-child::before { left: 50%; }
.journey .step:last-child::before { right: 50%; }
.journey .step i { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-2); }
.journey .step.done i { background: var(--sage-ink); border-color: var(--sage-ink); }
.journey .step.done::before { background: var(--sage-ink); }
.journey .step.current i { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.journey .step.late i { border-color: var(--rust); background: var(--rust); }
.journey .step b { display: block; color: var(--slate); font-size: 12.5px; }

/* seal (the one celebratory animation) */
@keyframes stamp { 0% { transform: scale(2.2) rotate(-12deg); opacity: 0; } 60% { transform: scale(.9) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.seal { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; border: 3px double var(--gold); color: var(--gold-ink); align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; font-weight: 700; text-align: center; line-height: 1.05; animation: stamp .6s ease-out both; }
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }

/* bars */
.bars .bar { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; }
.bars .bar .track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bars .bar .track i { display: block; height: 100%; background: var(--slate); }
.bars .bar .track i.over { background: var(--rust); }
.bars .bar .track i.gold { background: var(--gold); }
@media (max-width: 640px) { .bars .bar { grid-template-columns: 96px 1fr 56px; } }

/* login */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, #F9F7F2, var(--cream) 60%); }
.auth .box { width: 100%; max-width: 410px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.auth .logo { width: 150px; margin: 0 auto 18px; display: block; }
.auth h1 { text-align: center; font-size: 30px; margin-bottom: 4px; }
.auth p.lede { text-align: center; color: var(--grey-ink); margin: 0 0 18px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; }

/* reel */
.reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.reel .tile { aspect-ratio: 4/3; border-radius: 12px; background-size: cover; background-position: center; position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; padding: 8px; font-size: 12.5px; }
.reel .tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.reel .tile span { position: relative; z-index: 1; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--grey-ink); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.empty { text-align: center; padding: 26px 14px; color: var(--grey-ink); }
.empty b { display: block; color: var(--slate); font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { border: 1px solid var(--line-2); background: var(--paper); border-radius: 20px; padding: 5px 12px; cursor: pointer; font-size: 13px; color: var(--slate); }
.pill.on { background: var(--slate); border-color: var(--slate); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.bell-list .li.unread .t::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 6px; }

/* photos (build step 20): a grid of thumbnails by day, and a before / latest pair */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ph-cell { display: block; padding: 0; border: 1px solid var(--line, #E4DFD5); border-radius: 10px; background: var(--paper, #ffffff); overflow: hidden; text-align: left; cursor: pointer; min-height: 40px; }
.ph-cell .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream, #F2EFE9); }
.ph-cell .small { display: block; padding: 4px 6px; color: var(--grey-ink, #5A5852); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* pinned comments (build step 23) */
.pin-layer { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.pin-layer img { max-width: 100%; border-radius: 8px; display: block; }
.pin-layer.adding { cursor: crosshair; outline: 2px dashed var(--navy, #1C1C1E); outline-offset: 2px; border-radius: 8px; }
.pin { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 4px; box-sizing: border-box; border-radius: 13px; background: var(--navy, #1C1C1E); color: #fff; font: 600 13px/22px "DM Sans", system-ui, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: none; }
.pin.static { position: static; transform: none; display: inline-block; box-shadow: none; }
.pin.mine { background: var(--gold, #1C1C1E); }
.pin.ask { background: var(--rust, #1C1C1E); }
.pin.done { background: var(--sage, #6E9179); opacity: .7; }

/* ---------- Dots (2026-11-19): DOT Architects' own mark is the dot, so the whole studio is made of dots — dotted paper, round buttons, figures that are discs, progress drawn in dots, dotted leaders instead of rules,
   covers composed of circles, every page title ending in a full stop that is a dot. Warm white, ink black and ONE orange dot that means ONE thing: it is your turn. Status is a word plus a shape. ---------- */
:root { --r: 30px; --r-s: 16px; --dot: #DE6B3C; --soft: 0 1px 1px rgba(28, 28, 30, .04), 0 16px 36px -16px rgba(40, 36, 28, .24); --lift: 0 2px 2px rgba(28, 28, 30, .05), 0 28px 52px -18px rgba(40, 36, 28, .34); --spring: cubic-bezier(.2, .8, .2, 1); --rail: 92px; }
::selection { background: var(--dot); color: var(--ink); }
body { background-color: var(--cream); background-image: radial-gradient(rgba(28, 28, 30, .17) 1.2px, transparent 1.7px); background-size: 24px 24px; background-attachment: fixed; }
/* two big dots behind the page: one solid, one a ring */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; }
body::before { right: -12vw; top: -16vw; width: 40vw; height: 40vw; background: radial-gradient(circle at 35% 35%, rgba(222, 107, 60, .12), rgba(222, 107, 60, .05)); }
body::after { left: -9vw; bottom: -11vw; width: 30vw; height: 30vw; border: 2px dotted rgba(28, 28, 30, .18); }
h1, h2, h3, .section-title, .sentence, .fig .v, .pcard .client, .empty b { font-family: var(--serif); color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; }
.page-head h1::after, .auth h1::after { content: ""; display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--ink); margin-left: .07em; vertical-align: baseline; }
h2 { font-size: 30px; } h3 { font-size: 22px; }
.page-head { border: 0; margin: 10px 0 28px; }
.page-head .lede, .sentence { font-family: var(--sans); font-size: 17px; font-style: normal; color: var(--grey-ink); max-width: 640px; line-height: 1.55; }
.sentence b { color: var(--ink); }
.section-title { font-size: 24px; font-weight: 500; text-transform: none; letter-spacing: -.02em; color: var(--ink); border: 0; padding: 0; margin: 40px 0 16px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--ink); border-radius: 50%; }
.section-title::after { content: ""; flex: 1; height: 0; border-top: 3px dotted rgba(28, 28, 30, .22); }
.section-title .count { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 1px 10px; font: 600 13px var(--sans); order: 2; }
.fig .l, th, .field > span { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--grey-ink); }
th { font-size: 13px; }
.card, .pcard, .empty, .note, .toast { background: rgba(255, 253, 249, .92); border: 0; box-shadow: var(--soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--r); }
.card { padding: 24px 26px; }
.card.attn { box-shadow: var(--soft), inset 0 0 0 2px var(--dot); }
.empty { background: transparent; box-shadow: none; border: 3px dotted var(--line-2); }
/* figures are discs */
.figs { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; }
.fig { background: rgba(255, 253, 249, .95); border: 0; box-shadow: var(--soft); border-radius: 50%; aspect-ratio: 1; padding: 18px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: transform .45s var(--spring), box-shadow .45s var(--spring); }
.fig .l { font-size: 13.5px; line-height: 1.25; }
.fig .v { font-size: 46px; font-weight: 400; line-height: 1; letter-spacing: -.03em; margin-top: 6px; }
.fig .m { font-size: 12.5px; color: var(--grey-ink); font-style: normal; margin-top: 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 82%; }
button.fig:hover { transform: scale(1.05); box-shadow: var(--lift); }
.pcard:hover, .card.click:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.fig.gold { background: linear-gradient(150deg, #E98558, #D4622F); box-shadow: 0 18px 40px -14px rgba(222, 107, 60, .65); }
.fig.gold .v, .fig.gold .l, .fig.gold .m { color: var(--ink); }
.fig.sage { background: var(--sage-tint); }
.fig.rust { background: #EFEAE3; }
.fig.rust .v { color: var(--rust); }
.btn { border: 0; border-radius: 999px; background: rgba(28, 28, 30, .07); color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 14.5px; text-transform: none; letter-spacing: 0; padding: 10px 22px; min-height: 42px; transition: transform .25s var(--spring), background .2s, box-shadow .25s var(--spring); }
.btn:hover { background: rgba(28, 28, 30, .12); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold, .chip.gold { background: var(--dot); color: var(--ink); }
.btn.gold { box-shadow: 0 12px 26px -10px rgba(222, 107, 60, .75); }
.btn.gold:hover { background: #FF7240; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(28, 28, 30, .06); }
.btn.danger { color: var(--rust); background: var(--rust-tint); }
.btn.mic.on { background: var(--dot); color: var(--ink); }
.chip { border: 0; border-radius: 999px; background: rgba(28, 28, 30, .07); color: var(--ink); font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; padding: 3px 11px; }
.chip.solid { background: var(--ink); color: var(--paper); }
.chip.sage { background: var(--sage-tint); color: var(--sage-ink); }
.chip.rust { background: var(--rust-tint); color: var(--rust); box-shadow: inset 0 0 0 1.5px currentColor; background-image: none; }
.chip.grey { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--grey-ink); }
.chip.navy { background: rgba(28, 28, 30, .12); color: var(--ink); }
.st i { border-color: var(--ink); }
.st.done i { background: var(--sage-ink); border-color: var(--sage-ink); }
.st.late { color: var(--rust); font-weight: 700; text-decoration: none; }
.st.turn i { border-color: var(--dot); background: var(--dot); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(222, 107, 60, .5); }
input, select, textarea { border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(222, 107, 60, .28); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tabs { border: 0; gap: 4px; padding: 4px; background: rgba(28, 28, 30, .06); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs button { border-radius: 999px; border: 0; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--grey-ink); padding: 8px 16px; }
.tabs button.on { background: var(--ink); color: var(--paper); border: 0; }
.seg { background: rgba(28, 28, 30, .06); border: 0; border-radius: 999px; padding: 3px; }
.seg button { border-radius: 999px; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--soft); }
.li { border: 0; border-radius: var(--r-s); padding: 12px; margin: 0 -4px; transition: background .2s; }
.li + .li { border-top: 2px dotted rgba(28, 28, 30, .16); border-radius: 0 0 var(--r-s) var(--r-s); }
.li.click:hover { background: rgba(222, 107, 60, .09); }
/* the dock is a column of dots */
.rail { inset: 14px auto 14px 14px; width: 68px; background: rgba(255, 253, 249, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); border: 0; border-radius: 34px; box-shadow: var(--soft); padding: 16px 0 14px; gap: 6px; }
.rail .brand img { filter: invert(1) brightness(.1); }
.rail-btn { color: var(--grey-ink); border-radius: 50%; width: 56px; height: 56px; padding: 0; justify-content: center; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 600; transition: background .2s, color .2s, transform .25s var(--spring); }
.rail-btn:hover { background: rgba(28, 28, 30, .07); color: var(--ink); transform: scale(1.08); }
.rail-btn.on { background: var(--ink); color: var(--paper); box-shadow: 0 10px 20px -6px rgba(28, 28, 30, .55); }
.rail-btn .dot, .tabbar .plus { background: var(--dot); color: var(--ink); border: 2px solid var(--paper); }
.rail .me { border: 2px solid var(--line-2); border-radius: 50%; }
.tabbar { left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); background: rgba(255, 253, 249, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 0; border-radius: 36px; box-shadow: var(--lift); }
.tabbar .rail-btn { width: 60px; height: 60px; }
.tabbar .rail-btn.on { background: var(--ink); color: var(--paper); }
.topbar .search input { border: 0; border-radius: 999px; background: rgba(255, 253, 249, .95); box-shadow: var(--soft); padding-right: 56px; height: 46px; }
.topbar .search::after { content: "/"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 12px/1 var(--mono); background: rgba(28, 28, 30, .07); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; color: var(--grey-ink); pointer-events: none; }
.viewas-bar, .demo-bar { background: var(--ink); color: var(--paper); border-radius: 0 0 24px 24px; }
/* covers: a composition of dots, initials in a white dot */
.cover { border-radius: var(--r) var(--r) 0 0; color: var(--ink); background-color: #EAE5DA; background-image: radial-gradient(circle at 16% 72%, #1C1C1E 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #DE6B3C 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #FBFAF7 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #1C1C1E 0 3.6%, transparent 4%), radial-gradient(circle at 60% 90%, rgba(28, 28, 30, .18) 0 5%, transparent 5.5%); }
.cover.c-terracotta { background-color: #EADCD0; background-image: radial-gradient(circle at 16% 72%, #9A4A2E 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #FBFAF7 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #E8C0A8 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #1C1C1E 0 3.6%, transparent 4%); }
.cover.c-sage { background-color: #E1E7DC; background-image: radial-gradient(circle at 16% 72%, #2F5D46 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #FBFAF7 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #B7C9B5 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #1C1C1E 0 3.6%, transparent 4%); }
.cover.c-slate { background-color: #E0E4E9; background-image: radial-gradient(circle at 16% 72%, #34455A 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #FBFAF7 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #B4C0CF 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #1C1C1E 0 3.6%, transparent 4%); }
.cover.c-gold { background-color: #F1E7CF; background-image: radial-gradient(circle at 16% 72%, #1C1C1E 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #FBFAF7 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #E6C98A 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #DE6B3C 0 3.6%, transparent 4%); }
.cover.c-navy { background-color: #DADEE8; background-image: radial-gradient(circle at 16% 72%, #2B3550 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #FBFAF7 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #B1B9D0 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #1C1C1E 0 3.6%, transparent 4%); }
.cover.c-olive { background-color: #E8E6D3; background-image: radial-gradient(circle at 16% 72%, #5E6538 0 10%, transparent 10.5%), radial-gradient(circle at 44% 34%, #FBFAF7 0 6.5%, transparent 7%), radial-gradient(circle at 76% 66%, #CCD0A4 0 16%, transparent 16.5%), radial-gradient(circle at 93% 18%, #1C1C1E 0 3.6%, transparent 4%); }
.cover .mono-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #FBFAF7; color: var(--ink); font: 500 26px/1 var(--serif); letter-spacing: 0; box-shadow: var(--soft); opacity: 1; }
.cover .tag .chip { background: rgba(255, 253, 249, .9); color: var(--ink); }
/* progress drawn in dots */
.progress { height: 14px; border: 0; border-radius: 0; background: radial-gradient(circle, rgba(28, 28, 30, .2) 3px, transparent 3.6px) 0 50% / 12px 14px repeat-x; overflow: hidden; }
.progress > i, .progress.gold > i { background: radial-gradient(circle, var(--ink) 3px, transparent 3.6px) 0 50% / 12px 14px repeat-x; border-radius: 0; }
.progress.gold > i { background-image: radial-gradient(circle, var(--dot) 3px, transparent 3.6px); }
.av { background: var(--ink); border: 2px solid var(--paper); }
.seal { border: 3px double var(--ink); color: var(--ink); }
.pin.mine { background: var(--dot); color: var(--ink); }
a { color: var(--ink); text-decoration: underline dotted var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.modal { border-radius: 36px; background: var(--paper); box-shadow: 0 40px 100px -20px rgba(28, 28, 30, .5); }
.toast { background: var(--ink); color: var(--paper); border-radius: 999px; }
.auth { background: transparent; }
.auth .box { border: 0; border-radius: 40px; background: rgba(255, 253, 249, .95); box-shadow: var(--lift); }
.note.attn { background: var(--gold-tint); color: var(--gold-ink); }
.note.late, .card.note.late { background: rgba(255, 253, 249, .95); color: var(--ink); box-shadow: var(--soft), inset 0 0 0 2px var(--rust); }
.note.late b, .note.late strong { color: var(--rust); }
@media (max-width: 760px) { h1 { font-size: 38px; } .figs { grid-template-columns: repeat(2, 1fr); gap: 12px; } .fig { padding: 12px; } .fig .v { font-size: 38px; } .fig .m { display: none; } .card { padding: 18px 20px; } .cover .mono-mark { width: 60px; height: 60px; font-size: 22px; } body::before, body::after { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .fig, .btn, .rail-btn, .li { transition: none; } button.fig:hover, .pcard:hover, .card.click:hover, .btn:hover, .rail-btn:hover { transform: none; } }
@media print { body { background: #fff; } body::before, body::after { display: none; } .card, .fig { box-shadow: none; backdrop-filter: none; } }
.fig .v { font-size: 40px; overflow-wrap: anywhere; } @media (max-width: 760px) { .fig .v { font-size: 34px; } }

/* tone (2026-11-19): quieter, more grown-up — bone paper, graphite ink, a clay accent, muted earth covers, lighter display weights */
:root { --dot: #DE6B3C; }
body { background-image: radial-gradient(rgba(28, 28, 30, .13) 1.1px, transparent 1.6px); }
h1, h2, h3, .section-title, .fig .v { font-weight: 400; }
h1 { letter-spacing: -.035em; }
.fig .v { font-weight: 300; }
.card, .fig, .pcard { box-shadow: 0 1px 1px rgba(40, 36, 28, .04), 0 18px 40px -20px rgba(40, 36, 28, .28); }
.fig.sage { background: #E3E9DF; }
.fig.rust { background: #EFEAE3; }
.rail-btn.on, .tabs button.on, .btn.primary { background: #1C1C1E; }

/* ---------- Studio at a glance (2026-11-20): stage bars drawn in dots, and the map of where the work is ---------- */
.sg { display: flex; flex-direction: column; gap: 2px; }
.sg-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; align-items: center; gap: 12px; padding: 10px 6px; border: 0; background: transparent; border-bottom: 1px dotted var(--line-2); text-align: left; cursor: pointer; min-height: 44px; font: inherit; color: var(--ink); border-radius: 0; }
.sg-row:hover { background: rgba(28, 28, 30, .04); }
.sg-l { font-size: 14px; }
.sg-dots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sg-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); display: inline-block; }
.sg-dots em { font-style: normal; font-size: 12px; color: var(--grey-ink); margin-left: 2px; }
.sg-row b { font-family: var(--serif); font-size: 22px; font-weight: 300; }
.sg-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sg-types .chip { cursor: pointer; background: transparent; }
.mapbox { position: relative; width: 100%; max-width: 760px; margin: 0 auto; background-image: radial-gradient(rgba(28, 28, 30, .16) 1px, transparent 1.2px); background-size: 14px 14px; border-radius: var(--r-s); }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapland { fill: rgba(110, 145, 121, .10); stroke: var(--grey); stroke-width: 1.6; stroke-dasharray: 1 6; stroke-linecap: round; stroke-linejoin: round; }
.md { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.mapdot { min-width: 38px; min-height: 38px; border-radius: 50%; border: 2px solid var(--paper); background: var(--ink); color: var(--paper); cursor: pointer; box-shadow: 0 0 0 3px rgba(28, 28, 30, .14); font: inherit; padding: 0 6px; }
.mapdot:hover { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 4px rgba(222, 107, 60, .3); }
.mdl { font-size: 11px; color: var(--grey-ink); margin-top: 3px; background: rgba(251, 250, 247, .8); padding: 0 4px; border-radius: 6px; white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; font: inherit; text-align: left; }
.glance { align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) { .glance { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .sg-row { grid-template-columns: 1fr auto; } .sg-dots { display: none; } .mdl { font-size: 10px; } }

/* ---------- Levels and timeline (2026-11-20): a card per level, and a timeline bar per project cut into its stages ---------- */
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; margin-bottom: 8px; }
.tl .tl-axis, .tl .tl-row { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 12px; align-items: center; }
.tl-axis { margin-top: 6px; }
.tl-axis .tl-track { height: 20px; border-bottom: 1px dotted var(--line-2); }
.tl-m { position: absolute; top: 0; font-size: 11px; color: var(--grey-ink); transform: translateX(-2px); white-space: nowrap; }
.tl-row { width: 100%; background: transparent; border: 0; border-bottom: 1px dotted var(--line-2); padding: 10px 4px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); min-height: 48px; border-radius: 0; }
.tl-row:hover { background: rgba(28, 28, 30, .04); }
.tl-lab { display: flex; flex-direction: column; min-width: 0; }
.tl-lab b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lab small { font-size: 11.5px; color: var(--grey-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; min-height: 14px; }
.tl-lane { position: relative; height: 12px; margin: 2px 0; }
.tl-today { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px solid var(--ink); z-index: 2; pointer-events: none; }
.seg { position: absolute; top: 0; height: 12px; border-radius: 6px; box-sizing: border-box; }
.seg.done { background: var(--ink); }
.seg.now { background: repeating-linear-gradient(135deg, var(--ink) 0 3px, #5A5852 3px 6px); }
.seg.next { background: transparent; border: 1.5px dotted var(--ink); }
.seg.late { box-shadow: 0 0 0 2px var(--rust); }
@media (max-width: 760px) { .tl .tl-axis, .tl .tl-row { grid-template-columns: 1fr; gap: 4px; } .tl-axis .tl-lab { display: none; } .lvl-grid { grid-template-columns: 1fr; } }

/* ---------- Project map (2026-11-21): India zoomed to the work, or the world drawn in dots; live in ink, completed in green ---------- */
.mapctl { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 14px; }
.mapwrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.maplist { max-height: 460px; overflow: auto; }
.mapindia { fill: url(#mapdots); stroke: var(--grey); stroke-width: 1.2; stroke-linejoin: round; opacity: .9; }
.mapworld { fill: url(#mapdots); stroke: none; opacity: .85; }
.mapbox .mapland { fill: rgba(110, 145, 121, .14); stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2 5; }
.mapbox.world { background-image: none; }
.mapdot { min-width: 34px; min-height: 34px; font-weight: 600; }
.mapdot.done { background: var(--sage-ink); }
.mapdot.done:hover { background: var(--gold); color: var(--ink); }
.mdl { font-size: 11.5px; font-weight: 500; color: var(--ink); background: rgba(251, 250, 247, .92); padding: 1px 6px; border-radius: 8px; margin-top: 4px; white-space: nowrap; box-shadow: 0 0 0 1px var(--line); }
.sg-l small { font-size: 11.5px; }
@media (max-width: 900px) { .mapwrap { grid-template-columns: 1fr; gap: 14px; } .maplist { max-height: none; } }

/* ---------- Accessibility and finish (2026-11-22): from the accessibility review, the design critique and the UI/UX Pro Max rules ---------- */
.card-head h2 { flex: 1; min-width: 0; font-size: 22px; line-height: 1.5; }
.tabhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabhead h2 { margin: 0 0 4px; font-size: 26px; }
.pill { padding: 8px 14px; }
.btn.sm { min-height: 40px; }
.sg-types .chip { min-height: 40px; display: inline-flex; align-items: center; }
.tabs button { min-height: 40px; }
.mapdot { min-width: 44px; min-height: 44px; }
.mdl, .tl-m, .tl-lab small, .sg-l small { font-size: 12px; }
.av.more { background: var(--grey-ink); color: #fff; }
.pill { min-height: 40px; }
.backlink { display: inline-flex; align-items: center; min-height: 40px; }
.card form select, .card form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .modal form select, .modal form input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { min-height: 40px; }
.av.sm.more { font-size: 12px; }
.linkish { display: inline-flex; align-items: center; min-height: 40px; }
.seg button { min-height: 40px; }
.btn.sm { min-width: 40px; }
@media (max-width: 760px) { .cal-item, .cal-more { min-height: 40px; } }
.card > h2.h3like { font-size: 22px; line-height: 1.5; }
.x { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.tiny a { display: inline-block; padding: 11px 2px; }

/* ---------- Hindi and Gujarati (2026-11-22): the two scripts need taller lines, no letter-spacing (it breaks the joined letters) and their own fonts (Noto Sans, loaded from the same font service) ---------- */
html:lang(hi-IN) body, html:lang(gu-IN) body { line-height: 1.65; }
html:lang(hi-IN) *, html:lang(gu-IN) * { letter-spacing: 0 !important; }
html:lang(hi-IN) h1, html:lang(gu-IN) h1 { line-height: 1.35; }
html:lang(hi-IN) h2, html:lang(gu-IN) h2, html:lang(hi-IN) h3, html:lang(gu-IN) h3, html:lang(hi-IN) .sentence, html:lang(gu-IN) .sentence, html:lang(hi-IN) .section-title, html:lang(gu-IN) .section-title { line-height: 1.5; }
html:lang(hi-IN) .fig .l, html:lang(gu-IN) .fig .l, html:lang(hi-IN) .fig .m, html:lang(gu-IN) .fig .m, html:lang(hi-IN) .chip, html:lang(gu-IN) .chip, html:lang(hi-IN) .btn, html:lang(gu-IN) .btn, html:lang(hi-IN) .pill, html:lang(gu-IN) .pill { line-height: 1.45; }

/* Density (js/engine/density.js): "compact" draws the figure row as capsules — a small value disc and the words beside it — and tightens cards, so more of the work
   is on one screen. "comfortable" is the large discs above. Everything here is scoped to the attribute; a capsule is still the same button that opens its list. */
html[data-density="compact"] .figs { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 10px; margin-bottom: 14px; }
html[data-density="compact"] .fig { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "v l" "v m"; align-items: center; column-gap: 12px; row-gap: 0; aspect-ratio: auto; border-radius: 999px; padding: 6px 18px 6px 6px; min-height: 56px; text-align: left; }
html[data-density="compact"] .fig .v { grid-area: v; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; display: grid; place-items: center; background: rgba(28, 28, 30, .06); font-size: 21px; font-weight: 400; line-height: 1; margin: 0; letter-spacing: -.02em; white-space: nowrap; }
html[data-density="compact"] .fig .l { grid-area: l; font-size: 13.5px; line-height: 1.2; align-self: center; text-align: left; }
html[data-density="compact"] .fig .m { grid-area: m; font-size: 12px; line-height: 1.2; margin: 0; align-self: start; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
html[data-density="compact"] button.fig:hover { transform: none; box-shadow: var(--lift); }
html[data-density="compact"] .fig.gold .v { background: rgba(255, 255, 255, .38); }
html[data-density="compact"] .fig.sage .v, html[data-density="compact"] .fig.rust .v { background: rgba(255, 255, 255, .55); }
html[data-density="compact"] .card { padding: 16px 18px; }
html[data-density="compact"] .section-title { margin-top: 18px; margin-bottom: 10px; }
html[data-density="compact"] .split { gap: 14px; }
html[data-density="compact"] .wall { gap: 12px; }
@media (max-width: 760px) {
  html[data-density="compact"] .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-density="compact"] .fig { padding: 5px 12px 5px 5px; column-gap: 8px; }
  html[data-density="compact"] .fig .v { min-width: 38px; height: 38px; font-size: 18px; padding: 0 8px; }
  html[data-density="compact"] .fig .l { font-size: 13px; }
  html[data-density="compact"] .card { padding: 14px 14px; }
}

/* The studio Home as a dashboard: three columns on a wide screen (what needs you · where the studio stands · the week), one column below it with the work first. */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-a, .dash-b, .dash-c { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dash .card { margin-bottom: 0; }
.dash .section-title { margin-top: 4px; }
@media (min-width: 1200px) { .dash { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .95fr); } .dash-b .mapwrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1199px) { .dash-c { order: 2; } .dash-b { order: 3; } }

/* Phone: the project wall is one sideways strip (swipe through the projects) instead of a long column. */
@media (max-width: 760px) {
  html[data-density="compact"] .wall { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; }
  html[data-density="compact"] .wall > * { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }
}
@media (max-width: 760px) {
  html[data-density="compact"] .fig { min-height: 46px; }
  html[data-density="compact"] .fig .m { display: none; }
  html[data-density="compact"] .fig .v { min-width: 34px; height: 34px; font-size: 17px; }
  html[data-density="compact"] h1 { font-size: 32px; }
  html[data-density="compact"] .figs { margin-bottom: 8px; }
}

/* The staff project room: seven steps, a small row of sections under the open step, and the "What's next" strip. */
.tabs.sub { background: transparent; padding: 0; border-radius: 0; gap: 6px; margin-top: -6px; width: auto; }
.tabs.sub button { border: 1px solid var(--line); background: var(--paper); font-size: 13px; padding: 6px 14px; min-height: 40px; font-weight: 500; }
.tabs.sub button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-n, .pill-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: rgba(28, 28, 30, .08); color: var(--ink); font-size: 12px; line-height: 20px; text-align: center; }
.tab-n { background: var(--gold); font-weight: 600; }
.card.next { margin-bottom: 14px; }
.card.next .card-head { margin-bottom: 6px; }
.next-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px dotted var(--line-2); flex-wrap: wrap; }
.next-row:first-of-type { border-top: 0; }
.next-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--grey-ink); flex: none; }
.next-row.first .next-dot { background: var(--gold); border-color: var(--gold); }
.next-t { flex: 1 1 240px; min-width: 0; font-weight: 500; }
.next-who { white-space: nowrap; }

/* The staff project room (learnt from Potlu): a start-to-handover line, and To-dos · Notes · Meetings that never move. */
.pbar { margin-top: 2px; }
.pbar-ends { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--grey-ink); margin-bottom: 6px; flex-wrap: wrap; }
.pbar-words { color: var(--ink); font-weight: 500; }
.pbar.late .pbar-words { color: var(--rust); }
.pbar-track { position: relative; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.pbar-time { position: absolute; left: 0; top: 3px; height: 4px; border-radius: 2px; background: var(--grey-2); }
.pbar-work { position: absolute; left: 0; top: 0; height: 10px; border-radius: 5px; background: var(--sage-ink, #2F5D46); opacity: .85; }
.pbar-today { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); transform: translateX(-1px); }
.room-grid { display: block; }
.room-side { display: grid; gap: 12px; margin-top: 14px; }
.room-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
@media (min-width: 1200px) {
  .room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .room-side { display: grid; gap: 12px; position: sticky; top: 12px; }
  .room-quick { display: none; }
}
.side-card { margin: 0; padding: 14px 16px; }
.side-card .card-head { margin-bottom: 8px; }
.side-card h2 { font-size: 18px; }
.side-add { min-width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.side-list { display: grid; gap: 0; }
.side-row { display: grid; gap: 2px; padding: 8px 0; border-top: 1px dotted var(--line-2); }
.side-row:first-child { border-top: 0; padding-top: 0; }
.side-t { font-size: 14px; overflow-wrap: anywhere; }
.late-word { color: var(--rust); }
.wbar { display: flex; gap: 3px; margin: 0 0 12px; min-height: 40px; }
.wbar-seg { border: 0; border-radius: 6px; padding: 0 10px; min-width: 64px; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wbar-seg.done { background: #DDE6D8; color: var(--ink); }
.wbar-seg.active { background: var(--navy); color: #fff; }
.wbar-seg.pending { background: rgba(28, 28, 30, .07); color: var(--ink); }
.pill.on .pill-n { background: rgba(255, 255, 255, .25); }
.act-day + .act-day { margin-top: 10px; }
.act-date { font-size: 12px; font-weight: 600; color: var(--grey-ink); margin: 0 0 4px; }
.ld-age { margin: -4px 0 14px; }
.ld-note { display: flex; gap: 8px; margin: 0 0 10px; }
.ld-note input { flex: 1; min-width: 0; min-height: 40px; }
/* a page that holds several screens: its tabs sit above the screen (App.PAGES) */
.tabs.pagetabs { margin: 0 0 14px; }

/* The left strip's panel (js/core/flyout.js): it slides out beside the strip over the page, never squeezing it. */
.flyout { position: fixed; top: 0; bottom: 0; left: var(--rail); width: 248px; z-index: 40; background: var(--paper); border-right: 1px solid var(--line); box-shadow: 18px 0 40px -24px rgba(28, 28, 30, .35);
  padding: 18px 14px; overflow-y: auto; opacity: 0; transform: translateX(-12px); transition: opacity .16s ease, transform .16s ease; }
.flyout.open { opacity: 1; transform: none; }
.flyout[hidden] { display: none; }
.fly-head { display: grid; gap: 2px; margin: 0 4px 12px; }
.fly-head b { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.fly-find { width: 100%; min-height: 40px; border-radius: 20px; border: 1px solid var(--line); padding: 0 14px; margin: 0 0 10px; background: var(--paper); }
.fly-h { font-size: 12px; font-weight: 600; color: var(--grey-ink); margin: 12px 6px 4px; }
.fly-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 14px; }
.fly-item svg { width: 18px; height: 18px; flex: none; color: var(--grey-ink); }
.fly-item:hover, .fly-item:focus-visible { background: rgba(28, 28, 30, .06); outline: none; }
.fly-item.on { background: var(--navy); color: #fff; }
.fly-item.on svg { color: #fff; }
.fly-all { display: block; margin: 14px 10px 4px; color: var(--grey-ink); }
.rail-btn.fly-on { background: var(--navy-2); color: #fff; }
@media (max-width: 760px) { .flyout { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .flyout { transition: none; } }
.ph-adjust { display: grid; gap: 12px; justify-items: center; }
.ph-adjust canvas { width: 260px; height: 260px; border-radius: 50%; cursor: grab; touch-action: none; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.ph-adjust canvas:active { cursor: grabbing; }
.ph-adjust .field { width: 260px; }
.ck-list { display: grid; gap: 4px; }
.ck-item { min-height: 40px; align-items: center; }
.ck-item.done { color: var(--grey-ink); text-decoration: line-through; text-decoration-color: rgba(28, 28, 30, .3); }
.ck-dots { display: flex; gap: 4px; margin: 0 0 10px; }
.ck-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink, #2F5D46); }
.kb-body { line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }

/* Projects: the bar of choices and the dashboard of what is chosen */
.pj-bar { display: grid; gap: 8px; margin: 0 0 14px; }
.pj-picks { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pj-picks .field { min-width: 180px; margin: 0; }
.pj-levels .card-head .btn { margin-left: 6px; }

/* Skill Matrix: the career path L1 → L5 (js/engine/career.js) */
.cr-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.cr-step { display: grid; gap: 2px; padding: 10px; border-radius: 14px; background: rgba(28, 28, 30, .05); min-width: 0; }
.cr-step b { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.cr-step.on { background: var(--navy); color: #fff; }
.cr-step.on .muted { color: rgba(255, 255, 255, .75); }
@media (max-width: 760px) { .cr-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Instant To-do: the one-line add */
.td-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; margin: 12px 0; }
.td-quick input[name="text"] { flex: 1 1 260px; min-height: 40px; }
.td-quick select, .td-quick input[type="date"] { min-height: 40px; max-width: 220px; }

.id-logo { min-height: 64px; display: flex; align-items: center; margin: 6px 0 12px; }
.id-logo img { max-height: 64px; max-width: 220px; }
/* a project's 3D-style scene (js/engine/scene.js) fills its cover until a photo or render is uploaded */
.cover.has-scene { position: relative; overflow: hidden; }
.cover.has-scene .scene { position: absolute; inset: 0; display: block; }
.cover.has-scene .scene svg { width: 100%; height: 100%; display: block; }
.cover.has-scene::before, .cover.has-scene::after { display: none; }
.cover.has-scene .mono-mark { position: absolute; z-index: 1; }
.cover.has-scene .mono-mark { width: 40px; height: 40px; font-size: 14px; top: 12px; left: 12px; transform: none; }
.pj-picks .check { min-height: 40px; display: inline-flex; align-items: center; }
/* dependency map (js/modules/depmap.js): hollow = planned, solid = actual, lines = what waits on what */
.dm-chart { overflow-x: auto; }
.dm-scale, .dm-row { display: grid; grid-template-columns: 240px minmax(320px, 1fr); }
.dm-scale { font-size: 12px; color: var(--grey-ink); }
.dm-ticks { position: relative; height: 18px; }
.dm-ticks span { position: absolute; white-space: nowrap; }
.dm-body { position: relative; }
.dm-lines { position: absolute; top: 0; bottom: 0; left: 240px; width: calc(100% - 240px); height: 100%; pointer-events: none; z-index: 1; }
.dm-lines path { fill: none; stroke: var(--grey-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dm-lines path.bad { stroke: var(--rust); stroke-width: 2; }
.dm-row { height: 44px; align-items: stretch; width: 100%; border: 0; border-bottom: 1px dotted var(--line-2); background: transparent; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dm-row:hover { background: var(--cream); }
.dm-row.context { opacity: .65; }
.dm-name { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-right: 10px; font-size: 12px; line-height: 1.35; }
.dm-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.dm-track { position: relative; }
.dm-bar { position: absolute; border-radius: 6px; }
.dm-bar.plan { top: 10px; height: 10px; border: 1.5px solid var(--grey); background: var(--paper); box-sizing: border-box; }
.dm-bar.act { top: 24px; height: 10px; background: var(--slate); }
.dm-bar.act.done { background: var(--sage-ink); }
.dm-bar.act.late { background: var(--rust); }
.dm-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rust); opacity: .5; }
.dm-list { display: none; }
.dm-list.always { display: block; }
@media (max-width: 760px) { .dm-chart { display: none; } .dm-list { display: block; } }
/* dummy data in the local demonstration (js/core/sample.js): its own blue, used for nothing else. A live studio never has it. */
.dummy, .dummy .t, a.dummy { color: #2F47B8 !important; }
.dummy-key { font-size: 13px; color: var(--grey-ink); padding: 6px 0; }
/* the employee view's reality cards */
.reality h2 .linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; min-height: 40px; }

/* module switches: one row each — name, one line, the word, the switch (a dot that slides) */
.sw-card > p { margin: 0 0 6px; }
.sw-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sw-group h3 { font-size: 15px; margin: 16px 0 4px; }
.sw-list { list-style: none; margin: 0; padding: 0; }
.sw { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; gap: 12px; align-items: center; padding: 10px 0; min-height: 56px; border-bottom: 1px dotted var(--line-2); cursor: pointer; }
.sw-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-desc { font-size: 13px; color: var(--grey-ink); }
.sw-state { font-size: 12px; font-weight: 600; color: var(--grey-ink); text-align: right; max-width: 90px; }
.sw input { position: absolute; right: 0; top: 50%; width: 48px; height: 40px; margin: -20px 0 0; opacity: 0; cursor: pointer; }
.sw-track { grid-column: 3; width: 48px; height: 28px; border-radius: 14px; border: 1.5px solid var(--grey-ink); background: var(--paper); position: relative; pointer-events: none; }
.sw-track::after { content: ""; position: absolute; top: 3.5px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--grey-ink); transition: transform .18s ease; }
.sw input:checked ~ .sw-track { background: var(--ink); border-color: var(--ink); }
.sw input:checked ~ .sw-track::after { background: var(--paper); transform: translateX(19px); }
.sw input:focus-visible ~ .sw-track { outline: 2px solid var(--navy); outline-offset: 2px; }
.sw.off .sw-text b { color: var(--grey-ink); }
.sw.locked, .sw.locked input { cursor: default; }
.sw.locked .sw-track { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .sw-track::after { transition: none; } }

/* Instant To-do — the round tick. 40 px tap target; sage once done (done = sage, never gold). */
.td-tick { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: transparent; flex: none; padding: 0; }
.td-tick svg { width: 18px; height: 18px; }
.td-tick:hover { border-color: var(--sage-ink); color: var(--sage-ink); }
.td-tick.on { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.td-tick.off { cursor: default; opacity: .6; }
.td-tick.off:hover { border-color: var(--line-2); color: transparent; }
.td-tick.off.on:hover { color: #fff; border-color: var(--sage-ink); }

/* Calendar — month grid on a wide screen, a list by day on a phone. Gold = your turn, rust = late, sage = done. */
.linkish { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }
.cal-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cream); color: var(--slate); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cal-ic.gold { background: var(--gold-tint); color: var(--gold-ink); }
.cal-ic.rust { background: var(--rust-tint); color: var(--rust); }
.cal-ic.sage { background: var(--sage-tint); color: var(--sage-ink); }

.cal-month { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-ink); border-bottom: 1px solid var(--line); }
.cal-dow span { padding: 8px 10px; }
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 6px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: #F9F7F2; }
.cal-cell.out .cal-num { color: var(--grey-ink); }
.cal-cell.off { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(138, 143, 140, .06) 8px 9px); }
.cal-num { align-self: flex-start; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-weight: 600; color: var(--slate); font-size: 13px; }
.cal-num:hover { background: var(--cream); }
.cal-cell.today .cal-num { background: var(--slate); color: #fff; }
.cal-item { min-height: 32px; display: flex; gap: 5px; align-items: center; width: 100%; border: 1px solid var(--line); border-left: 3px solid var(--line-2); background: var(--paper); border-radius: 6px; padding: 3px 6px; font-size: 12px;
  cursor: pointer; text-align: left; color: var(--ink); min-width: 0; }
.cal-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-item svg { width: 13px; height: 13px; color: var(--slate); }
.cal-item:hover { border-color: var(--slate); }
.cal-item.gold { border-left-color: var(--gold); background: var(--gold-tint); }
.cal-item.rust { border-left-color: var(--rust); }
.cal-item.rust svg { color: var(--rust); }
.cal-item.sage { border-left-color: var(--sage-ink); color: var(--sage-ink); }
.cal-item.k-holiday, .cal-item.k-open { background: var(--cream); }
.cal-item.k-leave { border-style: dashed; border-left-style: solid; }
.cal-more { min-height: 32px; border: 0; background: transparent; color: var(--slate); font-size: 12px; cursor: pointer; text-align: left; padding: 2px 4px; }
.cal-agenda { display: none; }
.cal-dayhead { margin-top: 18px; gap: 8px; flex-wrap: wrap; }

.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 160px; }
.cal-col.today { border-color: var(--slate); box-shadow: inset 0 3px 0 var(--slate); }
.cal-col.off { background: #F9F7F2; }
.cal-colhead { font-size: 13px; font-weight: 600; color: var(--slate); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }

@media (max-width: 760px) {
  .cal-month { display: none; }
  .cal-agenda { display: block; }
  .cal-week { grid-template-columns: minmax(0, 1fr); }
  .cal-col { min-height: 0; }
  .cal-item { font-size: 13.5px; padding: 8px 10px; min-height: 40px; }
}

/* Timesheet — the week as seven small days (fits a 375 px phone), each with its hours and a bar to the day's target. */
.ts-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.ts-day { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-s); padding: 7px 4px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 1px; font-size: 12px; color: var(--grey-ink); min-width: 0; min-height: 64px; text-align: center; font: inherit; }
button.ts-day { cursor: pointer; }
button.ts-day:hover { border-color: var(--slate); }
.ts-day b { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--slate); font-weight: 600; }
.ts-day span { font-size: 12.5px; }
.ts-day .mono { color: var(--ink); font-weight: 500; }
.ts-day i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--slate); }
.ts-day.full i { background: var(--sage-ink); }
.ts-day.short { border-color: var(--rust-tint); }
.ts-day.short i { background: var(--rust); }
.ts-day.today { border-color: var(--slate); box-shadow: inset 0 2px 0 var(--slate); }
.ts-day.off { background: #F9F7F2; }
.ts-dayhead { margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.ts-short { color: var(--rust); }

/* The client-facing pieces (approvals.js, selections.js, files.js, client.js): decision cards, the selections board,
 * the drawing register's client cards and the client's documents. Pictures first; gold only for "your turn". */
.cs-ap { padding: 0; overflow: hidden; }
.cs-ap-img { display: block; width: 100%; max-height: 420px; object-fit: cover; background: var(--line); }
.cs-ap-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.cs-ap-body h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin: 0; color: var(--slate); }
.cs-ap-note { margin: 0; color: var(--ink); }
.cs-decide { display: grid; gap: 8px; margin-top: 4px; }
.cs-decide textarea { min-height: 72px; }
.cs-decide .btn { min-height: 44px; }
.cs-comments { display: grid; gap: 6px; }
.cs-comment { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px; font-size: 13.5px; }

.cs-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 4px; }
.cs-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.cs-fams > .card, .cs-items > .card { margin-top: 0; }
.cs-fam { padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; width: 100%; font: inherit; color: inherit; }
.cs-fam:hover { border-color: var(--slate); }
.cs-fam-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.cs-item, .cs-doc { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cs-item-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.cs-name { font-family: var(--serif); font-size: 19px; line-height: 1.15; color: var(--slate); overflow-wrap: anywhere; }
.cs-pic { aspect-ratio: 4 / 3; background: var(--line) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--grey-ink); }
.cs-pic.fam { aspect-ratio: 16 / 10; }
.cs-pic svg { width: 28px; height: 28px; }
.cs-quick { margin: 6px 0 4px; }
.cs-quick .btn { min-height: 36px; }
.cs-vers .li .t { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cs-preview { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 12px; }
.cs-preview .card { box-shadow: none; }

@media (max-width: 760px) {
  .cs-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-items { grid-template-columns: minmax(0, 1fr); }
  .cs-ap-img { max-height: 300px; }
  .cs-decide .actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Agenda & MOM — date tiles, the minutes in DOT's paper layout, numbered agenda points and 40 px row controls. */
.mt-date { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; flex: none; font-size: 12px; color: var(--grey-ink); text-transform: uppercase; letter-spacing: .4px; line-height: 1.05; }
.mt-date b { font-family: var(--serif); font-size: 21px; color: var(--slate); font-weight: 600; letter-spacing: 0; text-transform: none; }
.mt-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mt-row { flex-wrap: wrap; }
.mt-row .grow { min-width: 180px; }
.mt-sr { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line-2); color: var(--slate); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mt-end { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.mt-ctrls { display: inline-flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.btn.mt-ib { min-height: 40px; min-width: 40px; justify-content: center; padding: 5px 9px; }
.mt-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--slate); }
.mt-checks { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding: 2px; }
.mt-ol { margin: 0; padding-left: 22px; }
.mt-ol li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.mt-ol li:last-child { border-bottom: 0; }

/* the paper layout: navy header row, ruled cells (on a phone the table becomes cards, as everywhere) */
@media (min-width: 761px) {
  .mt-paper .tbl th { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
  .mt-paper .tbl td { border: 1px solid var(--line-2); }
  .mt-paper .tbl td:first-child { width: 44px; text-align: center; font-family: var(--mono); color: var(--slate); }
}
@media (max-width: 640px) {
  .mt-row .mt-end { width: 100%; justify-content: space-between; padding-left: 40px; }
}

/* Change requests — the CR rows, the impact box and the stage-grouped pickers of the raise form. Everything else uses
 * the shared app.css. Gold only marks a CR that is YOUR turn; status is the shared word-plus-shape. */
.cr-list { display: grid; gap: 0; }
.cr-row .grow { cursor: pointer; min-width: 220px; }
.cr-row.cr-turn { border-left: 4px solid var(--gold); }
.cr-title { font-weight: 600; overflow-wrap: anywhere; }
.cr-code { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--slate); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; margin-right: 8px; white-space: nowrap; }
.cr-foot { margin-top: 10px; }
.cr-ask { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--slate); margin: 4px 0 10px; overflow-wrap: anywhere; }
.cr-sub { font-family: var(--serif); font-size: 19px; color: var(--slate); margin: 14px 0 4px; }

/* the impact, in words */
.cr-impact { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.cr-imp-h { font-size: 15.5px; }
.cr-imp-h b, .cr-impact b { color: var(--slate); }
.cr-money { border-top: 1px dashed var(--line-2); padding-top: 8px; display: grid; gap: 4px; }

/* pickers: one fold per stage, every row a 40 px tap target */
.cr-picks { display: grid; gap: 8px; }
.cr-stage { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); }
.cr-stage > summary { cursor: pointer; padding: 10px 12px; min-height: 40px; font-weight: 500; color: var(--slate); }
.cr-stage > summary .count { color: var(--grey-ink); font-size: 12.5px; font-weight: 400; margin-left: 6px; }
.cr-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 14px; padding: 0 12px 10px; }
.cr-checks .check { min-height: 40px; align-items: center; }
.cr-extra .cr-checks { padding: 0 0 6px; }
.cr-xstage { margin: 8px 0 2px; }
.cr-radio { min-height: 40px; align-items: flex-start; margin-top: 6px; }
.cr-radio .cr-lines { display: block; margin-top: 4px; }
.cr-bul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.cr-foot-note { margin-right: auto; align-self: center; }
@media (max-width: 640px) {
  .cr-checks { grid-template-columns: minmax(0, 1fr); }
  .cr-row .grow { min-width: 0; flex-basis: 100%; }
  .cr-ask { font-size: 19px; }
}

/* Client onboarding — the checklist rows (40 px tick, sage once done; done is never gold), the kick-off line and the
 * wall of projects being onboarded. Phone first: one tick and one line per item; owner and note behind a small disclosure. */
.ob-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.ob-row:last-child { border-bottom: 0; }
.ob-row .grow { flex: 1; min-width: 0; }
.ob-row .t { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ob-row.done .t { color: var(--slate); }
.ob-row .s { font-size: 12.5px; color: var(--grey-ink); overflow-wrap: anywhere; }
.ob-tick { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: transparent; flex: none; padding: 0; }
.ob-tick svg { width: 18px; height: 18px; }
.ob-tick:hover { border-color: var(--sage-ink); color: var(--sage-ink); }
.ob-tick.on { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.ob-tick.off { cursor: default; opacity: .6; }
.ob-tick.off:hover { border-color: var(--line-2); color: transparent; }
.ob-tick.off.on, .ob-tick.off.on:hover { color: #fff; border-color: var(--sage-ink); opacity: 1; }
.ob-note { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--paper); font: inherit; font-size: 13.5px; }
.ob-more { margin-top: 6px; }
.ob-more summary { cursor: pointer; font-size: 12.5px; color: var(--slate); min-height: 32px; display: inline-flex; align-items: center; }
.ob-more[open] { background: var(--cream); border-radius: var(--r-s); padding: 4px 10px 10px; display: grid; gap: 8px; }
.ob-more select { min-height: 40px; width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; background: var(--paper); font: inherit; font-size: 13.5px; }
.ob-notetext { font-size: 13px; color: var(--slate); margin-top: 3px; overflow-wrap: anywhere; }
.ob-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.ob-extra { margin-top: 8px; }
.ob-kick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ob-kick .grow { flex: 1; }
.ob-split { margin-top: 14px; }
.ob-person { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin-top: 10px; display: grid; gap: 10px; background: var(--paper); }
.ob-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ob-card { padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; width: 100%; }
.ob-card:hover { border-color: var(--slate); }
.ob-card-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.ob-card-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ob-name { font-family: var(--serif); font-size: 19px; color: var(--slate); }

/* Clients — the directory wall: each client is a card led by its projects' covers (pictures first). */
.cl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cl-card { padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; width: 100%; }
.cl-card:hover { border-color: var(--slate); }
.cl-covers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--line); }
.cl-covers .cover { aspect-ratio: 16 / 9; padding: 8px; }
.cl-covers .cover .mono-mark { font-size: 28px; }
.cl-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.cl-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cl-name { font-family: var(--serif); font-size: 20px; color: var(--slate); }
.cl-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Vendors & agencies, and the partner portal — the directory wall (each firm is a card led by the covers of the projects
 * it worked on, pictures first), the trade picker and the drawings picker. Everything else uses the shared app.css. */
.vd-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.vd-card { padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; width: 100%; }
.vd-card:hover { border-color: var(--slate); }
.vd-covers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--line); }
.vd-covers .cover { aspect-ratio: 16 / 9; padding: 8px; }
.vd-covers .cover .mono-mark { font-size: 28px; }
.vd-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.vd-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.vd-name { font-family: var(--serif); font-size: 20px; color: var(--slate); }
.vd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
/* trade checkboxes: two to four columns, one column on a phone; each row a ≥40 px tap target */
.vd-trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 14px; }
.vd-trades .check, .vd-files .check { min-height: 40px; align-items: center; }
.vd-files { display: grid; gap: 4px; }
.vd-files .check span { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vd-files .check input:disabled + span { opacity: .6; }
@media (max-width: 640px) { .vd-trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Leads — the board by step (four columns on a desktop, two on a tablet, one under the other on a phone), lead cards
 * (gold edge only on the leads that are yours to move), the step journey and the requirement form's room picker. */
.ld-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .ld-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ld-board { grid-template-columns: minmax(0, 1fr); } }
.ld-col { background: rgba(43, 65, 80, .04); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 0; }
.ld-col-head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 2px; }
.ld-col-head b { font-family: var(--serif); font-size: 18px; color: var(--slate); flex: 1; min-width: 0; line-height: 1.15; }
.ld-n { width: 24px; height: 24px; border-radius: 50%; background: var(--slate); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ld-hint { margin: 0 4px 10px 36px; }
.ld-none { padding: 14px 6px; text-align: center; }
.ld-card { width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; display: grid; gap: 4px;
  cursor: pointer; min-height: 44px; box-shadow: var(--shadow); font: inherit; color: inherit; min-width: 0; }
.ld-card + .ld-card { margin-top: 8px; }
.ld-card:hover { border-color: var(--slate); }
.ld-card.mine { border-left: 4px solid var(--gold); }
.ld-card .small { overflow-wrap: anywhere; }
.ld-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; min-width: 0; }
.ld-name { font-family: var(--serif); font-size: 18px; color: var(--slate); line-height: 1.15; overflow-wrap: anywhere; min-width: 0; }
.ld-code { font-family: var(--mono); font-size: 12px; color: var(--grey-ink); white-space: nowrap; }
.ld-foot { display: flex; gap: 8px; align-items: center; margin-top: 4px; min-width: 0; }
.ld-foot .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-journey { margin-bottom: 14px; }
.ld-journey .step { min-width: 104px; }
.ld-stepsel { margin-top: 12px; max-width: 360px; }
.ld-close { margin-top: 12px; }
.ld-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ld-spaces .check { min-height: 40px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--paper); }
.ld-spaces .check input { margin-top: 0; }
.sales-form input[type=tel], .sales-form input[type=url] { width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); padding: 9px 11px; min-height: 42px; font-size: 15px; }
@media (max-width: 760px) { .sales-form input[type=tel], .sales-form input[type=url] { font-size: 16px; } }

/* Proposals — the checks (rust = blocks the PDF, a plain cream note = check this before it goes out; gold stays for
 * "your turn"), toggles for exclusions and
 * offerings (40 px, a word plus a tick), and the commercials editor: one block per instalment so a phone never needs a
 * wide table; the live line shows the worked-out total, percentages and term 2 as you type. The printed proposal uses
 * the engine's own stylesheet (Proposal.CSS) in its own window — nothing here reaches the PDF. */
.ps-checks { display: grid; gap: 8px; }
.ps-block, .ps-warn { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-s); padding: 9px 12px; font-size: 13.5px; border: 1px solid; }
.ps-block { background: var(--rust-tint); border-color: var(--rust); color: var(--rust); }
.ps-warn { background: var(--cream); border-color: var(--line-2); color: var(--slate); }
.ps-block svg, .ps-warn svg { flex: none; margin-top: 1px; }
.ps-letter { margin: 0; white-space: pre-line; color: var(--slate); font-size: 14px; }
.ps-letter-ed { min-height: 220px; }
.ps-dl { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.ps-togs, .ps-tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ps-tog { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper);
  color: var(--grey-ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
button.ps-tog:hover { border-color: var(--slate); color: var(--slate); }
.ps-tog.on { border-color: var(--sage-ink); background: var(--sage-tint); color: var(--sage-ink); }
.ps-tog svg { width: 15px; height: 15px; flex: none; }
span.ps-tog { cursor: default; }
.ps-third { margin-top: 12px; }
.ps-custom { margin-top: 8px; }
.ps-inline { display: flex; gap: 8px; margin-top: 10px; }
.ps-inline input { flex: 1; min-width: 0; }
.ps-notes { margin: 0; padding-left: 20px; }
.ps-total { font-family: var(--serif); font-size: 34px; color: var(--slate); line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-comp { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.ps-split { margin-top: 14px; }
/* the commercials editor */
.ps-st { font-size: 18px; margin: 8px 0 0; }
.ps-comp-ed { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ps-std { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: var(--paper); display: grid; gap: 6px; }
.ps-row { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px; background: var(--paper); display: grid; gap: 10px; }
.ps-row-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ps-row-head b { font-family: var(--serif); font-size: 17px; color: var(--slate); }
.ps-row-head .num { margin-left: auto; }
.ps-equal { border: 1px dashed var(--line-2); border-radius: var(--r-s); padding: 10px 12px; display: grid; gap: 8px; background: var(--cream); }
.ps-live { position: sticky; bottom: -16px; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 0 4px; display: grid; gap: 8px; }
.ps-live-total { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ps-live-total b { font-family: var(--serif); font-size: 24px; color: var(--slate); }
.ps-live-rows { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .ps-comp-ed { grid-template-columns: minmax(0, 1fr); }
  .ps-tiles { grid-template-columns: minmax(0, 1fr); }
  .ps-total { font-size: 28px; }
}

/* Skill Matrix — each skill is one row: its name, then the five levels as buttons, each with the sentence that says what
 * that level means beside its number. On a phone the five levels stack (one tap target each). Colour only in the chart. */
.sk-month, .kpi-month { display: inline-flex; align-items: center; gap: 8px; }
.sk-month select, .kpi-month select { min-width: 150px; }
.sk-form { display: block; }
.sk-group { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.sk-group > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-size: 20px; color: var(--slate); min-height: 48px; }
.sk-group > summary::-webkit-details-marker { display: none; }
.sk-group > summary::after { content: "▾"; font-family: var(--sans); font-size: 13px; color: var(--grey-ink); margin-left: 6px; }
.sk-group:not([open]) > summary::after { content: "▸"; }
.sk-group .sk-meta { margin-left: auto; font-family: var(--sans); font-size: 13px; color: var(--grey-ink); }
.sk-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: start; }
.sk-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 6px; }
.sk-name b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.sk-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sk-opt { position: relative; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 8px 9px; cursor: pointer;
  background: var(--paper); min-height: 44px; font-size: 12.5px; line-height: 1.3; color: var(--slate); }
.sk-opt:hover { border-color: var(--slate); }
.sk-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sk-opt b { font-family: var(--mono); font-size: 16px; color: var(--slate); }
.sk-opt em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--sage-ink); font-weight: 600; }
.sk-opt.theirs { box-shadow: inset 0 0 0 2px var(--sage); }
.sk-opt:has(input:checked) { background: var(--slate); border-color: var(--slate); color: #fff; }
.sk-opt:has(input:checked) b, .sk-opt:has(input:checked) em { color: #fff; }
.sk-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }
.sk-view { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; font-size: 14px; color: var(--slate); }
.sk-num { width: 30px; height: 30px; border-radius: 8px; background: var(--slate); color: #fff; font-family: var(--mono); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; flex: none; }
.sk-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 6px 0 4px; }
.sk-who { display: inline-flex; align-items: center; gap: 8px; }
.sk-lib { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sk-lib:last-child { border-bottom: 0; }
.sk-lib-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sk-lib-head b { flex: 1; min-width: 160px; }
.sk-guide { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 12.5px; color: var(--slate); }
.sk-guide li { background: var(--cream); border-radius: 8px; padding: 6px 8px; }
.sk-guide b { font-family: var(--mono); margin-right: 4px; }
.sk-chart { max-width: 640px; }
.sk-chart svg { width: 100%; height: auto; display: block; }
.sk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--slate); }
.sk-key { display: inline-flex; align-items: center; gap: 6px; }
.sk-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 760px) {
  .sk-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
  .sk-name { padding-top: 0; }
  .sk-opts { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .sk-opt { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; }
  .sk-opt b { width: 22px; flex: none; text-align: center; }
  .sk-opt em { margin-left: auto; }
  .sk-guide { grid-template-columns: minmax(0, 1fr); }
  .sk-month, .kpi-month { width: 100%; }
  .sk-month select, .kpi-month select { flex: 1; }
  .sk-foot .btn { flex: 1; justify-content: center; }
}

/* KPI — a person's month as figures that open their records, and the team table (cards on a phone). No colour beyond
 * the studio's status tones. The month picker shares its style with the Skill Matrix (css/m-skills.css). */
.kpi-who { display: flex; align-items: center; gap: 12px; margin: -4px 0 14px; }
.kpi-who b { font-family: var(--serif); font-size: 20px; color: var(--slate); font-weight: 600; }
.kpi-who-sm { display: inline-flex; align-items: center; gap: 8px; }

/* HR — the hiring board (one column per stage; on a phone the columns scroll sideways, one at a time), candidate cards,
 * star ratings, the onboarding / off-boarding ticks (40 px, sage once done — done is never gold), the bonding wall and the
 * handover rows. Gold appears only on "your interview". Phone first. */
.hr-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.hr-bar .pill-row { margin-bottom: 0; }

.hr-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hr-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.hr-col h2 { margin: 2px 2px 4px; font-family: var(--serif); font-size: 18px; color: var(--slate); font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.hr-col h2 .count { font-family: var(--mono); font-size: 13px; color: var(--grey-ink); }
.hr-none { padding: 10px 4px; }
.hr-card { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--cream); padding: 10px 12px; cursor: pointer; min-height: 44px; width: 100%; color: var(--ink); }
.hr-card:hover { border-color: var(--slate); }
.hr-card b { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .hr-board { grid-auto-columns: 82%; } }

.hr-stars { display: inline-flex; gap: 2px; align-items: center; color: var(--grey-2); }
.hr-stars i, .hr-stars button { display: inline-flex; color: inherit; }
.hr-stars svg { width: 14px; height: 14px; }
.hr-stars .on { color: var(--slate); }
.hr-stars .on svg { fill: currentColor; }
.hr-stars button { border: 0; background: transparent; padding: 0; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; }
.hr-stars button svg { width: 20px; height: 20px; }
.hr-stars button:hover { background: var(--cream); color: var(--slate); }

.hr-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.hr-steps span { font-size: 12.5px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--grey-ink); background: var(--paper); }
.hr-steps span.done { border-color: var(--sage); background: var(--sage-tint); color: var(--sage-ink); }
.hr-steps span.now { background: var(--slate); border-color: var(--slate); color: #fff; font-weight: 600; }
.hr-steps span.late { border-color: var(--rust); background: var(--rust-tint); color: var(--rust); }

.hr-who { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 6px 0; font-size: 14px; }
.hr-closed { margin-top: 14px; }
.hr-closed[open] { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; }

.hr-filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; align-items: end; }
@media (max-width: 760px) { .hr-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hr-filters .hr-q { grid-column: 1 / -1; } }

.hr-prog { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.hr-prog .progress { flex: 1; min-width: 60px; }

.hr-task { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.hr-task:last-child { border-bottom: 0; }
.hr-task .grow { flex: 1; min-width: 0; }
.hr-task .t { font-weight: 500; overflow-wrap: anywhere; }
.hr-task .s { font-size: 12.5px; color: var(--grey-ink); }
.hr-tick { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: transparent; flex: none; padding: 0; }
.hr-tick svg { width: 18px; height: 18px; }
.hr-tick:hover { border-color: var(--sage-ink); color: var(--sage-ink); }
.hr-tick.on { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.hr-tick.off { cursor: default; opacity: .6; }
.hr-tick.off.on { opacity: 1; }
.hr-buddy { margin-top: 6px; max-width: 320px; }

.hr-profile { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hr-profile .grow { flex: 1; min-width: 220px; }
.hr-profile .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hr-note { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.hr-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; padding: 4px 0; }
.hr-skills .check { min-height: 32px; align-items: center; }

.hr-wall .tile { border: 0; cursor: pointer; padding: 8px; text-align: left; }
.hr-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hr-ph { width: 88px; height: 66px; border-radius: 10px; background-size: cover; background-position: center; position: relative; flex: none; border: 1px solid var(--line); }
.hr-ph .x { position: absolute; top: 2px; right: 2px; background: rgba(255,255,255,.92); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; }

.hr-ho-row { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hr-ho-row:last-child { border-bottom: 0; }
.hr-ho-row .grow { flex: 1; min-width: 200px; }
.hr-ho-row .t { font-weight: 500; overflow-wrap: anywhere; }
.hr-ho-row .s { font-size: 12.5px; color: var(--grey-ink); overflow-wrap: anywhere; }
.hr-ho { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hr-ho select { width: auto; min-width: 190px; max-width: 100%; }
.hr-all { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 6px; background: var(--cream); border-radius: var(--r-s); }
@media (max-width: 640px) { .hr-ho, .hr-ho select { width: 100%; } .hr-ho .btn { flex: 1; justify-content: center; } }
.hr-more > summary { min-height: 40px; display: flex; align-items: center; }

/* Site forms (survey, site report): rows of a label and a control, and the labour steppers — phone first, targets of 40 px. */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 12px; align-items: end; margin-bottom: 8px; }
.steppers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 12px; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.stepper input { width: 72px; min-height: 40px; text-align: center; font-family: var(--mono, "DM Mono", monospace); }

/* Attendance month grid: seven columns, a word and a shape for every state (never colour alone). */
.att-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 8px 0; }
.att-grid > i { font-style: normal; text-align: center; font-size: 12px; color: var(--grey-ink); }
.att-day { min-height: 44px; padding: 4px; border: 1px solid var(--line, #E4DFD5); border-radius: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.att-day b { font-family: var(--mono, "DM Mono", monospace); font-size: 12px; }
.att-present { background: color-mix(in srgb, var(--sage, #8A877F) 18%, transparent); }
.att-missing { border: 2px dashed var(--rust, #1C1C1E); }
.att-today { border-style: dashed; }
.att-off, .att-before, .att-future { opacity: .6; }
.att-leave { border-style: dotted; }

/* Mood boards: a picture grid, colour swatches, and the picker in the editor. */
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.mb-tile { border: 1px solid var(--line, #E4DFD5); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--paper, #fff); }
.mb-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--cream, #F2EFE9); }
.mb-mat { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--cream, #F2EFE9); color: var(--grey-ink); }
.mb-cap { font-size: 13px; overflow-wrap: anywhere; }
.mb-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.mb-pal { display: flex; gap: 6px; margin: 6px 0; }
.mb-sw { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #E4DFD5); display: inline-block; }
.mb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mb-opt { position: relative; display: block; }
.mb-opt input { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; }

/* Admin — Team & access, Settings, Templates, Integrations, Audit, Archive. Phone first: rows wrap, chips wrap,
 * the temporary password is large and selectable, rights are a stacked list of 40 px tap targets. */
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.adm-chips .chip { font-size: 12px; }
.adm-caps { display: grid; gap: 4px; }
.adm-caps .check { min-height: 40px; align-items: center; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.adm-caps .check:last-child { border-bottom: 0; }
.adm-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.adm-days .check { min-height: 40px; align-items: center; }
.adm-pw { font-family: var(--mono); font-size: 26px; letter-spacing: 1px; text-align: center; padding: 14px 10px; margin: 10px 0 12px; border: 1px dashed var(--line-2);
  border-radius: var(--r-s); background: var(--cream); color: var(--navy); user-select: all; overflow-wrap: anywhere; }
.adm-person { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.adm-person .grow { flex: 1; min-width: 200px; }
.adm-person .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-g { margin: 10px 0; }
.adm-env { font-family: var(--mono); font-size: 12.5px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin: 2px 2px 2px 0; display: inline-block; overflow-wrap: anywhere; }
.adm-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.adm-integ .card-head h3 { display: flex; gap: 8px; align-items: center; }
.adm-filters { margin-bottom: 8px; }
.adm-door { text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; width: 100%; }
.adm-door b { font-family: var(--serif); font-size: 19px; color: var(--slate); display: block; }
.adm-door .small { display: block; }
.adm-door-ic { color: var(--slate); }
.adm-new { border-color: var(--slate); }
.adm-end { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: none; }
@media (max-width: 640px) {
  .adm-people .li { flex-wrap: wrap; }
  .adm-people .li .grow { flex: 1 1 calc(100% - 64px); }
  .adm-people .li .adm-end { flex: 1 1 100%; justify-content: flex-start; padding-left: 52px; }
  .adm-person { align-items: flex-start; }
  .adm-person .actions .btn { flex: 1 1 auto; justify-content: center; }
  .adm-pw { font-size: 22px; }
}
.adm-lead { width: 58px; flex: none; display: inline-flex; }
