/* ==========================================================
   GvAW — admin / CMS panel
   Builds on style.css (theme variables, .btn, .pill, inputs).
   ========================================================== */
:root {
  --adm-side: 264px;
  --adm-top: 60px;
  --adm-surface: var(--navy-900);
  --adm-surface-2: var(--navy-800);
  --adm-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.18);
  --adm-danger: #d9534f;
  --adm-ok: #52b788;
  --adm-warn: #d9a35a;
}
:root[data-theme="light"] {
  --adm-shadow: 0 1px 2px rgba(10,24,48,.06), 0 6px 20px rgba(10,24,48,.07);
  --adm-danger: #b93a37;
  --adm-ok: #1c8a54;
}

.adm-body { background: var(--navy-950); }
.adm { display: grid; grid-template-columns: var(--adm-side) minmax(0, 1fr); min-height: 100vh; }

/* ---------- sidebar ---------- */
.adm-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--adm-surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1.1rem .9rem; z-index: 60;
}
.adm-brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .5rem 1.1rem; color: #fff; }
.adm-brand img { width: 38px; height: 38px; object-fit: contain; }
.adm-brand .t { font-weight: 800; letter-spacing: .4px; line-height: 1.1; color: var(--ink); }
.adm-brand .t small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.adm-nav { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.adm-group { font-size: .66rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue-300); opacity: .8; margin: 1.1rem .7rem .35rem; }
.adm-link {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px;
  color: var(--ink-dim); font-size: .88rem; font-weight: 600; transition: background .15s, color .15s;
}
.adm-link .ic { width: 1.4rem; text-align: center; font-size: 1rem; }
.adm-link:hover { background: rgba(127,168,207,.1); color: var(--ink); }
.adm-link.active { background: linear-gradient(90deg, var(--gold), var(--gold-light)); color: var(--navy-950); box-shadow: 0 4px 14px rgba(201,162,39,.25); }
:root[data-theme="light"] .adm-link.active { color: #fff; }
.adm-link .count { margin-left: auto; background: var(--adm-danger); color: #fff; font-size: .68rem; font-weight: 800; padding: .05rem .45rem; border-radius: 999px; }
.adm-user { display: flex; align-items: center; gap: .7rem; padding: .9rem .6rem .3rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.adm-user .cs { font-weight: 700; color: var(--ink); font-size: .88rem; line-height: 1.1; }
.adm-user .role { font-size: .68rem; color: var(--gold); letter-spacing: .6px; text-transform: uppercase; }
.adm-user .avatar { width: 38px; height: 38px; font-size: .78rem; flex-shrink: 0; }

/* ---------- top bar ---------- */
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  position: sticky; top: 0; z-index: 40; height: var(--adm-top); display: flex; align-items: center; gap: .8rem;
  padding: 0 1.6rem; background: color-mix(in srgb, var(--navy-950) 82%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.adm-burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 38px; height: 38px; font-size: 1.2rem; cursor: pointer; }
.adm-crumb { font-size: .85rem; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-crumb b { color: var(--ink); }
.adm-top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.adm-overlay { display: none; }

/* ---------- content ---------- */
.adm-content { padding: 1.8rem 1.6rem 3rem; width: 100%; max-width: 1320px; margin: 0 auto; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.adm-head .eyebrow { margin-bottom: .35rem; }
.adm-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.adm-head p { margin: .4rem 0 0; max-width: 720px; font-size: .92rem; }
.adm-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.adm-card { background: var(--adm-surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem; box-shadow: var(--adm-shadow); }
.adm-card + .adm-card { margin-top: 1.2rem; }
.adm-card > h3:first-child, .adm-card-title { margin: 0 0 1rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.adm-card-sub { font-size: .82rem; color: var(--ink-dim); margin: -.6rem 0 1rem; }
.adm-grid { display: grid; gap: 1.2rem; }
.adm-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-grid.side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.adm-mt { margin-top: 1.2rem; }

/* flash */
.adm-flash { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .9rem; border: 1px solid; }
.adm-flash.ok { background: rgba(82,183,136,.1); border-color: rgba(82,183,136,.4); color: var(--adm-ok); }
.adm-flash.err { background: rgba(217,83,79,.1); border-color: rgba(217,83,79,.4); color: var(--adm-danger); }
.adm-flash ul { margin: 0; padding-left: 1.1rem; }

/* stats */
.adm-stat { display: flex; align-items: center; gap: 1rem; background: var(--adm-surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--adm-shadow); }
.adm-stat .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(201,162,39,.14); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.adm-stat > div:last-child { min-width: 0; }
.adm-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1; overflow-wrap: anywhere; }
.adm-stat .label { font-size: .72rem; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-dim); margin-top: .3rem; }

/* shortcut tiles */
.adm-tile { display: block; background: var(--adm-surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; transition: transform .15s, border-color .15s; color: var(--ink); }
.adm-tile:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--ink); }
.adm-tile .ic { font-size: 1.5rem; }
.adm-tile h3 { margin: .5rem 0 .3rem; font-size: 1rem; }
.adm-tile p { margin: 0; font-size: .84rem; }

/* ---------- tables ---------- */
.adm-toolbar { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-search { max-width: 320px; }
.adm-count { font-size: .8rem; color: var(--ink-dim); }
.adm-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--adm-surface); box-shadow: var(--adm-shadow); }
.adm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-table th { text-align: left; font-size: .7rem; letter-spacing: .9px; text-transform: uppercase; color: var(--gold); padding: .8rem 1rem; background: var(--adm-surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: rgba(127,168,207,.05); }
.adm-table .muted { color: var(--ink-dim); font-size: .84rem; }
.adm-table .row-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.adm-table td.actions-cell { text-align: right; white-space: nowrap; }
.adm-title-cell { font-weight: 700; color: var(--ink); }
.adm-title-cell small { display: block; font-weight: 400; color: var(--ink-dim); font-size: .78rem; margin-top: 2px; }
.adm-empty { text-align: center; padding: 2.6rem 1rem; color: var(--ink-dim); }
.adm-empty .ic { font-size: 2rem; display: block; margin-bottom: .4rem; }

/* pills */
.adm-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .3px; padding: .18rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; }
.adm-pill.ok { color: var(--adm-ok); border-color: rgba(82,183,136,.45); background: rgba(82,183,136,.08); }
.adm-pill.warn { color: var(--adm-warn); border-color: rgba(217,163,90,.45); background: rgba(217,163,90,.08); }
.adm-pill.info { color: var(--blue-300); border-color: rgba(127,168,207,.45); background: rgba(127,168,207,.08); }
.adm-pill.gold { color: var(--gold-light); border-color: rgba(224,196,101,.5); background: rgba(201,162,39,.1); }
.adm-pill.mute { color: #9aa6b5; }
.adm-pill.bad { color: var(--adm-danger); border-color: rgba(217,83,79,.45); background: rgba(217,83,79,.08); }

/* ---------- forms ---------- */
.adm-form { display: grid; gap: 1.1rem; }
.adm-form.narrow { max-width: none; }
.f-row { display: grid; gap: 1.1rem; }
.f-row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-row.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f label { display: block; margin: 0 0 .35rem; font-size: .76rem; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
.f label .req { color: var(--adm-danger); }
.f .hint { display: block; margin-top: .3rem; font-size: .76rem; color: var(--ink-dim); }
.f input[type=text], .f input[type=email], .f input[type=number], .f input[type=date], .f input[type=time], .f input[type=datetime-local], .f input[type=file], .f select, .f textarea { background: var(--navy-800); padding: .68rem .8rem; border-radius: 9px; }
.f input:focus, .f select:focus, .f textarea:focus, .adm-search:focus { outline: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 0; border-color: var(--gold); }
.f textarea { min-height: 120px; }
.f textarea.tall { min-height: 220px; }
.f textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; white-space: pre; }
.f input.is-invalid, .f select.is-invalid, .f textarea.is-invalid { border-color: var(--adm-danger); }
.f .err { color: var(--adm-danger); font-size: .78rem; margin-top: .3rem; display: block; }
.adm-check { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--navy-800); cursor: pointer; font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.adm-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--gold); margin: 0; }
.adm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem .8rem; }
.adm-checks label { display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-dim); margin: 0; cursor: pointer; }
.adm-checks input { width: 1rem; height: 1rem; accent-color: var(--gold); margin: 0; }
.adm-sub { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin: 1.2rem 0 .6rem; }
.adm-sub:first-child { margin-top: 0; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; padding-top: .4rem; }
.adm-sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--navy-950) 90%, transparent); backdrop-filter: blur(8px); padding: .9rem 0; border-top: 1px solid var(--line); margin-top: 1.4rem; z-index: 5; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink); background: rgba(127,168,207,.1); }
.btn-danger-o { background: transparent; color: var(--adm-danger); border-color: rgba(217,83,79,.5); }
.btn-danger-o:hover { background: var(--adm-danger); color: #fff; border-color: var(--adm-danger); }
.adm-inline { display: inline; margin: 0; }

/* Server Control (DCSServerBot) */
.srv-card { display: block; color: inherit; }
/* grid rows align: drop the stacked-card top margin from .adm-grid > .adm-card + .adm-card */
.adm-grid.srv-grid > .adm-card + .adm-card { margin-top: 0; }
.srv-card h3 { flex-wrap: wrap; }
.srv-name { min-width: 0; overflow-wrap: anywhere; }
.srv-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.srv-meta dt { font-size: .68rem; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-dim); }
.srv-meta dd { margin: .2rem 0 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.srv-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.srv-open { font-size: .8rem; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.srv-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.srv-load { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.srv-load select { flex: 1 1 260px; width: auto; }
.srv-pilot { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.srv-pilot:last-child { border-bottom: 0; }
.srv-upload { display: grid; gap: .8rem; }
.srv-upload input[type="file"] { width: 100%; }
.srv-replace { display: grid; gap: .6rem; padding: .9rem 1rem; border: 1px solid rgba(217,83,79,.45); border-radius: 10px; background: rgba(217,83,79,.07); }
.srv-replace[hidden] { display: none; }
.srv-warn { margin: 0; font-size: .85rem; color: var(--adm-danger); }
.srv-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 1rem; }
.srv-section-head h2 { margin: 0; font-size: 1.05rem; }
.srv-card.is-down { opacity: .78; }
.srv-public { margin: 0; }
.srv-foot .srv-actions { justify-content: flex-end; }
.srv-msg-modal { width: min(620px, calc(100vw - 32px)); }
.srv-msg-modal .sec-tag { overflow-wrap: anywhere; }
.srv-msg-form { display: grid; gap: 1rem; padding: 20px 26px 24px; }
.srv-msg-form textarea { width: 100%; resize: vertical; }
.srv-msg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.srv-msg-row .f[hidden] { display: none; }
.srv-msg-form .field-error[hidden] { display: none; }
.srv-msg-form .form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin: 0; }
@media (max-width: 560px) { .srv-msg-row { grid-template-columns: 1fr; } }
.srv-busy-note { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-size: .82rem; color: var(--adm-warn); }
.srv-spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: srv-spin .8s linear infinite; }
@keyframes srv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .srv-spin { animation: none; } }
.srv-busy-popup .swal2-loader { border-color: #c8b88a transparent #c8b88a transparent; }
.srv-busy-text { margin: 0 0 .9rem; }
.srv-busy-sub { margin: .5rem 0 0; font-family: var(--font-mono, monospace); font-size: .78rem; letter-spacing: .5px; color: #9a9585; }
.srv-busy-sub b { color: #ece4cc; font-weight: 600; }
.srv-progress { height: 10px; border: 1px solid rgba(200,184,138,.35); background: rgba(20,22,24,.6); overflow: hidden; }
.srv-progress i { display: block; height: 100%; background: repeating-linear-gradient(45deg, #c8b88a 0 10px, #a99a6e 10px 20px); transition: width .25s ease; }
.srv-busy-fallback { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(10,12,14,.75); }
.srv-busy-fallback > div { max-width: 420px; padding: 1.6rem; border: 1px solid var(--line); background: #22262a; color: #ece4cc; text-align: center; }
@media (prefers-reduced-motion: reduce) { .srv-progress i { transition: none; } }
@media (max-width: 720px) { .srv-meta { grid-template-columns: 1fr 1fr; } }

/* split CMS layout (pages / wiki list panel) */
.adm-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.adm-list li:last-child { border-bottom: 0; }
.adm-list a { color: var(--ink); font-weight: 600; font-size: .9rem; }
.adm-list li.active a { color: var(--gold); }

/* package cards (missions) */
.adm-pkg { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: .8rem 1rem; background: var(--adm-surface-2); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.adm-pkg + .adm-pkg { margin-top: .6rem; }
.adm-pkg b { color: var(--ink); }
.adm-pkg .muted { font-size: .8rem; color: var(--ink-dim); }

/* catalog lists */
.adm-scroll { max-height: 300px; overflow: auto; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.adm-scroll .row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .8rem; border-bottom: 1px solid var(--line); font-size: .86rem; }
.adm-scroll .row:last-child { border-bottom: 0; }
.adm-add { display: flex; gap: .5rem; }
.adm-add input { flex: 1; }

/* registrations */
.adm-app { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: var(--adm-surface-2); }
.adm-app + .adm-app { margin-top: .9rem; }
.adm-app .meta { font-size: .84rem; color: var(--ink-dim); line-height: 1.7; }
.adm-app details { margin-top: .4rem; font-size: .84rem; }
.adm-app summary { cursor: pointer; color: var(--blue-300); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .adm-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-grid.side, .adm-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .adm.open .adm-side { transform: none; }
  .adm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
  .adm.open .adm-overlay { display: block; }
  .adm-burger { display: inline-flex; align-items: center; justify-content: center; }
  .adm-top { padding: 0 1rem; }
  .adm-content { padding: 1.3rem 1rem 3rem; }
}
@media (max-width: 720px) {
  .adm-grid.c2, .adm-grid.c3, .adm-grid.c4, .f-row.c2, .f-row.c3, .f-row.c4 { grid-template-columns: 1fr; }
  .adm-head .actions { width: 100%; }
  .adm-head .actions .btn { flex: 1; }
  .adm-search { max-width: none; width: 100%; }
  /* tables become stacked cards */
  .adm-table.stack thead { display: none; }
  .adm-table.stack, .adm-table.stack tbody, .adm-table.stack tr, .adm-table.stack td { display: block; width: 100%; }
  .adm-table.stack tr { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
  .adm-table.stack td { border: 0; padding: .25rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .adm-table.stack td::before { content: attr(data-label); font-size: .68rem; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); font-weight: 700; text-align: left; flex-shrink: 0; }
  .adm-table.stack td.actions-cell { justify-content: flex-end; padding-top: .5rem; }
  .adm-table.stack td.actions-cell::before, .adm-table.stack td[data-label=""]::before { display: none; }
  .adm-table.stack .row-actions { justify-content: flex-end; }
  .adm-crumb { display: none; }
}

/* nested cards inside a form grid already get the grid gap */
.adm-form > .adm-card + .adm-card { margin-top: 0; }
.adm-grid > .adm-card + .adm-card, .adm-grid > div > .adm-card + .adm-card { margin-top: 1.2rem; }
.adm-card h3 .adm-pill { margin-left: auto; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Pilot / Admin mode switch (top bar dropdown) ---------- */
.role-switch { position: relative; }
.role-switch summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; padding: .3rem .7rem .3rem .35rem; border: 1px solid var(--line); background: var(--navy-800); color: var(--ink); user-select: none; }
.role-switch summary::-webkit-details-marker { display: none; }
.role-switch summary:hover, .role-switch[open] summary { border-color: var(--blue-300); }
.role-switch .rs-ic { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--blue-300); color: var(--blue-300); font-size: 16px; flex-shrink: 0; }
.role-switch .rs-text { display: flex; flex-direction: column; line-height: 1.15; }
.role-switch .rs-text small { font-size: .62rem; letter-spacing: 2px; color: var(--ink-dim); text-transform: uppercase; }
.role-switch .rs-text b { font-size: .86rem; letter-spacing: 1.5px; text-transform: uppercase; }
.role-switch .rs-caret { font-size: .7rem; color: var(--ink-dim); transition: transform .2s; }
.role-switch[open] .rs-caret { transform: rotate(180deg); }
.role-switch .rs-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; width: 300px; padding: 6px; border: 1px solid var(--line); background: var(--navy-900); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.role-switch .rs-menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem; color: var(--ink); border: 1px solid transparent; }
.role-switch .rs-menu a:hover { border-color: var(--line); background: var(--navy-800); color: var(--ink); }
.role-switch .rs-menu a.active { background: var(--navy-800); }
.role-switch .rs-menu .rs-text small { letter-spacing: .3px; text-transform: none; font-size: .74rem; }
.role-switch .rs-check { margin-left: auto; color: #46d36b; font-size: .6rem; }
/* Notification bell: reuses the mode switch dropdown */
.adm-notify summary { position: relative; padding: .3rem .35rem; }
.adm-notify .an-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--adm-danger, #d64545); color: #fff; font-size: .66rem; font-weight: 700; line-height: 1; }
.adm-notify .an-menu { width: 340px; max-height: min(480px, calc(100vh - 90px)); overflow-y: auto; }
.adm-notify .an-head { display: flex; justify-content: space-between; align-items: center; padding: .4rem .6rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.adm-notify .an-head b { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.adm-notify .an-head form { margin: 0; }
.adm-notify .an-clear { padding: 0; border: 0; background: none; cursor: pointer; color: var(--blue-300); font-size: .74rem; }
.adm-notify .an-menu a { align-items: flex-start; }
.adm-notify .an-menu a.is-unread { background: var(--navy-800); border-left: 2px solid var(--blue-300); }
.adm-notify .an-menu .rs-text b { font-size: .8rem; letter-spacing: .5px; text-transform: none; }
.adm-notify .an-menu .rs-text em { font-style: normal; font-size: .68rem; color: var(--ink-dim); margin-top: 2px; }
.adm-notify .an-empty { margin: 0; padding: 1rem .6rem; font-size: .8rem; color: var(--ink-dim); }
@media (max-width: 640px) { .adm-notify .an-menu { position: fixed; left: 8px; right: 8px; top: 56px; width: auto; } }
@media (max-width: 640px) { .role-switch .rs-text small, .role-switch summary .rs-text { display: none; } .role-switch .rs-menu .rs-text, .role-switch .rs-menu .rs-text small { display: flex; } }
