/* Creators Dept brand: #080806 black · #737373 gray · #4CBB17 green · #E3DAC9 sand · #FCFBFA off-white */
@font-face {
  font-family: "GetVoIP Grotesque";
  src: url("fonts/GetVoIPGrotesque.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --cd-black: #080806;
  --cd-gray: #737373;
  --cd-green: #4cbb17;
  --cd-sand: #e3dac9;
  --cd-white: #fcfbfa;

  --bg: #f4f1ea;
  --surface: #fcfbfa;
  --ink: #080806;
  --muted: #5f5f5c;
  --rule: #e3dac9;
  --accent: #4cbb17;
  --accent-ink: #080806;
  --accent-soft: #e4f5da;
  --link: #2f7a0c;
  --ok: #2f7a0c;
  --ok-soft: #e4f5da;
  --warn: #7a5c1e;
  --warn-soft: #efe7d6;
  --bad: #b3261e;
  --bad-soft: #f8e4e1;
  --radius: 4px;
  --font: "Open Sauce Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "GetVoIP Grotesque", "Open Sauce Sans", sans-serif;
  --serif: "Open Sauce Sans", -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080806; --surface: #131311; --ink: #fcfbfa; --muted: #a3a3a0; --rule: #2a2925;
    --accent: #4cbb17; --accent-ink: #080806; --accent-soft: #1b2b12; --link: #6fd63c;
    --ok: #6fd63c; --ok-soft: #1b2b12; --warn: #e3dac9; --warn-soft: #2b2822;
    --bad: #ff8a7a; --bad-soft: #3a1c18;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-family: var(--display); font-weight: 700; }
h1 { font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
h2 { text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: var(--cd-black); color: var(--cd-white); border-bottom: 3px solid var(--cd-green); }
.topbar .btn:not(.primary) { background: transparent; color: var(--cd-white); border-color: #3a3a36; }
.topbar .btn:not(.primary):hover { border-color: var(--cd-white); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cd-white) !important; text-decoration: none !important; }
.brand img { height: 30px; display: block; }
.brand .product { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cd-green); padding-left: 12px; border-left: 1px solid #3a3a36; }
@media (max-width: 560px) { .brand img { height: 22px; } .brand .product { display: none; } }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
.narrow { max-width: 760px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 3px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
form.inline { display: inline; }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.notice { background: var(--warn-soft); color: var(--warn); padding: 8px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

.tabs { display: flex; gap: 4px; margin: 16px 0; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 3px; color: var(--muted); font-size: 14px; }
.tabs a.active { background: var(--ink); color: var(--bg); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
table.list td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.clickable:hover { background: var(--bg); cursor: pointer; }

.pill { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pill.draft, .pill.pending { background: var(--rule); color: var(--muted); }
.pill.sent { background: var(--cd-sand); color: var(--cd-black); }
.pill.viewed { background: var(--ink); color: var(--bg); }
.pill.signed, .pill.completed { background: var(--ok-soft); color: var(--ok); }
.pill.voided, .pill.declined { background: var(--bad-soft); color: var(--bad); }

.progress { height: 6px; background: var(--rule); border-radius: 999px; overflow: hidden; width: 120px; }
.progress span { display: block; height: 100%; background: var(--cd-green); }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea.body { min-height: 480px; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }

.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor .preview { max-height: 560px; overflow: auto; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.paper { background: #fff; color: #080806; border: 1px solid var(--rule); border-top: 4px solid var(--cd-green); border-radius: 4px;
  padding: 48px 56px; font-family: var(--serif); font-size: 16px; line-height: 1.65;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
.paper h1.doc-title { font-family: var(--display); font-size: 26px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .02em; }
.paper h2, .paper h3 { font-family: var(--font); margin-top: 1.4em; text-transform: none; letter-spacing: 0; }
.paper h2 { font-size: 19px; } .paper h3 { font-size: 16px; }
.paper hr { border: 0; border-top: 1px solid #e3dac9; margin: 24px 0; }
.paper .field { background: #fff4c2; padding: 0 4px; border-radius: 3px; font-family: var(--font); font-size: .9em; }
@media (max-width: 600px) { .paper { padding: 28px 22px; } }

.signer { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.signer:last-child { border-bottom: 0; }
.signer .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cd-black); color: var(--cd-green); font-family: var(--display);
  display: grid; place-items: center; font-weight: 700; flex: none; }
.signer .info { flex: 1; min-width: 0; }
.signer .meta { font-size: 12px; color: var(--muted); }
.linkbox { display: flex; gap: 6px; margin-top: 6px; }
.linkbox input { font-size: 12px; padding: 5px 8px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.signed::before, .timeline li.completed::before { background: var(--ok); }
.timeline li.viewed::before, .timeline li.email_opened::before { background: var(--warn); }
.timeline li.sent::before, .timeline li.emailed::before, .timeline li.copy_emailed::before, .timeline li.reminded::before { background: var(--accent); }
.timeline li.voided::before, .timeline li.declined::before { background: var(--bad); }
.timeline .t { color: var(--muted); font-size: 12px; }

/* signer page */
.sign-bar { position: sticky; top: 0; z-index: 5; background: var(--cd-black); border-bottom: 3px solid var(--cd-green);
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sigpad-wrap { border: 1.5px dashed var(--rule); border-radius: 8px; background: #fff; position: relative; touch-action: none; }
.sigpad-wrap canvas { display: block; width: 100%; height: 170px; cursor: crosshair; }
.sigpad-wrap .baseline { position: absolute; left: 24px; right: 24px; bottom: 40px; border-top: 1px solid #c9ccd4; pointer-events: none; }
.sigpad-wrap .x { position: absolute; left: 10px; bottom: 42px; color: #9aa0ae; font-size: 18px; pointer-events: none; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 4px; }
.done-hero { text-align: center; padding: 40px 20px; }
.done-hero .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cd-green); color: var(--cd-black);
  display: grid; place-items: center; font-size: 28px; margin: 0 auto 12px; }
.sig-img { max-height: 70px; background: #fff; border-radius: 4px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }

.flash.ok { border-left: 3px solid var(--cd-green); }
.flash.error { border-left: 3px solid var(--bad); }
.tagline { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); text-align: center; margin: 40px 0 0; }
@media (prefers-color-scheme: dark) { .login-icon { filter: invert(1); } }

/* section editor */
.tpl-picker { margin: 16px 0 4px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.editor-head label { margin: 0; }
.section-card { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--cd-green); border-radius: 4px; padding: 12px; margin-bottom: 10px; }
.section-card .sec-top { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.section-card .sec-num { font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: .1em; min-width: 22px; }
.section-card input.sec-heading { font-weight: 700; font-size: 15px; padding: 8px 10px; }
.section-card textarea.sec-text { min-height: 90px; resize: vertical; font: 14px/1.55 var(--font); }
.section-card .sec-tools { display: flex; gap: 4px; flex: none; }
.section-card .sec-tools .btn { padding: 4px 8px; font-size: 12px; }
.add-section { width: 100%; justify-content: center; border-style: dashed; }
textarea.body[hidden] { display: none; }

/* proposals: builder + detail */
.select { padding: 9px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.sec-card { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--cd-green); border-radius: 4px; margin-bottom: 8px; }
.sec-card.off { border-left-color: var(--rule); opacity: .6; }
.sec-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; flex-wrap: wrap; }
.sec-toggle { background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; text-align: left; display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.sec-toggle .caret { width: 12px; color: var(--muted); }
.sec-body { padding: 0 14px 14px; border-top: 1px solid var(--rule); }
.switch { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 0 0; font-weight: 500; }
.ed-area { resize: vertical; min-height: 60px; font: 14px/1.5 var(--font); }
.img-field { margin-top: 4px; }
.img-thumb { width: 100%; max-width: 320px; aspect-ratio: 16/9; background: var(--bg) center/cover no-repeat; border-radius: 4px; border: 1px solid var(--rule); margin-bottom: 6px; }
.sub-list { margin-top: 10px; }
.sub-item { border: 1px solid var(--rule); border-radius: 4px; padding: 6px 12px 12px; margin-bottom: 8px; background: var(--bg); }
.sub-head { margin-bottom: -6px; }
.add-dashed { border-style: dashed; width: 100%; justify-content: center; }
.add-section-row { margin-top: 10px; padding: 10px; border: 1px dashed var(--rule); border-radius: 4px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.gal-item { aspect-ratio: 1; background: var(--bg) center/cover no-repeat; border-radius: 4px; position: relative; border: 1px solid var(--rule); }
.gal-x { position: absolute; top: 4px; right: 4px; background: rgba(8,8,6,.75); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }
.save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border-top: 3px solid var(--cd-green); padding: 10px 16px; margin: 24px -24px -60px; }
.checklist { margin: 0 0 12px; padding-left: 18px; color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { font-family: var(--display); font-size: 22px; }
.stat.small-stat { font-family: var(--font); font-size: 13px; font-weight: 600; padding-top: 6px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; background: var(--rule); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--cd-green); }
.bar-val { text-align: right; }
.accepted-card { border-left: 4px solid var(--cd-green); }
.pay-card { border-left: 4px solid var(--cd-sand); }
.pay-card.paid { border-left-color: var(--cd-green); }

/* ---------- app home ---------- */
.crumb { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cd-white); border-left: 1px solid #3a3a36; padding-left: 14px; }
@media (max-width: 560px) { .crumb { display: none; } }
.btn.ghost { background: transparent; color: var(--cd-white); border-color: #4a4a45; }
.btn.ghost:hover { border-color: var(--cd-white); }
.home-hero { background: var(--cd-black); color: var(--cd-white); border-bottom: 3px solid var(--cd-green); }
.home-inner { max-width: 1080px; margin: 0 auto; padding: 72px 24px 56px; }
.home-greet { margin: 0 0 14px; color: var(--cd-green); font-family: var(--display); font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.home-statement { font-size: clamp(30px, 5.2vw, 58px); line-height: 1.04; max-width: 17ch; margin: 0 0 32px;
  letter-spacing: -.005em; animation: home-rise .7s ease-out both; }
@keyframes home-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-statement { animation: none; } }
.home-quick { gap: 10px; }
.home-wrap { padding-top: 32px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px; color: var(--ink) !important; text-decoration: none !important;
  transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 190px; }
a.tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(8,8,6,.08); }
a.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 0; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.tile-icon { width: 22px; height: 22px; color: var(--link); display: inline-flex; }
.tile-stat { font-size: 12px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 8px; }
.home-soon-title { margin: 36px 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tiles.soon .tile { min-height: 0; background: transparent; border-style: dashed; }
.tiles.soon .tile h2 { font-size: 15px; color: var(--muted); }
.home-label { color: #a3a3a0; }
.home-statement.mid { font-size: clamp(26px, 4.2vw, 46px); max-width: 22ch; }
.home-statement.long { font-size: clamp(22px, 3.3vw, 36px); max-width: 30ch; line-height: 1.1; }

/* ---------- partners & portal ---------- */
.person { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.portal-hero .home-inner { padding: 56px 24px 44px; }
.portal-h { margin: 28px 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.portal-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.portal-cols aside { margin-top: 56px; display: grid; gap: 16px; }
@media (max-width: 860px) { .portal-cols { grid-template-columns: 1fr; } .portal-cols aside { margin-top: 0; } }
.portal-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--rule); }
.portal-row:last-child { border-bottom: 0; }
.portal-clear { margin-top: 24px; }
.tile.todo { min-height: 0; border-left: 4px solid var(--accent); }
.tile.todo .btn { align-self: flex-start; margin-top: 8px; }
.portal-soon { border-style: dashed; background: transparent; }

/* ---------- content library ---------- */
.upload-card { margin-bottom: 18px; }
.dropzone { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center;
  min-height: 92px; border: 2px dashed var(--rule); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.upload-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.upload-list li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 110px; gap: 10px; align-items: center; font-size: 13px; }
.upload-list .up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload-list li.err .up-state { color: var(--bad); }
.upload-list li.ok .up-state { color: var(--ok); }
@media (max-width: 560px) { .upload-list li { grid-template-columns: 1fr 80px; } .upload-list .up-state { grid-column: 1 / -1; } }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.asset-grid.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.asset { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.asset-link { color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.asset-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.asset-thumb { position: relative; display: block; aspect-ratio: 1; background: var(--cd-black); }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cd-green); font-size: 28px; }
.asset-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(8,8,6,.78); color: var(--cd-white); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 3px; }
.asset-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.asset-name { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-feedback { margin: 2px 0 0; font-size: 12px; color: var(--bad); }
.asset details textarea, .asset details input { font-size: 13px; }
.viewer-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .viewer-cols { grid-template-columns: 1fr; } }
.viewer { background: var(--cd-black); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.viewer img, .viewer video { max-width: 100%; max-height: 78vh; display: block; }
.viewer-title { font-size: 17px; margin: 10px 0 4px; word-break: break-word; text-transform: none; letter-spacing: 0; }
.viewer-note { background: var(--bg); padding: 8px 10px; border-radius: var(--radius); }
.viewer-cols hr { border: 0; border-top: 1px solid var(--rule); margin: 18px 0 14px; }

/* ---------- library folders & gallery ---------- */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.folder-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.folder-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.folder-cover { position: relative; aspect-ratio: 16 / 10; background: var(--cd-black); display: block; }
.folder-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.gallery .asset-meta { padding: 8px 10px 10px; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 8, 6, .94); display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px 400px; align-items: center; }
.lightbox.lb-wide { grid-template-columns: 56px minmax(0, 1fr) 56px min(640px, 55vw); }
.lightbox[hidden] { display: none; }
.lb-stage { grid-column: 2; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 48px); display: block; }
.lb-nav, .lb-close { background: transparent; border: 0; color: var(--cd-white); cursor: pointer; font-size: 44px; line-height: 1; padding: 8px; }
.lb-nav:hover, .lb-close:hover { color: var(--cd-green); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 10px; right: 414px; font-size: 26px; }
.lightbox.lb-wide .lb-close { right: calc(min(640px, 55vw) + 14px); }
.lb-panel { grid-column: 4; height: 100vh; overflow: auto; background: var(--surface); color: var(--ink); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.lb-panel h2 { font-size: 17px; margin: 0; text-transform: none; letter-spacing: 0; word-break: break-word; }
.lb-panel .btn { justify-content: center; }
.lb-review { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 8px; }
.lb-review textarea { margin-top: 8px; }
.lb-review details .btn { margin-top: 8px; }
.lb-stage img, .lb-stage video { object-fit: contain; }
/* Phones and small tablets: the photo or video on top, always whole and in view; details scroll underneath */
@media (max-width: 860px) {
  .lightbox { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .lb-stage { position: relative; height: 58vh; height: 58svh; min-height: 220px; padding: 56px 12px 12px; }
  .lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; }
  .lb-nav { position: absolute; top: 29vh; top: 29svh; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(8, 8, 6, .55); font-size: 28px; display: flex; align-items: center; justify-content: center; padding: 0; }
  .lb-nav[hidden] { display: none; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-close { position: fixed; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(8, 8, 6, .65); display: flex; align-items: center; justify-content: center; padding: 0; }
  .lb-panel { height: auto; min-height: 42vh; min-height: 42svh; padding: 20px 16px 40px; }
}
/* Phones turned sideways: media on the left, details on the right, both fully visible */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .lightbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 44%); overflow: hidden; }
  .lb-stage { grid-column: 1; height: 100vh; height: 100svh; padding: 12px 52px; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(8, 8, 6, .55); font-size: 28px; display: flex; align-items: center; justify-content: center; padding: 0; }
  .lb-nav[hidden] { display: none; }
  .lb-prev { left: 6px; } .lb-next { right: calc(44% + 6px); }
  .lb-close { position: fixed; top: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(8, 8, 6, .65);
    display: flex; align-items: center; justify-content: center; padding: 0; }
  .lb-panel { grid-column: 2; grid-row: 1; height: 100vh; height: 100svh; overflow-y: auto; min-height: 0; }
  .lb-close { right: auto; left: 10px; }
}

/* ---------- review on cards, captions, comments ---------- */
.asset-card .asset-meta { gap: 7px; }
.asset-card.is-approved { border-color: var(--ok); }
.approve-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; cursor: pointer; user-select: none; }
.approve-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.approve-toggle .switch { width: 32px; height: 18px; border-radius: 9px; background: var(--rule); position: relative; transition: background .15s; flex: none; }
.approve-toggle .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.approve-toggle input:checked + .switch { background: var(--ok); }
.approve-toggle input:checked + .switch::after { transform: translateX(14px); }
.approve-toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.approve-toggle.big { font-size: 14px; }
.asset-caption { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick-comment { display: flex; gap: 6px; width: 100%; }
.quick-comment input { flex: 1; min-width: 0; font-size: 12px; padding: 6px 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration: underline; }
.lb-section { border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 6px; }
.lb-section textarea { width: 100%; }
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.comment { background: var(--bg); border-radius: var(--radius); padding: 8px 10px; }
.comment.agency { border-left: 3px solid var(--accent); }
.comment-body { font-size: 13px; white-space: pre-wrap; margin-top: 2px; }

/* ---------- brand & resources, branded portal ---------- */
.brand-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.brand-cols > div, .brand-cols > aside { display: grid; gap: 16px; }
@media (max-width: 860px) { .brand-cols { grid-template-columns: 1fr; } }
.brand-images { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
@media (max-width: 560px) { .brand-images { grid-template-columns: 1fr; } }
.logo-frame { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--bg); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; color: var(--muted); }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.header-frame { height: 120px; border-radius: var(--radius); background: var(--cd-black) center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.file-small { font-size: 12px; max-width: 220px; }
.file-list { display: grid; margin-top: 12px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.file-icon { width: 48px; height: 48px; flex: none; border-radius: var(--radius); background: var(--cd-black); color: var(--cd-green) !important;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; overflow: hidden; text-decoration: none !important; }
.file-icon img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { flex: 1; min-width: 0; }
.file-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; word-break: break-all; }
.social-row form { margin-left: auto; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--cd-black); color: var(--cd-green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.portal-hero.has-header { --shade: linear-gradient(90deg, rgba(8,8,6,.92) 0%, rgba(8,8,6,.7) 45%, rgba(8,8,6,.25) 100%);
  background: var(--shade), var(--header) var(--header-pos, 50% 50%) / cover no-repeat, var(--cd-black); }
.portal-hero.has-header.shade-light { --shade: linear-gradient(90deg, rgba(8,8,6,.7) 0%, rgba(8,8,6,.35) 50%, rgba(8,8,6,0) 100%); }
.portal-hero.has-header.shade-none { --shade: linear-gradient(transparent, transparent); }
.portal-hero.has-header.shade-none .home-statement, .portal-hero.has-header.shade-none .preview-title { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.portal-id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.portal-logo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #fff; display: block; flex: none; box-shadow: 0 0 0 3px var(--cd-green); }
.portal-logo img { width: 100%; height: 100%; object-fit: contain; }
.portal-logo.logo-fit-fill img { object-fit: cover; }
.portal-logo.logo-fit-fit img { padding: 6px; }
.portal-logo.logo-bg-white { background: #fff; }
.portal-logo.logo-bg-black { background: var(--cd-black); }
.portal-logo.logo-bg-green { background: var(--cd-green); }
.portal-logo.logo-bg-none { background: transparent; box-shadow: none; }
.portal-logo.logo-shape-rounded { border-radius: 14px; }
.portal-logo.logo-shape-square { border-radius: 2px; }
.logo-letter { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--display); font-size: 26px; color: var(--cd-black); }
.look-preview { margin: 12px 0 4px; }
.preview-hero { position: relative; border-radius: var(--radius); padding: 22px 22px 26px; aspect-ratio: 3.2 / 1; min-height: 150px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: var(--cd-white); background: var(--cd-black); border-bottom: 3px solid var(--cd-green); }
.preview-hero.has-header { cursor: crosshair; }
.preview-hero .portal-id { margin-bottom: 10px; }
.preview-hero .portal-logo { width: 48px; height: 48px; }
.preview-title { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(16px, 2.2vw, 24px); line-height: 1.05; max-width: 22ch; }
.focus-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--cd-green), 0 0 8px rgba(0,0,0,.6); pointer-events: none; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
.brand-images { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); grid-template-columns: 1fr 1fr; }
.partner-logo-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--rule); margin-right: 10px; }
.lb-panel [hidden], .asset-card [hidden] { display: none !important; }
.preview-banner { background: var(--cd-green); color: var(--cd-black); font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.preview-exit { border-color: var(--cd-green) !important; color: var(--cd-green) !important; }
a.tile.todo-link { cursor: pointer; }
a.tile.todo-link:hover .btn { filter: brightness(1.08); }

/* ---------- needs attention, follow-ups ---------- */
.attention { padding: 4px 0; }
.attention-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 16px;
  border-top: 1px solid var(--rule); color: var(--ink) !important; text-decoration: none !important; }
.attention-row:first-child { border-top: 0; }
.attention-row:hover { background: var(--bg); }
.att-icon { display: inline-flex; justify-content: center; color: var(--muted); }
.attention-row:hover .att-icon { color: var(--link); }
.att-text { font-size: 14px; }
@media (max-width: 560px) { .attention-row { grid-template-columns: 24px 1fr; } .att-when { grid-column: 2; } }
.fu-table { width: 100%; border-collapse: collapse; }
.fu-table td, .fu-table th { padding: 10px 8px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; font-size: 14px; }
.fu-table input[type=text] { max-width: 110px; }
.archived-tag { background: var(--rule); color: var(--muted); }
.drafts { display: grid; gap: 8px; }
.draft-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.draft-head strong { margin-right: auto; }
.draft textarea { width: 100%; font-size: 13px; }
.draft { border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 8px 10px; }
.draft-text { white-space: pre-wrap; margin: 6px 0 0; }
.build-voice { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 2px; }
textarea.ai-filled { border-color: var(--accent); background: var(--accent-soft); }
.invite-box summary { list-style: none; cursor: pointer; }
.invite-box summary::-webkit-details-marker { display: none; }
.invite-box[open] { flex-basis: 100%; order: 2; }
.person > .row:has(.invite-box[open]) { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-end; }
.invite-box[open] summary { margin-left: auto; width: max-content; }
.invite-box form { margin-top: 8px; }
.person { flex-wrap: wrap; }
.welcome-card { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; border-left: 4px solid var(--accent); margin-top: 24px; }
.welcome-card h2 { text-transform: none; letter-spacing: 0; font-size: 20px; }
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.welcome-grid a { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink) !important; text-decoration: none !important; }
.welcome-grid a:hover { border-color: var(--accent); }
.welcome-grid span { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .welcome-card { flex-direction: column; } }

/* ---------- requests ---------- */
.request-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.request-cols > div, .request-cols > aside { display: grid; gap: 16px; }
@media (max-width: 860px) { .request-cols { grid-template-columns: 1fr; } }
.comments.thread { max-height: none; }
.move-box summary { list-style: none; cursor: pointer; }
.move-box summary::-webkit-details-marker { display: none; }
.move-box[open] form { margin-top: 6px; }
.request-cols aside .file-row { flex-wrap: wrap; }
.request-cols aside .file-meta { flex: 1 1 140px; }
.request-cols aside .file-row > .row { width: 100%; padding-left: 60px; }

/* Horizons: dreams, goals and opportunities */
.wide { max-width: 1280px; }
input[type=date] { padding: 9px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; width: 100%; }
.kind-dream { --kind: var(--cd-green); }
.kind-goal { --kind: #c2a86f; }
.kind-opportunity { --kind: var(--ink); }
.hz-filters { margin: 0 0 18px; gap: 8px; }
.hz-filters .select { width: auto; }
.hz-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-right: 6px; }
.hz-chips a { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--muted); }
.hz-chips a:hover { text-decoration: none; color: var(--ink); border-color: var(--muted); }
.hz-chips a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.hz-chips a[class*=kind-]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--kind); margin-right: 6px; vertical-align: 1px; }
.hz-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hz-column { background: color-mix(in srgb, var(--rule) 35%, transparent); border-radius: 6px; padding: 10px; }
.hz-col-h { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 4px 10px; }
.hz-drop { display: flex; flex-direction: column; gap: 10px; min-height: 90px; }
.hz-list { gap: 8px; }
.hz-card { position: relative; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--rule); border-left: 4px solid var(--kind); border-radius: var(--radius); padding: 12px 12px 12px 6px; }
.hz-grip { flex: none; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 4px;
  cursor: grab; touch-action: none; border-radius: 3px; }
.hz-grip:hover, .hz-grip:focus-visible { color: var(--ink); background: var(--rule); }
.hz-rank { flex: none; font-family: var(--display); font-weight: 700; font-size: 18px; min-width: 22px; text-align: right; padding-top: 2px; }
.hz-thumb { flex: none; }
.hz-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; display: block; }
.hz-body { flex: 1; min-width: 0; }
.hz-meta { color: var(--muted); }
.hz-kind { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--ink); }
.hz-stage { margin-left: 6px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hz-title { display: block; font-weight: 700; font-size: 16px; color: var(--ink) !important; margin: 3px 0 0; line-height: 1.3; }
.hz-next { margin: 6px 0 0; }
.hz-date { margin: 4px 0 0; }
.hz-advance { flex-basis: 100%; display: flex; justify-content: flex-end; }
.hz-list .hz-advance { flex-basis: auto; align-self: center; }
.hz-dragging { display: none; }
.hz-holder { border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.hz-ghost { position: fixed; z-index: 50; pointer-events: none; box-shadow: 0 12px 32px rgba(0,0,0,.25); transform: rotate(1.5deg); opacity: .95; }
.hz-empty { text-align: center; padding: 48px 24px; }
.hz-empty p { max-width: 52ch; margin: 0 auto 18px; }
.hz-form .hz-kind-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hz-kind-pick legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hz-kind-opt { margin: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--rule);
  border-top: 4px solid var(--kind); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.hz-kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hz-kind-opt:has(input:checked) { border-color: var(--ink); border-top-color: var(--kind); background: color-mix(in srgb, var(--kind) 10%, var(--surface)); }
.hz-kind-opt:has(input:focus-visible) { outline: 2px solid var(--accent); }
.hz-form .select { width: 100%; }
.hz-form-img img { max-width: 100%; max-height: 220px; border-radius: 4px; display: block; margin-bottom: 4px; }
.hz-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hz-win { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--kind);
  border-radius: var(--radius); overflow: hidden; color: var(--ink) !important; text-decoration: none !important; }
.hz-win:hover { border-color: var(--muted); border-top-color: var(--kind); }
.hz-win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hz-win-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.hz-win-title { font-size: 17px; line-height: 1.25; }
.hz-win-body p { margin: 0; color: var(--muted); }
.home-horizons { margin: -12px 0 30px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.home-north { display: block; color: var(--cd-white) !important; text-decoration: none !important; border-left: 3px solid var(--cd-green); padding: 2px 0 2px 14px; }
.home-north .lbl, .home-motion .lbl { display: block; font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cd-green); }
.home-north strong { font-size: 19px; }
.home-north .nx { display: block; color: #a3a3a0; font-size: 14px; margin-top: 2px; }
.home-motion { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.home-motion .lbl { margin-right: 4px; }
.home-motion a { color: var(--cd-white) !important; border: 1px solid #4a4a45; border-radius: 999px; padding: 4px 12px; font-size: 13px; text-decoration: none !important; }
.home-motion a:hover { border-color: var(--cd-green); }
@media (max-width: 860px) {
  .hz-board { grid-template-columns: 1fr; }
  .hz-list .hz-advance { flex-basis: 100%; }
  .hz-form .hz-kind-pick { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) { .kind-goal { --kind: #d8c08a; } }

/* Horizons, lighter: unfolding add flow and slimmer cards */
.unfold { display: flex; flex-direction: column; gap: 22px; }
.unfold.js .uf-step { display: none; }
.unfold.js .uf-step.shown { display: block; animation: uf-in .35s ease both; }
@keyframes uf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .unfold.js .uf-step.shown { animation: none; } }
.uf-q { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 10px; transition: font-size .2s, color .2s; }
.uf-step.answered .uf-q { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.unfold input[type=text], .unfold textarea { font-size: 17px; padding: 12px 14px; border-radius: 6px; }
.unfold textarea { resize: vertical; min-height: 0; }
.uf-actions { display: flex; gap: 6px; margin-top: 8px; }
.uf-step.answered .uf-actions { display: none; }
.uf-next, .uf-skip { border: 0; background: none; font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 3px; cursor: pointer; color: var(--muted); }
.uf-next { color: var(--ink); font-weight: 600; background: var(--rule); }
.uf-next:hover, .uf-skip:hover { color: var(--ink); }
.uf-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.uf-choice { margin: 0; cursor: pointer; font-weight: 400; }
.uf-choice input, .uf-pill input { position: absolute; opacity: 0; pointer-events: none; }
.uf-choice span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; transition: border-color .15s, background .15s; }
.uf-choice strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--kind); margin-right: 8px; vertical-align: 1px; }
.uf-choice strong { font-size: 15px; }
.uf-choice small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.uf-choice:hover span { border-color: var(--muted); }
.uf-choice input:checked + span { border-color: var(--kind); background: color-mix(in srgb, var(--kind) 12%, transparent); }
.uf-choice input:focus-visible + span, .uf-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.uf-step.answered .uf-choice small { display: none; }
.uf-step.answered .uf-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.uf-step.answered .uf-choice span { padding: 6px 12px; border-radius: 999px; }
.uf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.uf-pill { margin: 0; cursor: pointer; font-weight: 400; }
.uf-pill span { display: inline-block; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; transition: border-color .15s, background .15s; }
.uf-pill:hover span { border-color: var(--muted); }
.uf-pill input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.uf-done { padding-top: 4px; }
.uf-more summary { font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: 12px; }
.uf-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; margin-bottom: 14px; }
.uf-more-grid label { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.uf-more-grid input, .uf-more-grid .select { width: 100%; }
.uf-submit { padding: 11px 20px; }
.uf-nudge { animation: uf-nudge .3s; }
@keyframes uf-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.uf-page { margin-top: 28px; }
@media (max-width: 620px) { .uf-choices { grid-template-columns: 1fr; } .uf-q { font-size: 19px; } }
.uf-step.answered .uf-choice strong { font-size: 13px; }

/* On the home screen the flow sits in the dark hero */
.home-add { border-top: 1px solid #2a2925; padding-top: 12px; margin-top: 2px; }
.home-add > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.home-add > summary::-webkit-details-marker { display: none; }
.home-add > summary .lbl { display: inline; font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cd-green); }
.home-add-q { color: #a3a3a0; font-size: 15px; }
.home-add > summary:hover .home-add-q { color: var(--cd-white); }
.home-add[open] > summary .home-add-q { display: none; }
.home-add .unfold { margin-top: 16px; --ink: var(--cd-white); --bg: var(--cd-black); --rule: #3a3934; --muted: #a3a3a0; --surface: #131311; color: var(--cd-white); }
.home-add .unfold input[type=text], .home-add .unfold textarea, .home-add .unfold input[type=date], .home-add .unfold .select { background: #131311; color: var(--cd-white); border-color: #3a3934; }
.home-add .uf-q { color: var(--cd-white); }
.home-add .uf-step.answered .uf-q { color: #a3a3a0; }

/* Slimmer cards */
.hz-column { background: transparent; border: 1px solid var(--rule); padding: 8px; }
.hz-col-h { font-size: 12px; margin: 2px 4px 8px; }
.hz-drop { gap: 6px; min-height: 60px; }
.hz-card { gap: 8px; padding: 9px 10px 9px 4px; border-left-width: 3px; }
.hz-title { font-size: 15px; margin-top: 1px; }
.hz-meta { font-size: 12px; }
.hz-kind { font-size: 10px; }
.hz-next { margin-top: 4px; color: var(--muted); }
.hz-next strong { color: var(--ink); font-weight: 600; }
.hz-thumb img { width: 44px; height: 44px; }
.hz-advance { margin-top: -2px; }
.hz-advance .btn { border: 0; background: none; color: var(--muted); padding: 2px 4px; font-size: 12px; }
.hz-advance .btn:hover { color: var(--ink); }
.home-inner:has(.home-add[open]) .home-quick { display: none; }

/* Line icons beside Horizons labels */
.hz-ic, .hz-tab-ic, .hz-advance .btn { display: inline-flex; align-items: center; gap: 5px; }
.hz-col-h .hz-ic .icon { color: var(--link); }
.hz-stage .icon { color: var(--link); }
.home-add > summary .lbl.hz-ic { display: inline-flex; }

/* Team: avatars, roster, activity */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { background: var(--cd-green); color: var(--cd-black); font-weight: 700; letter-spacing: .02em; }
.topbar-me { display: inline-flex; border-radius: 50%; }
.topbar-me:hover { outline: 2px solid var(--cd-green); outline-offset: 2px; }
.team-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.team-roles .card + .card { margin-top: 0; }
.team-roles p { margin: 6px 0 0; }
.team-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--rule); }
.team-row:first-child { border-top: 0; }
.team-who { flex: 1; min-width: 200px; }
.team-edit[open] { flex-basis: 100%; order: 3; }
.team-row > .row:has(.team-edit[open]) { flex-basis: 100%; }
.team-edit summary { list-style: none; cursor: pointer; }
.team-edit summary::-webkit-details-marker { display: none; }
.team-edit form { margin-top: 10px; }
.activity-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 20px; border-top: 1px solid var(--rule); }
.activity-row:first-child { border-top: 0; }
.profile-photo { display: flex; gap: 18px; align-items: center; margin-bottom: 6px; }
.login-owner { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 12px; }
.login-owner summary { cursor: pointer; }
@media (max-width: 640px) { .team-roles { grid-template-columns: 1fr; } .activity-row { grid-template-columns: 1fr; gap: 2px; } }

.contact-btns { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.contact-btns .btn { gap: 5px; }
.contact-nophone { max-width: 150px; line-height: 1.3; }
input[type=tel] { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }

/* Sign in: the story on the left, the form on the right */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.signin-story { background: var(--cd-black); color: var(--cd-white); padding: 48px 56px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 40px; border-right: 3px solid var(--cd-green); }
.signin-mark { height: 28px; width: auto; align-self: flex-start; }
.signin-eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cd-green); margin: 0 0 14px; }
.signin-h { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; max-width: 14ch; margin: 0 0 20px; }
.signin-lede { color: #c9c9c4; font-size: 16px; line-height: 1.6; max-width: 52ch; margin: 0 0 22px; }
.signin-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 52ch; }
.signin-points li { padding-left: 18px; position: relative; color: #c9c9c4; font-size: 14px; line-height: 1.5; }
.signin-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cd-green); }
.signin-points strong { color: var(--cd-white); }
.signin-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a85; margin: 0; }
.signin-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.signin-box { width: 100%; max-width: 360px; }
.signin-box h2 { font-size: 24px; text-transform: uppercase; margin: 0 0 18px; }
.signin-box label:first-of-type { margin-top: 0; }
.signin-box input[type=email], .signin-box input[type=password] { padding: 12px 14px; font-size: 16px; }
.signin-btn { width: 100%; justify-content: center; margin-top: 18px; padding: 12px 16px; }
.signin-alt { margin-top: 18px; color: var(--muted); }
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; }
  .signin-story { border-right: 0; border-bottom: 3px solid var(--cd-green); padding: 32px 24px; gap: 24px; }
  .signin-points, .signin-tag { display: none; }
  .signin-lede { font-size: 15px; margin-bottom: 0; }
  .signin-panel { padding: 32px 20px 48px; align-items: flex-start; }
}
.treq-msg { display: flex; gap: 10px; align-items: flex-start; }

/* Portal: agreements & payments in one list */
.paperwork { padding: 2px 0; }
.paper-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--rule); }
.paper-row:first-child { border-top: 0; }
.paper-main { min-width: 0; }
.paper-actions { display: flex; gap: 6px; align-items: center; flex: none; }
@media (max-width: 560px) { .paper-row { flex-wrap: wrap; } }
.portal-cols.solo { grid-template-columns: 1fr; }
.portal-cols.solo > section { display: none; }
.portal-cols.solo aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; margin-top: 28px; }
.portal-cols.solo aside .card + .card { margin-top: 0; }
.past-upload { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.past-upload summary { cursor: pointer; color: var(--link); }

/* Profile links */
.profile-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.link-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 12px; color: var(--ink) !important; text-decoration: none !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.link-chip:hover { border-color: var(--accent); }
.links-edit { margin-top: 4px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .link-row { grid-template-columns: 1fr; gap: 4px; padding-bottom: 6px; border-bottom: 1px dashed var(--rule); } }

/* ---------- Phones, portrait or landscape: nothing wider than the screen, nothing lost ---------- */
.row > * { min-width: 0; }
input[type=file] { max-width: 100%; }
.profile-photo > div { min-width: 0; }
.brand-cols > div, .brand-cols > aside, .grid > *, .portal-cols > *, .request-cols > * { min-width: 0; }
/* Square thumbnails stay square, however tall or wide the photo is */
.asset-thumb { overflow: hidden; min-height: 0; }
.asset-thumb img { position: absolute; inset: 0; }
@media (max-width: 860px) {
  .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .topbar .btn { padding: 6px 10px; font-size: 13px; }
  .topbar > .row:last-child { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  /* The portal menu becomes one row you can swipe, under the logo */
  .portal-bar > .row:last-child { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .portal-bar > .row:last-child::-webkit-scrollbar { display: none; }
  .portal-bar > .row:last-child .btn { flex: none; white-space: nowrap; }
  .wrap { padding: 20px 16px 48px; }
  .brand-images, .look-grid { grid-template-columns: 1fr !important; }
}
/* Lists become stacked rows: the main column full width, the rest as small details underneath */
@media (max-width: 640px) {
  table.list thead { display: none; }
  table.list, table.list tbody { display: block; width: 100%; }
  table.list tr { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--rule); }
  table.list tr:last-child { border-bottom: 0; }
  table.list td { display: block; padding: 0; border: 0; }
  table.list td:first-child { flex-basis: 100%; }
  table.list td:empty { display: none; }
  .home-statement { font-size: clamp(24px, 7vw, 34px); }
}
.brand-cols > div, .brand-cols > aside { grid-template-columns: minmax(0, 1fr); }
.form-grid > * { min-width: 0; }
@media (max-width: 640px) { .preview-hero { aspect-ratio: auto; width: 100%; } }
@media (max-width: 860px) { .lightbox { background: var(--cd-black); } }

.lb-tone { gap: 8px; }
.lb-tone .select { flex: 1; min-width: 0; }
.draft textarea, #lb-caption { min-height: 64px; resize: vertical; overflow: hidden; line-height: 1.5; }
.lightbox.lb-wide .draft textarea { font-size: 14px; }
@media (max-width: 860px) { #lb-expand { display: none; } }
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) { #lb-expand { display: none; } }

/* ---------- folder covers (a gallery-style header) ---------- */
.folder-hero { position: relative; background: var(--cd-black); color: var(--cd-white); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; min-height: 160px; margin: 6px 0 18px; }
.folder-hero.has-cover { min-height: clamp(240px, 42vw, 520px);
  background-image: linear-gradient(180deg, rgba(8,8,6,0) 35%, rgba(8,8,6,.82) 100%), var(--cover);
  background-size: cover; background-position: center, var(--cover-pos, 50% 50%); }
.folder-hero.editable { cursor: crosshair; }
.folder-hero-inner { padding: clamp(18px, 4vw, 44px); max-width: 900px; }
.folder-hero-eyebrow { margin: 0 0 8px; font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cd-green); }
.folder-hero-title { font-size: clamp(30px, 6vw, 72px); line-height: .98; margin: 0; color: var(--cd-white); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.folder-hero-desc { margin: 10px 0 0; color: #e6e6e1; max-width: 60ch; }
.folder-hero-meta { margin: 8px 0 0; font-size: 13px; color: #c9c9c4; }
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.cover-pick button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--cd-black); }
.cover-pick button:hover, .cover-pick button:focus-visible { border-color: var(--accent); }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder-cover.has-folder-cover img { object-fit: cover; }
/* share links */
.share-box { margin-top: 16px; }
.share-row { border-top: 1px solid var(--rule); padding: 12px 0 4px; margin-top: 12px; }
.share-row .linkbox { display: flex; gap: 6px; }
.share-row .linkbox input { flex: 1; min-width: 0; font-size: 13px; }
.share-actions { gap: 8px; margin-top: 8px; }
.share-actions .btn { gap: 5px; }
.share-new { margin-top: 14px; gap: 12px; }
/* the public gallery */
.share-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); background: var(--cd-black); color: var(--cd-white); }
.share-who { display: flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; font-size: 14px; min-width: 0; }
.share-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff; flex: none; }
.share-top + .folder-hero { margin: 0; border-radius: 0; }
.share-main { padding-top: 24px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.share-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--cd-black); }
.share-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.share-item:hover img { transform: scale(1.03); }
.share-foot { text-align: center; margin: 36px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share-viewer { position: fixed; inset: 0; z-index: 60; background: var(--cd-black); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.share-viewer[hidden] { display: none; }
.sv-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; color: var(--cd-white); }
.sv-bar .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sv-actions { display: flex; gap: 6px; flex: none; }
.sv-actions .btn:not(.primary) { background: transparent; color: var(--cd-white); border-color: #3a3a36; }
.sv-stage { display: flex; align-items: center; justify-content: center; padding: 8px 56px 36px; min-height: 0; }
.sv-stage img, .sv-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.08); color: var(--cd-white); font-size: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sv-nav:hover { background: rgba(255,255,255,.18); }
.sv-nav[hidden] { display: none; }
.sv-prev { left: 8px; } .sv-next { right: 8px; }
.sv-count { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #a3a3a0; }
@media (max-width: 640px) {
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sv-stage { padding: 4px 4px 34px; }
  .sv-nav { top: auto; bottom: 4px; transform: none; width: 38px; height: 38px; }
  .share-top .btn { padding: 8px 12px; font-size: 13px; }
}

/* ---------- branded file pickers (static/filepick.js) ---------- */
.filepick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; border: 1.5px dashed var(--rule);
  border-radius: 6px; background: var(--surface); width: 100%; transition: border-color .15s, background .15s; }
.filepick.over { border-color: var(--accent); background: var(--accent-soft); }
.filepick.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.filepick-btn { position: relative; margin: 0; cursor: pointer; font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .05em; padding: 9px 16px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filepick-btn:hover { filter: brightness(1.15); }
.filepick-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.filepick-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.filepick-status { font-size: 13px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; flex: 1 1 160px; }
.filepick.has-file .filepick-status { color: var(--ink); }
.filepick.has-file .filepick-status strong { color: var(--ok); }
.filepick-preview { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex: none; background: var(--cd-black); }
.filepick-preview[hidden] { display: none; }
.filepick-clear { flex: none; }
/* the Save/Upload button lights up once a file is ready */
.btn.ready { box-shadow: 0 0 0 3px var(--accent-soft); animation: ready-pulse 1.4s ease 2; }
@keyframes ready-pulse { 50% { box-shadow: 0 0 0 7px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .btn.ready { animation: none; } }
.btn.busy { opacity: .7; pointer-events: none; }
.brand-images .row:has(.filepick), .cover-edit .row:has(.filepick) { flex-wrap: wrap; }
.file-small { max-width: none; }

/* brand color setting */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.swatch { margin: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 400; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .15s; }
.swatch small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.swatch:hover span { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
.accent-custom { gap: 10px; }
.accent-custom input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); cursor: pointer; }
.accent-custom input[type=text] { width: 130px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.accent-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border: 1px dashed var(--rule); border-radius: 6px; }
.accent-preview .pill { background: var(--pill-bg, var(--accent)); color: var(--accent-ink); }
.accent-preview a { color: var(--link); }

/* social channel buttons */
.social-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 9px;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink) !important; text-decoration: none !important; background: var(--surface);
  transition: border-color .15s, background .15s, color .15s; font-size: 13px; font-weight: 600; }
a.social-btn:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink) !important; }
.social-btn.is-text { font-weight: 400; color: var(--muted) !important; }
.social-btn.labeled { padding: 0 12px; flex: none; }
.social-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.social-row { word-break: normal; }
/* on dark heroes */
.home-hero .social-btn { background: transparent; color: var(--cd-white) !important; border-color: rgba(252,251,250,.35); }
.home-hero a.social-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }
.portal-socials { margin-top: 18px; }
.partner-socials { margin-top: 10px; }

/* agency identity */
.agency-mark { height: 34px; width: auto; max-width: 180px; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px 8px; display: block; }
.agency-name-mark { font-family: var(--display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--cd-white); white-space: nowrap; }
.agency-logo-now { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.agency-logo-now img { height: 48px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 4px; padding: 4px 8px; border: 1px solid var(--rule); }
.signin-agency { display: flex; align-items: center; gap: 10px; margin: -8px 0 16px; font-weight: 600; }
.signin-agency img { height: 32px; max-width: 140px; object-fit: contain; }

.home-inner.has-agency-logo { position: relative; }
.home-agency { position: absolute; top: 56px; right: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-agency img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.home-agency span { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #a3a3a0; }
.home-inner.has-agency-logo .home-statement { max-width: min(17ch, calc(100% - 180px)); }
@media (max-width: 860px) {
  .home-agency { position: static; flex-direction: row; margin-bottom: 18px; }
  .home-agency img { width: 56px; height: 56px; padding: 6px; border-radius: 8px; }
  .home-inner.has-agency-logo .home-statement { max-width: none; }
}
.beta-btn { border-color: var(--accent) !important; color: var(--accent) !important; }

/* Folder cards: the cover fills the card, the name sits on it (portal and agency libraries) */
.folder-card { position: relative; overflow: hidden; border: 0; background: var(--cd-black); }
.folder-card .folder-cover { aspect-ratio: 4 / 3; }
.folder-card .folder-cover img { transition: transform .4s; }
.folder-card:hover .folder-cover img { transform: scale(1.04); }
.folder-card .folder-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; color: var(--cd-white);
  background: linear-gradient(180deg, rgba(8,8,6,0) 0%, rgba(8,8,6,.85) 70%); }
.folder-card .folder-meta strong { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.folder-card .folder-meta .small, .folder-card .folder-meta .muted { color: #d9d9d4; }
.folder-card .folder-meta .pill { align-self: flex-start; }
.folder-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.folder-badge.done { background: rgba(252,251,250,.92); color: var(--cd-black); }
.folder-card > .folder-badge { z-index: 2; }
.library-loose-h { margin: 30px 0 10px; }
@media (max-width: 640px) {
  .folder-grid { grid-template-columns: 1fr; gap: 12px; }
  .folder-card .folder-cover { aspect-ratio: 16 / 10; }
}
.folder-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 640px) {
  .compact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compact-cards .quick-comment, .compact-cards [data-open-comments] { display: none; }
  .compact-cards .asset-meta { padding: 8px; }
}

/* Settings */
.settings-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.settings-nav a { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--ink) !important; text-decoration: none !important; }
.settings-nav a:hover { border-color: var(--accent); }
.settings-links { display: grid; gap: 8px; }
.settings-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink) !important; text-decoration: none !important; }
.settings-links a:hover { border-color: var(--accent); }
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.integration { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px dashed var(--rule); border-radius: 6px; }
.integration .pill { align-self: flex-start; margin-top: 4px; }
.switch-line { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 0 10px; }
.topbar-gear { padding: 6px 9px !important; display: inline-flex; }

/* Portal library: one grid of squares, folders first, then single pieces (newest first) */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 10px; margin-top: 18px; }
.lib-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--cd-black); }
.lib-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.lib-tile:hover img, .lib-tile-link:hover img { transform: scale(1.04); }
.lib-tile-link { position: absolute; inset: 0; display: block; }
.lib-tile .asset-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #5f5f5c; font-size: 28px; }
.lib-folder { color: var(--cd-white) !important; text-decoration: none !important; outline-offset: 3px; }
.lib-folder-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, rgba(8,8,6,0) 0%, rgba(8,8,6,.88) 72%); }
.lib-folder-kind { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cd-green); font-weight: 700; }
.lib-folder-meta strong { font-family: var(--display); font-size: 17px; text-transform: uppercase; line-height: 1.05; }
.lib-folder-meta .small { color: #d9d9d4; }
.lib-tile .folder-badge { z-index: 2; }
.lib-tile-video { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(8,8,6,.6);
  color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.lib-tile-status { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(8,8,6,.65); color: #fff; letter-spacing: .03em; }
.lib-piece[data-status="review"] .lib-tile-status { background: var(--accent); color: var(--accent-ink); }
.lib-piece[data-status="approved"] .lib-tile-status { background: rgba(252,251,250,.92); color: var(--cd-black); }
.lib-piece[data-status="changes"] .lib-tile-status { background: var(--bad); color: #fff; }

/* Co-brand lockup: Creators Dept wordmark | the agency's logo (or name) */
.cobrand { display: inline-flex; align-items: center; padding-left: 14px; margin-left: 2px; border-left: 1px solid #3a3a36; height: 30px; }
.cobrand img { height: 30px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px 7px; display: block; }
.cobrand-name { font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--cd-white); white-space: nowrap; }
.home-agency-name { color: var(--cd-white); }
@media (max-width: 560px) {
  .cobrand { padding-left: 10px; height: 26px; }
  .cobrand img { height: 26px; max-width: 96px; padding: 2px 5px; }
  .cobrand-name { font-size: 11px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .topbar > .row:last-child { flex-wrap: nowrap; }
  .topbar > .row:last-child .btn { padding: 6px 9px; }
}
.home-first { color: var(--cd-green); }

.partner-access { border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; margin: 12px 0 0; }
.radio-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 400; }
.partner-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 4px 12px; margin: 6px 0 0 22px; max-height: 220px; overflow: auto; }
.partner-checks label { margin: 0; font-weight: 400; display: flex; gap: 6px; align-items: center; }
.partner-access:has(input[value=all]:checked) .partner-checks { opacity: .45; pointer-events: none; }

/* The Creators Dept community teaser (business side only) */
.community-footer { margin-top: 48px; background: var(--cd-black); color: var(--cd-white); border-top: 3px solid var(--cd-green); }
.community-inner { max-width: 1080px; margin: 0 auto; padding: 32px 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.community-inner > div:first-child { flex: 1 1 420px; min-width: 0; }
.community-eyebrow { margin: 0 0 6px; font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cd-green); }
.community-h { margin: 0 0 6px; font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.community-text { margin: 0; color: #c9c9c4; font-size: 14px; line-height: 1.55; max-width: 62ch; }
.community-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: #a3a3a0; }
.community-in { font-weight: 700; color: var(--cd-green); }

/* Every text-like box matches: search, links, numbers, dates and times */
input[type=search], input[type=url], input[type=number], input[type=datetime-local], input[type=time] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; }
input[type=search] { -webkit-appearance: none; appearance: none; padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; }
input[type=date], input[type=tel] { border-radius: 8px; padding: 10px 12px; }
input[type=search]:focus, input[type=url]:focus, input[type=number]:focus, input[type=date]:focus, input[type=tel]:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

/* ---------- creatorsdept.app: the sales page ---------- */
.site-wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px clamp(18px, 4vw, 40px); background: rgba(8,8,6,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #1f1f1c; }
.site-logo img { height: 28px; display: block; }
.site-nav nav { display: flex; align-items: center; gap: 18px; }
.site-nav nav a:not(.btn) { color: #c9c9c4 !important; font-size: 14px; text-decoration: none !important; }
.site-nav nav a:not(.btn):hover { color: var(--cd-white) !important; }
.site-hero { background: var(--cd-black); color: var(--cd-white); padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); border-bottom: 3px solid var(--cd-green); }
.site-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.site-eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cd-green); margin: 0 0 16px; }
.site-hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: .96; margin: 0 0 22px; color: var(--cd-white); }
.site-lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #c9c9c4; max-width: 56ch; margin: 0; }
.site-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-ctas .btn { padding: 13px 22px; font-size: 15px; }
.site-shot { background: #131311; border: 1px solid #2a2925; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: rotate(1.2deg); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #2a2925; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3934; }
.shot-hero { padding: 26px 22px; border-bottom: 2px solid var(--cd-green); }
.shot-hero small { display: block; font-family: var(--display); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cd-green); margin-bottom: 8px; }
.shot-hero strong { font-family: var(--display); font-size: clamp(18px, 2.2vw, 26px); text-transform: uppercase; line-height: 1.05; color: var(--cd-white); }
.shot-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.shot-tiles div { background: #0d0d0b; border: 1px solid #24231f; border-radius: 6px; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.shot-tiles i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--cd-green); }
.shot-tiles b { font-family: var(--display); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--cd-white); }
.site-section { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg); }
.site-h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.02; margin: 0 0 28px; max-width: 18ch; }
.site-three .site-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.site-three h2 { font-size: 24px; margin: 10px 0 10px; }
.site-three p { color: var(--muted); line-height: 1.6; margin: 0; }
.site-num { font-family: var(--display); color: var(--link); font-size: 14px; letter-spacing: .1em; }
.site-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.site-feature { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px; padding: 20px; }
.site-feature h3 { font-size: 17px; text-transform: uppercase; margin: 0 0 8px; letter-spacing: .02em; }
.site-feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.site-story { background: var(--cd-black); color: var(--cd-white); }
.site-story .site-h2 { color: var(--cd-white); }
.site-join-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.site-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.site-card .uf-pills { margin-top: 4px; }
.site-submit { margin-top: 18px; padding: 13px 24px; font-size: 15px; }
.site-thanks h3 { font-size: 24px; margin: 0 0 8px; }
.site-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-foot { background: var(--cd-black); color: #a3a3a0; padding: 36px 0; border-top: 3px solid var(--cd-green); }
.site-foot .site-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.site-foot img { height: 24px; }
.site-foot p { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-foot a { color: #c9c9c4 !important; font-size: 13px; }
@media (max-width: 860px) {
  .site-hero-grid, .site-join-grid { grid-template-columns: 1fr; }
  .site-three .site-wrap { grid-template-columns: 1fr; }
  .site-shot { transform: none; }
  .site-nav nav a:not(.btn):not(.site-signin) { display: none; }
  .site-foot nav { margin-left: 0; }
}
/* the privacy policy and terms */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 18px; text-transform: uppercase; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink); }
.legal .muted { color: var(--muted); }
.site-hero h1 { font-size: clamp(34px, 4.6vw, 68px); overflow-wrap: break-word; }
@media (max-width: 860px) { .site-hero h1 { font-size: clamp(34px, 10vw, 56px); } }

/* Booking links */
.book-top { display: flex; justify-content: center; padding: 16px; background: var(--cd-black); }
.book-top img:not(.agency-mark) { height: 26px; width: auto; }
.book-wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.book-wrap > .book-top { margin: 0 -16px; }
.book-person { display: flex; align-items: center; gap: 14px; margin: 24px 0 14px; }
.book-person img.avatar, .book-person .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.book-person h1 { margin: 0; font-size: 24px; }
.book-person p { margin: 2px 0 0; }
.book-intro { margin: 0 0 16px; }
.book-types { display: grid; gap: 12px; }
a.card.book-type { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card.book-type:hover { border-color: var(--accent); transform: translateY(-2px); }
.book-type strong { display: block; font-size: 17px; }
.book-type p { margin: 8px 0 0; }
.book-go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--link, var(--accent)); }
.book-card { margin-top: 12px; }
.book-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.book-day { flex: 0 0 auto; min-width: 58px; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border: 1px solid var(--rule); border-radius: 10px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.book-day small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.book-day strong { font-size: 20px; line-height: 1.2; }
.book-day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.book-day.on small { color: var(--accent-ink); }
.book-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 6px; }
.book-time input { position: absolute; opacity: 0; pointer-events: none; }
.book-time span { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--rule); border-radius: 10px; font-weight: 600; cursor: pointer; }
.book-time span:hover { border-color: var(--accent); }
.book-time input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.book-time input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-details { display: none; margin-top: 10px; }
.book-form:has(input[name=start]:checked) .book-details { display: block; }
.book-foot { text-align: center; margin-top: 28px; }
.today-card { margin-bottom: 18px; }
.today-row { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.today-row:first-of-type { border-top: 0; }
.today-time { flex: 0 0 76px; font-weight: 700; font-variant-numeric: tabular-nums; }
.today-row.past { opacity: .5; }
.today-meet { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.book-set-hours { display: grid; gap: 6px; }
.book-set-hours .hrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.book-set-hours .hrow > label:first-child { width: 120px; margin: 0; display: flex; gap: 8px; align-items: center; }
.book-set-hours input[type=time] { width: auto; }

/* Beta sign-up and list */
.beta-join { padding-top: clamp(28px, 6vw, 64px); }
.beta-join h1.site-h2 { margin-top: 0; }
.beta-points { margin: 18px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.beta-slug { display: flex; align-items: stretch; }
.beta-slug input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.beta-slug span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--rule); border-left: 0; border-radius: 0 8px 8px 0; color: var(--muted); white-space: nowrap; font-size: 14px; }
.beta-taken { color: #c0392b; }
.beta-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.beta-row:first-of-type { border-top: 0; }
.beta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
@media (max-width: 640px) { .beta-row { flex-direction: column; } .beta-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

/* Portal: reach the agency */
.portal-reach { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.portal-reach .btn { display: inline-flex; align-items: center; gap: 8px; }
.poc { margin: 4px 0 12px; }
.poc select { width: 100%; }
.trial-note { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.beta-confirm { text-align: right; }
.beta-confirm summary { list-style: none; display: inline-block; }
.beta-confirm summary::-webkit-details-marker { display: none; }
.beta-confirm[open] { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px; max-width: 280px; }
.beta-confirm p { margin: 8px 0; text-align: left; }
@media (max-width: 640px) { .beta-confirm { text-align: left; } }
