/* ================================================================
   OBSIDIAN — black glass, warm platinum, Geist.
   ================================================================ */
:root {
  --bg: #070605;
  --panel-hi: rgba(54,50,44,.42);
  --panel-lo: rgba(18,16,13,.5);
  --line: rgba(230,222,208,.14);
  --line-strong: rgba(230,222,208,.25);
  --accent: #d6cbbb;       /* warm platinum */
  --hi: #ece4d7;           /* bone highlight */
  --text: #f4f0e9;
  --soft: #ddd6c9;
  --muted: #a39b8e;
  --dim: #8c857a;
  --faint: #756e64;
  --ink: #15120d;          /* dark text on platinum */
  --apricot: #d9ab84;      /* due-soon */
  --teal: #7fb3a3;         /* Practice Setup */
  --blue: #8fa3cf;         /* Clients */
  --gold: #cfc4ae;         /* Method / captures */
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--hi); }
.hidden { display: none !important; }
.spacer { flex-grow: 1; }

.wordmark { font-weight: 700; letter-spacing: .34em; color: var(--hi); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card {
  width: min(400px, 92vw); text-align: center; padding: 48px 40px;
  background: linear-gradient(165deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid var(--line-strong); border-radius: 26px;
  backdrop-filter: blur(20px);
}
.auth-card .wordmark { font-size: 24px; margin: 0 0 6px; }
.auth-sub { color: var(--dim); font-size: 13px; margin: 0 0 28px; }
.auth-card label { display: block; text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.auth-card input {
  width: 100%; margin-top: 8px; font-family: inherit; font-size: 20px; letter-spacing: .3em; text-align: center;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-strong); border-radius: 14px;
  color: var(--text); padding: 14px;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-msg { min-height: 1.2em; font-size: 13px; color: var(--apricot); }

/* ---------- layout ---------- */
#app-view { display: flex; min-height: 100vh; }
#sidebar {
  width: 232px; min-width: 232px; display: flex; flex-direction: column;
  background: #0A0A0A; border-right: 1px solid #1c1c1c;
  padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh;
  font-family: 'Montserrat', 'Geist', system-ui, sans-serif;
}
.side-mark { display: flex; align-items: center; gap: 11px; padding: 2px 4px 22px; text-decoration: none; }
.side-logo { width: 100%; max-width: 184px; height: auto; display: block; }
.os-icon { width: 36px; height: 36px; flex: none; display: none; }
.side-name { display: flex; flex-direction: column; line-height: 1.15; }
.side-name b { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.side-name i { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .32em; color: #b5b5b5; margin-top: 3px; }
#sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 42px;
  font-family: inherit; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none;
  color: #d4d4d4; background: none; border: 0; border-radius: 10px; cursor: pointer; width: 100%;
}
.nav-item:hover { color: #fff; background: #161616; }
.nav-item.active { color: #fff; font-weight: 600; background: #1f1f1f; }
.nav-item.muted { color: #8a8a8a; }
.nav-ic { width: 19px; height: 19px; flex: none; }
.nav-item .soon { font-style: normal; font-size: 10px; opacity: .7; margin-left: 4px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-foot .nav-item { color: #8a8a8a; font-size: 13px; }
.side-foot .nav-item:hover { color: #fff; }

/* collapsed rail: the icon alone, centred */
body.side-collapsed #sidebar { width: 76px; min-width: 76px; padding-left: 10px; padding-right: 10px; }
body.side-collapsed .side-mark { justify-content: center; padding-left: 0; padding-right: 0; }
body.side-collapsed .side-logo { display: none; }
body.side-collapsed .os-icon { display: block; width: 40px; height: 40px; }
body.side-collapsed .side-name, body.side-collapsed .nav-item > span { display: none; }
body.side-collapsed .nav-item { justify-content: center; padding: 10px 0; }

.content { flex: 999 1 560px; min-width: 0; padding: 26px 44px 60px; }
.topbar { display: flex; align-items: center; gap: 16px; }
#today-date { font-size: 13px; color: var(--muted); }
.progress { font-size: 12px; color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit; font-size: 13px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--soft); cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--hi); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.btn.primary:hover { background: var(--hi); color: var(--ink); }
.btn.primary:disabled { opacity: .4; cursor: default; }
.btn.ghost { border-color: rgba(214,203,187,.4); color: var(--accent); }
.btn.tiny { font-size: 11px; padding: 4px 12px; }

.area-tag { font-size: 11px; }
.area-tag.a-lscre { color: #d8cfc2; }
.area-tag.a-setup { color: var(--teal); }
.area-tag.a-clients { color: var(--blue); }
.area-tag.a-method { color: var(--gold); }

/* ---------- hero widget ---------- */
.hero {
  margin: 24px 0 26px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 24px 30px;
  position: relative; overflow: hidden; background-color: #121008;
  background-image:
    radial-gradient(130% 90% at 15% 0%, rgba(236,228,215,.17) 0%, rgba(236,228,215,0) 42%),
    radial-gradient(90% 120% at 85% 110%, rgba(205,195,180,.13) 0%, rgba(205,195,180,0) 48%),
    repeating-radial-gradient(130% 100% at 20% -10%, rgba(0,0,0,.42) 0px, rgba(0,0,0,.42) 7px, rgba(230,222,208,.06) 11px, rgba(0,0,0,.42) 22px);
}
.hero-left { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--hi); }
.hero-label.gold { color: var(--gold); }
.hero-step {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; cursor: pointer;
  background: rgba(7,6,5,.62); border: 1px solid rgba(230,222,208,.18); border-radius: 14px; padding: 14px 20px;
}
.hero-step:hover { border-color: rgba(230,222,208,.4); }
.hero-step .num { font-size: 13px; color: var(--dim); min-width: 22px; }
.hero-step .name { font-size: 17px; font-weight: 600; }
.hero-step .due { font-size: 12px; color: var(--muted); }
.hero-step .due.soon { color: var(--apricot); }
.hero-empty { font-size: 14px; color: var(--muted); padding: 10px 2px; }
.hero-right {
  flex: 1 1 200px; max-width: 260px; border-left: 1px solid rgba(230,222,208,.2);
  padding-left: 28px; display: flex; flex-direction: column; gap: 6px;
}
.count-big { display: flex; align-items: baseline; gap: 9px; }
.count-big .n { font-size: 40px; font-weight: 700; color: #fff; }
.count-big .l { font-size: 12px; color: var(--muted); }
.count-line { font-size: 13px; color: var(--soft); }
.count-sub { font-size: 12px; color: var(--dim); }


/* ---------- phases & rows ---------- */
/* The plan is a widget: it fills the rest of the window and scrolls inside,
   under a sticky column header that doubles as the filters. */
.content { display: flex; flex-direction: column; height: 100vh; padding-bottom: 28px; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view > .hero, .topbar, .lib-top { flex-shrink: 0; }
.phases {
  --plan-head-h: 44px;
  flex: 1 1 auto; min-height: 340px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: #13110f; border: 1px solid var(--line); border-radius: var(--radius);
  scrollbar-width: thin; scrollbar-color: rgba(230,222,208,.22) transparent;
}
.plan-head, .step-row {
  display: grid; grid-template-columns: 34px minmax(110px,1fr) minmax(84px,128px) minmax(112px,146px) minmax(64px,98px) 104px;
  gap: 12px; align-items: center; padding: 11px 20px;
}
.plan-head {
  position: sticky; top: 0; z-index: 3; height: var(--plan-head-h); padding-top: 0; padding-bottom: 0;
  background: #1b1916; border-bottom: 1px solid var(--line-strong);
}
.plan-head .num { font-size: 11px; color: var(--dim); }
.plan-head input, .plan-head select {
  font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 0; border-radius: 8px;
  padding: 6px 6px; margin-left: -6px; width: calc(100% + 6px); min-width: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.plan-head select {
  padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23a39b8e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 5px center;
}
.plan-head select option { background: #1b1916; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; }
.plan-head input { cursor: text; text-transform: none; letter-spacing: .02em; font-size: 12px; }
.plan-head input::placeholder { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; opacity: 1; }
.plan-head input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }
.plan-head input:hover, .plan-head select:hover { color: var(--hi); background-color: rgba(236,228,215,.06); }
.plan-head input:focus, .plan-head select:focus { outline: 1px solid rgba(214,203,187,.5); }
.plan-head .on { color: var(--ink); background-color: var(--accent); text-transform: none; letter-spacing: 0; }
.plan-head select.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%2315120d' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-head .on:hover { color: var(--ink); background-color: var(--hi); }
.plan-head input.on { color: var(--text); background-color: rgba(214,203,187,.16); }
.plan-head input.on:hover { color: var(--text); background-color: rgba(214,203,187,.22); }
.phase-head {
  position: sticky; top: var(--plan-head-h); z-index: 2;
  padding: 12px 20px 9px; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); background: #23201d;
}
.step-row { border-top: 1px solid rgba(230,222,208,.07); cursor: pointer; }
.plan-head .col-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- library ---------- */
.lib-top { display: flex; align-items: center; gap: 16px; margin: 22px 0 18px; }
.lib-title { margin: 0; font-size: 24px; font-weight: 600; }
.plan-head.lib-grid, .step-row.lib-grid { grid-template-columns: minmax(140px,1fr) 96px minmax(110px,230px) 70px 24px; }
.step-row.lib-grid .name { display: flex; flex-direction: column; gap: 2px; }
.lib-sub { font-size: 11px; color: var(--dim); }
.lib-review { display: flex; gap: 8px; margin-top: 8px; }
.lib-type { font-size: 11px; color: var(--muted); }
.plan-empty { padding: 34px 20px; font-size: 13px; color: var(--muted); text-align: center; }
.step-row:hover { background: rgba(236,228,215,.04); }
.step-row .num { font-size: 12px; color: var(--dim); }
.step-row .name { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.step-row .dates, .step-row .deps { font-size: 12px; color: var(--muted); }
.step-row.is-blocked { color: var(--dim); }
.step-row.is-blocked .name { color: var(--dim); }
.step-row.is-done .name { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(230,222,208,.3); }

.pill { font-size: 11px; text-align: center; padding: 3px 0; border-radius: 999px; }
.pill.today { background: var(--accent); color: var(--ink); font-weight: 600; }
.pill.ready { border: 1px solid rgba(214,203,187,.6); color: var(--hi); }
.pill.progress-p { border: 1px solid rgba(217,171,132,.6); color: var(--apricot); }
.pill.scheduled { border: 1px solid rgba(230,222,208,.2); color: var(--muted); }
.pill.blocked { border: 1px dashed rgba(230,222,208,.25); color: var(--dim); }
.pill.done { border: 1px solid rgba(154,180,152,.5); color: #a9c4a4; }
.pill.ongoing { border: 1px solid rgba(207,196,174,.5); color: var(--gold); }

/* ---------- drawer ---------- */
#backdrop { position: fixed; inset: 0; background: rgba(3,2,1,.45); backdrop-filter: blur(7px) brightness(.6); z-index: 40; }
#drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(600px, 96vw);
  background: linear-gradient(170deg, rgba(44,41,35,.98), rgba(14,13,11,.99));
  border-left: 1px solid rgba(214,203,187,.5); box-shadow: -30px 0 80px rgba(0,0,0,.65);
  padding: 30px 36px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
}
.d-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-chip { font-size: 11px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.d-chip.area { background: rgba(214,203,187,.12); border-color: rgba(214,203,187,.4); color: var(--hi); }
.d-close {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); background: none; cursor: pointer; font-size: 14px;
}
.d-title { margin: 0; font-size: 24px; font-weight: 600; }
.d-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.d-meta strong { color: var(--hi); font-weight: 600; }
.d-covers { margin: 0; font-size: 14px; line-height: 1.55; color: var(--soft); }
.d-box { background: rgba(5,4,3,.4); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.d-box-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.d-box-label.gold { color: var(--gold); }
.d-person { display: flex; gap: 12px; font-size: 13px; color: var(--soft); margin-bottom: 9px; }
.d-person:last-child { margin-bottom: 0; }
.d-person .who { min-width: 52px; font-weight: 600; color: var(--hi); }
.d-rule { font-size: 13px; color: var(--soft); margin-bottom: 7px; }
.d-rule:last-child { margin-bottom: 0; }
.d-resources { display: flex; gap: 8px; flex-wrap: wrap; }
.d-res { font-size: 12px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(214,203,187,.45); text-decoration: none; }
.d-capture { font-size: 13px; color: var(--soft); border-left: 2px solid rgba(207,196,174,.5); padding-left: 12px; margin-bottom: 10px; }
.d-capture .when { color: var(--dim); font-size: 11px; }
.d-cap-row { display: flex; gap: 10px; align-items: center; }
.d-cap-row input {
  font-family: inherit; flex: 1; font-size: 13px; background: rgba(0,0,0,.45);
  border: 1px dashed rgba(230,222,208,.25); border-radius: 999px; color: var(--text); padding: 9px 16px;
}
.d-cap-row input:focus { outline: none; border-style: solid; border-color: var(--accent); }
.d-text { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--soft); }
.d-text:last-child { margin-bottom: 0; }
a.d-file-name { text-decoration: underline; text-decoration-color: rgba(214,203,187,.35); text-underline-offset: 3px; }
.d-link-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.d-link-row input {
  font-family: inherit; flex: 1 1 110px; min-width: 0; font-size: 12px; background: rgba(0,0,0,.45);
  border: 1px dashed rgba(230,222,208,.25); border-radius: 999px; color: var(--text); padding: 7px 14px;
}
.d-link-row input:focus { outline: none; border-style: solid; border-color: var(--accent); }
.d-item { padding: 12px 0; border-top: 1px solid rgba(230,222,208,.08); border-radius: 8px; }
.d-box-label + .d-item { border-top: 0; padding-top: 0; }
.d-item:last-of-type { padding-bottom: 0; }
.d-item.over { outline: 1px solid var(--accent); outline-offset: 4px; }
.d-item-head { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.d-item-head + .d-item-body { padding-left: 34px; }
.d-need-label { flex: 1; min-width: 0; }
.d-tick-gap { flex: 0 0 22px; }
.d-want { font-size: 10.5px; padding: 2px 9px; border-radius: 999px; border: 1px dashed rgba(217,171,132,.6); color: var(--apricot); white-space: nowrap; }
.d-want.got { border: 1px solid rgba(154,180,152,.5); color: #a9c4a4; }
.d-adds { display: flex; gap: 16px; margin-top: 6px; }
.d-add { font-family: inherit; font-size: 12px; color: var(--dim); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.d-add:hover { color: var(--hi); }
.d-add.want { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; }
.d-item .d-capture { margin: 6px 0; }
.d-item .d-link-row { margin-top: 4px; }
.d-more { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(230,222,208,.08); }
.d-item-head .d-file-del { opacity: 0; }
.d-item:hover .d-item-head .d-file-del, .d-item-head .d-file-del:focus { opacity: 1; }
.d-tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; padding: 0; font-size: 12px; line-height: 1;
  border: 1px solid var(--line-strong); background: none; color: transparent; cursor: pointer;
}
.d-tick:hover { border-color: var(--accent); }
.d-item.is-done .d-tick { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.d-item.is-done .d-need-label { color: var(--muted); }
.d-tick:disabled { cursor: default; }
.d-file { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 13px; }
.d-file-name {
  font-family: inherit; font-size: 13px; color: var(--hi); background: none; border: 0; padding: 0; cursor: pointer;
  text-align: left; min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(214,203,187,.35); text-underline-offset: 3px;
}
.d-file-name:hover { text-decoration-color: var(--accent); }
.d-file-meta { flex: 1; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-file-del { font-family: inherit; font-size: 11px; color: var(--faint); background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.d-file-del:hover { color: var(--apricot); background: rgba(217,171,132,.1); }
.d-drop {
  margin-top: 8px; padding: 16px; text-align: center; font-size: 13px; color: var(--muted);
  border: 1px dashed rgba(230,222,208,.25); border-radius: 12px; background: rgba(0,0,0,.3);
}
.d-drop.over { border-style: solid; border-color: var(--accent); color: var(--hi); background: rgba(214,203,187,.08); }
.d-link { font-family: inherit; font-size: 13px; color: var(--hi); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.d-kept { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--dim); text-decoration: none; }
.d-kept:hover { color: var(--accent); }
.d-actions { margin-top: auto; display: flex; gap: 12px; align-items: center; padding-top: 10px; }
.d-note { font-size: 12px; color: var(--faint); }

/* ---------- quick capture ---------- */
#capture-modal { position: fixed; inset: 0; z-index: 50; background: rgba(3,2,1,.5); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.capture-card {
  width: min(520px, 94vw); background: linear-gradient(165deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid rgba(207,196,174,.35); border-radius: 20px; padding: 22px 26px;
  display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(20px);
}
.capture-card textarea {
  font-family: inherit; font-size: 14px; background: rgba(0,0,0,.4);
  border: 1px dashed rgba(230,222,208,.25); border-radius: 12px; color: var(--text); padding: 12px 14px; resize: vertical;
}
.capture-card textarea:focus { outline: none; border-style: solid; border-color: var(--gold); }
.capture-card .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.capture-card select {
  font-family: inherit; font-size: 12px; padding: 7px 12px; border-radius: 999px;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-strong); color: var(--soft); max-width: 210px; min-width: 0;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  background: rgba(20,17,13,.95); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 13px; padding: 11px 22px; border-radius: 999px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  #app-view { flex-wrap: wrap; }
  #sidebar, body.side-collapsed #sidebar { width: 100%; min-width: 0; height: auto; position: static; flex-direction: row; align-items: center; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
  .side-mark { padding: 0 6px 0 0; }
  .side-logo { display: none; }
  .side-mark .os-icon { display: block; width: 32px; height: 32px; }
  .side-name, #side-toggle, .nav-item .nav-ic { display: none; }
  #signout .nav-ic { display: block; } #signout > span { display: none; }
  body.side-collapsed .nav-item > span { display: inline; }
  #sidebar nav { flex-direction: row; gap: 2px; }
  .nav-item, body.side-collapsed .nav-item { width: auto; padding: 8px 10px; min-height: 36px; white-space: nowrap; }
  .side-foot { margin-top: 0; margin-left: auto; }
  .content { padding: 20px 16px 40px; height: auto; }
  .phases { max-height: 82vh; }
  .step-row { grid-template-columns: 26px minmax(0,1fr) 92px; padding-left: 14px; padding-right: 14px; }
  .plan-head { grid-template-columns: 26px minmax(0,1fr) 78px 92px; padding-left: 14px; padding-right: 14px; }
  .plan-head.lib-grid, .step-row.lib-grid { grid-template-columns: minmax(0,1fr) 84px 24px; }
  .lib-grid .col-step, .lib-grid .col-added { display: none; }
  .step-row .area-tag, .step-row .dates, .step-row .deps, .plan-head .col-dates, .plan-head .col-deps { display: none; }
  .hero-right { border-left: 0; padding-left: 0; }
}

/* ---------- notes page ---------- */
.plan-head.lib-grid.notes-grid, .step-row.lib-grid.notes-grid { grid-template-columns: minmax(140px,1fr) minmax(110px,230px) 70px 24px; }
/* ---------- library: documents ---------- */
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.doc-count { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.doc-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 20px; border-top: 1px solid rgba(230,222,208,.07); }
.doc-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--line-strong); }
.doc-row.have .doc-dot { background: #a9c4a4; border-color: #a9c4a4; }
.doc-main { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.doc-about { font-size: 12px; color: var(--dim); margin-top: 2px; }
.doc-att { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.doc-file { display: inline-flex; align-items: baseline; gap: 2px; min-width: 0; }
.doc-file a { cursor: pointer; overflow-wrap: anywhere; }
.doc-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.doc-pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px dashed rgba(230,222,208,.25); color: var(--dim); }
.doc-pill.have { border: 1px solid rgba(154,180,152,.5); color: #a9c4a4; }
.doc-adder { display: flex; gap: 8px; padding: 10px 20px 16px 43px; }
.doc-adder input { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; }
.doc-adder input:focus { outline: none; border-bottom-color: var(--accent); }
.doc-newcat { border-top: 1px solid var(--line); padding-top: 16px; padding-left: 20px; }
@media (max-width: 760px) {
  .plan-head.lib-grid.notes-grid, .step-row.lib-grid.notes-grid { grid-template-columns: minmax(0,1fr) 24px; }
  .doc-row { flex-wrap: wrap; padding: 14px; }
  .doc-acts { width: 100%; justify-content: flex-start; padding-left: 23px; }
  .doc-adder { padding-left: 14px; padding-right: 14px; }
}
#docs { --plan-head-h: 0px; }

/* ---------- logo ---------- */
.logo { display: block; width: 150px; height: auto; }
.logo-h { margin: 0 0 10px; }
.logo-auth { width: 220px; margin: 0 auto; }
