/* =====================================================================
   SYCU Creator Portal · same Daybreak tokens as the landing page and the team dashboard.
   Mobile-first: phones get a bottom tab bar, single-column cards and big tap targets.
   ===================================================================== */
:root {
  --disc: #F0893C; --teach: #E84E4E; --env: #E4D353; --evt: #BED65A; --vol: #82D1DD; --fam: #F27A9E;
  --disc-ink: #A94F0C; --teach-ink: #B41818; --env-ink: #635910; --evt-ink: #515E17; --vol-ink: #1D616C; --fam-ink: #AE1140;
  --disc-soft: #FDEEE3; --teach-soft: #FCE7E7; --env-soft: #FBF7DA; --evt-soft: #F2F8DF; --vol-soft: #E5F6F8; --fam-soft: #FDE9F0; --lead-soft: #ECEEF0;
  --ink: #1F2328; --ink-2: #454C55; --ink-3: #5F6873;
  --bg: #F9F5EF; --surface: #FFFFFF; --line: #E4E7EB; --line-2: #D3D8DE; --char-3: #23272B;
  --acc: #BFE478; --acc-hover: #B2DB61; --acc-on: var(--ink); --acc-ink: #4B6D0B; --acc-ring: #5E8117;
  --acc-soft: #F5F8E9; --acc-lip: rgba(77,116,4,.32); --acc-glow: rgba(136,192,26,.32); --acc-edge: #6D941E;
  --err: #B41818; --err-soft: #FCE7E7; --warn: #8A5A00; --warn-soft: #FFF4DB;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(31,35,40,.05), 0 8px 24px rgba(31,35,40,.06);
  --shadow-lg: 0 2px 4px rgba(31,35,40,.05), 0 18px 48px rgba(31,35,40,.12);
  --max: 72rem; --ease: cubic-bezier(.2,.8,.25,1);
  --stripe: linear-gradient(90deg, var(--disc) 0 16.667%, var(--teach) 0 33.333%, var(--env) 0 50%, var(--evt) 0 66.667%, var(--vol) 0 83.333%, var(--fam) 0 100%);
  --tabbar: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { max-width: 100%; }
a { color: var(--vol-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font: 600 .86em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--lead-soft); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--acc-ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.fine { font-size: 14px; color: var(--ink-3); }
.pre { white-space: pre-wrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit;
  text-decoration: none; white-space: nowrap; font-weight: 800; font-size: 15px; letter-spacing: -.005em; color: var(--ink);
  padding: 12px 20px; min-height: 46px; border-radius: var(--r-pill); transition: transform .15s, box-shadow .15s, background .15s, opacity .15s; }
.btn-primary { background: var(--acc); color: var(--acc-on); box-shadow: inset 0 0 0 1.5px var(--acc-edge), 0 2px 0 var(--acc-lip); }
.btn-primary:hover { background: var(--acc-hover); transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--acc-edge), 0 6px 16px var(--acc-glow); color: var(--ink); }
.btn-dark { background: var(--char-3); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.btn-danger { background: #fff; color: var(--err); box-shadow: inset 0 0 0 1.5px #E7B3B3; }
.btn-lg { padding: 15px 26px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; min-height: 38px; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--lead-soft); }
.linkbtn { background: none; border: 0; padding: 4px; font: inherit; font-weight: 700; color: var(--vol-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header ---------- */
.ph { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.ph::before { content: ""; display: block; height: 4px; background: var(--stripe); }
.ph-in { display: flex; align-items: center; gap: 16px; height: 64px; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; flex: none; }
.brand img { height: 26px; width: auto; }
.brand .rule { width: 2px; height: 26px; border-radius: 1px; background: #8C8C8C; }
.brand .word { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.pnav { display: flex; gap: 4px; margin-left: auto; }
.pnav a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 9px 14px; border-radius: var(--r-pill); white-space: nowrap; }
@media (max-width: 1000px) { .pnav a { padding: 9px 10px; font-size: 14px; } .pnav a .ic { display: none; } }
.pnav a:hover { background: var(--bg); color: var(--ink); }
.pnav a[aria-current="page"] { background: var(--acc-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px #D8E9B6; }
.acct { position: relative; margin-left: 6px; }
.acct summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line-2); background: #fff; font-weight: 700; font-size: 14px; }
.acct summary::-webkit-details-marker { display: none; }
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--vol-soft); color: var(--vol-ink); font-weight: 800; font-size: 14px; }
.acct .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; min-width: 240px; z-index: 50; }
.acct .menu .me { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.acct .menu .me span { color: var(--ink-3); font-size: 13.5px; overflow-wrap: anywhere; }
.acct .menu a, .acct .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct .menu a:hover, .acct .menu button:hover { background: var(--bg); }
.team-tag { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--warn); background: var(--warn-soft); padding: 6px 12px; border-radius: var(--r-pill); }
.team-bar { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.team-bar a { color: var(--warn); font-weight: 800; }
.team-bar .inline-form { display: inline; margin: 0; }
.team-bar .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--warn); font-weight: 800; text-decoration: underline; cursor: pointer; }

/* mobile tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: 64px; }
  .ph-in { height: 56px; padding: 0 14px; gap: 10px; }
  .brand img { height: 22px; } .brand .rule { height: 22px; } .brand .word { font-size: 15px; }
  .pnav { display: none; }
  .acct { margin-left: auto; }
  .acct summary .nm { display: none; }
  .acct summary { padding: 4px; }
  body.authed { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31,35,40,.06);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; color: var(--ink-3); text-decoration: none; font-size: 11.5px; font-weight: 700; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); background: var(--acc-soft); }
  .team-tag span, .team-tag { font-size: 12px; padding: 5px 10px; }
}

/* ---------- page ---------- */
.pm { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px 20px 56px; }
.pm.wide { max-width: 80rem; }
.narrow { max-width: 40rem; margin: 0 auto; }
.h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; overflow-wrap: anywhere; }
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 46rem; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; margin: 0 0 18px; }
.card.flat { box-shadow: none; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0; }
.card h2 { font-size: 21px; font-weight: 800; }
.card h3 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card h3 small, .sec h2 small { font-weight: 600; color: var(--ink-3); font-size: 13px; letter-spacing: 0; }
.sub-h { font-size: 15px; font-weight: 800; margin: 18px 0 10px; }
.pf { border-top: 1px solid var(--line); background: #fff; }
.pf-in { max-width: var(--max); margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); }
.empty { text-align: center; padding: 48px 16px; }
.empty.big { padding: 80px 16px; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); background: var(--pbg, var(--lead-soft)); color: var(--pink, var(--ink-2)); font-size: 12.5px; font-weight: 800; white-space: nowrap; line-height: 1.5; }
.pill.st { font-size: 12.5px; }

/* callouts */
.callout { border-radius: var(--r); padding: 14px 18px; margin: 0 0 18px; font-size: 15px; border: 1.5px solid; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { margin: 6px 0 8px; padding-left: 20px; }
.callout.info { background: var(--vol-soft); border-color: #BFE3E9; color: #134850; }
.callout.warn { background: var(--warn-soft); border-color: #F1D9A0; color: #5F3E00; }
.callout.ok { background: var(--acc-soft); border-color: #D8E9B6; color: #344C08; }
.callout.note { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.callout a { color: inherit; font-weight: 800; }

/* forms */
.form { display: grid; gap: 16px; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 700; font-size: 14.5px; }
.f small { color: var(--ink-3); font-size: 13px; }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 0; border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px;
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--acc-ring); }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6873' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.form-err { background: var(--err-soft); color: var(--err); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; font-size: 14.5px; margin: 0; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--acc-ink); }

/* ---------- auth ---------- */
.auth { display: grid; place-items: center; padding: 24px 0 40px; }
.auth-card { position: relative; overflow: hidden; width: 100%; max-width: 27rem; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 34px 28px 26px; }
.auth-card .stripe { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripe); }
.auth-card h1 { font-size: 27px; font-weight: 800; }
.auth-card .lede { font-size: 15.5px; }
.auth-card .fine { margin: 16px 0 0; }

/* ---------- home ---------- */
.hello { margin-bottom: 18px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.current .cur-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.current h2 { font-size: clamp(22px, 2.6vw, 28px); }
.current h2 a { color: var(--ink); text-decoration: none; }
.current h2 a:hover { text-decoration: underline; }
.current.needs { box-shadow: var(--shadow), inset 0 0 0 2px #F1D9A0; }
.cur-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.cur-grid > div { background: var(--bg); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; align-content: start; }
.cur-grid .k { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.cur-grid b { font-size: 15.5px; }
.cur-grid small { color: var(--ink-3); font-size: 12.5px; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--acc-ink); border-radius: 4px; transition: width .3s var(--ease); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-cards { display: grid; gap: 10px; }
.mini { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--bg); color: var(--ink); text-decoration: none; }
.mini-th svg { width: 44px; height: auto; display: block; border-radius: 6px; }
.mini-tx { display: grid; gap: 1px; min-width: 0; }
.mini-tx > span { color: var(--ink-3); font-size: 13px; }
.mini:hover { background: var(--lead-soft); }
.how-facts { margin: 14px 0 0; }
.past { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.past a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); text-decoration: none; align-items: center; }
.past a:hover { background: var(--lead-soft); }
.past .t { font-weight: 700; } .past .d { grid-column: 1; font-size: 13px; color: var(--ink-3); } .past .pill { grid-column: 2; grid-row: 1 / span 2; }
.how .diagram { margin: 4px 0 10px; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; font-size: 14.5px; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.steps li span { color: var(--ink-2); }
.school-links { display: grid; gap: 8px; }
.school-links a { display: grid; gap: 1px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); text-decoration: none; }
.school-links a span { color: var(--ink-3); font-size: 13.5px; }
.school-links a:hover { background: var(--vol-soft); }

/* ---------- library ---------- */
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; background: #fff; padding: 14px; border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 12px; }
.filters .f label { font-size: 12.5px; color: var(--ink-3); }
.filters .search { position: relative; }
.filters .search .ic { position: absolute; left: 14px; bottom: 15px; color: var(--ink-3); }
.filters .search input { padding-left: 42px; }
.filters .chk { padding-bottom: 12px; white-space: nowrap; }
.count { font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 0 0 12px; min-height: 1.4em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bcard { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; transition: transform .15s, box-shadow .15s; }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bcard-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.bbody { display: flex; flex-direction: column; min-width: 0; }
.bbody > .pills { margin-bottom: 6px; }
.bcard h2 { font-size: 17.5px; font-weight: 800; margin: 2px 0 4px; letter-spacing: -.015em; }
.bcard p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.bcard .bfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.bcard .bfoot > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bcard .meta.compact { margin-bottom: 10px; }
.bcard .go { color: var(--ink); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.avail.av-open::before, .avail.av-busy::before { background: var(--acc-ink); }
.avail.av-open, .avail.av-busy { color: var(--acc-ink); }
.avail.av-mine::before { background: var(--vol-ink); } .avail.av-mine { color: var(--vol-ink); }
.avail.av-made::before { content: "✓"; width: auto; height: auto; background: none; font-weight: 800; } .avail.av-made { color: var(--ink-3); }
.avail.av-full, .avail.av-closed { color: var(--ink-3); }
.bcard.av-full, .bcard.av-closed { opacity: .72; }
.bcard.av-mine { box-shadow: var(--shadow), inset 0 0 0 2px var(--vol); }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.meta li { display: flex; gap: 8px; align-items: flex-start; }
.meta .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-3); }
.meta b { font-weight: 700; color: var(--ink); }
.meta.compact { font-size: 13.5px; gap: 3px; color: var(--ink-2); }
.meta.compact li { gap: 7px; }
.meta.compact .ic { width: 15px; height: 15px; margin-top: 3px; }

/* ---------- brief detail ---------- */
.crumbs { margin: -6px 0 12px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.bhead { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side" "meta side"; gap: 0 24px; align-items: start; margin-bottom: 18px; }
.bhead-main { grid-area: main; } .bhead-side { grid-area: side; } .bhead > .bhead-meta { grid-area: meta; }
.bhead-meta { display: grid; gap: 10px; justify-items: start; margin-top: 14px; }
.bhead-meta .meta { width: 100%; }
.bhead .pills { margin-bottom: 10px; }
.bhead .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; }
.bhead-side { display: grid; gap: 10px; position: sticky; top: 90px; align-self: start; }
.claim-box { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.claim-box p { margin: 0; font-size: 14.5px; }
.claim-box.mine { box-shadow: var(--shadow), inset 0 0 0 2px var(--vol); }
.print-btn { justify-self: start; }
.toc { position: sticky; top: 68px; z-index: 20; background: var(--bg); margin: 0 -20px 8px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.toc-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.toc-in::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 7px 13px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.toc a:hover, .toc a.on { background: var(--ink); color: #fff; box-shadow: none; }
.sec { padding: 22px 0 10px; border-bottom: 1px solid var(--line); }
.sec:last-of-type { border-bottom: 0; }
.sec > h2 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid2 p:last-child { margin-bottom: 0; }
.sec > .card.flat, .sec > .dd, .sec > .callout { margin-bottom: 14px; }
.hook-main { background: var(--char-3); color: #fff; border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 12px; position: relative; overflow: hidden; }
.hook-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--stripe); }
.hook-main .k { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #C8CDD3; }
.hook-main p { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; margin: 4px 0 0; letter-spacing: -.02em; line-height: 1.3; }
.takes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.takes li { background: #fff; border-radius: var(--r); padding: 14px 16px; border: 1.5px solid var(--line); }
.takes .k { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--disc-ink); }
.takes p { margin: 4px 0 0; font-weight: 700; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--env-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14.5px; color: #4A4200; }
.tip .ic { color: var(--env-ink); margin-top: 2px; }
.beats { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 10px; }
.beats li { counter-increment: b; background: #fff; border-radius: var(--r); padding: 14px 16px 14px 56px; position: relative; box-shadow: var(--shadow); }
.beats li::before { content: counter(b); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--vol-soft); color: var(--vol-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.say { font-weight: 700; margin: 0 0 4px; }
.ex { color: var(--ink-2); font-size: 14.5px; margin: 0; font-style: italic; }
.ex span { font-style: normal; font-weight: 800; color: var(--ink-3); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-right: 4px; }
.cta-box { background: var(--acc-soft); border: 1.5px solid #D8E9B6; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.cta-box h3 { font-size: 16px; font-weight: 800; }
.cta-box .muted { font-size: 14px; margin: 8px 0 0; }

/* shots */
.shots { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.shot { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; break-inside: avoid; }
.sb-wrap svg { width: 150px; height: auto; display: block; }
.shot h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.shot .num { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 3px 9px; border-radius: var(--r-pill); margin-right: 6px; vertical-align: 2px; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 8px; margin: 0 0 10px; }
.specs div { background: var(--bg); border-radius: 10px; padding: 7px 10px; }
.specs dt { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 700; font-size: 14px; }
.action { margin: 0 0 8px; font-size: 15px; }
.line { margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid var(--vol); background: var(--vol-soft); border-radius: 0 10px 10px 0; font-weight: 700; color: #134850; }
.fname { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.broll h3 { margin-bottom: 8px; }
.cols-list { columns: 2; column-gap: 26px; margin: 0 0 8px; padding-left: 20px; }
.cols-list li { break-inside: avoid; margin-bottom: 4px; }

/* setup + diagrams */
.dg { margin: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; break-inside: avoid; }
.dg svg { display: block; width: 100%; height: auto; }
.dg svg text { font-family: var(--font); }
.dg figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; font-weight: 600; }
.legend { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: lg; font-size: 14px; }
.legend li { counter-increment: lg; position: relative; padding-left: 30px; }
.legend li::before { content: counter(lg); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.setup-notes { display: grid; gap: 12px; }
.alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.framing-row { align-items: start; }
.framing-row .dg svg { max-width: 360px; margin: 0 auto; }
.ticks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 15px; height: 15px; border-radius: 5px; background: var(--acc-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ticks.warn li::before { background: var(--disc-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18v.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.dd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dd > div { border-radius: var(--r-lg); padding: 18px 20px; }
.dd h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.dd ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.dd .do { background: var(--acc-soft); border: 1.5px solid #D8E9B6; } .dd .do h3 { color: var(--acc-ink); }
.dd .dont { background: var(--teach-soft); border: 1.5px solid #F2C4C4; } .dd .dont h3 { color: var(--teach-ink); }
.checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--r-sm); padding: 12px 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 15px; min-height: 48px; }
.checklist input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--acc-ink); cursor: pointer; }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(31,35,40,.3); }
.checklist label:has(input:checked) { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px #D8E9B6; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.spec div { background: #fff; border-radius: var(--r-sm); padding: 12px 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.spec dt { font-weight: 800; font-size: 14px; }
.spec dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Filming School ---------- */
.school-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.scard { display: grid; gap: 4px; align-content: start; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.scard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.scard .n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--vol-soft); color: var(--vol-ink); margin-bottom: 6px; }
.scard:nth-child(6n+2) .n { background: var(--disc-soft); color: var(--disc-ink); } .scard:nth-child(6n+3) .n { background: var(--evt-soft); color: var(--evt-ink); }
.scard:nth-child(6n+4) .n { background: var(--fam-soft); color: var(--fam-ink); } .scard:nth-child(6n+5) .n { background: var(--env-soft); color: var(--env-ink); }
.scard b { font-size: 17px; } .scard span { color: var(--ink-2); font-size: 14.5px; } .scard small { color: var(--ink-3); font-weight: 700; font-size: 12.5px; margin-top: 6px; }
.lesson { max-width: 52rem; margin: 0 auto; }
.lesson header { margin-bottom: 18px; }
.lesson-body { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; }
.lesson-body h3 { font-size: 19px; font-weight: 800; margin: 24px 0 10px; }
.lesson-body ul { padding-left: 22px; display: grid; gap: 7px; margin: 0 0 14px; }
.lesson-body .dg { box-shadow: none; border: 1.5px solid var(--line); margin: 0 0 16px; }
.lesson-body .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lesson-body .pair .dg { margin: 0; }
.lesson-body .pair .dg.phone svg, .lesson-body svg.phone { max-width: 230px; margin: 0 auto; }
.lesson-body .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lesson-body .cols h3 { margin-top: 6px; font-size: 16px; }
.lesson-body .callout { margin: 0 0 16px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pager a { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; color: var(--ink); text-decoration: none; font-weight: 700; max-width: 48%; }
.pager a span { display: grid; } .pager small { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.pager .nx { margin-left: auto; text-align: right; }

/* ---------- claim / upload ---------- */
.chead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.chead p { margin: 0; font-weight: 700; }
.timeline { list-style: none; margin: 0 0 18px; padding: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); position: relative; }
.timeline li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; position: relative; font-size: 13.5px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 3px; border-radius: 2px; background: var(--line); }
.timeline li.on:not(:last-child)::after { background: var(--acc-ink); }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--lead-soft); color: var(--ink-3); }
.timeline li.on .dot { background: var(--acc-ink); color: #fff; }
.timeline li.warn .dot { background: var(--disc); color: #fff; }
.timeline small { color: var(--ink-3); font-size: 12px; }
.feedback { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feedback li { background: var(--warn-soft); border-radius: var(--r); padding: 12px 16px; }
.feedback .fh { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #5F3E00; margin-bottom: 4px; }
.feedback p { margin: 0; white-space: pre-wrap; }
.upload h2 { margin-bottom: 4px; }
.drop { display: block; position: relative; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg); padding: 30px 16px; text-align: center; cursor: pointer; margin: 14px 0; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--acc-edge); background: var(--acc-soft); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-in { display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.drop-in .ic { width: 34px; height: 34px; color: var(--acc-ink); }
.drop-in b { font-size: 17px; } .drop-in span { color: var(--ink-3); font-size: 14px; }
.files { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.files li { background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.files li.done { box-shadow: inset 0 0 0 1.5px #D8E9B6; }
.files li.err { box-shadow: inset 0 0 0 1.5px #F2C4C4; }
.fl-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fl-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--vol-soft); color: var(--vol-ink); flex: none; font-size: 11px; font-weight: 800; }
.fl-name { min-width: 0; flex: 1; }
.fl-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.fl-name span { font-size: 12.5px; color: var(--ink-3); }
.fl-x { flex: none; }
.fl-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 24px; }
.files li > select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.files li.paused { box-shadow: inset 0 0 0 1.5px #F1D9A0; background: #FFFCF3; }
.files li.paused .fl-st { color: var(--warn); }
.fl-resume { position: relative; min-height: 34px; padding: 6px 14px; }
.fl-x { font-size: 13.5px; color: var(--ink-3); }
.prog { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--vol-ink); border-radius: 5px; transition: width .25s linear; }
.files li.done .prog i { background: var(--acc-ink); }
.fl-st { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.files li.err .fl-st { color: var(--err); }
.files.ro li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.files.ro .fn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files.ro .fm { font-size: 13px; color: var(--ink-3); }
.submit-row { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.submit-row .btn { justify-self: start; }
.submit-row .fine { margin: 0; }
.card.danger h2 { font-size: 17px; }
.card.danger p { color: var(--ink-2); font-size: 14.5px; }
.next-cta { text-align: center; margin: 24px 0; }

/* ---------- toast + dialog ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar) + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); }
.dlg { border: 0; border-radius: var(--r-lg); padding: 0; max-width: min(28rem, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(31,35,40,.45); }
.dlg-in { padding: 24px; margin: 0; }
.dlg-in h2 { font-size: 21px; font-weight: 800; }
.dlg-in p { color: var(--ink-2); }
.dlg-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

/* ---------- responsive ---------- */
/* =====================================================================
   Round 2: Grow resources, big claim CTA, clips-to-send, pitch form, lighter direction
   ===================================================================== */
.btn-xl { padding: 17px 30px; font-size: 18px; font-weight: 800; min-height: 60px; border-radius: 16px; letter-spacing: -.01em; }
.btn-grow { background: #1F5E3A; color: #fff; box-shadow: 0 2px 0 rgba(15,60,35,.35); }
.btn-grow:hover { background: #174A2D; color: #fff; transform: translateY(-1px); }
.btn-sm.btn-grow { padding: 8px 14px; }
.btn[disabled] { cursor: not-allowed; }
.btn-primary[disabled] { background: repeating-linear-gradient(-45deg, #EEF0F2 0 10px, #E6E9EC 10px 20px); color: #454C55; box-shadow: inset 0 0 0 1.5px var(--line-2); transform: none; opacity: 1; }
.btn-primary[disabled]::before { content: ""; width: 18px; height: 18px; margin-right: 8px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.grow-badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: #1F5E3A; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px 3px 6px; border-radius: var(--r-pill); letter-spacing: .01em; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.grow-badge .ic { width: 13px; height: 13px; }
.gtag { display: inline-flex; align-items: center; gap: 4px; background: #E3F1E8; color: #1F5E3A; font-size: 12px; font-weight: 800; padding: 2px 9px 2px 7px; border-radius: var(--r-pill); vertical-align: 2px; white-space: nowrap; }
.gtag .ic { width: 13px; height: 13px; }
.pill.area { font-weight: 800; }
.pitch-pill { --pbg: #2B2F35; --pink: #fff; }
.vibe { display: inline-flex; align-items: flex-start; gap: 8px; background: #fff; border-radius: var(--r-pill); padding: 8px 16px 8px 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; color: var(--ink-2); margin: 0; }
.vibe .ic { color: #C98A00; margin-top: 2px; }

/* claim / upload call to action (hero + bottom) */
.cta-box { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; }
.cta-box .btn-xl { width: 100%; }
.cta-box p { margin: 0; font-size: 14.5px; }
.cta-why { color: var(--ink-3); }
.cta-box.mine { box-shadow: var(--shadow), inset 0 0 0 2.5px var(--acc-edge); background: var(--acc-soft); }
.cta-sum { display: grid; gap: 4px; }
.cta-sum b { font-size: 17px; }
.cta-sum small { color: var(--ink-3); font-size: 13px; }
.cta-box .bar, .cur-grid .bar { display: block; height: 8px; border-radius: 99px; background: #E3E8D6; overflow: hidden; }
.cta-box .bar i { display: block; height: 100%; background: var(--acc-edge); border-radius: 99px; }
.claim-foot { display: block; margin: 26px 0 8px; }
.claim-foot .cta-box { max-width: 560px; margin: 0 auto; text-align: center; padding: 22px; }
.cta-box.team { box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* the Grow resource panel on each brief */
.grow-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: center; background: linear-gradient(135deg, #F1F8F2 0%, #FFFFFF 70%); border-radius: var(--r-lg); padding: 18px; margin: 0 0 18px; box-shadow: var(--shadow), inset 0 0 0 2px #CFE6D7; position: relative; overflow: hidden; }
.grow-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--stripe); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.gp-thumb { display: block; padding: 0; border: 0; background: #fff; border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(31,35,40,.12); aspect-ratio: 4 / 3; }
.gp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .25s var(--ease); }
.gp-thumb:hover img { transform: scale(1.03); }
.gp-ph { display: grid; place-items: center; height: 100%; color: #1F5E3A; }
.gp-body .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #1F5E3A; }
.gp-body .eyebrow .ic { width: 15px; height: 15px; }
.gp-body h2 { font-size: clamp(20px, 2.2vw, 25px); font-weight: 800; margin: 4px 0 6px; }
.gp-what { color: var(--ink-2); font-size: 15px; margin: 0 0 10px; }
.gp-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.gp-n { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.gp-use { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; background: #fff; border-radius: var(--r-sm); padding: 10px 12px; box-shadow: inset 0 0 0 1.5px #DDEBE1; margin: 0 0 12px; }
.gp-use .ic { color: #1F5E3A; margin-top: 2px; }

/* resource modal */
.res-dlg { width: min(980px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.res-dlg::backdrop { background: rgba(20,24,28,.55); }
.res-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: min(88vh, 760px); position: relative; }
.res-prev { background: #EEF2EE; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.res-prev img { width: 100%; max-height: calc(min(88vh, 760px) - 36px); object-fit: contain; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); background: #fff; }
.res-side { padding: 24px 24px 18px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(#fff 30%, rgba(255,255,255,0)) top / 100% 30px no-repeat local, linear-gradient(rgba(255,255,255,0), #fff 70%) bottom / 100% 30px no-repeat local, radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.14), transparent) bottom / 100% 10px no-repeat scroll; }
.res-side h2 { font-size: 23px; font-weight: 800; margin: 4px 0 6px; padding-right: 36px; }
.res-side .eyebrow { display: block; padding-right: 44px; line-height: 1.4; }
.res-side .eyebrow { color: #1F5E3A; }
.res-use { background: var(--acc-soft); border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0 4px; font-size: 14.5px; }
.res-use p { margin: 4px 0 6px; }
.res-use .ticks { margin: 0; }
.res-files { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.res-files li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; background: #fff; border-radius: var(--r-sm); padding: 8px 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.rf-k { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--lead-soft); color: var(--ink-2); padding: 4px 0; border-radius: 6px; text-align: center; }
.rf-n { display: grid; min-width: 0; font-size: 14px; }
.rf-n b { overflow-wrap: anywhere; font-weight: 700; }
.rf-n small { color: var(--ink-3); }
.res-jump { display: none; }
.res-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; color: var(--ink); }

/* library: area chips, image cards, show more */
.area-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; cursor: pointer; font: 700 13.5px/1 var(--font); padding: 9px 14px; border-radius: var(--r-pill); background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); min-height: 38px; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.a-disc.on { background: var(--disc-ink); } .chip.a-evt.on { background: var(--evt-ink); } .chip.a-vol.on { background: var(--vol-ink); }
.chip.a-fam.on { background: var(--fam-ink); } .chip.a-env.on { background: var(--env-ink); } .chip.a-lead.on { background: var(--ink-2); }
/* library cards: a banner image on top (the Grow resource's real preview), text below */
.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.bcard { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.bcard .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #EEF2EE; overflow: hidden; }
.bcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.bcard .thumb.cel > svg { width: 100%; height: 100%; display: block; }
.bcard .thumb.doc { background: linear-gradient(135deg, #EAF2EC, #F6F1E8); display: grid; place-items: center; }
.bcard .thumb.doc { background: linear-gradient(135deg, #DCEBDF, #F3E9D8); }
.bcard .thumb.doc img { width: 62%; height: auto; max-height: none; align-self: start; margin-top: 14px; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 18px rgba(31,35,40,.18), 0 0 0 1px rgba(31,35,40,.06); transform: rotate(-3deg); }
.bcard .thumb.doc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(rgba(243,233,216,0), #EFE6D6 85%); pointer-events: none; }
.bcard .thumb .grow-badge { z-index: 1; }
.bcard .thumb .sb-th { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, #F3EEE6, #E9F1EA); }
.bcard .thumb .sb-th svg { width: auto !important; height: 88%; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.bcard .thumb .grow-badge { left: 10px; bottom: 10px; }
.bcard .bbody { padding: 14px 16px 12px; display: flex; flex-direction: column; }
.bcard .pills .pill { font-size: 12px; }
.more-row { text-align: center; margin: 18px 0 4px; }
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pitch-cta { margin-bottom: 18px; }
.mini-th.img { width: 54px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #F1F4F1; }
.mini-th.img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* shot list (lighter) */
.shot.grow { box-shadow: var(--shadow), inset 0 0 0 2px #BFDCC8; }
.shot .action { margin: 0 0 8px; }
.shot-meta { font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 6px 0 0; }
.cta-line { background: #fff; border-radius: var(--r); padding: 12px 16px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; margin: 0 0 14px; }

/* clips to send us */
.clips { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.clip { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border-radius: var(--r-sm); padding: 10px 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.clip .ck { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-2); color: transparent; }
.clip.got .ck { background: var(--acc-edge); box-shadow: none; color: #fff; }
.clip.got { box-shadow: inset 0 0 0 1.5px #CFE3A8; background: var(--acc-soft); }
.clip .cl { display: grid; gap: 2px; min-width: 0; }
.clip .cl b { font-size: 15px; }
.clip .cl > span:not(.gtag) { font-size: 13.5px; color: var(--ink-3); }
.clip .gtag { justify-self: start; }
.clip code { font-size: 12px; color: var(--ink-3); background: transparent; padding: 0; text-align: right; }
.clip.k-hook { box-shadow: inset 3px 0 0 var(--disc), inset 0 0 0 1.5px var(--line); }
.clip.k-broll { box-shadow: inset 3px 0 0 var(--vol), inset 0 0 0 1.5px var(--line); }
.deliv .spec { margin-bottom: 8px; }
.missing { display: grid; gap: 4px; background: var(--warn-soft); border: 1.5px solid #F1D9A0; color: #5F3E00; border-radius: var(--r); padding: 12px 16px; margin: 0 0 14px; font-size: 14.5px; }
.missing b { display: inline-flex; align-items: center; gap: 6px; }
.missing small { color: #5F3E00; font-size: 13.5px; }
.rel-row { margin: 14px 0 0; text-align: right; }
.upload { scroll-margin-top: 130px; }

/* need ideas? (collapsed extras) */
.ideas { border-bottom: 0; }
details.more { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
details.more > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 800; font-size: 17px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary span { display: inline-flex; align-items: center; gap: 8px; }
details.more > summary small { color: var(--ink-3); font-weight: 600; font-size: 13px; }
details.more > summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--ink-3); }
details.more[open] > summary::after { content: "–"; }
.more-in { padding: 0 20px 20px; }
.more-in h3 { font-size: 16px; margin-top: 4px; }

/* resources page */
.res-group { margin: 0 0 26px; }
.res-group > h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.res-group > h2 small { color: var(--ink-3); font-weight: 700; font-size: 14px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.rcard { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.rc-th { display: block; border: 0; padding: 0; background: #F1F4F1; aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.rc-th img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.rc-b { padding: 10px 12px 12px; display: grid; gap: 4px; flex: 1; }
.rc-b h3 { font-size: 15px; font-weight: 800; margin: 0; }
.rc-b p { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.rc-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 700; }

/* pitch form */
.pitch .form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chks { display: flex; flex-wrap: wrap; gap: 8px; }
.chks .chk { box-shadow: inset 0 0 0 1.5px var(--line-2); border-radius: var(--r-pill); padding: 8px 14px; min-height: 42px; }
fieldset.f { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.f legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.req { color: var(--err); }
.ferr { color: var(--err); font-weight: 600; font-size: 13.5px; min-height: 0; }
.ferr:empty { display: none; }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err) !important; }
.pshots { margin: 0 0 6px; padding-left: 22px; display: grid; gap: 8px; }
.consent { margin-top: 10px; align-items: flex-start; border-radius: var(--r-sm) !important; box-shadow: inset 0 0 0 1.5px #F1D9A0 !important; background: var(--warn-soft); padding: 10px 12px !important; font-size: 14px; }
.consent input { margin-top: 3px; }

@media (max-width: 900px) {
  .grow-panel { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
  .res-in { grid-template-columns: minmax(0, 1fr); max-height: 90vh; overflow-y: auto; }
  .res-prev { max-height: 42vh; }
  .res-prev img { max-height: calc(42vh - 36px); }
  .res-side { overflow: visible; padding-bottom: 76px; }
  .res-dlg { overflow: hidden; }
  .res-jump { display: inline-flex; position: absolute; left: 16px; right: 16px; bottom: 14px; justify-content: center; z-index: 3; box-shadow: 0 8px 24px rgba(15,60,35,.35); transition: opacity .2s; }
  .res-jump.gone { opacity: 0; pointer-events: none; }
  .res-dlg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(rgba(255,255,255,0), #fff 55%); pointer-events: none; z-index: 2; transition: opacity .2s; }
  .res-dlg:has(.res-jump.gone)::after { opacity: 0; }
  #resT:focus { outline: none; }
}
@media (max-width: 760px) {
  .bcard .thumb { aspect-ratio: 2 / 1; }
  .bcard .thumb .grow-badge { left: 8px; bottom: 8px; }
  .bcard .bbody { padding: 12px 14px 10px; }
  .bcard h2 { font-size: 17px; }
  .grow-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .gp-thumb { aspect-ratio: 16 / 10; }
  .gp-body .btn-grow { width: 100%; }
  .btn-xl { width: 100%; font-size: 17px; }
  .clip { grid-template-columns: 28px minmax(0, 1fr); }
  .clip code { grid-column: 2; text-align: left; overflow-wrap: anywhere; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .res-files li { grid-template-columns: auto minmax(0, 1fr); }
  .res-files li .btn { grid-column: span 1; justify-content: center; }
  .res-files li .btn-grow { grid-column: 1 / -1; }
  .res-files li .btn-ghost { grid-column: 1 / -1; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lib-head .pitch-cta { width: 100%; justify-content: center; margin: -6px 0 14px; }
  .vibe { border-radius: var(--r); }
  .area-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 2px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .area-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media print {
  .grow-panel .btn-grow, .cta-box, .ideas, #upload, .res-dlg, .more-row { display: none !important; }
  .grow-panel { box-shadow: none; border: 1px solid #ccc; }
  .clip { box-shadow: none; border: 1px solid #ccc; }
}

@media (max-width: 1060px) {
  .bhead { grid-template-columns: minmax(0, 1fr) 280px; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .search { grid-column: 1 / -1; }
  .filters .chk { padding-bottom: 0; }
  .takes { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs .wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .home-grid, .setup-grid, .alts, .grid2, .dd { grid-template-columns: minmax(0, 1fr); }
  .bhead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "meta"; gap: 14px; }
  .bhead-side { position: static; }
  .bhead-meta .print-btn { display: none; }
  .lesson-body .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pm { padding: 18px 14px 40px; }
  .card { padding: 18px; border-radius: var(--r); }
  .cur-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 8px; align-items: center; }
  .filters .f > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filters select, .filters input[type="search"] { min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-size: 15px; }
  .filters .search .ic { bottom: 13px; }
  .filters .chk { justify-content: flex-start; min-height: 44px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--line-2); padding: 0 14px; font-weight: 600; font-size: 15px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bhead .meta { grid-template-columns: minmax(0, 1fr); }
  .toc { top: 60px; margin: 0 -14px 8px; padding: 8px 14px; }
  .shot { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .sb-wrap svg { width: 104px; }
  .shot h3 { font-size: 16.5px; }
  .specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .checklist, .spec { grid-template-columns: minmax(0, 1fr); }
  .cols-list { columns: 1; }
  .lesson-body { padding: 18px; }
  .lesson-body .pair { grid-template-columns: minmax(0, 1fr); }
  .timeline { padding: 12px 8px; gap: 4px; }
  .timeline li { font-size: 12px; }
  .timeline .dot { width: 30px; height: 30px; }
  .timeline li:not(:last-child)::after { top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); }
  .chead { flex-direction: column; gap: 8px; }
  .pager a { max-width: none; flex: 1; }
  .pager { flex-direction: column; }
  .submit-row .btn { justify-self: stretch; }
}
@media (max-width: 420px) {
  .shot { grid-template-columns: minmax(0, 1fr); }
  .sb-wrap { display: flex; justify-content: center; }
  .sb-wrap svg { width: 132px; }
  .acts .btn { flex: 1 1 100%; }
}

/* ---------- print (brief detail as a clean handout) ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; display: block; font-size: 11.5pt; }
  .ph, .pf, .tabbar, .toc, .crumbs, .bhead-side, .claim-foot, .toast, .dlg, .team-bar, #school, .skip { display: none !important; }
  .pm { padding: 0; max-width: none; }
  .bhead { grid-template-columns: 1fr; }
  .card, .dg, .shot, .beats li, .claim-box { box-shadow: none !important; border: 1px solid #ccc; }
  .sec { border-bottom: 0; padding: 10px 0 0; break-inside: auto; }
  .sec > h2 { break-after: avoid; }
  .shot, .dg, .beats li, .takes li, .spec div, .checklist li { break-inside: avoid; }
  .hook-main { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
  .hook-main .k { color: var(--ink-3); }
  .setup-grid, .grid2, .alts, .dd { grid-template-columns: 1fr 1fr; }
  .checklist input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; }
  .checklist label { box-shadow: none; padding: 4px 0; min-height: 0; }
  a { color: var(--ink); text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
