@font-face{font-family:layui-icon;src:url("/static/layui/font/iconfont.woff2") format("woff2"),url("/static/layui/font/iconfont.woff") format("woff");font-display:block}
:root{--cream:#fcfaf5;--paper:#fff;--ink:#291b19;--muted:#85828a;--line:#e9e7e2;--aqua:#6bd0ce;--aqua-deep:#1aaaa8;--aqua-soft:#ddf7f6;--coral:#ff8e96;--coral-soft:#fff0f0;--yellow:#ffe277;--yellow-soft:#fff7d5;--green:#79c761;--green-soft:#eaf8e7;--shadow:0 8px 28px rgba(69,51,44,.055);--sidebar-width:216px;--topbar-height:60px;--tab-height:40px;--page-gap:22px}
*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--cream)}a{text-decoration:none;color:inherit}.admin-page{min-height:100vh}.brand-sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:232px;height:100vh;padding:28px 14px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand-lockup{display:flex;flex-direction:column;align-items:center;gap:7px;margin-bottom:34px;font-size:24px;font-weight:900}.brand-lockup img{width:92px;height:92px;object-fit:contain}.brand-nav{display:flex;flex-direction:column;gap:6px}.brand-nav .nav-link,.nav-group-title{height:48px;padding:0 18px;border-radius:12px;display:flex;align-items:center;gap:14px;font-size:15px;color:#4f4c55}.brand-nav .nav-link span,.nav-group-title span{width:24px;font-size:21px;text-align:center}.brand-nav .nav-link.active{color:#089b99;background:linear-gradient(90deg,#dff8f7,#d5f3f4);font-weight:800}.nav-group-title{font-weight:700}.nav-group-title b{margin-left:auto}.brand-nav .nav-child{height:42px;padding-left:64px}.sidebar-art{margin-top:auto;padding:24px 18px 0;border-top:1px solid var(--line);position:relative;color:#6f7378;line-height:1.65}.sidebar-art i{display:block;width:22px;height:7px;border-radius:9px;background:var(--yellow);margin-bottom:10px}.sidebar-art p{margin:0}.page-wrapper{min-height:100vh;margin-left:232px}.brand-topbar{height:70px;padding:0 30px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.crumb{font-size:14px;color:#8a878d}.crumb strong{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:14px;font-size:14px}.top-search{width:300px;height:40px;padding:0 14px;border:1px solid #dedde0;border-radius:18px;background:#fff;display:flex;align-items:center;gap:9px}.top-search input{width:100%;border:0;outline:0;background:transparent}.notice{font-size:23px;position:relative}.notice i{position:absolute;width:7px;height:7px;border-radius:50%;background:#fb5961;right:-2px;top:0}.admin-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--aqua);color:#fff;font-weight:800}.top-actions>a,.top-actions button{border:0;background:transparent;color:#777;padding:4px}.content-shell{max-width:1600px;margin:auto;padding:32px 30px 48px}.alert{border:0;border-radius:12px}.panel,.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.btn{height:42px;padding:0 20px;border:1px solid #dedde0;border-radius:10px;background:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.btn-primary{border-color:transparent;background:linear-gradient(135deg,#20c4c2,#25b4ba);color:#fff}.form-control,.form-select,input,select,textarea{font:inherit}.card-body{padding:24px}.card-title{font-size:19px}.form-control,.form-select{min-height:43px;border:1px solid #dedde0;border-radius:9px}.form-label{font-weight:700}.table{margin:0}.table th,.table td{padding:15px}.badge{border-radius:16px}.branded-heading h2{font-size:30px;font-weight:900}.form-narrow{max-width:720px}.overview{max-width:600px}
/* dashboard */
.welcome-hero{height:270px;position:relative;overflow:hidden;padding:48px 30px;display:flex;align-items:center}.hero-copy{z-index:2}.hero-copy h1{margin:0 0 6px;font-size:52px;line-height:1.2;font-weight:950;letter-spacing:2px}.hero-copy p{margin:0;font-size:22px;color:#77757d}.welcome-hero>img{position:absolute;width:720px;height:360px;right:60px;bottom:-78px;object-fit:contain}.hero-note{position:absolute;right:10px;top:50px;font-size:19px;line-height:1.6;font-weight:700;transform:rotate(-8deg)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card{height:144px;padding:26px 22px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.95);box-shadow:var(--shadow);display:flex;align-items:center;gap:18px}.stat-icon{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;font-size:27px}.stat-card div{display:flex;flex-direction:column;gap:3px}.stat-card b{font-size:17px}.stat-card strong{font-size:39px;line-height:1}.stat-card>i{margin-left:auto;font-size:30px;font-style:normal;color:#8c8b91}.tone-yellow .stat-icon{background:var(--yellow-soft);color:#ce9c06}.tone-green .stat-icon{background:var(--green-soft);color:#419a4e}.tone-coral .stat-icon{background:var(--coral-soft);color:#ef626d}.tone-aqua .stat-icon{background:var(--aqua-soft);color:#139c9b}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin-top:18px}.dashboard-grid>.panel{min-height:330px;padding:26px}.dashboard-grid h2{margin:0;font-size:26px}.dashboard-grid header p{margin:4px 0;color:var(--muted);font-size:16px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.quick-actions a{height:218px;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center}.quick-actions a.tone-aqua{background:linear-gradient(145deg,#d7f8f7,#b9efee)}.quick-actions a.tone-coral{background:linear-gradient(145deg,#fff0f0,#ffe0e2)}.quick-actions a.tone-yellow{background:linear-gradient(145deg,#fff9de,#ffefb6)}.quick-actions span{font-size:40px}.quick-actions b{margin-top:17px;font-size:17px}.quick-actions i{margin-top:18px;width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:27px;font-style:normal}.recent-panel ul{list-style:none;margin:14px 0 0;padding:0}.recent-panel li{min-height:64px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:44px 1fr auto;align-items:center}.recent-panel li>span{width:40px;height:40px;border-radius:50%;background:var(--aqua-soft);color:var(--aqua);display:grid;place-items:center}.recent-panel li a{display:flex;flex-direction:column}.recent-panel li small,.recent-panel time{color:var(--muted);font-size:12px}
/* shared management */
.management-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.management-heading h1,.settings-heading h1{margin:0;font-size:32px;font-weight:900}.management-heading p,.settings-heading p{margin:5px 0 0;color:var(--muted)}.add-button{min-width:155px}.filter-panel{padding:18px 20px;margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:14px;display:grid;grid-template-columns:230px 210px minmax(260px,1fr) 72px 72px;gap:14px;align-items:end}.filter-panel label,.book-editor label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.filter-panel select,.filter-panel input,.book-editor select,.book-editor input,.book-editor textarea{width:100%;border:1px solid #dcdae0;border-radius:8px;background:#fff;padding:10px 13px;outline:0}.filter-key div{position:relative}.filter-key span{position:absolute;left:13px;top:10px}.filter-key input{padding-left:38px}
/* books */
.book-workspace{display:grid;grid-template-columns:174px minmax(500px,1fr) 360px;gap:14px;align-items:start}.level-panel{padding:18px 10px;min-height:555px}.level-panel h3{font-size:17px;margin:0 10px 18px}.level-panel a{height:58px;padding:0 10px;border-radius:11px;display:flex;align-items:center;gap:10px}.level-panel a.active{background:var(--aqua-soft)}.level-panel a i{width:15px;height:15px;border-radius:50%;background:var(--yellow)}.level-panel a:nth-of-type(2) i{background:#89d083}.level-panel a:nth-of-type(3) i{background:#ff858e}.level-panel a:nth-of-type(4) i{background:#65cac8}.level-panel a span{font-weight:700}.level-panel a b{margin-left:auto;color:#55bab7}.book-list{overflow:hidden;min-height:555px}.book-list>header{height:65px;padding:0 18px;display:flex;align-items:center;color:#777}.book-list table{width:100%;border-collapse:collapse;font-size:13px}.book-list th{padding:13px;background:#fafafa;color:#777;text-align:left;white-space:nowrap}.book-list td{height:76px;padding:10px 13px;border-top:1px solid var(--line);white-space:nowrap}.book-list tr.selected{background:#e8fafa}.book-list td:first-child{display:flex;align-items:center;gap:10px}.book-list td img{width:40px;height:52px;border-radius:4px;object-fit:cover}.status{padding:6px 10px;border-radius:16px;font-weight:700}.status.on{background:var(--green-soft);color:#32a358}.status.off{background:var(--coral-soft);color:#e65d63}.book-list td:last-child a{color:#159e9d}.book-editor{padding:24px 22px;min-height:555px}.book-editor header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.book-editor h2{margin:0;font-size:24px}.book-editor header a{font-size:28px;color:#777}.book-editor label{margin-bottom:17px}.book-editor textarea{resize:vertical}.book-editor footer{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:28px}
/* templates */
.template-workspace{margin:-32px -30px -48px;min-height:calc(100vh - 70px);display:grid;grid-template-columns:285px minmax(480px,1fr) 390px;background:#fff}.template-library{padding:30px 18px;border-right:1px solid var(--line)}.template-library h1{font-size:27px;margin:0 8px 18px}.template-library form{height:42px;border:1px solid #dedde0;border-radius:9px;display:flex;align-items:center;padding:0 12px;gap:8px}.template-library form input{border:0;outline:0;width:100%}.template-tabs{display:flex;gap:6px;margin:14px 0}.template-tabs>*{padding:8px 11px;border:1px solid var(--line);border-radius:15px;font-size:12px}.template-tabs b{background:var(--aqua-soft);color:#119b99;border-color:var(--aqua)}.template-items{display:flex;flex-direction:column;gap:8px}.template-items>a{padding:14px;border:1px solid var(--line);border-radius:10px}.template-items>a.active{border-color:var(--aqua);background:#effbfb}.template-items strong{display:block}.template-items small{margin-top:8px;display:flex;align-items:center;gap:6px;color:var(--muted)}.template-items small i{width:8px;height:8px;border-radius:50%;background:#aaa}.template-items small i.on{background:#58bf43}.template-items time{margin-left:auto}.new-template{height:48px;margin-top:12px;border:1px dashed var(--aqua);border-radius:9px;display:grid;place-items:center;color:#1baaa7;font-weight:700}.template-editor{padding:32px 28px 90px;position:relative;background:#fff}.template-editor>header{display:flex;align-items:start;justify-content:space-between;margin-bottom:20px}.template-name{border:0;outline:0;font-size:29px;font-weight:900;width:420px}.template-editor header p{margin:3px 0}.template-editor header select{padding:7px 11px;border:0;border-radius:15px;background:var(--green-soft);color:#439d42}.section-editor-list{counter-reset:sections;display:flex;flex-direction:column;gap:11px}.section-editor-list label{counter-increment:sections;border:1px solid #ff938e;border-radius:11px;overflow:hidden;padding:0 16px 14px}.section-editor-list label>span{height:58px;margin:0 -16px 12px;padding:0 16px;background:linear-gradient(90deg,#fff7e9,#fff3f0);display:flex;align-items:center;gap:14px}.section-number:before{counter-increment:sections;content:counter(sections,decimal-leading-zero)}.section-editor-list .section-number:before{counter-increment:none}.section-editor-list .section-number{width:48px;height:38px;border-radius:21px;background:var(--yellow);display:grid;place-items:center;font-weight:900;font-size:17px}.section-editor-list span i{margin-left:auto}.section-editor-list small{display:block;margin-bottom:6px}.section-editor-list textarea{width:100%;border:1px solid #d8d7da;border-radius:8px;padding:10px;resize:vertical}.template-editor>footer{position:absolute;left:0;right:0;bottom:0;height:76px;padding:15px 28px;border-top:1px solid var(--line);background:#fff;display:flex;justify-content:flex-end;gap:10px}.template-preview{border-radius:0;border-width:0 0 0 1px;padding:28px 18px}.template-preview h2{font-size:24px}.preview-paper{counter-reset:sections;padding:18px;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(63,42,30,.08)}.preview-paper header{padding:12px 6px 18px;display:flex;flex-direction:column}.preview-paper header b{font-size:32px}.preview-paper section{counter-increment:sections;display:flex;gap:10px;padding:11px;margin-bottom:8px;border-radius:17px;background:linear-gradient(90deg,#fff7d8,#fffaf1)}.preview-paper section:nth-of-type(2n){background:linear-gradient(90deg,#dff8f7,#f3fbfb)}.preview-paper section:nth-of-type(3n){background:#f7f7f7}.preview-paper .section-number{width:42px;height:34px;flex:none;border-radius:20px;background:var(--yellow);display:grid;place-items:center}.preview-paper .section-number:before{counter-increment:none}.preview-paper section p{margin:6px 0 0;color:#666;font-size:12px;line-height:1.5}.preview-paper em{display:block;text-align:right;font-weight:700}
/* settings */
.settings-heading{margin-bottom:22px}.settings-heading h1 span{font-size:13px;color:#3ea450;background:var(--green-soft);padding:8px 13px;border-radius:18px;vertical-align:middle}.settings-workspace{display:grid;grid-template-columns:220px 1fr;gap:16px}.settings-tabs{padding:12px;background:#fff;border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;gap:8px}.settings-tabs>*{height:48px;padding:0 15px;display:flex;align-items:center;border-radius:9px}.settings-tabs b{background:var(--aqua-soft);color:#149d9b}.settings-cards{display:flex;flex-direction:column;gap:12px}.config-row{padding:20px;display:grid;grid-template-columns:270px 1fr;gap:18px}.config-row>header{display:flex;gap:15px}.config-icon{width:66px;height:66px;flex:none;border-radius:18px;display:grid;place-items:center;font-size:28px}.config-icon.tone-yellow{background:var(--yellow-soft);color:#d5ab19}.config-icon.tone-coral{background:var(--coral-soft);color:#ee6067}.config-icon.tone-green{background:var(--green-soft);color:#4ca54a}.config-icon.tone-aqua{background:var(--aqua-soft);color:#1a9e9c}.config-row h2{font-size:19px;margin:4px 0}.config-row p{font-size:13px;color:var(--muted);line-height:1.5;margin:0}.config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.config-fields label{font-size:13px;font-weight:700}.config-fields input,.config-fields select{display:block;width:100%;height:43px;margin-top:7px;padding:0 12px;border:1px solid #dedde0;border-radius:8px}.config-fields em{float:right;font-style:normal;font-size:11px;color:#3b9c4e;background:var(--green-soft);padding:4px 7px;border-radius:12px}.secret-note{padding:13px 16px;border-radius:10px;background:var(--coral-soft);color:#df4f55}.settings-footer{grid-column:1/-1;position:sticky;bottom:0;height:70px;margin:0 -30px -48px;padding:12px 30px;border-top:1px solid var(--line);background:#fff;display:flex;justify-content:flex-end;gap:12px}.settings-footer .btn-primary{min-width:230px}
/* login */
.brand-login{min-height:100vh;padding:32px;background:linear-gradient(135deg,#fff8dc 0,#f2fbf9 48%,#fff2f2 100%);display:grid;place-items:center;overflow:hidden}.login-shell{width:min(1120px,100%);min-height:680px;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border:1px solid rgba(255,255,255,.8);border-radius:30px;background:#fff;box-shadow:0 28px 80px rgba(67,48,39,.14)}.login-visual{position:relative;overflow:hidden;padding:40px 46px;background:linear-gradient(155deg,#fff8cf,#dff8f5)}.login-lockup{position:relative;z-index:3;display:flex;align-items:center;gap:11px}.login-lockup img{width:62px;height:62px;object-fit:contain}.login-lockup strong{font-size:23px}.login-lockup span{padding-left:12px;border-left:1px solid rgba(41,27,25,.16);color:#77727a}.login-copy{position:relative;z-index:3;margin-top:54px}.login-copy>span,.login-card>.eyebrow{color:var(--aqua-deep);font-size:12px;font-weight:900;letter-spacing:.18em}.login-copy h1{margin:12px 0 15px;font-size:40px;line-height:1.3;letter-spacing:1px}.login-copy p{margin:0;color:#706c72;font-size:16px;line-height:1.9}.login-mascot{position:absolute;z-index:2;width:auto;height:405px;right:4%;bottom:-18px;object-fit:contain}.login-shape{position:absolute;border-radius:50%;opacity:.8}.shape-one{width:220px;height:220px;right:-75px;top:-70px;background:rgba(255,142,150,.45)}.shape-two{width:180px;height:180px;left:-80px;bottom:-80px;background:rgba(255,226,119,.75)}.login-panel{display:grid;place-items:center;padding:56px}.login-card{width:min(390px,100%)}.login-mobile-brand{display:none}.login-card h2{margin:9px 0 8px;font-size:34px;line-height:1.25}.login-hint{margin:0 0 32px;color:var(--muted);line-height:1.7}.login-field{display:block;margin-bottom:20px}.login-field>span{display:block;margin-bottom:8px;font-weight:700}.login-field>div{height:52px;padding:0 15px;border:1px solid #dfdcda;border-radius:12px;display:flex;align-items:center;gap:11px;background:#fff;transition:.2s}.login-field>div:focus-within{border-color:var(--aqua-deep);box-shadow:0 0 0 4px rgba(107,208,206,.18)}.login-field i{color:#9a969a;font-size:20px}.login-field input{width:100%;height:100%;border:0;background:transparent;outline:0}.login-submit{width:100%;height:52px!important;margin-top:7px!important;border-radius:12px!important;font-size:16px;gap:10px}.login-submit span{font-size:22px;line-height:1}.login-footnote{margin:20px 0 0;text-align:center;color:#aaa5a8;font-size:12px}.login-footnote i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#73c967}
@media(max-width:1250px){.book-workspace{grid-template-columns:160px minmax(0,1fr)}.book-editor{grid-column:1/-1}.template-workspace{grid-template-columns:230px minmax(0,1fr)}.template-preview{display:none}.template-editor{min-width:0}.template-name{max-width:100%}.config-row{grid-template-columns:1fr}.welcome-hero>img{right:-40px}.hero-note{display:none}}
@media(max-width:1100px){.top-search{display:none}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.welcome-hero>img{width:520px;height:260px;right:-70px;bottom:-35px;opacity:.5}.hero-copy h1{font-size:44px}}
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.filter-panel{grid-template-columns:1fr 1fr}.filter-key{grid-column:1/-1}.settings-workspace{grid-template-columns:1fr}.settings-tabs{display:none}.top-search{display:none}.welcome-hero>img{opacity:.45}}
@media(max-width:700px){.brand-sidebar{position:relative;width:100%;height:auto;padding:12px}.brand-lockup{flex-direction:row;justify-content:center;margin:0}.brand-lockup img{width:48px;height:48px}.brand-nav,.sidebar-art{display:none}.page-wrapper{margin-left:0}.brand-topbar{height:58px;padding:0 16px}.crumb,.notice{display:none}.content-shell{padding:20px 14px}.welcome-hero{height:auto;padding:25px 10px}.welcome-hero>img{display:none}.hero-copy h1{font-size:34px}.hero-copy p{font-size:16px}.stat-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr}.quick-actions a{height:140px}.book-workspace{grid-template-columns:1fr}.level-panel{min-height:0}.filter-panel{grid-template-columns:1fr}.template-workspace{margin:-20px -14px;grid-template-columns:1fr}.template-library{display:none}.template-editor{padding:22px 14px 90px}.template-name{width:100%;font-size:22px}.config-fields{grid-template-columns:1fr}.settings-footer{margin:0 -14px -48px}.login-shell{grid-template-columns:1fr}.login-visual{display:none}}
.book-list{min-width:0}.book-list .table-responsive{max-width:100%;overflow:auto}.book-list table{min-width:720px}.book-cover{width:40px;height:52px;flex:none;border-radius:4px;background:linear-gradient(145deg,#ffda52,#ff8e65);display:grid;place-items:center;color:#fff;font-size:20px}
@media(max-width:1100px){.filter-panel{grid-template-columns:1fr 1fr}.filter-key{grid-column:1/-1}}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}.brand-admin{overflow-x:hidden}.page-wrapper,.page-body,.content-shell{min-width:0}.content-shell>.card{max-width:100%;overflow:hidden}.brand-lockup{align-items:flex-start;padding-left:14px}.brand-lockup img{width:108px;height:108px;margin-left:16px}.brand-nav svg,.nav-section summary svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-section summary{list-style:none;height:48px;padding:0 18px;border-radius:12px;display:flex;align-items:center;gap:14px;font-size:15px;font-weight:700;color:#302c31;cursor:pointer}.nav-section summary::-webkit-details-marker{display:none}.nav-section summary b{margin-left:auto;transition:transform .18s}.nav-section:not([open]) summary b{transform:rotate(180deg)}.brand-nav .nav-child{padding-left:48px}.brand-nav .nav-child svg{width:18px;height:18px}.sidebar-art{height:164px;margin-left:-14px;margin-right:-14px;padding:63px 28px 0;border:0;overflow:hidden}.sidebar-art:before,.sidebar-art:after{content:"";position:absolute;border-radius:55% 50% 0 0}.sidebar-art:before{width:145px;height:90px;left:-55px;bottom:0;background:rgba(255,226,119,.88);transform:rotate(-18deg)}.sidebar-art:after{width:205px;height:115px;right:-72px;bottom:-25px;background:rgba(107,208,206,.72);transform:rotate(-12deg)}.sidebar-art i,.sidebar-art p{position:relative;z-index:1}.sidebar-art i{display:none}.sidebar-art p{color:#5e6668}.table-responsive{max-width:100%;overflow-x:auto}.publish-state{font-size:12px;color:#399849;background:var(--green-soft);padding:7px 11px;border-radius:16px;white-space:nowrap}
.section-editor-list details{counter-increment:sections;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}.section-editor-list details[open]{border-color:#ff938e}.section-editor-list summary{height:58px;padding:0 16px;display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none}.section-editor-list summary::-webkit-details-marker{display:none}.section-editor-list details[open] summary{background:linear-gradient(90deg,#fff7e9,#fff3f0)}.section-editor-list summary .section-number{width:48px;height:38px;border-radius:21px;background:var(--yellow);display:grid;place-items:center;font-weight:900;font-size:17px}.section-editor-list summary i{margin-left:auto;transition:transform .18s}.section-editor-list details:not([open]) summary i{transform:rotate(180deg)}.section-editor-list details>div{padding:0 16px 14px}.section-editor-list details small{display:block;margin:0 0 6px}.section-editor-list details textarea{width:100%;border:1px solid #d8d7da;border-radius:8px;padding:10px;resize:vertical}.page-body{margin:0!important}.template-editor>header{position:relative}.template-editor>header>div{min-width:0}
@media(max-width:1250px){.template-editor .template-name{width:calc(100% - 82px);font-size:25px}.template-editor .publish-state{position:absolute;right:0;top:0}}
.branded-heading{margin:0 0 22px}.branded-heading .eyebrow{display:block;margin-bottom:4px;color:var(--aqua-deep);font-size:12px;font-weight:800;letter-spacing:.12em}.branded-heading .page-title{margin:0 0 7px;line-height:1.2}.branded-heading p,.branded-heading .text-secondary{margin-top:0!important}
/* native icon system */
.top-search svg,.notice svg,.account-menu svg,.add-button svg,.filter-key svg,.template-library form svg,.new-template svg,.stat-card svg,.quick-actions svg,.settings-heading svg,.settings-tabs svg,.config-icon svg,.config-fields em svg,.secret-note svg,.book-editor header a svg,.section-editor-list summary svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.top-search svg{width:18px;height:18px;color:#8c8990;flex:none}.notice{width:38px;height:38px;border:0!important;border-radius:50%;display:grid;place-items:center;position:relative;cursor:pointer}.notice:hover{background:#f4f7f7}.notice svg{width:21px;height:21px}.notice i{right:7px;top:6px;border:2px solid #fff}
.account-menu{position:relative}.account-menu>summary{height:48px;display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary>svg{width:17px;height:17px;transition:transform .18s}.account-menu[open]>summary>svg{transform:rotate(180deg)}.account-menu>div{position:absolute;z-index:30;right:0;top:48px;width:160px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 12px 34px rgba(38,28,24,.14)}.account-menu>div a,.account-menu>div button{width:100%;height:40px;padding:0 11px!important;border-radius:8px;display:flex;align-items:center;gap:10px;color:#514d53!important;font-weight:600}.account-menu>div a:hover,.account-menu>div button:hover{background:var(--aqua-soft);color:#128f8e!important}.account-menu>div form{margin:0}.account-menu>div svg{width:18px;height:18px}
.nav-chevron{margin-left:auto!important;width:17px!important;height:17px!important;transition:transform .18s}.nav-section:not([open]) .nav-chevron{transform:rotate(-90deg)}
.brand-admin select,.brand-admin .form-select{appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b7880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:38px!important}
.add-button{gap:8px}.add-button svg,.new-template svg{width:18px;height:18px}.filter-key svg{position:absolute;left:13px;top:11px;width:18px;height:18px;color:#999}.filter-key input{padding-left:40px}.book-editor header a{width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.book-editor header a:hover{background:#f3f3f3}.book-editor header a svg{width:19px;height:19px}
.stat-icon svg{width:31px;height:31px}.stat-card .card-arrow{width:22px;height:22px;margin-left:auto;color:#8c8b91}.quick-actions span svg{width:42px;height:42px}.quick-actions i svg{width:21px;height:21px}.activity-dot{position:relative}.activity-dot:after{content:"";width:9px;height:9px;border-radius:50%;background:var(--aqua)}
.template-library form svg{width:18px;height:18px;color:#999;flex:none}.new-template{display:flex;align-items:center;justify-content:center;gap:8px}.publish-state{display:flex;align-items:center;gap:6px}.publish-state i{width:7px;height:7px;border-radius:50%;background:#52b95f}.section-editor-list summary svg{width:18px;height:18px;margin-left:auto;transition:transform .18s}.section-editor-list details:not([open]) summary svg{transform:rotate(-90deg)}
.settings-heading h1 span{display:inline-flex;align-items:center;gap:6px}.settings-heading h1 span svg{width:16px;height:16px}.settings-tabs>*{gap:11px}.settings-tabs svg{width:20px;height:20px}.config-icon svg{width:32px;height:32px}.config-fields em{display:inline-flex;align-items:center;gap:4px}.config-fields em svg{width:13px;height:13px}.secret-note{display:flex;align-items:center;gap:9px}.secret-note svg{width:18px;height:18px;flex:none}
@media(max-width:700px){.account-menu>summary strong,.account-menu>summary>svg{display:none}.account-menu>div{right:0}}
.page-wrapper,.content-shell{width:100%}.page-wrapper{width:calc(100% - 232px)}
.book-workspace.list-only{grid-template-columns:174px minmax(0,1fr)}.empty-state{padding:40px!important;text-align:center;color:var(--muted)}.template-tabs a.active{background:var(--aqua-soft);color:#119b99;border-color:var(--aqua)}.settings-tabs a:hover{background:var(--aqua-soft);color:#149d9b}.config-row{scroll-margin-top:20px}.template-editor>header>div{flex:1}.template-editor .template-name{width:100%;font-size:24px}.stat-card b{white-space:nowrap}.stat-card{gap:12px}.stat-icon{flex-shrink:0;width:52px;height:52px}.btn-sm{height:34px;padding:0 12px}.book-list td:first-child{min-width:175px}.book-list td:first-child strong{white-space:normal}
@media(max-width:1450px){.book-workspace{grid-template-columns:160px minmax(0,1fr)}.book-editor{grid-column:1/-1}.template-workspace{grid-template-columns:230px minmax(0,1fr)}.template-preview{display:none}.template-editor{min-width:0}.template-name{max-width:100%}.config-row{grid-template-columns:1fr}.welcome-hero>img{right:-40px}.hero-note{display:none}}
@media(max-width:700px){.page-wrapper{width:100%}}
@media(max-width:700px){.book-workspace.list-only{grid-template-columns:1fr}}
/* Layui shell and brand overrides */
[hidden]{display:none!important}.layui-btn.btn{margin:0;border-color:#dedde0;background:#fff;color:var(--ink);line-height:40px}.layui-btn.btn-primary{border-color:transparent;background:linear-gradient(135deg,#20c4c2,#25b4ba);color:#fff}.layui-btn:hover{opacity:.88}.layui-card.card{border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.layui-table.table{margin:0;color:var(--ink)}.layui-table th{font-weight:700}.layui-form-select dl dd.layui-this{background:var(--aqua-deep)}.layui-form-select .layui-input{border-color:#dedde0;border-radius:8px}.layui-form-radio:hover>*,.layui-form-radioed>*{color:var(--aqua-deep)}
.row{display:flex;flex-wrap:wrap;margin:0 -8px}.row>*{padding:0 8px}.col{flex:1}.col-auto{flex:0 0 auto}.col-md-2{width:16.6667%}.col-md-5{width:41.6667%}.col-12{width:100%}.mb-3{margin-bottom:16px}.mt-1{margin-top:4px}.mt-3{margin-top:16px}.w-100{width:100%}.text-secondary{color:var(--muted)}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-group{display:flex}.input-group .form-control{border-radius:9px 0 0 9px}.input-group .btn{border-radius:0 9px 9px 0}.table-vcenter td{vertical-align:middle}
.admin-tab-workspace{height:calc(100vh - 70px);margin:0;background:var(--cream)}.admin-tab-workspace>.layui-tab-title{height:44px;padding-left:12px;background:#fff;border-bottom:1px solid var(--line)}.admin-tab-workspace>.layui-tab-title li{height:44px;line-height:44px}.admin-tab-workspace>.layui-tab-title .layui-this{color:var(--aqua-deep)}.admin-tab-workspace>.layui-tab-title .layui-this:after{border-bottom-color:var(--aqua-deep)}.admin-tab-workspace>.layui-tab-content{height:calc(100% - 44px);padding:0}.admin-tab-workspace>.layui-tab-content>.layui-tab-item{height:100%}.admin-tab-frame{display:block;width:100%;height:100%;border:0;background:var(--cream)}
.embedded-admin .brand-sidebar,.embedded-admin .brand-topbar{display:none}.embedded-admin .page-wrapper{width:100%;margin-left:0}.embedded-admin .content-shell{max-width:none;padding:24px}.embedded-admin .page-body{min-height:100vh}.embedded-admin .template-workspace{min-height:calc(100vh - 48px);margin:-24px}.embedded-admin .settings-footer{margin-left:-24px;margin-right:-24px}
@media(max-width:700px){.col,.col-auto,.col-md-2,.col-md-5,.col-12{width:100%;flex:0 0 100%}.row{gap:10px}.admin-tab-workspace{height:calc(100vh - 58px)}}
/* reliable native tab close icon */
.admin-tab-workspace .layui-tab-close{font-size:0!important;border-radius:50%!important}.admin-tab-workspace .layui-tab-close:before,.admin-tab-workspace .layui-tab-close:after{content:"";position:absolute;left:4px;top:8px;width:10px;height:1.5px;border-radius:2px;background:currentColor}.admin-tab-workspace .layui-tab-close:before{transform:rotate(45deg)}.admin-tab-workspace .layui-tab-close:after{transform:rotate(-45deg)}.admin-tab-workspace .layui-tab-close:hover{background:#fff0f0!important;color:#ef626d!important}
/* Layui add dialogs */
.modal-admin{background:#fff}.modal-admin .brand-sidebar,.modal-admin .brand-topbar{display:none}.modal-admin .page-wrapper{width:100%;margin:0}.modal-admin .page-body{min-height:0}.modal-admin .content-shell{max-width:none;padding:0}.modal-admin .admin-dialog-form{display:block!important;width:100%;max-width:none;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.modal-admin .admin-dialog-form>.card-body{padding:26px 28px}.modal-admin .admin-dialog-form .card-title,.modal-admin .admin-dialog-form>header h2{margin:0 0 22px;font-size:22px}.modal-admin .book-editor{padding:26px 28px;grid-template-columns:1fr 1fr}.modal-admin .book-editor>header,.modal-admin .book-editor>label:last-of-type,.modal-admin .book-editor>footer{grid-column:1/-1}.modal-admin .template-editor{min-height:100vh;padding:28px 28px 96px}.modal-admin .template-editor>footer{position:fixed}.layui-layer.admin-create-layer{overflow:hidden;border-radius:16px!important;box-shadow:0 24px 70px rgba(42,29,24,.2)!important}.admin-create-layer .layui-layer-title{height:52px;line-height:52px;padding-left:22px;border-color:var(--line);background:#fff;font-size:16px;font-weight:800}.admin-create-layer .layui-layer-setwin{top:18px}.admin-create-layer .layui-layer-content{background:#fff}
@media(max-width:700px){.brand-login{padding:16px}.login-shell{min-height:auto;grid-template-columns:1fr;border-radius:22px}.login-visual{display:none}.login-panel{padding:36px 24px}.login-mobile-brand{margin-bottom:32px;display:flex;align-items:center;gap:10px}.login-mobile-brand strong{font-size:21px}.login-card h2{font-size:30px}.modal-admin .book-editor{grid-template-columns:1fr}.modal-admin .book-editor>*{grid-column:1!important}}
