/* IFENG management identity */
:root{--bg:#080d19;--panel:#111b2d;--line:#26344e;--blue:#8d9fff;--muted:#8796b2;--ink:#e3ebfc}
body{background:radial-gradient(ellipse at 90% 5%,#5641a51c,transparent 45%),radial-gradient(ellipse at 0 70%,#1b7b8b12,transparent 50%),var(--bg)}
body[data-page=admin] header{background:#0c1423ed;min-height:88px;border-bottom-color:#34415d;box-shadow:0 8px 30px #0002}
.brand:before{content:"";width:34px;height:38px;display:inline-block;background:url('/portal-assets/admin-icon.svg') center/contain no-repeat}.brand{font-size:20px;letter-spacing:2px}.brand span{font-size:9px;color:#8b9dbd}
.primary{background:linear-gradient(115deg,#5968df,#7160d3);border-color:#8b88ed;box-shadow:0 4px 18px #5851dd24}.primary:hover{filter:brightness(1.13)}
.admin-layout{grid-template-columns:230px minmax(0,1fr)}.sidebar{background:linear-gradient(180deg,#0f182b,#0b1322);padding:34px 20px;gap:12px}.sidebar button{border-radius:10px;padding:15px;font-size:13px}.sidebar button.active{background:linear-gradient(90deg,#6761da33,#3b7b9a15);border-color:#6767b666;box-shadow:inset 3px 0 #9696ff;color:#e1e5ff}.sidebar small{color:#657da8}
.admin-main{padding:38px 42px;max-width:1800px;width:100%;margin:0 auto}.heading{padding:24px 28px 25px;background:linear-gradient(115deg,#1b2544bb,#101d3099);border:1px solid #394369;border-radius:16px;position:relative;overflow:hidden}.heading:after{content:"";position:absolute;right:12%;top:-60px;width:210px;height:210px;border:1px solid #7c83db24;border-radius:50%;box-shadow:0 0 0 35px #6d7bd509,0 0 0 70px #6d7bd507;pointer-events:none}.heading h1{font-size:30px;letter-spacing:1px}.heading p{margin-bottom:0}.eyebrow{color:#929bea}.status-dot{color:#7de5d3;border-color:#35716577;background:#15362f88;white-space:nowrap}.status-dot:before{content:"●";margin-right:7px;font-size:8px}.panel{background:linear-gradient(135deg,#141e31,#101929);border-color:#2c3a56;border-radius:14px;box-shadow:0 8px 30px #00000012}.section-head{margin-top:6px}.post-item{background:#17233a;border-color:#304264}.header-actions a{color:#a6b6d7}.header-actions #current-user{font:11px Consolas,monospace;letter-spacing:1px;color:#8edccf}
.auth-layout{max-width:none;grid-template-columns:1.15fr 1fr}.auth-story{padding:48px clamp(40px,7vw,110px);min-height:100vh;background:linear-gradient(145deg,#151c37,#0b1928 70%);position:relative;overflow:hidden}.auth-story:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#7b92cf08 1px,transparent 1px),linear-gradient(90deg,#7b92cf08 1px,transparent 1px);background-size:42px 42px;pointer-events:none}.auth-story>*{position:relative}.auth-story h1{font-size:clamp(32px,3.3vw,51px);line-height:1.5;letter-spacing:1px;margin-top:24px}.auth-story p{font-size:14px;color:#94a5c4}.auth-card{max-width:400px}.auth-card h2{font-size:32px;letter-spacing:1px}.auth-card .primary{margin-top:12px;padding:13px}.auth-card .tabs[hidden]{display:none}.control-art{width:180px;height:180px;margin:32px 0 22px;display:grid;place-items:center;position:relative}.control-art span{font:700 46px Consolas,monospace;color:#a6b5ff;text-shadow:0 0 30px #8177ff88}.control-art i{position:absolute;inset:12px;border:1px solid #7192d959;border-radius:28px;transform:rotate(30deg)}.control-art i:nth-of-type(2){inset:0;transform:rotate(60deg);border-color:#56d6cf55}.control-art i:nth-of-type(3){inset:32px;transform:rotate(0);border-color:#8b8de284;background:#8b83eb08}.control-art span{z-index:1}details{padding:12px;border:1px solid #364463;border-radius:8px}.auth-card .back{margin-top:25px}
@media(min-width:1500px){.auth-card{max-width:450px}.auth-story>div{margin:35px 0}}
@media(max-width:1100px){.admin-layout{grid-template-columns:190px minmax(0,1fr)}.admin-main{padding:25px}.auth-story{padding:40px}.heading{padding:23px}}
@media(max-width:720px){.admin-layout{display:block}.admin-main{padding:20px 14px}.sidebar{padding:12px;gap:5px}.sidebar button{padding:10px 12px}.heading{padding:20px}.heading h1{font-size:24px}.heading:after{right:-90px}.auth-layout{display:block}.auth-story{min-height:0;padding:24px}.auth-card{padding:35px 0}.header-actions{gap:12px}.brand span{font-size:8px}.header-actions #current-user{font-size:10px}}

#notes-manage-dialog{width:min(1000px,calc(100vw - 32px));max-height:90vh;overflow:auto;background:#102034;color:#d4e2f3;border:1px solid #344f6b;border-radius:14px;padding:24px}#notes-manage-dialog::backdrop{background:#030b17bb}#notes-manage-dialog>select,#notes-manage-dialog>input,#notes-manage-dialog>textarea{display:block;width:100%;margin:14px 0;padding:10px;background:#0b1728;color:#cbdff6;border:1px solid #314d6c;border-radius:6px}#notes-manage-dialog>textarea{font:12px/1.8 Consolas,"Microsoft YaHei",monospace}.notes-resource-row{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #2b435c}.notes-resource-row span{flex:1;overflow-wrap:anywhere}.notes-resource-row a{color:#67cfb9}

/* Admin action hierarchy and compact placement. */
body[data-page=admin] button:where(:not(.password-eye)){background:linear-gradient(180deg,#2b4e75,#1c3654);color:#f2f7ff;border:1px solid #6288b2;font-weight:600;min-height:36px;border-radius:7px;box-shadow:inset 0 1px 0 #ffffff12;padding:7px 12px}
body[data-page=admin] button:hover:not(:disabled){background:#355f8c;border-color:#a3ceff;color:#fff}
body[data-page=admin] button.primary{background:linear-gradient(180deg,#4088ed,#2964bd);border-color:#8dbbff;color:#fff}
body[data-page=admin] button.danger{background:#603046;border-color:#bd7691;color:#ffe8ee}
body[data-page=admin] button:disabled{background:#233043;border-color:#435169;color:#94a3b9;opacity:1;cursor:not-allowed}
body[data-page=admin] button:focus-visible{outline:3px solid #a2d1ff;outline-offset:3px}
body[data-page=admin] .sidebar button{color:#d8eaff;background:#172b43;border-color:#385777;text-align:left}
body[data-page=admin] .sidebar button.active{background:#2e5681;border-color:#8eb8e5;color:#fff;box-shadow:inset 3px 0 #b3d9ff}
body[data-page=admin] .actions,body[data-page=admin] .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body[data-page=admin] .panel>form>button,body[data-page=admin] form.panel>button{display:block;margin:18px 0 0 auto}
body[data-page=admin] td button{margin:3px 0 3px 6px;white-space:nowrap}
body[data-page=admin] .notes-resource-row{flex-wrap:wrap;gap:8px}
body[data-page=admin] .notes-resource-row span{min-width:180px;margin-right:auto}
body[data-page=admin] dialog:has(.dialog-close){position:fixed;padding-top:66px}
body[data-page=admin] dialog .dialog-close{position:absolute;top:16px;right:16px;z-index:2;margin:0;min-height:34px;padding:6px 12px}
body[data-page=admin] dialog .actions{justify-content:flex-end}
@media(max-width:720px){body[data-page=admin] button:where(:not(.password-eye)){min-height:40px}body[data-page=admin] .header-actions{gap:6px}body[data-page=admin] dialog .dialog-close{top:12px;right:12px}}

/* Menu user management follows the existing admin theme. */
body[data-page=admin] .menu-admin-tools{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:22px 0}body[data-page=admin] .menu-admin-tools>label{flex:1;max-width:360px}body[data-page=admin] .menu-admin-tools>div{display:flex;gap:8px}body[data-page=admin] .menu-admin-badge{font-size:11px;padding:7px 11px;border:1px solid #235667;border-radius:5px;color:#77dce1;background:#0c2935}body[data-page=admin] .menu-user-space{display:block;font-size:10px;color:#8294ad;margin-top:7px}body[data-page=admin] .menu-enabled{color:#6ed8bb}body[data-page=admin] .menu-disabled{color:#d09a91}body[data-page=admin] #menu-users-table td{vertical-align:middle}body[data-page=admin] #menu-users-table td:last-child{white-space:nowrap}body[data-page=admin] #menu-temporary-dialog input{width:100%;font-family:Consolas,monospace;margin:20px 0;font-size:17px}body[data-page=admin] .menu-audit-row{padding:14px 0;border-bottom:1px solid #28374d;display:flex;flex-wrap:wrap;gap:12px}body[data-page=admin] .menu-audit-row small{margin-left:auto;color:#879bb7}@media(max-width:760px){body[data-page=admin] .menu-admin-tools{flex-direction:column;align-items:stretch}body[data-page=admin] .menu-admin-tools>label{max-width:none}body[data-page=admin] .menu-admin-badge{white-space:nowrap}}
