.beta-dialog{border:1px solid #d7e4fa;border-radius:20px;padding:32px;width:min(480px,calc(100vw - 32px));max-height:90dvh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #1d3e7026;background:#fff}
.beta-dialog::backdrop{background:#23385355}.beta-dialog h2{font-size:23px;line-height:1.45;margin:12px 0}.beta-close{position:absolute;right:12px;top:10px;border:0;background:#f6f8fc;color:#7890b0;font-size:24px;line-height:1;padding:7px 11px}
.beta-kicker{font-size:12px;letter-spacing:1px;color:#5380c6}.beta-book-name{font-size:14px;margin:8px 0;color:#45668f}.beta-help{font-size:13px;line-height:1.85;color:#788ba7;margin:8px 0 18px}.beta-bottom{margin:18px 0 0;font-size:12px;text-align:center}
.beta-dialog label{display:block;font-size:13px;margin:24px 0 10px}.beta-dialog input{width:100%;padding:14px 12px;font-size:16px;letter-spacing:1px;color:var(--ink);border:1px solid #cddcf5;border-radius:10px;background:#f9fbff}
.beta-submit{width:100%;font-size:15px;min-height:46px}.beta-error{color:#b04f45;font-size:13px;line-height:1.7;min-height:22px;margin:9px 0}.beta-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:22px}.beta-dialog-actions button{font-size:13px;min-height:42px}
.beta-gate{max-width:620px;margin:30px auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px;text-align:center}.beta-gate h1{font-size:26px;line-height:1.6;margin:18px 0}.beta-gate>p{line-height:1.9;color:#7c91b1;font-size:14px}.beta-gate>a{display:block;font-size:13px;color:#6685b3;margin:20px}.beta-card-note{font-size:11px;color:#8a9db8;line-height:1.7}
/* Shares the book shelf shell, header, hero, palette, and footer. */
.beta-admin{--panel-radius:16px}
.beta-admin .intro-hero{min-height:190px;margin-bottom:22px}
.beta-admin .intro-hero h1{font-weight:500}
.beta-admin-label{display:inline-flex;margin-top:17px;padding:5px 10px;border:1px solid #dce8ff;border-radius:20px;color:#6b91c7;background:#ffffffb3;font-size:11px;line-height:1.5}
.beta-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}
.beta-stat{display:flex;gap:17px;align-items:center;min-width:0;border:1px solid var(--line);border-radius:var(--panel-radius);padding:22px 24px;background:#fff}
.beta-stat>div{min-width:0}.beta-stat>div>span{font-size:12px;color:var(--muted)}
.beta-stat p{margin:7px 0 0;font-size:11px;color:#8b9db7;line-height:1.5}
.beta-stat strong{font-size:27px;font-weight:550;color:var(--ink);margin-right:6px;font-variant-numeric:tabular-nums}
.beta-stat p small{display:block;font-size:10px;color:#9aabc3}
.beta-stat-icon{width:46px;height:46px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;color:#5884dd;background:#edf3ff}
.beta-stat-icon svg{width:24px;height:24px}.beta-stat-icon.mint{background:#eaf8f3;color:#5aab94}.beta-stat-icon.amber{background:#fff4e9;color:#cc9859}
.beta-panel{min-width:0;border:1px solid var(--line);border-radius:var(--panel-radius);padding:26px 28px;background:#fff;margin:0 0 22px}
.beta-panel h2{font-size:19px;font-weight:500;margin:0;line-height:1.5}
.beta-phase{display:flex;justify-content:space-between;gap:24px;align-items:center;background:#f0f5ff;border-color:#d5e2fc}
.beta-phase h2{display:flex;align-items:center;gap:12px;font-size:17px}
.beta-phase p{color:#7e94b5;font-size:12px;line-height:1.9;margin:9px 0 0}
.beta-phase>button{flex-shrink:0;min-width:120px;min-height:42px;font-size:13px;background:#fff;border-color:#d4e2fa;color:#477ac7}
.beta-badge{display:inline-block;font-size:11px;line-height:1.6;padding:4px 9px;border-radius:6px;color:#4d7ccb;background:#e3edff;white-space:nowrap}
.beta-badge.public{color:#458d7c;background:#e2f3ed}
.beta-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.beta-section-head{display:flex;align-items:center;gap:12px;margin-bottom:24px;min-width:0}
.beta-section-head p{font-size:12px;color:#8b9db7;line-height:1.8;margin:6px 0 0}
.beta-section-number{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:8px;background:#edf3ff;color:#7897c7;font-size:12px;font-weight:500}
.beta-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 24px;margin:0 0 25px}
.beta-form-grid label{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#6680a3}
.beta-form-grid input,.beta-form-grid select{min-width:0;width:100%;height:44px;border:1px solid #dce5f5;border-radius:8px;padding:9px 12px;background:white;color:var(--ink);font-size:14px}
.beta-form-grid input::placeholder{color:#a0b0c8}.beta-form-grid small{font-size:11px;line-height:1.7;color:#94a5bd}
.beta-panel fieldset{border:0;padding:0;margin:0;min-width:0}.beta-panel fieldset:disabled{opacity:.5}
.beta-form-submit{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.beta-form-submit button{font-size:14px;padding:11px 23px;min-height:44px}.beta-form-submit span{font-size:11px;color:#94a5bd}
.beta-admin #beta-admin-error:empty{display:none}.beta-admin #beta-admin-error{margin-bottom:0}
.beta-guide{background:#fbfcff}.beta-guide h2{font-size:17px;margin-bottom:22px}.beta-guide ol{margin:0;padding:0;list-style:none;counter-reset:guide}
.beta-guide li{position:relative;padding-left:30px;counter-increment:guide;margin-bottom:22px}
.beta-guide li::before{content:counter(guide);position:absolute;left:0;top:0;width:20px;height:20px;border:1px solid #dce7fb;border-radius:50%;display:grid;place-items:center;color:#7b9ace;font-size:10px}
.beta-guide strong{font-size:13px;font-weight:500;color:#58769e}.beta-guide p{font-size:12px;line-height:1.9;color:#8a9ebc;margin:7px 0 0}
.beta-guide .beta-guide-note{border-top:1px solid var(--line);padding-top:16px;font-size:11px;margin:0}
.beta-records-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.beta-records-head>button{font-size:12px;min-height:38px;white-space:nowrap}
.beta-table-wrap{overflow-x:auto;border:1px solid #e8eef8;border-radius:10px;scrollbar-width:thin;scrollbar-color:#cad9f1 transparent}
.beta-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.8}
.beta-table th{font-weight:400;color:#849bbd;background:#f6f9ff;padding:13px 16px;white-space:nowrap}
.beta-table td{padding:16px;border-bottom:1px solid #edf1f8;vertical-align:middle;color:#5c7599}.beta-table tr:last-child td{border-bottom:0}.beta-table td>b{font-weight:500;color:#405e88}
.beta-table small{display:block;color:#91a4c0;margin-top:5px;overflow-wrap:anywhere;max-width:280px}
.beta-table button{font-size:11px;padding:6px 9px;white-space:nowrap;margin:2px;min-height:32px}
.beta-code-status{font-size:11px;color:#91a2bb;background:#f2f5fa;padding:4px 8px;border-radius:5px;white-space:nowrap}.beta-code-status.active{color:#589b88;background:#eaf7f1}
.beta-empty{text-align:center;padding:38px 20px!important}.beta-empty strong{display:block;color:#7f95b4;font-size:14px;font-weight:400}.beta-empty span{display:block;color:#a1b0c7;font-size:12px;margin-top:6px}
.beta-records-note{font-size:11px;line-height:1.8;color:#99a9c0;margin:15px 0 0}
.beta-created{background:#f3f7ff;border:1px solid #d7e5ff;border-radius:12px;padding:22px;margin-top:20px}.beta-created h3{font-size:17px;font-weight:500;margin-bottom:8px}.beta-created p{font-size:12px;color:#6986b0;line-height:1.8}.beta-created textarea{width:100%;resize:vertical;border:1px solid #cfdef7;border-radius:8px;padding:12px;background:white;color:#355680;font-family:Consolas,monospace;font-size:14px;line-height:1.9}
.beta-admin .shelf-foot{margin-top:8px}.beta-admin .shelf-foot a:hover{color:var(--blue)}
@media(max-width:1050px){.beta-workspace{grid-template-columns:minmax(0,1fr) 260px}.beta-stat{padding:20px 18px;gap:12px}.beta-stat-icon{width:40px;height:40px}.beta-panel{padding:24px}.beta-form-grid{gap:20px 16px}}
@media(max-width:900px){.beta-workspace{grid-template-columns:minmax(0,1fr)}.beta-guide{display:none}.site-header .header-inner{gap:20px}.site-header nav{gap:18px}}
@media(max-width:600px){.beta-dialog{padding:28px 22px}.beta-dialog h2{font-size:21px}.beta-gate{padding:30px 20px;margin:10px auto}.beta-gate h1{font-size:23px}.beta-admin .intro-hero{min-height:150px;margin-bottom:18px}.beta-admin .intro-hero h1{font-size:22px}.beta-admin .intro-hero img{width:64px;height:76px;margin-left:10px}.beta-admin-label{font-size:10px;padding:3px 8px;margin-top:13px}.beta-stats{gap:8px;margin-bottom:18px}.beta-stat{padding:15px 10px;display:block}.beta-stat-icon{width:30px;height:30px;border-radius:8px;margin-bottom:10px}.beta-stat-icon svg{width:18px;height:18px}.beta-stat>div>span{font-size:11px}.beta-stat strong{font-size:22px;margin-right:3px}.beta-stat p{font-size:10px;margin-top:4px}.beta-stat p small{font-size:9px}.beta-panel{padding:20px 18px;margin-bottom:18px}.beta-phase{align-items:flex-start;flex-direction:column;gap:16px}.beta-phase h2{font-size:15px;gap:8px}.beta-phase>button{min-width:110px;font-size:12px}.beta-section-head{gap:10px;margin-bottom:22px}.beta-section-head h2{font-size:18px}.beta-section-head p{font-size:11px}.beta-form-grid{gap:19px 12px}.beta-form-grid label{font-size:12px}.beta-form-grid small{font-size:10px}.beta-form-grid input,.beta-form-grid select{padding:9px;font-size:16px}.beta-form-submit{gap:10px}.beta-form-submit button{font-size:13px}.beta-form-submit span{font-size:10px}.beta-records-head{gap:10px}.beta-records-head>button{font-size:11px;padding:8px;min-height:36px}.beta-records .beta-section-head{align-items:flex-start}.beta-records .beta-section-number{display:none}.beta-table{min-width:640px}.beta-empty{white-space:normal}.beta-created{padding:16px}.site-header:has(#books-admin-link:not([hidden])) .brand small{display:none}.site-header:has(#books-admin-link:not([hidden])) .header-inner{padding:0 15px;gap:12px}.site-header:has(#books-admin-link:not([hidden])) .brand strong{font-size:17px;letter-spacing:0}.site-header:has(#books-admin-link:not([hidden])) nav{gap:10px;font-size:11px}.site-header:has(#books-admin-link:not([hidden])) .brand img{width:32px;height:32px}}

.beta-submit:disabled{opacity:.65;cursor:wait;box-shadow:none}
