/* Shared theme, controls and anchored shopping cart. */
.theme-toggle,.back-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line,#ded7cc);background:transparent;color:inherit;border-radius:8px;padding:9px 13px;font:12px Cairo,sans-serif;cursor:pointer;min-height:40px}.theme-toggle{font-size:19px}.theme-toggle span{font-size:11px}.page-tools{padding-top:16px}.breadcrumbs{padding-top:15px}.floating-cart{position:fixed;left:24px;bottom:24px;z-index:9;display:flex;align-items:center;gap:12px;border:1px solid #ffffff22;background:#233348;color:#fff7e9;padding:13px 18px;border-radius:16px;box-shadow:0 8px 30px #15233538;font:600 13px Cairo,sans-serif;cursor:pointer}.floating-cart b{background:#c3936d;color:#172433;min-width:25px;height:25px;padding-inline:5px;border-radius:50%;display:grid;place-items:center;font-size:11px}.cart-icon{font-size:25px;line-height:1}.floating-cart:hover{transform:translateY(-2px)}.drawer{left:24px;right:auto;top:auto;bottom:94px;width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 120px);height:auto;border:1px solid var(--line);border-radius:18px;padding:23px;box-shadow:0 22px 80px #0004;animation:cart-open .25s ease-out}.drawer-head h2{margin:0;font-size:27px}.cart-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between}.clear-cart{border:1px solid #dcc0b7;color:#9c4c3d;background:transparent;border-radius:7px;padding:6px 10px;font-size:10px;white-space:nowrap}.clear-cart:disabled{opacity:.4;cursor:default}.cart-undo{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;background:#ece4d5;border-radius:8px;font-size:11px}.cart-undo button{background:none;border:0;color:#835833;font:700 11px Cairo;cursor:pointer}.cart-item{padding:13px 0}.drawer .empty{padding:26px}.drawer label{margin-top:12px}.drawer textarea{min-height:65px}.overlay{background:#10192345;backdrop-filter:blur(2px)}.admin-global-tools{position:relative;display:flex;gap:10px;padding:18px 5% 0;margin-right:235px}.login-note{font-size:11px;line-height:1.9;color:#80786c}.gate{margin-top:9vh}.toast{z-index:30}@keyframes cart-open{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:none}}
html[data-theme=dark]{--ink:#e8e4dc;--paper:#121a23;--gold:#d1a17a;--line:#34414e;color-scheme:dark}html[data-theme=dark] body{background:var(--paper);color:var(--ink)}html[data-theme=dark] .announcement{background:#0b121b;color:#d2c6b5}html[data-theme=dark] header,html[data-theme=dark] .store-nav,html[data-theme=dark] footer{border-color:var(--line)}html[data-theme=dark] .header-search,html[data-theme=dark] .search,html[data-theme=dark] .category-folder,html[data-theme=dark] .demo-note,html[data-theme=dark] .empty{background:#1b2632;border-color:#354250;color:#e2ded5}html[data-theme=dark] .header-search input,html[data-theme=dark] .search input,html[data-theme=dark] select{color:#e5e1d9}html[data-theme=dark] .header-search input::placeholder,html[data-theme=dark] .search input::placeholder{color:#a6acb4}html[data-theme=dark] .header-search button,html[data-theme=dark] .primary,html[data-theme=dark] .add{background:#c89a74;color:#14202b;border-color:#c89a74}html[data-theme=dark] .header-search button:hover,html[data-theme=dark] .add:hover{background:#deb48f}html[data-theme=dark] .shop-intro,html[data-theme=dark] .category-heading{background:#1c2833;border-color:#374450}html[data-theme=dark] .shop-intro p,html[data-theme=dark] .category-heading p,html[data-theme=dark] .service-strip b,html[data-theme=dark] .muted,html[data-theme=dark] .breadcrumbs,html[data-theme=dark] footer{color:#b3b7bb}html[data-theme=dark] h1 em,html[data-theme=dark] .shop-intro .eyebrow,html[data-theme=dark] .eyebrow,html[data-theme=dark] .text-button,html[data-theme=dark] .folder-icon{color:#d6a782}html[data-theme=dark] .art-line{border-color:#455260}html[data-theme=dark] .seal{background:#1c2833;color:#d6ae88;border-color:#9d805f}html[data-theme=dark] .category-folder:hover{background:#283745}html[data-theme=dark] .category-folder>span:not(.folder-icon),html[data-theme=dark] .catalog-toolbar,html[data-theme=dark] .availability{color:#acb2b9}html[data-theme=dark] .card{background:#19232e;border-color:#34404d}html[data-theme=dark] .cover-wrap{background:#101923}html[data-theme=dark] .book-label{background:#2b3742;color:#e0bd98}html[data-theme=dark] .favorite{background:#283541;border-color:#495664;color:#dbd8d1}html[data-theme=dark] .favorite.saved{color:#e8aa8e}html[data-theme=dark] .tag{color:#d4aa87!important}html[data-theme=dark] .about{background:#1d2b3a}html[data-theme=dark] .drawer,html[data-theme=dark] dialog{background:#19232e;color:#eee8dd;border-color:#3e4a56}html[data-theme=dark] .drawer input,html[data-theme=dark] .drawer textarea{background:#111b25;border-color:#3e4c59;color:#eee8dd}html[data-theme=dark] .drawer small,html[data-theme=dark] .detail-copy p{color:#aeb7c0}html[data-theme=dark] .drawer input::placeholder,html[data-theme=dark] .drawer textarea::placeholder{color:#9ba6b0}html[data-theme=dark] .clear-cart{border-color:#7e5148;color:#efb2a2}html[data-theme=dark] .cart-undo{background:#2b3842}html[data-theme=dark] .cart-undo button{color:#edbd94}html[data-theme=dark] .whatsapp{background:#2c704f;color:#fff}html[data-theme=dark] .mobile-bar{background:#16212eed;border-color:#354250}html[data-theme=dark] .toast{background:#d2ae88;color:#152131}html[data-theme=dark] .floating-cart{background:#c49873;color:#111c26;border-color:#d1ae8c}html[data-theme=dark] .floating-cart b{background:#233348;color:#f9e6d0}
/* Administrator theme */
html[data-theme=dark] aside:not(.drawer){background:#0e1722;color:#e1e5e9}html[data-theme=dark] .stat{background:#23303c}html[data-theme=dark] .stat span,html[data-theme=dark] .row-text small,html[data-theme=dark] .hint,html[data-theme=dark] .login-note,html[data-theme=dark] section>p{color:#b0b7bd}html[data-theme=dark] #booksTab,html[data-theme=dark] #categoriesTab{background:#19232e;border-color:#34414e}html[data-theme=dark] .book-row,html[data-theme=dark] .category-row{border-color:#34414e}html[data-theme=dark] .book-row img{background:#111a24}html[data-theme=dark] #workspace input,html[data-theme=dark] #bookModal input,html[data-theme=dark] #bookModal select,html[data-theme=dark] #bookModal textarea,html[data-theme=dark] #categoryModal input,html[data-theme=dark] #categoryModal select{background:#101b25;border-color:#3e4b59;color:#eee8dd}html[data-theme=dark] #workspace button:not(.primary),html[data-theme=dark] dialog form button:not(.primary),html[data-theme=dark] .admin-global-tools button{background:#24323e;border-color:#40505e;color:#e6dfd4}html[data-theme=dark] #workspace button.danger{color:#efb2a2;background:#3b292c;border-color:#694648}html[data-theme=dark] #status,html[data-theme=dark] #bookError,html[data-theme=dark] #categoryError{color:#f1b19b}html[data-theme=dark] #workspace .secure{color:#86c8a6}html[data-theme=dark] .gate{border-color:#40505e}html[data-theme=dark] .gate a{color:#e2b58d}html[data-theme=dark] .book-price{color:#e5c19c}
@media(max-width:800px){.admin-global-tools{margin-right:0;padding:14px 4% 0}.floating-cart{left:14px;bottom:calc(82px + env(safe-area-inset-bottom));padding:11px 14px;font-size:11px;gap:9px;border-radius:14px}.drawer{left:12px;bottom:calc(146px + env(safe-area-inset-bottom));width:400px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 168px - env(safe-area-inset-bottom));padding:18px}.header-actions{gap:6px}.header-actions .theme-toggle{padding:7px 10px}.page-tools{padding-top:13px}.toast{bottom:calc(145px + env(safe-area-inset-bottom));max-width:85vw;white-space:normal;text-align:center}.drawer-head h2{font-size:24px}.cart-toolbar .muted{font-size:10px}.theme-toggle span{font-size:10px}}@media(max-height:550px){.drawer{bottom:12px;max-height:calc(100dvh - 24px)}}@media(prefers-reduced-motion:reduce){.drawer{animation:none}}

.cart-flight{position:fixed;width:64px;height:84px;object-fit:cover;border-radius:5px;pointer-events:none;z-index:10000;box-shadow:0 8px 24px #0004;will-change:transform,opacity}
