/* Quiet input/result desk: local fonts, no external assets or build step. */
:root {
  --mist: #f2f6f8; --paper: #fff; --ink: #172c38; --teal: #176d70;
  --pale: #e1f1ee; --ochre: #8e4d22; --muted: #526875;
  --line: #d9e3e7; --soft: #eaf0f3; --warning: #fbf1e7;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --utility: "SFMono-Regular", Consolas, monospace;
  --shadow: 0 18px 55px rgb(23 44 56 / 5%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--mist); font: 400 15px/1.75 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-width: 2px; outline-offset: 2px; }
::selection { background: var(--pale); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; }
h3 { font-size: 17px; font-weight: 600; }
small { font-size: 12px; }
.page-width { max-width: 1280px; width: calc(100% - 96px); margin-inline: auto; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 0 48px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; display: flex; align-items: center; justify-content: center; width: 43px; height: 45px; color: var(--teal); border: 1px solid var(--teal); border-radius: 12px 12px 12px 3px; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -4px; padding-right: 4px; }
.brand-mark > span { position: absolute; right: -4px; bottom: -3px; width: 9px; height: 9px; background: var(--teal); border: 2px solid var(--mist); border-radius: 50%; }
.brand-name { font-weight: 600; font-size: 21px; letter-spacing: .06em; line-height: 1.2; }
.brand-name small { display: block; font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 400; margin-top: 7px; }
.header-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.header-nav > a { color: var(--muted); }
.header-nav .nav-login { color: var(--teal); border-left: 1px solid var(--line); padding-left: 30px; font-weight: 600; }
.nav-login span { margin-left: 8px; }
.nav-button { border: 0; border-left: 1px solid var(--line); padding: 0 0 0 28px; color: var(--teal); background: transparent; font-weight: 600; font-size: 13px; }
.nav-button span { margin-left: 8px; }
.environment-bar { min-height: 37px; border-block: 1px solid var(--line); background: rgb(225 241 238 / 48%); padding: 7px 48px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--teal); }
.status-dot, .tiny-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.environment-detail { color: var(--muted); margin-left: 12px; padding-left: 18px; border-left: 1px solid var(--line); }
.eyebrow { display: inline-block; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .11em; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.95; }
.subtle { color: var(--muted); font-size: 13px; }
.quiet-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 23px; min-height: 46px; border: 1px solid var(--teal); border-radius: 7px; color: var(--paper); background: var(--teal); font-size: 13px; line-height: 1.6; font-weight: 600; transition: background-color .15s, border-color .15s; }
.button:hover { background: #11585b; border-color: #11585b; text-decoration: none; }
.button:disabled { color: var(--muted); background: var(--soft); border-color: var(--line); opacity: .85; }
.button-secondary { color: var(--ink); background: var(--paper); border-color: var(--line); }
.button-secondary:hover { color: var(--teal); background: var(--pale); border-color: #bedbd6; }
.button-danger { color: var(--ochre); background: var(--warning); border-color: #e9d4c0; }
.button-danger:hover { color: var(--ochre); background: #f6e5d4; border-color: #d9b799; }
.button-full { width: 100%; justify-content: space-between; }
.button-large { padding: 15px 28px; font-size: 14px; min-height: 54px; }
.button-small { min-height: 36px; padding: 8px 14px; font-size: 12px; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: var(--teal); font-size: 12px; text-align: left; line-height: 1.8; }
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.text-link:disabled { color: var(--muted); }
.skip-link { position: fixed; left: 24px; top: -100px; z-index: 100; padding: 10px 18px; background: var(--teal); color: var(--paper); border-radius: 6px; }
.skip-link:focus { top: 16px; }
.site-footer { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 30px 48px 32px; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-company { color: var(--ink); font-size: 12px; }
.site-footer p { margin-top: 4px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--muted); }
.home-intro { display: grid; grid-template-columns: 1.12fr 1fr; gap: 90px; padding-top: 76px; padding-bottom: 72px; align-items: center; }
.home-copy h1 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 3.8vw, 54px); line-height: 1.48; letter-spacing: -.035em; margin-top: 19px; }
.home-copy h1 span { color: var(--teal); }
.home-copy .lead { max-width: 450px; margin-top: 25px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 34px; }
.home-copy .quiet-note { margin-top: 18px; }
.capability-sheet { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 3px solid var(--teal); border-radius: 0 0 14px 14px; padding: 26px 30px 19px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; color: var(--muted); font-size: 12px; }
.sheet-label { font-size: 10px; padding: 1px 8px; border-radius: 20px; color: var(--teal); background: var(--pale); }
.capability-row { display: flex; align-items: center; gap: 17px; padding: 20px 0; border-top: 1px solid var(--line); }
.modality-glyph { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--display); font-size: 21px; color: var(--teal); background: var(--mist); border: 1px solid var(--line); border-radius: 7px; }
.capability-row h2 { font-size: 15px; line-height: 1.5; }
.capability-row p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.capability-status { font-size: 10px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.sheet-footnote { border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 10px; }
.home-bottom { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; padding: 36px 0 45px; }
.home-bottom h2 { font-size: 22px; margin-top: 10px; }
.home-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: center; }
.home-principles p { display: grid; gap: 9px; }
.home-principles strong { font-size: 12px; font-weight: 500; }
.home-principles span { color: var(--muted); font-size: 11px; line-height: 1.9; }
.login-layout { display: grid; grid-template-columns: 1fr 425px; gap: 120px; max-width: 1050px; padding-top: 75px; padding-bottom: 85px; align-items: center; min-height: 650px; }
.login-aside h1 { font-family: var(--display); font-size: 43px; font-weight: 500; line-height: 1.6; margin-top: 18px; }
.login-aside .lead { max-width: 370px; margin-top: 22px; font-size: 14px; }
.login-guide { display: grid; gap: 13px; width: 270px; margin-top: 36px; }
.login-guide a { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 0 12px; font-size: 12px; }
.login-card, .feedback-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 36px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 27px; margin-top: 8px; }
.login-card > .subtle { margin-top: 10px; }
.stack-form { display: grid; gap: 19px; }
.login-card .stack-form { margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field label, fieldset legend, .receipt-query label { font-size: 12px; font-weight: 500; }
input[type="text"], input[type="password"], input[type="email"], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 12px 13px; font-size: 13px; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #758791; }
input:disabled, textarea:disabled, select:disabled { background: var(--mist); color: var(--muted); }
textarea { resize: vertical; min-height: 150px; }
select { min-height: 45px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; flex: 0 0 auto; margin: 4px 0 0; }
.login-help { font-size: 12px; color: var(--muted); margin-top: 26px; margin-bottom: 7px; }
.notice { padding: 12px 16px; border: 1px solid #c9dfdb; border-radius: 7px; background: var(--pale); color: var(--teal); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.notice p { margin-top: 3px; }
.notice-warning, .notice-error { color: var(--ochre); background: var(--warning); border-color: #ead8c6; }
.notice-muted { color: var(--muted); background: var(--mist); border-color: var(--line); }
.workspace { padding-top: 34px; padding-bottom: 26px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 23px; }
.workspace-heading h1 { font-size: 29px; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.workspace-simulated { display: inline-block; background: var(--pale); color: var(--teal); padding: 3px 9px; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 0; border-radius: 4px; }
#workspace-notice { margin-bottom: 18px; }
#companion-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.notice-actions { display: flex; gap: 8px; flex-shrink: 0; }
.modality-tabs { display: flex; align-items: center; gap: 3px; padding: 0 2px; }
.modality-tabs button { display: flex; align-items: center; gap: 10px; min-width: 150px; min-height: 54px; padding: 13px 22px; border: 1px solid transparent; border-bottom: none; border-radius: 9px 9px 0 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 500; }
.modality-tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--line); color: var(--teal); position: relative; }
.modality-tabs button[aria-selected="true"]::after { content: ""; position: absolute; height: 3px; bottom: -2px; left: 0; right: 0; background: var(--paper); z-index: 1; }
.modality-tabs small { font-size: 9px; font-weight: 400; margin-left: 5px; white-space: nowrap; }
.tab-glyph { font-size: 16px; font-family: var(--display); }
.generation-desk { display: grid; grid-template-columns: minmax(350px, .88fr) minmax(440px, 1.2fr); min-height: 580px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--teal); border-radius: 0 10px 10px 10px; box-shadow: 0 14px 45px rgb(23 44 56 / 3%); }
.composer { padding: 27px 30px 24px; border-right: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.panel-heading .subtle, .result-privacy { font-size: 10px; color: var(--muted); }
.composer h2 { font-size: 21px; }
.composer > .subtle { margin-top: 9px; font-size: 12px; min-height: 42px; }
.composer .stack-form { margin-top: 21px; gap: 17px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mode-field { display: grid; grid-template-columns: 1fr 1.14fr; gap: 9px; }
.mode-field legend { margin-bottom: 8px; }
.mode-option { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; cursor: pointer; line-height: 1.7; }
.mode-option:has(input:checked) { background: var(--pale); border-color: #a8d0c9; }
.mode-option:has(input:disabled) { color: var(--muted); cursor: not-allowed; background: var(--mist); }
.mode-option span { font-size: 12px; }
.mode-option small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.input-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.input-meta .over-limit { color: var(--ochre); }
.conversation-actions { display: flex; gap: 28px; justify-content: center; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 22px; }
.result-pane { padding: 27px 32px 24px; min-width: 0; }
.result-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.result-heading h2 { font-size: 21px; }
.result-state { font-size: 10px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); white-space: nowrap; }
.empty-result { text-align: center; padding: 81px 20px 65px; color: var(--muted); }
.empty-symbol { width: 64px; height: 72px; border: 1px solid #c5d7de; border-radius: 4px 16px 4px 4px; transform: rotate(-4deg); background: var(--mist); margin: 0 auto 24px; padding: 25px 14px; display: grid; gap: 7px; }
.empty-symbol span { height: 1px; background: #b0c8cd; }
.empty-symbol span:last-child { width: 65%; }
.empty-result h3 { color: var(--ink); font-size: 15px; }
.empty-result p { max-width: 280px; margin: 12px auto 0; font-size: 12px; }
.empty-label { display: inline-block; margin-top: 27px; font-size: 10px; color: #738891; }
.task-status { display: flex; align-items: flex-start; gap: 14px; padding: 17px; margin-top: 24px; border: 1px solid #c9dfdb; border-radius: 7px; background: #f4faf8; color: var(--teal); }
.task-status strong { font-size: 13px; font-weight: 600; }
.task-status p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.task-status.is-terminal { background: var(--warning); border-color: #ead8c6; color: var(--ochre); }
.activity-ring { width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid #c3dad5; border-top-color: var(--teal); border-radius: 50%; margin-top: 4px; animation: turn 1.1s linear infinite; }
.task-status.is-terminal .activity-ring { animation: none; border-color: currentColor; border-width: 1px; }
.request-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 9px; color: var(--muted); margin-top: 12px; }
.request-meta code { font-family: var(--utility); overflow-wrap: anywhere; font-size: 9px; }
.request-meta .text-link { font-size: 9px; margin-left: auto; }
.task-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.messages { display: grid; gap: 23px; padding-top: 23px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4d8d9 transparent; padding-right: 5px; }
.message { min-width: 0; }
.message-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.message-label { display: inline-flex; align-items: center; gap: 7px; }
.message-label .ai-tag { border: 1px solid #bfdcd5; color: var(--teal); padding: 1px 6px; border-radius: 3px; font-size: 9px; }
.message-body { padding: 14px 17px; background: var(--mist); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.is-ai .message-body { background: #f4faf8; border-color: #d9e8e4; }
.message .text-link { font-size: 10px; }
.media-result { margin-top: 25px; }
.media-label { display: flex; flex-wrap: wrap; gap: 9px; font-size: 10px; color: var(--teal); margin-bottom: 13px; align-items: center; }
.media-label .ai-tag { border: 1px solid #bfdcd5; padding: 1px 7px; border-radius: 4px; }
.media-frame { display: grid; place-items: center; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; min-height: 260px; overflow: hidden; }
.media-frame img, .media-frame video { display: block; width: 100%; max-height: 365px; object-fit: contain; }
.media-frame video { background: var(--ink); }
.media-frame.is-audio { min-height: 180px; gap: 11px; align-content: center; padding: 26px; }
.audio-glyph { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #bfdcd5; background: var(--pale); color: var(--teal); font-size: 22px; font-family: var(--display); }
.media-help { margin-top: 12px; font-size: 11px; color: var(--muted); }
.media-actions { display: flex; gap: 10px; align-items: center; margin-top: 15px; }
.result-expiry { font-size: 10px; color: var(--muted); margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line); }
.workspace-footnote { display: flex; gap: 20px; justify-content: space-between; color: var(--muted); font-size: 10px; padding: 20px 2px 3px; }
.workspace-footnote > span { display: inline-flex; align-items: center; gap: 8px; }
.legal-layout { display: grid; grid-template-columns: 255px 1fr; gap: 85px; max-width: 1090px; padding-block: 60px 75px; }
.legal-aside h1 { font-family: var(--display); font-size: 35px; font-weight: 500; margin-top: 16px; }
.legal-aside p { font-size: 12px; color: var(--muted); margin-top: 17px; }
.legal-aside nav { display: grid; gap: 16px; margin-top: 33px; font-size: 12px; }
.legal-aside nav a { color: var(--muted); }
.legal-aside nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.legal-version { color: var(--muted); font-size: 10px; font-family: var(--utility); border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 20px; }
.legal-body > .notice { margin-bottom: 26px; }
.legal-body section { margin-block: 27px; }
.legal-body h2 { font-size: 19px; margin-bottom: 11px; }
.legal-body p { font-size: 13px; color: var(--muted); margin-bottom: 10px; line-height: 2; }
.policy-contact { font-size: 12px; color: var(--muted); border-left: 2px solid var(--teal); padding-left: 15px; margin-top: 17px; }
.policy-facts { margin: 20px 0; padding: 9px 20px; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; }
.policy-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 15px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.policy-facts > div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.legal-end { display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); padding-top: 27px; margin-top: 40px; }
.feedback-layout { display: grid; grid-template-columns: .85fr 1.2fr; gap: 90px; max-width: 1100px; padding-block: 60px 70px; }
.feedback-aside h1 { font-family: var(--display); font-size: 38px; font-weight: 500; margin-top: 17px; }
.feedback-aside .lead { font-size: 14px; margin-top: 22px; }
.contact-card { background: var(--pale); border: 1px solid #c9dfdb; padding: 24px; border-radius: 8px; margin-top: 31px; }
.contact-card h2, .feedback-tips h2 { font-size: 14px; margin-bottom: 13px; }
.contact-card [data-contact-summary] { font-size: 12px; line-height: 1.95; color: var(--muted); }
.contact-card .quiet-note { font-size: 10px; margin-top: 18px; }
.feedback-tips { margin-top: 29px; }
.feedback-tips p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.feedback-card .stack-form { margin-top: 22px; }
.feedback-card h2 { font-size: 23px; }
.label-optional { color: var(--muted); font-weight: 400; font-size: 10px; padding-left: 6px; }
.guest-feedback { padding: 18px 0 22px; }
.guest-feedback h2 { margin-top: 11px; }
.guest-feedback p { color: var(--muted); font-size: 13px; margin: 20px 0 27px; }
.receipt-section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 26px; }
.receipt-section h2 { margin-top: 8px; font-size: 20px; margin-bottom: 16px; }
.operation-details { display: grid; gap: 10px; margin: 17px 0; font-size: 11px; }
.operation-details > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; }
.operation-details dd { font-family: var(--utility); font-size: 10px; }
.feedback-reply { color: var(--ink); font-size: 12px; line-height: 1.9; white-space: pre-wrap; background: var(--mist); border: 1px solid var(--line); padding: 14px; border-radius: 7px; margin: 17px 0; overflow-wrap: anywhere; }
.receipt-query { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 26px; }
.receipt-query h2 { font-size: 17px; margin-bottom: 14px; }
.inline-query { display: flex; gap: 8px; margin-top: 7px; }
.inline-query .button { flex: 0 0 auto; min-width: 70px; }
.receipt-query .quiet-note { font-size: 10px; margin-top: 10px; }
.dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); border: 1px solid var(--line); border-radius: 14px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 20px 90px rgb(23 44 56 / 18%); }
.dialog-small { width: min(470px, calc(100% - 32px)); }
.dialog::backdrop { background: rgb(23 44 56 / 33%); }
.dialog-inner { padding: 32px; }
.dialog h2 { margin-top: 8px; font-size: 25px; }
.dialog p { color: var(--muted); font-size: 13px; margin-top: 17px; line-height: 1.95; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 22px; line-height: 1; }
.check-option { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 1.85; cursor: pointer; }
.check-option small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.check-option:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
.consent-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; margin: 22px 0; }
.dialog .notice { margin-top: 19px; }
.data-scopes { display: grid; gap: 18px; padding-block: 17px; border-block: 1px solid var(--line); }
.data-scopes legend { margin-bottom: 13px; }
.data-actions { justify-content: space-between; margin-top: 3px; }
#data-form { margin-top: 25px; }
.dialog .quiet-note { font-size: 10px; }
.toast { position: fixed; z-index: 1000; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 22px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); border-radius: 7px; font-size: 12px; max-width: calc(100% - 32px); overflow-wrap: anywhere; }
.button.is-busy::after { content: ""; width: 13px; height: 13px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: turn 1.1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .home-intro { padding-block: 98px; } .workspace { padding-top: 45px; } }
@media (max-width: 1100px) {
  .page-width { width: calc(100% - 56px); }
  .site-header { padding-inline: 28px; }
  .home-intro { gap: 45px; }
  .home-bottom { gap: 38px; }
  .login-layout { gap: 55px; grid-template-columns: 1fr 380px; }
  .generation-desk { grid-template-columns: minmax(330px, .9fr) minmax(360px, 1fr); }
  .composer, .result-pane { padding-inline: 23px; }
  .mode-field { grid-template-columns: 1fr; }
  .mode-option small { display: inline; margin-left: 8px; }
  .legal-layout { grid-template-columns: 215px 1fr; gap: 50px; }
  .feedback-layout { gap: 45px; }
}
@media (max-width: 800px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { min-height: 90px; height: auto; padding: 20px 18px; gap: 20px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 37px; height: 40px; font-size: 24px; }
  .header-nav { gap: 15px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; }
  .header-nav .nav-login, .nav-button { border-left: 0; padding-left: 0; font-size: 11px; }
  .environment-bar { padding-inline: 18px; font-size: 10px; }
  .environment-detail { display: none; }
  .home-intro { grid-template-columns: 1fr; gap: 32px; padding-block: 45px; }
  .home-copy h1 { font-size: 39px; }
  .home-copy .lead { font-size: 14px; }
  .home-bottom { grid-template-columns: 1fr; gap: 26px; padding-block: 27px 35px; }
  .home-principles { gap: 18px; }
  .site-footer { padding: 24px 18px; flex-direction: column; align-items: flex-start; gap: 15px; }
  .login-layout { grid-template-columns: 1fr; max-width: 500px; gap: 36px; padding-block: 40px 45px; min-height: 0; }
  .login-aside h1 { font-size: 34px; }
  .login-guide { display: flex; width: auto; gap: 25px; margin-top: 22px; }
  .login-guide a { border-bottom: 0; padding: 0; gap: 5px; font-size: 11px; }
  .login-card, .feedback-card { padding: 25px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h1 { font-size: 23px; }
  .workspace-heading .eyebrow { font-size: 9px; }
  .workspace-heading > .button { font-size: 10px; padding: 7px 10px; white-space: nowrap; }
  .modality-tabs { justify-content: space-between; gap: 0; }
  .modality-tabs button { min-width: 0; flex: 1; padding: 12px 8px; justify-content: center; font-size: 12px; gap: 6px; }
  .modality-tabs small { display: none; }
  .generation-desk { grid-template-columns: 1fr; }
  .composer { border-right: 0; border-bottom: 1px solid var(--line); }
  .mode-field { grid-template-columns: 1fr 1.1fr; }
  .mode-option small { display: block; margin-left: 0; }
  .result-pane { min-height: 390px; }
  .empty-result { padding-block: 50px; }
  .workspace-footnote { flex-wrap: wrap; gap: 12px; }
  #companion-notice { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 38px 45px; }
  .legal-aside nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
  .legal-aside h1 { font-size: 31px; }
  .feedback-layout { grid-template-columns: 1fr; padding-block: 38px 45px; gap: 31px; }
  .feedback-aside h1 { font-size: 32px; }
  .feedback-tips { display: none; }
  .dialog-inner { padding: 25px; }
}
@media (max-width: 480px) {
  .header-nav > a[href="/ai-notice"] { display: none; }
  .home-copy h1 { font-size: 32px; }
  .hero-actions { gap: 20px; }
  .home-principles { grid-template-columns: 1fr; gap: 15px; }
  .home-principles p { grid-template-columns: 82px 1fr; }
  .capability-sheet { padding-inline: 20px; }
  .capability-row { gap: 12px; }
  .capability-row p { font-size: 10px; }
  .workspace-heading { flex-wrap: wrap; gap: 14px; }
  .workspace-heading h1 { font-size: 23px; }
  .mode-field { grid-template-columns: 1fr; }
  .mode-option small { display: inline; margin-left: 8px; }
  .policy-facts > div { grid-template-columns: 105px 1fr; gap: 8px; }
  .legal-end { flex-direction: column; align-items: flex-start; gap: 18px; }
  .data-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.public-controls { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1.4fr; gap: 20px; margin: 0 0 24px; padding: 14px 0; border-block: 1px solid var(--line); }
.public-controls dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.public-controls dd { margin: 0; font-size: 12px; line-height: 1.65; }
@media (max-width: 800px) { .public-controls { grid-template-columns: 1fr; gap: 12px; } }

/* Public introduction filing footer. */
.intro-filing { text-align: center; padding: 0 24px 24px; }
