.public-nav{display:flex;justify-content:space-between;gap:16px;width:min(1180px,calc(100% - 32px));margin:20px auto;font-size:14px}.public-nav a{color:#176b4d}.topic-nav-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}.history-open,.history-refresh{border:1px solid #176b4d;background:#fffdf7;color:#176b4d;border-radius:999px;padding:8px 16px;font-weight:700;cursor:pointer}.history-open:hover,.history-refresh:hover{background:#eaf5ed}.history-save-notice{color:#176b4d;line-height:1.6;font-size:14px}.history-overlay{position:fixed;inset:0;background:#111c187a;z-index:100;display:flex;justify-content:flex-end}.history-panel{width:min(100%,480px);height:100%;overflow:auto;background:#fffdf7;padding:26px 22px;box-shadow:-12px 0 40px #00000029}.history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.history-heading h2{margin:0 0 8px;font-size:26px}.history-heading p,.history-privacy{margin:0;color:#756f64;line-height:1.6;font-size:13px}.history-heading button,.history-item button{border:1px solid #d8cbb2;background:#fff;color:#176b4d;border-radius:10px;padding:8px 12px;cursor:pointer;white-space:nowrap}.history-privacy{margin:14px 0}.history-refresh{margin-bottom:12px}.history-refresh:disabled{opacity:.55;cursor:wait}.history-empty{padding:24px;border:1px dashed #d8cbb2;border-radius:12px;color:#756f64;line-height:1.7}.history-list{display:grid;gap:12px}.history-item{padding:16px;border:1px solid #eadfc9;border-radius:14px;background:#fff}.history-item time{color:#756f64;font-size:12px}.history-item h3{font-size:17px;line-height:1.45;margin:8px 0}.history-item p{font-size:14px;line-height:1.6;color:#514a42;margin:0 0 12px;white-space:pre-wrap}@media(max-width:600px){.public-nav{align-items:flex-start}.topic-nav-actions span{display:none}.history-panel{padding:20px 16px}}:root{--bg: #fbf8ef;--paper: #fffdf7;--ink: #171717;--muted: #756f64;--line: #eadfc9;--green: #176b4d;--deep: #0d3328;--red: #9a1f1f;--shadow: 0 22px 70px rgba(55, 42, 17, .12)}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(circle at top left,rgba(23,107,77,.12),transparent 34rem),linear-gradient(180deg,#fffaf0 0%,var(--bg) 52%,#f3ead8 100%);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Source Han Sans SC,Microsoft YaHei,sans-serif}button,input,textarea{font:inherit}.page-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:42px 0 72px}.hero-card,.workspace{border:1px solid var(--line);background:#fffdf7e6;border-radius:32px;box-shadow:var(--shadow)}.hero-card{padding:clamp(26px,4vw,46px);overflow:hidden;position:relative}.brand{color:var(--red);font-size:16px;font-weight:800;margin-bottom:14px}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:end}h1{margin:0;font-size:clamp(36px,6vw,66px);line-height:1.05;letter-spacing:-1.5px}h1 span{display:block;color:var(--green)}.sub{max-width:770px;color:var(--muted);font-size:19px;line-height:1.78;margin:20px 0 0}.formula-card{background:#101010;color:#fff;border-radius:24px;padding:24px;transform:rotate(-1deg)}.formula-card b{display:block;color:#d6f0e5;margin-bottom:10px}.formula-card p{margin:0;line-height:1.7;color:#ececec}.workspace{margin-top:22px;padding:22px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:20px}.input-panel,.result-panel{background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px}.autosave-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;color:var(--muted);font-size:13px}.autosave-row button{border:1px solid #d8ccb5;background:#fffaf0;color:#413b31;border-radius:999px;padding:6px 12px;cursor:pointer}.field+.field{margin-top:20px}label{display:block;font-weight:900;margin-bottom:10px}input,textarea{width:100%;border:1px solid #ded3bd;background:#fffdf8;border-radius:16px;padding:14px 15px;color:var(--ink);outline:none}input:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px #176b4d1a}.secret-input-wrap{position:relative}.secret-input-wrap input{padding-right:74px}.secret-toggle{position:absolute;top:50%;right:8px;transform:translateY(-50%);border:1px solid #d8ccb5;background:#fffaf0;color:var(--green);border-radius:12px;padding:7px 10px;font-size:13px;font-weight:900;cursor:pointer}.secret-toggle:hover{background:#eaf5ef;border-color:var(--green)}textarea{min-height:96px;resize:vertical}small{display:block;color:var(--muted);margin-top:8px;line-height:1.55}.chip-row{display:flex;flex-wrap:wrap;gap:10px}.chip{border:1px solid #d8ccb5;background:#fffaf0;color:#413b31;border-radius:999px;padding:9px 14px;cursor:pointer}.chip.active{background:var(--deep);color:#fff;border-color:var(--deep)}.intent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.intent{text-align:left;border:1px solid #ddd1ba;background:#fffaf1;border-radius:18px;padding:15px;cursor:pointer}.intent b{display:block;margin-bottom:6px}.intent span{display:block;color:var(--muted);font-size:13px;line-height:1.55}.intent.active{background:#eaf5ef;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.api-settings{margin-top:20px;border:1px solid #eadfc9;border-radius:20px;background:#fffaf0;overflow:hidden}.api-settings-header{display:flex;flex-direction:column;gap:5px;padding:14px 16px;color:var(--ink)}.api-settings-header b{font-weight:900}.api-settings-header span{color:var(--muted);font-size:13px;line-height:1.55}.api-panel{border-top:1px solid #eadfc9;padding:16px;background:#fffdf8}.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.mode-button{border:1px solid #d8ccb5;background:#fffaf0;border-radius:14px;padding:11px 12px;cursor:pointer;font-weight:900;color:#413b31}.mode-button.active{background:var(--deep);color:#fff;border-color:var(--deep)}.compact-field label{font-size:14px}.api-grid{display:grid;gap:14px}.config-unlock-panel{padding:14px;border:1px solid #eadfc9;border-radius:14px;background:#fffaf0}.config-unlock-button{border:0;border-radius:14px;padding:12px 14px;background:var(--green);color:#fff;font-weight:900;cursor:pointer}.config-unlock-button:disabled{cursor:wait;opacity:.62}.secret-note{margin-top:0;color:#8a5a12}.api-readiness{padding:10px 12px;border-radius:10px;font-size:13px;font-weight:850}.api-readiness.ready{border:1px solid #acd4c2;background:#edf8f2;color:#176b4d}.api-readiness.incomplete{border:1px solid #e8c38e;background:#fff7e8;color:#8a5a12}.generate{width:100%;margin-top:22px;border:none;border-radius:18px;padding:17px 18px;background:var(--green);color:#fff;font-size:18px;font-weight:950;cursor:pointer;box-shadow:0 14px 28px #176b4d38}.generate:disabled{cursor:not-allowed;opacity:.88}.generation-button-status{display:inline-flex;align-items:center;justify-content:center;gap:10px}.generation-button-dot{width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 #ffffffb3;animation:generation-pulse 1.35s ease-out infinite}.generation-progress-card{width:min(100%,440px);min-height:470px;margin:0 auto;display:flex;flex-direction:column;justify-content:center}.generation-activity{display:flex;gap:8px;align-items:center;margin-bottom:24px}.generation-activity span{width:11px;height:11px;border-radius:50%;background:#7dd4b5;animation:generation-pulse 1.35s ease-in-out infinite}.generation-activity span:nth-child(2){animation-delay:.18s}.generation-activity span:nth-child(3){animation-delay:.36s}.generation-progress-kicker{color:#9ddfc7;font-size:14px;font-weight:900;letter-spacing:.08em}.generation-progress-card h2{margin:12px 0 10px;color:#fff;font-size:clamp(26px,4vw,34px);line-height:1.25}.generation-progress-card>p{min-height:52px;margin:0;color:#d5e2dd;line-height:1.75}.generation-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:34px;color:#c5d4cf;font-size:14px}.generation-progress-meta b{color:#fff;font-size:18px}.generation-progress-track{height:12px;margin-top:10px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:#ffffff1a}.generation-progress-bar{position:relative;height:100%;overflow:hidden;border-radius:inherit;background:linear-gradient(90deg,#56bd96,#a9ebd2);transition:width .5s linear}.generation-progress-bar:after{content:"";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);animation:generation-shimmer 1.8s ease-in-out infinite}.generation-progress-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 18px;margin-top:14px;color:#aabdb6;font-size:13px;line-height:1.6}.error{color:#b42318;font-weight:800;margin:14px 0 0}.result-panel{min-height:520px;background:linear-gradient(180deg,#101010f5,#142922f7),#101010;color:#fff}.empty-state{height:100%;min-height:470px;display:grid;place-content:center;text-align:center;color:#d8d8d8}.empty-state span{font-size:28px;font-weight:950;color:#fff}.empty-state p{max-width:360px;line-height:1.8}.generation-blocked-card{min-height:470px;display:grid;place-content:center;gap:12px;text-align:center}.generation-blocked-card span{color:#ffbdac;font-size:14px;font-weight:900;letter-spacing:.08em}.generation-blocked-card h2{max-width:500px;margin:0;color:#fff;font-size:clamp(24px,3vw,34px);line-height:1.4}.generation-blocked-card p{margin:0;color:#cbd7d3}.result-card{display:grid;gap:16px}.quality-origin{display:grid;gap:4px;padding:13px 15px;border:1px solid rgba(197,234,219,.24);border-radius:14px;background:#c5eadb1a;color:#eaf8f2}.quality-origin b{color:#c5eadb;font-size:14px}.quality-origin span{color:#d8e5e0;font-size:13px;line-height:1.65}.quality-origin.basic{border-color:#ffd28052;background:#ffbe4c1f}.quality-origin.basic b{color:#ffe1a7}.result-heading-row,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.result-top span{display:inline-block;color:#c5eadb;font-weight:800;margin-bottom:10px}.result-top h2{margin:0;font-size:clamp(28px,4vw,44px);line-height:1.16}.copy-action{border:1px solid rgba(255,255,255,.18);background:#ffffff1a;color:#fff;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:900;cursor:pointer;white-space:nowrap}.section-head b{color:#c5eadb}.publish-strip{display:flex;flex-wrap:wrap;gap:10px}.publish-strip span{color:#101010;background:#d6f0e5;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:900}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.meta-grid div,.reason{border:1px solid rgba(255,255,255,.12);background:#ffffff14;border-radius:18px;padding:15px}.meta-grid b,.reason b{color:#c5eadb}.meta-grid p{margin:7px 0 0;line-height:1.6}.copy-box{background:#fff;color:var(--ink);border-radius:20px;padding:20px;font-size:18px;line-height:1.9;white-space:pre-wrap}.copy-notice{margin:0;color:#ffe1b5;font-size:14px;line-height:1.6}.hook-box{background:#f8e8e8;color:#621515;border:1px solid #f0caca;border-radius:20px;padding:18px}.hook-box b{display:block;margin-bottom:7px}.hook-box p{margin:0;font-size:19px;line-height:1.65;font-weight:900}.reason{color:#ededed;line-height:1.7}.note{color:#c8c8c8;font-size:13px;line-height:1.6;margin:0}@keyframes generation-pulse{0%,to{transform:scale(.82);opacity:.55;box-shadow:0 0 #7dd4b56b}50%{transform:scale(1);opacity:1;box-shadow:0 0 0 8px #7dd4b500}}@keyframes generation-shimmer{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.generation-button-dot,.generation-activity span,.generation-progress-bar:after{animation:none}.generation-progress-bar{transition:none}}@media(max-width:900px){.hero-grid,.workspace{grid-template-columns:1fr}.formula-card{max-width:none}}@media(max-width:620px){.page-shell{width:min(100% - 20px,1180px);padding-top:18px}.hero-card,.workspace{border-radius:24px}.workspace{padding:12px}.input-panel,.result-panel{padding:18px;border-radius:22px}.intent-grid,.meta-grid{grid-template-columns:1fr}}
