[hidden] { display: none !important; }
:root {
  /* Paleta "Ilha de edição": neutral near-black so covers and videos show their real colors.
     --accent is the ONE main action per screen; change it here to re-color the app (text on it: --accent-text).
     It stays away from green, the default caption color, and from the status colors below. */
  --bg: #0e0e10;
  --card: #18181b;
  --card-2: #222226;
  --line: #2e2e33;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff4d94;
  --accent-text: #2a0014;
  --ok: #34d399;        /* pronto, pra postar */
  --warn: #fcd34d;      /* confira antes de postar */
  --danger: #f87171;    /* erro */
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0px) 16px calc(84px + var(--safe-b));
}
main { max-width: 560px; margin: 0 auto; }
h1 { font-size: 26px; margin: 20px 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 19px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 12px 0;
}
.card.tap { cursor: pointer; }
.card.tap:active { background: var(--card-2); }
.big-choice { display: grid; gap: 12px; margin-top: 16px; }
.big-choice .card { display: flex; gap: 14px; align-items: center; padding: 20px 16px; }
.big-choice .emoji { font-size: 34px; }

button, .btn {
  font: inherit; font-weight: 650; border: 0; border-radius: 12px; padding: 14px 18px;
  background: var(--accent); color: var(--accent-text); width: 100%; cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none;
}
button.secondary, .btn.secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
button.ghost { background: transparent; color: var(--muted); padding: 10px; width: auto; }
button:disabled { opacity: .5; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

input, textarea, select {
  font: inherit; width: 100%; background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin: 6px 0 12px;
}
textarea { min-height: 84px; resize: vertical; }
label { font-size: 14px; color: var(--muted); }

.bar { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.bar > i { display: block; height: 100%; width: 0; background: var(--text); transition: width .3s; }
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--text);
  border-radius: 50%; animation: spin 1s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status { display: flex; gap: 12px; align-items: center; }

.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 120px; }
.bubble { padding: 11px 14px; border-radius: 16px; max-width: 86%; white-space: pre-wrap; }
.bubble.ai { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--card-2); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.composer {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + var(--safe-b));
  background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 8px; max-width: 592px; margin: 0 auto;
}
.composer textarea { min-height: 48px; max-height: 140px; margin: 0; }
.composer button { width: 56px; padding: 0; flex: none; font-size: 22px; }

.takes { list-style: none; padding: 0; margin: 8px 0; }
.takes li {
  display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin: 8px 0;
}
.takes li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.takes li button { width: 36px; height: 36px; padding: 0; background: var(--card); color: var(--text); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--line);
}
.badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); border-color: transparent; }
.badge.err { color: var(--danger); }

video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 9 / 16; max-height: 70vh; }
.cover { width: 38%; border-radius: 12px; }
.copybox { white-space: pre-wrap; background: var(--card-2); border-radius: 12px; padding: 12px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
ul.plain { padding-left: 18px; margin: 6px 0; }
.md h1, .md h2, .md h3 { margin: 14px 0 6px; }
.md p { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }

nav#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(14, 14, 16, .96);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); backdrop-filter: blur(10px);
}
nav#tabs button {
  background: none; color: var(--muted); border-radius: 0; padding: 8px 0 10px; font-size: 12px; font-weight: 600;
  flex-direction: column; gap: 2px;
}
nav#tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav#tabs button.on { color: var(--text); }
#toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%);
  background: var(--card-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 99px;
  opacity: 0; transition: opacity .25s; pointer-events: none; font-size: 14px; max-width: 90vw;
}
#toast.on { opacity: 1; }
/* shared: section labels, sub-screen header, bottom sheet */
.label { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 10px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.tap { cursor: pointer; }
.grow { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 6px; margin: 14px 0 12px; }
.topbar h2 { margin: 0; font-size: 18px; }
.topbar .back { width: 40px; height: 40px; padding: 0; background: none; color: var(--text); font-size: 28px; font-weight: 400; }
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; z-index: 20; }
.sheet { width: 100%; max-width: 592px; margin: 0 auto; max-height: 85dvh; overflow: auto; background: var(--card);
  border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { margin-top: 4px; }

/* Início */
.hello h1 { margin-bottom: 2px; }
#busy { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.proc { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.proc .ph { width: 40px; height: 56px; border-radius: 8px; background: var(--card-2); flex: none; }
.proc p { margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc.err { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.bar.thin { height: 5px; margin: 0; }
.next { padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--text); }
.next h2 { margin: 6px 0; font-size: 21px; line-height: 1.25; }
.next .row { margin-top: 14px; }
.covers { display: flex; gap: 10px; }
.covers .tile { width: calc((100% - 20px) / 3); }
.covers img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 12px; background: var(--card-2); display: block; }
.covers span { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#new { margin-top: 22px; }

/* Resultado: check → copy → post */
.result-top { display: flex; gap: 14px; align-items: flex-start; }
.result-top video { width: 118px; flex: none; aspect-ratio: 9 / 16; max-height: none; border-radius: 14px; }
.result-top h3 { font-size: 17px; line-height: 1.3; margin: 2px 0 6px; }
.checklist { margin-top: 18px; padding: 14px 16px 6px; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--bg)); }
.checklist .head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; color: var(--warn); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--warn) 25%, var(--bg)); color: var(--text); font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--warn); }
p.check { margin: 0; }
.warnline { color: var(--warn); }

/* Ajustar: the video stays in view while editing below it */
.adjvid { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; padding: 6px 0 10px; background: var(--bg); }
.adjvid video { height: 32vh; width: auto; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.phr { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.phr .tm { width: 46px; flex: none; padding: 4px 0; background: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.phr .txt { flex: 1; min-width: 0; padding: 4px 6px; border-radius: 8px; font-size: 15px; line-height: 1.4; outline: none; }
.phr .txt:focus { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.phr .cutbtn { width: auto; flex: none; padding: 4px 10px; font-size: 13px; background: var(--card-2); color: var(--text); }
.phr.cut .txt { text-decoration: line-through; color: var(--muted); }
.phr.cut .cutbtn { color: var(--ok); }
.phr mark, .muted mark { background: none; color: inherit; text-decoration: underline wavy var(--warn); text-underline-offset: 3px; }
.mline { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mline textarea { min-height: 0; }
.mline .row { margin-top: 6px; align-items: center; flex-wrap: wrap; }
.mline select { width: auto; flex: none; }
.mline .sec { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 0; }
.mline .sec input { width: 64px; padding: 8px; }
.mline .ghost { padding: 6px 8px; }
#addline { margin-top: 10px; }
.tip { color: var(--muted); font-size: 14px; margin-top: 14px; }
.preview { margin: 0 0 6px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: underline; padding: 6px 0; }
details.more[open] summary { margin-bottom: 10px; }
details.more .btn { margin-top: 12px; }
button.posted { margin-top: 12px; padding-left: 0; text-decoration: underline; }
button.del { display: block; margin: 8px auto 0; color: var(--danger); font-size: 14px; }
#sharemsg { color: var(--text); }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; max-width: 592px; margin: 0 auto;
  padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(14, 14, 16, .97); border-top: 1px solid var(--line); z-index: 10; }

/* Novo vídeo */
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--card); margin-bottom: 16px; }
.seg button { background: none; color: var(--muted); padding: 9px 0; border-radius: 9px; font-weight: 600; }
.seg button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pick { flex-direction: column; gap: 4px; padding: 26px 16px; background: none; color: var(--text); border: 1.5px dashed var(--muted); border-radius: var(--radius); }
.pick .big { font-size: 26px; color: var(--muted); }
.pick.add { padding: 14px; font-weight: 600; flex-direction: row; }
.thumb { width: 44px; height: 66px; aspect-ratio: auto; max-height: none; object-fit: cover; border-radius: 8px; background: var(--card-2); flex: none; }
.thumb.blank { display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.thumb.loading { background: linear-gradient(100deg, var(--card-2) 30%, var(--line) 50%, var(--card-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.picked { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--text); border-radius: var(--radius); }
.picked .thumb { width: 72px; height: 112px; }
.picked b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked p { margin: 2px 0; }
button.linkish { width: auto; padding: 4px 0; background: none; color: var(--text); text-decoration: underline; font-size: 14px; }
.take { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.take .n { width: 18px; text-align: center; flex: none; }
.take .grow { display: flex; flex-direction: column; }
.take .name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.take button { width: 36px; height: 40px; padding: 0; flex: none; background: none; color: var(--muted); font-size: 18px; font-weight: 400; }
.take .handle { touch-action: none; cursor: grab; font-size: 22px; }
.take.dragging { border-color: var(--text); background: var(--card-2); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--text); }
.opt:has(input:checked) { border: 1.5px solid var(--text); }
details.ctx { margin-top: 14px; border-top: 1px solid var(--line); }
details.ctx summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 550; }
details.ctx summary::-webkit-details-marker { display: none; }
.actionbar.col { flex-direction: column; }
.actionbar #up p { margin: 4px 0; }

/* Processando */
.steps { list-style: none; padding: 0; margin: 20px 0; }
.steps li { display: flex; align-items: center; gap: 14px; height: 44px; font-size: 15px; color: var(--text); }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.steps .done .dot { background: var(--text); color: var(--bg); }
.steps .now { font-weight: 650; }
.steps .now .dot { border: 3px solid var(--line); border-top-color: var(--text); animation: spin 1s linear infinite; }
.steps .todo { color: var(--muted); }
.steps .todo .dot { border: 2px solid var(--line); }
.leave { padding: 14px 16px; border-radius: 14px; background: var(--card); }
.leave p { margin: 4px 0 0; }

/* Ideias */
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
button.pill { width: auto; flex: none; height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px; margin-top: 14px; }
.chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 14px -16px 4px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { width: auto; flex: none; padding: 8px 14px; border-radius: 18px; background: none; border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 650; }
.idea-list { margin-top: 4px; }
.idea-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.idea-row:active { background: var(--card); }
.idea-row .fmt { width: 52px; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.idea-row .t { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.st-slot { width: 76px; flex: none; display: flex; justify-content: flex-end; }
.st { padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.st.nova { background: var(--card-2); color: var(--muted); }
.st.roteiro { box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.st.gravada { background: var(--text); color: var(--bg); }
.empty { padding: 28px 0; }
.empty h2 { margin-top: 0; }
#view > .proc { margin-top: 14px; }
.sheet .label:first-of-type { margin-top: 16px; }
.sheet-actions { margin-top: 18px; }
.sheet input { margin-bottom: 4px; }

/* Instruções pra IA */
textarea.instructions { min-height: 46dvh; font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.ins-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#count.over { color: var(--danger); }

/* Vídeos */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 16px; }
.vtile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vcover { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.vcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vbadge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 9px; font-size: 12px; font-weight: 650;
  background: var(--text); color: var(--bg); }
.vbadge.posted { background: rgba(14, 14, 16, .75); color: var(--muted); }
.vdur { position: absolute; bottom: 8px; right: 8px; padding: 2px 7px; border-radius: 7px; font-size: 12px; font-weight: 600;
  background: rgba(14, 14, 16, .75); color: var(--text); }
.vt { font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 4px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Entrar */
.brand { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 20px; font-weight: 750; }
.brand img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }   /* the icon's black meets the page's black */
.pw { position: relative; }
.pw input { padding-right: 92px; }
.pw .show { position: absolute; right: 6px; top: 6px; bottom: 18px; width: auto; padding: 0 12px; background: none;
  color: var(--text); font-size: 14px; font-weight: 600; }
.auth-links a[data-forgot] { color: var(--text); text-decoration: underline; }
.sheet-actions .btn { flex: 1; }

/* Perfil */
.who { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.who h1 { margin: 0; font-size: 24px; }
.who p { margin: 2px 0 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.knows { margin-top: 18px; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--text); }
.knows .label { margin-top: 0; }
.knows p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 10px; border-radius: 10px; background: var(--card-2); font-size: 13px; font-weight: 550; }
.prows { margin-top: 10px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prow b { display: block; font-size: 15px; }
.prow .arrow { color: var(--muted); font-size: 20px; flex: none; }
.md.doc { font-size: 15px; line-height: 1.55; }
.md.doc h2, .md.doc h3 { font-size: 16px; margin: 20px 0 6px; }

.md blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.md ol.plain { padding-left: 22px; }
.mdtable { margin: 8px 0; }
.mdrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mdrow span { display: block; }
.mdrow span:first-child { font-weight: 650; }
.mdrow span + span { color: var(--muted); font-size: 14px; }

/* Stories result */
.stitle { margin: 4px 0 2px; font-size: 18px; }
.srow { display: flex; gap: 10px; overflow-x: auto; margin: 14px -16px 4px; padding: 0 16px 6px; scrollbar-width: none; }
.srow::-webkit-scrollbar { display: none; }
.sframe { position: relative; flex: none; width: 128px; aspect-ratio: 9 / 16; padding: 0; border-radius: 12px; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--line); }
.sframe img, .sframe video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; max-height: none; }
.snum { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; background: rgba(14, 14, 16, .8); color: var(--text); }
ul.todo li { margin: 6px 0; }
.sbig img, .sbig video { width: 100%; max-height: 62dvh; object-fit: contain; border-radius: 12px; background: #000; display: block; aspect-ratio: auto; }

/* references (ideas) */
.row.tight { gap: 8px; width: auto; flex: none; }
.ref { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.refbox { padding: 12px 14px; margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.refbox ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }

#err { color: var(--danger); min-height: 1em; }
.auth-links { text-align: center; }
.auth-links a { color: var(--text); font-weight: 600; text-decoration: underline; }
.person { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-of-type { border-bottom: 0; }
.person .row { flex: none; }
.person button { width: auto; padding: 9px 12px; font-size: 14px; }
.err-box { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
input[type="file"] { padding: 10px; color: var(--muted); font-size: 14px; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 650; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  margin-right: 12px; background: var(--card); color: var(--text); cursor: pointer;
}
