:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;color:#16202f;background:#f5f6f8;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.44;cursor:not-allowed}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}
.app-shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid #e9edf1;padding:30px 18px 22px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;align-self:start}
.brand{display:flex;align-items:center;gap:12px;padding:3px 10px 39px}
.brand-symbol{width:42px;height:42px;display:grid;place-items:center;background:#101827;color:#fff;border-radius:14px;font-size:24px;font-weight:800;letter-spacing:-3px;padding-right:5px}.brand-symbol span{color:#b7c5dc}
.brand-name{font-size:19px;font-weight:800;letter-spacing:-.65px}.brand-subtitle{font-size:11px;color:#7b8796;margin-top:3px}
.section-caption,.eyebrow{font-size:10px;color:#8d98a8;font-weight:800;letter-spacing:1.6px}.section-caption{padding:0 16px;margin-bottom:11px}
.navigation{display:grid;gap:5px}.nav-button{width:100%;border:0;text-align:left;padding:13px 16px;border-radius:12px;color:#5f6a79;background:transparent;font-size:14px;font-weight:600;display:flex;gap:15px;align-items:center}.nav-button span{font-size:17px;width:18px;text-align:center}.nav-button:hover{background:#f6f7fa}.nav-button.active{color:#172032;background:#eef2f7}
.sidebar-bottom{margin-top:auto;border-top:1px solid #edf0f3;padding:22px 12px 8px}.sidebar-bottom a{display:inline-block;font-size:12px;margin-top:15px;font-weight:700;color:#3b5a7b}.safe-note{font-size:12px;font-weight:700;display:flex;align-items:center;gap:8px}.safe-dot{width:8px;height:8px;border-radius:50%;background:#2f9a77}.mini-text{font-size:11px;line-height:1.8;color:#8d98a8;margin-top:9px}
.main-column{min-width:0;display:flex;flex-direction:column}.topbar{height:88px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 clamp(22px,4vw,62px);border-bottom:1px solid #e6eaf0;background:rgba(255,255,255,.8)}.topbar-heading{display:grid;gap:6px}.topbar-name{color:#6b7787;font-size:12px}.top-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{border:1px solid #dfe5ec;border-radius:10px;padding:10px 15px;min-height:40px;background:#fff;color:#344358;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover:not(:disabled){filter:brightness(.96)}.btn-primary{background:#172232;border-color:#172232;color:#fff}.btn-quiet{background:transparent}.btn-small{padding:7px 11px;min-height:32px;font-size:11px}.btn-danger{border-color:#efd8db;color:#a44451;background:#fff}.btn-wide{width:100%}.btn-group{display:flex;gap:9px;flex-wrap:wrap}
.workspace{padding:36px clamp(20px,4vw,62px) 55px;max-width:1540px;width:100%;margin:0 auto;flex:1}.footer{font-size:11px;color:#9ba5b0;text-align:center;padding:22px}
.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.page-title{margin:7px 0 7px;font-size:clamp(27px,3vw,35px);letter-spacing:-1.25px;line-height:1.24;font-weight:800}.page-desc{font-size:13px;line-height:1.7;color:#8491a0;margin:0;max-width:740px}.page-action{flex-shrink:0}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.stat{background:#fff;border:1px solid #e9edf1;border-radius:16px;padding:22px}.stat-label{font-size:12px;color:#8491a0}.stat-value{margin-top:10px;font-size:34px;font-weight:800;letter-spacing:-1.3px;font-variant-numeric:tabular-nums}.stat-foot{font-size:11px;color:#a3adba;margin-top:8px}
.panel{background:#fff;border:1px solid #e8edf1;border-radius:16px;overflow:hidden}.panel-head{padding:20px 23px;border-bottom:1px solid #eff1f4;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-title{font-size:14px;font-weight:800;margin:0}.panel-body{padding:22px 23px}.panel-subtitle{color:#8d98a8;font-size:11px}
.two-panels{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:18px}.three-steps{display:grid;gap:15px}.step{display:flex;gap:13px;align-items:flex-start}.step-number{width:29px;height:29px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:#f1f4f7;font-size:12px;font-weight:800}.step b{font-size:13px}.step p{font-size:11px;line-height:1.7;color:#8792a0;margin:5px 0 0}
.empty{padding:42px 20px;text-align:center}.empty-icon{font-size:31px;color:#adb7c3}.empty h3{font-size:17px;margin:13px 0 8px}.empty p{font-size:12px;line-height:1.8;color:#92a0af;margin-bottom:18px}.empty.small{padding:28px 16px}.empty.small h3{font-size:14px}
.row-item{padding:17px 22px;border-bottom:1px solid #f0f2f5;display:flex;align-items:center;justify-content:space-between;gap:13px}.row-item:last-child{border-bottom:none}.row-title{font-size:13px;font-weight:700;word-break:break-word}.row-sub{font-size:11px;color:#95a1af;margin-top:6px}.row-right{display:flex;gap:9px;align-items:center;flex-shrink:0}.row-item:hover{background:#fafbfd}
.chip{font-size:10px;display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:7px;background:#f1f4f7;color:#637286;font-weight:700}.chip-dark{background:#e9eff7;color:#3b5778}.chip-positive{background:#e8f5ef;color:#237558}.chip-warn{background:#fff3e4;color:#9d641a}.chip-bad{background:#faebed;color:#a54453}
.editor-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.7fr);gap:18px}.stack{display:grid;gap:18px}.list-panel{min-height:340px}.content-card{width:100%;border:0;background:#fff;padding:19px 22px;border-bottom:1px solid #edf0f3;text-align:left;display:block}.content-card:hover,.content-card.selected{background:#f6f8fb}.content-card.selected{box-shadow:inset 3px 0 #263b58}.content-title{font-size:13px;font-weight:800;margin-bottom:8px;word-break:break-word}.content-meta{font-size:11px;color:#94a0ad;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.field{display:grid;gap:8px;margin-bottom:17px}.field:last-child{margin-bottom:0}.field label,.field-label{font-size:12px;font-weight:700;color:#3e4c5f}.field-hint{font-size:11px;color:#9ca7b4;line-height:1.6}.field input:not([type=checkbox]):not([type=file]),.field textarea,.field select,.text-input{width:100%;border:1px solid #dfe5ea;border-radius:9px;background:#fff;padding:11px 12px;color:#172438;outline:none;font-size:13px;line-height:1.6;min-height:43px}.field textarea{resize:vertical;min-height:92px}.field textarea.long{min-height:155px}.field input:focus,.field textarea:focus,.field select:focus,.text-input:focus{border-color:#8195af;box-shadow:0 0 0 3px rgba(68,98,135,.09)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkbox-line{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:#59687b;line-height:1.6;padding:8px 0}.checkbox-line input{margin-top:3px;accent-color:#172232}.group-divider{border:0;border-top:1px solid #edf0f3;margin:22px 0}
.platform-tabs{display:flex;gap:8px;flex-wrap:wrap}.platform-tab{border:1px solid #e0e5eb;background:#fff;color:#637185;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:700}.platform-tab.selected{background:#182435;color:#fff;border-color:#182435}.platform-tab.no-version{opacity:.65}
.callout{padding:15px 17px;border:1px solid #e2e8ef;border-radius:11px;background:#f8fafc;color:#65768b;font-size:12px;line-height:1.75}.callout strong{color:#2c425e}.callout.warn{background:#fffaf3;border-color:#f3e5d3;color:#946d3b}.callout.stop{background:#fff6f7;border-color:#efdce0;color:#a64d5e}
.review-grid{display:grid;grid-template-columns:minmax(280px,.86fr) minmax(0,1.54fr);gap:18px}.queue-item{border:0;border-bottom:1px solid #eef1f4;background:#fff;width:100%;padding:16px 20px;text-align:left}.queue-item:hover,.queue-item.selected{background:#f6f8fb}.queue-item.selected{box-shadow:inset 3px 0 #243a54}.queue-item .row-title{margin-bottom:8px}.queue-item .row-sub{margin-top:6px}
.issue-list{display:grid;gap:8px}.issue{font-size:12px;display:flex;align-items:start;gap:10px;padding:12px 14px;border:1px solid #ebeff3;border-radius:9px;line-height:1.65;background:#fcfdfe}.issue-symbol{font-weight:900;min-width:18px}.issue.block{border-color:#f1dfe2;background:#fff8f9;color:#a44d58}.issue.warn{border-color:#f1e4d0;background:#fffbf6;color:#9e6a2e}.issue.good{color:#2f7559;background:#f4fbf7;border-color:#d9eee2}
.review-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.review-actions .btn{width:100%}.receipt{padding:18px;background:#f8fafc;border-radius:11px;border:1px dashed #d8e1e9;margin-top:18px}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#8794a3;font-size:10px;letter-spacing:.3px;font-weight:800;background:#fafbfc}td,th{padding:14px 17px;border-bottom:1px solid #edf0f3;vertical-align:top}tbody tr:last-child td{border-bottom:0}td{color:#516073;line-height:1.6}
.summary-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.fine-print{font-size:11px;color:#929eac;line-height:1.75}.text-link{border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:#345b82;font-size:12px;padding:0}
.toast{position:fixed;right:24px;bottom:24px;max-width:360px;border-radius:11px;background:#172232;color:#fff;box-shadow:0 12px 32px #1e293b22;padding:13px 17px;font-size:12px;line-height:1.6;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .18s,transform .18s;z-index:20}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1120px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-panels,.review-grid,.editor-layout{grid-template-columns:1fr}.sidebar{width:205px}.app-shell{grid-template-columns:205px minmax(0,1fr)}.topbar{padding:0 24px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:static;min-height:auto;width:100%;padding:14px 14px 8px;border-right:0;border-bottom:1px solid #e8edf2}.brand{padding:0 4px 12px}.brand-symbol{width:35px;height:35px;border-radius:11px;font-size:19px}.brand-name{font-size:16px}.section-caption,.sidebar-bottom{display:none}.navigation{display:flex;overflow-x:auto;gap:5px;padding-bottom:6px}.nav-button{width:auto;white-space:nowrap;padding:9px 10px;font-size:11px;gap:6px}.nav-button span{font-size:13px}.topbar{height:auto;min-height:73px;padding:12px 15px;align-items:flex-start;gap:9px}.topbar-heading{display:none}.top-actions{width:100%;justify-content:space-between;gap:6px}.top-actions .btn{min-height:35px;padding:8px 9px;font-size:11px}.workspace{padding:25px 14px 34px}.page-head{align-items:start;display:block}.page-action{margin-top:12px}.stats-grid{gap:9px}.stat{padding:15px}.stat-value{font-size:27px}.panel-head,.panel-body{padding:16px}.row-item{padding:14px;align-items:start}.row-right{flex-wrap:wrap;justify-content:flex-end}.form-grid,.review-actions{grid-template-columns:1fr}.footer{padding:15px;font-size:10px}.toast{left:12px;right:12px;bottom:13px;max-width:none}}

.preview-wrap{background:#f4f6f8;border:1px solid #e7ebf0;padding:18px;border-radius:13px;display:flex;justify-content:center}.preview-phone{background:#fff;border:1px solid #dce3ea;width:100%;max-width:350px;border-radius:18px;overflow:hidden;box-shadow:0 9px 25px #1420360e}.preview-top{font-size:11px;color:#768599;font-weight:800;padding:15px 17px;border-bottom:1px solid #eef1f4}.preview-media{background:#e8edf2;color:#7d8b9b;min-height:100px;display:grid;place-items:center;text-align:center;font-size:11px;padding:15px;overflow-wrap:anywhere}.preview-copy{padding:17px}.preview-copy b{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.preview-copy p{font-size:12px;color:#5b6d80;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;max-height:190px;overflow:auto}.preview-copy span{font-size:11px;color:#507499;white-space:pre-wrap;overflow-wrap:anywhere}

.media-meta{display:grid;gap:8px;background:#f7f9fb;border:1px solid #e8edf3;border-radius:10px;padding:13px;font-size:11px;color:#6a7c90;line-height:1.7;overflow-wrap:anywhere}
.media-item{border-bottom:1px solid #e9edf1;padding-bottom:6px}.media-item:last-child{border-bottom:0;padding-bottom:0}
.preview-media img,.preview-media video{width:100%;max-height:320px;object-fit:contain;display:block;background:#17202c;border:0;border-radius:3px}
.final-checks{margin-top:17px;padding:17px;background:#f6f9fb;border:1px solid #dce5ed;border-radius:12px}.final-checks .field-label{margin-bottom:8px}
.final-checks .checkbox-line{padding:7px 0}
/* Subordinate author and service links: readable but not competing with the editor. */
.author-links{display:flex;flex-direction:column;gap:7px;border-top:1px solid #dfe3e9;padding-top:15px;margin-top:15px}
.author-links a{font-size:12px;line-height:1.55;text-decoration:none;color:#394354}
.author-links a:hover{text-decoration:underline;text-underline-offset:3px}
.author-links .mini-text{font-size:11px;line-height:1.5;color:#697386}
.contact-copy{font:inherit;font-size:12px;font-weight:650;line-height:1.5;padding:9px 12px;text-align:left;color:#19262b;background:#ecf4f1;border:1px solid #beded0;border-radius:10px;cursor:pointer}
.contact-copy:hover{background:#dff1e9}.contact-copy:focus-visible{outline:3px solid #187f65;outline-offset:2px}
.contact-feedback{font-size:11px;color:#256b53;min-height:1em}

/* A single calm motion language. Animate only compositor-friendly properties on navigation. */
:root { --motion-quick: 115ms; --motion-standard: 175ms; --motion-ease: cubic-bezier(.2, 0, 0, 1); }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #3d91e8; outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .btn,.nav-button,.platform-tab,.content-card,.queue-item,.contact-copy {
    transition: background-color var(--motion-quick) var(--motion-ease),
      color var(--motion-quick) var(--motion-ease),
      border-color var(--motion-quick) var(--motion-ease),
      box-shadow var(--motion-quick) var(--motion-ease),
      transform var(--motion-quick) var(--motion-ease);
  }
  .btn:active:not(:disabled),.nav-button:active,.platform-tab:active,.contact-copy:active { transform: scale(.987); }
  .toast { transition: opacity var(--motion-standard) var(--motion-ease),transform var(--motion-standard) var(--motion-ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .toast,.btn,.nav-button,.platform-tab,.content-card,.queue-item,.contact-copy { animation: none !important; transition: none !important; }
}
/* Dark appearance follows the system; the original light appearance remains default. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; background: #0d1520; color: #edf3fb; }
  .sidebar,.stat,.panel,.content-card,.queue-item,.preview-phone,.contact-copy { background:#172331; color:#edf3fb; border-color:#2d3a4c; }
  .topbar { background:#172331; border-color:#2d3a4c; }
  .brand-name,.page-title,.row-title,.panel-title,.content-title,.stat-value,.field label,.field-label { color:#f1f5fb; }
  .brand-subtitle,.section-caption,.eyebrow,.stat-label,.stat-foot,.page-desc,.row-sub,.fine-print,.field-hint,.mini-text,.panel-subtitle,.content-meta { color:#afbbca; }
  .nav-button,.platform-tab,.btn { color:#dce7f5; border-color:#38485c; background:#1a2939; }
  .nav-button:hover,.nav-button.active,.platform-tab:hover,.content-card:hover,.content-card.selected,.queue-item:hover,.queue-item.selected { background:#26394d; color:#fff; }
  .btn-primary,.platform-tab.selected { color:#10202f; background:#b3d7f5; border-color:#b3d7f5; }
  .btn-quiet { background:transparent; }
  .field input:not([type=checkbox]):not([type=file]),.field textarea,.field select,.text-input {
    background:#101b28; color:#f3f7fc; border-color:#405268;
  }
  .row-item,.row-item:hover,.panel-head,.content-card,.queue-item,.sidebar-bottom,.brand,.table-wrap { border-color:#304155; }
  .row-item:hover { background:#1c2c3c; }
  .callout,.receipt,.preview-wrap,.media-meta,.final-checks,.step-number,.empty,.chip { background:#1c2c3c; color:#dce7f4; border-color:#36485d; }
  .callout strong { color:#e7efff; }
  .callout.warn,.issue.warn { background:#382a1a; color:#ffdba5; border-color:#705434; }
  .callout.stop,.issue.block { background:#41252c; color:#ffbec7; border-color:#76414b; }
  .issue.good,.chip-positive { background:#18392e; color:#b4efd2; border-color:#315e4a; }
  .issue { background:#1b2a39; color:#dbe5f1; border-color:#35485d; }
  .chip-warn { background:#382a1a; color:#ffdba5; }
  .chip-bad { background:#41252c; color:#ffbec7; }
  .chip-dark { background:#263f59; color:#d4e9ff; }
  .contact-copy { background:#1e3d34; color:#d2f5e8; border-color:#386856; }
  .contact-feedback { color:#a4ebcf; }
  .author-links { border-color:#304155; }
  .author-links a,.text-link { color:#b3dafa; }
  .toast { background:#e6effc; color:#182735; }
  th { background:#1d2b3b; color:#bed0e2; }
  td { color:#d2dfec; }
  td,th { border-color:#334559; }
  .preview-media { background:#26384b; color:#d4e0ee; }
  .preview-copy p { color:#c6d5e6; }
  .empty p,.step p,.callout p { color:#b8c6d6; }
}
