:root{--bg:#f5f6f2;--ink:#253b35;--muted:#76857e;--green:#326955;--pale:#e7efe7;--line:#e5e9e2;--danger:#a14d4a}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #96baa4;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.7px}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.8}.muted,.tiny{color:var(--muted)}.tiny{font-size:12px;margin-top:14px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7b9080;font-weight:600}.primary,.secondary{border-radius:9px;padding:11px 18px;font-weight:600;transition:background .15s}.primary{background:var(--green);color:#fff}.primary:hover{background:#24533f}.secondary{background:#fff;color:var(--ink);border:1px solid #dce3d9}.secondary:hover{background:#f2f5ef}.danger{color:var(--danger)}.text-button{background:none;color:var(--green);font-size:12px;padding:5px}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:650;letter-spacing:2px}.brand-mark{font-size:20px;display:grid;place-items:center;width:43px;height:46px;background:var(--green);color:#fff;border-radius:13px 13px 13px 3px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1px;color:var(--muted);margin-top:0}.layout{display:grid;grid-template-columns:228px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:34px 22px;position:fixed;width:228px;inset:0 auto 0 0;display:flex;flex-direction:column}.sidebar .brand{margin:0 7px 52px}.nav-label{font-size:10px;color:#94a097;letter-spacing:2px;margin:0 15px 13px}.nav{display:flex;align-items:center;gap:14px;background:none;color:#718076;text-align:left;width:100%;padding:12px 15px;border-radius:9px;margin-bottom:7px}.nav>span{font-size:20px;width:20px;line-height:1}.nav.active{background:#edf3ec;color:#2d604c;font-weight:650}.nav:hover{background:#f3f6f0}.nav b{margin-left:auto;background:#d7e6d4;border-radius:6px;min-width:20px;padding:0 5px;font-size:10px}.sidebar-foot{margin-top:auto;font-size:11px;color:#738477;padding:20px 8px 0}.sidebar-foot div{font-size:10px;margin-top:5px;color:#9aa69c}.status-dot{display:inline-block;background:#7f9f6e;width:6px;height:6px;border-radius:50%;margin-right:6px}.workspace{grid-column:2;padding:31px 42px 24px;max-width:1570px;width:100%}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.topbar h1{font-size:25px;margin-top:3px}.user-menu{display:flex;align-items:center;gap:10px;font-size:12px}.avatar{background:#e2e9db;color:#70806a;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:12px}.welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:15px}.welcome h2{font-size:23px;font-weight:550}.welcome p{color:var(--muted);font-size:12px;margin-top:5px}.pill{display:inline-block;font-size:10px;white-space:nowrap;border-radius:20px;padding:4px 11px;background:var(--pale);color:#57765c;border:1px solid #dce7d9}.pill.neutral{background:#f4f5f1;color:#879184;border-color:#e8ece3}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:10px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px 25px}.stat>span{color:var(--muted);font-size:12px}.stat strong{display:block;font-weight:500;font-size:38px;letter-spacing:-1px;margin:6px 0 4px;font-variant-numeric:tabular-nums}.stat small{font-size:12px;letter-spacing:0;font-weight:400;color:var(--muted);margin-left:4px}.stat p{font-size:10px;color:#889587}.stat progress{width:100%;height:4px;border:0;border-radius:4px;display:block;margin:5px 0 8px;background:#ebeee7;accent-color:#88a371}.stat progress::-webkit-progress-bar{background:#ebeee7;border-radius:4px}.stat progress::-webkit-progress-value{background:#88a371;border-radius:4px}.metrics-note{color:#909b91;font-size:10px;margin:9px 0 26px}.overview-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.card-heading h2{font-size:16px}.card-heading .eyebrow{font-size:9px}.card-heading p{font-size:12px;margin-top:6px}.connection{display:flex;flex-direction:column;align-items:center}.connection .card-heading{align-self:stretch}.qr-placeholder{width:100%;padding:29px 10px 24px;text-align:center;background:#f8f9f5;border:1px dashed #dce3d5;border-radius:11px;margin:2px 0 17px}.qr-icon{color:#97a98a;font-size:59px;display:block;line-height:1.15;margin-bottom:18px}.qr-placeholder h3{font-weight:500}.qr-placeholder p{font-size:11px;color:#91a08c;margin-top:9px}.qr-wrapper{text-align:center;width:100%;margin:0 0 12px}.qr-wrapper img{max-width:100%;max-height:340px;object-fit:contain;display:block;margin:auto;border-radius:4px}.qr-wrapper p{font-size:10px;margin-top:8px}.message{font-size:12px;overflow-wrap:anywhere;text-align:center;margin-bottom:15px}.actions{display:flex;gap:9px;flex-wrap:wrap}.connection .tiny{text-align:center;font-size:10px}.overview-side{display:grid;gap:20px;align-content:start}.book-row{display:flex;align-items:center;gap:18px;margin:8px 0 25px}.book-row h3{line-height:1.6;overflow-wrap:anywhere;font-weight:550}.book-row p{color:var(--muted);font-size:11px;margin-top:6px}.book-cover{flex-shrink:0;width:59px;height:80px;background:#e1e8d9;border:1px solid #cbd7bf;border-left:5px solid #aec197;color:#839777;font-size:10px;letter-spacing:2px;padding:17px 7px;box-shadow:3px 3px 0 #f0f3ec;border-radius:1px 4px 4px 1px}.task-card .tiny{font-size:10px}.notification{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid #edf0e9}.notification:last-child{border:0;padding-bottom:0}.notice-marker{flex-shrink:0;width:7px;height:7px;background:#8fa680;border-radius:50%;margin-top:8px}.notification.read .notice-marker{background:#d4dbd0}.notification.warning .notice-marker{background:#c9a878}.notification.error .notice-marker{background:#b17771}.notification h3{font-size:12px;font-weight:550}.notification p{font-size:11px;color:#8b9788;margin-top:3px;overflow-wrap:anywhere}.notification time{display:block;font-size:10px;color:#a3aca0;margin-top:5px}.notification-list.full .notification{padding:18px 0}.empty{color:#a1ac9b;text-align:center;font-size:12px;padding:23px 0}.form-card{max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px 24px}label{display:block;font-size:12px;color:#5f7266}input:not([type=checkbox]){width:100%;border:1px solid #dfe5da;border-radius:8px;background:#fbfcf9;padding:11px 12px;display:block;margin-top:7px;color:var(--ink);outline-offset:1px}input::placeholder{color:#a3ada0;font-size:11px}input:focus{border-color:#9bb08d}.toggle-row{display:flex;align-items:center;justify-content:space-between;background:#f3f7ef;border-radius:9px;padding:16px;margin-bottom:25px;font-size:14px}.toggle-row small{display:block;color:#8d9b85;font-size:11px;margin-top:3px}input[type=checkbox]{accent-color:var(--green);width:20px;height:20px}details{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}summary{cursor:pointer;font-size:12px;color:#7b8b75}details label{margin-top:15px}.form-footer{display:flex;align-items:center;gap:15px;margin-top:25px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px;text-align:left}th{font-size:10px;color:#8b9a83;font-weight:500;padding:12px;background:#f6f8f2;white-space:nowrap}td{padding:16px 12px;border-bottom:1px solid #edf0e9;max-width:270px;overflow-wrap:anywhere}.account-summary{background:#f6f8f3;padding:18px;border-radius:10px;margin-bottom:25px;font-size:12px}.account-summary>span{color:var(--muted);margin-right:25px}.account-summary p{font-size:11px;color:#91a088;margin-top:8px}#password-form{max-width:460px}#password-form label{margin-top:17px}#password-form button{margin-top:18px}.workspace-foot{display:flex;justify-content:space-between;color:#a4ada0;font-size:10px;margin-top:30px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-intro{background:#e9efdf;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:80px max(40px,12%)}.login-intro h1{font-size:clamp(36px,4vw,59px);font-weight:450;line-height:1.35;letter-spacing:1px;margin:30px 0 22px}.login-intro p{font-size:13px;color:#87977b;line-height:2}.intro-foot{font-size:10px;letter-spacing:2px;color:#a2ae91;position:absolute;bottom:36px}.book-art{display:flex;gap:9px;height:145px;align-items:flex-end;margin:50px 0 0 30px;transform:rotate(-6deg)}.book-art div{width:57px;height:119px;background:#afc197;border-left:6px solid #9db282;border-radius:3px 5px 5px 3px;box-shadow:4px 4px 0 #dde5d1}.book-art div:nth-child(2){height:146px;background:#d8d5ba;border-color:#c1be9c;transform:rotate(7deg)}.book-art div:nth-child(3){height:103px;background:#cad6be;border-color:#b8c6aa}.login-box{align-self:center;justify-self:center;width:360px;max-width:calc(100% - 64px);padding:45px 0}.login-box .brand{margin-bottom:51px}.login-box h2{font-size:27px;font-weight:500}.login-box>.muted{font-size:12px;margin-top:7px}.login-box form{margin-top:30px}.login-box label{margin-bottom:18px}.wide{width:100%;display:flex;justify-content:space-between;align-items:center}.error{min-height:16px;color:var(--danger);font-size:11px;margin:0 0 10px}.login-note{color:#9aa58f;font-size:11px;margin-top:23px}.login-box>.tiny{font-size:10px;margin-top:26px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#293f34;color:#fff;padding:12px 22px;border-radius:10px;box-shadow:0 8px 30px #253b3520;max-width:90vw;font-size:12px;z-index:10}[hidden]{display:none!important}@media(min-width:1500px){.workspace{padding-left:65px;padding-right:65px}}@media(max-width:1100px){.workspace{padding:25px}.layout{grid-template-columns:190px 1fr}.sidebar{width:190px;padding:28px 12px}.overview-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:18px}.stat strong{font-size:32px}}@media(max-width:720px){.layout{display:block}.sidebar{position:static;width:100%;padding:17px 18px;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 0 17px;font-size:18px}.brand-mark{width:34px;height:36px;font-size:16px}.nav-label,.sidebar-foot{display:none}.sidebar nav{display:flex;gap:4px;overflow-x:auto}.nav{min-width:max-content;width:auto;padding:8px 11px;font-size:11px;margin:0;gap:6px}.nav>span{display:none}.workspace{padding:20px 16px}.topbar{margin-bottom:24px}.topbar h1{font-size:22px}.welcome{align-items:flex-start;flex-direction:column}.welcome h2{font-size:19px}.stats{grid-template-columns:1fr 1fr}.stat:first-child{grid-column:span 2}.stat strong{font-size:32px}.card{padding:20px}.form-grid{grid-template-columns:1fr}.workspace-foot{flex-direction:column;gap:6px}.login-screen{grid-template-columns:1fr}.login-intro{display:none}.login-box{padding:48px 0}.login-box .brand{margin-bottom:40px}.form-footer{align-items:flex-start;flex-direction:column}}

/* v0.2: private reading workspace */
:root{--bg:#f7f8fa;--ink:#273633;--muted:#75827d;--line:#e7ece9;--green:#347361;--sidebar:#202a28}
body{font-size:14px;-webkit-font-smoothing:antialiased}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.primary,.secondary,.text-button{display:inline-flex;justify-content:center;align-items:center;gap:8px}.primary,.secondary{padding:12px 20px;border-radius:10px;font-size:13px;transition:background .15s,transform .15s}.primary:hover{transform:translateY(-1px)}.primary .icon,.secondary .icon{width:17px;height:17px}.text-button{font-size:12px;padding:5px 0}.text-button .icon{width:14px;height:14px}.brand-mark{width:43px;height:43px;border-radius:12px}.brand-mark .icon{width:25px;height:25px;stroke-width:1.4}.brand.light{color:#f4f5ee}.brand.light .brand-mark{background:#d9e4c5;color:#4b5a40}.brand.light small{color:#99ad9e;font-size:9px}.sidebar{background:var(--sidebar);width:232px;padding:34px 20px 24px;border:0}.layout{grid-template-columns:232px 1fr}.sidebar .brand{margin:0 8px 48px}.nav-label{color:#82968a;font-size:10px;margin-bottom:17px}.nav{color:#a7b5ad;padding:13px 16px;margin-bottom:8px;font-size:13px;gap:13px}.nav .icon{width:18px;height:18px}.nav.active{background:#3b4841;color:#eff5e6}.nav.active .icon{color:#d3e3b9}.nav:hover{background:#303d36}.nav b{background:#d7e4be;color:#4b5c3c}.sidebar-note{margin:auto 12px 35px;padding-top:55px}.sidebar-note>.icon{width:27px;height:27px;color:#718b78;margin-bottom:15px;stroke-width:1.3}.sidebar-note p{color:#9dae9f;font-size:19px;font-weight:350;line-height:1.8}.sidebar-note>span{font-size:8px;letter-spacing:1.2px;display:block;color:#6d866f;margin-top:13px}.sidebar-foot{display:flex;align-items:center;gap:10px;padding:20px 7px 0;border-top:1px solid #37473b;color:#aabbaa;font-size:11px;margin-top:0}.sidebar-foot>.icon{color:#7e9b81;width:17px;height:17px}.sidebar-foot small{display:block;font-size:9px;color:#8aa08d;margin-top:3px}.sidebar-foot .status-dot{margin-left:auto}.workspace{padding:0 40px 24px;max-width:1590px;margin:0 auto}.topbar{height:86px;border-bottom:1px solid var(--line);margin-bottom:29px}.breadcrumb{font-size:11px;color:#91a097}.breadcrumb>span{margin:0 13px;color:#c8d2c7}.breadcrumb>b{font-weight:400;color:#6d8564}.user-menu{font-size:12px;gap:10px}.avatar{width:31px;height:31px}.avatar .icon{width:16px;height:16px}.icon-button{position:relative;background:none;color:#84977d;padding:8px;margin-right:10px}.icon-button span{width:5px;height:5px;border-radius:50%;background:#ddac78;position:absolute;right:9px;top:7px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px}.page-heading h1{font-size:29px;margin-top:5px;font-weight:600}.page-heading .eyebrow{font-size:10px;letter-spacing:1px}.live-label{color:#859b7d;font-size:10px}.welcome{position:relative;overflow:hidden;min-height:185px;background:#eaf1e5;border:1px solid #e0e9d8;border-radius:15px;padding:29px 34px;margin-bottom:24px}.welcome h2{font-size:31px;color:#3c5834;margin:8px 0 7px;font-weight:500;letter-spacing:1px}.welcome p{font-size:12px;color:#738e63}.hero-label{font-size:9px;letter-spacing:2px;color:#8da578}.hero-link{display:flex;align-items:center;gap:12px;background:transparent;color:#5c7c47;padding:0;font-size:12px;margin-top:18px}.hero-link .icon{width:15px;height:15px}.welcome>.pill{position:absolute;right:26px;top:22px;background:#f4f8ed;border-color:#dce7d0;color:#7f9a6b;font-size:10px}.hero-decoration{position:absolute;width:270px;height:188px;right:65px;bottom:-20px;transform:rotate(-10deg)}.hero-book{position:absolute;border-radius:3px 6px 6px 3px;box-shadow:4px 5px 0 #6e804214;border-left:8px solid #9dac7c;width:66px;height:120px;bottom:0;left:20px;background:#cad5b1}.hero-book.one{transform:rotate(-7deg);left:25px;bottom:8px}.hero-book.two{left:100px;height:153px;background:#ddcc9e;border-color:#b2a67b;bottom:9px;transform:rotate(3deg);display:grid;place-items:center;color:#9c8d66}.hero-book.two span{border:1px solid #bcaf8d;padding:7px 9px;font-size:21px;font-family:serif}.hero-book.three{left:176px;width:58px;height:107px;background:#adc099;border-color:#8d9f75;transform:rotate(10deg);bottom:2px}.hero-sun{position:absolute;right:35px;top:3px;font-size:46px;color:#b4c298}.stats{grid-template-columns:1.4fr 1fr 1fr;gap:18px}.stat{padding:24px;background:#fff;border-radius:14px;box-shadow:0 4px 15px #233f2c03;min-height:158px}.stat-label{color:#7e9274;font-size:12px;display:flex;align-items:center;gap:7px}.stat-label .icon{width:15px;height:15px;color:#92aa82}.stat strong{font-size:40px;font-weight:450;line-height:1.3;margin:10px 0 8px}.stat p{font-size:11px;color:#8d9d84}.stat small{font-size:11px}.stat-bottom{display:flex;align-items:center;gap:7px;margin-top:11px}.mini-dot{width:5px;height:5px;border-radius:50%;background:#9eb985}.mini-dot.orange{background:#dcb185}.progress-stat{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress-stat>div:first-child{flex:1}.stat progress{width:95%;height:4px;margin:10px 0 0}.progress-ring{position:relative;width:95px;height:95px;flex-shrink:0}.progress-ring>svg{width:100%;height:100%;transform:rotate(-90deg)}.ring-track,.ring-fill{fill:none;stroke-width:7}.ring-track{stroke:#edf2e6}.ring-fill{stroke:#97b37c;stroke-linecap:round;transition:stroke-dashoffset .8s}.progress-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.progress-ring b{font-size:22px;font-weight:500;line-height:1.2}.progress-ring small{font-size:9px;margin:5px 0 0;color:#8ba079}.metrics-note{font-size:10px;color:#8e9f82;margin:13px 0 25px}.overview-grid{grid-template-columns:1.2fr 1fr;align-items:start;gap:23px}.card{border-radius:14px;padding:26px;box-shadow:0 4px 15px #233f2c03}.card-heading h2{display:flex;align-items:center;gap:8px;font-size:16px}.card-heading h2 .icon{width:17px;height:17px;color:#8eac78}.card-heading .muted{font-size:12px}.card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f1f6eb;color:#91aa7c}.book-row{gap:24px;margin:7px 0 24px}.book-cover{width:87px;height:120px;background:#e7e9dc;border:1px solid #d7dec8;border-left:6px solid #acbc91;color:#869f6d;box-shadow:3px 4px 0 #f2f5ed;border-radius:1px 5px 5px 1px;display:flex;flex-direction:column;align-items:center;padding:20px 5px;letter-spacing:0}.book-cover>.icon{width:25px;height:25px;stroke-width:1.2}.book-cover>strong{font-family:serif;font-size:19px;font-weight:400;letter-spacing:4px;margin:9px 0 7px}.book-cover>span{font-size:6px;letter-spacing:1px}.book-details{min-width:0}.book-details h3{font-size:18px;font-weight:500;line-height:1.7;margin:5px 0 7px;overflow-wrap:anywhere}.book-details>.eyebrow{font-size:9px}.book-details p{font-size:11px;color:#829775}.book-details .text-button{font-size:10px;margin-top:9px}.task-controls{display:flex;align-items:center;gap:11px;border-top:1px solid #edf2e5;padding-top:20px}.task-controls .primary{flex:1}.task-controls .secondary{padding:12px 15px}.task-card .tiny{font-size:10px;color:#8fa080;margin-top:13px}.subtle-count{font-size:10px;color:#8da47a;background:#f0f5e8;padding:0 6px;border-radius:5px;font-weight:400;margin-left:3px}.connection{display:block}.connection-steps{list-style:none;padding:18px 0 0;display:flex;justify-content:space-between;gap:5px;margin:0 0 23px;border-top:1px solid #eff3e9}.connection-steps li{font-size:11px;color:#8fa37d;display:flex;align-items:center;gap:6px}.connection-steps span{background:#f0f5e8;color:#99ae84;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:10px}.connection-steps li.active{color:#6b934f}.connection-steps li.active span{background:#e2edd5;color:#6c8e52}.qr-placeholder{padding:27px 10px 26px;background:#fafcf7;border-color:#dae5d0;margin:0 0 18px}.scan-corners{width:103px;height:103px;border:1px solid #dfebd3;border-radius:13px;padding:24px;margin:0 auto 19px;background:#f0f6e9;box-shadow:0 0 0 7px #f7faf2}.scan-icon{width:100%;height:100%;fill:none;stroke:#aec493;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round}.qr-placeholder h3{font-size:14px;color:#738f5e}.qr-placeholder p{font-size:11px;color:#8eaa75;margin-top:7px}.qr-placeholder.connected .scan-icon{stroke:#86aa75}.qr-mat{border:1px solid #e1ecd5;background:#fafcf7;border-radius:11px;padding:13px}.qr-wrapper img{max-height:300px}.qr-wrapper p{font-size:10px}.reader-status{display:flex;align-items:flex-start;gap:8px;margin:0 0 17px}.message{font-size:11px;color:#7e956c;text-align:left;margin:0;line-height:1.8}.state-dot{background:#bacdb0;width:6px;height:6px;border-radius:50%;margin-top:7px;flex-shrink:0}.state-dot[data-state=reading],.state-dot[data-state=connected]{background:#8db879}.state-dot[data-state=login_required]{background:#deb079}.state-dot[data-state=error]{background:#c79276}.connection .actions .primary{flex:1}.private-caption{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#8fa67b;margin-top:16px}.private-caption .icon{width:12px;height:12px}.pill[data-state=reading],.pill[data-state=connected]{background:#eef6e7;color:#80a969;border-color:#e1edd5}.pill[data-state=login_required]{background:#fcf3e8;color:#bc9a68;border-color:#f5e6d0}.pill[data-state=error],.pill[data-state=verification_required]{background:#faf0ea;color:#bb947b;border-color:#f0ddce}.notice-marker{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;background:#f0f6e8;color:#9bb581;border-radius:9px;margin-top:2px}.notice-marker .icon{width:15px;height:15px}.notification.read .notice-marker{background:#f4f8ee;color:#b0c49a}.notification.warning .notice-marker{background:#fcf5e9;color:#d2b580}.notification.error .notice-marker{background:#faf0e9;color:#cfa386}.notification{padding:15px 0;gap:12px}.notification:first-child{padding-top:0}.notification h3{font-size:12px;color:#77945e}.notification p{font-size:10px;color:#92ab7e}.notification time{font-size:9px;color:#9fb58c;margin-top:5px}.notification-list.full .notification{padding:23px 0}.notification-list.full .notification h3{font-size:14px}.notification-list.full .notification p{font-size:12px}.empty{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:12px;color:#8dab79;padding:29px 0}.empty>.icon{width:28px;height:28px;color:#bbcea8;stroke-width:1.2}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:28px;align-items:start}.form-card{max-width:1000px;padding:31px}.form-section{display:flex;align-items:center;gap:11px;margin:27px 0 19px}.section-number{font-size:10px;color:#b4cda1;letter-spacing:1px}.form-section h3{font-size:14px;color:#81a366;font-weight:500}.form-grid{gap:21px 24px}label{font-size:12px;color:#7d9a64}.optional{float:right;font-size:10px;color:#a1ba89}input:not([type=checkbox]){padding:13px;margin-top:9px;font-size:13px;border-color:#deead2;background:#fcfef9;border-radius:9px}input::placeholder{font-size:11px;color:#a3bf8b}.toggle-row{background:#f3f8eb;border:1px solid #e5efd8;border-radius:11px;padding:18px;font-size:14px}.toggle-row small{font-size:11px;color:#9ab982}.form-footer{margin-top:29px}.form-footer .muted{font-size:11px}.settings-note{padding:25px 9px 0}.note-icon{width:48px;height:48px;border-radius:14px;background:#eaf2df;color:#9cba7e;display:grid;place-items:center;margin-bottom:24px}.note-icon .icon{width:24px;height:24px;stroke-width:1.3}.settings-note h3{font-size:21px;font-weight:350;color:#91b16e;line-height:1.8}.settings-note ul{padding-left:15px;margin-top:24px;color:#a2bc88;font-size:11px;line-height:2.8}.account-summary{display:flex;align-items:center;gap:16px;padding:20px;background:#f5faed;border:1px solid #e6f1d8;border-radius:11px}.account-avatar{display:grid;place-items:center;width:44px;height:44px;background:#e7f1d8;border-radius:50%;color:#a1bf80}.account-summary strong{display:block;font-size:15px;color:#85a560;margin-top:4px}.account-summary p{font-size:10px;margin-top:5px;color:#a1bf82}.account-summary>.pill{margin-left:auto}.result-pill{border-radius:5px;background:#f2f8e9;padding:4px 9px;font-size:10px;color:#95b377;white-space:nowrap}.result-pill[data-result=completed]{background:#eaf6df;color:#86b062}.result-pill[data-result=error],.result-pill[data-result=login_timeout]{background:#fcf5e8;color:#cfb077}.workspace-foot{font-size:9px;letter-spacing:.4px;margin-top:33px;color:#b1c49d}.login-screen{background:#fff}.login-intro{background:#26362c;padding:50px 10%;min-height:760px}.login-intro>.brand{position:absolute;top:44px}.intro-copy{margin-top:85px;position:relative;z-index:1}.intro-copy .eyebrow{color:#90ab88;font-size:10px;letter-spacing:2px}.intro-copy h1{font-size:clamp(32px,3.1vw,48px);font-weight:350;line-height:1.6;letter-spacing:1px;color:#edf2de;margin:20px 0 18px}.intro-copy h1 span{color:#d3e3b0}.intro-copy p{font-size:12px;color:#a5bd92;line-height:2}.reading-art{position:relative;height:292px;margin-top:30px}.art-orbit{position:absolute;left:13px;top:16px;border:1px solid #586f4780;border-radius:50%;width:281px;height:281px}.art-orbit.second{width:218px;height:218px;left:45px;top:47px}.art-book{position:absolute;width:126px;height:194px;left:40px;bottom:32px;border-radius:2px 6px 6px 2px;box-shadow:5px 8px 0 #14251c24;border-left:9px solid #a6b38a;transform:rotate(-15deg);background:#dce4bd}.art-book.back{left:167px;width:102px;height:160px;bottom:37px;transform:rotate(12deg);background:#b8cb95;border-color:#98ad7a;color:#849e63;display:grid;place-items:center}.art-book.back span{writing-mode:vertical-rl;letter-spacing:7px;font-size:12px}.art-book.front{padding:25px 16px;color:#677d44}.cover-line{width:23px;height:2px;background:#9aab79;margin-bottom:21px}.art-book.front strong{font:700 15px/1.6 Georgia,serif;letter-spacing:1px}.art-book.front>span{font-size:6px;letter-spacing:.5px;display:block;margin-top:24px}.art-star{position:absolute;top:17px;left:239px;font-size:42px;color:#a9c081;transform:rotate(15deg)}.intro-foot{font-size:10px;letter-spacing:.4px;color:#96b27f;bottom:28px}.login-box{width:360px;padding:50px 0}.login-lock{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#f0f7e8;color:#a3c187;margin-bottom:31px}.login-lock .icon{width:25px;height:25px;stroke-width:1.4}.login-box>.eyebrow{font-size:10px;color:#a0bd84}.login-box h2{font-size:26px;font-weight:500;letter-spacing:.5px;margin-top:7px;color:#6f944e}.login-box>.muted{font-size:12px;margin-top:10px;color:#9ab97b}.login-box form{margin-top:31px}.login-box label{margin:21px 0 0;font-size:12px;color:#96b676}.login-box input:not([type=checkbox]){margin-top:10px;padding:14px}.login-remember{display:flex;align-items:center;gap:7px;font-size:11px;color:#9bbd76;margin-top:19px}.login-remember>.icon{width:14px;height:14px;color:#a4c77c}.login-remember>span{margin-left:auto;font-size:10px;color:#afcb92}.wide{justify-content:space-between;padding:14px 19px}.error{margin-top:14px;font-size:11px}.login-help{display:flex;gap:12px;background:#f6fbea;border:1px solid #eaf3db;border-radius:11px;padding:16px;margin-top:27px;color:#a1c279}.login-help>.icon{width:18px;height:18px;margin-top:3px}.login-help p{font-size:11px;color:#99b96e}.login-help span{font-size:10px;color:#aac98b}.login-note{font-size:9px;color:#a4c482;margin-top:20px}.toast{font-size:12px}
/* Readable secondary text across all surfaces. */
.stat-label,.stat p,.message,.private-caption,.connection-steps li,.book-details p,.tiny,.metrics-note,.notification p,.notification time,.login-box label,.login-note,.login-box>.muted,.login-remember,.login-help p,.login-help span,.optional,.settings-note ul,.account-summary p{color:#708471}.notification h3,.form-section h3,label{color:#577d47}.login-box h2{color:#385b35}.settings-note h3{color:#718b5d}.sidebar .sidebar-foot small{color:#99ad9b}.sidebar-note>span{color:#91a88f}
@media(min-width:1550px){.workspace{padding-left:65px;padding-right:65px}.welcome{min-height:200px}.hero-decoration{right:110px}.card{padding:29px}}
@media(max-width:1180px){.workspace{padding:0 26px 22px}.layout{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:30px 14px 22px}.stats{gap:11px}.stat{padding:20px 16px}.stat strong{font-size:34px}.progress-ring{width:74px;height:74px}.overview-grid{gap:18px}.card{padding:23px}.hero-decoration{right:28px;transform:scale(.82) rotate(-10deg);transform-origin:bottom right}.settings-layout{grid-template-columns:1fr}.settings-note{display:none}.book-row{gap:19px}.book-cover{width:76px;height:108px}.book-details h3{font-size:16px}.connection-steps li{font-size:10px}}
@media(max-width:940px){.overview-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.progress-stat{grid-column:span 2}.progress-ring{width:95px;height:95px}.connection-steps{justify-content:center;gap:36px}.connection .actions{justify-content:center}.connection .actions .primary{flex:0 1 260px}.hero-decoration{right:0;opacity:.7}.reading-art{transform:scale(.85);transform-origin:left center}}
@media(max-width:720px){.layout{display:block}.sidebar{position:static;width:100%;padding:19px 17px 14px}.sidebar .brand{margin:0 3px 20px;font-size:21px}.brand-mark{width:35px;height:35px;border-radius:10px}.brand-mark .icon{width:21px;height:21px}.nav-label,.sidebar-note,.sidebar-foot{display:none}.sidebar nav{display:flex;gap:4px;overflow-x:auto}.nav{min-width:max-content;width:auto;padding:9px 11px;font-size:11px;margin:0;gap:7px}.nav .icon{width:14px;height:14px}.workspace{padding:0 17px 20px}.topbar{height:66px;margin-bottom:22px}.breadcrumb{font-size:10px}.breadcrumb>span{margin:0 8px}.user-menu{gap:7px;font-size:10px}.icon-button{padding:5px;margin:0}.icon-button>.icon{width:16px;height:16px}.avatar{width:27px;height:27px}.page-heading h1{font-size:26px}.live-label{font-size:9px;max-width:110px;text-align:right}.welcome{padding:25px 23px;min-height:176px}.welcome h2{font-size:27px}.welcome p{font-size:11px;max-width:220px}.welcome>.pill{font-size:9px;top:15px;right:14px}.hero-decoration{right:-58px;transform:scale(.59) rotate(-10deg);opacity:.5}.hero-link{font-size:11px}.stats{gap:11px}.stat{padding:21px}.stat strong{font-size:36px}.stat-label{font-size:11px}.stat p{font-size:10px}.card{padding:23px}.card-heading h2{font-size:16px}.form-grid{grid-template-columns:1fr}.form-footer{align-items:flex-start;flex-direction:column}.account-summary{gap:10px;padding:15px}.account-summary p{font-size:9px}.account-avatar{width:34px;height:34px;flex-shrink:0}.workspace-foot{font-size:8px}.login-screen{grid-template-columns:1fr}.login-intro{min-height:255px;height:255px;padding:24px 26px;display:block}.login-intro>.brand{top:23px;font-size:21px}.intro-copy{margin-top:88px}.intro-copy .eyebrow,.intro-copy p,.reading-art,.intro-foot{display:none}.intro-copy h1{font-size:28px;line-height:1.6;margin:17px 0 0}.login-box{padding:35px 0 42px;max-width:calc(100% - 56px)}.login-lock{display:none}.login-box h2{font-size:23px}.login-box form{margin-top:25px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* SMS_VERIFICATION_UI_V1 */
.verification-form{display:flex;flex-direction:column;align-self:stretch;gap:9px;padding:16px;margin:10px 0 16px;background:#f8f9f5;border:1px solid #dce6d7;border-radius:10px}
.verification-form[hidden]{display:none}
.verification-form h3{font-size:15px;color:#2d604c}
.verification-form p{font-size:12px;color:#718076}
.verification-form label{font-size:12px;font-weight:600}
.verification-controls{display:flex;flex-wrap:wrap;gap:10px}
.verification-controls input{width:175px;min-width:130px;flex:1 1 150px;border:1px solid #cbd9c9;border-radius:8px;padding:10px 12px;letter-spacing:2px;font-size:17px;background:#fff}
.verification-controls button{white-space:nowrap}

/* 管理员导航链接布局；保留全局 [hidden] 优先级。 */
.admin-nav{text-decoration:none}

/* V2 route and diagnostics usability enhancements */
.diagnostic-list{margin-top:12px;border-top:1px solid #e4eae2}.diagnostic-item{padding:13px 0;border-bottom:1px solid #e4eae2;overflow-wrap:anywhere}.diagnostic-item strong{font-size:12px;color:#445a47}.diagnostic-item p{font-size:12px;color:#677e6b;margin-top:5px}

/* Respect the application Content Security Policy: no inline styles. */
.diagnostics-heading{margin-top:24px}

/* Avoid login-screen flash during session bootstrap. */
body.auth-pending #login-screen,body.auth-pending #dashboard{display:none!important}.session-loading{display:none;min-height:100vh;align-items:center;justify-content:center;background:#f6f8f6;color:#587566;font-size:14px;letter-spacing:.03em}body.auth-pending .session-loading{display:flex}

/* V2.2: unified component rhythm and first-login guide. No inline CSS under CSP. */
#dashboard .sidebar-foot{display:flex;align-items:center;gap:12px;min-height:60px;margin-top:auto;padding:16px 8px 2px;border-top:1px solid #37473b;color:#b7c8b6}
#dashboard .sidebar-foot>div{display:flex;flex-direction:column;gap:5px;line-height:1.35}
#dashboard .sidebar-foot small{display:block;font-size:10px;color:#94ab98}
#dashboard .sidebar-foot .status-dot{margin-left:auto}
.form-card label,#password-form label,#config-form>label,#register-form label{line-height:1.5}
#config-form>.form-grid{row-gap:23px;column-gap:24px}
#config-form>.form-grid>label,#password-form>label,#register-form>label{display:flex;flex-direction:column;gap:9px;min-width:0}
#config-form input:not([type=checkbox]),#password-form input,#register-form input{width:100%;margin:0}
#password-form>label+label,#register-form>label+label{margin-top:18px}
#password-form .form-footer{margin-top:26px}
#config-form>details{margin-top:24px;padding:15px 18px;border-radius:10px;border:1px solid #e3ebdc}
#config-form>details>label{display:flex;flex-direction:column;gap:9px;margin-top:16px}
#config-form>details>.tiny{margin:8px 0 14px}
#config-form #random-schedule-summary{display:block;line-height:1.7;margin-top:18px;margin-bottom:6px}
#config-form .form-footer{gap:14px;flex-wrap:wrap}
#config-result,#password-result,#sessions-result,#verification-result{display:block;line-height:1.65;margin-top:11px;min-height:1.2em}
#verification-form{gap:12px}
#verification-form>p{margin:0;line-height:1.65}
#verification-form .verification-controls{gap:12px}
.reader-status{display:flex;align-items:flex-start;flex-wrap:wrap;column-gap:10px;row-gap:8px;margin:13px 0 18px}
.reader-status .message{flex:1;min-width:160px;line-height:1.7}
.reader-status #diagnosis-summary{flex-basis:100%;padding-left:18px;margin:1px 0 0;line-height:1.7}
.connection .actions{gap:12px;margin-top:16px}
.connection .private-caption{margin-top:17px;line-height:1.6}
.first-login-guide{display:flex;align-items:center;gap:15px;padding:17px 21px;margin:18px 0 22px;background:#f2f7ea;border:1px solid #dce9ce;border-radius:12px;color:#4c7144}
.first-login-guide>.icon{width:24px;height:24px;flex-shrink:0}
.first-login-guide>div{flex:1;min-width:0}
.first-login-guide strong{font-size:13px}
.first-login-guide p{font-size:12px;line-height:1.7;margin:5px 0 0}
.first-login-guide>button{white-space:nowrap;flex-shrink:0}
@media(max-width:720px){.first-login-guide{flex-wrap:wrap;padding:15px}.first-login-guide>button{width:100%}#config-form>.form-grid{row-gap:17px}}

/* V2 UI consistency: shared spacing and semantic form components. */
:root{--ui-space-1:6px;--ui-space-2:10px;--ui-space-3:16px;--ui-space-4:24px;--ui-space-5:32px;--ui-border:#dce8d9}
.view .card{min-width:0}
#config-form{display:flex;flex-direction:column;gap:0}
#config-form .form-grid{align-items:start;row-gap:var(--ui-space-4);column-gap:var(--ui-space-4)}
#config-form .book-fields{margin-bottom:var(--ui-space-3)}
#config-form .book-fields>.field{display:grid;grid-template-rows:auto minmax(32px,auto) auto;gap:var(--ui-space-2);align-content:start;min-width:0}
#config-form .book-fields>.field>.field-title{display:block;font-weight:600;font-size:13px;color:#4c704f}
#config-form .book-fields>.field>.field-help{display:block;font-size:12px;font-weight:400;color:#728776;line-height:1.6}
#config-form .book-fields>.field>input{margin:0;min-height:46px}
#config-form .setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-space-4);margin:0 0 var(--ui-space-4);border:1px solid var(--ui-border);background:#fbfcf9;border-radius:12px;padding:var(--ui-space-3) var(--ui-space-4);font-weight:400}
#config-form .setting-copy{flex:1 1 auto;display:flex;flex-direction:column;gap:6px;min-width:0;text-align:left}
#config-form .setting-copy strong{font-size:13px;line-height:1.5;color:var(--ink)}
#config-form .setting-copy small{color:var(--muted);font-size:12px;line-height:1.6;margin:0}
#config-form .setting-toggle input[type=checkbox]{flex:0 0 auto;width:42px;height:24px;appearance:none;-webkit-appearance:none;border-radius:999px;background:#c4d1c4;border:1px solid #b8c9b8;position:relative;cursor:pointer;margin:0;transition:background .16s}
#config-form .setting-toggle input[type=checkbox]::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .16s}
#config-form .setting-toggle input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}
#config-form .setting-toggle input[type=checkbox]:checked::after{transform:translateX(18px)}
#config-form>.form-section{margin:var(--ui-space-3) 0 var(--ui-space-4);padding-top:var(--ui-space-2)}
#config-form>.form-grid>label{gap:var(--ui-space-2);line-height:1.5}
#config-form>.form-grid:not(.book-fields)>label>input{min-height:44px;margin-top:0}
#config-form .optional{float:none;display:inline;margin-left:4px;font-size:11px}
#config-form>details{margin:var(--ui-space-4) 0 var(--ui-space-3);padding:var(--ui-space-3);border:1px solid var(--ui-border);border-radius:10px;background:#fbfcfa}
#config-form>details>summary{cursor:pointer;font-weight:600;padding:3px 0}
#config-form>details>.tiny{margin:var(--ui-space-2) 0}
#config-form>details>label{margin:var(--ui-space-3) 0 0;gap:var(--ui-space-2)}
#config-form>#random-schedule-summary{margin:var(--ui-space-3) 0;line-height:1.65;overflow-wrap:anywhere}
#config-form>.form-footer{margin-top:var(--ui-space-3);gap:var(--ui-space-3);flex-wrap:wrap}
#password-form>label{display:flex;flex-direction:column;gap:var(--ui-space-2);margin-bottom:var(--ui-space-3)}
#password-form>label+label{margin-top:0}
#password-form .form-footer{margin:var(--ui-space-4) 0 var(--ui-space-2)}
#register-form>label{margin-bottom:var(--ui-space-3)}
#register-form>label+label{margin-top:0}
#verification-form label{margin-bottom:var(--ui-space-2)}
.view .notification-list .notification{padding:var(--ui-space-4) var(--ui-space-3);gap:var(--ui-space-3)}
.view .notification-list .notification h3{line-height:1.55}
.view .notification-list .notification p{margin-top:var(--ui-space-2);overflow-wrap:anywhere}
.view .notification-list .notification time{display:block;margin-top:var(--ui-space-2)}
#history-body td,.view .table-scroll th,.view .table-scroll td{vertical-align:middle}
.diagnostic-list .diagnostic-item{padding:var(--ui-space-3);margin:var(--ui-space-2) 0;overflow-wrap:anywhere}
#account-expiry,#password-result,#sessions-result,#config-result{line-height:1.7;overflow-wrap:anywhere}
@media(max-width:720px){
 #config-form .book-fields>.field{grid-template-rows:auto auto auto;gap:8px}
 #config-form .setting-toggle{padding:14px 16px;gap:14px}
 #config-form .setting-copy strong{font-size:12px}
 #config-form .setting-copy small{font-size:11px}
 #config-form .form-grid{row-gap:18px;column-gap:16px}
}
/* Prevent wide history tables from widening the entire application grid. */
@media(min-width:721px){.layout{grid-template-columns:228px minmax(0,1fr)}}
@media(min-width:721px) and (max-width:1180px){.layout{grid-template-columns:205px minmax(0,1fr)}}
.workspace,.view,.view .card,.view .table-scroll{min-width:0;max-width:100%}
.view .table-scroll{overflow-x:auto;overscroll-behavior-x:contain}
