:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#292726;background:#fff;font-size:16px;line-height:1.55}
*{box-sizing:border-box} body{margin:0} button,input,textarea,select{font:inherit} button,a{touch-action:manipulation} button{cursor:pointer} a{color:inherit;text-decoration:none} [hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #e9a99d;outline-offset:2px}
.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:#f7f6f4;border-right:1px solid #e8e6e2;display:flex;flex-direction:column;padding:22px 14px 16px}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 27px;font-size:16px;font-weight:800;letter-spacing:.03em}.brand img{width:37px;height:37px}.brand small{display:block;font-size:9px;letter-spacing:.11em;font-weight:600;color:#9c938c}
.side-label,.eyebrow{font-size:12px;color:#9a6c62;letter-spacing:.1em;font-weight:750}.side-label{padding:0 10px 9px;color:#99928d}
.main-nav{display:grid;gap:3px}.main-nav a{display:flex;align-items:center;gap:12px;padding:10px 11px;border-radius:8px;color:#605b58;font-size:14px;font-weight:600}.main-nav a:hover{background:#efeeeb}.main-nav a.active{background:#eae6e2;color:#211d1b}.nav-icon{display:grid;place-items:center;width:20px;font-size:19px;color:#807570}
.side-info{margin-top:auto;background:#fff;border:1px solid #e9e3df;border-radius:10px;padding:14px;font-size:13px;line-height:1.6}.side-info p{color:#827972;margin:6px 0 10px}.side-info a{color:#a92b27;font-weight:700}.side-bottom{display:flex;gap:10px;align-items:center;padding:18px 8px 0;font-size:13px}.side-bottom small{display:block;color:#928b85}.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#eadbd6;color:#a92b27;font-weight:800}
.main{min-width:0}.topbar{height:64px;border-bottom:1px solid #eeece9;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,4vw,56px);font-size:13px;font-weight:650}.crumb{color:#99918b}.slash{color:#c3bcb7;padding:0 10px}.local-badge{color:#756a63;background:#f7f5f2;border:1px solid #ece7e2;border-radius:999px;padding:5px 10px;font-size:12px}.local-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#be6d5e;vertical-align:middle;margin-right:4px}
.page{max-width:1440px;margin:0 auto;padding:42px clamp(24px,4vw,56px) 70px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.eyebrow{margin:0 0 8px;color:#bd4438}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3vw,38px);line-height:1.22;letter-spacing:-.04em;margin-bottom:10px}h2{font-size:17px;line-height:1.35;margin-bottom:4px}h3{font-size:15px;margin-bottom:6px}.subhead{color:#817a75;margin:0;font-size:14px}.tabs{display:flex;gap:28px;border-bottom:1px solid #ece9e6;margin-bottom:20px;font-size:14px;color:#8a837e}.tabs>*{padding:11px 0}.tabs .tab-active{color:#27221f;font-weight:750;border-bottom:2px solid #c3332a}.tabs a:hover{color:#c3332a}
.discover-tools{display:flex;gap:10px}.search-box{display:flex;align-items:center;gap:9px;flex:1;border:1px solid #dfdcd8;border-radius:8px;padding:0 12px;color:#908882;background:#fff}.search-box span{font-size:24px}.search-box input{border:0;padding:11px 0;min-width:0;flex:1;outline:0}.search-box:focus-within{outline:3px solid #e9a99d;outline-offset:2px}.search-hint{display:flex;align-items:center;flex-wrap:wrap;gap:10px 15px;margin:14px 0 22px;font-size:13px;color:#817b76}.search-hint strong{color:#4e4844}.search-hint a{color:#aa302a;font-weight:700}.search-hint a:hover{text-decoration:underline}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:8px;padding:9px 15px;font-size:14px;font-weight:700;border:1px solid transparent;white-space:nowrap}.primary{background:#c12f28;color:#fff}.primary:hover{background:#a92822}.secondary{background:#fff;border-color:#dedad6;color:#423b37}.secondary:hover{background:#faf7f5;border-color:#bcada5}.full{width:100%}
.notice{display:flex;align-items:flex-start;gap:10px;background:#fbf6f3;border:1px solid #f0e3db;border-radius:9px;padding:13px 15px;color:#79675e;font-size:13px;margin-bottom:23px}.notice-icon{width:19px;height:19px;flex:none;display:grid;place-items:center;border:1px solid #bd8d7d;border-radius:50%;color:#a55748;font-size:12px;font-weight:bold}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 326px;gap:22px;align-items:start}.work-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:22px;align-items:stretch}
.list-panel,.form-panel,.result-panel{background:#fff;border:1px solid #ece8e5;border-radius:11px;padding:24px}.panel-heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px}.panel-heading p,.result-head p:not(.eyebrow){font-size:13px;color:#918881;margin:0}.count{font-size:12px;font-weight:650;color:#958b84;background:#f4f1ee;border-radius:999px;padding:3px 8px;margin-left:5px}
form label{display:block;font-weight:650;font-size:13px;margin:0 0 16px}form label span{color:#bd3a31}form label small{font-weight:400;color:#99918b}.filter,form input,form textarea,form select,.result-text{display:block;width:100%;margin-top:7px;background:#fff;border:1px solid #dfdcd8;border-radius:7px;color:#292726;padding:10px 11px;font-size:14px;line-height:1.55}form textarea{resize:vertical;min-height:88px}form select{appearance:auto;min-height:43px}.filter{margin:0 0 16px}.filter::placeholder,input::placeholder,textarea::placeholder{color:#a59d97}
.empty{text-align:center;border:1px dashed #e6dfd9;border-radius:9px;padding:50px 20px;color:#8a817a}.empty-icon{display:grid;place-items:center;background:#f8f2ef;color:#b45b4b;font-size:24px;width:45px;height:45px;border-radius:12px;margin:0 auto 18px}.empty h3{color:#3f3935;margin:0 0 5px}.empty p{font-size:13px;margin:0 0 18px}
.account-card,.draft-card{border-top:1px solid #eeeae7;padding:17px 0}.account-top,.draft-top{display:flex;justify-content:space-between;gap:15px;align-items:start}.account-name,.draft-name{font-weight:750;font-size:15px;overflow-wrap:anywhere}.account-platform,.draft-kind{font-size:12px;color:#a64639;background:#faefea;border-radius:5px;padding:3px 7px}.account-meta,.draft-meta{font-size:12px;color:#99918a;margin-top:5px}.account-note,.draft-preview{font-size:14px;color:#6f6660;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.card-actions{display:flex;gap:13px;flex-wrap:wrap;align-items:center}.text-button{border:0;background:none;padding:0;color:#a5382e;font-size:13px;font-weight:700}.card-actions a{color:#a5382e;font-size:13px;font-weight:700}.draft-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;color:#544d48;background:#faf8f6;border-radius:7px;padding:13px;margin:12px 0}.draft-card summary{cursor:pointer}
.result-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.template-badge{font-size:12px;background:#f6eee9;color:#a65a4a;border-radius:999px;padding:5px 9px;white-space:nowrap}.result-text{min-height:340px;resize:vertical;margin:20px 0 14px;line-height:1.8;background:#fdfcfb}.result-actions{display:flex;gap:9px;flex-wrap:wrap}.result-note{font-size:12px;color:#91857e;margin:12px 0 0}.storage-warning{margin:18px clamp(24px,4vw,56px) 0;background:#fff1ea;border:1px solid #edbcae;color:#883a2b;padding:12px;border-radius:8px;font-size:14px}
footer{border-top:1px solid #f0edeb;color:#a59c96;font-size:12px;padding:20px clamp(24px,4vw,56px)}footer a{text-decoration:underline}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#2b2725;color:#fff;padding:10px 16px;border-radius:8px;font-size:13px;transition:opacity .2s,transform .2s;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-script{padding:20px}
@media(max-width:900px){.shell{grid-template-columns:190px minmax(0,1fr)}.content-grid,.work-grid{grid-template-columns:1fr}.form-panel.wide{order:0}.result-panel{order:1}.side-info{display:none}}
@media(max-width:620px){.shell{display:block}.sidebar{position:static;height:auto;padding:12px 14px 0;border-right:0;border-bottom:1px solid #e8e6e2}.brand{padding:0 0 10px}.brand img{width:32px;height:32px}.brand small,.side-label,.side-bottom{display:none}.main-nav{display:flex;gap:4px;overflow-x:auto;padding-bottom:8px}.main-nav a{white-space:nowrap;padding:8px 10px}.nav-icon{font-size:16px}.topbar{height:48px;padding:0 16px}.page{padding:30px 16px 50px}.page-head{display:block}.page-head .primary,.page-head .button-link{margin-top:18px}.list-panel,.form-panel,.result-panel{padding:18px}.tabs{gap:18px}.discover-tools{display:grid;grid-template-columns:1fr auto}.search-hint span{width:100%}.result-text{min-height:260px}}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}
.generate-actions{display:flex;gap:10px;flex-wrap:wrap}.generate-actions button:disabled{opacity:.55;cursor:wait}.generation-status{margin:12px 0 0;color:#756a63;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.recovery-actions{margin-top:10px}
.topbar-actions,.auth-actions,.auth-heading{display:flex;align-items:center;gap:10px}.auth-heading{justify-content:space-between}.auth-open{min-height:34px;padding:6px 12px}.auth-dialog{width:min(440px,calc(100% - 32px));border:1px solid #ece8e5;border-radius:12px;padding:24px;color:#292726;box-shadow:0 16px 60px #211d1b33}.auth-dialog::backdrop{background:#1e171680}.auth-dialog h2{margin:0}.auth-status{font-size:14px;line-height:1.6;color:#756a63;margin:16px 0}.auth-actions{justify-content:flex-end}.auth-dialog button:disabled{opacity:.55;cursor:not-allowed}
