:root{--mist:#f3f7fc;--white:#fff;--ink:#172f52;--blue:#245adb;--yellow:#f6c951;--muted:#62738a;--line:#dce5f0;--red:#af3049;font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);background:var(--mist);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #90adff;outline-offset:4px}[hidden]{display:none!important}.site-header{max-width:1220px;margin:auto;min-height:100px;display:flex;align-items:center;padding:20px 48px;gap:22px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:24px;font-weight:750;letter-spacing:2px}.brand-mark{background:var(--blue);color:white;width:38px;height:42px;display:grid;place-items:center;border-radius:8px 8px 14px 8px;font-size:23px;transform:rotate(-7deg)}.header-note{font-size:13px;color:var(--muted);padding-left:22px;border-left:1px solid var(--line)}.account{margin-left:auto;display:flex;gap:18px;align-items:center;font-size:14px}.account>span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{max-width:1220px;margin:0 auto;padding:16px 48px 30px}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.4;letter-spacing:-.8px}h2{font-size:21px;font-weight:650}h3{font-size:15px}.muted{color:var(--muted)}.small{font-size:12px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 22px;border-radius:10px;font-weight:600;line-height:1.4}.primary{color:white;background:var(--blue);box-shadow:0 4px 10px #245adb17}.primary:hover:not(:disabled){background:#194bc1}.secondary{color:var(--ink);background:white;border:1px solid var(--line)}.secondary:hover{background:#f6f9ff}.text-button{padding:5px 0;color:var(--blue);background:none;font-size:13px;text-decoration:none}.text-button:hover{text-decoration:underline}.boot{text-align:center;padding:140px 0;color:var(--muted)}.login-screen{min-height:610px;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:80px}.login-intro{position:relative;padding:30px 0}.login-intro h1{font-size:50px;line-height:1.5;letter-spacing:1px}.login-intro>p{margin-top:20px;color:var(--muted);font-size:15px;line-height:1.8}.intro-foot{font-size:13px;color:var(--muted);margin-top:65px}.paper-small{display:grid;place-items:center;background:var(--blue);color:white;width:60px;height:92px;border:5px double white;outline:1px solid #b0c7ff;border-radius:8px;transform:rotate(-12deg);margin:0 0 28px 8px;font-family:serif;font-size:35px}.login-form{background:white;padding:38px;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 60px #224a7a07}.login-form h2{margin-bottom:30px}.login-form .primary{width:100%;margin-top:8px}label{display:block;font-size:13px;font-weight:550;margin:18px 0 9px}input,textarea,select{width:100%;border:1px solid #cfdbe9;background:white;border-radius:8px;padding:12px;color:var(--ink);min-height:46px;line-height:1.5}input::placeholder,textarea::placeholder{color:#8491a5;font-size:13px}.form-note{margin-top:20px;font-size:12px;line-height:1.8;color:var(--muted)}.error{font-size:13px;color:var(--red);line-height:1.6;margin-top:10px;overflow-wrap:anywhere}.error:empty{display:none}.room-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0 30px}.room-heading h1{margin:11px 0}.room-heading>div{min-width:0}.room-heading h1{overflow-wrap:anywhere}.room-heading .muted{font-size:14px;line-height:1.6}.status-line{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.status-line #round-label{margin-left:12px;border-left:1px solid #c7d4e5;padding-left:16px}.status-dot{width:6px;height:6px;background:#359879;border-radius:100%}.status-dot.offline{background:#d59c27}.settings-button{white-space:nowrap;font-size:13px}.room-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:start}.draw-stage{position:relative;min-height:520px;background:white;border:1px solid var(--line);border-radius:20px;padding:24px 30px 0;display:flex;flex-direction:column;align-items:center;overflow:hidden}.stage-top{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;font-size:12px}.pill{background:#edf3ff;color:#31568f;border-radius:6px;padding:6px 10px;white-space:nowrap}.ticket-stack{height:270px;width:300px;position:relative;margin:3px auto 5px}.paper{position:absolute;left:74px;top:32px;width:156px;height:218px;border-radius:14px;background:#dde8fc;border:1px solid #bed1f2;transform-origin:50% 95%}.back-one{transform:rotate(-19deg);background:#d6e3fc}.back-two{transform:rotate(17deg);background:#93b1ee}.front{background:var(--blue);color:white;display:flex;align-items:center;flex-direction:column;transform:rotate(-2deg);border:7px double #8cacfa;box-shadow:0 12px 18px #19488718}.ticket-line{font-size:10px;letter-spacing:3px;margin-top:20px;opacity:.8}.ticket-symbol{font:86px/1.3 "Songti SC",SimSun,serif;margin-top:9px}.ticket-seal{margin-top:12px;font-size:9px;background:var(--yellow);color:#644e11;border-radius:4px;padding:6px 10px;letter-spacing:1px}.ticket-stack.drawing .front{animation:shake .22s ease-in-out infinite alternate}.ticket-stack.drawing .back-one{animation:fan .35s ease-in-out infinite alternate}@keyframes shake{from{transform:translateY(0) rotate(-6deg)}to{transform:translateY(-15px) rotate(6deg)}}@keyframes fan{to{transform:rotate(-25deg)}}.draw-button{width:240px;min-height:53px;font-size:17px;gap:45px}.draw-button span{font-size:22px;color:#d6e3ff}.draw-hint{color:var(--muted);font-size:12px;text-align:center;line-height:1.7;margin:13px 0 24px}.draw-stage>.error{margin-bottom:20px;max-width:400px;text-align:center}.stage-bottom{border-top:1px solid #edf1f7;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:63px;margin-top:auto;width:100%;font-size:12px;color:var(--muted)}.recent-panel{padding:12px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.section-heading h2{font-size:17px}.recent-item{border-bottom:1px solid var(--line);padding:18px 0;display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e4ecfa;color:#47618e;font-size:12px}.recent-result{font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.recent-meta{font-size:11px;margin-top:6px;display:flex;gap:8px;justify-content:space-between;color:var(--muted)}.recent-meta span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:125px}.recent-meta time{white-space:nowrap}.empty-state{padding:55px 18px;color:var(--muted);font-size:13px;line-height:1.9;text-align:center;border:1px dashed #cad8ea;border-radius:12px}.empty-state strong{display:block;color:#456082;font-size:16px;font-weight:500;margin-bottom:5px}.empty-symbol{display:block;font-size:36px;margin-bottom:15px;color:#91abd3}.history-button{width:100%;display:flex;justify-content:space-between;padding:19px 0;font-size:13px;background:none;color:var(--blue);border-bottom:1px solid var(--line)}.recent-note{font-size:12px;line-height:1.9;color:#7c8b9e;margin-top:24px}.room-footer{display:flex;justify-content:space-between;gap:20px;padding-top:28px;font-size:11px;color:#8190a5}.result{width:100%;max-width:470px;min-height:275px;text-align:center;display:flex;flex-direction:column;justify-content:center;margin:3px 0 5px}.result-label{color:var(--blue);font-size:13px;margin-bottom:18px}.result h2{font-size:30px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;max-height:230px;overflow:auto;padding:0 4px}.result .muted{font-size:12px;margin:18px 0}.result.long h2{font-size:20px}.result.reveal{animation:reveal .4s ease-out}@keyframes reveal{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}dialog{width:min(620px,calc(100% - 28px));max-height:90dvh;border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--ink);box-shadow:0 25px 100px #11274c22}dialog::backdrop{background:#13284766;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.icon-button{background:#eff3f9;color:#65788d;border-radius:50%;width:32px;height:32px;flex-shrink:0;font-size:23px;line-height:1}.dialog-intro{margin-top:12px;font-size:12px;line-height:1.7}.form-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.count-control{display:flex;gap:8px}.count-control input{min-width:65px}.count-control button{padding:10px 15px;white-space:nowrap}.bulk-editor{border:1px solid var(--line);padding:14px;border-radius:8px;margin-top:20px;font-size:13px}.bulk-editor summary{cursor:pointer;color:var(--blue)}.bulk-editor .secondary{margin-top:9px;font-size:12px}.ticket-editor-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:24px 0 12px}.ticket-editor{max-height:270px;overflow:auto;padding:3px 5px}.ticket-row{display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;gap:6px;margin-bottom:10px}.ticket-row label{margin:0;color:#8594a8;font-size:12px}.ticket-row input{min-height:40px;padding:9px 11px;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}.dialog-actions button{font-size:13px}.confirm-dialog{max-width:410px}.confirm-dialog p{margin-top:18px;line-height:1.8;font-size:14px}.history-tools{display:flex;gap:15px;justify-content:space-between;align-items:center;margin:16px 0}.history-tools p{font-size:12px}.history-entry{padding:16px 0;border-top:1px solid var(--line)}.history-entry h3{line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.history-entry p{font-size:12px;margin-top:8px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.history-entry .history-round{color:var(--blue);font-size:11px;margin-top:8px}.wide{width:100%;margin-top:18px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:var(--ink);color:white;font-size:13px;line-height:1.5;padding:14px 24px;border-radius:10px;box-shadow:0 8px 28px #172f5233;z-index:10}.drawing{pointer-events:none}@media(min-width:1450px){main{padding-top:40px}.login-screen{min-height:650px}}@media(max-width:950px){.site-header{padding:18px 28px}main{padding:12px 28px 24px}.room-grid{grid-template-columns:minmax(0,1fr) 250px;gap:25px}.draw-stage{padding:24px 22px 0}.login-screen{gap:40px}.login-intro h1{font-size:40px}.login-form{padding:28px}}@media(max-width:720px){.site-header{padding:18px 20px;min-height:80px}.header-note{display:none}main{padding:0 20px 24px}.brand{font-size:22px}.brand-mark{width:32px;height:36px;font-size:21px}.account{gap:12px}.account>span{max-width:100px}.room-heading{align-items:flex-start;padding:22px 0;gap:12px}.room-heading h1{font-size:26px;margin:10px 0}.room-heading .muted{font-size:12px}.status-line{font-size:10px}.status-line #round-label{margin-left:5px;padding-left:10px}.settings-button{min-height:38px;padding:8px 12px;font-size:12px;margin-top:34px;gap:6px}.settings-button>span{display:none}.room-grid{grid-template-columns:1fr;gap:26px}.draw-stage{min-height:490px;padding:20px 22px 0}.recent-panel{padding:0}.recent-note{display:none}.room-footer{font-size:10px}.login-screen{min-height:0;grid-template-columns:1fr;gap:20px;padding:20px 0}.login-intro{padding:0 0 0 78px;min-height:90px}.paper-small{position:absolute;left:0;top:8px;width:45px;height:70px;font-size:29px}.login-intro h1{font-size:27px;line-height:1.45}.login-intro>p{font-size:12px;margin-top:12px}.intro-foot{display:none}.login-form{padding:28px 24px}.login-form h2{font-size:19px;margin-bottom:20px}dialog{padding:22px;max-height:92dvh}.form-columns{grid-template-columns:1fr;gap:0}.dialog-actions{gap:8px}.dialog-actions button{padding:10px 14px}.result h2{font-size:26px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Authenticated room only. The public login design above remains unchanged. */
body.room-theme{--mist:#190f18;--white:#241520;--ink:#f8e9ed;--blue:#e1a3b5;--yellow:#e9c7a3;--muted:#bba0b1;--line:#4c2d40;--red:#ffa4b5;background:var(--mist);color:var(--ink);min-height:100dvh;color-scheme:dark}
html:has(body.room-theme){background:#190f18}
.room-theme .site-header{border-bottom:1px solid #372131;min-height:96px}
.room-theme .brand-mark{background:#713449;color:#f5d5df;box-shadow:inset 0 0 0 1px #b8788d;transform:rotate(-5deg)}
.room-theme .brand{font-family:"Songti SC",SimSun,serif;letter-spacing:3px}
.room-theme .header-note{color:#bba0b1;border-color:#4c2d40}
.room-theme .account{gap:13px}
.room-theme .role-badge{font-size:11px;font-weight:600;padding:6px 10px;color:#edb9c9;background:#3c2132;border:1px solid #714355;border-radius:6px;white-space:nowrap}
.room-theme .role-badge.is-m{background:#34242b;border-color:#715848;color:#e9c7a3}
.room-theme .room-heading{padding-top:30px;padding-bottom:30px;align-items:flex-end}
.room-theme .role-context{font-size:13px;color:#e9c7a3;margin-bottom:13px}
.room-theme .room-heading h1{font-size:36px;letter-spacing:.5px;font-weight:600;margin:10px 0 12px}
.room-theme .status-line{font-size:11px}
.room-theme .status-line #round-label{border-color:#614152}
.room-theme .status-dot{background:#ba91a0;box-shadow:0 0 0 3px #3c2331}
.room-theme .status-dot.offline{background:#dca65e}
.room-theme .primary{background:#e1a3b5;color:#27101c;box-shadow:0 6px 20px #0002;font-weight:650}
.room-theme .primary:hover:not(:disabled){background:#f0bccc}
.room-theme .secondary{background:#2c1927;color:#ecd5df;border-color:#684255}
.room-theme .secondary:hover:not(:disabled){background:#3e2435;border-color:#ae748c}
.room-theme .text-button{color:#e1a3b5}
.room-theme button:focus-visible,.room-theme a:focus-visible,.room-theme input:focus-visible,.room-theme select:focus-visible,.room-theme textarea:focus-visible,.room-theme summary:focus-visible{outline-color:#f5c6d4}
.room-theme .draw-stage{min-height:555px;padding:25px 30px 0;background:#261622;border:1px solid #573448;border-radius:20px;box-shadow:0 18px 60px #00000014}
.room-theme .stage-top{font-size:12px}
.room-theme .pill{background:#3b2432;color:#dec1ce;border:1px solid #654355;border-radius:5px;padding:5px 10px}
.room-theme .ticket-stack{height:305px;margin:5px auto 10px}
.room-theme .paper{width:170px;height:244px;left:65px;top:30px;background:#4c293e;border-color:#8c526b;border-radius:12px}
.room-theme .back-one{background:#452238;transform:rotate(-18deg);border:1px solid #7c475e}
.room-theme .back-two{background:#7d435a;transform:rotate(15deg);border:1px solid #af6e85}
.room-theme .front{background:linear-gradient(145deg,#743349 0%,#512539 47%,#301b2c 100%);color:#efd0da;border:6px double #c28d9e;box-shadow:0 14px 30px #09030866;transform:rotate(-3deg)}
.room-theme .ticket-line{font-size:10px;letter-spacing:1px;color:#e7b9c8;opacity:1;margin-top:24px}
.room-theme .ticket-symbol{font-size:92px;margin-top:9px;line-height:1.35;color:#f4dce4}
.room-theme .ticket-seal{display:flex;gap:6px;align-items:center;margin-top:13px;background:transparent;border:1px solid #c38f9d;border-radius:22px;color:#e9c7a3;font-size:10px;padding:6px 11px;letter-spacing:1px}
.room-theme .ticket-seal>span{font-size:15px;line-height:1}
.room-theme .draw-button{width:260px;gap:15px;letter-spacing:1px}
.room-theme .draw-hint{font-size:12px;margin:14px 0 22px;color:#b59bab}
.room-theme .stage-bottom{border-color:#4b2d40;color:#c4a9b7;min-height:64px}
.room-theme .section-heading h2{font-size:18px;color:#f0dce4;font-weight:550}
.room-theme .recent-panel{padding-top:10px}
.room-theme .recent-item{border-color:#442a3b;padding:20px 0}
.room-theme .avatar{background:#3e2737;color:#dfb1c2;border:1px solid #694357}
.room-theme .recent-result{font-weight:500;color:#efd9e2}
.room-theme .recent-meta{color:#bba0b1}
.room-theme .history-button{color:#e6acbf;border-color:#4c2d40}
.room-theme .empty-state{border-color:#624052;background:#21131e;color:#bda2b2;border-radius:10px;padding:54px 15px}
.room-theme .empty-state strong{color:#dec1d0;font-size:16px}
.room-theme .empty-symbol{color:#aa748b;font-family:serif}
.room-theme .recent-note{color:#ac8f9f}
.room-theme .room-footer{color:#a68598;padding-top:27px}
.room-theme .result{min-height:320px;position:relative;padding:16px 0}
.room-theme .result::before{content:'♡';display:block;font-size:34px;color:#d296a9;margin-bottom:20px;line-height:1}
.room-theme .result-label{color:#e5b1c4;letter-spacing:1px;margin-bottom:16px}
.room-theme .result h2{font-family:"Songti SC",SimSun,serif;font-size:32px;color:#f5dfe7}
.room-theme .result.long h2{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:21px}
.room-theme .s-console{width:100%;padding:27px 0 14px;min-height:320px}
.room-theme .console-heading{display:flex;gap:18px;align-items:center;margin-bottom:22px}
.room-theme .console-heading h2{font-size:23px;font-weight:500;font-family:"Songti SC",SimSun,serif}
.room-theme .console-heading p{font-size:12px;line-height:1.7;color:#bca0b2;margin-top:7px}
.room-theme .s-emblem{font-family:Georgia,serif;display:grid;place-items:center;font-size:29px;width:50px;height:58px;border:1px solid #af798d;border-radius:25px 25px 8px 8px;color:#e9c7a3;background:#371f2e;flex-shrink:0}
.room-theme .project-preview{list-style:none;padding:0;margin:0;border-top:1px solid #533045}
.room-theme .project-item{display:flex;gap:18px;align-items:baseline;padding:12px 2px;border-bottom:1px solid #44283a;font-size:14px;line-height:1.5}
.room-theme .project-number{font-size:11px;color:#c38d9e;min-width:20px}
.room-theme .project-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e6cdd8}
.room-theme .project-summary{color:#b499ab;font-size:11px;line-height:1.6;margin-top:13px}
.room-theme .manage-projects{min-width:230px;font-size:15px;margin-top:6px}
.room-theme dialog{background:#241520;color:#f8e9ed;border-color:#775065;box-shadow:0 25px 100px #08010799}
.room-theme dialog::backdrop{background:#09050bba;backdrop-filter:blur(5px)}
.room-theme .icon-button{background:#432a3c;color:#dfbdcc}
.room-theme input,.room-theme textarea,.room-theme select{background:#1b111b;color:#f4e0e9;border-color:#684357}
.room-theme input::placeholder,.room-theme textarea::placeholder{color:#a18297}
.room-theme .bulk-editor{background:#20121d;border-color:#543346}
.room-theme .bulk-editor summary{color:#e1a3b5}
.room-theme .ticket-row label{color:#cb9bb0}
.room-theme .history-entry{border-color:#543346}
.room-theme .history-entry .history-round{color:#dca5b9}
.room-theme .toast{background:#ecc2d0;color:#2e1426;border:1px solid #fff2}
@media(max-width:950px){.room-theme .account{gap:8px}.room-theme .role-badge{padding:5px 7px}.room-theme .draw-stage{padding:24px 22px 0}}
@media(max-width:720px){.room-theme .site-header{min-height:80px}.room-theme .brand{font-size:21px;gap:9px}.room-theme .account{gap:9px}.room-theme .account>span:not(.role-badge){max-width:70px}.room-theme .role-badge{font-size:10px;padding:5px 7px}.room-theme .room-heading{padding:24px 0 22px;gap:10px}.room-theme .role-context{font-size:12px;margin-bottom:10px}.room-theme .room-heading h1{font-size:29px;margin:10px 0}.room-theme .settings-button{margin-top:0;font-size:11px;padding:8px 10px;align-self:flex-end}.room-theme .room-heading .muted{font-size:12px;max-width:28em}.room-theme .draw-stage{min-height:530px;padding:20px 21px 0}.room-theme .ticket-stack{height:300px}.room-theme .stage-bottom{font-size:11px}.room-theme .s-console{padding-top:25px;min-height:320px}.room-theme .console-heading h2{font-size:21px}.room-theme .console-heading{gap:14px}.room-theme .recent-panel{padding-top:0}.room-theme .draw-button{max-width:100%;width:250px}.room-theme .draw-hint{font-size:11px}.room-theme .room-footer{font-size:10px;gap:12px}.room-theme .result h2{font-size:28px}.room-theme .result.long h2{font-size:19px}}
@media(max-width:370px){.room-theme .account>span:not(.role-badge){max-width:50px}.room-theme .role-badge{padding:5px;font-size:9px}.room-theme .room-heading h1{font-size:25px}.room-theme .ticket-stack{transform:scale(.92)}.room-theme .console-heading h2{font-size:19px}.room-theme .s-emblem{width:42px;height:52px;font-size:25px}}
