:root{--ink:#172b56;--navy:#102c63;--muted:#7689a9;--blue:#3478f6;--cyan:#12cbe8;--purple:#8459e9;--line:#e7effb;--paper:#fff;--bg:#f5f9ff;--soft:#f0f6ff;--radius:22px;--shadow:0 16px 50px rgba(36,76,143,.07)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4aaaff80;outline-offset:2px}p{margin:0}h1,h2,h3{letter-spacing:-.035em;margin:0}h1{font-size:clamp(28px,3.4vw,43px);line-height:1.15}h2{font-size:23px}h3{font-size:16px}small{font-size:12px}input,textarea,select{width:100%;color:var(--ink);background:#f9fbff;border:1px solid #dfe8f7;border-radius:12px;min-height:44px;padding:10px 13px;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:#71a0ed;box-shadow:0 0 0 3px #cce4ff85;outline:0}input[type=color]{height:45px;width:64px;padding:3px;min-height:0;background:white}input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:var(--blue)}textarea{min-height:118px;resize:vertical;line-height:1.6}label{font-size:13px;font-weight:700;display:block;margin-bottom:8px}kbd{background:#edf3ff;border-radius:6px;padding:3px 6px}.muted{color:var(--muted)}.xs{font-size:12px}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:850;text-transform:uppercase;color:var(--blue)}.icon{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:11px;flex-shrink:0;background:#ebf3ff;color:var(--blue);font-size:18px;font-weight:750}.app{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr)}.sidebar{background:linear-gradient(160deg,#fff 12%,#f7fbff 90%);border-right:1px solid var(--line);padding:25px 18px;display:flex;flex-direction:column;gap:26px;position:sticky;top:0;max-height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:12px;padding:4px 11px}.brand-emblem{width:45px;height:45px;border-radius:16px;display:grid;place-items:center;font-size:24px;font-style:italic;font-weight:900;color:#fff;background:linear-gradient(140deg,#0557cc,#0ecde1 52%,#8b59ed);box-shadow:0 8px 20px #2282e744;transform:rotate(-8deg)}.brand-emblem span{transform:rotate(8deg)}.brand-title{font-weight:900;font-size:20px;letter-spacing:-.06em}.brand-title span{color:#2688e9}.brand-sub{font-size:9px;letter-spacing:.24em;color:#8ba0bc;font-weight:800}.side-label{padding:0 14px;margin:9px 0 8px;font-size:10px;letter-spacing:.15em;font-weight:850;color:#9aabc3}.nav-list{display:grid;gap:5px}.nav-btn{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#647a9c;padding:12px 13px;text-align:left;border-radius:12px;font-weight:700;font-size:13px;transition:.17s}.nav-btn:hover{background:#eaf3ff;color:#1e62bf}.nav-btn.active{background:linear-gradient(100deg,#dcecff,#ebf7ff);color:#0864d0;box-shadow:inset 3px 0 #2389ee}.nav-btn .glyph{font-size:17px;width:23px}.sidebar-bottom{margin-top:auto;padding:16px 13px;background:linear-gradient(120deg,#eef5ff,#faf7ff);border-radius:17px;border:1px solid #e5e9ff}.sidebar-bottom p{font-size:12px;color:#8193b3;margin-top:7px;line-height:1.6}.sidebar-bottom strong{font-size:13px}.main{min-width:0}.topbar{height:90px;display:flex;justify-content:space-between;align-items:center;padding:16px clamp(22px,4vw,56px);gap:16px;border-bottom:1px solid var(--line);background:#ffffffdf}.crumb{display:flex;gap:10px;align-items:center;color:#8194b0;font-size:13px}.crumb b{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:13px}.avatar{height:35px;width:35px;border-radius:12px;background:linear-gradient(140deg,#d6e8ff,#f1ddff);display:grid;place-items:center;color:#4378d9;font-weight:850;object-fit:cover}.top-user{display:flex;align-items:center;gap:8px;font-weight:750;font-size:13px}.server-select{width:min(265px,33vw);background:white;border-radius:12px;min-height:42px;font-weight:750}.content{max-width:1580px;padding:32px clamp(22px,4vw,56px) 65px;margin:auto}.hero{position:relative;overflow:hidden;min-height:226px;padding:36px 40px;display:flex;justify-content:space-between;align-items:center;border-radius:26px;background:linear-gradient(116deg,#073f9b 0%,#1375e7 50%,#4cc8f3 81%,#9d6af7 125%);color:white;box-shadow:0 16px 36px #2673d52d}.hero:before,.hero:after{content:'';position:absolute;border-radius:50%;border:34px solid #ffffff14;pointer-events:none}.hero:before{width:500px;height:500px;right:-150px;top:-340px}.hero:after{width:520px;height:520px;right:40px;bottom:-440px;border-color:#ffffff12}.hero .eyebrow{color:#b5efff}.hero p{max-width:540px;font-size:14px;line-height:1.85;color:#e4f5ff;margin-top:12px}.hero h1{margin-top:9px}.hero-orbit{height:166px;width:166px;border-radius:42px;transform:rotate(-9deg);position:relative;display:grid;place-items:center;background:linear-gradient(135deg,#0046bd,#0fc7ec);box-shadow:inset -10px -12px 25px #071f8d64,0 23px 30px #081d7b36;border:4px solid #91f3ff}.hero-orbit:after{content:'';position:absolute;width:220px;height:66px;transform:rotate(-22deg);border-radius:50%;border:10px solid #97faff;box-shadow:0 0 20px #56e0fb;pointer-events:none}.hero-orbit strong{font-style:italic;font-weight:950;font-size:110px;text-shadow:0 8px 16px #033e9399;transform:rotate(9deg)}.hero .shine{position:absolute;right:16%;top:10%;font-size:35px;color:#afffff}.section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:30px 0 18px}.section-header p{color:var(--muted);font-size:13px;margin-top:7px;line-height:1.7}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card,.panel,.feature-card,.rule-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.stat-card{padding:22px}.stat-top{display:flex;align-items:center;justify-content:space-between}.stat-card .metric{font-size:30px;font-weight:900;letter-spacing:-.06em;margin-top:14px;color:var(--navy)}.stat-card .metric-label{font-size:12px;color:var(--muted);margin-top:5px;font-weight:650}.badge{display:inline-flex;gap:5px;align-items:center;font-size:11px;font-weight:750;color:#1684c5;border-radius:99px;background:#e6f7ff;padding:6px 10px}.badge.on{color:#0c9b74;background:#e8fbf3}.badge.off{color:#8a97af;background:#f1f4f9}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.82fr);gap:18px}.bottom-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.panel{padding:25px;min-width:0}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:19px}.panel-title p{color:var(--muted);font-size:12px;line-height:1.6;margin-top:7px}.feature-card{padding:22px;text-align:left;display:block;width:100%;border-color:#e4edf8;transition:transform .18s,box-shadow .18s}.feature-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #3386e522}.feature-card h3{margin:18px 0 7px}.feature-card p{font-size:12px;color:var(--muted);line-height:1.7}.feature-card .foot{display:flex;align-items:center;justify-content:space-between;margin-top:19px}.field{margin:0 0 17px}.field-hint{font-size:11px;color:#8296b4;margin:6px 0 0}.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.toggle{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;padding:12px 14px;background:#f3f8ff;border-radius:12px;margin-bottom:16px}.toggle input{flex:0 0 auto}.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.btn{min-height:43px;border-radius:12px;font-weight:800;font-size:12px;border:1px solid #dce8fa;background:#fff;color:#335482;padding:11px 17px;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:transform .15s,box-shadow .15s}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px #276be72a}.btn-primary{background:linear-gradient(110deg,#0759d5,#178eef);border-color:transparent;color:#fff;box-shadow:0 8px 20px #2083e62a}.btn-danger{color:#d84568;background:#fff1f4;border-color:#ffe0e8}.btn-quiet{background:#eef7ff;color:#246cc1;border-color:#e3effb}.btn-small{font-size:11px;min-height:34px;padding:7px 11px}.preview{background:#181b23;color:#e3e6f1;border-radius:16px;padding:18px;margin-top:10px}.preview-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.preview-avatar{height:37px;width:37px;object-fit:cover;border-radius:50%;background:#3d59c2}.preview-bot{font-weight:850;font-size:13px;color:#58d3ff}.app-pill{font-size:9px;background:#576fdd;color:white;border-radius:4px;padding:2px 5px}.preview-time{color:#858d9e;font-size:10px}.preview-embed{border-left:4px solid var(--preview-accent,#13c8e9);background:#24262d;border-radius:3px 7px 7px 3px;padding:15px;display:flex;gap:10px}.preview-main{flex:1;min-width:0}.preview-label{font-size:10px;color:#afc5f2;font-weight:750;letter-spacing:.04em;margin-bottom:9px}.preview-main h3{font-size:14px;color:white;margin-bottom:10px}.preview-main p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:#d4d7df}.preview-mini{display:flex;gap:18px;margin-top:15px;font-size:11px;font-weight:750}.preview-mini span{font-size:10px;color:#9da8bb;font-weight:550}.preview-face{height:65px;width:65px;background:linear-gradient(130deg,#125fce,#cbabff);border-radius:12px;object-fit:cover}.preview-actions{display:flex;gap:8px;margin-top:8px}.preview-actions span{background:#363b49;color:#dfe4ef;border:1px solid #494e5a;border-radius:6px;font-size:11px;font-weight:750;padding:8px 10px}.preview-foot{font-size:10px;color:#9198a8;margin-top:10px}.notes{margin-top:16px;color:#90a0b8;font-size:12px;line-height:1.8}.rule-list{display:grid;gap:12px}.rule-card{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.rule-main{min-width:0}.rule-card h3{font-size:15px}.rule-card p{margin-top:6px;font-size:12px;color:var(--muted)}.rule-actions{display:flex;gap:7px;flex-wrap:wrap}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:13px 11px;text-align:left;border-bottom:1px solid var(--line)}th{color:#8b9bb0;font-size:11px;letter-spacing:.06em;text-transform:uppercase}td{font-weight:650}.empty{border:1px dashed #c9d9ed;padding:25px;text-align:center;border-radius:16px;color:#8b9cb8;font-size:13px;line-height:1.8}.login-page{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 15% 15%,#c7e5ff 0,transparent 36%),radial-gradient(circle at 85% 85%,#e7dcff,transparent 36%),#f8fbff}.login-card{width:min(440px,100%);border:1px solid #e2ecfb;box-shadow:0 25px 95px #2e69b42d;background:#ffffffec;border-radius:30px;padding:45px;text-align:center}.login-logo{margin:auto auto 25px;width:140px;height:140px;object-fit:contain}.login-card h1{font-size:32px}.login-card p{color:var(--muted);font-size:14px;line-height:1.85;margin:14px 0 27px}.login-card a{width:100%}.login-card footer{font-size:11px;color:#9cacc1;margin-top:20px}.boot-screen{min-height:100vh;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center}.boot-orbit{height:88px;width:88px;border-radius:30px;background:linear-gradient(135deg,#0067d9,#09cfe5,#9556f1);color:#fff;display:grid;place-items:center;font-size:56px;font-weight:950;font-style:italic;box-shadow:0 15px 28px #216fd044}.boot-name{font-weight:900;letter-spacing:.06em;font-size:17px}.boot-name strong{color:var(--blue)}.boot-screen p{font-size:13px;color:var(--muted)}#toast-area{position:fixed;right:24px;bottom:24px;z-index:20;display:grid;gap:10px}.toast{padding:14px 19px;border-radius:14px;background:#133670;color:#fff;font-weight:750;font-size:13px;box-shadow:0 14px 40px #17386c33;max-width:min(480px,90vw)}.toast.error{background:#ab3b5c}.no-guilds{margin:60px auto;text-align:center;max-width:520px}.chip-line{display:flex;flex-wrap:wrap;gap:8px}.chip{border-radius:99px;background:#eff5ff;color:#3575c0;font-size:11px;padding:7px 11px;font-weight:750}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.hero-orbit{height:125px;width:125px}.hero-orbit strong{font-size:85px}.hero-orbit:after{width:180px;height:50px}}
@media(max-width:780px){.app{display:block}.sidebar{position:relative;max-height:none;padding:14px;border-right:0;border-bottom:1px solid var(--line);gap:10px}.sidebar-bottom,.side-label{display:none}.nav-list{display:flex;overflow-x:auto;gap:4px}.nav-btn{min-width:max-content;padding:9px 11px}.brand{padding:5px}.topbar{height:auto;min-height:72px;padding:13px 19px}.top-user span{display:none}.content{padding:23px 18px 50px}.hero{min-height:210px;padding:26px}.hero-orbit{display:none}.bottom-col{grid-template-columns:1fr}.server-select{width:min(210px,45vw)}}
@media(max-width:500px){.stats-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:15px}.stat-card .metric{font-size:24px}.panel{padding:18px}.field-row{grid-template-columns:1fr}.hero{padding:24px}.hero h1{font-size:27px}.topbar .crumb{display:none}.topbar{justify-content:flex-end}.preview-embed{padding:10px}.preview-face{height:45px;width:45px}.rule-card{display:block}.rule-actions{margin-top:12px}.login-card{padding:30px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}


/* --- Nebyula Studio dual-theme system (browser-local, no server changes) --- */
:root {
  color-scheme: light;
  --theme-control-bg: #f3f8ff;
  --theme-control-border: #dce8f8;
  --theme-control-active: #fff;
  --theme-control-active-ink: #1356ba;
  --theme-control-muted: #6d809f;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eaf1ff;
  --navy: #f3f7ff;
  --muted: #a8b8d1;
  --blue: #89b9ff;
  --cyan: #64e5f3;
  --purple: #b7a3ff;
  --line: #2c3952;
  --paper: #19253b;
  --bg: #0b1220;
  --soft: #142035;
  --shadow: 0 16px 48px rgba(0, 0, 0, .22);
  --theme-control-bg: #131f35;
  --theme-control-border: #344762;
  --theme-control-active: #304d76;
  --theme-control-active-ink: #fff;
  --theme-control-muted: #b4c5de;
}
html[data-theme="dark"],html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:linear-gradient(165deg,#121d30 8%,#0e192b 96%);border-color:var(--line)}
html[data-theme="dark"] .brand-sub,html[data-theme="dark"] .side-label{color:#9aaccc}
html[data-theme="dark"] .brand-title span{color:#83cbff}
html[data-theme="dark"] .nav-btn{color:#b6c5df}
html[data-theme="dark"] .nav-btn:hover{background:#223651;color:#c1e9ff}
html[data-theme="dark"] .nav-btn.active{background:linear-gradient(100deg,#203c61,#1c304d);color:#a8e2ff;box-shadow:inset 3px 0 #72c9ff}
html[data-theme="dark"] .sidebar-bottom{background:linear-gradient(140deg,#1a2b47,#211b3d);border-color:#36445f}
html[data-theme="dark"] .sidebar-bottom p{color:#b0bfda}
html[data-theme="dark"] .topbar{background:rgba(16,27,45,.95);border-color:var(--line)}
html[data-theme="dark"] .crumb{color:#9bacc9}
html[data-theme="dark"] .crumb b{color:var(--ink)}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{
  background:#101b2e;color:var(--ink);border-color:#354663;
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8396b6}
html[data-theme="dark"] input:focus,html[data-theme="dark"] textarea:focus,html[data-theme="dark"] select:focus{
  border-color:#8dbbff;box-shadow:0 0 0 3px rgba(94,155,245,.23);
}
html[data-theme="dark"] input[type="color"]{background:#101b2e}
html[data-theme="dark"] input[type="checkbox"]{accent-color:#7cb4ff}
html[data-theme="dark"] select option{color:#ecf4ff;background:#111b2c}
html[data-theme="dark"] kbd{background:#273c5c}
html[data-theme="dark"] .icon{background:#223a5b;color:#a4d6ff}
html[data-theme="dark"] .stat-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .feature-card,html[data-theme="dark"] .rule-card{
  background:var(--paper);border-color:var(--line);box-shadow:var(--shadow);
}
html[data-theme="dark"] .feature-card:hover{box-shadow:0 16px 32px rgba(0,0,0,.33);border-color:#426da1}
html[data-theme="dark"] .badge{background:#193c58;color:#a2e3ff}
html[data-theme="dark"] .badge.on{background:#173d3a;color:#82e8bd}
html[data-theme="dark"] .badge.off{background:#2a3447;color:#b3bfd4}
html[data-theme="dark"] .toggle{background:#121f35}
html[data-theme="dark"] .btn{background:#223451;color:#d7eaff;border-color:#38516e}
html[data-theme="dark"] .btn:hover{box-shadow:0 6px 16px rgba(0,0,0,.25)}
html[data-theme="dark"] .btn-primary{background:linear-gradient(110deg,#2362d3,#208fe9);border-color:transparent;color:white}
html[data-theme="dark"] .btn-danger{background:#45263a;color:#ffadbe;border-color:#664058}
html[data-theme="dark"] .btn-quiet{background:#1b385d;color:#b5ddff;border-color:#2b5280}
html[data-theme="dark"] .field-hint,html[data-theme="dark"] .notes{color:#aabbd3}
html[data-theme="dark"] th{color:#afc1db}
html[data-theme="dark"] .empty{border-color:#40526e;color:#b1c1db;background:#141f32}
html[data-theme="dark"] .chip{background:#263e61;color:#b4d9ff}
html[data-theme="dark"] .login-page{
  background:radial-gradient(circle at 15% 15%,#14335b 0,transparent 38%),
             radial-gradient(circle at 85% 85%,#34244c 0,transparent 39%),#0b1220;
}
html[data-theme="dark"] .login-card{background:rgba(25,37,59,.94);border-color:#37445e;box-shadow:0 30px 95px rgba(0,0,0,.36)}
html[data-theme="dark"] .login-card footer{color:#a7b7d0}
html[data-theme="dark"] .hero{background:linear-gradient(116deg,#0d2a62 0%,#20529a 48%,#307da3 80%,#5d458b 125%);box-shadow:0 18px 42px rgba(0,0,0,.25)}
html[data-theme="dark"] .preview,html[data-theme="dark"] .preview-embed{color:#e3e6f1}
html[data-theme="dark"] .toast{background:#26426f;color:#fff}
html[data-theme="dark"] .toast.error{background:#863b55}
html[data-theme="dark"] .avatar{background:linear-gradient(135deg,#183e70,#493664);color:#d6eaff}
html[data-theme="dark"] .no-guilds{color:var(--ink)}

/* Accessible 3-position theme switch, always present even before Discord login. */
.theme-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--theme-control-border);
  background:var(--theme-control-bg);border-radius:14px;max-width:100%}
.theme-option{border:0;border-radius:10px;background:transparent;color:var(--theme-control-muted);padding:8px 10px;
  font-size:12px;font-weight:800;min-height:35px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;transition:background .2s,box-shadow .2s,color .2s}
.theme-option span:first-child{font-size:17px;line-height:1}
.theme-option:hover{color:var(--ink);background:color-mix(in srgb,var(--theme-control-active) 65%,transparent)}
.theme-option[aria-pressed="true"]{background:var(--theme-control-active);color:var(--theme-control-active-ink);box-shadow:0 3px 10px rgba(12,49,97,.12)}
.theme-option:focus-visible,.theme-card:focus-visible{outline:3px solid #65bdff;outline-offset:3px}
.login-theme{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:23px}
.login-theme .theme-switch{justify-content:center}
.brand-banner{width:100%;border-radius:15px;border:1px solid var(--line)}
.theme-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:10px}
.theme-card{border:1px solid var(--line);border-radius:19px;padding:15px;background:var(--paper);color:var(--ink);
  min-width:0;text-align:left;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);transition:border-color .2s,transform .2s}
.theme-card:hover{transform:translateY(-2px);border-color:#70aeff}
.theme-card[aria-pressed="true"]{border-color:#4b97ee;box-shadow:inset 0 0 0 1px #4b97ee,0 10px 25px rgba(33,106,196,.12)}
.theme-card-name{font-size:14px;font-weight:850;display:flex;align-items:center;gap:6px}
.theme-check{margin-left:auto;color:var(--blue);font-size:17px}
.theme-card-desc{font-size:11px;color:var(--muted);line-height:1.6}
.theme-card-sample{display:flex;height:86px;width:100%;border-radius:11px;overflow:hidden;border:1px solid rgba(135,154,187,.25)}
.theme-card-sample-light{background:#f5f8ff}.theme-card-sample-dark{background:#0d1525}
.theme-card-sample-system{background:linear-gradient(90deg,#f5f8ff 0 50%,#0d1525 50%)}
.sample-rail{display:flex;flex:0 0 29%;flex-direction:column;gap:9px;padding:14px 9px;background:rgba(100,150,220,.12)}
.sample-rail i{height:5px;border-radius:7px;background:#7ab8fa;opacity:.5}.sample-rail i:first-child{opacity:.9}
.sample-content{flex:1;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:14px 1fr;gap:8px;padding:12px 9px}
.sample-content i{border-radius:5px;background:rgba(103,158,222,.19)}.sample-content i:first-child{grid-column:span 2;background:#5a9ae4;opacity:.8}
html[data-theme="dark"] .theme-card-sample-dark .sample-content i{background:#243954}
@media(max-width:920px){.theme-cards{grid-template-columns:1fr}.theme-card{display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;column-gap:16px}.theme-card-sample{grid-row:span 2}}
@media(max-width:780px){.theme-switch.compact .theme-caption{display:none}.theme-switch.compact .theme-option{padding:7px 9px;min-height:34px}}
@media(max-width:500px){.top-actions{gap:7px}.server-select{width:min(160px,39vw)}.theme-switch.compact{padding:2px;gap:1px}.theme-switch.compact .theme-option{padding:6px 7px;min-height:30px}
  .theme-card{grid-template-columns:110px minmax(0,1fr)}.theme-card-sample{height:73px}}
@media(prefers-reduced-motion:reduce){.theme-option,.theme-card{transition:none}}

/* Nebyula Studio V2: premium presets, setup health and safe config backups. */
.preset-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 0 12px}
.preset-header h3{font-size:15px;letter-spacing:-.02em;color:var(--ink);margin:0 0 4px}
.preset-header p{font-size:11px;color:var(--muted);line-height:1.45;margin:0}
.preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:24px}
.preset-card{min-width:0;text-align:left;cursor:pointer;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:9px;border-radius:14px;display:flex;flex-direction:column;gap:4px;transition:transform .17s,border-color .17s,box-shadow .17s}
.preset-card:hover{transform:translateY(-2px);border-color:#76b7fb;box-shadow:0 9px 22px #2860ae1b}
.preset-card:focus-visible,.checklist-item:focus-visible{outline:3px solid #6baeff;outline-offset:2px}
.preset-card strong{font-size:11px;line-height:1.35;margin-top:6px}
.preset-card small{font-size:10px;color:var(--muted)}
.preset-art{height:78px;width:100%;border-radius:10px;display:flex;position:relative;overflow:hidden;align-items:center;justify-content:center;background:radial-gradient(ellipse at 15% 10%,color-mix(in srgb,var(--preset-color) 23%,transparent),transparent 75%),linear-gradient(115deg,color-mix(in srgb,var(--preset-color) 13%,var(--soft)),var(--paper));border:1px solid color-mix(in srgb,var(--preset-color) 24%,var(--line))}
.preset-art:before,.preset-art:after{content:"";position:absolute;border-radius:50%;border:1px solid color-mix(in srgb,var(--preset-color) 45%,transparent);width:90px;height:90px;transform:rotate(35deg) scaleX(1.6)}
.preset-art:after{width:45px;height:45px;transform:rotate(-25deg) scaleX(1.7);opacity:.4}
.preset-art-star{z-index:1;font-size:26px;font-weight:900;color:var(--preset-color);text-shadow:0 0 18px color-mix(in srgb,var(--preset-color) 35%,transparent)}
.preset-art-lines{position:absolute;bottom:13px;right:8px;display:grid;gap:4px;opacity:.65}
.preset-art-lines i{height:3px;background:var(--preset-color);border-radius:9px;width:28px}.preset-art-lines i:nth-child(2){width:20px}.preset-art-lines i:nth-child(3){width:12px}
.readiness-panel{padding:24px}.readiness-top{display:flex;justify-content:space-between;gap:18px;align-items:center}.readiness-top strong{font-size:16px;color:var(--ink)}
.readiness-top p{font-size:12px;color:var(--muted);margin:5px 0}.readiness-top b{font-size:29px;letter-spacing:-.04em;color:var(--blue)}
.readiness-track{width:100%;height:9px;background:var(--soft);border-radius:99px;overflow:hidden;border:1px solid var(--line);margin:17px 0 23px}
.readiness-track>span{display:block;height:100%;border-radius:99px;background:linear-gradient(100deg,#347cfa,#48cdda,#956afa);transition:width .3s}
.checklist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.checklist-item{display:flex;align-items:center;gap:11px;text-align:left;background:var(--soft);border:1px solid var(--line);color:var(--ink);padding:11px 13px;border-radius:13px;cursor:pointer;min-width:0}
.checklist-item:hover{border-color:#74aef9;background:color-mix(in srgb,var(--blue) 5%,var(--soft))}
.checklist-item>span:nth-child(2){display:grid;gap:4px;min-width:0}.checklist-item strong{font-size:12px}.checklist-item small{font-size:10px;color:var(--muted);line-height:1.4}
.checkmark{height:27px;width:27px;flex:0 0 27px;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;font-weight:850;background:var(--paper);color:var(--muted)}
.checkmark.ready{background:#d9faed;border-color:#a5e8c9;color:#16835a}html[data-theme="dark"] .checkmark.ready{background:#193e36;border-color:#32715f;color:#9bedc9}
.check-go{margin-left:auto;color:var(--blue);font-size:15px}
.backup-hero{border:1px solid color-mix(in srgb,var(--purple) 45%,var(--line));background:radial-gradient(circle at 90% 20%,color-mix(in srgb,var(--purple) 14%,transparent),transparent 45%),linear-gradient(120deg,var(--soft),var(--paper));border-radius:20px;padding:23px 27px;margin:8px 0 22px;display:flex;gap:19px;align-items:center}
.backup-hero-icon{width:62px;height:62px;flex:0 0 62px;display:grid;place-items:center;background:linear-gradient(145deg,#5fa4fa,#a482ff);border-radius:18px;font-size:38px;color:white;box-shadow:0 10px 23px #516cdb36}
.backup-hero h3{font-size:22px;letter-spacing:-.03em;color:var(--ink);margin:0 0 7px}.backup-hero p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.backup-detail{border-bottom:1px solid var(--line);display:flex;gap:10px;justify-content:space-between;align-items:baseline;padding:12px 0;font-size:11px}.backup-detail span{color:var(--muted)}.backup-detail b{color:var(--ink);text-align:right;max-width:65%;overflow-wrap:anywhere}
.backup-main-action{width:100%;margin:18px 0 7px;justify-content:center;min-height:44px}
.backup-warning{font-size:12px;color:#7c5a13;background:#fff6df;border:1px solid #f2dca6;border-radius:12px;padding:12px 14px;line-height:1.65;margin:13px 0 0}
html[data-theme="dark"] .backup-warning{color:#f1d89b;background:#352d1d;border-color:#6c5631}
#backup-file{display:block;width:100%;padding:12px;font-size:12px}
#backup-file::file-selector-button{border:1px solid var(--line);color:var(--ink);background:var(--soft);border-radius:9px;padding:8px 11px;margin-right:9px;cursor:pointer}
@media(max-width:1100px){.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.checklist-grid{grid-template-columns:1fr}.backup-hero{padding:18px;gap:13px}.backup-hero-icon{width:52px;height:52px;flex-basis:52px;font-size:30px}}
@media(max-width:470px){.preset-grid{gap:7px}.preset-card{padding:7px}.preset-art{height:55px}.preset-art-star{font-size:19px}.preset-card strong{font-size:10px}.preset-card small{font-size:9px}.backup-hero h3{font-size:18px}.backup-hero-icon{display:none}}
@media(prefers-reduced-motion:reduce){.preset-card,.readiness-track>span{transition:none}}

/* Nebyula V3 — trigger composer, native Discord preview and rule discovery */
.studio-badge{vertical-align:middle;font-size:10px;margin-left:7px;background:linear-gradient(110deg,#e4f1ff,#e5e5ff);color:#365cbd}
.studio-summary{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 18px}
.studio-summary span{font-size:11px;font-weight:750;padding:9px 12px;border-radius:12px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
.sim-result{border-radius:12px;padding:11px 13px;margin:14px 0;font-size:12px;line-height:1.6;font-weight:750}
.sim-yes{background:#e8fbf3;color:#137d5e;border:1px solid #b9edda}
.sim-no{background:var(--soft);color:var(--muted);border:1px solid var(--line)}
.reply-preview{background:#1c1d22;border:1px solid #41424a;border-radius:18px;color:#e5e8f0;padding:22px 17px;min-height:170px;overflow-wrap:anywhere}
.reply-preview-chat{display:flex;align-items:start;gap:11px;margin:0 0 18px}
.reply-preview-chat:last-child{margin-bottom:0}
.chat-pic{width:36px;height:36px;border-radius:50%;object-fit:cover;background:linear-gradient(130deg,#1a80de,#a069ea);color:white;display:grid;place-items:center;flex:0 0 36px;font-size:17px;font-weight:900}
.reply-preview-chat>div{min-width:0;flex:1;font-size:12px}
.reply-preview-chat b{font-size:12px;color:#f4f6ff}
.reply-preview-chat p{margin:5px 0;color:#d9dbe2;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
.chat-identity{display:flex;align-items:center;gap:8px}.chat-identity span{font-size:9px;font-weight:850;padding:2px 5px;border-radius:4px;background:#5865f2;color:white}
.reply-target{border-left:3px solid #5865f2;color:#9fa9bf;padding:5px 10px;margin:7px 0 9px;font-size:11px}
.sim-embed{white-space:pre-wrap;line-height:1.7;border-left:4px solid #5e8ffd;border-radius:4px 9px 9px 4px;padding:13px;background:#282b33;min-height:56px;font-size:12px}
.sim-plain{white-space:pre-wrap;font-size:12px;line-height:1.7;color:#eceef4}
.sim-silent{color:#9ca8bc;font-size:12px;line-height:1.6;padding:15px;border:1px dashed #4a4e5c;border-radius:12px}
.rule-dot{display:inline-block;width:8px;height:8px;background:#1bb77f;border-radius:99px;margin-right:9px;box-shadow:0 0 0 3px #1bb77f20}
.rule-dot.is-paused{background:#adb2c4;box-shadow:none}
.rule-card[hidden],#rule-empty-search[hidden]{display:none!important}
#rule-search{margin-bottom:16px}
html[data-theme="dark"] .studio-badge{background:#253660;color:#b2ccff}
html[data-theme="dark"] .sim-yes{background:#173d38;color:#a3f1d2;border-color:#286b58}
html[data-theme="dark"] .sim-no{background:#182841;color:#b5c4dd;border-color:#354960}
@media(max-width:600px){.studio-summary{gap:5px}.studio-summary span{font-size:10px;padding:7px 9px}.reply-preview{padding:14px}}


/* Nebyula V4 — Invite Intelligence milestone designer. Contrasted in both themes. */
.milestone-ladder{display:grid;gap:10px;margin-top:11px}
.milestone-ladder-row{display:flex;gap:13px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.milestone-ladder-row strong{font-size:12px;font-weight:820;color:var(--ink)}
.milestone-ladder-row p{font-size:11px;color:var(--muted);margin:3px 0 0}
.milestone-ladder-row>span:last-child{margin-left:auto;color:var(--purple)}
.milestone-step{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#5b8eff,#9268f8);color:#fff;font-size:12px;font-weight:900;flex:none;box-shadow:0 7px 16px #6c78ec30}
.milestone-preview{position:relative;isolation:isolate;overflow:hidden;min-height:315px;background:linear-gradient(145deg,#f5f7ff,#edf0ff 56%,#fdfaff);color:#283564;border:1px solid #d6ddfa;border-radius:19px;padding:26px;box-shadow:inset 0 1px rgba(255,255,255,.9)}
.milestone-preview:before{content:'';position:absolute;z-index:-1;width:330px;height:330px;right:-180px;top:-180px;border-radius:50%;background:radial-gradient(circle,#8d71fa55,transparent 70%)}
.milestone-orbit{position:absolute;top:25px;right:27px;display:grid;place-items:center;width:58px;height:58px;border-radius:17px;color:#fff;font-size:29px;background:linear-gradient(125deg,#5d9aff,#9c69f8);box-shadow:0 13px 35px #7b70e85e}
.milestone-kicker{font-size:10px;font-weight:850;letter-spacing:.13em;text-transform:uppercase;color:#6558bc;margin-bottom:15px;padding-right:65px}
.milestone-preview h3{font-size:19px;letter-spacing:-.03em;max-width:75%;margin:0 0 15px;color:#232d5a}
.milestone-preview>p{max-width:440px;font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:23px}
.milestone-preview-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.milestone-preview-stats>div{background:#ffffffb8;border:1px solid #d7dcf2;border-radius:12px;padding:12px}
.milestone-preview-stats span{display:block;color:#6b7698;font-size:9px;font-weight:800;letter-spacing:.07em;margin-bottom:6px}
.milestone-preview-stats strong{font-size:13px;color:#304281;overflow-wrap:anywhere}
.milestone-preview-footer{margin-top:17px;padding-top:13px;border-top:1px solid #cbd4ef;font-size:10px;color:#627096}
html[data-theme="dark"] .milestone-preview{background:linear-gradient(140deg,#171f39,#1d2549 63%,#272247);border-color:#414d7a;color:#d3defc;box-shadow:inset 0 1px #ffffff10}
html[data-theme="dark"] .milestone-preview:before{background:radial-gradient(circle,#8763fe44,transparent 70%)}
html[data-theme="dark"] .milestone-kicker{color:#c0a8ff}
html[data-theme="dark"] .milestone-preview h3{color:#f6f6ff}
html[data-theme="dark"] .milestone-preview-stats>div{background:#ffffff0a;border-color:#ffffff24}
html[data-theme="dark"] .milestone-preview-stats span{color:#b4c0e1}
html[data-theme="dark"] .milestone-preview-stats strong{color:#f4f1ff}
html[data-theme="dark"] .milestone-preview-footer{border-top-color:#ffffff21;color:#aebadc}
#milestones-form textarea{min-height:110px}
@media(max-width:650px){.milestone-preview{padding:18px;min-height:auto}.milestone-preview h3{max-width:100%;padding-right:55px}.milestone-orbit{width:46px;height:46px;font-size:22px;right:16px;top:18px}.milestone-preview-stats{grid-template-columns:1fr}.milestone-preview-stats>div{padding:11px}}


/* Nebyula V5 — Premium Message Layout Studio; light and dark tokens inherited. */
.studio-visibility{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0 15px;padding:11px;background:var(--soft);border:1px solid var(--line);border-radius:13px}
.studio-visibility .toggle{margin:0;flex:1 1 135px;min-width:0}
.studio-preview-image{display:block;max-width:100%;max-height:220px;object-fit:cover;border-radius:9px;margin:13px 0 8px;border:1px solid #ffffff20}
.studio-preview-layout-classic .preview-label{color:#9bb9d9}
.studio-preview-layout-minimal .preview-main h3{font-size:15px}
.studio-preview-layout-minimal .preview-main p{line-height:1.55}
html[data-theme='dark'] .studio-visibility{background:var(--soft);border-color:var(--line)}
@media(max-width:540px){.studio-visibility{gap:5px;padding:10px}.studio-visibility .toggle{flex-basis:100%}}

/* V6 Activity Center: private, responsive, same quality in light and dark. */
.activity-summary{margin-top:20px}
.activity-chart{display:flex;justify-content:space-between;align-items:end;gap:12px;min-height:176px;border-bottom:1px solid var(--line);padding:14px 8px 0}
.activity-day{display:flex;flex:1;min-width:0;max-width:80px;height:160px;flex-direction:column;align-items:center;gap:9px;font-size:11px;font-weight:750;color:var(--muted)}
.activity-bar-track{display:flex;align-items:end;flex:1;width:100%;justify-content:center;min-height:20px}
.activity-bar-stack{display:flex;flex-direction:column;overflow:hidden;width:min(42px,80%);min-height:0;border-radius:9px 9px 2px 2px;background:transparent}
.activity-bar-sent{background:linear-gradient(180deg,#13cdda,#3186ec);min-height:0}
.activity-bar-failed{background:linear-gradient(180deg,#ff93a2,#e66086);min-height:0}
.activity-legend{display:flex;gap:20px;align-items:center;margin-top:22px;color:var(--muted);font-size:12px;font-weight:650}
.activity-legend span{display:flex;align-items:center;gap:7px}
.activity-legend-dot{width:11px;height:11px;border-radius:4px;display:inline-block}
.activity-legend-dot.delivered{background:#269fed}.activity-legend-dot.failed{background:#ed718c}
.activity-health{display:flex;align-items:center;gap:14px;padding:16px;border-radius:15px;background:color-mix(in srgb,#28ba9e 9%,var(--paper));border:1px solid color-mix(in srgb,#28ba9e 28%,var(--line))}
.activity-health.needs-attention{background:color-mix(in srgb,#e77b88 11%,var(--paper));border-color:color-mix(in srgb,#e77b88 27%,var(--line))}
.activity-health-symbol{width:38px;height:38px;flex:none;border-radius:13px;display:grid;place-items:center;color:#0f9d7e;background:color-mix(in srgb,#27c6aa 15%,var(--paper));font-weight:900}
.activity-health.needs-attention .activity-health-symbol{color:#d24f69;background:color-mix(in srgb,#ed7790 18%,var(--paper))}
.activity-health strong{font-size:13px;display:block}.activity-health p,.activity-tips p{margin-top:5px;font-size:12px;line-height:1.65;color:var(--muted)}
.activity-tips{padding:18px 1px;font-size:12px;line-height:1.55}.activity-tips strong{font-size:13px}
.activity-feed{margin-top:22px}
.activity-filters{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.activity-tabs{display:inline-flex;padding:4px;gap:3px;border-radius:12px;background:var(--soft);border:1px solid var(--line)}
.activity-tabs button{background:transparent;border:0;color:var(--muted);border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800}
.activity-tabs button.is-active{background:var(--paper);color:var(--blue);box-shadow:0 3px 10px #3478f61c}
.activity-kind-label{margin:0;min-width:188px;color:var(--muted);font-size:11px}.activity-kind-label select{margin-top:4px;font-size:12px}
.activity-list{list-style:none;padding:0;margin:0;display:grid;gap:3px}
.activity-entry{padding:15px 3px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.activity-entry:last-child{border-bottom:0}
.activity-glyph{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--soft);flex-shrink:0;font-size:18px}
.activity-entry-main{min-width:0;flex:1}.activity-entry-main strong{font-size:13px;font-weight:850}.activity-entry-main p{font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.activity-entry-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}.activity-entry-side time{font-size:10px;color:var(--muted)}
.activity-status{border-radius:50px;padding:6px 9px;font-size:10px;font-weight:850}.activity-status.ok{background:color-mix(in srgb,#31cda6 15%,var(--paper));color:#169578}.activity-status.bad{background:color-mix(in srgb,#f07592 16%,var(--paper));color:#d25675}
.activity-preview{font-size:10px;font-weight:750;color:var(--blue);background:var(--soft);padding:3px 6px;border-radius:6px;margin-left:6px}
.activity-empty{text-align:center;padding:38px 15px;color:var(--muted);background:var(--soft);border-radius:14px}.activity-empty span{font-size:32px;color:var(--blue)}.activity-empty h3{color:var(--ink);margin:7px 0}.activity-empty p{font-size:12px}
html[data-theme="dark"] .activity-tabs button.is-active{box-shadow:0 3px 12px #0003}
html[data-theme="dark"] .activity-status.ok{color:#83ebc9}html[data-theme="dark"] .activity-status.bad{color:#ffadb9}
@media(max-width:900px){.activity-summary{grid-template-columns:1fr}.activity-filters{align-items:stretch}.activity-kind-label{flex:1;max-width:none}}
@media(max-width:580px){.activity-entry{align-items:flex-start;gap:9px}.activity-entry-side{min-width:94px}.activity-entry-main p{font-size:11px}.activity-tabs{width:100%;justify-content:space-around}.activity-tabs button{flex:1;padding:9px 7px}.activity-chart{gap:6px}.activity-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.activity-overview-shortcut{width:100%;margin-top:16px;display:flex;align-items:center;gap:13px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:17px;padding:17px 20px;text-align:left;box-shadow:var(--shadow)}
.activity-overview-shortcut:hover{border-color:var(--blue)}
.activity-overview-shortcut strong{display:block;font-size:13px}.activity-overview-shortcut small{display:block;margin-top:5px;color:var(--muted);line-height:1.45}
.activity-overview-icon{font-size:22px;color:var(--blue);height:43px;width:43px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:var(--soft)}
.activity-overview-arrow{margin-left:auto;color:var(--blue);font-size:19px}

/* V7 Delivery Lab — status clarity with equal light/dark legibility. */
.delivery-hero{display:flex;gap:17px;align-items:center;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));border-radius:18px;
  background:linear-gradient(115deg,color-mix(in srgb,var(--blue) 9%,var(--paper)),var(--paper));padding:22px 25px;margin:12px 0 21px}
.delivery-hero-mark{font-size:31px;border-radius:16px;display:grid;place-items:center;flex:none;width:58px;height:58px;color:#fff;
  background:linear-gradient(137deg,#3487f9,#8d6bfd);box-shadow:0 11px 24px #4874f335}
.delivery-hero strong{font-size:18px;color:var(--ink)}.delivery-hero p{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.65}
.delivery-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:19px 0 21px}
.delivery-stats>div{display:grid;grid-template-columns:33px 1fr;align-items:center;gap:3px 10px;border:1px solid var(--line);
  background:var(--paper);border-radius:15px;padding:15px 17px;box-shadow:var(--shadow)}
.delivery-stats span{grid-row:span 2;font-size:23px;color:var(--blue)}
.delivery-stats strong{font-size:27px;color:var(--ink);line-height:1.2}
.delivery-stats small{font-size:11px;font-weight:650;color:var(--muted)}
.delivery-list{display:grid;gap:11px}
.delivery-card{display:flex;align-items:center;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:15px 19px;
  box-shadow:var(--shadow);min-width:0}
.delivery-card.ready{border-left:4px solid #2bb995}.delivery-card.issue{border-left:4px solid #e77284}.delivery-card.paused{border-left:4px solid #a6b1c2}
.delivery-card-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;background:var(--soft);border-radius:13px;font-size:23px}
.delivery-card-body{flex:1;min-width:0}.delivery-card-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.delivery-card-title h3{font-size:13px;margin:0;color:var(--ink)}.delivery-channel{font-size:12px;font-weight:750;color:var(--blue);margin:7px 0 0;overflow-wrap:anywhere}
.delivery-hint{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 0 0}.delivery-missing{font-size:11px;color:#cf536b;margin:7px 0 0;font-weight:750}
.delivery-status{font-size:10px;padding:5px 8px;border-radius:99px;font-weight:850;white-space:nowrap}
.delivery-status.ready{background:#dbf8ed;color:#126f57}.delivery-status.paused{background:var(--soft);color:var(--muted)}
.delivery-status.issue{background:#ffebf0;color:#b34460}
.delivery-test{flex:none;white-space:nowrap}.delivery-test:disabled{opacity:.45;cursor:not-allowed}
.delivery-loading{text-align:center;padding:37px 20px}.delivery-loading p{font-size:12px;color:var(--muted);margin:9px 0 18px}
.delivery-footer{margin:18px 1px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;line-height:1.5}
.delivery-actions{display:flex;justify-content:flex-end;margin:17px 0 3px}
html[data-theme="dark"] .delivery-status.ready{background:#173c34;color:#84e8c0}
html[data-theme="dark"] .delivery-status.issue{background:#452632;color:#ffafc0}
html[data-theme="dark"] .delivery-missing{color:#ff9cb0}
@media(max-width:800px){.delivery-stats{gap:9px}.delivery-stats>div{padding:12px}.delivery-card{padding:13px 14px}}
@media(max-width:580px){.delivery-hero{padding:15px;align-items:flex-start}.delivery-hero-mark{width:44px;height:44px;font-size:25px}
  .delivery-hero strong{font-size:15px}.delivery-stats{grid-template-columns:1fr 1fr 1fr;gap:5px}.delivery-stats>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:10px}
  .delivery-stats small{font-size:9px}.delivery-stats strong{font-size:21px}.delivery-stats span{font-size:20px}
  .delivery-card{flex-wrap:wrap;gap:10px}.delivery-card-icon{width:36px;height:36px;font-size:19px}
  .delivery-card-body{flex-basis:calc(100% - 50px)}.delivery-test{margin-left:46px}}

/* V8 Nebyula Health Center — full theme support, responsive layout. */
.health-header-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.health-loading{text-align:center;padding:52px 18px}.health-loading>span{font-size:45px;color:var(--blue)}
.health-loading h3{margin:9px 0 6px;font-size:20px}.health-loading p{color:var(--muted);font-size:13px;margin-bottom:17px}
.health-hero{display:flex;align-items:center;gap:20px;padding:24px 27px;border-radius:21px;
  border:1px solid color-mix(in srgb,#27c596 36%,var(--line));background:linear-gradient(125deg,color-mix(in srgb,#2abd9c 11%,var(--paper)),var(--paper));box-shadow:var(--shadow);margin:5px 0 18px}
.health-hero.review{border-color:color-mix(in srgb,#e4a950 45%,var(--line));background:linear-gradient(125deg,color-mix(in srgb,#e4a950 12%,var(--paper)),var(--paper))}
.health-hero.attention{border-color:color-mix(in srgb,#e56383 45%,var(--line));background:linear-gradient(125deg,color-mix(in srgb,#e56383 12%,var(--paper)),var(--paper))}
.health-hero-icon{width:60px;height:60px;border-radius:18px;background:linear-gradient(135deg,#11bc9d,#348be9);display:grid;place-items:center;color:#fff;font-size:31px;font-weight:900;flex:none;box-shadow:0 9px 20px #13b5a02e}
.health-hero.review .health-hero-icon{background:linear-gradient(135deg,#db9a38,#d6b94d)}
.health-hero.attention .health-hero-icon{background:linear-gradient(135deg,#e05d78,#b8549f)}
.health-hero h3{font-size:22px;color:var(--ink);margin:4px 0}.health-hero p{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.health-kicker{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.12em}
.health-checked{margin-left:auto;align-self:flex-start;font-size:11px;color:var(--muted);white-space:nowrap}
.health-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:17px 0}
.health-stat{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);background:var(--paper);display:grid;gap:7px;padding:17px 18px;min-width:0}
.health-stat>span{font-size:20px;color:var(--blue)}.health-stat small{color:var(--muted);font-size:11px;font-weight:700}
.health-stat strong{font-size:23px;color:var(--ink);overflow-wrap:anywhere}
.health-main-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:18px}
.health-panel{padding:22px;min-width:0}.health-panel .panel-title{margin:0 0 17px}
.health-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}
.health-counts>span{background:var(--soft);padding:11px;border:1px solid var(--line);border-radius:12px;font-size:11px;color:var(--muted)}
.health-counts strong{display:block;font-size:20px;color:var(--ink);margin-bottom:4px}
.health-module-list>div,.health-runtime-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--ink)}
.health-module-list>div span:first-child{text-transform:capitalize;font-weight:750}
.health-mini-status{padding:5px 8px;border-radius:30px;white-space:nowrap;font-size:10px;font-weight:850;color:var(--muted);background:var(--soft);text-transform:capitalize}
.health-mini-status.healthy{background:color-mix(in srgb,#28c69c 14%,var(--paper));color:#169a79}
.health-mini-status.attention{background:color-mix(in srgb,#e7718b 16%,var(--paper));color:#c84769}
.health-runtime-row strong{color:var(--ink);font-size:11px;max-width:55%;text-align:right;overflow-wrap:anywhere}
.health-link{margin-top:15px}.health-footnote,.health-disclaimer{margin:15px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.health-problems{display:grid;gap:9px}.health-problem{display:flex;gap:12px;border:1px solid var(--line);border-left:4px solid #e6a44c;background:var(--soft);border-radius:13px;padding:13px 16px}
.health-problem.critical{border-left-color:#ed718a}.health-problem-mark{display:grid;place-items:center;flex:none;height:30px;width:30px;font-weight:850;color:#b98b2d;background:color-mix(in srgb,#dfa94b 16%,var(--paper));border-radius:10px}
.health-problem.critical .health-problem-mark{color:#c2526c;background:color-mix(in srgb,#e67892 17%,var(--paper))}
.health-problem strong{font-size:12px;color:var(--ink)}.health-problem p{font-size:12px;color:var(--ink);margin:5px 0}.health-problem small{font-size:11px;color:var(--muted);line-height:1.6}
.health-clear{text-align:center;padding:30px 12px}.health-clear>span{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:17px;background:color-mix(in srgb,#21c39c 15%,var(--paper));color:#129879;font-size:30px}
.health-clear strong{display:block;color:var(--ink);margin-top:11px}.health-clear p{font-size:12px;color:var(--muted);margin-top:7px}
html[data-theme='dark'] .health-mini-status.healthy{color:#81eaca}html[data-theme='dark'] .health-mini-status.attention{color:#ffb1c1}
html[data-theme='dark'] .health-problem-mark{color:#ffcf74}html[data-theme='dark'] .health-problem.critical .health-problem-mark{color:#ffb0bc}
@media(max-width:980px){.health-main-grid{grid-template-columns:1fr}.health-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.health-header-actions{width:100%}.health-header-actions button{flex:1}.health-hero{padding:15px;gap:11px;align-items:flex-start;flex-wrap:wrap}.health-hero-icon{width:43px;height:43px;border-radius:13px;font-size:24px}.health-hero h3{font-size:18px}.health-checked{width:100%;margin-left:54px}.health-stats{gap:7px}.health-stat{padding:13px}.health-stat strong{font-size:20px}.health-panel{padding:15px}}

/* Final edition: server-scoped admin history (theme-aware and responsive). */
.audit-panel{padding:24px;margin-top:12px;min-width:0}
.audit-list{list-style:none;display:grid;gap:0;padding:0;margin:0}
.audit-row{display:flex;align-items:center;gap:14px;padding:15px 2px;border-bottom:1px solid var(--line);min-width:0}
.audit-row:last-child{border-bottom:0}
.audit-glyph{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--soft);color:var(--blue);font-size:20px}
.audit-detail{flex:1;min-width:0;display:grid;gap:5px}
.audit-detail strong{font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.audit-detail small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.audit-row time{font-size:11px;color:var(--muted);flex:none;text-align:right;max-width:145px}
.audit-empty{text-align:center;padding:55px 15px;color:var(--muted)}
.audit-empty>span{font-size:33px;color:var(--blue)}
.audit-empty h3{color:var(--ink);font-size:16px;margin:12px 0 4px}
.audit-empty p{font-size:12px;line-height:1.6}
@media(max-width:630px){.audit-panel{padding:16px}.audit-row{gap:8px;flex-wrap:wrap}.audit-glyph{height:32px;width:32px}.audit-row time{width:100%;max-width:none;margin-left:40px;text-align:left}}

/* Public landing: deliberately matches both Nebyula Studio themes. */
.public-site{min-height:100vh;background:var(--bg);color:var(--ink);font-family:inherit;display:flex;flex-direction:column}
.public-nav{max-width:1200px;width:100%;margin:0 auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.public-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:19px;font-weight:950;letter-spacing:-.5px}
.public-brand img{width:46px;height:46px;object-fit:cover;border-radius:50%;box-shadow:0 6px 25px #3484e522}
.public-brand b{color:var(--blue)}.public-nav-right{display:flex;align-items:center;gap:14px}
.public-hero{width:100%;max-width:1200px;margin:35px auto 50px;padding:0 28px;display:grid;grid-template-columns:1.1fr .9fr;gap:65px;align-items:center}
.public-eyebrow{display:inline-flex;color:var(--blue);background:var(--soft);border:1px solid var(--line);padding:10px 15px;border-radius:100px;font-size:11px;font-weight:950;letter-spacing:1.5px}
.public-copy h1{font-size:clamp(38px,5vw,69px);letter-spacing:-2.7px;line-height:1.04;margin:25px 0 18px;max-width:650px;font-weight:950}
.public-copy h1 em{font-style:normal;background:linear-gradient(110deg,#3488fa,#aa64f6);background-clip:text;color:transparent}
.public-copy>p{font-size:16px;line-height:1.85;color:var(--muted);max-width:530px}
.public-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:27px 0 13px}
.public-cta{display:inline-flex;justify-content:center;align-items:center;min-height:46px;font-size:13px!important;padding:12px 22px!important;text-decoration:none}
.public-trust{font-size:11px;color:var(--muted);line-height:2;margin-top:16px}
.public-visual{position:relative;min-height:360px;display:flex;align-items:center;justify-content:center}
.public-glow{position:absolute;inset:10%;border-radius:50%;background:radial-gradient(circle,#2fa8ff57,#a96fff2b 47%,transparent 73%);filter:blur(28px)}
.public-demo{position:relative;z-index:1;width:min(100%,440px);background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:19px;box-shadow:0 24px 90px #3363a42b;transform:rotate(-2deg)}
.public-demo-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:1px;font-weight:900;margin-bottom:15px}
.public-demo-top span{color:#18b49c;font-size:9px}
.public-demo-content{border-left:4px solid #518ff5;background:var(--soft);border-radius:12px;padding:25px 20px 22px;min-height:205px}
.public-demo-star{font-size:35px;color:#6291ec;margin-bottom:13px}.public-demo-content>b{font-size:22px;letter-spacing:-.5px;color:var(--ink)}
.public-demo-content p{font-size:12px;line-height:1.7;color:var(--muted);margin:13px 0 23px}
.public-demo-actions{display:flex;gap:8px;flex-wrap:wrap}.public-demo-actions span{font-weight:850;font-size:11px;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--paper);color:var(--blue)}
.public-demo-foot{font-size:10px;color:var(--muted);margin:17px 3px 0}
.public-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;max-width:1200px;width:100%;margin:0 auto;padding:0 28px 55px}
.public-features article{min-width:0;border:1px solid var(--line);background:var(--paper);border-radius:19px;padding:24px;box-shadow:var(--shadow)}
.public-features article span{display:block;font-size:24px;margin-bottom:15px}.public-features b{font-size:14px;color:var(--ink)}
.public-features p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:7px}
.public-footer{max-width:1200px;width:100%;margin:auto auto 0;padding:24px 28px 32px;border-top:1px solid var(--line);display:flex;gap:15px;justify-content:space-between;color:var(--muted);font-size:11px}
.public-footer nav{display:flex;gap:23px}.public-footer a{color:var(--muted);text-decoration:none}.public-footer a:hover{color:var(--blue)}
html[data-theme='dark'] .public-demo{box-shadow:0 24px 90px #0008}
@media(max-width:900px){.public-hero{grid-template-columns:1fr;gap:10px}.public-visual{min-height:320px}.public-features{grid-template-columns:repeat(2,1fr)}}
@media(max-width:580px){.public-nav{padding:16px 18px}.public-brand{font-size:16px}.public-brand img{height:39px;width:39px}.public-nav-right{gap:8px}.public-nav-right .theme-caption{display:none}.public-hero{margin:20px auto 35px;padding:0 18px}.public-copy h1{letter-spacing:-1.2px}.public-actions{gap:10px}.public-cta{width:100%}.public-features{grid-template-columns:1fr;padding:0 18px 34px}.public-visual{min-height:300px}.public-demo{transform:none}.public-footer{flex-direction:column;padding:20px 18px}}

.data-danger{margin-top:22px;border:1px solid color-mix(in srgb,#df6d89 50%,var(--line));background:color-mix(in srgb,#da6686 5%,var(--paper))}
.data-danger .notes{line-height:1.75;margin:14px 0}.data-danger .btn-danger{margin-top:8px}
