:root { color-scheme: light; --bg: #f3f5f1; --surface: #fff; --surface-subtle: #f8faf7; --ink: #20251f; --muted: #626a61; --quiet: #858c83; --line: #d8ddd5; --line-strong: #aeb6ab; --accent: #16824b; --accent-soft: #e1f2e7; --dark: #202820; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.launcher-topbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand small { color: var(--quiet); font-size: 9px; font-weight: 700; }
.brand-mark { position: relative; display: block; width: 21px; height: 21px; border: 2px solid currentColor; border-radius: 4px; }
.brand-mark::before, .brand-mark::after, .brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); content: ""; }
.brand-mark::before { top: 3px; left: 3px; } .brand-mark::after { top: 3px; right: 3px; } .brand-mark i { right: 3px; bottom: 3px; }
.launcher-topbar nav { display: flex; align-items: center; gap: 22px; }
.launcher-topbar nav a { color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.launcher-topbar nav a:hover, .launcher-topbar nav a:focus-visible { color: var(--ink); }

.launcher-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0 80px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 12px 2px 14px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; font-size: 30px; line-height: 1.15; text-wrap: balance; }
.page-heading p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-context-link { color: var(--accent); font-size: 11px; font-weight: 800; text-underline-offset: 4px; white-space: nowrap; }

.mode-picker { padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.mode-picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.mode-picker h2 { margin: 0; font-size: 14px; }
.mode-picker p { margin: 0; color: var(--muted); font-size: 11px; }
.intent-nav { width: 100%; }
.mode-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow: hidden; }
.mode-tabs button { position: relative; display: grid; min-width: 0; min-height: 54px; align-content: center; gap: 3px; padding: 8px 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.mode-tabs button:last-child { border-right: 0; }
.mode-tabs button::after { position: absolute; right: 13px; bottom: 0; left: 13px; height: 3px; background: transparent; content: ""; }
.mode-tabs button:hover { background: var(--surface-subtle); }
.mode-tabs button[aria-selected="true"] { background: var(--accent-soft); }
.mode-tabs button[aria-selected="true"]::after { background: var(--accent); }
.mode-tabs button:focus-visible { z-index: 1; outline: 3px solid rgba(22,130,75,.25); outline-offset: -3px; }
.mode-tabs strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mode-tabs small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.launcher-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 54px; align-items: start; margin-top: 12px; }
.configuration-column { min-width: 0; }
.config-section { padding: 0 0 32px; }
.config-section + .config-section { padding-top: 30px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 13px; align-items: start; margin-bottom: 12px; }
.section-heading > span { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 19px; line-height: 1.3; text-wrap: balance; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.section-heading a { align-self: center; color: var(--accent); font-size: 11px; font-weight: 800; text-underline-offset: 4px; white-space: nowrap; }

.control-group { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.control-group legend { margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.target-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid label { position: relative; display: grid; min-width: 0; min-height: 74px; align-content: center; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.58); cursor: pointer; }
.choice-grid label:hover, .choice-list label:hover { border-color: var(--line-strong); background: var(--surface); }
.choice-grid label:has(input:checked), .choice-list label:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); }
.choice-grid input, .choice-list input, .segmented-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-grid label:has(input:focus-visible), .choice-list label:has(input:focus-visible), .segmented-control label:has(input:focus-visible) { outline: 3px solid rgba(22,130,75,.22); outline-offset: 2px; }
.choice-grid strong, .choice-list strong { font-size: 12px; line-height: 1.35; }
.choice-grid small, .choice-list small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.choice-list { display: grid; gap: 8px; }
.choice-list label { position: relative; display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.5); cursor: pointer; }
.choice-list label > span { display: grid; gap: 3px; }
.permission-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.text-field { display: grid; gap: 7px; margin-top: 14px; }
.text-field > span { color: var(--ink); font-size: 11px; font-weight: 800; }
.text-field input, .text-field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; background: var(--surface); color: var(--ink); font-size: 13px; }
.text-field input { min-height: 44px; padding: 0 13px; }
.text-field textarea { min-height: 106px; resize: vertical; padding: 12px 13px; line-height: 1.6; }
.text-field input::placeholder, .text-field textarea::placeholder { color: #7d847b; opacity: 1; }
.text-field input:focus, .text-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,130,75,.12); }
.field-error { min-height: 14px; color: #b6422c; font-size: 10px; }
.text-field.has-error input, .text-field.has-error textarea { border-color: #b6422c; }

.segmented-control { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #e5e9e3; }
.segmented-control label { position: relative; cursor: pointer; }
.segmented-control span { display: grid; min-height: 40px; place-items: center; padding: 6px 8px; border-radius: 3px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
.segmented-control input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(32,37,31,.12); }
.target-type-control { grid-template-columns: repeat(4, minmax(0,1fr)); }
.target-field { margin-top: 10px; }
.reference-source { margin-bottom: 12px; }
.reference-content { min-height: 88px; }
.library-reference, .upload-preview { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 82px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.library-reference img, .upload-preview img { width: 72px; height: 66px; border-radius: 4px; object-fit: cover; }
.library-reference label, .upload-preview > div { display: grid; min-width: 0; gap: 5px; }
.library-reference label span { color: var(--muted); font-size: 10px; }
.library-reference select { min-height: 32px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; }
.library-reference a, .upload-preview button { padding: 8px; border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 800; text-decoration: none; }
.upload-preview strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview small { color: var(--muted); font-size: 10px; }
.upload-zone { display: grid; min-height: 90px; place-items: center; align-content: center; gap: 5px; border: 1px dashed var(--line-strong); border-radius: 6px; background: rgba(255,255,255,.5); cursor: pointer; }
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--accent); background: var(--surface); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--dark); color: #fff; font-size: 18px; font-weight: 300; }
.upload-zone strong { font-size: 12px; }.upload-zone small, .privacy-note { color: var(--muted); font-size: 10px; }.privacy-note { margin: 8px 0 0; color: var(--quiet); }
.reference-empty { margin: 0; padding: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; }
.system-control { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.system-recommendation { margin: 10px 0 0; padding: 10px 12px; background: var(--accent-soft); color: #3f5145; font-size: 11px; line-height: 1.5; }
.lab-link { display: inline-flex; min-height: 38px; align-items: center; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; }.lab-link:hover { border-color: var(--accent); color: var(--accent); }

.prompt-column { position: sticky; top: 20px; min-width: 0; }
.prompt-panel { overflow: hidden; border: 1px solid #394339; border-radius: 8px; background: var(--dark); color: #f5f8f3; box-shadow: 0 20px 46px rgba(32,40,32,.16); }
.prompt-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.13); }.prompt-heading p { margin: 0; color: #aeb9ad; font-size: 9px; font-weight: 800; letter-spacing: .08em; }.prompt-heading h2 { margin: 5px 0 0; font-size: 20px; }.ready-state { display: inline-flex; align-items: center; gap: 7px; color: #bbc4b9; font-size: 10px; white-space: nowrap; }.ready-state i { width: 7px; height: 7px; border-radius: 50%; background: #a4ada1; }.ready-state.is-ready i { background: #64e893; box-shadow: 0 0 0 4px rgba(100,232,147,.1); }
.missing-state { margin: 16px 20px 0; padding: 11px 12px; border: 1px solid rgba(255,210,123,.28); border-radius: 5px; background: rgba(255,210,123,.08); color: #ffe2aa; font-size: 11px; line-height: 1.5; }.task-summary { display: grid; grid-template-columns: 78px minmax(0,1fr); margin: 0; padding: 14px 20px; }.task-summary dt, .task-summary dd { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.09); }.task-summary dt { color: #9eaa9c; font-size: 10px; }.task-summary dd { min-width: 0; margin: 0; color: #eef4ec; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }.task-summary dt:last-of-type, .task-summary dd:last-of-type { border-bottom: 0; }
.prompt-details { border-top: 1px solid rgba(255,255,255,.13); }.prompt-details summary { padding: 14px 20px; color: #dbe4d8; font-size: 11px; font-weight: 800; cursor: pointer; }.prompt-details summary:hover { background: rgba(255,255,255,.04); }.prompt-output { max-height: 360px; overflow: auto; margin: 0; padding: 4px 20px 20px; color: #eaf0e8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }.prompt-output:focus-visible { outline: 2px solid #64e893; outline-offset: -4px; }
.prompt-actions { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 7px; padding: 13px; border-top: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); }.prompt-actions button { min-height: 42px; padding: 0 12px; border-radius: 4px; font-size: 10px; font-weight: 800; white-space: nowrap; }.copy-button { border: 1px solid #64e893; background: #64e893; color: #112116; }.copy-button:hover:not(:disabled) { background: #7bf0a5; }.copy-button:disabled { border-color: #687067; background: #4c554c; color: #d1d7cf; cursor: not-allowed; }.secondary-button { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #d5ddd3; }.secondary-button:hover:not(:disabled) { border-color: rgba(255,255,255,.48); color: #fff; }.secondary-button:disabled { cursor: not-allowed; opacity: .45; }.prompt-actions button:active:not(:disabled) { transform: translateY(1px); }.handoff-note { margin: 0; padding: 0 18px 15px; color: #aeb7ab; font-size: 9px; line-height: 1.5; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; padding: 11px 15px; border-radius: 4px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 11px; font-weight: 750; }

@media (max-width: 1080px) { .launcher-grid { grid-template-columns: minmax(0,1fr) 350px; gap: 32px; }.target-type-grid, .system-control { grid-template-columns: repeat(2, minmax(0,1fr)); }.permission-list { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .launcher-shell { width: min(100% - 32px, 680px); }.mode-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }.mode-tabs button:nth-child(2n) { border-right: 0; }.mode-tabs button:last-child { grid-column: 1 / -1; border-right: 0; }.page-heading { display: grid; gap: 8px; }.launcher-grid { grid-template-columns: 1fr; }.prompt-column { position: static; } }
@media (max-width: 600px) { .launcher-topbar { flex-wrap: wrap; gap: 9px; padding: 10px 16px; }.brand small { display: none; }.launcher-topbar nav { width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }.launcher-topbar nav a { flex: 0 0 auto; }.launcher-shell { width: calc(100% - 24px); padding-top: 8px; }.page-heading { padding: 10px 2px 12px; }.page-heading h1 { font-size: 24px; }.page-heading p { margin-top: 4px; }.page-context-link { display: none; }.mode-picker { padding: 0 0 8px; }.mode-picker-heading { display: none; }.mode-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }.mode-tabs::-webkit-scrollbar { display: none; }.mode-tabs button, .mode-tabs button:nth-child(2n), .mode-tabs button:last-child { min-height: 52px; flex: 0 0 156px; border-right: 1px solid var(--line); border-bottom: 0; scroll-snap-align: start; }.mode-tabs button:last-child { grid-column: auto; border-right: 0; }.launcher-grid { margin-top: 10px; }.choice-grid, .target-type-grid, .check-grid, .system-control, .permission-list { grid-template-columns: 1fr; }.segmented-control { grid-template-columns: 1fr; }.library-reference, .upload-preview { grid-template-columns: 60px minmax(0,1fr); }.library-reference img, .upload-preview img { width: 60px; height: 58px; }.library-reference a, .upload-preview button { grid-column: 2; justify-self: start; padding: 4px 0; }.prompt-actions { grid-template-columns: 1fr 1fr; }.copy-button { grid-column: 1 / -1; }.toast { right: 12px; bottom: 12px; left: 12px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
