:root {
  --bg: #050b16; --panel: #091427; --panel2: #0c1930; --line: rgba(112, 138, 190, .2);
  --fg: #f4f6ff; --muted: #8e9bb6; --purple: #8b2df2; --purple2: #4d18cd;
  --blue: #1885ff; --green: #16c784; --orange: #ff8a1e; --danger: #ef5671;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(circle at 70% 0, #13124a 0, transparent 35%), var(--bg); color: var(--fg); font-family: "IBM Plex Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button:disabled { cursor: wait !important; opacity: .55; }
[hidden] { display: none !important; }
.adm-boot, .adm-denied { margin: 12vh auto; max-width: 34rem; padding: 2rem; text-align: center; color: var(--muted); }
.adm-denied { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.adm-denied span { font-size: 2rem; }
.adm-denied h1 { color: var(--fg); font: 800 1.7rem Manrope, sans-serif; }
.adm-denied a { display: inline-block; margin-top: .7rem; padding: .65rem .9rem; border-radius: 8px; background: var(--purple); color: #fff; text-decoration: none; }
.adm-shell { min-height: 100dvh; display: grid; grid-template-columns: 215px minmax(0, 1fr); }
.adm-rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 1rem .75rem; border-right: 1px solid var(--line); background: rgba(4, 11, 24, .97); }
.adm-brand { display: block; padding: .3rem .7rem 1.2rem; color: inherit; text-decoration: none; }
.adm-brand strong { display: block; font: 800 1.55rem Manrope, sans-serif; letter-spacing: -.09em; color: #2387ff; }
.adm-brand strong span { color: #a22ff4; }
.adm-brand small { color: var(--muted); font-size: .55rem; }
.adm-rail nav { display: grid; gap: .18rem; }
.adm-rail nav a { display: flex; gap: .65rem; align-items: center; padding: .62rem .72rem; border-radius: 8px; color: var(--muted); font-size: .75rem; text-decoration: none; }
.adm-rail nav a:hover, .adm-rail nav a:focus-visible, .adm-rail nav a.on { color: #fff; background: linear-gradient(100deg, var(--purple), var(--purple2)); outline: none; }
.adm-rail-card { margin-top: auto; padding: .8rem; border: 1px solid rgba(149, 51, 246, .4); border-radius: 10px; background: linear-gradient(135deg, rgba(117, 31, 229, .24), rgba(17, 13, 56, .8)); }
.adm-rail-card b { font: 700 .72rem Manrope, sans-serif; }
.adm-rail-card p { margin: .35rem 0 0; color: #a9a2bc; font-size: .59rem; line-height: 1.45; }
.adm-version { padding: .75rem .7rem 0; color: var(--muted); font-size: .52rem; }
.adm-main { min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 5; min-height: 60px; display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); background: rgba(5, 12, 27, .9); backdrop-filter: blur(12px); }
.adm-top > label { display: flex; align-items: center; gap: .5rem; width: min(500px, 52vw); padding: .48rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.adm-top input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: .72rem; }
.adm-top kbd { color: var(--muted); font-size: .55rem; white-space: nowrap; }
.adm-top > a { margin-left: auto; color: #cbb4f7; font-size: .67rem; text-decoration: none; }
.adm-user { display: flex; align-items: center; gap: .45rem; }
.adm-user i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); font: normal 800 .72rem Manrope, sans-serif; }
.adm-user span { display: grid; }
.adm-user b { font-size: .67rem; }
.adm-user small { color: var(--muted); font-size: .55rem; }
.adm-top button, .adm-actions button { border: 1px solid var(--line); border-radius: 7px; padding: .45rem .65rem; background: transparent; color: var(--fg); cursor: pointer; font-size: .62rem; }
.adm-content { padding: .85rem 1rem 1.5rem; }
.adm-breadcrumb { margin-bottom: .65rem; color: var(--muted); font-size: .58rem; }
.adm-breadcrumb span { padding: 0 .35rem; }
.adm-hero { min-height: 145px; display: flex; justify-content: space-between; overflow: hidden; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(circle at 75% 50%, rgba(181, 66, 255, .35), transparent 25%), linear-gradient(110deg, #091435, #24116c 58%, #461491); }
.adm-hero p { margin: 0 0 .35rem; color: #c3a6ff; font-size: .55rem; letter-spacing: .08em; font-weight: 800; }
.adm-hero h1 { margin: 0 0 .45rem; font: 800 clamp(1.45rem, 3vw, 2.1rem) Manrope, sans-serif; letter-spacing: -.04em; }
.adm-hero span { color: #c3cae0; font-size: .73rem; }
.adm-hero-art { display: flex; align-items: end; gap: 7px; padding: .6rem 2.5rem 0; transform: skewY(-5deg); }
.adm-hero-art i { display: block; width: 34px; border: 1px solid rgba(185, 94, 255, .45); background: linear-gradient(#2d1773, #070d23); box-shadow: 0 0 24px rgba(143, 45, 242, .35); }
.adm-hero-art i:nth-child(1) { height: 62px; } .adm-hero-art i:nth-child(2) { height: 92px; } .adm-hero-art i:nth-child(3) { height: 74px; }
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: .75rem 0; }
.adm-kpis a { display: flex; align-items: center; gap: .7rem; min-height: 77px; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.adm-kpis a:hover, .adm-kpis a:focus-visible { border-color: var(--purple); outline: none; transform: translateY(-1px); }
.adm-kpis a > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-style: normal; }
.adm-kpis .blue { background: var(--blue); } .adm-kpis .purple { background: var(--purple); } .adm-kpis .green { background: var(--green); } .adm-kpis .orange { background: var(--orange); }
.adm-kpis span { display: grid; min-width: 0; }
.adm-kpis b { font: 800 1.25rem Manrope, sans-serif; }
.adm-kpis small { color: var(--muted); font-size: .57rem; }
.adm-search-empty { margin: 0 0 .75rem; padding: .7rem .8rem; border: 1px solid rgba(255, 138, 30, .35); border-radius: 8px; color: var(--orange); background: rgba(255, 138, 30, .08); font-size: .65rem; }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.adm-panel { min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); scroll-margin-top: 75px; }
.adm-panel-wide { grid-column: 1 / -1; }
.adm-panel > header { display: flex; justify-content: space-between; gap: .5rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.adm-panel h2 { margin: 0; font: 700 .78rem Manrope, sans-serif; }
.adm-panel header p { margin: .16rem 0 0; color: var(--muted); font-size: .55rem; }
.adm-tenant { align-self: center; padding: .25rem .5rem; border-radius: 999px; color: var(--green); background: rgba(22, 199, 132, .12); font-size: .55rem; }
.adm-header-actions { display: flex; align-items: center; gap: .6rem; }
.adm-header-actions > span { color: var(--purple); font: 800 .75rem Manrope, sans-serif; }
.adm-header-actions button, .adm-link { border: 1px solid var(--purple); border-radius: 7px; padding: .42rem .62rem; background: rgba(139, 45, 242, .12); color: #e4caff; cursor: pointer; font-size: .58rem; text-decoration: none; white-space: nowrap; }
.adm-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: .55rem; align-items: center; padding: .58rem 0; border-bottom: 1px solid var(--line); }
.adm-list article > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: rgba(139, 45, 242, .18); color: #c288ff; font-style: normal; font-size: .65rem; }
.adm-list article div { display: grid; min-width: 0; }
.adm-list b { font-size: .65rem; }
.adm-list small { overflow: hidden; color: var(--muted); font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.adm-list article > span { color: var(--green); font-size: .52rem; text-transform: capitalize; }
.adm-list article > span.off { color: var(--danger); }
.adm-edit { border: 1px solid var(--line); border-radius: 6px; padding: .32rem .5rem; background: transparent; color: #cbb4f7; cursor: pointer; font-size: .54rem; }
.adm-edit:hover, .adm-edit:focus-visible { border-color: var(--purple); outline: none; }
.adm-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; padding-top: .6rem; }
.adm-modules a, .adm-modules article { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: .1rem .4rem; padding: .5rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); color: inherit; text-decoration: none; }
.adm-module-edit { position: relative; }
.adm-modules-editor label { height: 100%; display: grid; grid-template-columns: 18px 25px 1fr; align-items: center; gap: .1rem .4rem; padding: .6rem 2.8rem .6rem .6rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); cursor: pointer; }
.adm-modules-editor label:has(input:checked) { border-color: rgba(139, 45, 242, .65); background: rgba(139, 45, 242, .08); }
.adm-modules-editor input { accent-color: var(--purple); }
.adm-modules-editor label i { grid-row: 1 / span 2; grid-column: 2; }
.adm-modules-editor label span { display: grid; gap: .12rem; min-width: 0; }
.adm-module-edit > a { position: absolute; top: 50%; right: .55rem; transform: translateY(-50%); color: #cbb4f7; font-size: .52rem; }
.adm-modules a:hover, .adm-modules a:focus-visible { border-color: var(--purple); outline: none; }
.adm-modules i { grid-row: 1 / span 2; color: #b669fa; font-style: normal; }
.adm-modules b { font-size: .57rem; overflow: hidden; text-overflow: ellipsis; }
.adm-modules small { color: var(--green); font-size: .48rem; }
.adm-state { display: flex; align-items: center; gap: .55rem; min-height: 70px; }
.adm-state > i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.adm-state > i.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 199, 132, .12); }
.adm-state > i.warn { background: var(--orange); }
.adm-state div { display: grid; } .adm-state b { font-size: .67rem; } .adm-state small { color: var(--muted); font-size: .53rem; }
.adm-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.adm-actions button:first-child { border-color: var(--purple); background: var(--purple); }
.adm-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .75rem; }
.adm-links a { color: #cbb4f7; font-size: .58rem; }
.adm-feedback, .adm-empty { color: var(--muted); font-size: .57rem; line-height: 1.5; }
.adm-feedback.ok { color: var(--green); } .adm-feedback.err { color: var(--danger); }
.adm-dialog { width: min(620px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid rgba(139, 45, 242, .55); border-radius: 14px; background: #091427; color: var(--fg); box-shadow: 0 22px 70px rgba(0, 0, 0, .55); }
.adm-dialog::backdrop { background: rgba(1, 5, 14, .75); backdrop-filter: blur(3px); }
.adm-dialog form { display: grid; gap: .85rem; padding: 1rem; }
.adm-dialog form > header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.adm-dialog header p { margin: 0 0 .2rem; color: #c288ff; font-size: .54rem; letter-spacing: .08em; font-weight: 700; }
.adm-dialog h2 { margin: 0; font: 800 1.15rem Manrope, sans-serif; }
.adm-dialog label { display: grid; gap: .3rem; color: #dbe1f3; font-size: .62rem; }
.adm-dialog label small { color: var(--muted); font-weight: 400; }
.adm-dialog input:not([type="checkbox"]), .adm-dialog select, .adm-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: .58rem .65rem; background: #071021; color: var(--fg); outline: none; }
.adm-dialog input:focus, .adm-dialog select:focus, .adm-dialog textarea:focus { border-color: var(--purple); }
.adm-dialog input[readonly] { opacity: .65; cursor: not-allowed; }
.adm-dialog fieldset { margin: 0; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; }
.adm-dialog legend { padding: 0 .25rem; color: var(--muted); font-size: .6rem; }
.adm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.adm-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; }
.adm-checks label, .adm-check { display: flex !important; align-items: center; gap: .4rem !important; }
.adm-checks input, .adm-check input { accent-color: var(--purple); }
.adm-dialog footer { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.adm-dialog button { border: 1px solid var(--line); border-radius: 7px; padding: .5rem .75rem; background: transparent; color: var(--fg); cursor: pointer; font-size: .62rem; }
.adm-dialog button.primary { border-color: var(--purple); background: var(--purple); }
.adm-dialog-close { padding: .1rem .45rem !important; border: 0 !important; font-size: 1.35rem !important; color: var(--muted) !important; }
.adm-form-error { min-height: 1em; margin: 0; color: var(--danger); font-size: .6rem; }
.adm-form-note { margin: 0; color: var(--muted); font-size: .57rem; line-height: 1.5; }
.adm-inline-form { display: grid; gap: .8rem; padding-top: .8rem; }
.adm-inline-form label { display: grid; gap: .3rem; color: #dbe1f3; font-size: .6rem; }
.adm-inline-form label small { color: var(--muted); }
.adm-inline-form input:not([type="checkbox"]), .adm-inline-form select, .adm-inline-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: .52rem .6rem; background: #071021; color: var(--fg); outline: none; }
.adm-inline-form input:focus, .adm-inline-form select:focus { border-color: var(--purple); }
.adm-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-form-actions { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 32px; }
.adm-form-actions p { margin: 0; }
.adm-form-actions button { border: 1px solid var(--purple); border-radius: 7px; padding: .5rem .75rem; background: var(--purple); color: #fff; cursor: pointer; font-size: .62rem; }
.adm-integrations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.adm-integrations fieldset, .adm-inline-form > fieldset { display: grid; align-content: start; gap: .55rem; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); }
.adm-integrations legend, .adm-inline-form > fieldset legend { padding: 0 .3rem; color: #d8bcff; font: 700 .62rem Manrope, sans-serif; }
.adm-test-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.adm-test { justify-self: start; border: 1px solid var(--line); border-radius: 6px; padding: .38rem .55rem; background: transparent; color: #cbb4f7; cursor: pointer; font-size: .55rem; }
.adm-test:hover, .adm-test:focus-visible { border-color: var(--purple); outline: none; }
.adm-check-prominent { padding: .7rem; border: 1px solid rgba(139, 45, 242, .45); border-radius: 8px; background: rgba(139, 45, 242, .08); font-weight: 700; }
.adm-permissions { display: grid; gap: .45rem; margin-top: .55rem; }
.adm-perm-module { padding: .55rem; border: 1px solid var(--line); border-radius: 7px; background: #071021; }
.adm-perm-module > label { display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.adm-perm-subs { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: .45rem 0 0 1.25rem; }
.adm-perm-subs label, .adm-perm-flags label { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .55rem; }
.adm-perm-flags { display: flex; flex-wrap: wrap; gap: .55rem; padding: .55rem; border: 1px dashed var(--line); border-radius: 7px; }
.adm-permissions input { accent-color: var(--purple); }
.adm-dialog details { border: 1px solid var(--line); border-radius: 8px; padding: .65rem; }
.adm-dialog summary { cursor: pointer; color: #d8bcff; font-size: .62rem; font-weight: 700; }
@media (max-width: 980px) { .adm-kpis { grid-template-columns: repeat(2, 1fr); } .adm-grid { grid-template-columns: 1fr; } }
@media (max-width: 1080px) { .adm-integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-rail { position: static; height: auto; }
  .adm-rail nav { display: flex; overflow-x: auto; }
  .adm-rail nav a { flex: 0 0 auto; }
  .adm-rail-card, .adm-version { display: none; }
  .adm-top { flex-wrap: wrap; }
  .adm-top > label { order: 2; width: 100%; }
  .adm-top > a { margin-left: 0; }
  .adm-hero-art { display: none; }
}
@media (max-width: 480px) { .adm-kpis, .adm-modules { grid-template-columns: 1fr; } .adm-user span { display: none; } }
@media (max-width: 560px) {
  .adm-form-grid, .adm-form-grid-3, .adm-checks, .adm-integrations { grid-template-columns: 1fr; }
  .adm-panel > header { align-items: flex-start; }
  .adm-header-actions { align-items: flex-end; flex-direction: column-reverse; }
  .adm-list article { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .adm-list article > span { display: none; }
}
