:root {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #eeeef3;
  background: #09090d;
  font-size: 16px;
  line-height: 1.6;
  --ink: #eeeef3;
  --deep: #f7f7fa;
  --muted: #a2a2b3;
  --line: #2c2c38;
  --paper: #09090d;
  --white: #15151c;
  --accent: #da1227;
  --accent-dark: #b90f23;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #efaa73;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

/* Shared controls */
label { display: block; margin: 18px 0 8px; color: #dddde7; font-size: .86rem; font-weight: 700; }
input, textarea, select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #343440;
  border-radius: 8px;
  background: #15151c;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: #9292a5; }
input:hover, textarea:hover, select:hover { border-color: #626276; }
input:focus, textarea:focus, select:focus { border-color: #da1227; box-shadow: 0 0 0 3px #4b79801c; }
textarea { resize: vertical; line-height: 1.7; min-height: 154px; }
input[dir="ltr"], textarea[dir="ltr"], select[dir="ltr"] { text-align: left; }
button { min-height: 44px; border: 1px solid #343440; border-radius: 8px; padding: 9px 16px; background: #15151c; color: var(--ink); font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease; }
button:hover:not(:disabled) { background: #20202b; border-color: #656577; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary { background: var(--deep); border-color: var(--deep); color: #fff; }
.secondary:hover:not(:disabled) { background: #21414a; border-color: #21414a; }
.subtle { background: transparent; border-color: transparent; color: var(--muted); }
.subtle:hover:not(:disabled) { background: #24242f; border-color: #24242f; }
.danger { color: #ff7d89; background: #30141b; border-color: #702334; }
.danger:hover:not(:disabled) { background: #441820; border-color: #993044; }
.full-width { width: 100%; }
.required { color: #ff6677; }
.field-help { color: var(--muted); font-size: .8rem; line-height: 1.7; margin: 8px 0 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px #1d3a3910; }

/* Private administration */
.admin-layout { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 17px 19px; background: var(--deep); color: #f5f7f5; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 1px 13px 30px; border-bottom: 1px solid #ffffff1e; }
.brand-mark { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.6rem; font-weight: 900; line-height: 1; }
.brand-block strong { display: block; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.03em; }
.brand-block small { display: block; margin-top: 2px; color: #9696ab; font-size: .7rem; }
.sidebar-caption { margin: 28px 13px 11px; color: #8d8da1; font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 13px; color: #b9b9c9; text-align: right; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: .9rem; font-weight: 600; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-item:hover:not(:disabled) { background: #ffffff0d; border-color: transparent; color: #fff; }
.nav-item[aria-pressed="true"] { background: #34151f; color: #fff; border-color: #802536; }
.nav-item[aria-pressed="true"]::after { content: ""; width: 5px; height: 5px; margin-inline-start: auto; border-radius: 50%; background: #e8986c; }
.sidebar-bottom { display: grid; gap: 9px; margin-top: auto; padding: 17px 4px 0; border-top: 1px solid #ffffff1e; }
.sidebar-bottom small { color: #829fa1; font-size: .67rem; line-height: 1.7; padding: 7px 9px 0; }
.portal-link, .logout-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 10px 11px; text-align: right; color: #b9b9c9; text-decoration: none; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: .79rem; font-weight: 600; }
.portal-link:hover, .logout-button:hover:not(:disabled) { color: #fff; background: #ffffff10; border-color: #ffffff1c; }
.logout-button { justify-content: flex-start; }
.main-content { min-width: 0; max-width: 1720px; width: 100%; padding: 35px clamp(22px, 3.5vw, 62px) 25px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-index, .panel-kicker { display: block; margin: 0; color: #fa6678; font-size: .71rem; font-weight: 800; letter-spacing: .01em; }
.page-header h1 { margin: 6px 0 4px; color: var(--deep); font-size: clamp(1.7rem, 2.5vw, 2.45rem); line-height: 1.32; letter-spacing: -.04em; }
.page-lead { margin: 0; color: var(--muted); font-size: .91rem; }
.header-stamp { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 40px; background: #15151c; color: #b5b5c8; font-size: .76rem; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #449677; }
.notice { min-height: 0; margin: 0; color: #ffbac2; font-size: .86rem; font-weight: 700; }
.notice:not(:empty) { margin-top: 18px; padding: 12px 15px; background: #30141b; border: 1px solid #702334; border-radius: 8px; }
.login-stage { display: grid; grid-template-columns: 1fr minmax(300px, 420px); align-items: center; gap: 70px; min-height: min(68vh, 650px); }
.login-intro { max-width: 440px; }
.login-intro h2 { margin: 12px 0 8px; font-size: clamp(2rem, 3vw, 3rem); color: var(--deep); line-height: 1.3; letter-spacing: -.04em; }
.login-intro p { color: var(--muted); margin: 0; }
.login-panel { padding: 30px; }
.login-panel label { margin-top: 0; }
.login-panel .primary { margin-top: 24px; }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 25px 0 31px; }
.metric { position: relative; min-height: 117px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: #15151c; overflow: hidden; }
.metric::before { content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 4px; background: #da1227; }
.metric span { display: block; color: #bebecd; font-size: .82rem; font-weight: 700; }
.metric strong { display: block; color: var(--deep); font: 700 1.9rem/1.25 "Segoe UI", Tahoma, sans-serif; letter-spacing: -.04em; margin-top: 1px; }
.metric small { color: #9898ad; font-size: .72rem; }
.section-view { padding-bottom: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.section-heading h2 { font-size: 1.37rem; line-height: 1.3; color: var(--deep); margin: 4px 0 3px; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .83rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(300px, 350px) minmax(0, 1fr); gap: 18px; align-items: start; }
.form-panel, .list-panel, .detail-panel { padding: 24px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.panel-heading h3 { margin: 2px 0 0; color: var(--deep); font-size: 1.08rem; line-height: 1.4; }
.panel-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; background: #34151f; color: #ff7687; border-radius: 8px; font-size: 1.3rem; font-weight: 400; }
.form-panel label:first-of-type { margin-top: 0; }
.list-heading { justify-content: space-between; }
.count-pill { min-width: 29px; height: 29px; display: inline-grid; place-items: center; padding: 0 7px; border: 1px solid #44303b; border-radius: 8px; background: #281820; color: #ff8694; font-size: .8rem; font-weight: 800; }
.server-list { display: grid; gap: 12px; }
.list-empty { padding: 23px 16px; border: 1px dashed #3b3b49; border-radius: 8px; background: #111117; color: #a1a1b4; font-size: .8rem; text-align: center; }
.server-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #111117; }
.server-card:hover { border-color: #555569; }
.server-card h3 { margin: 0 0 2px; color: var(--deep); font-size: 1rem; }
.server-card .muted { margin: 0; color: var(--muted); font-size: .77rem; }
.server-card ol { list-style: none; padding: 0; margin: 15px 0; border-top: 1px solid #2b2b36; }
.server-card li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid #2b2b36; color: #aaaabc; font-size: .72rem; }
.server-card code { color: #dedee9; font-family: Consolas, monospace; font-size: .75rem; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.server-card button { min-height: 38px; padding: 7px 11px; margin-inline-end: 8px; font-size: .75rem; }
.server-card button:last-child { color: #ff7d89; }
.device-list { display: grid; gap: 7px; }
.device { width: 100%; min-height: 45px; text-align: right; padding: 10px 12px; background: #191922; border: 1px solid var(--line); font-size: .84rem; }
.device[aria-pressed="true"] { border-color: #b2374b; background: #361720; color: #ffacb8; }
.panel-divider { border-top: 1px solid var(--line); margin: 24px 0 19px; }
.device-panel h4, .detail-panel h4 { margin: 0; color: var(--deep); font-size: .96rem; }
.device-panel label { margin-top: 15px; }
.device-panel .primary { margin-top: 21px; }
.detail-heading { justify-content: space-between; align-items: flex-start; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.detail-heading .danger { flex: 0 0 auto; font-size: .76rem; }
.empty-state { display: grid; justify-items: center; padding: 70px 20px 80px; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 14px; border: 1px solid #3b303b; background: #21171f; color: #e66b7d; font-size: 2rem; line-height: 1; }
.empty-symbol svg { width: 27px; height: 27px; }
.empty-state strong { margin-top: 15px; color: var(--deep); font-size: .94rem; }
.empty-state p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.subsection-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.subsection-heading h4 { margin-top: 2px; }
.license-panel { padding: 22px 0; border-bottom: 1px solid var(--line); }
.license-status { margin: 0; color: #75cda5; font-size: .78rem; font-weight: 700; }
.license-status[data-state="inactive"] { color: #ff7d89; }
.license-form { display: flex; flex-wrap: wrap; gap: 11px; align-items: end; }
.license-form label { margin: 0; flex: 1 1 165px; }
.license-form select, .license-form input { margin-top: 7px; }
.license-form button { white-space: nowrap; flex: 0 0 auto; }
.license-panel .field-help { margin-top: 12px; }
.license-history { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.license-history > strong { display: block; color: var(--deep); font-size: .8rem; margin-bottom: 7px; }
.history-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 0; border-top: 1px solid #2b2b36; }
.history-row span { color: var(--ink); font-weight: 700; }
.history-row small { color: var(--muted); }
.playlist-heading { margin: 24px 0 11px; }
.playlists { display: grid; gap: 10px; }
.playlist { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #111117; }
.playlist strong { display: block; color: var(--deep); font-size: .84rem; }
.playlist small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.row-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.row-actions button { min-height: 36px; padding: 5px 10px; font-size: .73rem; }
.row-actions button:last-child { color: #ff7d89; }
.playlist-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.playlist-form h4 { margin-bottom: 13px; }
.playlist-form label { margin-top: 10px; }
.main-content footer { margin: 36px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: #9b9bad; font-size: .72rem; }

/* Customer playlist portal shares the same restrained visual language. */
body:not(.admin-shell) > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px clamp(18px, 4vw, 48px); background: #101015; color: #fff; }
body:not(.admin-shell) .brand { font-size: 1.15rem; font-weight: 800; }
body:not(.admin-shell) .brand span { display: block; color: #aac0bf; font-size: .7rem; font-weight: 500; }
body:not(.admin-shell) .header-link { color: #e1ebe8; text-decoration: none; font-size: .8rem; margin-inline-end: 8px; }
body:not(.admin-shell) > main { max-width: 1160px; margin: auto; padding: 40px 24px; }
body:not(.admin-shell) h1 { margin: 5px 0; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--deep); }
body:not(.admin-shell) h2 { margin: 0 0 15px; color: var(--deep); font-size: 1.1rem; }
body:not(.admin-shell) .muted { color: var(--muted); font-size: .83rem; }
body:not(.admin-shell) .card { background: #15151c; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
body:not(.admin-shell) .narrow { max-width: 440px; margin: 25px auto; }
body:not(.admin-shell) .layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; margin-top: 20px; align-items: start; }
body:not(.admin-shell) #status { min-height: 0; color: #ff7d89; font-weight: 700; }
body:not(.admin-shell) #status:not(:empty) { padding: 12px 15px; background: #30141b; border: 1px solid #702334; border-radius: 8px; }
body:not(.admin-shell) #licenseStatus:not(:empty) { margin: 20px 0 0; padding: 12px 16px; background: #15151c; border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 8px; color: var(--ink); font-weight: 700; }
body:not(.admin-shell) #playlists { display: grid; gap: 10px; }
body:not(.admin-shell) .playlist { background: #111117; }
body:not(.admin-shell) footer { color: #829397; font-size: .72rem; margin-top: 35px; text-align: center; }

@media (max-width: 1160px) {
  .workspace-grid { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); }
  .license-form label { flex-basis: 180px; }
}
@media (max-width: 880px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 13px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 18px; }
  .brand-block { border: 0; padding: 0; }
  .sidebar-caption, .sidebar-bottom small { display: none; }
  .side-nav { display: flex; grid-column: 1 / -1; gap: 6px; overflow-x: auto; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 11px; }
  .sidebar-bottom { grid-column: 2; grid-row: 1; display: flex; gap: 5px; margin: 0; padding: 0; border: 0; }
  .portal-link, .logout-button { min-height: 40px; padding: 8px 10px; white-space: nowrap; }
  .main-content { padding: 25px 20px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .form-panel, .device-panel { order: 1; }
  .list-panel, .detail-panel { order: 2; }
}
@media (max-width: 620px) {
  .sidebar { grid-template-columns: 1fr; }
  .sidebar-bottom { grid-column: 1; grid-row: 3; justify-content: space-between; }
  .side-nav { grid-column: 1; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .main-content { padding: 21px 15px; }
  .page-header { align-items: start; }
  .header-stamp { display: none; }
  .overview { gap: 8px; }
  .metric { padding: 13px 12px; min-height: 103px; }
  .metric strong { font-size: 1.5rem; }
  .metric small { font-size: .64rem; }
  .metric::before { top: 13px; bottom: 13px; }
  .form-panel, .list-panel, .detail-panel { padding: 19px; }
  .fields, .login-stage, body:not(.admin-shell) .layout { grid-template-columns: 1fr; }
  .login-stage { gap: 25px; min-height: auto; padding: 38px 0; }
  .login-panel { padding: 22px; }
  .license-form label, .license-form button { flex-basis: 100%; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row small { grid-column: 1 / -1; }
  .subsection-heading, .playlist { align-items: flex-start; }
  .playlist { flex-wrap: wrap; }
  .row-actions { width: 100%; justify-content: flex-start; }
  body:not(.admin-shell) > main { padding: 24px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Keep long device identifiers readable on narrow admin screens. */
#selectedName, .device { overflow-wrap: anywhere; }
.detail-heading > div { min-width: 0; }


/* Unified administration components: dark graphite and FLIX crimson. */
.admin-shell { background: radial-gradient(ellipse at 80% 0%, #36142044, transparent 45%), #0b0c10; }
.admin-shell .sidebar { background: #101116; border-inline-end: 1px solid #25262f; padding: 28px 18px 20px; }
.brand-logo { position: relative; width: 100px; height: 44px; overflow: hidden; flex: 0 0 100px; }
.brand-logo img { position: absolute; width: 100px; height: 100px; top: -28px; object-fit: contain; }
.brand-block { padding: 0 0 25px; gap: 8px; }
.brand-block strong { font-size: 1rem; }
.admin-shell .main-content { padding: 28px clamp(18px,3vw,46px); }
.admin-shell .page-header { min-height: 142px; padding: 25px 28px; border: 1px solid #39303a; border-radius: 18px; background: linear-gradient(90deg,#101116d9,#10111666),url('/brand-cinema.png') center/cover; }
.admin-shell .page-header h1 { font-size: clamp(1.6rem,2.2vw,2.1rem); letter-spacing: 0; }
.admin-shell .header-stamp { background: #13151dcc; border-color: #41414d; }
.admin-shell .panel { background: #15161d; border-color: #2b2c37; border-radius: 16px; box-shadow: 0 10px 30px #00000020; }
.admin-shell .form-panel,.admin-shell .list-panel,.admin-shell .detail-panel { padding: 26px; }
.admin-shell label { font-size: .85rem; font-weight: 600; color: #e0e1e9; margin-block: 20px 9px; }
.admin-shell input,.admin-shell textarea,.admin-shell select { background: #101117; border: 1px solid #393b49; border-radius: 10px; padding: 12px 14px; min-height: 48px; font-size: .92rem; box-shadow: inset 0 1px 2px #0002; }
.admin-shell input:hover,.admin-shell textarea:hover,.admin-shell select:hover { border-color: #626575; }
.admin-shell input:focus,.admin-shell textarea:focus,.admin-shell select:focus { border-color: #f06478; outline: 0; box-shadow: 0 0 0 3px #ec35531f; }
.admin-shell input::placeholder,.admin-shell textarea::placeholder { color: #9498aa; }
.admin-shell button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 10px; padding: 10px 16px; font-size: .85rem; font-weight: 600; background: #20222c; border-color: #393c4b; box-shadow: 0 1px 2px #0002; }
.admin-shell button:hover:not(:disabled) { background: #2a2d39; border-color: #626779; }
.admin-shell button:active:not(:disabled) { transform: translateY(1px); }
.admin-shell button.primary { background: linear-gradient(180deg,#df2441,#be1530); border-color: #ed3e58; color: #fff; box-shadow: inset 0 1px #ffffff20,0 4px 12px #b51a3020; }
.admin-shell button.primary:hover:not(:disabled) { background: #e42b48; border-color: #ff6c83; }
.admin-shell button.subtle { background: transparent; border-color: transparent; box-shadow: none; }
.admin-shell button.danger { color: #ffacb8; background: #301923; border-color: #66303f; }
.admin-shell button.danger:hover:not(:disabled) { background: #48212c; border-color: #aa485e; }
.admin-shell button:focus-visible,.admin-shell a:focus-visible { outline: 2px solid #ff8ca0; outline-offset: 4px; }
.admin-shell .nav-item { justify-content: flex-start; background: transparent; border-color: transparent; box-shadow: none; min-height: 48px; }
.admin-shell .nav-item[aria-pressed="true"] { background: #35202b; border-color: #663143; color: #fff; box-shadow: inset -3px 0 #ee4663; }
.admin-shell .nav-item[aria-pressed="true"]::after { background: #f4778d; }
.admin-shell .portal-link { justify-content: flex-start; gap: 10px; font-size: .82rem; }
.admin-shell .logout-button { background: transparent; justify-content: flex-start; }
.ui-icon { display: inline-block; width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.input-wrap { position: relative; }
.input-wrap > .ui-icon { position: absolute; inset-inline-start: 14px; top: 15px; color: #9b9fb1; pointer-events: none; }
.admin-shell .input-wrap input { padding-inline-start: 43px; }
.input-wrap:focus-within > .ui-icon { color: #ff8297; }
.admin-shell .login-stage { max-width: 1000px; margin: 36px auto; min-height: 390px; gap: 45px; grid-template-columns: 1fr minmax(280px,410px); }
.admin-shell .login-panel { padding: 32px; border-top: 2px solid #e63250; }
.admin-shell .login-panel label { margin-top: 18px; }
.admin-shell .login-panel label:first-child { margin-top: 0; }
.admin-shell .login-intro h2 { font-size: clamp(2rem,3vw,2.8rem); letter-spacing: 0; }
.admin-shell .metric { border-radius: 14px; background: linear-gradient(120deg,#1b1d27,#14151c); border-color: #30323f; padding: 22px; min-height: 144px; }
.admin-shell .metric::before { display: none; }
.admin-shell .metric > .ui-icon { position: absolute; inset-inline-end: 18px; top: 18px; width: 38px; height: 38px; padding: 9px; border-radius: 11px; color: #ff9aad; background: #3a202c; border: 1px solid #643347; }
.admin-shell .metric > span { padding-inline-end: 44px; }
.admin-shell .metric strong { font-size: 2.25rem; margin: 9px 0 3px; font-weight: 600; }
.admin-shell .server-card { background: #111218; border-color: #2e303c; border-radius: 12px; padding: 22px; }
.admin-shell .server-card button { min-height: 44px; margin-top: 10px; }
.admin-shell .server-card button:last-child:not(.danger) { color: #ececf4; }
.admin-shell .server-card ol { border-color: #2a2c37; }
.admin-shell .server-card li { border-color: #2a2c37; padding-block: 12px; }
.admin-shell .field-help,.admin-shell .metric small { color: #aaaebf; }
.admin-shell .list-empty { padding: 42px 20px; line-height: 1.9; border-radius: 12px; }
.admin-shell .panel-heading h2,.admin-shell .form-panel > h2 { font-size: 1.15rem; margin: 0 0 20px; }
.admin-shell .panel-icon { background: #3a202c; color: #ff9aad; border: 1px solid #643347; border-radius: 10px; width: 40px; height: 40px; }
.admin-shell input[type="checkbox"] { display: inline-block; width: 20px; height: 20px; min-height: 20px; vertical-align: middle; margin: 0 0 0 8px; accent-color: #df2441; box-shadow: none; }
.admin-shell label:has(input[type="checkbox"]) { padding: 14px; background: #101117; border: 1px solid #393b49; border-radius: 10px; line-height: 1.8; cursor: pointer; }
.skip-link { position: fixed; top: -100px; right: 20px; z-index: 20; padding: 12px 20px; background: #eee; color: #111; border-radius: 8px; }
.skip-link:focus { top: 12px; }
@media(min-width:881px) and (max-width:1100px) { .admin-shell .workspace-grid { grid-template-columns: 1fr; } .admin-shell .login-stage { grid-template-columns: 1fr; gap: 24px; } }
@media(max-width:880px) { .admin-shell .sidebar { height: auto; position: static; padding: 18px; } .admin-shell .login-stage { grid-template-columns: 1fr; gap: 24px; min-height: auto; } .admin-shell .login-intro { max-width: none; } }
@media(max-width:620px) { .admin-shell .page-header { padding: 22px 18px; min-height: 130px; } .admin-shell .main-content { padding: 20px 16px; } .admin-shell .form-panel,.admin-shell .list-panel,.admin-shell .detail-panel,.admin-shell .login-panel { padding: 22px 18px; } .admin-shell .overview { gap: 10px; } .admin-shell .metric { padding: 16px 12px; min-height: 150px; } .admin-shell .metric > .ui-icon { position: static; width: 30px; height: 30px; padding: 6px; margin-bottom: 8px; } .admin-shell .metric > span { padding: 0; font-size: .75rem; } .admin-shell .metric strong { font-size: 1.8rem; } .admin-shell .login-stage { margin-block: 24px; } .admin-shell .server-card { padding: 18px; } }
@media(prefers-reduced-motion:reduce) { .admin-shell button:active:not(:disabled) { transform: none; } }

@media(max-width:620px) { .admin-shell .sidebar-bottom { flex-wrap: wrap; } .admin-shell .sidebar-bottom > * { width: auto; } .admin-shell .side-nav { flex-wrap: wrap; } .admin-shell .detail-heading { flex-wrap: wrap; } .admin-shell .server-card { overflow-wrap: anywhere; } }

/* Role-specific information architecture. */
.platform-overview,.reseller-home-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:20px; }
.platform-welcome,.platform-summary,.reseller-welcome,.reseller-steps { padding:30px; }
.platform-welcome h2,.reseller-welcome h2 { font-size:1.8rem; margin:12px 0; }
.platform-welcome p,.reseller-welcome p,.reseller-steps li { color:#b4b8c9; line-height:1.9; }
.platform-summary h2,.reseller-steps h3 { margin:0 0 22px; font-size:1.05rem; }
.platform-summary > div { display:flex; justify-content:space-between; gap:16px; padding:18px 0; border-top:1px solid #30323f; color:#b4b8c9; }
.platform-summary strong { color:#fff; font-size:1.3rem; }
.directory-layout { display:grid; gap:20px; }
.directory-layout:has(#resellerEditor:not([hidden])) { grid-template-columns:minmax(280px,350px) minmax(0,1fr); }
.platform-shell #resellers { grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); }
.platform-shell .page-header { background:linear-gradient(110deg,#12141d,#292031); border-color:#474052; }
.platform-shell .platform-welcome { border-top:2px solid #bd7c96; }
.reseller-shell .reseller-welcome { border-top:2px solid #e63250; }
.reseller-steps ol { padding-inline-start:22px; margin-bottom:0; }
.reseller-steps li { padding:8px 0; }
@media(max-width:1100px) { .platform-overview,.reseller-home-grid,.directory-layout:has(#resellerEditor:not([hidden])) { grid-template-columns:1fr; } }
@media(max-width:620px) { .platform-welcome,.platform-summary,.reseller-welcome,.reseller-steps { padding:22px 18px; } .platform-shell .section-heading { flex-wrap:wrap; } }
