/* Shared identity for the standalone product. Keep these selectors off dialog headers. */
:root{--brand-blue:#252bff;--brand-ink:#161616;--brand-muted:#6e706f;--brand-line:#e5e6e3;--brand-paper:#fafaf8}
body.standalone{margin:0;color:var(--brand-ink);background:var(--brand-paper);font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
.standalone *{box-sizing:border-box}
.site-header{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:0 40px;background:#fff;border-bottom:1px solid var(--brand-line);color:var(--brand-ink)}
.site-header .aftercast-brand{display:inline-flex;align-items:center;gap:0;flex-shrink:0;text-decoration:none;color:var(--brand-ink);white-space:nowrap}
.aftercast-wordmark{font-family:Arial,Helvetica,sans-serif;font-size:30px;font-weight:750;letter-spacing:-1.5px;line-height:1;color:var(--brand-ink)}
.aftercast-brand img{width:43px;height:25px;display:block;object-fit:contain;margin:0 14px 0 5px}
.aftercast-brand .brand-divider{height:23px;width:1px;background:#b6b8b5;margin-right:16px}
.aftercast-brand .brand-product{font-size:16px;font-weight:500;letter-spacing:.02em;color:var(--brand-ink)}
.site-nav,.site-account{display:flex;align-items:center;gap:24px;font-size:13px;white-space:nowrap}
.site-header a{color:var(--brand-ink);text-decoration:none}
.site-header .site-nav a{padding:32px 0 29px;border-bottom:3px solid transparent}
.site-header .site-nav a[aria-current="page"]{border-bottom-color:var(--brand-blue);color:var(--brand-blue);font-weight:600}
.site-header a:hover{color:var(--brand-blue)}
.site-account{gap:18px;margin-left:auto}
.account-name{display:flex;align-items:center;gap:7px;color:#626661;max-width:140px;overflow:hidden;text-overflow:ellipsis}
.account-name::before{content:"";width:7px;height:7px;flex-shrink:0;background:#76ac70;border-radius:50%}
.site-account .admin-link{border:1px solid #d1d3cf;border-radius:5px;padding:9px 12px}
.standalone [hidden]{display:none!important}
.standalone :is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #a3adff;outline-offset:4px}
.site-footer{max-width:1160px;margin:44px auto 0;padding:22px 24px 28px;border-top:1px solid var(--brand-line);display:flex;justify-content:space-between;gap:20px;color:#7b7d79;font-size:11px;letter-spacing:.02em}
.standalone-admin main{padding-top:55px}
.standalone-admin h1{font-size:36px;letter-spacing:-1px;font-weight:600;color:var(--brand-ink)}
.standalone-admin :is(h2,td,.stat b,label,dialog){color:var(--brand-ink)}
.standalone-admin .heading p{color:var(--brand-muted)}
.standalone-admin .eyebrow{color:#505447!important;font-size:10px;letter-spacing:.12em;margin-bottom:12px!important}
.standalone-admin button{border-radius:5px;background:var(--brand-blue);font-weight:500}
.standalone-admin button:hover:not(:disabled){filter:brightness(.94)}
.standalone-admin button.ghost{background:#f2f3ef;color:#464b43}
.standalone-admin :is(.stat,.panel){border-color:var(--brand-line);border-radius:8px;box-shadow:none}
.standalone-admin .stat:first-child{background:#f0f4d7}
.standalone-admin .stat:nth-child(2){background:#e9edf9}
.standalone-admin .stat:nth-child(3){background:#f7eee3}
.standalone-admin .stat{color:var(--brand-muted)}
.standalone-admin th{background:#f5f6f2;color:#60655d}
.standalone-admin :is(td,th){border-color:#edeee9}
.standalone-admin :is(input,select,dialog){border-color:#dfe2d9;border-radius:5px;color:var(--brand-ink)}
.standalone-admin .badge{border-radius:4px;color:#2936c9;background:#ebedff}
.standalone-admin .badge.disabled{color:#b54646;background:#fef1f1}
.standalone-admin .badge.member{color:#59604f;background:#f0f3e9}
.standalone-admin .password-card{padding:32px}
.standalone-admin .password-card h1{font-size:28px;letter-spacing:0}
.standalone-admin .password-card .intro{color:var(--brand-muted);font-size:13px;line-height:1.8}
.standalone-admin .password-card input[readonly]{background:#f6f7f3}
@media(min-width:1450px){.site-header{padding-left:max(40px,calc((100vw - 1360px)/2));padding-right:max(40px,calc((100vw - 1360px)/2))}}
@media(max-width:1100px){.site-header{padding:0 24px;gap:20px}.site-nav{gap:18px}.site-account{gap:12px}.account-name{display:none}.aftercast-wordmark{font-size:27px}.aftercast-brand img{width:37px;margin-right:12px}.aftercast-brand .brand-product{font-size:14px}}
@media(max-width:820px){.site-header{min-height:76px;flex-wrap:wrap;padding:19px 22px 0;gap:14px}.site-nav{order:3;width:100%;gap:24px}.site-header .site-nav a{padding:8px 0 13px}.site-account{font-size:12px}.site-account .admin-link{padding:7px 9px}.standalone-admin .site-header{height:auto;padding-bottom:18px}.site-footer{margin-top:24px}}
@media(max-width:520px){.site-header{padding:18px 18px 0;gap:15px}.aftercast-wordmark{font-size:26px}.aftercast-brand img{width:35px;height:22px;margin-right:10px}.aftercast-brand .brand-divider{height:20px;margin-right:10px}.aftercast-brand .brand-product{font-size:13px}.site-account{width:100%;margin:0;justify-content:flex-end;gap:18px}.site-nav{width:auto;flex:1;order:initial;font-size:12px;gap:20px}.site-header:has(.site-nav) .site-account{width:auto;margin-left:auto;order:4;gap:14px}.site-header:has(.site-nav) .site-account .admin-link{border:0;padding:0}.site-footer{font-size:10px;padding:18px;flex-wrap:wrap;gap:8px}.standalone-admin main{padding-top:32px}.standalone-admin h1{font-size:29px}.standalone-admin .password-card{padding:22px}}
