:root{--ink:#262434;--muted:#8b879b;--line:#eae7f0;--purple:#8b73cf;--paper:#fcfbfe;--bg:#f7f6fa;--radius:26px;--shadow:0 10px 35px #33235706;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.48;cursor:wait}button{border:0;color:inherit;background:none}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #bfa8ed;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #c2afe9;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.3px;font-weight:650;line-height:1.3}h2{font-size:23px;font-weight:650;letter-spacing:-.6px}h3{font-size:16px;font-weight:650}small,.muted{color:var(--muted)}.muted{font-size:13px;line-height:1.7}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.brand-mark{display:grid;place-items:center;background:linear-gradient(140deg,#c6b2f5,#b9d6f2 65%,#f4c9cf);border-radius:14px;width:42px;height:42px;font-size:28px;color:white;box-shadow:0 6px 15px #a38dcc33}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#ffffff99;border:1px solid #efedf4;font-size:23px}.icon-button:hover{background:#eee8fa}.pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;border-radius:30px;padding:6px 10px;background:#eee9f8;color:#7b65ae;line-height:1.2}.pill.green{background:#e8f4ee;color:#4d8b70}.pill.orange{background:#fff0e4;color:#aa784e}.pill.gray{background:#f1f0f4;color:#8b879b}.dot{width:5px;height:5px;border-radius:50%;background:currentColor}.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#302c40;color:white;border-radius:14px;min-height:45px;padding:12px 19px;font-size:13px;font-weight:550;transition:transform .18s,background .18s}.primary:hover{background:#4d4364;transform:translateY(-1px)}.primary .icon{width:17px}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;min-height:42px;font-size:12px}.secondary:hover{background:#f5f0fc}.danger{color:#bf6671;background:#fff4f4;border-color:#f5dfe2}.text-button{color:#8f75bc;font-size:12px;padding:8px}.flex{display:flex;align-items:center;gap:10px}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.stack{display:grid;gap:16px}.wrap{flex-wrap:wrap}.spacer{flex:1}.gap-top{margin-top:20px}.full{width:100%}.divider{height:1px;background:var(--line);margin:22px 0}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.section-title{margin:28px 0 16px;display:flex;align-items:center;justify-content:space-between}.section-title h2{font-size:17px;letter-spacing:0}.startup{height:100vh;display:grid;place-content:center;justify-items:center;gap:18px;color:var(--muted)}
/* Sign-in: a quiet, gradient opening. */
.login-page{min-height:100svh;display:grid;grid-template-columns:1.05fr 1fr;max-width:1440px;margin:auto;padding:28px;gap:50px}.login-art{position:relative;overflow:hidden;border-radius:36px;padding:40px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 15% 20%,#e7ccf3,transparent 60%),radial-gradient(ellipse at 85% 40%,#cfe5f8,transparent 60%),radial-gradient(ellipse at 30% 100%,#f9d0b9,transparent 60%),#e8dcf6;min-height:700px}.login-art:after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.17;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.25' filter='url(%23n)'/%3E%3C/svg%3E")}.login-art h1{font-size:48px;max-width:400px;line-height:1.35;margin:18px 0;color:#4e4263}.login-art p{font-size:13px;line-height:1.8;max-width:310px;color:#766784}.floating-book{align-self:center;width:210px;height:265px;border-radius:12px 27px 27px 12px;background:linear-gradient(140deg,#ffffffcc,#ffffff44);border:1px solid #ffffffcc;box-shadow:15px 20px 40px #705f9820;transform:rotate(-12deg);padding:26px;position:relative;display:flex;flex-direction:column;justify-content:space-between;backdrop-filter:blur(10px);margin:35px}.floating-book:before{content:'';position:absolute;left:10px;top:0;bottom:0;width:1px;background:#ffffffaa}.floating-book .star{font-size:55px;color:#aa88ca}.floating-book small{font-size:9px;letter-spacing:2px;color:#95869e}.login-main{display:flex;flex-direction:column;justify-content:center;padding:35px;max-width:475px;width:100%;margin:auto}.login-main h2{font-size:30px;margin:13px 0 9px}.login-main .muted{margin-bottom:24px}.auth-tabs{display:flex;background:#eeebf3;padding:4px;border-radius:13px;margin:18px 0 24px}.auth-tabs button{flex:1;padding:10px;border-radius:10px;color:var(--muted);font-size:13px}.auth-tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 8px #28203908}.login-foot{font-size:11px;line-height:1.8;text-align:center;margin-top:24px;color:#a29aaa}
/* Application layout */
.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100svh}.sidebar{border-right:1px solid var(--line);background:#fdfcfe;padding:32px 20px;position:fixed;width:224px;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;gap:30px}.brand{font-size:14px;letter-spacing:.5px;font-weight:650;display:flex;align-items:center;gap:10px}.brand small{display:block;font-size:9px;font-weight:400;letter-spacing:1.5px;margin-top:3px}.sidebar nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:14px;font-size:13px;color:#9990a4;text-align:left}.nav-item.active{color:#79609e;background:#efe8f8}.nav-item:hover{background:#f5f0f9}.side-bottom{margin-top:auto}.side-note{padding:17px;border-radius:18px;background:linear-gradient(135deg,#f1eafa,#e9f1fb);font-size:11px;line-height:1.8;color:#8f7fa2;margin-bottom:20px}.avatar{display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#ded2f0,#f6d9c6);color:#8e729e;font-weight:600;width:38px;height:38px;font-size:14px}.main{grid-column:2;padding:0 46px 50px;max-width:1370px;width:100%;margin:auto}.topbar{height:95px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:28px}.topbar .greeting{font-size:12px;color:var(--muted)}.topbar .actions{display:flex;align-items:center;gap:16px}.mode-toggle{display:flex;align-items:center;gap:7px;font-size:11px;background:white;border:1px solid var(--line);border-radius:24px;padding:9px 13px}.mobile-brand{display:none}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:20px 0 25px}.page-head p{font-size:12px;line-height:1.8;color:var(--muted);margin-top:8px}.page-head .eyebrow{display:block;margin-bottom:9px}.hero{position:relative;overflow:hidden;border-radius:30px;background:radial-gradient(ellipse at 82% 15%,#d4e6fa 0,transparent 50%),radial-gradient(ellipse at 67% 100%,#f6d7c7 0,transparent 60%),linear-gradient(120deg,#efe4fa,#ebe7f8);padding:35px 36px;min-height:222px;display:flex;justify-content:space-between;align-items:center}.hero h2{font-size:30px;font-weight:550;line-height:1.5;margin:10px 0}.hero p{font-size:12px;color:#9988a7;max-width:350px;line-height:1.8}.hero .primary{margin-top:20px}.hero-art{width:210px;height:170px;position:relative;flex-shrink:0}.orb{position:absolute;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff9,#fff1 40%,#b79de055 70%,#b4c5e633);border:1px solid #ffffff77;box-shadow:inset -12px -12px 30px #ae92d322,15px 15px 30px #9480ae15}.orb.big{width:130px;height:130px;left:35px;top:10px}.orb.small{width:60px;height:60px;right:0;bottom:0;background:radial-gradient(circle at 30% 25%,#fff,#f9d9cbaa 50%,#d6c4eb)}.hero-art .spark{position:absolute;left:0;bottom:14px;font-size:40px;color:#fff9}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.stat{padding:21px 23px;border:1px solid var(--line);border-radius:22px;background:#fff}.stat .number{font-size:30px;letter-spacing:-1px;font-weight:550;margin:13px 0 3px}.stat small{font-size:11px}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#aaa1b1}.stat-top .icon{color:#c3b5d8;width:17px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.book-card{position:relative;display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:24px;padding:21px;min-height:220px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;overflow:hidden}.book-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #4931660c}.book-symbol{display:grid;place-items:center;width:46px;height:51px;border-radius:9px 14px 14px 9px;color:#a486bf;background:linear-gradient(130deg,#efe1f7,#f7eefb);position:relative;margin-bottom:18px}.book-symbol:before{content:'';position:absolute;left:6px;height:100%;width:1px;background:#d8c5e7}.book-symbol.blue{color:#82a6c4;background:linear-gradient(130deg,#e2edf9,#f0f6fc)}.book-symbol.peach{color:#d2a58b;background:linear-gradient(130deg,#f8e5da,#fff2e8)}.book-card .subtitle{font-size:11px;color:#aaa2b1;line-height:1.8;margin:8px 0 16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.book-card .bottom{margin-top:auto;padding-top:14px;border-top:1px solid #f3f0f6;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#a99caf}.card-menu{position:absolute;right:14px;top:14px}.card-menu button{font-size:19px;color:#a89ab3;min-width:34px;min-height:34px}.search-row{display:flex;gap:12px;margin-bottom:20px}.searchbox{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:white;border-radius:14px;padding:0 14px;min-width:0;flex:1}.searchbox .icon{color:#b5adbf;width:17px}.searchbox input{border:0;background:none;margin:0;padding:13px 0;outline:none!important;min-width:0}.chips{display:flex;gap:9px;margin:0 0 22px;overflow:auto;scrollbar-width:none;padding:2px}.chip{border:1px solid var(--line);background:white;color:#9a8ca8;border-radius:24px;white-space:nowrap;padding:8px 15px;font-size:11px}.chip.active{background:#ece5f5;border-color:#e3d7f2;color:#89709f}.empty{padding:44px 24px;text-align:center;border:1px dashed #e1d8eb;background:#ffffff66;border-radius:24px;color:#aa9ab4;grid-column:1/-1}.empty .icon{width:32px;height:32px;margin-bottom:12px}.empty h3{color:#83758f;font-size:14px;margin-bottom:8px}.empty p{font-size:12px;line-height:1.8;max-width:320px;margin:0 auto 16px}.item{padding:17px 0;border-bottom:1px solid var(--line)}.item:last-child{border-bottom:0}.item .muted{font-size:11px;margin-top:5px}.item-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px}.small-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.small-actions button{font-size:11px;padding:7px 10px;border-radius:9px;min-height:34px}.group-card{border-radius:25px;background:linear-gradient(140deg,#f1e9f9,#fdfbff);border:1px solid #e8e0f0;padding:24px;min-height:170px}.group-card:nth-child(3n+2){background:linear-gradient(140deg,#e9f1fb,#fbfcff)}.group-card:nth-child(3n+3){background:linear-gradient(140deg,#f9ebe3,#fffdfb)}.group-card h3{margin-top:17px}.group-card p{font-size:11px;color:#aa9ab3;margin:8px 0 16px;line-height:1.7}.intro-panel{padding:20px 24px;border-radius:19px;background:linear-gradient(110deg,#eee8fa,#eaf2fb);font-size:12px;line-height:1.8;color:#8d7fa2;margin-bottom:22px}.bottom-nav{display:none}.notice{background:#f0eaf9;border:1px solid #e6dcf5;border-radius:15px;font-size:12px;color:#8b77a2;padding:14px 17px;margin-bottom:18px}.result-card{padding:20px;border:1px solid var(--line);border-radius:18px;margin-top:14px;background:#fff}.result-card pre{background:none;padding:0;margin:12px 0 0;font:13px/1.9 inherit;white-space:pre-wrap;overflow-wrap:anywhere}.metrics{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.progress{height:5px;background:#efebf4;border-radius:10px;overflow:hidden;margin-top:12px}.progress span{display:block;height:100%;background:linear-gradient(90deg,#c3a1e5,#b7d4ed)}.log-row{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.log-row code{font-size:10px;color:#b09cbd}.token-prefix{font:12px ui-monospace,monospace;color:#a99cb4;margin-top:7px}.user-card{background:white;border:1px solid var(--line);border-radius:22px;padding:21px}.user-card .avatar{width:44px;height:44px}.admin-hero{background:radial-gradient(ellipse at 75% 20%,#d8e9fa,transparent 55%),linear-gradient(120deg,#e8e4fa,#f1e5f4)}.switch-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);gap:20px}.switch{width:43px;height:25px;appearance:none!important;background:#e2dce9!important;border:0!important;border-radius:30px!important;position:relative;cursor:pointer;flex:none;padding:0!important;margin:0!important}.switch:after{content:'';position:absolute;top:3px;left:3px;background:white;border-radius:50%;width:19px;height:19px;box-shadow:0 2px 4px #0001;transition:transform .2s}.switch:checked{background:#b19bd8!important}.switch:checked:after{transform:translateX(18px)}
/* Inputs and bottom sheets */
label.field{display:block;font-size:12px;color:#8d819c;margin-bottom:16px}.field input,.field textarea,.field select{margin-top:8px}.field small{display:block;margin-top:7px;font-size:10px;line-height:1.7}input,textarea,select{border:1px solid #e4dfec;border-radius:12px;background:#fdfcfe;color:var(--ink);padding:12px 13px;width:100%;font-size:13px;line-height:1.5}input::placeholder,textarea::placeholder{color:#beb5c8}textarea{min-height:110px;resize:vertical}.check{display:flex;align-items:center;gap:10px;font-size:13px;color:#877993;padding:9px 0}.check input{width:17px;height:17px;accent-color:#a08ac6;flex-shrink:0}.check-list{max-height:210px;overflow:auto;background:#f7f4fa;border-radius:13px;padding:10px 15px;margin:8px 0 18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-foot{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:-25px;padding:18px 0;background:linear-gradient(#fff0,#fff 22%);margin-top:12px}.upload-zone{display:block;border:1px dashed #cdbde1;background:linear-gradient(140deg,#f7f1fc,#f1f6fc);border-radius:19px;text-align:center;padding:26px 15px;color:#9b86b4;cursor:pointer;font-size:12px;line-height:1.8}.upload-zone .icon{width:28px;height:28px;display:block;margin:0 auto 12px}.upload-zone input{font-size:11px;margin-top:14px;background:white}.import-tabs{display:flex;gap:7px;margin-bottom:20px}.import-status{padding:12px;font-size:12px;border-radius:12px;background:#f1edf8;margin-top:12px}.entry-editor{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}.entry-editor summary{cursor:pointer;font-size:13px;color:#9681ad;margin-bottom:10px}.entry-editor textarea{min-height:160px}.code{background:#f4f0f9;color:#79648d;border-radius:13px;padding:15px;font:12px/1.8 ui-monospace,monospace;white-space:pre-wrap;word-break:break-all}.warning{font-size:11px;line-height:1.8;color:#b28d71;background:#fff5e9;border-radius:12px;padding:12px;margin:14px 0}.sheet-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sheet-top .icon-button{font-size:27px}.sheet-heading{font-size:25px;margin-bottom:8px}.sheet-subtitle{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:25px}dialog{padding:25px 28px;border:1px solid #ece5f3;border-radius:27px;background:#fff;width:min(620px,calc(100% - 32px));max-height:90svh;color:var(--ink);box-shadow:0 25px 100px #41325025}dialog::backdrop{background:#2b203a55;backdrop-filter:blur(5px)}dialog[open]{animation:sheet-in .24s ease-out}#toast{position:fixed;top:24px;left:50%;transform:translateX(-50%) translateY(-20px);opacity:0;transition:.2s;pointer-events:none;z-index:100;max-width:min(540px,calc(100% - 30px));background:#302b40ef;color:#fff;border-radius:15px;padding:14px 20px;font-size:12px;line-height:1.7;box-shadow:0 10px 35px #30204022}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.skeleton{height:130px;background:linear-gradient(90deg,#f0edf5,#faf9fc,#f0edf5);background-size:200% 100%;border-radius:24px;animation:shimmer 1.5s infinite}.note-box{font-size:11px;color:#a094ac;line-height:1.8;padding:15px;border:1px solid var(--line);border-radius:14px;margin-top:20px}.badge-icon{width:38px;height:38px;border-radius:13px;background:#eee6f8;color:#ac92c7;display:grid;place-items:center}.badge-icon.blue{background:#e7f0fa;color:#8eacca}.section-actions{display:flex;gap:10px}.mini-chart{display:flex;align-items:flex-end;gap:7px;height:90px;margin-top:22px}.mini-chart div{flex:1;background:linear-gradient(0deg,#d1bce9,#e7dcf4);border-radius:5px 5px 0 0;min-height:3px;position:relative}.mini-chart small{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:9px;white-space:nowrap}.chart-panel{padding-bottom:45px}.status-line{font-size:11px;color:#9c8dad;margin:12px 0}.pill-group{display:flex;gap:5px;flex-wrap:wrap}.topbar-name{font-size:13px;font-weight:600}.mini-icon{width:28px;height:28px;background:#f4f0f9;border-radius:9px;display:inline-grid;place-items:center;color:#b5a1cb}.mini-icon .icon{width:14px}.account-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);text-decoration:none;width:100%;text-align:left}.account-row .icon:last-child{margin-left:auto;width:15px;color:#beb2c9}.mobile-admin-label{display:none}
@keyframes sheet-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}@media(min-width:1500px){.main{padding-left:65px;padding-right:65px}}@media(max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:0 28px 40px}.sidebar{width:200px;padding:28px 16px}.layout{grid-template-columns:200px minmax(0,1fr)}.stats{gap:10px}.stat{padding:16px}.hero{padding:28px}.hero-art{width:155px}}@media(max-width:760px){:root{--radius:23px}.layout{display:block}.sidebar{display:none}.main{display:block;padding:0 20px 110px}.topbar{height:83px;margin-bottom:23px}.mobile-brand{display:flex;align-items:center;gap:9px}.mobile-brand .brand-mark{width:33px;height:33px;font-size:23px;border-radius:11px}.topbar .greeting{display:none}.topbar .actions{gap:10px}.mode-toggle{font-size:10px;padding:8px 11px}.topbar .avatar{width:32px;height:32px;font-size:12px}.topbar-name{font-size:12px}.page-head{margin:0 0 23px;align-items:center}.page-head h1{font-size:29px}.page-head .primary{font-size:0;width:44px;min-height:44px;padding:0;border-radius:15px}.page-head .primary .icon{width:20px}.hero{padding:25px 23px;min-height:220px;border-radius:27px;align-items:flex-start}.hero h2{font-size:26px;margin-top:8px}.hero p{max-width:190px;font-size:11px}.hero .primary{padding:10px 14px;font-size:11px;min-height:38px}.hero-art{position:absolute;right:9px;bottom:26px;width:120px;height:155px;opacity:.85}.orb.big{width:95px;height:95px;left:0;top:15px}.orb.small{width:45px;height:45px;right:0;bottom:5px}.hero-art .spark{font-size:26px;left:0;bottom:0}.stats{grid-template-columns:repeat(2,1fr);gap:12px;margin:17px 0}.stat{padding:17px 19px;border-radius:21px}.stat .number{font-size:29px;margin:12px 0 3px}.stat-top{font-size:10px}.stat small{font-size:10px}.two-col{grid-template-columns:1fr;gap:18px}.grid{gap:13px}.book-card{padding:17px;min-height:220px;border-radius:21px}.book-card h3{font-size:13px;line-height:1.6}.book-card .subtitle{font-size:10px;min-height:35px;margin-bottom:12px}.book-card .bottom{font-size:9px;gap:5px;align-items:flex-start}.book-card .bottom .pill{font-size:9px;padding:4px 6px}.book-symbol{width:39px;height:46px;margin-bottom:16px}.card-menu{right:8px;top:9px}.group-card{padding:19px;border-radius:22px}.group-card h3{font-size:14px}.search-row{gap:8px}.searchbox{border-radius:13px}.searchbox input{font-size:12px}.section-title{margin-top:26px}.section-title h2{font-size:16px}.panel{padding:21px}.bottom-nav{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom));left:16px;right:16px;display:flex;background:#fffffff0;backdrop-filter:blur(15px);border:1px solid #eee9f4;border-radius:24px;padding:8px 5px;box-shadow:0 8px 35px #51406c17;z-index:30;justify-content:space-around}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;color:#b9aec6;min-width:47px;font-size:9px;padding:6px;border-radius:15px}.bottom-nav button.active{background:#f1eafa;color:#9a7fba}.bottom-nav .icon{width:19px;height:19px}.intro-panel{padding:17px;font-size:11px}.login-page{display:block;padding:0;min-height:100svh;background:radial-gradient(ellipse at 80% 0,#e6e8fc,transparent 50%),radial-gradient(ellipse at 0 35%,#f5dfed,transparent 50%),#faf8fd}.login-art{display:none}.login-main{padding:45px 28px 30px;max-width:450px}.login-main .brand{margin-bottom:35px}.login-main h2{font-size:31px}.login-main .muted{font-size:12px}.login-foot{margin-top:25px}.login-main .brand-mark{width:45px;height:45px}.form-grid{gap:10px}.sheet-heading{font-size:23px}dialog{margin:auto 0 0;border-radius:26px 26px 0 0;width:100%;max-height:94svh;padding:18px 22px calc(20px + env(safe-area-inset-bottom));border-bottom:0}.sheet-top{margin-bottom:15px;position:sticky;top:-18px;padding-top:5px;background:#fff;z-index:1}.sheet-top:before{content:'';width:33px;height:4px;background:#e9e1f0;border-radius:5px;position:absolute;left:calc(50% - 16px);top:0}.form-foot{bottom:-20px;padding-bottom:18px}.form-foot>*{flex:1}.code{font-size:11px}.mobile-admin-label{display:inline}.small-actions button{font-size:10px}.group-card .small-actions{gap:4px}.user-card{padding:18px}.page-head .eyebrow{font-size:9px;letter-spacing:1.5px}.page-head p{font-size:11px}.switch-row p{font-size:11px}.section-actions .secondary{font-size:11px;padding:8px 10px}}
.panel,.book-card,.group-card,.user-card{min-width:0;overflow-wrap:anywhere}.muted,h3{overflow-wrap:anywhere}.flex>div{min-width:0}.book-card>button{text-align:left;width:100%}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* A single library workspace and left-side navigation on all screen sizes. */
.bottom-nav{display:none!important}.sidebar-trigger,.sidebar-scrim{display:none}.library-tabs{display:flex;gap:8px;overflow:auto;padding:4px 0 20px;position:sticky;top:0;background:var(--bg);z-index:5}.library-tabs .chip{white-space:nowrap}.library-content>.page-head{margin-bottom:18px}.library-content>.page-head h1{font-size:22px;letter-spacing:-.5px}.library-content>.page-head .eyebrow{display:none}.library-content>.page-head p{font-size:12px}.entry-editor textarea{width:100%}
@media(max-width:760px){.main{padding-bottom:32px}.sidebar-trigger{display:inline-grid;flex-shrink:0}.topbar{gap:10px}.topbar .actions{margin-left:auto}.sidebar{display:flex;position:fixed;inset:0 auto 0 0;width:min(280px,85vw);height:100svh;z-index:60;background:#fcfbfe;visibility:hidden;transform:translateX(-105%);transition:transform .22s,visibility .22s;padding-top:32px;box-shadow:12px 0 40px #30204018}.sidebar-open .sidebar{visibility:visible;transform:translateX(0)}.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;background:#29203966;z-index:59;backdrop-filter:blur(3px)}.sidebar-open .sidebar .nav-item{min-height:48px}.mobile-brand .brand-mark{display:none}.topbar-name{font-size:11px}.library-tabs{margin:0 -4px;padding-top:8px}.library-tabs .chip{font-size:12px;padding:11px 13px}.library-content>.page-head h1{font-size:20px}}
/* Quiet library: an open page, fine rules and round controls. */
:root{--bg:#faf9f7;--paper:#fffefa;--ink:#34332f;--muted:#98958d;--line:#e8e5df;--shadow:none;--radius:18px;--purple:#8a816e}
.primary,.secondary,.round-action{border-radius:999px!important;box-shadow:none;min-height:40px}.primary{background:#484a40}.secondary{background:transparent;border-color:#e5e1d8}.primary:hover{background:#5e6253}.sidebar{background:#f4f3ef;border-color:#e9e6df}.nav-item{border-radius:999px;color:#8b897f}.nav-item.active{background:#e7e7dd;color:#555b48}.nav-item:hover{background:#edede6}.brand-mark{background:linear-gradient(135deg,#b7bdab,#c9c1ab);box-shadow:none;border-radius:50%}.side-note{background:none;padding:10px 0;border-top:1px solid var(--line);border-radius:0}.mode-toggle{border-radius:999px;background:transparent}.panel,.user-card,.group-card,.book-card{border-radius:0;border:0;box-shadow:none;background:transparent;border-bottom:1px solid var(--line)}.grid{grid-template-columns:1fr}.book-card{min-height:0;padding:22px 0}.book-symbol{display:none}.book-card .subtitle{min-height:0}.stats{background:none;gap:0}.stat{background:none;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none}.stat:last-child{border-right:0}.hero{border-radius:0;background:linear-gradient(100deg,#f0eee5,transparent);min-height:190px}.hero-art{opacity:.45}.hero h2{font-size:30px}.badge-icon{background:#eeece4;color:#8c8877;border-radius:50%}.intro-panel,.note-box{background:#f1f0e9;border-radius:14px;border:0}.pill{background:#ecece2;color:#71755d}.page-head h1{font-size:30px}.empty{background:transparent;border:0;min-height:240px;padding:45px 20px}.empty .primary{font-size:12px;min-height:38px}.library-workspace{max-width:980px;margin:10px auto 0}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 30px}.library-heading h1{font-size:42px;font-weight:550;letter-spacing:-2px;margin-top:10px}.heading-dot{color:#a4ad8e;margin-left:5px}.library-heading p{color:var(--muted);font-size:12px;margin-top:10px}.library-tools{display:flex;gap:20px}.tool-orb{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;font-size:10px;color:#8a897e}.tool-orb .icon{width:43px;height:43px;padding:12px;border-radius:50%;background:#efeee7;color:#656e56;transition:background .2s,transform .2s}.tool-orb:hover .icon{background:#e1e4d6;transform:translateY(-2px)}.group-line{display:flex;align-items:center;gap:17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}.group-select{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.group-select>.icon{color:#a4aa8f;width:18px}.group-select select{border:0;background:transparent;outline-offset:5px;color:#55564b;font-size:13px;max-width:100%;padding:7px 22px 7px 0;cursor:pointer}.quiet-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 0;color:#858b70;font-size:12px;white-space:nowrap;background:none;border:0;border-radius:0;min-height:36px}.quiet-link .icon{width:16px;height:16px}.quiet-link:hover{color:#464f38}.group-settings,.row-more{display:grid;place-items:center;border-radius:50%;width:33px;height:33px;color:#a3a091;flex-shrink:0}.group-settings:hover,.row-more:hover{background:#eeece4}.group-settings .icon{width:17px;height:17px}.library-caption{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:30px 0 25px}.library-caption h2{font-size:19px;font-weight:550;letter-spacing:0}.library-caption p{color:#a3a093;font-size:11px;margin-top:8px;line-height:1.7;max-width:600px}.library-caption small{font-size:10px;white-space:nowrap}.library-command{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px}.inline-search{display:flex;align-items:center;gap:9px;min-width:0;flex:1;color:#b1afa3}.inline-search .icon{width:17px;height:17px}.inline-search input{border:0;background:none;padding:10px 0;min-width:0;width:100%;font-size:12px;outline-offset:2px}.library-create{display:flex;align-items:center;gap:22px}.round-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#e9ecdf;color:#5a654a;padding:10px 18px;font-size:12px}.round-action .icon{width:15px;height:15px}.round-action:hover{background:#dfe5d3}.book-list{border-top:1px solid var(--line)}.book-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:23px 1px}.book-row-main{display:flex;align-items:flex-start;text-align:left;gap:17px;min-width:0;flex:1;padding:0}.row-book-icon{display:grid;place-items:center;width:36px;height:44px;color:#a4ab90;flex-shrink:0}.row-book-icon .icon{width:24px;height:24px}.book-row-main>span:last-child{min-width:0;flex:1}.book-row strong{font-size:14px;font-weight:550;display:block;line-height:1.6;color:#4d4e45}.row-summary{font-size:11px;color:#939285;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.8;margin-top:6px}.book-row small{font-size:10px;color:#b2afa2;display:block;margin-top:12px}.row-more{font-size:23px}.compact-widget>.page-head{display:none}.compact-widget .widget-create{display:flex;justify-content:flex-end;margin-bottom:14px}.compact-widget .intro-panel{font-size:11px;line-height:1.8;padding:14px 18px;margin-bottom:10px}.compact-widget .two-col{grid-template-columns:1fr}.compact-widget .panel{padding:16px 0;border-radius:0}.compact-widget .empty{min-height:180px}.compact-widget .result-card{border:0;border-bottom:1px solid var(--line);border-radius:0}.compact-widget .stack{gap:0}.compact-widget .badge-icon{display:none}.compact-widget .small-actions{gap:16px}.compact-widget .small-actions .secondary{background:none;border:0;padding:5px 0;min-height:30px;color:#858b70}.field input,.field textarea,.field select{border-radius:13px;background:#fcfbf8}.entry-editor{border:0;border-radius:0;border-top:1px solid var(--line);background:none}.entry-editor>summary{padding:15px 0}.sheet-heading{font-size:24px;font-weight:550}.sheet-subtitle{font-size:12px}.form-foot{background:#fffefa}.login-page{background:var(--bg)}.login-art{background:radial-gradient(ellipse at 20% 20%,#e1e3d3,transparent 65%),radial-gradient(ellipse at 80% 80%,#efe4d2,transparent 65%),#eeece3}.login-art h1{color:#5c624f}.login-art p{color:#95917e}.login-main .auth-tabs{background:#efeee7;border-radius:999px}.auth-tabs button{border-radius:999px}
@media(max-width:760px){.main{padding:0 23px 35px}.library-workspace{margin:0}.library-heading{padding:0 0 27px}.library-heading h1{font-size:35px}.library-heading p{font-size:11px}.library-tools{gap:15px}.tool-orb .icon{width:39px;height:39px;padding:11px}.tool-orb{font-size:9px}.library-caption{margin:25px 0 18px}.library-command{gap:10px}.library-create{gap:14px}.round-action{padding:9px 13px;font-size:11px}.quiet-link{font-size:11px}.book-row{padding:21px 0}.book-row-main{gap:10px}.row-book-icon{width:28px}.book-row strong{font-size:13px}.row-summary{font-size:11px}.library-caption p{max-width:240px}.group-line{gap:13px;padding:13px 0}.group-select select{font-size:12px}.stats .stat{padding:14px}.grid{grid-template-columns:1fr}.hero{padding:22px 0}.hero-art{display:none}.sidebar{background:#f7f6f0}dialog{background:#fffefa;border-radius:25px 25px 0 0}.sheet-top{background:#fffefa}.login-page{background:radial-gradient(ellipse at 85% 0,#eaecdf,transparent 65%),#faf9f7}}
.book-editor-page{max-width:880px;margin:0 auto}.editor-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.editor-top>.muted{font-size:11px}.editor-title-row{display:flex;align-items:center;gap:18px;margin-bottom:28px}.editor-title{width:100%;min-width:0;border:0;border-bottom:1px solid var(--line);background:transparent;font-size:29px;letter-spacing:-.5px;color:var(--ink);padding:16px 0}.editor-title::placeholder{color:#c1beb1}.editor-title-row>.round-action{flex-shrink:0}.editor-metadata{padding:4px 0 20px}.editor-metadata>details>summary{font-size:12px;color:#898e76;cursor:pointer}.editor-ai{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:30px}.editor-ai>summary{cursor:pointer;font-size:14px;color:#6d7859;list-style:none;display:flex;align-items:center;gap:10px}.editor-ai>summary small{margin-left:auto;font-size:11px}.editor-ai[open]>summary{margin-bottom:24px}.editor-ai>summary .icon{width:18px;height:18px}.batch-input-actions{display:flex;justify-content:space-between;align-items:center;gap:15px}.batch-note{font-size:11px;margin-top:16px}.batch-status{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.batch-status>strong{font-size:13px;font-weight:550}.batch-status>p{margin-top:10px}.batch-preview-entry{padding:20px 0;border-bottom:1px solid var(--line)}.batch-preview-entry strong{font-size:13px}.batch-preview-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 inherit;color:#7d7d71;max-height:240px;overflow:auto}.editor-savebar{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding:24px 0;margin-top:30px}.editor-savebar>.muted{font-size:11px}.prompt-templates{display:flex;gap:24px;flex-wrap:wrap;margin:25px 0}.prompt-row{padding:25px 0;border-bottom:1px solid var(--line)}.prompt-row-title{text-align:left;padding:0}.prompt-row-title strong{display:block;font-size:14px;font-weight:550}.prompt-row-title small{display:block;font-size:10px;margin-top:8px}.prompt-row>p{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;margin-top:17px}.model-picker{margin:-9px 0 20px}.model-picker>.muted{font-size:11px;margin-left:12px}.model-picker .field{margin-top:8px}.entry-editor>summary{cursor:pointer}.editor-savebar .round-action{white-space:nowrap}
@media(max-width:760px){.editor-top{margin-bottom:14px}.editor-title{font-size:23px}.editor-title-row{gap:10px;margin-bottom:22px}.editor-title-row .round-action{padding:10px 14px}.editor-ai>summary small{font-size:9px}.editor-savebar>.muted{max-width:160px;font-size:10px}.prompt-templates{gap:15px}.prompt-row .small-actions{gap:13px}.batch-input-actions{gap:10px}}
/* One writing flow; keep scrolling without painting browser scrollbars. */
html,*{scrollbar-width:none}*::-webkit-scrollbar{width:0;height:0;display:none}[hidden]{display:none!important}.primary{background:#e9ecdf!important;color:#5a654a!important;border:0;box-shadow:none}.primary:hover{background:#dfe5d3!important}.primary:disabled{color:#8f967f!important}.source-workspace{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:25px}.source-workspace .section-title{margin-top:23px}.source-text{display:block;width:100%;resize:vertical;min-height:180px;border:1px solid #e5e3d9;border-radius:14px;background:#f6f5ef;color:var(--ink);padding:17px;font:inherit;font-size:13px;line-height:1.9}.source-text::placeholder{color:#b2afa2}.source-actions{display:flex;align-items:center;gap:23px;flex-wrap:wrap;margin:11px 0 5px}.source-hint{font-size:11px}.source-workspace #editorAiOptions{padding-top:23px;margin-top:20px;border-top:1px solid var(--line)}.book-editor-page>.editor-title,#bookForm>.editor-title{margin-bottom:20px}.mcp-prompt-text{display:block;width:100%;border:1px solid var(--line);background:#f8f7f1;border-radius:14px;padding:17px;font:12px/1.9 system-ui,sans-serif;resize:vertical;color:#696d5e;margin-bottom:15px}.mcp-example{padding:17px 0;border-bottom:1px solid var(--line)}.mcp-example summary{font-size:13px;cursor:pointer}.mcp-example p{margin-top:12px;font-size:11px}.mcp-example pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.8;background:#f5f4ec;padding:15px;border-radius:12px}.compact-widget .widget-create{gap:22px;flex-wrap:wrap}.page-head>.round-action{flex-shrink:0}.library-create .round-action{background:#e9ecdf}
@media(max-width:760px){.source-text{font-size:12px;padding:15px}.source-actions{gap:17px}.source-hint{font-size:10px}.mcp-prompt-text{font-size:11px}.page-head>.round-action{font-size:11px;padding:10px 13px}}
.public-share{max-width:880px;margin:0 auto;padding:45px 26px}.share-open{padding:25px 0;border-bottom:1px solid var(--line);margin-bottom:25px}.share-record{padding:23px 0;border-bottom:1px solid var(--line)}.share-record h3{font-size:14px}.share-record>small{display:block;margin-top:10px;font-size:10px}.share-contents{margin:25px 0;border-top:1px solid var(--line)}.share-contents>details{padding:20px 0;border-bottom:1px solid var(--line)}.share-contents summary{font-size:13px;cursor:pointer;line-height:1.8}.share-contents summary small{margin-left:12px;font-size:10px;color:var(--muted)}.share-contents pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 system-ui,sans-serif;max-height:330px;overflow:auto;color:#777b6b;background:#f5f4ee;padding:15px;border-radius:12px}.share-entry{margin:13px 0 0 15px;border-left:1px solid var(--line);padding-left:15px}.share-entry>p{margin-top:10px;font-size:11px}.share-open .small-actions{gap:24px}.share-list .small-actions{gap:15px}
@media(max-width:760px){.public-share{padding:28px 22px}.share-record .between{align-items:flex-start;flex-wrap:wrap}.share-entry{margin-left:5px;padding-left:11px}.share-record .small-actions{gap:17px}.share-contents pre{font-size:11px}}
.call-explainer{padding:18px 0 22px;border-bottom:1px solid var(--line)}.call-explainer>span{font-size:13px;color:#778461}.call-explainer>p{font-size:11px;margin-top:10px}.call-list .log-row{padding:23px 0;border-bottom:1px solid var(--line)}.call-list .log-row h3{font-size:14px}.call-list .log-row>.muted{font-size:11px;margin-top:9px}.call-screening{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:15px 0}.call-screening>span:not(.pill){font-size:11px;color:#969888}.call-technical{margin-top:12px}.call-technical>summary{font-size:10px;color:#aaa899;cursor:pointer}.trace-json{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 system-ui,sans-serif;background:#f6f5ee;padding:16px;border-radius:13px;max-height:350px;overflow:auto}.trace-entry{padding:14px 0;border-bottom:1px solid var(--line)}.trace-entry>strong{font-size:12px}.trace-entry>small{display:block;color:var(--muted);font-size:10px;margin:7px 0}.trace-entry>.muted{font-size:11px;margin-top:7px}
/* Center every dialog; only its content scrolls, not the page underneath. */
body.modal-open{overflow:hidden}#sheet{position:fixed;inset:0;margin:auto;width:calc(100vw - 32px);max-width:620px;height:fit-content;max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;border:1px solid var(--line);border-radius:24px;background:#fffefa;box-sizing:border-box;overflow:hidden;transform:none;box-shadow:0 22px 80px #24271930}#sheet[open]{display:flex;flex-direction:column;animation:centered-dialog-in .15s ease-out}#sheet .sheet-top{position:static;top:auto;flex:0 0 auto;flex-wrap:wrap;gap:8px;margin:0;padding:15px 21px 10px;background:#fffefa;z-index:2;border-bottom:1px solid #eceadf}#sheet .sheet-top:before{display:none}#sheet .sheet-top .icon-button{width:34px;height:34px;font-size:24px;flex-shrink:0}#sheetContent{overflow:auto;overscroll-behavior:contain;min-height:0;max-width:100%;padding:21px 24px 24px;scroll-padding-block:16px;-webkit-overflow-scrolling:touch}#sheet .sheet-heading{font-size:23px;line-height:1.4}#sheet .sheet-subtitle{margin-bottom:23px}#sheet .form-foot{position:static;bottom:auto;display:flex;flex-wrap:wrap;gap:12px;margin-top:25px;padding:17px 0 0;background:transparent;max-width:100%}#sheet .form-foot>*{flex:1 1 130px;min-width:0}#sheet input,#sheet textarea,#sheet select{max-width:100%;box-sizing:border-box}
.loading-spinner{display:inline-block;width:15px;height:15px;flex:0 0 auto;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:loading-turn .7s linear infinite}.button-spinner{margin-right:5px}.is-loading{cursor:progress!important;opacity:.8!important}.is-loading>.icon{display:none}.activity-status{position:fixed;top:calc(15px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:11px 17px;background:#f1f3e9;color:#65724f;border:1px solid #dfe4d3;border-radius:999px;box-shadow:0 5px 22px #343c2815;font-size:12px;pointer-events:none}.activity-status span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-activity{flex:1 0 100%;display:flex;align-items:center;gap:9px;color:#7b8c61;font-size:11px;padding:4px 0 7px}.is-loading.model-fetch .button-spinner{margin:0}.model-control-row{display:flex;align-items:flex-start;gap:10px;margin-top:9px}.field-label{display:block;font-size:12px;color:#8e8d80}.model-combo{position:relative;min-width:0;flex:1;border:1px solid #e3e0d5;border-radius:13px;background:#fcfbf8;overflow:hidden}.model-combo:focus-within{outline:2px solid #bbc7a4;outline-offset:2px}.model-combo input{display:block;width:100%;min-width:0;height:46px;padding:11px 41px 11px 14px;font-size:13px;background:transparent;border:0!important;outline:none!important;border-radius:0!important}.model-chevron{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;color:#9b9c8d}.model-chevron .icon{width:15px;height:15px;transform:rotate(90deg)}.model-chevron:hover{background:#f0f0e7}.model-fetch{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;flex:0 0 auto;width:82px;padding:10px;background:#e9eddf;color:#677650;border-radius:999px;font-size:12px;white-space:nowrap}.model-fetch>.icon{width:17px;height:17px}.model-fetch:hover{background:#dfe7d3}.model-status{font-size:11px;line-height:1.7;margin:10px 0 21px;min-height:19px}.model-menu{border-top:1px solid var(--line);max-height:210px;overflow:auto;overscroll-behavior:contain;padding:5px}.model-menu>button{display:block;width:100%;text-align:left;font-size:12px;padding:11px 10px;border-radius:8px;overflow-wrap:anywhere;line-height:1.5}.model-menu>button:hover,.model-menu>button:focus-visible{background:#eef1e4;color:#65764c}.model-menu>button[aria-selected=true]{color:#62764a;background:#f1f3e9}.model-menu>p{font-size:10px;color:var(--muted);padding:10px;line-height:1.6}
@keyframes loading-turn{to{transform:rotate(360deg)}}@keyframes centered-dialog-in{from{opacity:0}to{opacity:1}}
@media(max-width:760px){#sheet{width:calc(100vw - 28px);border-radius:22px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#sheet .sheet-top{padding:12px 18px 8px}#sheetContent{padding:19px 19px 21px}#sheet .sheet-heading{font-size:22px}#sheet .sheet-subtitle{font-size:11px}.model-control-row{gap:9px}.model-combo input{font-size:13px}.model-fetch{width:75px;font-size:11px}.model-menu{max-height:170px}.activity-status{font-size:11px}.model-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none;border-right-color:currentColor;border-style:dotted}}
#sheet{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
@media(max-width:760px){#sheet{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#sheet input:not([type=checkbox]),#sheet textarea,#sheet select{font-size:16px}}
