/* Notice Period — coach dashboard and behind-the-scenes pages */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }
.bar-top { position: sticky; top: var(--note-h); z-index: 50; background: rgba(243, 244, 238, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.bar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-variation-settings: "wdth" 84; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo em { font-style: normal; font-family: var(--body); font-weight: 600; font-size: 13.5px; color: var(--ink-3); letter-spacing: 0; display: none; }
.bar-links { display: flex; gap: 4px; }
.bar-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 10px 10px; border-radius: 10px; white-space: nowrap; }
.bar-links a.hide-s { display: none; }
@media (max-width: 520px) { .bar-top .logo span { display: none; } .bar-links a { padding: 10px 8px; } }
@media (min-width: 760px) { .logo em { display: inline; } .bar-links a.hide-s { display: block; } .bar-links { gap: 12px; } }
@media (hover: hover) { .bar-links a:hover { background: rgba(19, 26, 51, 0.06); color: var(--ink); } }

.page-head { padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(34px, 6vw, 58px); max-width: 16ch; text-wrap: balance; }
.page-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 58ch; }
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-1); }
.h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 0 2px; }
.h-row h2 { font-family: var(--display); font-variation-settings: "wdth" 84; font-size: 24px; letter-spacing: -0.02em; }

/* ---------- Coach ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 16px; position: relative; overflow: hidden; }
.tile-k { font-size: 13.5px; font-weight: 650; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.tile-v { font-size: clamp(30px, 5vw, 44px); line-height: 1; margin-top: 12px; font-variation-settings: "wdth" 78; }
.tile-d { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.tile-d b { color: var(--green); }
.tile svg.spark { display: block; width: 100%; height: 40px; margin-top: 10px; overflow: visible; }
.tile.blue { background: var(--blue); color: #fff; }
.tile.blue .tile-k, .tile.blue .tile-d { color: rgba(255, 255, 255, 0.82); } .tile.blue .tile-d b { color: var(--hi); }
.tile.blue .sample-tag { background: rgba(255, 255, 255, 0.18); color: #fff; }
.meter { height: 8px; border-radius: 4px; background: var(--paper-2); margin-top: 14px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--green); transform-origin: left; animation: grow 800ms var(--ease-out) both 200ms; }
@keyframes grow { from { transform: scaleX(0); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } .tile { padding: 22px; } }

.dash { display: grid; gap: 36px; margin-top: 40px; padding-bottom: 96px; }
@media (min-width: 1080px) { .dash { grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; } }
.segs { display: inline-grid; grid-auto-flow: column; background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 12px; max-width: 100%; overflow-x: auto; }
.segs button { min-height: 40px; padding: 0 12px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.segs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.clients { padding: 4px 14px; }
.cl { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; }
.cl + .cl { border-top: 1px solid var(--line-2); }
.cl-av { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; }
.cl.live .cl-av { background: var(--hi); color: var(--ink); }
.cl-n { font-weight: 650; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-m { grid-column: 2 / -1; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-m .wkbar { flex: none; width: 72px; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.cl-m .wkbar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.cl-why { color: #8a4a00; font-weight: 600; }
.live-tag { font-size: 11.5px; font-weight: 700; background: var(--ink); color: var(--hi); padding: 2px 7px; border-radius: 5px; }
.cl.hide { display: none; }

.inbox { display: grid; gap: 14px; }
.ci { padding: 18px; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.ci-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-h b { font-size: 16.5px; margin-right: auto; }
.ci-sum { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.ci-sum li { padding: 3px 0 3px 16px; position: relative; }
.ci-sum li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.draft { margin-top: 14px; border-radius: 14px; background: var(--paper); padding: 12px 14px; }
.draft-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--blue); margin-bottom: 6px; }
.draft p, .draft textarea { font-size: 15px; line-height: 1.5; color: var(--ink); }
.draft textarea { width: 100%; min-height: 150px; border: 1.5px solid var(--blue); border-radius: 10px; padding: 10px 12px; background: #fff; resize: vertical; box-shadow: 0 0 0 4px var(--blue-soft); outline: none; }
.ci-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ci.sent { background: var(--green-soft); box-shadow: none; }
.ci.sent .draft { background: rgba(255, 255, 255, 0.7); }
.ci-sentline { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--green); margin-top: 12px; font-size: 14.5px; animation: pop 320ms var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.ci.waiting { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border-style: dashed; }
.ci.waiting p { color: var(--ink-2); font-size: 15px; margin: 8px 0 12px; }
.runlog { padding: 6px 16px; margin-top: 14px; }
.runlog li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; font-size: 14.5px; }
.runlog li + li { border-top: 1px solid var(--line-2); }
.runlog time { flex: none; width: 46px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* ---------- Behind the scenes ---------- */
.flow-card { padding: 20px 16px; overflow: hidden; }
.flow-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .a { background: var(--blue); } .legend .h { background: var(--hi); box-shadow: inset 0 0 0 1.5px var(--ink); }
.flow { position: relative; display: grid; gap: 6px; }
.track { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--paper-2); }
.track i { position: absolute; inset: 0; border-radius: 2px; background: var(--blue); transform-origin: top; transform: scaleY(0); transition: transform 700ms var(--ease-in-out); }
.token { position: absolute; z-index: 3; left: 23px; top: 22px; width: 18px; height: 22px; margin: -11px 0 0 -9px; border-radius: 2px 2px 5px 5px; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 6px 12px rgba(19, 26, 51, 0.3); transition: transform 700ms var(--ease-in-out); pointer-events: none; }
.token::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--stamp); border-radius: 1px 1px 0 0; }
.step { position: relative; z-index: 2; }
.node { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 4px 0; min-height: 52px; }
.node-c { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--paper-2); display: grid; place-items: center; font-family: var(--display); font-weight: 750; font-size: 17px; color: var(--ink-3); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out); }
.node-l { font-weight: 650; font-size: 16px; line-height: 1.25; color: var(--ink-2); transition: color 300ms ease; }
.node-l small { display: block; font-weight: 550; font-size: 13px; color: var(--ink-3); }
.step.past .node-c { background: var(--blue-soft); color: var(--blue-deep); box-shadow: inset 0 0 0 3px var(--blue); }
.step.on .node-c { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px var(--blue-soft); transform: scale(1.06); }
.step.human.on .node-c { background: var(--hi); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 6px var(--hi-soft); }
.step.human.past .node-c { background: var(--hi-soft); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.step.on .node-l { color: var(--ink); }
.node:active .node-c { transform: scale(0.94); }

.panel { margin: 8px 0 14px 60px; animation: pan 360ms var(--ease-out) both; }
@keyframes pan { from { opacity: 0; transform: translateY(8px); } }
.panel h3 { font-family: var(--display); font-variation-settings: "wdth" 84; font-size: 26px; line-height: 1.08; letter-spacing: -0.02em; }
.panel > div > p { color: var(--ink-2); margin-top: 8px; font-size: 16px; max-width: 54ch; }
.facts { margin-top: 14px; display: grid; gap: 8px; }
.fact { border-radius: 12px; background: var(--paper); padding: 10px 14px; font-size: 14.5px; }
.fact b { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.artifact { margin-top: 14px; border-radius: 4px; background: #fff; box-shadow: var(--shadow-paper); padding: 14px 16px; font-family: "Courier Prime", "Courier New", monospace; font-size: 14px; line-height: 1.5; max-width: 420px; transform: rotate(-0.8deg); position: relative; }
.artifact.has-stamp { padding-bottom: 46px; }
.artifact b { display: block; font-family: var(--body); font-size: 12.5px; color: var(--ink-3); font-weight: 650; margin-bottom: 4px; }
.artifact .stamp { position: absolute; right: 10px; bottom: 8px; font-size: 13px; }

@media (min-width: 1000px) {
  .flow-card { padding: 32px 32px 36px; }
  .flow { grid-template-columns: repeat(9, 1fr); gap: 0; padding-top: 34px; }
  .track { left: calc(100% / 18); right: calc(100% / 18); top: 61px; bottom: auto; width: auto; height: 4px; }
  .track i { transform-origin: left; transform: scaleX(0); }
  .token { left: calc(100% / 18); top: 63px; }
  .node { flex-direction: column; text-align: center; gap: 12px; padding: 0 4px; align-items: center; }
  .node-c { width: 58px; height: 58px; font-size: 20px; }
  .node-l { font-size: 14.5px; }
  .panel { grid-column: 1 / -1; margin: 36px 0 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; border-top: 1px solid var(--line); padding-top: 32px; min-height: 290px; }
  .panel h3 { font-size: 38px; }
  .panel > div > p { color: var(--ink-2); margin-top: 10px; font-size: 17.5px; max-width: 50ch; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact.wide { grid-column: 1 / -1; }
  .artifact { margin-top: 0; }
}

.builds { padding: 72px 0 110px; }
.builds h2 { font-size: clamp(30px, 4.6vw, 46px); max-width: 18ch; }
.builds > .wrap > p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.build-grid { display: grid; gap: 14px; margin-top: 32px; }
.build { padding: 22px; }
.build b { font-family: var(--display); font-variation-settings: "wdth" 86; font-size: 21px; letter-spacing: -0.015em; display: block; }
.build p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
.build a { display: inline-block; margin-top: 14px; font-weight: 650; color: var(--blue); text-underline-offset: 3px; }
.honest { margin-top: 28px; border-left: 4px solid var(--hi); padding: 4px 0 4px 16px; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
@media (min-width: 900px) { .build-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
