:root{color-scheme:dark;background:#0b121e;color:#edf3fc;font:16px/1.5 "DM Sans",system-ui,sans-serif;--panel:#131e2f;--edge:#30435d;--muted:#b3c3d9;--accent:#79bbff}
*{box-sizing:border-box}
body{margin:0}
header{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--edge);padding:1rem max(1rem,calc((100% - 1100px)/2));background:var(--panel)}
header img{display:block;width:152px;height:auto}
a{color:var(--accent)}
main{width:min(100% - 2rem,1100px);margin:clamp(1.8rem,5vw,4rem) auto}
h1{font-size:clamp(1.9rem,5vw,3rem);letter-spacing:-.04em;line-height:1.12;margin:0}
h2{font-size:1.18rem;margin:0}
p{color:var(--muted)}
.workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.6rem;align-items:start}
form,section{background:var(--panel);border:1px solid var(--edge);border-radius:1rem;padding:clamp(1rem,3vw,1.6rem);min-width:0}
form{display:grid;gap:1rem}
form p{margin:0;font-size:.9rem}
label{display:grid;gap:.4rem;font-size:.92rem}
input,textarea,select,button{font:inherit}
input:not([type=checkbox]),textarea,select{min-width:0;width:100%;background:#0b1423;color:inherit;border:1px solid var(--edge);padding:.65rem .75rem;border-radius:.55rem}
textarea{resize:vertical}
fieldset{margin:0;border:1px solid var(--edge);border-radius:.55rem}
.checks,.actions{display:flex;gap:.65rem;flex-wrap:wrap}
.checks label,.inline{display:flex;align-items:center}
input[type=checkbox]{accent-color:#1488f5;margin:.2em}
button{border-radius:.55rem;padding:.6rem .9rem;border:1px solid var(--edge);background:#1a2b42;color:inherit;cursor:pointer}
button[type=submit]{background:#0570d4;border-color:#258cef;color:white}
button:disabled{opacity:.5;cursor:default}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.table-scroll{overflow:auto}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;margin-bottom:1rem}
th,td{text-align:left;padding:.65rem;border-bottom:1px solid var(--edge);overflow-wrap:anywhere}
th{font-weight:650}
.detail tr:first-child{color:var(--accent)}
#preview{max-width:100%;width:100%;margin-bottom:.8rem}
#file-order{margin:0;padding-left:1.4rem;overflow-wrap:anywhere}
#file-order:empty{display:none}
progress{width:100%;accent-color:#1488f5}
#layout{background:#0b1423;padding:.7rem;margin-bottom:.8rem;border:1px solid var(--edge);border-radius:.6rem;min-height:10rem}
#layout span{display:grid;place-items:center;background:#184678;border:1px solid #3472ad;border-radius:.45rem;min-height:44px;min-width:38px}
.timeline-item{display:grid;gap:.4rem;margin:.75rem 0}
.timeline-item small,small{color:var(--muted)}
.timeline-track{background:#0b1423;border:1px solid var(--edge);border-radius:.4rem;overflow:hidden}
.timeline-track span{background:#147de9;display:block;height:.6rem}
#report,#board{overflow-wrap:anywhere}
#report dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem .9rem}
#report dd{margin:0;white-space:pre-wrap}
.board-item,.task-item{display:grid;gap:.65rem;background:#0b1423;border:1px solid var(--edge);border-radius:.7rem;padding:.85rem;margin:.7rem 0}
.board-item h3,.task-item p{margin:0}
.task-item{background:#17273d;margin:0}
#art{max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;margin:.9rem 0;border-radius:.55rem}
#site-preview{width:100%;height:320px;margin-bottom:1rem;border:1px solid var(--edge);border-radius:.6rem;background:#0b121e}
@media print{
  :root,section{background:#fff;color:#111;--muted:#333;--edge:#999}
  header,main>h1,main>p,form,section>h2,section>.actions,section>#status{display:none}
  main{width:100%;margin:0}.workspace{display:block;margin:0}section{border:0;padding:0}
  table tr{break-inside:avoid}.table-scroll{overflow:visible}
  .timeline-track span{print-color-adjust:exact}
}
@media(max-width:750px){.workspace{grid-template-columns:1fr}}
@media(max-width:360px){header img{width:118px}header a{font-size:.84rem}}
