/* Shared styles for the signed-in area, invoice page, admin and simple pages. Builds on /site.css tokens. */

.page-top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 40; }
.page-top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.page-top .brand img { width: 105px; height: 35px; display: block; }
.page-top .wrap > nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.page-top .wrap > nav a, .page-top .wrap > nav button { font: 500 15px var(--font); color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 99px;
  background: none; border: 0; cursor: pointer; }
.page-top .wrap > nav a:hover, .page-top .wrap > nav button:hover, .page-top .wrap > nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }

.narrow { width: min(560px, 100% - 2 * var(--gutter)); margin: clamp(40px, 8vw, 96px) auto; }
.mid { width: min(860px, 100% - 2 * var(--gutter)); margin: clamp(32px, 6vw, 72px) auto; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); }
.panel + .panel { margin-top: 18px; }
.soft-panel { background: var(--bg-soft); border-radius: 22px; padding: clamp(20px, 3.5vw, 32px); }
.page-title { font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* forms */
label.field { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
label.field > span { display: block; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff;
  font: 400 16px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 110px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 25, 25, .08); }
.code-input { font: 500 28px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .3em; text-align: center; height: 64px; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn-full { width: 100%; justify-content: center; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn-danger { background: #b3261e; }
.btn-danger:hover { background: #8c1d17; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* in tables and action rows the text links get a real tap target, so "Delete" is not hit by a slipped finger */
.tbl .linkbtn, .row .linkbtn { padding: 6px 4px; margin: -6px 0; min-height: 32px; }

.msg { border-radius: 14px; padding: 12px 16px; font-size: 15px; margin-top: 14px; }
.msg.err { background: #fdecea; color: #8c1d17; }
.msg.ok { background: #e9f5ee; color: #1d5e37; }
.msg.info { background: var(--bg-soft); color: var(--ink-2); }
.msg:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px;
  font-size: 15px; z-index: 100; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* chips and badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lv-low, .st-paid, .st-active, .st-success, .st-published, .st-accepted { color: #2f7d4f; background: #e9f5ee; }
.lv-medium, .st-open, .st-incomplete, .st-pending, .st-draft, .st-queued { color: #8a5d00; background: #fdf4dc; }
.lv-high, .st-past_due, .st-overdue { color: #b2410f; background: #fdeee6; }
.lv-critical, .st-suspended, .st-failed, .st-rejected, .st-disabled { color: #b3261e; background: #fdecea; }
.st-cancelled, .st-void, .st-skipped { color: var(--ink-3); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
/* on a phone the table scrolls sideways inside .table-wrap instead of squeezing every column to a few letters */
table.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-soft); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 26px; text-align: center; color: var(--ink-3); }

/* tabs */
/* keep the scrollbar's space even on short pages, so the tab bar does not re-wrap and jump between tabs */
html { scrollbar-gutter: stable; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { font: 500 15px var(--font); color: var(--ink-3); background: none; border: 0; padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--bg-soft); border-radius: 18px; padding: 18px 20px; }
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat .v { font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 13px; margin-top: 4px; color: var(--ink-3); }
.stat .d.up { color: #2f7d4f; }
.stat .d.down { color: #b3261e; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 12px; }
.bars span { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars span.zero { background: var(--line-2); }

/* brief reader */
.brief-head .meta { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.brief-summary { font-size: 18px; line-height: 1.6; margin-top: 16px; }
.story { border-top: 1px solid var(--line); padding: 22px 0; }
.story h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; margin: 8px 0; }
.story h2 { font-size: 1.4rem; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; margin: 0 0 10px; }
.story p { margin: 0 0 8px; color: var(--ink-2); }
.story .src { font-size: 14px; color: var(--ink-3); }
.story .src a { color: var(--ink-2); }
.ioc { font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; word-break: break-all; }
.list-days a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list-days a:hover { color: var(--ink-2); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; background: #fff; display: flex; flex-direction: column; }
.plan > p { margin: 10px 0 18px; }
.plan > .btn { margin-top: auto; }
.plan.best { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan .price { font-size: 2.2rem; font-weight: 500; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .per { color: var(--ink-3); font-size: 14px; }

/* invoice */
.amount { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
.copyable { display: inline-flex; align-items: center; gap: 8px; }
.copyable button { font: 500 13px var(--font); border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 4px 10px; cursor: pointer; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 40px; margin: 0 0 14px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; display: grid; place-items: center; }
.drop { display: block; border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 22px; text-align: center; color: var(--ink-3); cursor: pointer; }
.drop:hover { border-color: var(--ink); }
.drop.over { border-color: var(--ink); background: var(--bg-soft); }

.qr { width: 200px; height: 200px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; font: 15px/1.6 ui-monospace, Consolas, monospace; background: var(--bg-soft); border-radius: 14px; padding: 16px 20px; }

.simple-foot { border-top: 1px solid var(--line); padding: 26px 0 36px; margin-top: 64px; font-size: 14px; color: var(--ink-3); }
.simple-foot .wrap { display: flex; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; }
.simple-foot a { color: var(--ink-3); }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }

@media (max-width: 640px) {
  .page-top .wrap > nav a, .page-top .wrap > nav button { padding: 8px 10px; font-size: 14px; }
  /* the signed-in menus scroll sideways instead of wrapping under the logo */
  .page-top .wrap > nav { flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; }
  .page-top .wrap > nav::-webkit-scrollbar { display: none; }
  .page-top .wrap > nav a, .page-top .wrap > nav button { flex: none; white-space: nowrap; }
  .codes { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}

.sub-title { font-size: 1.6rem; font-weight: 500; letter-spacing: -.025em; margin: 48px 0 12px; }
.admin-wrap { margin-top: 32px; margin-bottom: 0; }
.flush { margin: 0; }
.event { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.event .when { font-size: 14px; color: var(--ink-3); }
.event .when b { display: block; font-size: 1.6rem; font-weight: 500; color: var(--ink); letter-spacing: -.03em; }
.event h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 500; }
@media (max-width: 560px) { .event { grid-template-columns: 1fr; gap: 6px; } }
dialog { border: 0; border-radius: 22px; padding: 26px; width: min(480px, 100% - 32px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(0, 0, 0, .35); }

/* home page additions */
.sample-card { background: #1c1c1c; border: 1px solid var(--dark-line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); max-width: 760px; }
.sample-card h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; letter-spacing: -.025em; margin: 10px 0 12px; color: #fff; }
.sample-card p, .sample-card li { color: var(--dark-2); }
.sample-meta { font-size: 13px; letter-spacing: .1em; color: var(--dark-2); }
.sample-meta b { color: var(--orange); font-weight: 600; }
.sample-note { font-size: 13px; margin-top: 16px; }
.pay-note { margin-top: 18px; }
.plans { max-width: 980px; }
.hero-note { margin-top: 18px; }
.how-cta { margin-top: clamp(48px, 6vw, 72px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0ee; }
.dark .btn-light { color: var(--ink); }
.col li a { color: var(--ink); text-underline-offset: 3px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-2); margin-top: 10px; }
.dark a { color: #fff; }

.hero-brand h1 { font-size: clamp(3.1rem, 10vw, 7rem); }
.stats + .stats { margin-top: 14px; }

/* ---------- public header: a menu button on phones ---------- */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { content: ""; display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), background .25s; }
.menu summary span { position: relative; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 230px; display: flex; flex-direction: column; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .3); }
.menu nav a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 16px; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--bg-soft); }
@media (max-width: 760px) {
  .menu { display: block; }
  .nav-cta { margin-left: auto; }
  .page-top .wrap > nav.site-links { display: none; }
  .page-top .menu { margin-left: auto; }
}
@media (max-width: 380px) { .nav-cta { display: none; } .nav .menu { margin-left: auto; } }

/* announcement strip (text set in the admin page) */
.announce { background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; text-align: center; padding: 10px var(--gutter); }
.announce a { color: #fff; text-underline-offset: 3px; }

/* ---------- cards: products on the home page, free things in the account ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: clamp(24px, 3.4vw, 40px);
  background: var(--bg-soft); border-radius: clamp(22px, 2.6vw, 30px); color: inherit; text-decoration: none; transition: transform .35s var(--ease), background .35s; }
a.card:hover { transform: translateY(-3px); background: #efefed; }
.card.feature { grid-column: 1 / -1; background: var(--dark); color: #fff; min-height: 340px; }
a.card.feature:hover { background: #000; }
.card .tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.card .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.card.feature .tag, .card.feature p { color: var(--dark-2); }
.card h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.06; letter-spacing: -.038em; font-weight: 500; max-width: 640px; }
.card p { color: var(--ink-2); max-width: 560px; }
.card .meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-3); }
.card.feature .meta-row { color: var(--dark-2); }
.card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
a.card:hover .go .arrow { transform: translateX(3px); }
.card .card-body { display: flex; flex-direction: column; gap: 14px; height: 100%; }
@media (min-width: 900px) {
  .card.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
}
.mini-brief { background: #1f1f1f; border: 1px solid var(--dark-line); border-radius: 20px; padding: 22px 22px 18px; transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transition: transform .5s var(--ease); }
a.card.feature:hover .mini-brief { transform: rotate(0) translateY(-4px); }
.mini-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-2); }
.mini-meta b { color: var(--orange); font-weight: 600; }
.mini-title { margin-top: 12px; font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.mini-brief ul { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--dark-line); }
.mini-brief li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--dark-line); font-size: 14px; color: var(--dark-2); }
.mini-brief li:last-child { border-bottom: 0; }
.mini-brief li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 899px) { .mini-brief { display: none; } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--bg-soft); border-radius: 18px; color: inherit; text-decoration: none; }
a.tile:hover { background: #efefed; }
.tile b { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.tile p { margin: 0; font-size: 14px; color: var(--ink-3); }
.tile .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; }
.flow-gap { margin: 22px 0 8px; }
.mid > .stack + .stack { margin-top: 32px; }
.hello { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.trial-box { background: var(--dark); color: #fff; border-radius: 22px; padding: clamp(22px, 4vw, 34px); }
.trial-box h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.trial-box p { color: var(--dark-2); margin-top: 8px; }
.trial-box .btn { background: #fff; color: var(--ink); margin-top: 18px; }
.trial-box .btn:hover { background: #f0f0ee; }
/* the free preview of a brief: withheld parts are placeholders behind a blur, with an unlock card on top */
.locked { filter: blur(5px); opacity: .7; user-select: none; pointer-events: none; }
.locked-area { position: relative; min-height: 340px; }
.unlock-card { position: absolute; z-index: 3; left: 50%; top: 40px; transform: translateX(-50%); width: min(460px, 100% - 16px); text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .4); }
.unlock-card .eyebrow { margin-bottom: 10px; }
.unlock-card h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.unlock-card p { margin-top: 8px; }
.unlock-card .btn { margin-top: 16px; }
.preview-brief .brief-head .msg { margin-top: 16px; }
.day-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
/* the account and admin menus get their own full-width row on phones, so nothing is cut off */
@media (max-width: 640px) {
  .page-top.account .wrap { flex-wrap: wrap; height: auto; row-gap: 4px; padding-block: 10px 6px; }
  .page-top.account .wrap > nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .page-top.account .wrap > nav a, .page-top.account .wrap > nav button { padding: 8px 8px; }
}
.switch { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.switch input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }

/* ---------- admin ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 26px; border: 1px solid var(--line); border-radius: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.checklist li:last-child { border-bottom: 0; }
.checklist .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--line-2); }
.checklist .urgent .dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow); }
.checklist .done { color: var(--ink-3); text-decoration: line-through; }
.checklist .done .dot { background: #2f7d4f; box-shadow: none; }
.checklist li > span { flex: 1; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.meter.warn i { background: #b2410f; }
textarea.input.code { min-height: 460px; font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.facts div { background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.facts span { display: block; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 961px) { .split-2 > :last-child { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
@media (max-width: 960px) { .split-2 { grid-template-columns: 1fr; } }
dialog.wide { width: min(720px, 100% - 32px); }

/* ---------- events: cards with pictures, and a picture viewer ---------- */
.events-page { margin-block: clamp(32px, 6vw, 72px); }
.events-lead { max-width: 720px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 28px; }
.ev { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; scroll-margin-top: 90px; }
.ev-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ev-target { box-shadow: 0 0 0 2px var(--ink); }
.ev-cover { display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.ev-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ev-cover:hover img { transform: scale(1.03); }
.ev-featured .ev-cover { aspect-ratio: auto; height: 100%; min-height: 340px; }
.ev-nocover { cursor: default; display: grid; place-content: center; text-align: center; gap: 4px; background: var(--dark); color: var(--dark-2); }
.ev-day { font-size: 3.4rem; line-height: 1; font-weight: 500; letter-spacing: -.04em; color: #fff; }
.ev-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.ev-when { font-size: 13px; color: var(--ink-3); }
.ev h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.ev-featured h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags span { font-size: 12.5px; padding: 4px 11px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); }
.ev-where { font-size: 14px; color: var(--ink-2); }
.ev-summary { color: var(--ink-2); }
.ev-more summary { cursor: pointer; font-weight: 500; font-size: 15px; }
.ev-more p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.ev-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ev-gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); cursor: zoom-in; }
.ev-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-cta { margin-top: 4px; }
@media (max-width: 760px) { .ev-featured { grid-template-columns: 1fr; } .ev-featured .ev-cover { min-height: 0; aspect-ratio: 16 / 10; } }
dialog.lightbox { width: min(1100px, 100% - 24px); padding: 0; background: #0d0d0d; color: #fff; border-radius: 18px; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
dialog.lightbox img { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #000; }
dialog.lightbox .cap { padding: 12px 18px 0; font-size: 14px; color: var(--dark-2); }
.lb-nav { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px 16px; }
.lb-btn { font: 500 15px var(--font); color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }

/* admin: event pictures */
.thumb { display: block; width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.empty-thumb { display: grid; place-items: center; font-size: 10px; line-height: 1.1; color: var(--ink-3); text-align: center; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pic { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.pic .pad { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
.pic .input { height: 40px; font-size: 14px; }
.admin-wrap h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; margin: 30px 0 12px; }
.admin-wrap fieldset { border: 0; margin: 0; min-width: 0; }
.admin-wrap fieldset .row > .field { flex: 1 1 160px; }

/* ---------- products: the catalog and each product's page ---------- */
.catalog-page { margin-block: clamp(32px, 6vw, 72px); }
.catalog-lead { max-width: 720px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 28px; }
.prod-card { display: flex; flex-direction: column; background: var(--bg-soft); border-radius: 24px; overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), background .35s; }
a.prod-card:hover { transform: translateY(-3px); background: #efefed; }
.prod-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--dark); }
.prod-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.prod-card .tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.prod-card .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prod-card h2 { font-size: 1.6rem; line-height: 1.12; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.prod-card p { color: var(--ink-2); margin: 0; }
.prod-card .meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-3); }
.prod-card .go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
a.prod-card:hover .go .arrow { transform: translateX(3px); }
.product-page .prod-loading { margin-block: 80px; }
.prod-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-block: clamp(32px, 6vw, 72px) 12px; }
.prod-hero.no-pic { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.prod-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.prod-hero .lede { margin: 10px 0 0; max-width: 640px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.prod-cta { margin-top: 26px; }
.prod-pic { margin: 0; }
.prod-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; background: var(--bg-soft); }
.prod-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.prod-about.single { grid-template-columns: minmax(0, 1fr); }
.prod-about .prose p { font-size: 1.1rem; line-height: 1.65; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 0 0 10px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 12px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.prod-recent .post-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.prod-pricing { margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: 90px; }
.prod-pricing .plans { margin-top: 22px; }
.prod-faq { margin-top: 28px; }
.prod-contact { margin-top: clamp(40px, 5vw, 64px); }
.prod-contact .btn { margin-top: 14px; }
@media (max-width: 860px) { .prod-hero, .prod-about { grid-template-columns: minmax(0, 1fr); } .prod-pic { order: -1; } }

/* ---------- account: products, posts, conversations, teams ---------- */
.prod-head { margin-top: 14px; align-items: end; }
.post-list > a { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.post-list > a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.post-list .muted { font-size: 14px; }
.post-body h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; margin: 28px 0 8px; }
.post-body p, .post-body li { color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; }
.post-body p { margin: 0 0 14px; }
.post-body ul { padding-left: 22px; margin: 0 0 14px; }
.unlock-card.static { position: static; transform: none; margin: 28px auto 0; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(640px, 92%); padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--bg-soft); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.bubble.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fff; }
.bubble .who { display: block; white-space: normal; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.bubble.mine .who { color: rgba(255, 255, 255, .66); }
.bubble .who .linkbtn { font-size: 12px; color: inherit; }
.bubble .subj { display: block; white-space: normal; margin-bottom: 2px; }
.bubble .file-link { display: block; white-space: normal; margin-top: 8px; font-weight: 500; color: inherit; text-underline-offset: 3px; }
.member-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.member-list + .row .input, .panel .row > .input { flex: 1 1 220px; width: auto; }
.price-inline { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.narrow-in { max-width: 620px; }

/* ---------- admin: products, customers ---------- */
.acc-list { display: flex; flex-direction: column; gap: 4px; }
.acc { font-size: 13px; }
.search-row > .input { flex: 1 1 200px; width: auto; }
.search-row > select.input { flex: 0 1 240px; }
td.snippet { max-width: 360px; color: var(--ink-2); }
.prod-admin-pic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--bg-soft); }
.admin-wrap .tbl .input { height: 40px; font-size: 14px; padding: 0 10px; min-width: 84px; }
.admin-wrap .tbl select.input { min-width: 100px; }
.danger-zone { margin-top: 36px; border-top: 1px solid var(--line); }
.all-products { margin-top: 22px; }
.admin-wrap .tbl td:first-child .input { min-width: 220px; }
.admin-wrap .tbl td:nth-child(5) .input { min-width: 200px; }
.admin-wrap .tbl td { vertical-align: middle; }
.prod-about .prose p + p, .prod-contact p + p { margin-top: 14px; }
.acc-line { margin-top: 8px; color: var(--ink-2); }
.admin-wrap h3.flush { margin: 0; }
/* a product without a picture: its name on a dark band, with the brand's orange dot */
.prod-card-mark { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 7; background: radial-gradient(120% 140% at 85% 0%, #3a3a3a 0%, var(--dark) 55%); font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dark-2); padding: 0 24px; text-align: center; }
.prod-card-mark span { display: inline-flex; align-items: center; gap: 10px; }
.prod-card-mark span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(249, 105, 33, .18); }
