/* Shared quiet visual language for the administration pages. */
:root{--blue:#3266cf;--ink:#27303d;--muted:#737d8b;--line:#e5e8ed;--bg:#f7f8fa;--radius:8px;font-family:system-ui,-apple-system,"Noto Sans SC",sans-serif}
body{font-size:14px}
.sidebar{width:192px;padding:26px 14px 16px;background:#fff;border-right:1px solid var(--line);color:#606b7c}
.brand{padding:0 10px;color:#263449;gap:10px}
.brand strong{font-size:20px;letter-spacing:1px}
.mark{width:30px;height:30px;font-size:21px;border-radius:6px}
.nav{margin-top:34px;gap:5px}
.nav a{padding:11px 12px;border-radius:6px;font-size:14px;gap:11px}
.nav a:hover{background:#f2f4f7;color:#33425a}
.nav a.active{background:#eaf0fb;color:#285cc7;box-shadow:none}
.nav svg.icon{width:18px;height:18px}
.profile{padding:14px 0 0;background:transparent;border-top:1px solid var(--line);border-radius:0;color:#465268;gap:8px;font-size:12px}
.profile small{font-size:10px;color:#929aa6}
.profile .avatar{width:28px;height:28px;font-size:12px;background:#eef1f6;color:#61718a}
.profile>.icon-btn{margin-left:auto;flex-shrink:0}
.shell{margin-left:192px}
.topbar{height:54px;padding:0 32px;background:transparent;border-bottom:1px solid var(--line)}
.breadcrumb{font-size:12px;color:#8a93a0}
.topbar>.text-link{font-size:12px;color:#737f91}
.content{padding:30px 32px;max-width:1280px}
.heading{margin-bottom:24px;gap:16px}
h1{font-size:24px;letter-spacing:-.5px;margin:0;font-weight:600}
h2{font-size:15px}
.button{padding:9px 14px;border-radius:5px;box-shadow:none;font-size:13px;min-height:38px}
.button.primary{box-shadow:none}
.button.primary:hover{box-shadow:none}
.panel{border-radius:7px;box-shadow:none}
.panel-head{padding:18px 22px}
.stats{gap:0;background:#fff;border:1px solid var(--line);border-radius:7px;margin-bottom:24px;overflow:hidden}
.stat{border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;padding:20px 24px;background:transparent}
.stat:last-child{border-right:0}
.stat-head{color:#77808d;font-size:12px}
.stat-value{font-size:28px;margin:10px 0 0;font-weight:500}
.stat-value small{font-size:11px;margin-left:7px;color:#98a0aa}
.activity{padding:0 22px 10px}
.event{padding:14px 0}
.event .avatar{width:28px;height:28px;font-size:11px;background:#f0f2f5;color:#69778a}
.event small{font-size:11px}
.tabs{margin-bottom:18px;border-bottom:1px solid var(--line)}
.tab{font-size:13px;padding:11px 16px}
.toolbar{padding:18px 20px}
table th{background:#fafbfc;font-size:12px;color:#778290;font-weight:500}
table td{font-size:13px}
.badge{background:#f2f4f7;border:0;color:#667489;font-size:11px}
.info-note{font-size:12px;color:#8a93a0;background:transparent;border:0;padding:16px 0}
.field{font-size:13px}
.field input,.field select{border-radius:5px}
.empty{font-size:13px;color:#87909e;padding:28px}
.login{min-height:100vh;display:grid;grid-template-columns:1fr;place-items:center;background:#f7f8fa;padding:24px}
.login-story{display:none}
.login-form-wrap{width:min(100%,400px);min-height:0;display:block;padding:32px;background:#fff;border:1px solid var(--line);border-radius:8px}
.login-form-wrap:before{content:none}
.login-brand{margin-bottom:30px;padding:0}
.login-form{width:100%;max-width:none;margin:0;padding:0}
.login-form h1{font-size:21px;margin-bottom:28px}
.login-form .field{margin-bottom:20px}
.login-form .field>input{width:100%;padding:11px 12px;border:1px solid #dce1e8;margin-top:8px}
.login-form .input-icon{margin-top:8px;padding-left:0}
.login-form .input-icon input{padding-left:12px;padding-right:42px}
.login-submit{width:100%;margin-top:4px}
.login-help{display:block;margin:18px auto 0;font-size:12px;color:#788496}
@media(max-width:1000px){.sidebar{width:176px}.shell{margin-left:176px}.content{padding:24px}.topbar{padding:0 24px}}
@media(max-width:760px){.sidebar{width:192px;transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.shell{margin-left:0}.mobile-menu{display:inline-flex}.content{padding:20px 16px}.topbar{padding:0 16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:16px}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat-value{font-size:25px}.heading h1{font-size:22px}.heading>.button{white-space:nowrap}.toolbar{flex-wrap:wrap;gap:12px}.filters{flex-wrap:wrap}.login-form-wrap{padding:28px 24px}.panel-head{padding:16px}.activity{padding:0 16px 8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Account menu: native popover handles outside clicks, focus return and Escape. */
.profile-trigger{width:100%;text-align:left;padding:12px 7px;border-radius:6px;cursor:pointer}
.profile-trigger:hover{background:#f3f5f8}
.profile-identity{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-identity small{display:block;margin-top:4px}
.profile-chevron{font-size:18px;color:#909aaa}
.profile-popover{position:fixed;inset:auto auto 80px 14px;width:310px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 108px);overflow:auto;margin:0;padding:8px;background:#fff;color:var(--ink);border:1px solid #e3e7ed;border-radius:12px;box-shadow:0 8px 32px #22314b20;font-size:13px}
.profile-menu-head{display:flex;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--line);margin-bottom:5px}
.profile-menu-head .avatar{width:34px;height:34px;background:#eaf0fb;color:#3266cf}
.profile-menu-head b{font-size:14px;font-weight:600}
.profile-menu-head small{display:block;font-size:12px;color:#8b94a0;margin-top:4px}
.profile-usage-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:12px;border-radius:6px}
.profile-usage-details>summary::-webkit-details-marker{display:none}
.profile-usage-details>summary:hover,.profile-logout:hover{background:#f3f5f8}
.profile-usage-details>summary>span:first-child{display:flex;align-items:center;gap:9px;font-weight:500}
.profile-usage-summary{font-size:12px;color:#7b8593;white-space:nowrap}
.profile-usage-body{padding:0 12px 12px}
.usage-bucket{padding:10px 0;border-bottom:1px solid var(--line)}
.usage-bucket>b{font-size:12px;font-weight:500;color:#747e8c;overflow-wrap:anywhere}
.usage-window{margin-top:12px}
.usage-window>div{display:flex;justify-content:space-between;gap:8px;font-size:12px}
.usage-window strong{font-weight:500;color:#3c5e8f}
.usage-window progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;background:#eaf0f6;margin:8px 0;accent-color:#5286d4}
.usage-window progress::-webkit-progress-bar{background:#eaf0f6}
.usage-window progress::-webkit-progress-value{background:#5286d4;border-radius:5px}
.usage-window progress::-moz-progress-bar{background:#5286d4}
.usage-window small,.usage-caption,.usage-refresh small{font-size:11px;color:#8b94a0;line-height:1.6}
.usage-caption{margin:12px 0 8px}
.usage-refresh{display:flex;align-items:center;justify-content:space-between;gap:8px}
.usage-refresh button{font-size:12px}
.profile-logout{display:flex;gap:9px;align-items:center;width:100%;padding:12px;background:transparent;color:#4f5b6c;border-radius:6px;text-align:left}
.profile-popover summary:focus-visible,.profile-trigger:focus-visible{outline:2px solid #3266cf;outline-offset:2px}

/* Compact navigation controls only when the sidebar is collapsed. */
.content-menu,.sidebar-close{display:none}
@media(max-width:850px){.content-menu{display:inline-flex;margin-bottom:16px}.sidebar-close{display:inline-flex;position:absolute;top:4px;right:4px}}
