:root{--bg: #f7f4ee;--paper: #fffaf2;--surface: #fff;--ink: #1c2620;--muted: #68736d;--line: #e6ded1;--green: #11664c;--gold: #d6a13d;--soft-green: #e8f3eb;color:var(--ink);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;line-height:1.5}body{margin:0;overflow-x:hidden}button,input,textarea,select{font:inherit}button{min-height:40px;border:1px solid var(--line);border-radius:7px;padding:0 16px;background:#fff;color:var(--ink);font-weight:800;cursor:pointer}.primary{border-color:var(--green);background:var(--green);color:#fff}button:disabled{opacity:.65;cursor:progress}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 28px;border-bottom:1px solid var(--line);background:#fffaf2f0;position:sticky;top:0;z-index:10}.adminTopbar{background:#f7fbf7}.brandButton{border:0;background:transparent;display:inline-flex;align-items:center;gap:10px;padding:0;font-weight:900}.brandButton span,.brandMini span{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;color:#fff;background:var(--green)}nav,.actions{display:flex;gap:10px;flex-wrap:wrap}.landingHero{min-height:calc(100vh - 68px);max-width:1240px;margin:0 auto;padding:56px 28px 34px;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(380px,.94fr);align-items:center;gap:48px}.heroCopy{min-width:0}.landingHero h1{max-width:720px;margin:12px 0 18px;font-size:clamp(40px,4.8vw,64px);line-height:1.12;text-wrap:balance}.landingHero p{max-width:720px;color:var(--muted);font-size:18px}.heroLead{margin-bottom:18px;max-width:680px!important;font-size:19px!important;line-height:1.72}.heroProofs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.heroProofs span{min-height:30px;display:inline-flex;align-items:center;border:1px solid #d7eadb;border-radius:999px;padding:3px 11px;background:#f2faf3;color:var(--green);font-size:13px;font-weight:900}.heroCopy .primary{min-height:58px;padding:0 28px;font-size:20px;box-shadow:0 18px 36px #11664c2e}.heroHint{margin:14px 0 0;color:#7b7062!important;font-size:14px!important}.eyebrow{margin:0;color:var(--green);font-size:13px;font-weight:900}.letterPreview{border:1px solid #ded3c4;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 28px 70px #2d201229}.letterPreviewHead{min-height:58px;padding:12px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.letterPreview article{padding:28px 30px;font-family:Georgia,Times New Roman,Microsoft YaHei,serif}.letterPreview h2{margin:0 0 16px;font-size:28px;line-height:1.22}.letterPreview p{color:#3f4a43;font-size:17px}.letterPreview div div{margin-top:18px;padding:12px 14px;border-left:3px solid var(--green);background:#f2faf4;font-family:Inter,ui-sans-serif,system-ui,Microsoft YaHei,sans-serif}.stepsBand{max-width:1240px;margin:0 auto 54px;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid var(--line);background:var(--line)}.stepsBand div{padding:28px;background:#fff}.stepsBand b{width:30px;height:30px;display:grid;place-items:center;border-radius:99px;background:var(--green);color:#fff}.stepsBand h3{margin:18px 0 8px;font-size:22px}.stepsBand p{color:var(--muted)}.appShell,.adminShellPage{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100vh - 68px)}.appSidebar{padding:22px 16px;border-right:1px solid var(--line);background:var(--paper)}.adminSide{background:#f7fbf7}.brandMini{display:flex;align-items:center;gap:10px;margin-bottom:28px;font-weight:900}.appSidebar a{min-height:42px;display:flex;align-items:center;padding:0 12px;border-radius:7px;color:var(--muted);font-weight:800}.appSidebar a.active{color:var(--green);background:var(--soft-green)}.usageBox{margin-top:28px;border:1px solid var(--line);border-radius:8px;padding:14px;background:#fff}.usageBox div{height:8px;margin:12px 0;border-radius:99px;background:#eee8dc;overflow:hidden}.usageBox span{display:block;height:100%;background:var(--green)}.usageBox p{margin:0;color:var(--muted);font-size:13px}.appMain{min-width:0;padding:28px 34px 42px}.pageTitle{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.pageTitle h1{margin:0 0 4px;font-size:32px}.pageTitle p{margin:0;color:var(--muted)}.stepperLine{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:18px}.stepperLine span{border:1px solid #d7eadb;border-radius:7px;padding:11px 12px;color:var(--green);background:#f2faf3;font-size:13px;font-weight:850}.generatorLayout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.formColumnStack{display:grid;gap:16px}.formPanel,.rightRail,.resultCard,.sideCard{border:1px solid var(--line);border-radius:8px;background:#fff;padding:22px;box-shadow:0 18px 46px #251d1114;scroll-margin-top:88px}.sectionHead{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #f0ebe3}.sectionHead span{color:var(--green);font-size:12px;font-weight:900}.sectionHead h2{margin:3px 0 0;font-size:22px}.sectionHead b{height:28px;padding:4px 10px;border-radius:999px;background:var(--soft-green);color:var(--green);font-size:13px}.contextBridge{margin:0 0 16px;border:1px solid #d7eadb;border-radius:8px;padding:12px 14px;background:#f2faf3;color:var(--green)}.contextBridge.empty{border-color:var(--line);background:#fffcf7;color:var(--muted)}.contextBridge strong{margin-right:6px}.contextBridge span{font-weight:900}.contextBridge p{margin:5px 0 0;color:var(--muted);font-size:13px}.stepAssistBar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;border:1px solid #ead8a8;border-radius:8px;padding:12px 14px;background:#fffaf0}.stepAssistBar strong{display:block;color:#6d4d0c}.stepAssistBar p{margin:4px 0 0;color:var(--muted);font-size:13px}.stepAssistBar button{border-color:#ead8a8;background:#fff;color:#6d4d0c;white-space:nowrap}.twoCols{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px;margin-bottom:14px}.field span{display:flex;justify-content:space-between;gap:12px;color:#4a554d;font-size:13px;font-weight:850}.field span button{min-height:28px;border:1px solid #d7eadb;border-radius:999px;padding:3px 10px;background:#f2faf3;color:var(--green);font-size:12px;white-space:nowrap}input,textarea,select{width:100%;box-sizing:border-box;border:1px solid #d9d1c5;border-radius:7px;padding:11px 12px;background:#fff}textarea{min-height:112px;resize:vertical}input::placeholder,textarea::placeholder{color:#a79f94}.rightRail{position:sticky;top:86px}.scoreCircle{width:94px;height:94px;margin:4px auto 14px;display:grid;place-items:center;border-radius:99px;color:var(--green);font-size:26px;font-weight:900;background:radial-gradient(circle at center,#fff 58%,transparent 59%),conic-gradient(var(--green) 0 91%,#eee8dc 91% 100%)}.checkRow{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f0ebe3;color:var(--muted)}.checkRow strong{color:var(--green)}.sectionNext{display:flex;justify-content:flex-end;margin-top:18px;padding-top:18px;border-top:1px solid #f0ebe3}.finalAction button{min-width:180px;box-shadow:0 14px 28px #11664c2e}.templateChoiceGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.templateChoice{height:auto;min-height:190px;display:grid;align-content:start;gap:8px;border:1px solid #d9d1c5;border-radius:8px;padding:18px;background:#fff;text-align:left;color:var(--ink);box-shadow:none}.templateChoice.active{border-color:var(--green);background:#f2faf3;box-shadow:inset 0 0 0 1px var(--green)}.templateChoice span{width:fit-content;border-radius:999px;padding:3px 9px;background:var(--soft-green);color:var(--green);font-size:12px;font-weight:900}.templateChoice strong{font-size:20px}.templateChoice p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.templateChoice small{color:#7b7062;font-size:13px;line-height:1.45}.railNote{margin-top:18px;padding:14px;border-radius:7px;background:#fffcf7;border:1px solid var(--line)}.railNote p{margin-bottom:0;color:var(--muted)}.resultLayout{max-width:1240px;margin:0 auto;padding:34px 24px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.resultHeader{display:flex;justify-content:space-between;gap:16px;align-items:center}.resultCard pre{white-space:pre-wrap;word-break:break-word;margin-top:20px;font-family:Georgia,Times New Roman,Microsoft YaHei,serif;line-height:1.75}.score{display:flex;justify-content:space-between;border-bottom:1px solid #f0ebe3;padding:10px 0}.checkLine{display:grid;gap:10px;margin:12px 0 18px}.checkLine label{display:flex;gap:8px;align-items:center;font-weight:800;color:#4a554d}.templateTable{display:grid;gap:0}.templateTableHead,.templateRow{display:grid;grid-template-columns:minmax(260px,1fr) 160px 120px 100px 96px;gap:14px;align-items:center}.templateTableHead{padding:0 0 12px;border-bottom:1px solid #f0ebe3;color:var(--muted);font-size:12px;font-weight:900}.templateRow{padding:16px 0;border-bottom:1px solid #f0ebe3}.templateRow.active{margin:0 -10px;padding:16px 10px;border-radius:8px;background:#f2faf3}.templateRow strong{display:block;margin-bottom:4px}.templateRow p{margin:0;color:var(--muted);font-size:13px}.statusPill{width:fit-content;min-height:26px;display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;background:#f1ede5;color:var(--muted);font-size:12px;font-weight:900}.statusPill.green{color:var(--green);background:var(--soft-green)}.templateAdminPanel{margin-bottom:18px}.templateEditor textarea{min-height:150px;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px}.templateEditor .field:nth-of-type(6) textarea,.templateEditor .field:nth-of-type(7) textarea{min-height:220px}.editorActions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid #f0ebe3}.notice{max-width:1180px;margin:18px auto 0;border:1px solid var(--line);border-radius:8px;padding:12px 16px;font-weight:800}.notice.error{border-color:#f1b2a8;color:#a33a2d;background:#fff1ef}.notice.ok{margin:18px 0 0;border-color:#d7eadb;color:var(--green);background:#f2faf3}@media(max-width:1040px){.landingHero,.appShell,.adminShellPage,.generatorLayout,.resultLayout{grid-template-columns:1fr}.appSidebar{display:none}.rightRail{position:static}}@media(max-width:720px){button{min-height:44px;border-radius:8px}.topbar{height:auto;align-items:center;padding:10px 14px;gap:12px}.brandButton{font-size:17px}.brandButton span,.brandMini span{width:30px;height:30px}.topbar nav{gap:6px;justify-content:flex-end}.topbar nav button{min-height:36px;padding:0 10px;font-size:13px}.landingHero{min-height:auto;padding:30px 16px 18px;gap:18px}.landingHero h1{max-width:100%;margin:10px 0 14px;font-size:36px;line-height:1.16}.eyebrow{font-size:12px}.heroLead{font-size:17px!important;line-height:1.68}.heroProofs{gap:6px;margin-bottom:18px}.heroProofs span{min-height:28px;font-size:12px}.heroCopy .primary{width:100%;min-height:54px;font-size:18px}.heroHint{text-align:center}.letterPreview{box-shadow:0 16px 34px #2d20121f}.letterPreviewHead{min-height:48px;padding:10px 12px;font-size:13px}.letterPreview article{padding:18px 16px}.letterPreview h2{font-size:22px}.letterPreview p{font-size:15px}.letterPreview div div{font-size:14px}.stepsBand{grid-template-columns:1fr;margin:8px 16px 30px}.stepsBand div{padding:18px}.stepsBand h3{margin:12px 0 6px;font-size:18px}.stepsBand p{margin:0;font-size:14px}.pageTitle{height:auto;align-items:stretch;flex-direction:column;padding:0;margin-bottom:14px}.pageTitle h1{font-size:26px}.pageTitle p{font-size:14px}.pageTitle>button,.pageTitle .actions button{width:100%}.appMain{padding:18px 12px 28px}.twoCols,.templateTableHead,.templateRow{grid-template-columns:1fr}.stepperLine{display:flex;gap:8px;margin:0 -12px 16px;padding:0 12px 4px;overflow-x:auto;scrollbar-width:none}.stepperLine::-webkit-scrollbar{display:none}.stepperLine span{flex:0 0 auto;min-width:108px;padding:9px 10px;font-size:12px;text-align:center}.formColumnStack{gap:12px}.formPanel,.rightRail,.resultCard,.sideCard{border-radius:8px;padding:16px;box-shadow:0 10px 26px #251d110f}.sectionHead{align-items:flex-start;margin-bottom:14px}.sectionHead h2{font-size:20px}.sectionHead b{white-space:nowrap}.contextBridge,.stepAssistBar{padding:12px}.stepAssistBar{align-items:stretch;flex-direction:column}.stepAssistBar button{width:100%}.field{margin-bottom:12px}.field span{align-items:center}.field span button{min-height:30px;padding:3px 9px}input,textarea,select{min-height:46px;padding:12px;font-size:16px}textarea{min-height:126px}.sectionNext{justify-content:stretch}.sectionNext button{width:100%}.templateChoiceGrid{grid-template-columns:1fr}.templateChoice{min-height:auto;padding:16px}.rightRail{display:none}.resultLayout{grid-template-columns:1fr;padding:18px 12px 28px}.resultHeader{align-items:stretch;flex-direction:column}.resultHeader .actions button{flex:1}.resultCard pre{font-size:15px;line-height:1.72}.templateEditor textarea{min-height:180px}.editorActions{flex-direction:column}.editorActions button{width:100%}}
