:root {
  --ink: #121826;
  --muted: #5a6678;
  --line: #d9dee7;
  --paper: #f6f8fb;
  --white: #ffffff;
  --orange: #ff6a00;
  --orange-dark: #d94f00;
  --teal: #00a8a8;
  --blue: #1f6feb;
  --dark: #101827;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "PingFang SC", "Noto Sans SC", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 20px; padding: 10px clamp(18px, 4vw, 56px); border-bottom: 1px solid rgba(17, 24, 39, 0.1); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 12px; }
.brand strong { font-size: 18px; }
.topbar nav { display: flex; gap: 20px; color: #374151; font-size: 14px; }
.topbar nav a:hover { color: var(--orange-dark); }
.ghost { min-height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); padding: 0 12px; cursor: pointer; }
.eyebrow { margin: 0 0 13px; color: var(--orange-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 780px; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; letter-spacing: 0; }
.hero-actions, .split-actions, .copy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid transparent; padding: 0 16px; font-weight: 760; cursor: pointer; }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-dark); }
.button.primary:disabled { background: #b8c2d2; cursor: not-allowed; }
.button.secondary { border-color: #cfd6e3; background: #fff; color: var(--ink); }
.workspace { padding: 24px clamp(20px, 5vw, 72px) 72px; }
.auth-card, .panel { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 20px; }
.auth-card { max-width: 460px; margin: 36px auto 0; }
.card-head { display: grid; gap: 7px; margin-bottom: 16px; }
.card-head span { color: var(--orange-dark); font-size: 12px; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.card-head h2 { font-size: 22px; line-height: 1.25; }
.card-head p { color: var(--muted); line-height: 1.6; }
.auth-form, .form-grid { display: grid; gap: 12px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 6px; color: #374151; font-size: 13px; font-weight: 720; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #cfd6e3; border-radius: 4px; background: #fff; color: var(--ink); padding: 10px 11px; }
input { min-height: 40px; }
textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.wide { grid-column: 1 / -1; }
.app-grid { display: grid; grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1fr) minmax(280px, 0.72fr); gap: 16px; align-items: start; }
.column { display: grid; gap: 16px; min-width: 0; }
.sticky-panel { position: sticky; top: 78px; }
.keyword-box { min-height: 118px; }
.topic-list { display: grid; gap: 8px; margin-top: 14px; max-height: 360px; overflow: auto; }
.topic-item { display: grid; gap: 5px; width: 100%; border: 1px solid #d7dde8; border-radius: 4px; background: #f8fafc; padding: 11px; color: var(--ink); text-align: left; cursor: pointer; }
.topic-item:hover, .topic-item.active { border-color: rgba(255, 106, 0, 0.58); background: #fff7f0; }
.topic-item span { color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.topic-item strong { font-size: 14px; line-height: 1.45; }
.selected-topic { min-height: 54px; display: grid; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; padding: 12px; color: var(--muted); line-height: 1.5; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; padding: 4px; }
.tabs button { min-height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); padding: 0 10px; font-size: 13px; font-weight: 760; cursor: pointer; }
.tabs button.active { background: var(--orange); color: #fff; }
.output { min-height: 520px; margin-top: 12px; font-size: 14px; line-height: 1.68; }
.queue-list { display: grid; gap: 10px; }
.queue-item { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; padding: 12px; }
.queue-item strong { font-size: 14px; line-height: 1.45; }
.queue-item span { color: var(--muted); font-size: 12px; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.queue-actions button { min-height: 30px; border: 1px solid #d7dde8; border-radius: 4px; background: #fff; color: #374151; padding: 0 9px; font-size: 12px; font-weight: 760; cursor: pointer; }
.guide-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.75; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: 360px; border: 1px solid #d7dde8; border-left: 4px solid var(--orange); border-radius: 4px; background: #fff; padding: 12px 14px; color: #374151; box-shadow: 0 18px 46px rgba(17, 24, 39, 0.12); transform: translateY(120%); transition: transform 0.18s ease; }
.toast.show { transform: translateY(0); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; }
  .topbar nav { overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .workspace { padding-left: 16px; padding-right: 16px; }
}