:root {
  --canvas: #eef1ef;
  --paper: #ffffff;
  --ink: #1f2b2a;
  --muted: #71807d;
  --line: #d8e1dd;
  --teal: #287c73;
  --teal-soft: #e3f0ed;
  --coral: #c9654c;
  --coral-soft: #fff0ea;
  --amber: #ac762e;
  --shadow: 0 12px 30px rgba(31, 43, 42, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); font: 14px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--ink); color: #fff; font: 700 16px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.topbar-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.xiumi-connection { display: inline-flex; align-items: center; gap: 7px; margin-left: 5px; padding-left: 10px; border-left: 1px solid var(--line); }
.xiumi-connection #xiumi-status-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xiumi-connection #xiumi-status-text.is-connected { color: var(--teal); font-weight: 700; }
.topbar-action { min-height: 27px; padding: 2px 8px; border: 1px solid #bdd7d0; border-radius: 4px; background: var(--teal-soft); color: #236b62; font-size: 11px; font-weight: 700; }
.topbar-action:hover { border-color: var(--teal); color: var(--teal); }

.workspace { width: min(1440px, calc(100% - 68px)); min-width: 0; margin: 0 auto; padding: 42px 0 64px; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; min-width: 0; margin-bottom: 30px; }
.intro-row > div { min-width: 0; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 10px; font: 650 31px/1.22 Georgia, "Songti SC", serif; }
.intro-copy { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.intro-note { min-width: 210px; padding: 10px 0 2px 18px; border-left: 2px solid var(--coral); }
.note-label, .intro-note strong, .intro-note .muted { display: block; }
.note-label { color: var(--muted); font-size: 11px; }
.intro-note strong { margin: 2px 0; font-size: 16px; }

.xiumi-access-gate { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: min(980px, 100%); margin: 0 auto 18px; padding: 14px 16px; border: 1px solid #e5c8bd; border-left: 3px solid var(--coral); border-radius: 6px; background: var(--coral-soft); color: #834431; }
.xiumi-access-gate > div { min-width: 0; }
.xiumi-access-gate strong, .xiumi-access-gate span { display: block; }
.xiumi-access-gate strong { margin-bottom: 2px; color: #713b2c; font-size: 13px; }
.xiumi-access-gate span { font-size: 11px; overflow-wrap: anywhere; }
.xiumi-access-gate .primary-button { flex: 0 0 auto; min-height: 36px; }
body.xiumi-locked .workflow-stack { filter: grayscale(.18); opacity: .66; }

.workflow-steps { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(30px, .28fr) minmax(150px, 1fr) minmax(30px, .28fr) minmax(150px, 1fr); align-items: center; width: min(980px, 100%); margin: 0 auto 18px; }
.workflow-step { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.72); color: var(--muted); text-align: left; }
.workflow-step:hover:not(:disabled) { border-color: #a7c9c1; background: #fff; }
.workflow-step:disabled { cursor: not-allowed; opacity: .6; }
.workflow-step > span:last-child { min-width: 0; }
.workflow-step strong, .workflow-step small { display: block; overflow-wrap: anywhere; }
.workflow-step strong { color: inherit; font-size: 13px; }
.workflow-step small { margin-top: 1px; font-size: 10px; font-weight: 500; }
.workflow-step-number { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: 700 11px Georgia, serif; }
.workflow-step.is-active { border-color: var(--teal); background: var(--teal-soft); color: #236b62; box-shadow: 0 5px 18px rgba(40,124,115,.10); }
.workflow-step.is-active .workflow-step-number { border-color: var(--teal); background: var(--teal); color: #fff; }
.workflow-step.is-complete { border-color: #b9d7cf; color: var(--ink); }
.workflow-step.is-complete .workflow-step-number { border-color: var(--teal); color: var(--teal); }
.workflow-step.is-complete .workflow-step-number::after { content: "✓"; position: absolute; transform: translate(12px, -12px); width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font: 700 9px/1 sans-serif; }
.workflow-connector { height: 1px; background: var(--line); }
.workflow-connector.is-complete { background: var(--teal); }
.workflow-stack { position: relative; width: min(1180px, calc(100% - 18px)); min-height: 650px; margin: 0 auto; isolation: isolate; }
.workflow-stack::before, .workflow-stack::after { content: ""; position: absolute; inset: 10px -9px -10px 9px; z-index: -2; border: 1px solid #d9e1dd; border-radius: 7px; background: #e7ece9; }
.workflow-stack::after { inset: 5px -5px -5px 5px; z-index: -1; background: #f5f7f6; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: var(--shadow); }
.workflow-panel { width: 100%; min-height: 640px; padding: 27px 30px 30px; }
.conversation-panel { margin: 0 auto; }
.brief-panel { min-height: 640px; }
.result-panel { min-height: 720px; margin: 0; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.panel-heading h2 { margin-bottom: 0; font-size: 17px; }
.panel-index { color: var(--coral); font: 700 14px Georgia, serif; }
.muted { color: var(--muted); font-size: 11px; }

.chat-messages { height: 370px; overflow-y: auto; padding: 4px 4px 8px 0; border-bottom: 1px solid var(--line); scroll-behavior: smooth; }
.message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; min-width: 0; margin: 0 0 17px; align-items: start; }
.message-role { padding-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.message-text { max-width: 92%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf9; color: #344441; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.message-user .message-text { justify-self: end; border-color: #c7e0da; background: var(--teal-soft); color: #245b55; }
.message-user { grid-template-columns: minmax(0, 1fr) 38px; }
.message-user .message-role { grid-column: 2; grid-row: 1; text-align: right; }
.message-user .message-text { grid-column: 1; grid-row: 1; }
.message-options { display: flex; flex-wrap: wrap; gap: 7px; max-width: 92%; margin-top: 8px; }
.choice-button { min-height: 31px; padding: 4px 10px; border: 1px solid #b9d7cf; border-radius: 4px; background: #f5fbf8; color: #236b62; font-size: 11px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.choice-button:hover { border-color: var(--teal); background: var(--teal-soft); }
.choice-button.is-selected { border-color: var(--teal); background: var(--teal); color: #fff; }
.choice-button-custom { border-style: dashed; background: #fff; color: var(--muted); }
.choice-button:disabled { cursor: default; opacity: .58; }
.chat-form { padding-top: 15px; }
.chat-form textarea { width: 100%; min-height: 78px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfb; color: var(--ink); outline: none; line-height: 1.65; }
.chat-form textarea:focus, input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: none; }
.chat-actions { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inline-error, .form-error { color: #a4442e; font-size: 12px; line-height: 1.5; }
.conversation-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.conversation-next { display: flex; justify-content: flex-end; margin-top: 12px; }
.conversation-next .secondary-button { width: auto; min-width: 180px; padding: 0 16px; }

.brief-lede { margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.state-pill, .result-status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 4px; background: #edf2ef; color: var(--muted); font-size: 11px; white-space: nowrap; }
.secondary-button, .primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; border-radius: 5px; font-weight: 700; }
.secondary-button { width: 100%; border: 1px solid #bdd7d0; background: var(--teal-soft); color: #236b62; }
.secondary-button:hover { border-color: var(--teal); }
.primary-button { border: 0; background: var(--ink); color: #fff; padding: 0 15px; }
.primary-button:hover { background: var(--teal); }
.chat-actions .primary-button { min-width: 94px; }
.brief-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 30px; align-items: start; }
.brief-card { min-width: 0; padding-right: 8px; }
.brief-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #e9efeb; }
.brief-row:last-of-type { border-bottom: 0; }
.brief-row > span { color: var(--muted); font-size: 11px; }
.brief-row strong { min-width: 0; color: #344441; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.brief-row-block { display: block; }
.brief-row-block > span { display: block; margin-bottom: 5px; }
.brief-row ul { margin: 0; padding-left: 18px; color: #344441; font-size: 12px; }
.brief-row li + li { margin-top: 3px; }
.brief-actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; }
.brief-actions .primary-button { min-height: 38px; }
.text-button { border: 0; padding: 4px 0; background: transparent; color: var(--teal); font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--coral); }
.brief-empty { grid-column: 1 / -1; display: grid; min-height: 410px; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-mark { margin-bottom: 12px; color: var(--coral); font: 700 34px Georgia, serif; }
.brief-empty p { margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.brief-empty small { font-size: 11px; }
.generation-options { min-width: 0; padding-left: 26px; border-left: 1px solid var(--line); }
.option-heading { display: flex; justify-content: space-between; margin-bottom: 11px; color: #43534e; font-size: 12px; font-weight: 700; }
.compact-field { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 9px; }
.compact-field > span { color: var(--muted); font-size: 11px; }
select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb; color: var(--ink); }

.result-heading { margin-bottom: 18px; }
.result-status.idle { background: #edf2ef; color: var(--muted); }
.result-status.running { background: var(--teal-soft); color: var(--teal); }
.result-status.success { background: #e8f4ea; color: #34754c; }
.result-status.failed { background: var(--coral-soft); color: #a7452d; }
.pipeline-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; position: relative; margin: 4px 0 8px; padding: 0 2px; }
.pipeline-line { height: 1px; position: absolute; top: 12px; left: 7%; right: 7%; z-index: 0; background: var(--line); }
.pipeline-step { position: relative; z-index: 1; color: #9aa7a2; text-align: center; font-size: 10px; }
.pipeline-step span { width: 24px; height: 24px; display: grid; place-items: center; margin: 0 auto 6px; border: 1px solid #cdd8d2; border-radius: 50%; background: var(--paper); font-size: 10px; }
.pipeline-step.active { color: var(--teal); }.pipeline-step.active span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.pipeline-step.done { color: var(--ink); }.pipeline-step.done span { border-color: var(--teal); background: var(--teal); color: #fff; }
.pipeline-step.failed { color: var(--coral); }.pipeline-step.failed span { border-color: var(--coral); background: var(--coral-soft); color: var(--coral); }
.stage-label { min-height: 18px; margin: 0 0 20px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state { display: grid; min-height: 455px; place-content: center; justify-items: center; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.empty-number { margin-bottom: 14px; color: var(--coral); font: 700 38px Georgia, serif; }.empty-state h3 { margin-bottom: 7px; color: var(--ink); font-size: 16px; }.empty-state p { margin: 0; font-size: 12px; }
.result-content { border-top: 1px solid var(--line); padding-top: 20px; }.result-alert { margin-bottom: 16px; padding: 10px 12px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: #8c402d; font-size: 12px; }
.result-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }.meta-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }.result-overview strong { display: block; font-size: 14px; }
.research-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0 19px; padding-top: 13px; border-top: 1px solid var(--line); }.research-overview > div { display: grid; gap: 3px; }
.asset-sources { margin: 15px 0 19px; padding-top: 13px; border-top: 1px solid var(--line); }.asset-source-list { display: grid; gap: 7px; }.asset-source-item { padding: 8px 9px; border: 1px solid #e6ece7; background: #fbfdfb; color: #42504a; font-size: 11px; overflow-wrap: anywhere; }
.visual-context { margin: 15px 0 19px; padding-top: 13px; border-top: 1px solid var(--line); }.visual-context details { border: 1px solid #e6ece7; background: #fbfdfb; }.visual-context summary { padding: 8px 9px; color: var(--teal); cursor: pointer; font-size: 11px; }.visual-context pre { max-height: 260px; margin: 0; padding: 9px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #42504a; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.subheading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.subheading h3 { margin: 0; font-size: 14px; }
.paper-preview { margin: 24px 0 0; }.paper-preview a { display: block; max-width: 340px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 0; box-shadow: none; }.paper-preview img { display: block; width: 100%; height: auto; }
.article-preview { max-width: 650px; margin: 0 auto; padding: 15px 18px 20px; border-right: 1px solid #edf1ed; border-left: 1px solid #edf1ed; background: #fff; }.article-theme { margin-bottom: 8px; color: var(--teal); text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }.article-preview h3 { margin: 0 0 23px; color: var(--ink); text-align: center; font: 700 25px/1.35 Georgia, "Songti SC", serif; }.article-summary { margin-bottom: 24px; color: #68756f; font-size: 16px; line-height: 1.8; }.article-section { margin-bottom: 28px; }.article-image { display: block; width: 100%; max-height: 280px; margin-bottom: 13px; object-fit: cover; border-radius: 0; }.section-kind { display: none; }.article-section h4 { margin: 0 0 10px; color: var(--coral); font-size: 17px; line-height: 1.5; }.article-section p { margin: 0; color: #42504a; font-size: 16px; line-height: 1.85; }.article-items { margin: 12px 0 0; padding-left: 0; list-style: none; color: #42504a; font-size: 16px; }.article-items li { display: grid; grid-template-columns: 20px minmax(0, auto); column-gap: 4px; padding: 9px 0; border-bottom: 1px solid #edf1ed; line-height: 1.75; }.item-marker { color: var(--preview-accent, var(--teal)); font-weight: 900; }.article-items strong { color: var(--ink); font-weight: 750; }.item-body { grid-column: 2; color: #42504a; }
.article-section[data-heading-level="1"] h4 { padding: 0 0 10px 13px; border-left: 4px solid var(--preview-accent, var(--coral)); border-bottom: 1px solid #edf1ed; color: var(--ink); font-size: 20px; line-height: 1.45; }
.article-section[data-heading-level="2"] { margin-left: 14px; padding-left: 15px; border-left: 1px solid #dce7e2; }
.article-section[data-heading-level="2"] h4 { padding-left: 10px; border-left: 3px solid var(--preview-accent, var(--teal)); color: var(--ink); font-size: 17px; }
.article-preview[data-recipe="signal-red"] { --preview-accent: #a63d2d; --preview-soft: #f8ece8; }
.article-preview[data-recipe="sage-notebook"] { --preview-accent: #2f5d50; --preview-soft: #eef1e8; }
.article-preview[data-recipe="blueprint-data"] { --preview-accent: #164b73; --preview-soft: #eaf2f7; }
.article-preview[data-recipe="zine-cutout"] { --preview-accent: #1e4f9a; --preview-soft: #f4ebd2; }
.article-preview[data-recipe="quiet-qa"] { --preview-accent: #6e3d52; --preview-soft: #f3ecef; }
.article-preview[data-recipe="graphite-editorial"] { --preview-accent: #2f6475; --preview-soft: #f2f5f6; }
.article-preview[data-recipe] .article-theme, .article-preview[data-recipe] .item-marker { color: var(--preview-accent, var(--teal)); }
.article-preview[data-recipe] .article-section h4 { color: var(--preview-accent, var(--coral)); }
.article-preview[data-recipe="signal-red"] .article-section:nth-of-type(odd), .article-preview[data-recipe="zine-cutout"] .article-section:nth-of-type(odd) { border-left: 3px solid var(--preview-accent); padding-left: 12px; }
.article-preview[data-recipe="sage-notebook"] .article-section, .article-preview[data-recipe="quiet-qa"] .article-section { padding: 13px 14px; border-top: 1px solid var(--preview-accent); background: var(--preview-soft); }
.article-preview[data-recipe="blueprint-data"] .article-section[data-heading-level="1"] h4 { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }
.article-preview[data-recipe="zine-cutout"] h3 { text-align: left; font-size: 29px; }
.article-preview[data-recipe="graphite-editorial"] h3 { text-align: left; border-left: 4px solid var(--preview-accent); padding-left: 12px; }
.review-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.check-list { display: flex; flex-wrap: wrap; gap: 7px; }.check-chip { padding: 5px 8px; border-radius: 4px; background: #edf5ef; color: #34754c; font-size: 11px; }.check-chip.fail { background: var(--coral-soft); color: #a7452d; }.issue-list { margin-top: 10px; padding: 9px 11px; background: #fff8f5; color: #8c402d; font-size: 12px; }.issue-list div + div { margin-top: 5px; }
.draft-result { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; padding: 13px; border: 1px solid #cbe0d7; border-radius: 5px; background: var(--teal-soft); }.draft-result strong { font-size: 13px; }.draft-result a { color: #216d68; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.manual-revision-action { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 12px; padding: 13px; border: 1px solid #d9e3df; background: #fbfcfb; }.manual-revision-action strong { display: block; color: var(--ink); font-size: 13px; }.manual-revision-action .primary-button { min-height: 38px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.modal-shell { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; overflow-y: auto; box-sizing: border-box; }
.modal-shell[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(31,43,42,.42); }
.login-modal { position: relative; width: min(430px, calc(100vw - 24px)); max-width: calc(100vw - 24px); min-width: 0; padding: 25px 26px 22px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 22px 70px rgba(31,43,42,.2); box-sizing: border-box; }
.modal-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 13px; }
.modal-heading h2 { margin: 0; font-size: 19px; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb; color: var(--muted); font-size: 20px; line-height: 1; }
.modal-close:hover { border-color: var(--coral); color: var(--coral); }
.modal-copy { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.xiumi-login-form { display: grid; gap: 12px; }
.login-field { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; }
.login-field > span { color: var(--muted); font-size: 12px; }
.login-field input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb; color: var(--ink); outline: none; box-sizing: border-box; }
.login-area { max-width: 170px; }
.login-area input { text-align: center; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 5px; }
.modal-actions .primary-button { min-height: 39px; }
.modal-actions .text-button { min-height: 30px; }

@media (max-width: 980px) { .workspace { width: min(100% - 32px, 760px); padding-top: 28px; }.intro-row { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }.intro-note { min-width: 0; }.workflow-steps { grid-template-columns: minmax(120px, 1fr) 20px minmax(120px, 1fr) 20px minmax(120px, 1fr); }.workflow-stack { width: calc(100% - 12px); min-height: 560px; }.workflow-panel { min-height: 560px; }.brief-workspace { grid-template-columns: 1fr; gap: 22px; }.generation-options { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }.result-panel { min-height: 560px; } }
@media (max-width: 560px) { .topbar { height: 60px; padding: 0 17px; }.topbar-meta { display: flex; gap: 5px; font-size: 0; }.topbar-meta > span:nth-child(2) { display: none; }.xiumi-connection #xiumi-status-text { display: none; }.workspace { width: calc(100% - 24px); padding-top: 24px; }.intro-row > div:first-child { width: 100%; } h1 { width: 100%; max-width: 100%; font-size: 26px; overflow-wrap: anywhere; }.intro-copy { overflow-wrap: anywhere; }.xiumi-access-gate { align-items: stretch; flex-direction: column; gap: 10px; }.xiumi-access-gate .primary-button { width: 100%; }.workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 13px; }.workflow-connector { display: none; }.workflow-step { min-height: 56px; grid-template-columns: 27px minmax(0, 1fr); gap: 6px; padding: 7px; }.workflow-step-number { width: 27px; height: 27px; font-size: 9px; }.workflow-step strong { font-size: 11px; }.workflow-step small { display: none; }.workflow-stack { width: calc(100% - 8px); min-height: 520px; }.workflow-stack::before { inset: 8px -6px -8px 6px; }.workflow-stack::after { inset: 4px -3px -4px 3px; }.workflow-panel { min-height: 520px; padding: 18px 16px; }.chat-messages { height: 300px; }.conversation-next .secondary-button { width: 100%; }.message-options { max-width: 100%; }.choice-button { max-width: 100%; }.pipeline-step { font-size: 9px; overflow-wrap: anywhere; }.pipeline-step span { width: 21px; height: 21px; }.result-overview, .research-overview { grid-template-columns: 1fr; gap: 12px; }.article-preview h3 { font-size: 22px; overflow-wrap: anywhere; }.draft-result, .manual-revision-action, .brief-actions, .conversation-footer { align-items: flex-start; flex-direction: column; }.draft-result a, .manual-revision-action .primary-button { width: 100%; }.brief-actions .primary-button { width: 100%; }.modal-shell { padding: 12px; }.login-modal { padding: 21px 18px 18px; }.modal-copy { font-size: 11px; }.login-area { max-width: none; }.modal-actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }.modal-actions .primary-button { width: 100%; }.modal-actions .text-button { width: 100%; }.xiumi-connection { margin-left: 0; padding-left: 0; border-left: 0; } }
