/* ==========================================================
   Vetiva Colour Draw — styles
   Brand: Vetiva deep green + gold, Inter (body), Cinzel (display,
   echoing the serif VETIVA wordmark).
   ========================================================== */
:root {
  --bg: #12211F;
  --bg-deep: #0B1513;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --gold: #977948;
  --gold-hi: #C2A56E;
  --gold-lo: #6E5632;
  --text: #F5F5F5;
  --muted: rgba(245, 245, 245, 0.62);
  --danger: #E5484D;
  --ok: #3DB37A;
  --radius: 18px;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(151, 121, 72, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(151, 121, 72, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-hi); }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.gold { color: var(--gold-hi); }
.display { font-family: var(--display); letter-spacing: 0.04em; }

/* ---------- Header ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 21, 19, 0.55);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { height: 38px; width: auto; display: block; }
.brand .wordmark { font-family: var(--display); font-size: 22px; letter-spacing: 0.18em; }
.brand .divider { width: 1px; height: 26px; background: var(--line); }
.brand .product { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .brand .divider, .brand .product { display: none; }
  .brand img { height: 30px; }
  .top-actions { gap: 6px; }
  .pill { padding: 5px 9px; font-size: 10.5px; }
  .top-actions .btn.small { padding: 6px 9px; font-size: 12px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,179,122,.6); animation: pulse 2s infinite; }
.pill.closed .dot { background: var(--danger); animation: none; }
.pill.demo { color: #1b1b1b; background: var(--gold-hi); border-color: var(--gold-hi); font-weight: 600; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,179,122,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(61,179,122,0); } }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 60px; }
.hero-title { text-align: center; margin: 0 0 6px; }
.hero-title h1 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.4vw, 48px); letter-spacing: 0.05em; margin: 0; }
.hero-title p { color: var(--gold-hi); margin: 10px 0 0; letter-spacing: 0.04em; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi); }

.grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; margin-top: 34px; align-items: start; }
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.card h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; margin: 0 0 6px; font-size: 22px; }
.card h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); font-weight: 600; }

/* ---------- Forms & buttons ---------- */
label.field { display: block; margin: 16px 0 0; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=email], input[type=text], input[type=password], input[type=search], select {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.25); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(151,121,72,0.25); }
select option { background: var(--bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 600;
  transition: transform .08s, background .15s, border-color .15s; text-decoration: none;
}
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #14110b; border-color: var(--gold-hi); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: rgba(229,72,77,0.12); border-color: rgba(229,72,77,0.5); color: #ffb4b6; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.link-btn { background: none; border: none; color: var(--gold-hi); cursor: pointer; padding: 0; text-decoration: underline; }

.msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.msg.error { background: rgba(229,72,77,0.12); border: 1px solid rgba(229,72,77,0.4); color: #ffc9ca; }
.msg.info { background: rgba(151,121,72,0.12); border: 1px solid rgba(151,121,72,0.4); color: #ecdcbc; }
.msg.ok { background: rgba(61,179,122,0.12); border: 1px solid rgba(61,179,122,0.4); color: #bff0d6; }

/* ---------- The wheel ---------- */
.stage { display: grid; place-items: center; position: relative; margin: 6px auto 18px; width: min(380px, 100%); }
.wheel-box { position: relative; width: 100%; aspect-ratio: 1; }
.wheel-box svg.wheel { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.wheel-box .pointer {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%); transform-origin: 50% 20%;
  width: 34px; height: 44px; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
}
.wheel-box .pointer.tick { animation: tick .12s ease-out; }
@keyframes tick { 0% { transform: translateX(-50%) rotate(0); } 40% { transform: translateX(-50%) rotate(-18deg); } 100% { transform: translateX(-50%) rotate(0); } }
.wheel-box .glow { position: absolute; inset: 8%; border-radius: 50%; box-shadow: 0 0 80px 10px rgba(151,121,72,0.25); pointer-events: none; transition: box-shadow .6s; }
.wheel-box.spinning .glow { box-shadow: 0 0 120px 24px rgba(194,165,110,0.45); }

.select-btn {
  font-family: var(--display); font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 18px 34px; border-radius: 999px; width: 100%;
  background: linear-gradient(180deg, #D9BC83, var(--gold) 60%, var(--gold-lo));
  color: #14110b; border: 1px solid #E8D3A6; cursor: pointer; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(151,121,72,0.7), inset 0 1px 0 rgba(255,255,255,.5);
  position: relative; overflow: hidden; transition: transform .1s, filter .15s;
}
.select-btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.select-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.select-btn:disabled { filter: grayscale(.4) brightness(.8); cursor: wait; }
.select-btn:disabled::after { display: none; }

.who { text-align: center; }
.who .hello { font-size: 14px; color: var(--muted); }
.who .name { font-family: var(--display); font-size: 26px; margin: 4px 0 2px; }
.who .dept { font-size: 13px; color: var(--gold-hi); }

.result-chip {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0,0,0,.22); margin-top: 6px;
}
.result-chip .sw { width: 46px; height: 46px; border-radius: 50%; flex: none; border: 2px solid var(--gold); }
.result-chip .t { font-family: var(--display); font-size: 20px; }
.result-chip .s { font-size: 13px; color: var(--muted); }

/* ---------- Scoreboard ---------- */
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.progress-row b { color: var(--text); font-size: 15px; }

.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.team-tile {
  border-radius: 14px; padding: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  position: relative; overflow: hidden; transition: transform .3s;
}
.team-tile.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.05); } 100% { transform: scale(1); } }
.team-tile .head { display: flex; align-items: center; gap: 10px; }
.team-tile .sw { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(194,165,110,.8); flex: none; }
.team-tile .nm { font-weight: 700; letter-spacing: .04em; }
.team-tile .nick { font-size: 12px; color: var(--muted); }
.team-tile .count { font-family: var(--display); font-size: 34px; margin: 8px 0 6px; line-height: 1; }
.team-tile .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.team-tile .bar i { display: block; height: 100%; border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); box-shadow: inset 0 0 0 1px rgba(194,165,110,.5); }

.feed { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 10px; font-size: 14px; animation: slidein .5s ease; }
.feed li .sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(194,165,110,.8); flex: none; }
.feed li time { margin-left: auto; font-size: 12px; color: var(--muted); }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.how { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 520px) { .how { grid-template-columns: 1fr; } .teams { grid-template-columns: 1fr 1fr; } }
.how div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.how b { display: block; margin-bottom: 6px; color: var(--gold-hi); font-weight: 600; }
.how p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Reveal overlay ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.reveal.show { opacity: 1; pointer-events: auto; }
.reveal .flood { position: absolute; inset: 0; clip-path: circle(0% at 50% 50%); transition: clip-path 1s cubic-bezier(.7,0,.2,1); }
.reveal.show .flood { clip-path: circle(150% at 50% 50%); }
.reveal .content { position: relative; z-index: 2; max-width: 680px; transform: scale(.85); opacity: 0; transition: all .6s .55s cubic-bezier(.2,1.4,.3,1); }
.reveal.show .content { transform: none; opacity: 1; }
.reveal .welcome { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.reveal .big { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 12vw, 132px); line-height: 1; margin: 14px 0 8px; letter-spacing: .04em; }
.reveal .nick { font-family: var(--display); font-size: clamp(20px, 3vw, 28px); opacity: .9; }
.reveal .motto { margin: 14px 0 0; font-size: 16px; opacity: .8; font-style: italic; }
.reveal .member { display: inline-block; margin-top: 26px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 600; letter-spacing: .06em; }
.reveal .logo { height: 42px; margin-bottom: 26px; opacity: .95; }
.reveal .close { margin-top: 30px; }
.reveal .close .btn { border-color: currentColor; color: inherit; background: transparent; }
canvas#confetti { position: fixed; inset: 0; z-index: 101; pointer-events: none; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { background: none; border: none; color: var(--muted); padding: 10px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.tabs button.active { background: var(--gold); color: #14110b; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
@media (max-width: 820px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.kpi .l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--display); font-size: 32px; margin-top: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }
.toolbar .spacer { flex: 1; }

.team-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .team-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-cols { grid-template-columns: 1fr; } }
.team-col { border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); overflow: hidden; }
.team-col header { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.2); }
.team-col header .n { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.team-col header .c { font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.2); }
.team-col ol { list-style: none; margin: 0; padding: 6px 0; max-height: 520px; overflow: auto; }
.team-col li { padding: 9px 16px; display: flex; gap: 10px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.team-col li .num { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 26px; }
.team-col li .d { display: block; font-size: 12px; color: var(--muted); }
.team-col .empty { padding: 18px 16px; color: var(--muted); font-size: 13px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #16292a; }
table.data td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow: auto; max-height: 620px; border: 1px solid var(--line); border-radius: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
.tag .sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(194,165,110,.8); }
.tag.pending { color: var(--muted); }
.tag.bad { color: #ffb4b6; border-color: rgba(229,72,77,.4); }

.dropzone {
  border: 2px dashed rgba(194,165,110,.45); border-radius: 16px; padding: 38px 20px; text-align: center;
  background: rgba(151,121,72,.06); cursor: pointer; transition: background .15s, border-color .15s;
}
.dropzone.over { background: rgba(151,121,72,.16); border-color: var(--gold-hi); }
.dropzone b { font-size: 17px; }
.mapping { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 820px) { .mapping { grid-template-columns: 1fr 1fr; } }

.settings-list { display: grid; gap: 4px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.setting p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); max-width: 640px; line-height: 1.5; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.15); cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(22px); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.seg button { background: none; border: none; color: var(--muted); padding: 9px 14px; cursor: pointer; font-weight: 600; }
.seg button.active { background: var(--gold); color: #14110b; }
.danger-zone { margin-top: 26px; border: 1px solid rgba(229,72,77,.35); border-radius: 14px; padding: 18px 20px; background: rgba(229,72,77,.05); }

.login { max-width: 420px; margin: 60px auto; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: #0B1513; border: 1px solid var(--gold); color: var(--text); padding: 12px 20px; border-radius: 12px;
  z-index: 200; transition: all .3s; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

footer.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 16px 40px; letter-spacing: .04em; }
footer.foot .tag-line { font-family: var(--display); color: var(--gold-hi); letter-spacing: .12em; }

@media print {
  body { background: #fff; color: #000; }
  .topbar, .tabs, .toolbar, .kpis, footer.foot, .no-print { display: none !important; }
  .team-col { border-color: #999; break-inside: avoid; }
  .team-col ol { max-height: none; }
  .team-col li .d, .team-col li .num { color: #444; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Draw layout: form beside wheel, above the fold ---------- */
.hero-title h1 { font-size: clamp(26px, 3.4vw, 40px); }
.hero-title p { margin-top: 6px; }
.wrap { padding-top: clamp(16px, 2.6vw, 28px); }
.draw-card {
  margin-top: 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 48px); align-items: center;
}
.draw-card .stage { margin: 0 auto; width: min(440px, 100%, calc(100vh - 290px)); min-width: 260px; }
.steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.steps .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #14110b; font-weight: 700; font-size: 13px;
}
.steps .muted { font-size: 13px; }
.who { text-align: left; }
.scoreboard { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.scoreboard .teams { grid-template-columns: repeat(4, 1fr); }
.scoreboard .feed { margin-top: 0; border-top: none; padding-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
@media (max-width: 900px) {
  .draw-card { grid-template-columns: 1fr; }
  .draw-card .stage { order: -1; width: min(300px, 78vw); min-width: 0; }
  .who { text-align: center; }
  .scoreboard { grid-template-columns: 1fr; }
  .scoreboard .feed { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 560px) { .scoreboard .teams { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .hero-title .eyebrow, .hero-title p { display: none; }
  .hero-title h1 { font-size: 24px; }
  .draw-card { margin-top: 14px; gap: 16px; padding: 18px; }
  .draw-card .stage { width: min(230px, 62vw); }
  .steps { gap: 8px; }
  .steps .muted { display: none; }
  .steps .n { width: 24px; height: 24px; font-size: 12px; }
  label.field { margin-top: 12px; }
  input[type=email], input[type=text] { padding: 11px 12px; }
}

/* Hide editable text until the admin's wording has loaded (max 2s) */
.text-loading [data-text] { visibility: hidden; }

/* ---------- Admin: page text editor ---------- */
.text-group { margin-top: 26px; }
.text-group h3 { margin-bottom: 4px; }
.text-row { display: grid; grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr); gap: 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.text-row .lbl { font-size: 14px; padding-top: 11px; }
.text-row .lbl small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.text-row textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); color: var(--text); font: inherit; resize: vertical; min-height: 44px; outline: none; }
.text-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(151,121,72,0.25); }
.text-row.changed textarea { border-color: var(--gold-hi); }
.text-row .meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.text-row .meta .custom { color: var(--gold-hi); }
.text-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px)); padding: 14px clamp(20px, 3vw, 32px); background: #15282a; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.text-actions .spacer { flex: 1; }
@media (max-width: 700px) { .text-row { grid-template-columns: 1fr; gap: 4px; } .text-row .lbl { padding-top: 0; } }
