/* Mixar Content Studio — dark greys, green accent, Inter. No build step. */
:root {
  --bg: #0b0c0e;
  --bg2: #0f1113;
  --panel: #141619;
  --panel2: #1a1d21;
  --panel3: #21252a;
  --line: #24282d;
  --line2: #2f343a;
  --text: #eceef0;
  --muted: #9aa1a9;
  --dim: #6c737c;
  --accent: #5ee0a0;
  --accent-2: #3fc987;
  --accent-ink: #052414;
  --accent-soft: rgba(94, 224, 160, .12);
  --amber: #f3c46b;
  --amber-soft: rgba(243, 196, 107, .12);
  --blue: #7cc4ff;
  --blue-soft: rgba(124, 196, 255, .12);
  --violet: #b9a2ff;
  --violet-soft: rgba(185, 162, 255, .12);
  --red: #ff7d7d;
  --red-soft: rgba(255, 125, 125, .12);
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -16px rgba(0,0,0,.6);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 420px at 15% -120px, rgba(94,224,160,.07), transparent 70%),
                    radial-gradient(700px 380px at 100% -160px, rgba(40,190,200,.05), transparent 70%);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 12px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line);
  background: rgba(11,12,14,.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand img.markonly { display: none; height: 26px; }
.brand span { font-size: 13px; color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line2); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { white-space: nowrap; color: var(--muted); padding: 7px 12px; border-radius: 9px; font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--panel2); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--panel2); }
.spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 12px;
  background: linear-gradient(135deg, #7fe7b4, #2bbcc3); color: #04201a;
}
.nav .short { display: none; }
.linkbtn { white-space: nowrap; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.linkbtn:hover { color: var(--text); background: var(--panel2); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.wrap.narrow { max-width: 860px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead .sub { color: var(--muted); margin-top: 6px; }

/* ---------- buttons, inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--panel3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #79ebb3; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: rgba(255,125,125,.35); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
label.lbl .opt { color: var(--dim); font-weight: 500; }
.help { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
input[type=text], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 10px;
  padding: 10px 12px; font: 15px/1.4 var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
  min-height: 42px;
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa1a9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
input:focus, select:focus, textarea:focus { border-color: rgba(94,224,160,.6); box-shadow: 0 0 0 3px rgba(94,224,160,.14); }
input::placeholder, textarea::placeholder { color: #5b626a; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel.pad { padding: 20px; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 14px; font-weight: 600; }
.panel-b { padding: 18px; }

/* ---------- chips & progress */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--panel3); color: var(--muted);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.running, .chip.starting { background: var(--accent-soft); color: var(--accent); }
.chip.running::before { animation: pulse 1.4s ease-in-out infinite; }
.chip.final { background: var(--accent); color: var(--accent-ink); }
.chip.needs_input { background: var(--amber-soft); color: var(--amber); }
.chip.draft_ready { background: var(--blue-soft); color: var(--blue); }
.chip.changes_requested { background: var(--violet-soft); color: var(--violet); }
.chip.failed { background: var(--red-soft); color: var(--red); }
.chip.cancelled { color: var(--dim); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.75);} }
.tag { font-size: 12px; color: var(--muted); background: var(--panel2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }

.bar { height: 6px; border-radius: 99px; background: var(--panel3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3fc987, var(--accent));
  transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bar.live > i { background-size: 200% 100%; background-image: linear-gradient(90deg, #3fc987, #8af0c0, #3fc987); animation: sheen 2.2s linear infinite; }
.bar.failed > i { background: var(--red); }
.bar.idle > i { background: var(--line2); }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ---------- jobs list */
.toolbar { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 550; }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { background: var(--panel3); color: var(--text); }
.joblist { display: flex; flex-direction: column; gap: 10px; }
.jobrow {
  display: grid; grid-template-columns: 112px 1fr 240px; gap: 18px; align-items: center; padding: 12px 16px 12px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
  transition: border-color .15s, background .15s;
}
.jobrow:hover { border-color: var(--line2); background: #16191c; text-decoration: none; }
.thumb { width: 112px; aspect-ratio: 16/9; border-radius: 9px; background: var(--panel3) center/cover no-repeat; display: grid; place-items: center; color: var(--dim); overflow: hidden; }
.thumb svg { width: 26px; height: 26px; opacity: .7; }
.jobrow .t { min-width: 0; }
.jobrow .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobrow .meta { color: var(--muted); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobrow .s { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.jobrow .s .line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jobrow .s .msg { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty { text-align: center; padding: 72px 20px; border: 1px dashed var(--line2); border-radius: 18px; background: rgba(20,22,25,.5); }
.empty img { width: 64px; height: 64px; opacity: .9; margin-bottom: 18px; filter: drop-shadow(0 8px 24px rgba(94,224,160,.25)); }
.empty h2 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }

/* ---------- new request */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 148px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
  transition: border-color .15s, transform .15s, background .15s;
}
a.tcard:hover { border-color: rgba(94,224,160,.5); background: #15191a; transform: translateY(-2px); text-decoration: none; }
.tcard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tcard .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tcard .ic svg { width: 21px; height: 21px; }
.tcard h3 { font-size: 15px; font-weight: 650; }
.tcard p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.tcard.soon { opacity: .55; cursor: default; }
.tcard.soon .ic { background: var(--panel3); color: var(--muted); }
.tcard .badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line2); border-radius: 99px; padding: 2px 8px; }
.sect-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 650; margin: 30px 0 12px; }

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.formgrid > .full { grid-column: 1 / -1; }
.fld.hidden { display: none; }
.drop {
  border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 26px; text-align: center; cursor: pointer;
  background: var(--bg2); transition: border-color .15s, background .15s; color: var(--muted);
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(94,224,160,.05); color: var(--text); }
.drop svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.drop b { color: var(--text); font-weight: 600; }
.files { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.file { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.file .row1 { display: flex; align-items: center; gap: 10px; }
.file .nm { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .sz { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.file .bar { margin-top: 10px; }
.file .st { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.file .st.err { color: var(--red); }
.file .row1 > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.file .x { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.file .x:hover { color: var(--text); background: var(--panel3); }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 10px; font-size: 13px; }
.summary dt { color: var(--dim); }
.summary dd { margin: 0; color: var(--text); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(94,224,160,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.formerr { color: var(--red); background: var(--red-soft); border: 1px solid rgba(255,125,125,.25); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.submitbar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- job page */
.jobhead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.jobhead .t { flex: 1; min-width: 260px; }
.jobhead h1 { word-break: break-word; }
.jobhead .meta { color: var(--muted); font-size: 13.5px; margin-top: 8px; display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.progress-card .top-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.progress-card .pct { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.progress-card .msg { color: var(--muted); font-size: 14px; }
.progress-card .eta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.preview { margin-top: 16px; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.callout { border-radius: var(--r); padding: 18px; border: 1px solid; }
.callout.q { background: rgba(243,196,107,.06); border-color: rgba(243,196,107,.3); }
.callout.rv { background: rgba(124,196,255,.05); border-color: rgba(124,196,255,.28); }
.callout h2 { font-size: 15px; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.callout .opts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.version { border-top: 1px solid var(--line); padding: 18px; }
.version:first-child { border-top: 0; }
.version .vh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.version .vh b { font-size: 14px; }
.vtag { font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--panel3); color: var(--text); }
.vtag.latest { background: var(--accent-soft); color: var(--accent); }
video, .version img.out { width: 100%; max-height: 70vh; border-radius: 10px; background: #000; display: block; }
.outfile { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.outfile .nm { font-size: 13.5px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log {
  margin: 0; padding: 14px 16px; height: 340px; overflow: auto; background: #08090a; border-radius: 0 0 var(--r) var(--r);
  font: 12px/1.6 var(--mono); color: #b9c0c7; white-space: pre-wrap; word-break: break-word;
}
.log .ts { color: #5d656e; }
.log .err { color: var(--red); }
.log .ok { color: var(--accent); }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--dim); white-space: nowrap; }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { background: var(--panel2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.note .by { color: var(--dim); font-size: 12px; margin-bottom: 3px; }
.prompt { white-space: pre-wrap; font-size: 14px; color: var(--text); background: var(--panel2); border-radius: 10px; padding: 12px 14px; }
.inputs a, .inputs span { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel3); border: 1px solid var(--line2); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: var(--shadow); }
.toast.err { border-color: rgba(255,125,125,.4); color: var(--red); }

/* ---------- login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: 100%; max-width: 400px; }
.login .logo { display: flex; justify-content: center; margin-bottom: 28px; }
.login .logo img { height: 34px; }
.login .panel { padding: 28px; }
.login h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login .sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.login form { display: flex; flex-direction: column; gap: 16px; }
.login .btn { height: 46px; font-size: 15px; }
.login .foot { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 18px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { order: 2; }
}
@media (max-width: 720px) {
  .top { gap: 10px; padding: 10px 14px; }
  .brand img.markonly { display: none; height: 26px; }
.brand span { display: none; }
  .nav { margin-left: 0; }
  .nav a { padding: 7px 9px; }
  .who .nm, .who .avatar { display: none; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .whochip { display: none; }
  .brand img.lockup { display: none; }
  .brand img.markonly { display: block; }
  .nav a { padding: 7px 8px; }
  .top { gap: 6px; }
  .wrap { padding: 20px 14px 60px; }
  h1 { font-size: 22px; }
  .jobrow { grid-template-columns: 84px 1fr; gap: 12px; padding: 10px; }
  .thumb { width: 84px; }
  .jobrow .s { grid-column: 1 / -1; }
  .formgrid { grid-template-columns: 1fr; }
  .formgrid > * { grid-column: 1 / -1; }
  .types { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard { min-height: 0; padding: 14px; }
  .tcard p { font-size: 12.5px; }
  .toolbar { margin-left: 0; width: 100%; justify-content: space-between; }
  .submitbar .btn { width: 100%; }
  .log { height: 260px; }
}
@media (max-width: 420px) {
  .types { grid-template-columns: 1fr; }
}

/* ---------- who chip */
.whochip { display: flex; align-items: center; gap: 9px; background: none; border: 1px solid transparent; color: var(--muted); font: 500 13px var(--font); padding: 3px 10px 3px 3px; border-radius: 99px; cursor: pointer; }
.whochip:hover { border-color: var(--line2); color: var(--text); }

/* ---------- settings */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 550; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.jform .formgrid { gap: 14px 16px; }
.jfs { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.jfs legend { padding: 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.colorrow { display: flex; gap: 8px; align-items: center; }
.swatch { width: 44px; height: 42px; padding: 3px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); cursor: pointer; flex: none; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.asset { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aprev { aspect-ratio: 16/10; border-radius: 8px; background: repeating-conic-gradient(#1b1e22 0% 25%, #15171a 0% 50%) 50% / 16px 16px; display: grid; place-items: center; overflow: hidden; color: var(--dim); }
.aprev img, .aprev video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.anm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.side-list .list { display: flex; flex-direction: column; padding: 6px; }
.side-list .list a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font: 13px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.side-list .list a:hover { background: var(--panel2); color: var(--text); text-decoration: none; }
.side-list .list a.on { background: var(--accent-soft); color: var(--accent); }
.newrow { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.newrow input { min-height: 32px; padding: 6px 10px; font-size: 13px; }
.md-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.md-split textarea { border: 0; border-radius: 0 0 0 var(--r); border-right: 1px solid var(--line); min-height: 460px; resize: vertical; font: 13px/1.6 var(--mono); padding: 16px; }
.md-split textarea:focus { box-shadow: none; }
.md-preview { padding: 6px 22px 18px; font-size: 14.5px; line-height: 1.6; overflow: auto; max-height: 75vh; }
.md-preview h1, .md-preview h2, .md-preview h3 { margin: 18px 0 8px; }
.md-preview h1 { font-size: 22px; } .md-preview h2 { font-size: 18px; }
.md-preview p, .md-preview ul, .md-preview ol, .md-preview pre, .md-preview blockquote { margin: 0 0 12px; }
.md-preview ul, .md-preview ol { padding-left: 22px; }
.md-preview code { background: var(--panel3); padding: 1px 5px; border-radius: 5px; }
.md-preview pre { background: #08090a; padding: 12px; border-radius: 8px; overflow: auto; }
.md-preview blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--muted); }
.table { display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: minmax(0, 2fr) 1.2fr 140px 150px; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.trow:first-child { border-top: 0; }
.trow:hover { background: var(--panel2); text-decoration: none; }
.libitems { display: flex; flex-direction: column; }
.libitem { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.libitem:first-child { border-top: 0; }
.libmeta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.libmeta .tags { max-width: 320px; min-height: 32px; padding: 6px 10px; font-size: 13px; }
.libmeta audio { width: 100%; max-width: 420px; height: 34px; margin-top: 4px; }
.commits { display: flex; flex-direction: column; }
.commit { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-top: 1px solid var(--line); }
.commit:first-child { border-top: 0; }
.commit.hl { background: var(--accent-soft); }
.cmain { flex: 1; min-width: 0; }
.cfiles { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.fs { font-style: normal; font-weight: 700; margin-right: 5px; color: var(--blue); }
.fs-A { color: var(--accent); } .fs-D { color: var(--red); }
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .split, .md-split { grid-template-columns: 1fr; }
  .md-split textarea { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 300px; }
  .trow { grid-template-columns: 1fr auto; }
  .trow > :nth-child(2), .trow > :nth-child(4) { display: none; }
  .libitem { grid-template-columns: 1fr; }
}
