.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
:root{--ink:#2d2635;--muted:#716b76;--purple:#67448d;--line:#e6e1e7;--paper:#fcfaf8;--serif:Georgia,'Times New Roman',serif;--sans:'Segoe UI',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);font:15px/1.5 var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9869c0;outline-offset:3px}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,.brand{font-family:var(--serif);font-weight:500}h1{font-size:clamp(34px,4vw,54px);line-height:1.12;letter-spacing:-2px}h2{font-size:clamp(27px,2.25vw,35px);letter-spacing:-1.35px;line-height:1.18}h3{font-size:17px;line-height:1.35}small{color:var(--muted)}.topbar{height:76px;border-bottom:1px solid var(--line);background:white}.nav-frame,.frame{max-width:1376px;margin:auto;padding-inline:clamp(24px,5.2vw,80px)}.nav-frame{height:100%;display:flex;align-items:center;gap:clamp(30px,6vw,95px)}.brand{display:inline-flex;align-items:center;gap:11px;font-size:29px;font-weight:600;letter-spacing:-1.6px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#70469b;color:white;box-shadow:inset 0 -3px 0 #60388b}.brand-mark .icon{width:24px;height:24px;stroke-width:1.65}.primary-nav{display:flex;gap:28px;align-self:stretch}.primary-nav a{display:flex;gap:8px;align-items:center;position:relative;color:#6e6874;font-size:14px;font-weight:550}.primary-nav .icon{width:17px;height:17px}.primary-nav .current{color:#67408a}.primary-nav .current:after{content:'';position:absolute;background:#8052a7;height:3px;bottom:0;left:0;right:0;border-radius:4px 4px 0 0}.user-tools,.user-link{display:flex;align-items:center;gap:16px}.user-tools{margin-left:auto}.bell{position:relative;display:grid;place-items:center;width:32px;height:36px}.bell b{position:absolute;right:6px;top:6px;width:7px;height:7px;background:#9770b4;border:1px solid white;border-radius:50%}.divider{width:1px;height:26px;background:var(--line)}.user-link{gap:9px;font-size:14px;font-weight:600}.user-link>.icon{width:13px}.avatar{width:37px;height:37px;border-radius:50%;display:inline-grid;place-items:center;font-size:13px;font-weight:650;flex:none}.self,.avatar-0{color:#684584;background:#e9dff1}.avatar-1{color:#92533d;background:#f7ddcf}.avatar-2{color:#3e6462;background:#dcebe6}.frame{padding-top:32px;padding-bottom:50px}.hero{display:flex;position:relative;align-items:center;isolation:isolate;overflow:hidden;background:#3b2446;color:#fff7ef;border-radius:20px;min-height:245px;padding:35px 46px}.hero-copy{position:relative;z-index:1}.hero h1{font-size:clamp(40px,4.15vw,63px);margin:12px 0 7px;font-weight:normal;letter-spacing:-2.3px}.hero p{font-size:16px;color:#e8dce9}.eyebrow,.section-label{display:flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:750;line-height:1.4}.eyebrow{color:#e0c9eb}.dash{width:21px;border-top:2px solid currentColor}.hero-art{position:absolute;right:4.5%;height:95%;width:39%;object-fit:contain;z-index:-1;mix-blend-mode:lighten}.button{border:1px solid transparent;display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:8px;padding:10px 16px;font-size:14px;font-weight:650;min-height:42px}.hero-btn{background:#fff8ee;color:#412d4e;margin-top:23px}.hero-btn:hover{background:#ebdced}.hero-btn .icon{width:17px;height:17px}.primary{background:#67448d;color:white}.button:hover,.metric:hover,.book-card:hover,.conv-row:hover{filter:brightness(.978)}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 36px}.metric{display:flex;align-items:center;gap:16px;padding:17px 21px;background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 2px 3px #29123303}.icon-box{width:46px;height:46px;border-radius:14px;display:inline-grid;place-items:center;flex:none}.icon-box .icon{width:23px;height:23px}.lavender{background:#eee5f6;color:#7b519c}.peach{background:#f9e7dc;color:#a46444}.mint{background:#e0eee4;color:#537b63}.metric-value{display:flex;flex-direction:column}.metric-value strong{font-family:var(--serif);font-weight:500;font-size:30px;line-height:1.1}.metric-value span{color:var(--muted);font-size:13px;margin-top:2px}.metric-arrow{margin-left:auto;width:15px;color:#aaa2ad}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:30px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:19px;gap:8px}.section-label{color:#845b91;letter-spacing:1.8px}.section-label .dash{width:16px;border-width:1.5px}.section-heading h2{margin-top:5px}.text-link,.back,.pager a{display:inline-flex;align-items:center;gap:7px;color:var(--purple);font-size:13px;font-weight:650}.text-link{padding:4px 0;background:none;border:0}.text-link .icon{width:16px;height:16px}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.book-card{overflow:hidden;display:block;border:1px solid var(--line);border-radius:12px;background:#fff}.cover-panel{height:clamp(145px,14vw,212px);display:flex;align-items:center;justify-content:center;overflow:hidden}.tint-0{background:#e4e9de}.tint-1{background:#f3e2d5}.tint-2{background:#e1e5ee}.physical-book{height:84%;aspect-ratio:2/3;box-shadow:4px 5px 7px #2f263447,1px 1px 1px #4e474d;position:relative;background:#58445f;color:white;display:grid;place-items:center;text-align:center}.physical-book:after{position:absolute;content:'';inset:0;pointer-events:none;background:linear-gradient(90deg,#0005,#ffffff25 2%,transparent 4%,#0002 5%,transparent 7%)}.physical-book img{width:100%;height:100%;object-fit:cover}.book-info{padding:14px 15px}.book-info h3{font:600 clamp(16px,1.4vw,21px)/1.2 var(--serif);letter-spacing:-.5px}.book-info p{font-size:13px;color:var(--muted);margin:4px 0 13px}.book-meta{display:flex;align-items:center;gap:6px;color:#756d79;font-size:11px}.book-meta .icon{width:14px;height:14px}.recent-list,.panel,.chat-shell,.form-card,.book-summary{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.conv-row{display:block;padding:16px 18px}.conv-row+.conv-row,.line+.line{border-top:1px solid var(--line)}.row-top{display:flex;align-items:center;gap:10px}.who{display:flex;flex-direction:column;min-width:0}.who strong{font-size:14px}.who span{font-size:11.5px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.row-top time{margin-left:auto;align-self:flex-start;font-size:11px;color:var(--muted)}.snippet{display:flex;align-items:center;gap:8px;margin-top:9px;color:#675f6a;font-size:12px}.snippet span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.snippet b{margin-left:auto;flex:none;border-radius:10px;background:#806099;color:white;font:650 10px/17px var(--sans);min-width:17px;text-align:center}.mobile-nav{display:none}.empty{padding:22px;color:var(--muted)}.book-grid>.empty{grid-column:1/-1}.page-heading,.dialog-title,.line,.search-bar,.pager{display:flex;justify-content:space-between;align-items:center;gap:14px}.page-heading{margin:4px 0 26px}.page-heading h1{margin-top:7px}.back{margin-bottom:20px}.book-layout{display:grid;grid-template-columns:minmax(230px,1fr) 1.6fr;gap:28px}.book-layout h2{margin:10px 0 18px}.book-summary,.form-card{padding:26px}.book-summary img{max-width:140px;float:right;margin:0 0 16px 16px}.book-summary p,.form-card>p,.chat-shell header p,dialog>p{color:var(--muted);margin:12px 0}.book-summary h1{font-size:34px;margin-top:12px}.line{padding:15px 18px}.search-bar{justify-content:flex-start;margin-bottom:18px}.search{display:flex;align-items:center;gap:8px;flex:1}.search input{width:100%}.inbox-list .conv-row{padding:20px}.pager{justify-content:center;padding-top:15px}.chat-shell{max-width:900px;margin:auto}.chat-shell>header,.composer{padding:20px 24px}.chat-shell h2{margin-top:7px}.chat-shell header p{margin-bottom:0}.messages{padding:24px;background:#f5f1f5;display:flex;flex-direction:column;gap:12px;max-height:54vh;min-height:240px;overflow:auto}.bubble{background:white;padding:11px 15px;border:1px solid var(--line);border-radius:13px 13px 13px 3px;max-width:min(85%,550px);align-self:flex-start}.bubble.mine{background:#e7daed;align-self:flex-end;border-radius:13px 13px 3px 13px}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere}.bubble time{font-size:10px;color:var(--muted)}.composer{display:flex;align-items:center;gap:12px}.composer textarea{flex:1}.form-card{max-width:560px;margin:10px auto}.form-card h1{font-size:35px}.form-card form,dialog form,.form-stack{display:grid;gap:15px;margin:18px 0}.form-card label,.form-stack label,dialog label{display:grid;gap:5px;font-weight:600;font-size:14px}input:not([type=checkbox]),select,textarea{border:1px solid #d8d2db;background:white;border-radius:7px;color:var(--ink);padding:10px 12px;max-width:100%}textarea{min-height:45px;resize:vertical}.form-card .check,.form-stack .check{display:flex;align-items:center;gap:8px;font-weight:400}.notice,.error{padding:12px 16px;margin-bottom:16px;border-radius:8px;background:#e3f2e7}.error{background:#ffdfdb}.icon-btn{border:0;background:transparent;display:grid;place-items:center;width:34px;height:34px;border-radius:50%}dialog{border:1px solid var(--line);border-radius:17px;padding:27px;max-width:min(460px,91vw);color:var(--ink)}dialog::backdrop{background:#21162873}dialog h2{margin-top:16px}.admin-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-cols h2{margin:12px 0}.admin-cols .form-card{margin:0;max-width:none}.plain-btn{border:0;background:transparent;color:var(--purple);font-weight:600;padding:6px}.admin-actions{display:flex;flex-wrap:wrap;gap:12px}
@media(min-width:1550px){.frame{padding-top:40px}.hero{min-height:280px}}
@media(max-width:1050px){.nav-frame{gap:32px}.primary-nav{gap:16px}.dashboard-grid{gap:20px;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}.metric{gap:10px;padding:15px}.book-info{padding:12px}.section-heading h2{font-size:26px}.hero{padding-inline:34px}.nav-frame,.frame{padding-inline:30px}}
@media(max-width:800px){.dashboard-grid{grid-template-columns:1fr}.cover-panel{height:205px}.primary-nav .icon{display:none}.nav-frame{gap:20px}.user-tools{gap:7px}.user-link>span:not(.avatar),.user-link>.icon{display:none}.frame{padding-top:21px}.hero{min-height:220px}.hero-art{right:1%;width:35%;height:80%}.hero p{max-width:330px}.metrics{gap:10px;margin-bottom:24px}.metric-arrow{display:none}.book-grid{gap:12px}}
@media(max-width:640px){.topbar{height:62px}.brand{font-size:25px}.brand-mark{width:31px;height:31px;border-radius:9px}.brand-mark .icon{width:20px}.primary-nav{display:none}.frame,.nav-frame{padding-inline:17px}.frame{padding-bottom:91px}.hero{border-radius:15px;padding:23px 20px;min-height:229px}.hero h1{max-width:240px;font-size:37px}.hero p{font-size:13px;max-width:61%}.hero-art{width:37%;height:auto;right:0;bottom:15%;opacity:.97}.hero-btn{margin-top:17px;font-size:12px;padding:8px 12px;min-height:36px}.eyebrow,.section-label{font-size:9px}.metrics{gap:6px;margin-top:12px}.metric{flex-direction:column;align-items:flex-start;gap:7px;padding:12px 9px;border-radius:10px}.icon-box{width:33px;height:33px;border-radius:10px}.icon-box .icon{width:19px;height:19px}.metric-value strong{font-size:24px}.metric-value span{font-size:10.5px}.section-heading{margin-bottom:13px}.book-grid{gap:8px}.cover-panel{height:clamp(101px,28vw,157px)}.book-info{padding:9px 8px}.book-info h3{font-size:15px}.book-info p{font-size:11px;margin:3px 0 8px}.book-meta{font-size:10px;gap:4px}.book-meta .icon{width:11px}.mobile-nav{display:flex;justify-content:space-around;position:fixed;z-index:5;bottom:0;left:0;width:100%;border-top:1px solid var(--line);padding:8px 0 max(8px,env(safe-area-inset-bottom));background:white}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);font-size:10px}.mobile-nav a.selected{color:#71458a;font-weight:700}.book-layout,.admin-cols{grid-template-columns:1fr}.page-heading{align-items:flex-end}.page-heading h1{font-size:34px}.page-heading .button{font-size:12px;padding:8px}.search-bar{flex-wrap:wrap}.search{flex-basis:100%}.composer,.chat-shell>header,.messages{padding:15px}.composer{gap:6px}.composer textarea{min-width:0}.line{flex-wrap:wrap}.recent-list .conv-row{padding:14px}.book-summary img{max-width:94px}}
@media(prefers-reduced-motion:no-preference){a,button{transition:filter .15s,background .15s,box-shadow .15s}.book-card:hover{box-shadow:0 4px 13px #39284015}}
[hidden]{display:none!important}#camera-view{width:100%;border-radius:9px;max-height:230px;margin-top:10px}
.dashboard-grid>section,.admin-cols>section,.book-layout>div{min-width:0}
