:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#e5eefb;
  background:#07111f;
  color-scheme:dark;
  --bg:#07111f;
  --panel:#0d1828;
  --panel-2:#101e31;
  --line:#21334a;
  --text:#e8f0fa;
  --muted:#8ea3bb;
  --blue:#4da3ff;
  --blue-2:#1d74d5;
  --green:#49d17d;
  --yellow:#f4c95d;
  --red:#ff6b6b;
  --shadow:0 22px 70px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% -10%,rgba(36,106,179,.18),transparent 36%),linear-gradient(180deg,#081422 0%,#07111f 100%);color:var(--text)}
a{color:#7dbbff;text-decoration:none}a:hover{color:#a9d2ff}
button,input,select,textarea{font:inherit}button{cursor:pointer}
main{max-width:1180px;margin:0 auto;padding:34px 24px 64px}
.auth-body{background:radial-gradient(circle at 18% 18%,rgba(37,118,205,.25),transparent 33%),radial-gradient(circle at 84% 80%,rgba(35,68,118,.18),transparent 32%),#06101c}
.auth-main{max-width:1180px;min-height:100vh;display:flex;align-items:center;padding-top:40px;padding-bottom:40px}
.topbar{position:sticky;top:0;z-index:20;background:rgba(6,15,27,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(83,111,145,.2)}
.nav-inner{height:68px;max-width:1180px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;letter-spacing:-.02em}
.brand:hover{color:#fff}
.brand-mark,.logo-large{display:grid;place-items:center;background:linear-gradient(135deg,#5fb3ff,#2c72ca);box-shadow:0 8px 24px rgba(28,110,200,.35);font-weight:900;color:white}
.brand-mark{width:34px;height:34px;border-radius:10px;font-size:13px}
.logo-large{width:62px;height:62px;border-radius:18px;font-size:21px;margin-bottom:22px}
.nav-links{display:flex;gap:6px;align-items:center}.nav-links a{color:#a9bbcf;padding:9px 12px;border-radius:8px;font-weight:650;font-size:14px}.nav-links a:hover{background:#101d2e;color:white}
.logout{margin-left:auto}
.card{background:linear-gradient(180deg,rgba(17,31,49,.98),rgba(12,24,40,.98));border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 10px 35px rgba(0,0,0,.13)}
.card h1,.card h2,.card h3{margin-top:0}.card h2{font-size:20px;margin-bottom:7px}
.auth-shell{width:100%;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(370px,480px);gap:84px;align-items:center}
.auth-intro{max-width:560px}.auth-intro h1{font-size:48px;line-height:1.03;letter-spacing:-.045em;margin:8px 0 18px}.auth-intro>p:last-child{font-size:18px;line-height:1.65;color:#9cb0c8;max-width:540px}
.eyebrow{color:#65aef5!important;font-size:12px!important;font-weight:850!important;letter-spacing:.16em!important;text-transform:uppercase;margin:0 0 8px!important}
.auth-card{padding:32px;box-shadow:var(--shadow)}.card-head{margin-bottom:22px}.card-head h2{font-size:28px;letter-spacing:-.03em;margin-bottom:7px}.card-head p{margin:0}
.auth-footer{text-align:center;margin-top:22px;color:var(--muted);font-size:14px}
.muted,small{color:var(--muted)}small{line-height:1.45}.optional{color:#6f849d;font-weight:500;font-size:12px}.field-label{display:block;font-weight:700;font-size:13px;margin-bottom:8px}
form{display:grid;gap:15px}label{display:grid;gap:7px;font-weight:700;font-size:13px;color:#c9d6e5}
input,select,textarea{width:100%;border:1px solid #2a3e57;background:#091523;color:#ecf5ff;border-radius:10px;padding:11px 12px;outline:none;transition:border-color .15s,box-shadow .15s,background .15s}
textarea{resize:vertical;min-height:90px}input::placeholder,textarea::placeholder{color:#5f738a}input:focus,select:focus,textarea:focus{border-color:#4f9fe9;box-shadow:0 0 0 3px rgba(77,163,255,.12);background:#0a1828}
input[type=checkbox]{width:auto;accent-color:#4da3ff}
.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:11px;background:#07111d;border:1px solid #1d2e43;margin-bottom:3px}.segment{border:0;border-radius:8px;padding:9px 10px;background:transparent;color:#8499b1;font-weight:750}.segment.active{background:#18314f;color:#ddecff;box-shadow:inset 0 0 0 1px #27527e}
.primary-button,.secondary-button,.danger-button,.ghost-button,.text-button,.text-danger{border:0;border-radius:10px;font-weight:800;transition:transform .12s,background .15s,color .15s,border-color .15s}.primary-button,.secondary-button,.danger-button,.ghost-button{padding:10px 14px;display:inline-flex;align-items:center;justify-content:center}.primary-button{background:linear-gradient(180deg,#4da3ff,#267cd6);color:white;box-shadow:0 7px 20px rgba(41,124,213,.24)}.primary-button:hover{background:linear-gradient(180deg,#62b0ff,#3088e0);color:white}.secondary-button{background:#13263c;color:#dbeafd;border:1px solid #294562}.secondary-button:hover{background:#19314d;color:#fff}.danger-button{background:#5b2027;color:#ffdfe2;border:1px solid #81313b}.danger-button:hover{background:#722a34}.ghost-button{background:transparent;color:#9cb0c8;border:1px solid #22374e}.ghost-button:hover{background:#102033;color:white}.text-button,.text-danger{padding:0;background:transparent}.text-button{color:#7dbbff}.text-danger{color:#ff8e8e}.text-danger:hover{color:#ffb2b2}.standalone{margin-top:14px}.full{width:100%}.center{text-align:center}.primary-button.full,.secondary-button.full{display:flex}
.error{color:#ff8c8c;font-size:13px;margin-top:9px}.ok{color:#62d990;font-size:13px;margin-top:9px}.form-status{min-height:18px;margin-top:10px;font-size:13px}.notice,.info-box,.warning-box{border-radius:11px;padding:12px 13px;font-size:13px;line-height:1.55}.notice{background:#102f4b;border:1px solid #24517a}.success-notice{margin-bottom:16px;color:#b9dcff}.info-box{background:#0b2035;border:1px solid #1f4466;color:#a9c5df}.info-box p{margin:6px 0 0}.warning-box{background:#332712;border:1px solid #655126;color:#f2dca5;margin:14px 0}.success-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#113b29;color:#71e59e;font-size:26px;font-weight:900;margin-bottom:18px}
.key-reveal{margin:18px 0;padding:14px;background:#07121f;border:1px solid #2b4763;border-radius:12px;display:grid;gap:10px}.key-reveal span{font-size:12px;color:#8ea3bb;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.key-reveal code{display:block;font-size:16px;line-height:1.55;color:#dcecff;word-break:break-all;background:#0f2134;border-radius:8px;padding:11px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:10px 0 28px}.page-heading h1{font-size:36px;letter-spacing:-.04em;margin:3px 0 8px}.page-heading p:not(.eyebrow){margin:0;color:#93a7bf;line-height:1.55;max-width:730px}.dashboard-heading{align-items:center}.step-badge{border:1px solid #294762;background:#0f2034;color:#9ec5e8;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.section-head h2,.section-head p{margin-top:0}.section-head p{margin-bottom:0}.section-title>div{display:flex;align-items:center;gap:11px}.section-number{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#173b60;color:#81bdf6;font-weight:900;font-size:13px}.wide-field{max-width:520px;margin-top:18px}.setup-actions{display:flex;align-items:center;gap:16px;margin-top:18px}
.feature-list{display:grid}.feature-row{display:grid;grid-template-columns:minmax(0,1fr) auto 145px;gap:20px;align-items:center;padding:17px 0;border-top:1px solid #1d3046}.feature-row:first-child{border-top:0}.feature-copy strong{font-size:14px}.feature-copy p{margin:5px 0 0;color:#8298b0;font-size:13px;line-height:1.5}.compact-field{gap:5px}.compact-field span{font-size:11px;color:#7f95ad;text-transform:uppercase;letter-spacing:.06em}.switch-label{grid-template-columns:auto auto auto;display:grid;align-items:center;gap:7px}.switch-label input{position:absolute;opacity:0;pointer-events:none}.switch{position:relative;width:36px;height:20px;border-radius:999px;background:#273b50;transition:.15s}.switch:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#9eafc2;top:3px;left:3px;transition:.15s}.switch-label input:checked+.switch{background:#256fc1}.switch-label input:checked+.switch:after{left:19px;background:white}
.dashboard-grid,.admin-grid,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.span-2{grid-column:span 2}.settings-grid{align-items:start}.settings-grid .card{min-height:100%}
.actor-list{display:grid;gap:9px;margin:14px 0 16px}.actor-item{display:flex;align-items:center;gap:11px;padding:11px;border-radius:12px;background:#0a1727;border:1px solid #1d3046}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#18375a;color:#9dcaff;font-size:12px;font-weight:900}.actor-copy{display:grid;gap:3px;min-width:0}.actor-copy small{font-size:11px}.actor-actions{display:flex;gap:10px;margin-left:auto;align-items:center;flex-wrap:wrap;justify-content:flex-end}.inline-form{display:grid;grid-template-columns:1fr auto;gap:8px}
.detail-list{display:grid;gap:0;margin:14px 0 18px}.detail-list>div,.status-line{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid #1d3046}.detail-list>div:first-child{border-top:0}.detail-list span,.status-line span{color:#8196ad;font-size:13px}.detail-list strong,.status-line strong{font-size:13px;text-align:right}
.table-wrap{overflow:auto;margin-left:-2px;margin-right:-2px}table{width:100%;border-collapse:collapse;min-width:620px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #1c2f44;vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#71869e;font-weight:850}td{font-size:13px;color:#c9d6e5}.table-primary{font-weight:800;color:#e3eefb}.table-primary:hover{color:#89c3ff}td code{font-size:11px;word-break:break-all}.hash{max-width:230px;display:inline-block}
.pill,.channel-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:850}.pill{background:#1a2b40;color:#a8b8ca}.pill.approved{background:#123926;color:#71db9a}.pill.pending{background:#3b3118;color:#e5c96e}.pill.disabled,.pill.rejected{background:#432027;color:#ff9da6}.pill.neutral{background:#1a2b40;color:#a8b8ca}.badge-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.channel-badge.stable{background:#143724;color:#75d49a}.channel-badge.beta{background:#3c3117;color:#eccb69}.channel-badge.dev{background:#2b2050;color:#c0a7ff}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px}.status-dot.on{background:#4cd47f;box-shadow:0 0 0 3px rgba(76,212,127,.1)}.status-dot.off{background:#6b7f94}.empty-state{padding:22px;border:1px dashed #2b4159;border-radius:12px;background:#0a1624;text-align:center;color:#8ca1b7}.empty-state p{margin:6px 0 0}.empty-state.compact{padding:12px}.empty-state.compact p{margin:0}
.center-page{min-height:calc(100vh - 130px);display:grid;place-items:center}.status-card{max-width:520px;text-align:center;padding:34px}.status-card>p{color:#91a6bd;line-height:1.6}.status-orb{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;margin:0 auto 18px;background:#173b60;color:#8ec5fb;font-weight:900;font-size:24px}.pending-orb{background:#3a3019;color:#e9cb70}.pair-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:28px;letter-spacing:.08em;font-weight:900;padding:15px;margin:18px 0;border-radius:12px;background:#091624;border:1px solid #27415d}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stat-card{background:#0e1c2e;border:1px solid #20344b;border-radius:15px;padding:18px}.stat-card span{display:block;color:#8195ac;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.stat-card strong{display:block;font-size:32px;letter-spacing:-.04em;margin:8px 0 2px}.stat-card small{font-size:11px}.admin-links{display:grid;gap:9px}.admin-links a{display:grid;gap:3px;padding:13px;border-radius:11px;background:#0a1726;border:1px solid #1c3147;color:#e3edf8}.admin-links a:hover{background:#102138;border-color:#2b4b6d}.admin-links span{font-size:12px;color:#8297ae}.audit-list{display:grid}.audit-item{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #1b2e43}.audit-item:first-child{border-top:0}.audit-item>div{display:grid;gap:3px}.audit-item span,.audit-item time{font-size:11px;color:#788da5}.back-row{margin:6px 0 20px;font-size:13px}.user-admin-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px}.user-admin-header h1{margin:4px 0 3px}.actions{display:flex;gap:9px;flex-wrap:wrap}.checkbox-row{display:flex;align-items:center;gap:9px}.checkbox-row input{width:auto}.key-info{font-size:13px;color:#8ba0b8;line-height:1.55;margin-bottom:15px}
@media(max-width:900px){
  .auth-shell{grid-template-columns:1fr;gap:34px;max-width:560px;margin:0 auto}.auth-intro h1{font-size:38px}.auth-intro>p:last-child{font-size:16px}.auth-main{align-items:flex-start}.dashboard-grid,.admin-grid,.settings-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.stat-grid{grid-template-columns:1fr 1fr}.feature-row{grid-template-columns:1fr auto}.feature-row .compact-field{grid-column:1/-1;max-width:220px}.page-heading{align-items:flex-start;flex-direction:column}.dashboard-heading{align-items:flex-start}.user-admin-header{align-items:flex-start;flex-direction:column}
}
@media(max-width:650px){
  main,.nav-inner{padding-left:15px;padding-right:15px}.nav-inner{height:62px;gap:10px}.brand span:last-child{display:none}.nav-links{gap:0}.nav-links a{padding:8px 9px;font-size:12px}.logout{padding:8px 10px;font-size:12px}.auth-main{padding:20px 15px}.auth-intro{display:none}.auth-card{padding:23px}.page-heading h1{font-size:30px}.stat-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px}.stat-card strong{font-size:26px}.card{padding:18px;border-radius:15px}.feature-row{grid-template-columns:1fr}.switch-label,.feature-row .compact-field{grid-column:auto}.actor-item{align-items:flex-start}.actor-actions{width:100%;margin-left:49px;justify-content:flex-start}.inline-form{grid-template-columns:1fr}.setup-actions{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions button{flex:1}.pair-code{font-size:21px}.status-card{padding:24px}.settings-grid{gap:15px}
}
