:root { --ink:#172033; --muted:#667085; --line:#d9dee8; --paper:#fff; --soft:#f5f7fa; --accent:#1664d9; --accent-dark:#0f4ea9; --success:#16794c; --danger:#b42318; }
* { box-sizing:border-box; }
body { margin:0; background:#eef1f5; color:var(--ink); font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
a { color:inherit; }
.topbar { height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 max(14px,calc((100% - 1800px)/2)); background:var(--paper); border-bottom:1px solid var(--line); }
.brand { font-weight:800; text-decoration:none; }.brand span { color:var(--accent); font-weight:600; }
nav { display:flex; gap:22px; align-items:center; color:var(--muted); } nav a { text-decoration:none; } nav a:hover { color:var(--accent); }
.home-button { padding:7px 11px; border:1px solid var(--accent); border-radius:5px; color:var(--accent); font-weight:700; }
.shell { width:min(1800px,calc(100% - 28px)); margin:0 auto; padding:22px 0 36px; }
.eyebrow { margin:0 0 8px; color:var(--accent); font-size:13px; font-weight:800; letter-spacing:.08em; }
h1 { margin:0; font-size:clamp(32px,5vw,48px); line-height:1.15; letter-spacing:0; } h2 { margin:0; font-size:22px; }
.lede { margin:14px 0 0; color:var(--muted); font-size:17px; }
.workspace { margin-top:28px; background:var(--paper); border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 24px rgba(23,32,51,.06); overflow:hidden; }
.toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px 18px; border-bottom:1px solid var(--line); background:#fbfcfe; }
button, input, select { font:inherit; }
button { cursor:pointer; }
.primary, .secondary { min-height:40px; border-radius:5px; padding:0 15px; font-weight:700; }
.primary { border:1px solid var(--accent); background:var(--accent); color:white; }.primary:hover { background:var(--accent-dark); }
.secondary { border:1px solid var(--line); background:white; color:var(--ink); }.secondary:hover { border-color:var(--accent); color:var(--accent); }
button:disabled { opacity:.55; cursor:not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid rgba(22,100,217,.3); outline-offset:2px; }
.status { margin-left:auto; color:var(--muted); }.status.ok { color:var(--success); }.status.error { color:var(--danger); }
.grid-two { display:grid; grid-template-columns:1fr; gap:18px; padding:16px; }
.panel { min-width:0; }.panel-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }.panel-head label { font-weight:750; }
textarea { width:100%; min-height:420px; resize:vertical; border:1px solid var(--line); border-radius:6px; padding:14px; background:#fbfcfe; color:#111827; font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
textarea:focus { border-color:var(--accent); }.hint { margin:7px 0 0; color:var(--muted); font-size:13px; }
.notes { display:grid; grid-template-columns:1fr; gap:14px; margin-top:18px; }.notes div { padding:15px 16px; border-left:3px solid #c8d5eb; background:rgba(255,255,255,.72); }.notes strong { display:block; }.notes span { color:var(--muted); font-size:13px; }
.dropzone { display:grid; place-items:center; min-height:150px; border:1px dashed #9db3d4; border-radius:6px; background:#f7faff; text-align:center; }.dropzone input { max-width:100%; }.dropzone p { margin:0 0 5px; font-weight:700; }.dropzone span { color:var(--muted); font-size:13px; }
.preview { display:block; max-width:100%; max-height:280px; margin:14px auto 0; border:1px solid var(--line); }.progress { height:7px; margin-top:12px; overflow:hidden; border-radius:4px; background:#e5eaf2; }.progress i { display:block; width:0; height:100%; background:var(--accent); transition:width .2s; }
.footer { padding:0 22px 36px; text-align:center; color:var(--muted); font-size:13px; }.footer p { margin:5px 0; }.footer a { color:var(--accent); text-decoration:none; }
.print-preview { min-height:420px; overflow:auto; padding:28px; border:1px solid var(--line); background:white; }.print-preview h1,.print-preview h2,.print-preview h3 { line-height:1.3; }.print-preview pre { padding:12px; overflow:auto; background:#f5f7fa; }.print-preview table { width:100%; border-collapse:collapse; }.print-preview th,.print-preview td { padding:7px; border:1px solid #cfd6e1; text-align:left; }
@media (min-width:761px) { .shell { width:min(1800px,calc(100% - 36px)); }.grid-two { grid-template-columns:1fr 1fr; padding:20px; }.notes { grid-template-columns:repeat(3,1fr); } }
@media (min-width:1200px) { .shell { width:min(1800px,calc(100% - 48px)); min-width:1200px; } }
@media (max-width:760px) { .topbar { height:auto; min-height:62px; gap:12px; padding:13px 14px; } nav { gap:12px; font-size:13px; flex-wrap:wrap; justify-content:flex-end; }.status { width:100%; margin-left:0; }.print-preview { min-height:300px; padding:18px; } }
@media print { .topbar,.toolbar,.intro,.notes,.footer,.hint { display:none !important; } body { background:#fff; }.shell { max-width:none; padding:0; }.workspace { margin:0; border:0; box-shadow:none; }.print-preview { border:0; min-height:auto; padding:0; } }
