@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("/fonts/ArchivoBlack-Regular.ttf"); font-display: swap; }
@font-face { font-family: "PoppinsB"; src: url("/fonts/Poppins-Bold.ttf"); font-display: swap; }

:root {
  --bg: #09090d;
  --surface: #121219;
  --surface-2: #191923;
  --surface-3: #22222f;
  --border: #262634;
  --border-2: #34344a;
  --text: #f1f1f6;
  --muted: #8d8da6;
  --dim: #5d5d74;
  --pink: #ff3d8b;
  --orange: #ff8a3d;
  --grad: linear-gradient(120deg, #ff3d8b 0%, #ff6a5a 50%, #ffa53d 100%);
  --green: #3ddc84;
  --amber: #ffc53d;
  --red: #ff4d5e;
  --blue: #4da3ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 61, 139, .35); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 26px 16px; border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #0d0d13, #09090d); display: flex; flex-direction: column; gap: 28px;
}
.logo { font-family: "Anton", Impact, sans-serif; font-size: 34px; letter-spacing: .5px; padding: 0 10px; line-height: 1; text-decoration: none; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-family: ui-sans-serif, system-ui; font-size: 11px; color: var(--dim); letter-spacing: 2px; margin-top: 6px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-weight: 550; transition: background .15s, color .15s;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--pink); }
.side .foot { margin-top: auto; font-size: 12px; color: var(--dim); padding: 0 10px; line-height: 1.5; }
.queue-pill { display: inline-flex; align-items: center; gap: 6px; }
.queue-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.queue-pill.busy i { background: var(--amber); animation: pulse 1.2s infinite; }

main { padding: 34px 42px 80px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 40px; letter-spacing: .4px; margin: 0; line-height: 1.05; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { color: var(--muted); text-decoration: none; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.crumb:hover { color: var(--text); }

/* ---------- componentes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--surface-3); border-color: #45455f; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 22px rgba(255, 61, 139, .28); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.icon-btn { width: 34px; height: 34px; padding: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel { padding: 22px; }
.panel h3 { margin: 0 0 4px; font-size: 16px; }
.panel .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--green); background: rgba(61, 220, 132, .1); }
.badge.warn { color: var(--amber); background: rgba(255, 197, 61, .1); }
.badge.err { color: var(--red); background: rgba(255, 77, 94, .1); }
.badge.run { color: var(--pink); background: rgba(255, 61, 139, .1); }
.badge.run i { animation: pulse 1.1s infinite; }
.badge.info { color: var(--blue); background: rgba(77, 163, 255, .1); }

.plat { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fff; flex: none; letter-spacing: -.3px; }
.plat.youtube { background: #e62117; }
.plat.instagram { background: linear-gradient(45deg, #f9a63b, #e1306c 55%, #8a3ab9); }
.plat.tiktok { background: #111; box-shadow: inset 0 0 0 1px #333, 2px 0 0 #25f4ee, -2px 0 0 #fe2c55; }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.progress.indet > div { width: 35% !important; animation: indet 1.3s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > label, .label { font-size: 13px; font-weight: 650; color: #c9c9d8; }
.hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 13px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 84px; line-height: 1.45; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, .15); }
.input.big { font-size: 17px; padding: 16px 18px; border-radius: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2);
  cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); transition: all .15s; user-select: none;
}
.chip:hover { color: var(--text); }
.chip.on { background: rgba(255, 61, 139, .12); border-color: var(--pink); color: #fff; }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border-2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 650; font-size: 14px; }
.seg button.on { background: var(--surface-3); color: var(--text); }

.stepper { align-self: flex-start; display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 11px; overflow: hidden; background: var(--bg); }
.stepper button { width: 42px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--muted); }
.stepper button:hover { background: var(--surface-2); color: var(--text); }
.stepper input { width: 64px; text-align: center; border: 0; background: transparent; font-size: 20px; font-weight: 750; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14px; }
.switch input { display: none; }
.switch .tr { width: 40px; height: 23px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .tr { background: var(--pink); }
.switch input:checked + .tr::after { transform: translateX(17px); }

input[type=range] { width: 100%; accent-color: var(--pink); }

.opt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.opt {
  border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; transition: all .15s;
}
.opt:hover { border-color: #4a4a66; }
.opt.on { border-color: var(--pink); background: rgba(255, 61, 139, .07); box-shadow: 0 0 0 3px rgba(255, 61, 139, .12); }
.opt b { font-size: 13px; }
.opt span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

/* mini diagramas de layout */
.lay { width: 46px; height: 80px; border-radius: 6px; background: #0b0b10; border: 1.5px solid #3a3a52; position: relative; overflow: hidden; }
.lay.h { width: 84px; height: 48px; }
.lay .g { position: absolute; background: linear-gradient(135deg, #ff3d8b, #ffa53d); }
.lay .bl { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,61,139,.35), rgba(255,165,61,.35)); filter: blur(3px); }
.lay .fc { position: absolute; background: #4da3ff; }

.swatches { display: flex; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.sw.on { border-color: #fff; }

/* ---------- novo corte ---------- */
.new-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.new-grid .stack { display: flex; flex-direction: column; gap: 18px; }
.preview-col { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.phone {
  width: 100%; aspect-ratio: 9/16; border-radius: 26px; border: 1.5px solid #34344a; position: relative; overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.phone .scene { position: absolute; inset: 0; background:
  radial-gradient(120% 60% at 70% 30%, rgba(255, 138, 61, .55), transparent 60%),
  radial-gradient(90% 60% at 20% 70%, rgba(255, 61, 139, .55), transparent 60%),
  linear-gradient(180deg, #1a0f2e, #0c0c14); }
.phone .scene.blurbg { filter: blur(14px) brightness(.7); transform: scale(1.2); }
.phone .fg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); aspect-ratio: 16/9; overflow: hidden; }
.phone .fg .scene { filter: none; transform: none; }
.phone .cam { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(160deg, #1e2a44, #0d1220); display: grid; place-items: center; color: #4da3ff; font-size: 12px; font-weight: 700; border-bottom: 2px solid #000; }
.phone .cap {
  position: absolute; left: 7%; right: 7%; text-align: center; line-height: 1.12; color: #fff; z-index: 3;
  paint-order: stroke fill; -webkit-text-stroke: 5px #000; text-shadow: 0 3px 0 rgba(0,0,0,.5); word-wrap: break-word;
}
.phone .cap em { font-style: normal; }
.phone .ui { position: absolute; right: 10px; bottom: 70px; display: flex; flex-direction: column; gap: 14px; z-index: 4; }
.phone .ui i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); display: block; }
.phone .meta { position: absolute; left: 12px; bottom: 18px; right: 60px; z-index: 4; }
.phone .meta i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); margin-top: 7px; }

.summary { font-size: 13px; color: var(--muted); line-height: 1.6; }
.summary b { color: var(--text); }

/* ---------- projetos ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.proj { overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.proj:hover { transform: translateY(-2px); border-color: var(--border-2); }
.proj .th { aspect-ratio: 16/9; background: #000 center/cover; position: relative; }
.proj .th .badge { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(8px); background: rgba(0,0,0,.6); }
.proj .th .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); padding: 3px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.proj .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.proj h4 { margin: 0; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.ph-th { display: grid; place-items: center; background: linear-gradient(135deg, #1c1226, #101018); color: var(--dim); font-family: "Anton"; font-size: 26px; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { font-family: "Anton"; font-weight: 400; font-size: 30px; color: var(--text); margin: 0 0 8px; letter-spacing: .3px; }
.empty p { margin: 0 0 22px; }

/* ---------- projeto ---------- */
.status-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.stages { display: flex; gap: 8px; flex-wrap: wrap; }
.stage { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--dim); padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-2); }
.stage .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; }
.stage.done { color: var(--green); }
.stage.done .n { background: rgba(61,220,132,.15); }
.stage.cur { color: #fff; }
.stage.cur .n { background: var(--grad); }
.status-msg { display: flex; align-items: center; gap: 10px; color: #d6d6e3; font-size: 14px; }

.feas { padding: 14px 16px; border-radius: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.feas.ok { background: rgba(61,220,132,.07); border: 1px solid rgba(61,220,132,.25); }
.feas.no { background: rgba(255,197,61,.07); border: 1px solid rgba(255,197,61,.3); }
.feas b { display: block; margin-bottom: 2px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .sp { flex: 1; }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.clip { display: flex; flex-direction: column; overflow: hidden; }
.clip .vid { aspect-ratio: 9/16; background: #000; position: relative; display: grid; place-items: center; overflow: hidden; }
.clip .vid.h { aspect-ratio: 16/9; }
.clip video, .clip .vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip .vid .ov { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 16px; background: radial-gradient(circle at 50% 40%, #1d1428, #0b0b10); }
.clip .vid .ov .big { font-family: "Anton"; font-size: 44px; color: #2a2a3b; display: block; }
.clip .score { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 7px; }
.clip .score b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clip .st { position: absolute; top: 10px; right: 10px; z-index: 2; }
.clip .st .badge { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.clip .bd { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.clip h4 { margin: 0; font-size: 14px; line-height: 1.35; }
.clip .tm { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clip .why { font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.clip .why.open { -webkit-line-clamp: unset; }
.clip .posts { display: flex; gap: 6px; flex-wrap: wrap; }
.clip .acts { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.clip .acts .btn { flex: 1; }
.clip.sel { outline: 2px solid var(--pink); }
.mini-post { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 3px 7px 3px 3px; border-radius: 7px; }
.mini-post .plat { width: 16px; height: 16px; font-size: 8px; border-radius: 4px; }

/* ---------- agenda ---------- */
.day { margin-bottom: 26px; }
.day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 0 0 10px; }
.post-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 8px; }
.post-row .pth { width: 54px; height: 76px; border-radius: 8px; background: #000 center/cover; }
.post-row .pi { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post-row .pi h4 { margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row .pi .l { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.post-row .err { color: var(--red); font-size: 12px; }
.post-row .pa { display: flex; gap: 6px; }

/* ---------- contas ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acc-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.acc-card .hd { display: flex; align-items: center; gap: 12px; }
.acc-card .hd .plat { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.acc-card .hd h3 { margin: 0; font-size: 17px; }
.acc-card .note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--surface-2); border-radius: 10px; font-size: 14px; }
.acc-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.acc-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.copy { display: flex; gap: 6px; align-items: center; background: var(--bg); border: 1px dashed var(--border-2); border-radius: 9px; padding: 7px 8px 7px 11px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; color: #c6c6d6; }
.copy span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- config ---------- */
.set-group { margin-bottom: 20px; }
.set-row { display: grid; grid-template-columns: 250px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--border); align-items: center; }
.set-row:first-of-type { border-top: 0; }
.set-row .k { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; font-weight: 600; }
.set-row .d { font-size: 12px; color: var(--muted); margin-top: 3px; font-family: ui-sans-serif, system-ui; font-weight: 400; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(4, 4, 8, .72); backdrop-filter: blur(5px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow); animation: pop .18s ease-out; }
.modal.wide { max-width: 860px; }
.modal-hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-hd h3 { margin: 0; font-size: 17px; }
.modal-bd { padding: 20px 22px; }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.toast { background: var(--surface-3); border: 1px solid var(--border-2); border-left: 3px solid var(--green); padding: 12px 16px; border-radius: 10px; max-width: 380px; font-size: 14px; box-shadow: var(--shadow); animation: pop .2s; }
.toast.err { border-left-color: var(--red); }

.acc-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 10px; cursor: pointer; margin-bottom: 8px; background: var(--surface-2); }
.acc-check input { accent-color: var(--pink); width: 17px; height: 17px; }
.acc-check.on { border-color: var(--pink); }

.sub-ed { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; padding-right: 4px; }
.sub-ed .ln { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; }
.sub-ed .ln span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sub-ed .ln input { padding: 7px 10px; font-size: 14px; }

.timebox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tctl { display: flex; gap: 6px; align-items: center; }
.tctl .input { text-align: center; font-variant-numeric: tabular-nums; }

.mt0 { margin-top: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sep { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------- mobile ---------- */
@media (max-width: 980px) {
  .new-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .acc-grid { grid-template-columns: 1fr; }
  .opt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; padding: 8px; flex-direction: row; z-index: 40; border-right: 0; border-top: 1px solid var(--border); background: rgba(9,9,13,.94); backdrop-filter: blur(10px); }
  .side .logo, .side .foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav a { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 4px; }
  .nav a.active { box-shadow: inset 0 -2px 0 var(--pink); }
  main { padding: 22px 16px 100px; }
  .page-head h1 { font-size: 32px; }
  .grid2, .grid3, .timebox { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr; gap: 8px; }
  .clips { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-row { grid-template-columns: 44px 1fr; }
  .post-row .pa { grid-column: 1 / -1; }
}
