/* Club look for moat widgets. Copied from the wertual club app (lab.twc.sh/wertual/html/app/assets):
   themes/default.css + css/base.css + css/components.css + css/widgets.css + the meet-grid rules from css/pages/home.css.
   Re-copy when the club design changes. Widget-only rules live in widget.css. */

/* ===== themes/default.css ===== */
/* Theme: default (ewent.ai warm paper). A theme only sets tokens: colors, radii, fonts, motion curves.
   Swap this file to restyle the whole app. The club mould sets --accent-base at runtime. */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F3F2EF;
  --surface: #FFFFFF;
  --ink: #0F0F0E;
  --ink-fixed: #0F0F0E;
  --muted: #6B6B65;
  --faint: #A3A39B;
  --soft: #F3F2EF;
  --line: #E8E8E4;
  --shadow: rgb(15 15 14 / .05);
  --accent: var(--accent-base, #D4622B);
  --pop: var(--accent);
  --on-pop: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 8%, transparent);
  --blue: #2D5F9A;
  --green: #3A7D44;
  --stage: #0F0F0E;
  --on-stage: #F3F2EF;
  --r-card: 16px;
  --r-tile: 12px;
  --r-input: 10px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-d: "Playfair Display", Georgia, serif;
  --font-b: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F0E; --bg-alt: #161614; --surface: #181816; --ink: #F3F2EF; --muted: #A3A39B; --faint: #7C7C75;
    --soft: #20201D; --line: #2C2C28; --shadow: rgb(0 0 0 / .3); --accent: color-mix(in srgb, var(--accent-base, #D4622B) 62%, #FFFFFF); --stage: #070707; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0F0E; --bg-alt: #161614; --surface: #181816; --ink: #F3F2EF; --muted: #A3A39B; --faint: #7C7C75;
  --soft: #20201D; --line: #2C2C28; --shadow: rgb(0 0 0 / .3); --accent: color-mix(in srgb, var(--accent-base, #D4622B) 62%, #FFFFFF); --stage: #070707; color-scheme: dark;
}


/* ---------- Per-product color: same ewent type and shapes, each widget keeps its own accent ---------- */
[data-src="cafe"]  { --accent: #5B7A0A; --accent-soft: rgb(212 255 58 / .20); --w-tint: #E9F7B8; }
[data-src="moat"]  { --accent: #2D5F9A; --accent-soft: rgb(45 95 154 / .08);  --w-tint: #DCE7F3; }
[data-src="ewent"] { --accent: #D4622B; --accent-soft: rgb(212 98 43 / .08);  --w-tint: #F6DCCB; }
[data-src="dium"]  { --accent: #0E7490; --accent-soft: rgb(14 116 144 / .08); --w-tint: #D5EEF1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-src="cafe"] { --accent: #C6EE4A; } :root:not([data-theme="light"]) [data-src="moat"] { --accent: #86B2E6; } :root:not([data-theme="light"]) [data-src="ewent"] { --accent: #EE8A55; } :root:not([data-theme="light"]) [data-src="dium"] { --accent: #5EC4DB; } }
:root[data-theme="dark"] [data-src="cafe"] { --accent: #C6EE4A; } :root[data-theme="dark"] [data-src="moat"] { --accent: #86B2E6; } :root[data-theme="dark"] [data-src="ewent"] { --accent: #EE8A55; } :root[data-theme="dark"] [data-src="dium"] { --accent: #5EC4DB; }

/* ===== css/base.css ===== */
/* Base: reset, type, utilities, motion. No colors here, only tokens from the theme. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--font-b); font-weight: 300; font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-d); margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--accent); padding-bottom: .06em; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-m); font-feature-settings: "tnum"; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---------- Layout helpers ---------- */
.page { padding-top: 36px; padding-bottom: 72px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.between { justify-content: space-between; }
.stack-v { display: grid; gap: 12px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.g-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .g2, .g-main { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .pulse-live { animation: live 1.8s ease-in-out infinite; }
  @keyframes live { 50% { opacity: .35; } }
  .pop-in { animation: popin .45s var(--spring); }
  @keyframes popin { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #E5484D; display: inline-block; }


/* ===== css/components.css ===== */
/* Components: buttons, cards, chips, avatars, forms, sheet, toast, skeleton. */
/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn-pop, .btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-pop:hover, .btn-ink:hover { border-color: var(--ink); opacity: .9; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--soft); border-color: transparent; }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: .87rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn i { font-size: 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Cards, chips, avatars ---------- */
.card, .card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card { box-shadow: 0 1px 2px var(--shadow); }
.tile { background: var(--soft); border-radius: var(--r-tile); }
.card-ink { background: var(--stage); color: var(--on-stage); border-color: var(--stage); }
.card-ink .muted { color: #A3A39B; }
.card-pop { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }
.card-pop .muted { color: var(--muted); }
.pad { padding: 20px; }
.pad-lg { padding: 28px; }
@media (max-width: 767px) { .pad-lg { padding: 20px; } }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; background: transparent; color: var(--muted); white-space: nowrap; }
.chip-soft { background: var(--soft); border-color: transparent; }
.chip-pop { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 500; }
.chip-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip i { font-size: .95rem; }
button.chip { cursor: pointer; min-height: 38px; padding: 0 16px; font-size: .86rem; color: var(--ink); background: var(--surface); }
button.chip:hover { border-color: var(--faint); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.label { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.label-faint { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.avatar { --s: 56px; width: var(--s); height: var(--s); border-radius: 999px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--fill, #BBF7D0); overflow: hidden; flex: none; position: relative; display: grid; place-items: center; font-weight: 600; color: #0F0F0E; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--s) * .36); }
.avatar img + .ini { display: none; }
.stack { display: flex; }
.stack .avatar { margin-left: -10px; }
.stack .avatar:first-child { margin-left: 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: .86rem; }
.field .help { font-size: .8rem; color: var(--muted); }
.field .err, .err { font-size: .82rem; color: #B42318; font-weight: 500; }
:root[data-theme="dark"] .err { color: #FF8A80; }
.input { min-height: 44px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; width: 100%; transition: border-color .2s var(--ease); }
.input:focus { border-color: var(--faint); }
.input::placeholder { color: var(--muted); }
textarea.input { padding: 12px 14px; min-height: 92px; resize: vertical; }

/* ---------- Mould sheet, toast, skeleton ---------- */
.sheet-back { position: fixed; inset: 0; background: rgb(15 15 14 / .35); z-index: 40; display: none; }
.sheet-back.open { display: block; }
.sheet { position: fixed; right: 16px; top: 76px; z-index: 41; width: min(400px, calc(100vw - 32px)); display: none; padding: 20px; box-shadow: 0 20px 60px rgb(15 15 14 / .15); }
.sheet.open { display: block; }
@media (prefers-reduced-motion: no-preference) { .sheet.open { animation: popin .35s var(--ease); transform-origin: top right; } }
.mould-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--r-input); border: 1px solid transparent; background: transparent; cursor: pointer; }
.mould-opt:hover { background: var(--soft); }
.mould-opt[aria-checked="true"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.mould-opt .sw { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; }
.mould-opt b { display: block; font-weight: 500; }
.mould-opt small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 50; background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: .9rem; pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 900px) { .toast { bottom: 100px; } }
.skel { background: linear-gradient(90deg, var(--soft) 0%, var(--bg) 50%, var(--soft) 100%); background-size: 200% 100%; border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: shimmer 1.4s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }

/* ===== css/widgets.css ===== */
/* Widgets: frame, meeting.cafe, moat.page, ewent.ai, dium.io, day zero, legacy screen pieces. */
/* ---------- Legacy screen pieces (floor, table, receipt) ---------- */
.m-card { display: grid; gap: 14px; padding: 20px; }
.pick { position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 12px 16px; text-align: center; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .2s var(--ease), background .2s var(--ease); }
.pick:hover { border-color: var(--faint); }
.pick[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.pick .heart { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.pick[aria-pressed="true"] .heart { background: var(--accent); color: #fff; border-color: var(--accent); }
.pick b { font-family: var(--font-d); font-weight: 400; font-size: 1.05rem; line-height: 1.2; }
.pick small { font-size: .8rem; }
.stage { background: var(--stage); color: var(--on-stage); border-radius: var(--r-card); padding: 14px; }
.vtile { position: relative; border-radius: 12px; overflow: hidden; background: #1C1C1A; aspect-ratio: 4 / 3; }
.vtile img { width: 100%; height: 100%; object-fit: cover; }
.vtile .name { position: absolute; left: 10px; bottom: 10px; background: rgb(15 15 14 / .7); color: #F3F2EF; padding: 4px 12px; border-radius: 999px; font-size: .84rem; }
.vtile.me-tile { outline: 2px solid var(--accent); outline-offset: -2px; }
.receipt { font-family: var(--font-m); font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 26px; }
.receipt hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.receipt .ln { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; }
.track > * { scroll-snap-align: start; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.date-block { width: 50px; height: 54px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; align-content: center; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); flex: none; line-height: 1.1; }
.date-block b { font-family: var(--font-b); font-weight: 400; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Widget frame ---------- */
.w { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.w-main { background: transparent; border: 0; }
.w-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w-side .w-head { padding: 22px 22px 0; }
.w-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.w-side .w-title { font-size: 1.2rem; }
.w-src { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.w-dot { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: .72rem; flex: none; color: #0F0F0E; }
.w-body { padding: 18px 0 0; }
.w-side .w-body { padding: 14px 22px 20px; display: grid; gap: 12px; }
.w-foot { border-top: 1px solid var(--line); padding: 12px 22px; }
.w-more { font-size: .86rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.w-more:hover { color: var(--accent); }
.w-lede { max-width: 60ch; margin-bottom: 18px; }
.side-sub { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-top: 4px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.3; }
.side-list li b { display: block; font-weight: 500; }
.side-list li .muted { font-size: .8rem; }
.side-live { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-tile); background: var(--accent-soft); text-decoration: none; }

/* meeting.cafe */
.week { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.wk { position: relative; display: grid; justify-items: center; padding: 10px 0; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); cursor: pointer; line-height: 1.15; min-height: 58px; }
.wk b { font-weight: 400; font-size: 1.2rem; letter-spacing: -0.02em; }
.wk span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.wk[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wk[aria-selected="true"] span { color: var(--bg); opacity: .7; }
.wk.today span { color: var(--accent); }
.wk[disabled] { opacity: .4; cursor: default; }
.wk-n { position: absolute; top: -7px; right: -5px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: .68rem; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 640px) { .week { grid-template-columns: repeat(4, 1fr); } }
.open-list { display: grid; gap: 14px; }
.open-card { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s var(--ease); }
.open-card:hover { border-color: color-mix(in srgb, var(--faint) 60%, transparent); }
.open-card.is-live { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface); }
.open-topic { font-family: var(--font-d); font-size: 1.22rem; line-height: 1.3; }
.slots-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s var(--ease); }
.slot-chip:hover:not([disabled]) { border-color: var(--ink); }
.slot-chip.mine { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 500; }
.slot-chip[disabled] { text-decoration: line-through; opacity: .45; cursor: not-allowed; }
.date-mini { display: grid; justify-items: center; line-height: 1.05; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.date-mini b { font-size: 1.15rem; color: var(--ink); font-weight: 400; letter-spacing: -0.02em; }
.composer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 767px) { .composer { grid-template-columns: 1fr 1fr; } }

/* moat.page */
.dir-filters { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 18px; margin-bottom: 18px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dir-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s var(--ease), transform .3s var(--ease); }
.dir-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.dir-card .nm { font-family: var(--font-d); font-size: 1.1rem; display: block; line-height: 1.2; }
.dir-open { font-size: .84rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent); }
.empty { display: grid; justify-items: center; gap: 6px; padding: 32px; text-align: center; }
.empty i { font-size: 2rem; color: var(--faint); }
@media (max-width: 767px) { .dir-filters { grid-template-columns: 1fr; } }

/* ewent.ai */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px var(--shadow); }
.ev-img { position: relative; aspect-ratio: 16 / 9; background: #1C2233; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-date { position: absolute; left: 12px; top: 12px; background: #FFFFFF; border-radius: 10px; padding: 6px 10px; display: grid; justify-items: center; line-height: 1.05; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.ev-date b { font-size: 1.2rem; color: #0F0F0E; font-weight: 400; letter-spacing: -0.02em; }
.ev-body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.ev-body h3 { font-size: 1.22rem; line-height: 1.25; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--faint); }
.ev-meta span { display: inline-flex; gap: 5px; align-items: center; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.match { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 500; }
.ev-side img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-tile); }
.ev-list { display: grid; gap: 10px; margin-top: 14px; }
.ev-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); }

/* dium.io */
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; min-height: 38px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: .88rem; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px var(--shadow); }
.threads { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.thread { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 15px 20px; text-decoration: none; align-items: center; }
.thread + .thread { border-top: 1px solid var(--line); }
.thread:hover { background: var(--bg-alt); }
.thread b { display: block; line-height: 1.35; font-weight: 500; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.group-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.group-card .btn { justify-self: start; }
.dir-list { display: grid; gap: 10px; }
.dir-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 767px) { .dir-row { grid-template-columns: 1fr; } .thread { grid-template-columns: 40px 1fr; } .thread > :last-child { display: none; } }
/* Actions on the dark live stage use the accent so they read on #0F0F0E */
.stage .btn-pop, .now-stage .btn-pop { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.bubble.me { color: #FFFFFF; }

.w-side[data-src] { border-top: 3px solid var(--w-tint); }
[data-src] .btn-pop { background: var(--ink); }
[data-src="cafe"] .wk-n { color: #0F0F0E; background: #D4FF3A; }

/* ---------- Day zero ---------- */
.zero.z-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; padding: 28px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: var(--r-card); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface); }
.z-copy { display: grid; gap: 12px; align-content: start; }
.z-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--w-tint, var(--soft)); color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; }
.z-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.z-ghost { position: relative; opacity: .72; transform: rotate(-1.2deg); pointer-events: none; }
.z-ghost > :not(.z-tag) { box-shadow: 0 18px 40px var(--shadow); }
.z-tag { position: absolute; top: -12px; right: 14px; z-index: 1; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.z-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.z-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px; border-radius: var(--r-tile); background: var(--bg-alt); font-size: .88rem; }
.z-steps b { display: block; font-weight: 500; }
.z-n { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: .8rem; }
.zero.z-side { display: grid; gap: 10px; justify-items: start; padding: 4px 0 2px; }
.zero.z-side b { font-weight: 500; }
.zero.z-side p { font-size: .86rem; }
.z-slot { border-style: dashed !important; box-shadow: none; background: var(--bg-alt) !important; color: var(--faint); font-size: .8rem; border: 1px dashed var(--faint) !important; }
.z-date { border-style: dashed; }
.z-date b { color: var(--faint); }
.z-prompt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .9rem; }
.z-prompt i { color: var(--accent); }
.z-prompt:hover { border-color: var(--accent); background: var(--accent-soft); }
.z-compose { display: grid; gap: 12px; }
@media (max-width: 860px) { .zero.z-main { grid-template-columns: minmax(0, 1fr); padding: 20px; } .z-steps { grid-template-columns: 1fr; } .z-ghost { transform: none; } }

/* ===== css/pages/home.css (meet grid) ===== */
.meet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.meet { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 22px 14px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-decoration: none; transition: border-color .2s var(--ease), transform .3s var(--ease); }
.meet:hover { border-color: var(--faint); transform: translateY(-2px); }
.meet .nm { font-family: var(--font-d); font-size: 1.08rem; line-height: 1.2; }
.meet .why { font-size: .76rem; color: var(--accent); }
@media (max-width: 900px) { .meet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
