@charset "UTF-8";
:root{color-scheme:light;--bg:#f7f7fb;--surface:#fff;--ink:#232335;--muted:#858596;--border:#ececf3;--purple:#7155e9;--soft:#f0ecff;--radius:18px;--shadow:0 6px 28px #22223b04;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{transition:background .16s,transform .16s,box-shadow .16s}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--purple);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #b7a8ff;outline-offset:4px}input:focus,textarea:focus{outline:2px solid #b7a8ff;outline-offset:1px}button svg,.brand svg,.empty-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.layout{min-height:100vh;display:flex}.sidebar{width:235px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--border);padding:35px 22px 22px;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:23px;font-weight:800;letter-spacing:1px}.brand-mark{display:grid;place-items:center;background:var(--purple);width:42px;height:45px;border-radius:13px;color:#fff;box-shadow:0 6px 15px #7155e929}.brand svg{width:27px;height:27px}.brand small{display:block;margin-top:5px;font-size:10px;letter-spacing:1px;color:#9996ac;font-weight:400}.nav-label{margin:54px 12px 15px;font-size:10px;color:#a4a2b4;letter-spacing:2px}.nav{display:grid;gap:9px}.nav-item{width:100%;border:0;background:transparent;color:#828194;display:flex;align-items:center;gap:13px;padding:14px 16px;border-radius:10px;text-align:left;font-size:14px}.nav-item:hover{background:#f7f5fe}.nav-item.active{background:var(--soft);color:var(--purple);font-weight:600}.nav-item svg{width:18px;height:18px}.nav-count{margin-left:auto;font-size:11px;color:#9592a8;background:#f3f2f7;border-radius:6px;padding:2px 6px}.sidebar-tip{margin:auto 3px 25px;padding:24px 17px;background:linear-gradient(135deg,#f5f2ff,#faf9fd);border:1px solid #efebfc;border-radius:14px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.7px;color:#9c8bc9}.sidebar-tip p{font-size:16px;line-height:1.9;margin:12px 0 14px;font-weight:500}.tiny{font-size:11px;line-height:1.9;color:#9996a8}.version{font-size:11px;color:#9592a6;display:flex;align-items:center;gap:7px;padding:0 9px}.version small{margin-left:auto;font-size:10px}.status-dot{width:6px;height:6px;border-radius:50%;background:#9b88df;display:inline-block}.main-shell{margin-left:235px;width:calc(100% - 235px);min-width:0}.topbar{height:80px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;background:#ffffffa8;border-bottom:1px solid var(--border)}.breadcrumb{font-size:12px;color:#9d9aab}.breadcrumb span{margin:0 13px;color:#ccc9d8}.breadcrumb strong{color:#646174;font-weight:500}.topbar-right{display:flex;align-items:center;gap:22px}.server-status{font-size:11px;color:#8e899e}.server-status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#b2a9c5;margin-right:7px}.server-status.connected:before{background:#47ae8b}.server-status.error:before{background:#dc9360}.avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#eee9fc;color:#8e73cf;font-size:12px}main{max-width:1520px;margin:0 auto;padding:32px 44px 45px;min-height:calc(100vh - 140px);outline:none}.hero{border:1px solid #eae5fa;background:linear-gradient(112deg,#f1ecff 0%,#f8f4ff 60%,#efecfc 100%);border-radius:20px;min-height:225px;padding:33px 37px;display:flex;justify-content:space-between;position:relative;overflow:hidden}.hero-copy{z-index:1}.hero .eyebrow{display:flex;align-items:center;gap:8px;color:#9a86c4;font-size:9px}.mini-line{height:2px;width:18px;background:#b29be2}.hero h1{font-size:30px;font-weight:700;letter-spacing:-1px;margin:17px 0 13px}.hero h1 span{color:var(--purple)}.hero p{color:#9690a8;font-size:12px;margin:0;line-height:1.9}.hero-chips{margin-top:24px;display:flex;align-items:center;gap:12px;color:#8d80ac;font-size:10px}.hero-chips span{background:#ffffffa8;border:1px solid #eae2fc;border-radius:5px;padding:5px 9px}.hero-chips b{font-weight:400;color:#bcafd4}.hero-art{position:relative;width:245px;flex-shrink:0;margin:-10px 2px -30px 10px}.orbit{border:1px solid #e6def9;width:225px;height:225px;border-radius:50%;position:absolute;top:9px;left:6px}.orbit:after{content:"";position:absolute;inset:20px;border:1px dashed #e5dcf7;border-radius:50%}.art-card{position:absolute;width:127px;height:160px;border-radius:14px}.art-card.back{transform:rotate(13deg);background:#e1d6fc;left:105px;top:38px;border:1px solid #d8cafa;padding:25px 20px}.art-card.back i{display:block;width:62px;height:6px;border-radius:5px;background:#ccbef0;margin:9px 0}.art-card.back i:nth-child(2){width:45px}.art-card.front{transform:rotate(-10deg);background:linear-gradient(140deg,#fff,#f9f5ff);left:48px;top:24px;padding:19px 21px;box-shadow:0 12px 25px #8465b51a;border:1px solid #fff}.art-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#efe6ff;color:#aa8ee3}.art-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.6}.art-card strong{display:block;font-size:15px;line-height:1.65;color:#9b83c7;margin:10px 0}.art-line{display:block;background:#e8e1f4;height:4px;width:74px;border-radius:3px;margin-top:6px}.art-line.short{width:45px}.art-plus{position:absolute;top:25px;left:223px;font-size:28px;font-weight:200;color:#bfa8eb}.art-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#d8c5f8;top:165px;left:19px}.workflow{display:flex;align-items:center;justify-content:space-between;margin:27px 0 32px;padding:0 10px;gap:15px}.workflow-step{display:flex;gap:12px;align-items:center}.workflow-step>span{font-size:11px;color:#aaa1c0;background:#eeebf5;width:29px;height:29px;display:grid;place-items:center;border-radius:50%}.workflow-step:first-child>span{background:#ece6fd;color:#9075ce}.workflow-step strong{font-size:12px;font-weight:500;color:#686277;display:block}.workflow-step small{display:block;font-size:10px;color:#aaa5b8;margin-top:5px}.workflow>i{height:1px;width:45px;background:#e9e5f0;flex-shrink:1}.workspace{display:grid;grid-template-columns:245px minmax(0,1fr);gap:25px;align-items:start}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.profile-summary{padding:23px 21px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading h2{font-size:14px;font-weight:600;margin:0}.text-button{background:transparent;border:0;color:#9a8bb4;font-size:11px;padding:5px 0}.text-button:hover{color:var(--purple)}.profile-identity{text-align:center;padding:26px 0 19px}.profile-avatar{width:53px;height:53px;margin:auto auto 12px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#f3edff,#e8e4fc);color:#9d86d1;font-size:23px}.profile-identity h3{font-size:16px;margin:0 0 7px}.profile-identity p{color:#9b94ac;font-size:11px;margin:0}.profile-field{padding:13px 0;border-top:1px solid #f3f1f7;display:grid;grid-template-columns:55px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.profile-field dt{color:#aca6ba}.profile-field dd{margin:0;color:#756d86;white-space:pre-wrap}.profile-summary dl{margin:0}.local-note{background:#f9f8fc;color:#aba3ba;padding:12px;border-radius:8px;font-size:10px;line-height:1.9;margin-top:14px}.summary-empty{padding:25px 0 0;text-align:center}.summary-empty h3{font-size:14px;font-weight:500}.summary-empty p{color:#a49ab8;font-size:11px;line-height:1.9}.summary-empty button{margin:10px 0 12px;width:100%}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:1px 0 16px}.section-heading h2{font-size:18px;margin:0;letter-spacing:-.5px}.section-heading h2 span{font-size:11px;color:#a499bb;background:#ece8f6;border-radius:5px;padding:3px 6px;margin-left:4px;vertical-align:middle}.section-heading p{font-size:11px;color:#a29bad;margin:8px 0 0}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:9px;min-height:41px;padding:10px 17px;font-size:12px;font-weight:500;border:1px solid transparent}.primary{background:var(--purple);color:#fff;box-shadow:0 4px 12px #7155e91c;white-space:nowrap}.primary:hover:not(:disabled){background:#6247db;box-shadow:0 5px 15px #7155e933}.secondary{background:#fff;color:#8572b1;border-color:#e7e0f4}.secondary:hover:not(:disabled){background:#f6f2ff}.primary svg,.secondary svg{width:16px;height:16px}.test-notice{font-size:10px;color:#a39585;background:#faf7f1;border:1px solid #f0e9dd;border-radius:8px;padding:9px 12px;line-height:1.8;margin-bottom:18px}.filters{display:flex;align-items:center;gap:7px;margin:0 0 18px;flex-wrap:wrap}.filter{background:transparent;border:1px solid transparent;color:#9992a7;font-size:11px;padding:7px 11px;border-radius:7px;white-space:nowrap}.filter.active{background:#eee8fc;color:#8b6dc4;border-color:#e6ddf8}.filter span{background:#e3d9f6;color:#9d82ca;font-size:9px;margin-left:4px;border-radius:3px;padding:1px 4px}.topics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.topic-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:13px;padding:20px;min-width:0;transition:border-color .2s,box-shadow .2s;overflow-wrap:anywhere}.topic-card:hover{border-color:#d9ccf3;box-shadow:0 8px 25px #6d559208}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.tag{font-size:9px;color:#967ac9;background:#f2ecff;padding:4px 7px;border-radius:4px}.tag.daily{color:#b68561;background:#faf0e6}.tag.roleplay{color:#a36c9b;background:#f8edf5}.card-index{font-size:10px;color:#c1bacf;font-variant-numeric:tabular-nums}.topic-card h3{font-size:14px;line-height:1.8;margin:13px 0 6px;font-weight:600}.topic-card>p{font-size:11px;line-height:1.9;color:#a29aaf;margin:0 0 13px}.topic-card details{font-size:11px;color:#8f7fab;line-height:1.9;margin-top:auto}.topic-card summary{cursor:pointer;display:list-item;list-style-position:inside}.topic-card details p{color:#958bA6;line-height:1.9;white-space:pre-wrap}.card-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f3f0f8;margin-top:15px;padding-top:12px;gap:8px}.duration{font-size:10px;color:#b2a8c1}.card-generate{font-size:11px;color:#957bb9;background:transparent;border:0;display:flex;align-items:center;gap:5px;padding:4px 0}.card-generate:hover{color:#6545a9}.card-generate svg{width:13px;height:13px}.empty-state{text-align:center;min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 15px;border:1px dashed #e9e3f1;border-radius:14px;background:#ffffff66}.empty-icon{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#efebf8;color:#b7a4d5;margin-bottom:8px;transform:rotate(-6deg)}.empty-icon svg{width:29px;height:29px}.empty-icon>span{position:absolute;right:-5px;top:-7px;width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#fff;color:#bca8db;font-size:18px}.empty-state h3{font-size:15px;font-weight:500;color:#9487a8;margin:18px 0 7px}.empty-state p{font-size:11px;line-height:2;color:#b0a6bc;margin:0 0 20px}.empty-state .secondary{font-size:11px;min-height:35px;padding:7px 13px}.generation-status{display:flex;align-items:center;gap:12px;background:#f1edfc;padding:15px;border:1px solid #e6dff7;border-radius:10px;margin-bottom:16px}.generation-status strong{font-size:12px;color:#866baF;font-weight:500}.generation-status p{font-size:10px;color:#a294ba;margin:5px 0 0}.generation-status>.text-button{margin-left:auto;white-space:nowrap}.spinner{height:20px;width:20px;border:2px solid #ddD1f1;border-top-color:#9474c6;border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.error-box{padding:13px;background:#fff3f1;color:#b66e67;border:1px solid #f0dcd9;border-radius:8px;font-size:12px;line-height:1.9;margin-bottom:15px}.footer{max-width:1520px;margin:auto;padding:20px 44px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#b6afc0}.page-intro{margin:9px 0 30px}.page-intro h1{font-size:28px;letter-spacing:-.7px;margin:13px 0}.page-intro>p{font-size:12px;color:#a098ae;line-height:1.9}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:25px;align-items:start}.form-panel{padding:28px}.pill{font-size:10px;background:#f1edf9;padding:5px 9px;border-radius:5px;color:#a28cbf}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 22px;margin-top:29px}.form-grid label{font-size:12px;color:#786f88}.optional{font-size:10px;color:#b2a9bf;margin-left:7px}.required{color:#ad93ce}.form-grid input,.form-grid textarea{display:block;width:100%;border:1px solid #eae5f0;border-radius:8px;background:#fcfbfe;padding:12px;margin-top:10px;color:#63586f;font-size:12px;min-width:0;line-height:1.7}.form-grid textarea{resize:vertical;min-height:85px}.form-grid input::placeholder,.form-grid textarea::placeholder{color:#beb4cc;font-size:11px}.form-grid small{display:block;color:#b5aabf;font-size:10px;line-height:1.8;margin-top:8px}.span-2{grid-column:span 2}.form-bottom{border-top:1px solid var(--border);margin-top:26px;padding-top:18px;display:flex;align-items:center;gap:22px;justify-content:space-between}.form-bottom p{font-size:10px;line-height:1.8;color:#aba0b8;max-width:350px;margin:0}.form-bottom .primary{font-size:11px}.inline-message{color:#b98761;font-size:11px;margin:12px 0 0;line-height:1.8}.profile-advice>.panel{padding:25px}.number-label{font-size:9px;letter-spacing:1px;color:#b39fc9}.profile-advice h3{font-size:23px;line-height:1.7;font-weight:500;color:#8b759f;margin:20px 0 15px}.profile-advice p{font-size:11px;line-height:2;color:#aa9bb9}.profile-advice h4{font-size:12px;font-weight:500;color:#9180a3}.profile-advice ul{list-style:none;padding:0;margin:10px 0 20px}.profile-advice li{font-size:11px;color:#ab9ab7;line-height:2.7}.profile-advice li:before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:#c8b8db;margin-right:10px}.profile-advice hr{border:0;border-top:1px solid #f0ebf5;margin:20px 0}.quiet-card{background:#efe9f9;border:1px solid #e8e0f1;padding:25px;margin-top:18px;border-radius:14px;font-size:17px;color:#af99c1;line-height:1.8}.history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.history-card{padding:23px;overflow-wrap:anywhere}.history-card h3{font-size:15px;line-height:1.8;margin:14px 0 9px}.history-card p{font-size:11px;line-height:1.9;color:#a799b5;white-space:pre-wrap}.history-card small{font-size:10px;color:#b5a8c1;display:block;margin-bottom:18px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.guide-card{padding:28px}.guide-card h2{font-size:18px;font-weight:500;margin:16px 0}.guide-card p{font-size:12px;line-height:2.1;color:#9a8ca7;overflow-wrap:anywhere}.guide-card a{font-size:11px;line-height:2.5}.guide-card details{font-size:12px;color:#93809f;margin-top:18px;line-height:2;cursor:pointer}.guide-footer{font-size:10px;line-height:2;color:#b1a2ba;margin-top:23px}dialog{border:1px solid #e5deef;padding:0;border-radius:20px;width:min(760px,calc(100% - 32px));max-height:88dvh;background:#fbfafe;color:var(--ink);box-shadow:0 30px 100px #25103a30}dialog::backdrop{background:#29223970;backdrop-filter:blur(3px)}.dialog-header{padding:26px 28px 18px;background:#fff;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1}.dialog-header h2{font-size:20px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.dialog-header p{font-size:11px;color:#aa9ab7;margin:0;line-height:1.8}.icon-button{border:1px solid #eee7f4;background:#fcfaff;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:#a592b6;flex-shrink:0}.icon-button svg{width:16px;height:16px}#result-body{padding:24px 28px;display:grid;gap:14px}.result-section{border:1px solid #eee8f4;border-radius:12px;padding:19px;background:#fff}.result-section-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.result-section h3{font-size:12px;color:#9980ad;margin:0;font-weight:500}.result-section p{font-size:13px;line-height:2.1;white-space:pre-wrap;overflow-wrap:anywhere;color:#84718f;margin:12px 0 0}.result-stats{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#9c85ac}.result-stats span{background:#f0e9f8;border:1px solid #e8e0f0;border-radius:7px;padding:8px 11px}.dialog-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--border);padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-footer>span{font-size:10px;color:#b3a3c0}.toast{position:fixed;left:50%;bottom:35px;transform:translateX(-50%);background:#fff;color:#88709e;border:1px solid #e0d5ee;border-radius:10px;box-shadow:0 8px 40px #35214520;padding:14px 23px;font-size:12px;line-height:1.8;z-index:100;max-width:calc(100vw - 30px);width:max-content}.noscript{position:fixed;inset:auto 15px 15px;padding:15px;background:#fff3df;border:1px solid #e7c498;color:#8d704e;z-index:50}.copy-fallback{position:fixed;left:5%;top:10%;width:90%;height:160px;background:#fff;color:#333;border:2px solid var(--purple);z-index:200}
@media(min-width:1600px){.workspace{grid-template-columns:270px minmax(0,1fr)}.topics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{min-height:245px}.hero h1{font-size:34px}.hero-art{margin-right:40px}}
@media(max-width:1190px){.sidebar{width:205px;padding:30px 15px 20px}.main-shell{margin-left:205px;width:calc(100% - 205px)}main{padding:26px}.topbar,.footer{padding-left:26px;padding-right:26px}.hero{padding:28px;min-height:220px}.hero h1{font-size:26px}.hero-art{width:170px;transform:scale(.85);transform-origin:center right;margin-left:-25px}.workspace{grid-template-columns:210px minmax(0,1fr);gap:20px}.profile-summary{padding:20px 16px}.section-heading h2{font-size:16px}.primary{padding:10px 13px;font-size:11px}.topic-card{padding:17px}.profile-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.form-bottom{flex-direction:column;align-items:flex-start}.form-bottom p{max-width:none}.history-list{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-step small{font-size:9px}.workflow{gap:8px;padding:0}.workflow>i{width:22px}.workflow-step{gap:8px}}
@media(max-width:960px){.sidebar{width:175px;padding:25px 12px 18px}.main-shell{margin-left:175px;width:calc(100% - 175px)}.brand{font-size:20px;gap:8px}.brand small{font-size:8px}.brand-mark{width:36px;height:40px}.nav-item{font-size:12px;padding:13px 10px;gap:10px}.sidebar-tip{padding:20px 11px}.sidebar-tip p{font-size:14px}.hero h1{font-size:24px}.hero p{max-width:360px}.hero-art{display:none}.workspace{grid-template-columns:1fr}.profile-summary{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.profile-summary>.panel-heading{width:100%}#profile-summary{width:100%}.profile-identity{text-align:left;display:flex;align-items:center;padding:0;gap:12px}.profile-avatar{width:40px;height:40px;margin:0;font-size:18px}.profile-identity h3{font-size:13px;margin:0}.profile-identity p{margin-left:auto}.profile-summary dl{display:none}.profile-summary>.local-note{display:none}.summary-empty{display:flex;align-items:center;gap:15px;padding:0;text-align:left}.summary-empty .profile-avatar{display:none}.summary-empty h3{font-size:12px;white-space:nowrap}.summary-empty p{display:none}.summary-empty button{margin:0 0 0 auto;width:auto;font-size:11px;padding:8px 12px;min-height:34px}.profile-layout{grid-template-columns:1fr}.profile-advice{display:none}.workflow-step small{display:none}.workflow{margin:24px 0}.guide-grid{gap:15px}.guide-card{padding:22px}.page-intro h1{font-size:24px}}
@media(max-width:640px){.layout{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:auto;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#ffffffed;border:0;border-top:1px solid var(--border);backdrop-filter:blur(15px)}.sidebar .brand,.nav-label,.sidebar-tip,.version{display:none}.nav{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.nav-item{flex-direction:column;gap:4px;justify-content:center;padding:9px 2px 6px;font-size:9px;border-radius:8px}.nav-item svg{width:19px;height:19px}.nav-count{display:none}.main-shell{margin:0;width:100%}.topbar{height:58px;padding:0 18px}.breadcrumb{font-size:11px}.breadcrumb:before{content:"";display:inline-block;width:8px;height:8px;transform:rotate(45deg);background:#a18ad7;margin-right:9px;border-radius:2px}.breadcrumb span{margin:0 8px}.topbar-right{gap:10px}.server-status{font-size:9px;max-width:135px}.avatar{display:none}main{padding:18px 16px 30px;min-height:calc(100dvh - 145px)}.hero{padding:24px 20px;border-radius:15px;min-height:202px}.hero .eyebrow{font-size:8px;letter-spacing:1.3px}.hero h1{font-size:23px;line-height:1.5;letter-spacing:-.8px;margin-top:14px}.hero p{font-size:10px;line-height:1.9;max-width:290px}.hero-chips{font-size:8px;gap:6px;margin-top:19px}.hero-chips span{padding:5px 7px}.workflow{gap:5px;margin:20px 0}.workflow-step{gap:6px}.workflow-step>span{width:21px;height:21px;font-size:8px}.workflow-step strong{font-size:10px}.workflow>i{width:12px}.workspace{gap:23px}.profile-summary{padding:16px;border-radius:12px;gap:13px}.panel-heading h2{font-size:12px}.text-button{font-size:10px}.profile-identity h3{font-size:12px}.profile-identity p{font-size:10px;max-width:40%;line-height:1.7}.profile-avatar{width:33px;height:33px;border-radius:10px;font-size:15px}.section-heading{gap:8px}.section-heading h2{font-size:16px}.section-heading p{font-size:10px;max-width:180px;line-height:1.8;margin-top:6px}.section-heading .primary{font-size:10px;min-height:37px;padding:9px 10px;gap:4px}.section-heading .primary svg{width:13px;height:13px}.test-notice{font-size:9px;padding:9px 10px;margin-bottom:15px}.filters{gap:4px;margin-bottom:15px}.filter{font-size:10px;padding:7px 9px}.filter span{font-size:8px}.topics-grid{gap:12px;grid-template-columns:1fr}.topic-card{padding:18px;border-radius:12px}.topic-card h3{font-size:15px;margin-top:12px}.topic-card>p{font-size:12px}.topic-card details{font-size:11px}.tag{font-size:10px}.card-generate{font-size:12px}.card-actions{padding-top:13px}.duration{font-size:10px}.empty-state{min-height:300px;padding:35px 17px}.empty-state h3{font-size:14px}.empty-state p{font-size:10px}.footer{margin-bottom:65px;padding:17px 16px;font-size:8px;gap:10px}.page-intro{margin:10px 0 24px}.page-intro h1{font-size:23px;line-height:1.6}.page-intro>p{font-size:11px}.form-panel{padding:20px 17px}.form-grid{grid-template-columns:1fr;gap:23px;margin-top:24px}.span-2{grid-column:auto}.form-grid label{font-size:12px}.form-grid input,.form-grid textarea{font-size:16px;padding:11px;line-height:1.7}.form-grid input::placeholder,.form-grid textarea::placeholder{font-size:12px}.form-bottom .primary{width:100%;font-size:12px}.form-bottom p{font-size:10px}.history-list,.guide-grid{grid-template-columns:1fr}.history-card{padding:21px}.guide-card{padding:24px}.guide-card p{font-size:12px}.dialog-header{padding:22px 19px 17px}.dialog-header h2{font-size:17px}.dialog-header .eyebrow{font-size:8px}dialog{max-height:92dvh;border-radius:15px;width:calc(100% - 20px)}#result-body{padding:18px 15px;gap:12px}.result-section{padding:17px}.result-section p{font-size:12px}.dialog-footer{padding:14px 16px}.dialog-footer>span{font-size:8px;max-width:110px;line-height:1.8}.dialog-footer .primary{font-size:11px;min-height:38px}.generation-status{padding:12px;gap:9px}.generation-status strong{font-size:11px}.generation-status p{font-size:9px}.generation-status>.text-button{font-size:10px}.toast{bottom:95px;font-size:11px}.error-box{font-size:11px}.summary-empty h3{font-size:12px}.summary-empty{gap:10px}.summary-empty button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}
.account-button{white-space:nowrap;flex-shrink:0;min-height:36px;padding:6px 12px}.account-button svg{width:16px;height:16px}.account-body{padding:16px 24px 22px}.account-body form{display:grid;gap:14px}.account-body form[hidden]{display:none}.account-body label{display:grid;gap:6px;font-size:13px;font-weight:600}.account-body input{width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;font:inherit}.account-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.account-body [id=account-session] button{margin:6px 8px 0 0}.account-body p{overflow-wrap:anywhere}#account-dialog{width:min(420px,calc(100% - 24px))}
@media(max-width:640px){.account-button{font-size:11px;padding:5px 8px}.account-button svg{width:13px;height:13px}.account-body{padding:12px 16px 18px}.account-body input{font-size:16px}.topbar-right .server-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90px}.breadcrumb{white-space:nowrap}}
.works-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.card-actions,.dialog-footer{flex-wrap:wrap}.saved-topic-text{margin:16px 24px;white-space:pre-wrap;overflow-wrap:anywhere}#view-works .history-card h3,#view-works .history-card p{overflow-wrap:anywhere}
@media(max-width:640px){.nav{grid-template-columns:repeat(5,minmax(0,1fr))}.nav-item span{white-space:nowrap}.dialog-footer{gap:8px}}
.empty-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}.empty-actions button{max-width:100%}#resume-status{margin-top:12px;margin-bottom:0}
.generation-allowance{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:8px 0 12px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#53536c;font-size:13px}.layout[hidden],.login-screen[hidden],.login-panel [hidden]{display:none!important}.login-screen{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(ellipse at 50% 12%,#eae5ff,transparent 65%),#f7f7fc}.login-panel{width:min(100%,420px);padding:clamp(22px,5vw,40px);box-shadow:0 16px 60px #28245612}.login-mark{display:grid;place-items:center;border-radius:14px;width:48px;height:48px;background:#5b46cd;color:white;font-size:23px;font-weight:700;margin-bottom:16px}.login-panel h1{font-size:clamp(25px,6vw,32px);margin:8px 0}.login-intro{color:#555570;margin:0 0 20px}.login-panel form{display:grid;gap:14px}.login-panel label{display:grid;gap:6px;font-size:14px;font-weight:650}.login-panel input{font:inherit;font-size:16px;min-width:0;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:#fff;color:#272640}.login-panel form .text-button{justify-self:start}.login-panel .inline-message{margin-top:12px;min-height:1.4em}
.generation-allowance[hidden]{display:none}.generation-allowance p{flex:1 1 220px;margin:0;overflow-wrap:anywhere}.generation-allowance[data-limited='true'] p{color:#854308}.generation-allowance button{white-space:nowrap}
#order-list{list-style:none;padding:0;margin:8px 0 0}.account-order{margin:8px 0;padding:10px 12px;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere}.account-order summary{cursor:pointer;font-weight:650}.account-order dl{margin:8px 0 0}.account-order dl div{display:grid;grid-template-columns:minmax(0,7rem) minmax(0,1fr);gap:8px;padding-top:4px}.account-order dt{color:#555570}.account-order dd{margin:0}
.dialog-header>div{min-width:0;overflow-wrap:anywhere}.dialog-header .icon-button{flex-shrink:0}.dialog-header .result-copy-status:not(:empty){color:#4f397b;margin-top:5px}.manual-copy{display:grid;gap:10px;margin:12px 24px;padding:14px;border:1px solid #cfc3f6;border-radius:12px;background:#fff}.manual-copy textarea{display:block;min-width:0;width:100%;resize:vertical;min-height:96px;padding:8px;border:1px solid #cfc3f6;border-radius:8px;font-size:16px}.manual-copy .secondary{justify-self:start}
.phone-preview-banner{margin:0 0 16px;padding:10px 12px;border:1px solid #e8bf72;border-radius:8px;background:#fff6dc;color:#623e0b;font-size:13px;line-height:1.55}
.card-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.script-ready{padding:3px 8px;border-radius:99px;background:#e7f6ee;color:#17613d;font-size:12px;font-weight:700;white-space:nowrap}
.card-script-action{display:grid;gap:4px;text-align:center}
.card-generate.card-view-script{justify-content:center;min-height:44px;padding:8px 14px;border-radius:9px;background:#563bb5;color:#fff;font-size:14px;font-weight:700;white-space:nowrap}
.card-generate.card-view-script:hover:not(:disabled){background:#412b96;color:#fff}
.card-generate.card-view-script:focus-visible{outline:2px solid #563bb5;outline-offset:2px}
.card-script-hint{color:#5d526d;font-size:12px}
.mobile-only{display:none}
@media(max-width:640px){
  .mobile-only{display:inline-flex}
  .desktop-only,.topbar .breadcrumb,.topbar .server-status,.topbar .account-button svg{display:none}
  .topbar{height:auto;min-height:62px;padding:8px 14px;gap:8px;background:#fff}
  .mobile-brand{font-size:19px;font-weight:750;color:#211932;text-decoration:none;white-space:nowrap}
  .topbar-right{gap:6px;min-width:0}
  .topbar .secondary{padding:6px 10px;border-radius:24px;font-size:12px;font-weight:650;color:#5939ad;white-space:nowrap}
  #mobile-edit-profile,#mobile-resume-topics{min-height:44px}
  .nav-item,.account-button,#generate-topics,#resume-topics,.card-actions .card-generate,.dialog-header .icon-button,.dialog-footer button,.dialog-footer .primary,.result-section button,.manual-copy button,.login-panel button,.login-panel input{min-height:44px}
  .dialog-header .icon-button,.result-section button{min-width:44px}
  .manual-copy{margin-inline:16px}
  .dialog-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .toast{bottom:calc(95px + env(safe-area-inset-bottom))}

  /* Phone workspace: the topic list comes first, like the native app. */
  #view-studio .hero,#view-studio .workflow,#view-studio .profile-summary,#resume-topics{display:none}
  .topic-area{min-width:0;background:#fff;border:1px solid #ebe6f2;border-radius:15px;padding:13px 12px}
  .section-heading{align-items:flex-start;gap:8px;margin:0 0 9px}
  .section-heading h2{font-size:19px;color:#211932;letter-spacing:0;line-height:1.38}
  .section-heading h2 b{font-weight:inherit}
  .section-heading p{font-size:11px;color:#625775;line-height:1.5}
  #generate-topics{flex:none;background:#6940d8;color:#fff;border-radius:24px;font-size:12px;font-weight:700;padding-inline:12px}
  #generate-topics:hover:not(:disabled){background:#5331b5}
  .mobile-resume:has(button[hidden]){display:none}
  .mobile-resume{display:flex;margin-bottom:9px}
  #mobile-resume-topics{color:#5939ad;border-color:#dcd0fa;font-size:13px;font-weight:650;border-radius:22px;padding-inline:13px}
  .topic-area .test-notice{color:#625775;background:#f8f6fc;border-color:#ebe6f2;font-size:11px;line-height:1.55;margin:0 0 8px;padding:6px 8px}
  .topic-area .generation-allowance{font-size:11px;margin:0 0 6px;padding:2px 8px;gap:0 6px;align-items:center}
  .topic-area .generation-allowance p{flex-basis:145px}
  .topic-area .generation-allowance button{min-height:36px}
  .topic-area .filters{margin:0;gap:3px;flex-wrap:nowrap}
  .topic-area .filter{min-height:44px;padding:5px 5px;font-size:11px;white-space:nowrap;color:#625775}
  .topic-area .filter.active{color:#5534ac}
  .topic-area .empty-state{min-height:0;padding:18px 10px;margin-top:8px}
  .topic-area .empty-state h3{margin-top:8px;color:#483b61}
  .topic-area .empty-state p{color:#625775;font-size:12px;line-height:1.6;margin-bottom:8px}
  .topic-area .empty-state button{min-height:44px}
  .topics-grid{gap:0;margin-top:2px}
  .topic-card,.topic-card:hover{border:0;border-bottom:1px solid #eee9f5;border-radius:0;padding:10px 2px;background:transparent;box-shadow:none;gap:6px}
  .topic-card:last-child{border-bottom:0}
  .topic-card.expanded{background:#f7f3ff;border-radius:10px;padding-inline:7px}
  .mobile-topic-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px}
  .mobile-topic-copy{min-width:0}
  .mobile-topic-head .card-index{align-self:start;margin-top:4px;display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#eee6ff;color:#5d34bb;font-size:14px;font-weight:750}
  .expanded .mobile-topic-head .card-index{background:#6940d8;color:#fff}
  .mobile-topic-copy h3{margin:0;font-size:14px;font-weight:750;line-height:1.45;color:#211932}
  .mobile-topic-copy p{margin:4px 0 0;color:#605671;font-size:11px;line-height:1.45}
  .topic-card:not(.expanded) .mobile-topic-copy :is(h3,p){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .mobile-topic-side,.mobile-topic-side .card-badges{display:flex;flex-direction:column;align-items:flex-end}
  .mobile-topic-side .card-badges{gap:3px}
  .mobile-topic-side .tag{padding:3px 5px;border-radius:8px;font-size:10px;white-space:nowrap;color:#6035a0}
  .mobile-topic-side .tag.daily{color:#874b23}
  .mobile-topic-side .tag.roleplay{color:#814172}
  .mobile-topic-side .script-ready{font-size:10px;padding:2px 5px}
  .mobile-topic-toggle{border:0;background:transparent;color:#5939ad;padding:4px 5px;min-width:44px;min-height:44px;font-size:12px;font-weight:700;text-align:right}
  .mobile-topic-detail,.card-actions:has(.card-script-action){margin:0 0 2px 42px;padding:0;border:0}
  .mobile-topic-direction{font-size:13px;color:#4d435d;line-height:1.65;white-space:pre-wrap;margin:0 0 8px}
  .mobile-topic-actions{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
  .mobile-topic-actions .duration{color:#655874;font-size:11px}
  .mobile-topic-actions .text-button{min-height:44px;color:#5939ad}
  .mobile-topic-actions .card-generate{width:100%;justify-content:center;min-height:44px;padding:6px 8px;color:#5939ad;background:#eee7ff;border-radius:9px;font-size:13px;font-weight:700}
  .card-script-action{flex:1 1 100%}

  /* Keep one result DOM and its copy/save handlers; use an edge-to-edge sheet on phones. */
  body:has(#result-dialog[open]){overflow:hidden}
  #result-dialog[open]{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;min-height:0;border:0;border-radius:0;display:flex;flex-direction:column;overflow:hidden;background:#f6f4fa;box-shadow:none}
  #result-dialog .dialog-header{flex:none;position:static;padding:calc(12px + env(safe-area-inset-top)) 14px 10px;align-items:flex-start;gap:8px}
  #mobile-result-label{color:#563bb5;font-size:13px;font-weight:750}
  #result-title{font-size:18px;line-height:1.4;margin:5px 0;color:#211932}
  #result-meta{color:#635773}
  #close-result{width:auto;padding:6px 10px;color:#5939ad;font-weight:700}
  #result-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
  #result-body{padding:12px;gap:9px}
  .result-section{padding:12px;border-color:#ece6f3}
  .result-section h3{font-size:14px;font-weight:750;color:#483466}
  .result-section p{font-size:14px;line-height:1.7;color:#373043;margin-top:4px}
  .result-section button{color:#5939ad}
  .result-stats{font-size:12px;color:#594967}
  #result-save-status{flex:none;margin:0;padding:4px 14px;background:#fff;max-height:24dvh;overflow:auto}
  #result-dialog .dialog-footer{flex:none;position:static;display:flex;justify-content:flex-end;flex-wrap:wrap;padding:7px 12px calc(8px + env(safe-area-inset-bottom));gap:5px 8px}
  #result-dialog .dialog-footer>span{flex:1 0 100%;max-width:none;font-size:11px;color:#665b75}
  #result-dialog .dialog-footer button{flex:1 1 auto;font-size:12px;font-weight:700;padding-inline:9px}
  #result-dialog #save-result{color:#5939ad}
  #result-dialog #copy-all{background:#6940d8;color:#fff}
}
