:root {
  --bg: #111111;
  --panel: #000000;
  --gold: #f0c84b;
  --ink: #141414;
  --admin: #ffa726;
  --agent: #ff2993;
  --support: #20f5a0;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: #f5f5f5;
  font-family: "Cairo", "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
  direction: rtl;
}

.stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.stage:has(> .shell:not([hidden])) {
  display: block;
  padding: 0;
}

.panel {
  width: min(980px, 100%);
  margin-inline: auto;
  background: transparent;
  padding: 28px 16px 40px;
  text-align: center;
}

.logo {
  width: clamp(128px, 34vw, 230px);
  height: auto;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 0 14px rgba(240, 200, 75, 0.28));
}

.logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
}

.logo-small {
  width: min(140px, 36vw);
}

h1 {
  margin: 0 0 42px;
  color: var(--gold);
  font-size: clamp(22px, 2.4vw + 12px, 36px);
  font-weight: 800;
  line-height: 1.45;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  flex: 1 1 0;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  border: 0;
  border-radius: 18px;
  background: #222;
  color: var(--ink);
  font: inherit;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn-admin {
  background: var(--admin);
}

.btn-agent {
  background: var(--agent);
  color: #fff;
}

.btn-support {
  background: var(--support);
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 26px rgba(0, 0, 0, 0.38);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.back:focus-visible,
.field input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.note,
.status {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.panel-login {
  width: min(480px, 100%);
  padding: 42px 34px 36px;
  text-align: right;
}

.panel-login h1 {
  margin-bottom: 8px;
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
}

.lede {
  margin: 0 0 28px;
  color: #d5d5d5;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--gold);
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #111111;
  color: #fff;
  font: inherit;
  font-size: 17px;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 75, 0.22);
}

.panel-login .status {
  min-height: 3.2em;
  margin: 0 0 8px;
}

.btn-block {
  width: 100%;
  flex: none;
}

.back {
  display: inline-block;
  margin-top: 18px;
  color: var(--support);
  font-weight: 700;
  text-decoration: none;
}

.back:hover {
  color: #fff;
}

[hidden] {
  display: none !important;
}

.panel-editor {
  width: min(560px, 100%);
}

.field input.url {
  direction: ltr;
  text-align: left;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.hint {
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.url-line {
  margin: -12px 0 22px;
  text-align: center;
  color: var(--gold);
  font-size: 15px;
}

.logout {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  background: transparent;
}

.sidebar {
  width: 250px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 16px;
  background: transparent;
  border-left: 1px solid #242424;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
}

.side-link.is-active {
  background: var(--admin);
  color: var(--ink);
}

.side-link:focus-visible,
.btn-ghost:focus-visible,
.btn-logout:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.shell-main {
  flex: 1;
  min-width: 0;
  padding: 36px 32px 32px;
  text-align: right;
}

.shell-main h1 {
  margin-bottom: 8px;
  text-align: right;
}

.shell-main h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 22px;
}

.shell-main .lede,
.shell-main .url-line {
  text-align: right;
}

.shell-main .status {
  min-height: 1.6em;
}

.edit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edit-card {
  background: #111111;
  border-radius: 16px;
  padding: 14px 14px 2px;
}

.edit-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card {
  background: #111111;
  border-radius: 16px;
  padding: 14px 14px 10px;
}

.stat-card h2,
.home-heading {
  margin: 0 0 8px;
  font-size: 18px;
}

.stat-value {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #2a2a2a;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--support);
}

.stat-card .hint {
  margin-top: 8px;
}

.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #111111;
}

.home-row strong {
  flex: 1;
  min-width: 0;
}

.home-edit,
.home-delete {
  flex: none;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.home-edit {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
}

.home-delete {
  border: 1px solid #ff8aa8;
  background: transparent;
  color: #ff8aa8;
}

@media (min-width: 861px) {
  .shell-main {
    max-height: 100dvh;
    overflow: auto;
  }

  .home-row {
    width: fit-content;
    max-width: 100%;
  }

  .home-row strong {
    flex: 0 1 auto;
  }
}

.logo-preview {
  width: min(160px, 40vw);
  margin: 8px 0 18px;
}

.file-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #111111;
}

.file-pick {
  flex: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: #2a2a2a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

#logo-file-name {
  min-width: 0;
  overflow: hidden;
  color: #bdbdbd;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-ghost {
  margin-top: 12px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.btn-logout {
  margin-top: 28px;
  background: transparent;
  color: #ff8aa8;
  border: 1px solid #ff8aa8;
  box-shadow: none;
}

.extra-empty {
  color: #bdbdbd;
  padding: 8px 2px;
}

.btn-extra {
  flex: 1 1 0;
}

.extra-box {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid #2a2a2a;
  text-align: right;
}

.extra-box h2 {
  margin: 18px 0 16px;
  color: var(--gold);
  font-size: 22px;
  text-align: center;
}

.extra-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  border-radius: 12px;
  padding: 10px 12px;
}

.extra-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}

.extra-meta {
  flex: 1;
  min-width: 0;
}

.extra-meta strong {
  display: block;
}

.extra-meta span {
  display: block;
  direction: ltr;
  text-align: left;
  color: #bdbdbd;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-remove {
  border: 0;
  background: transparent;
  color: #ff8aa8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

input[type="color"] {
  width: 100%;
  height: 54px;
  padding: 6px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #111111;
}

@media (max-width: 860px) {
  .stage {
    padding:
      max(20px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .panel,
  .panel-login,
  .panel-editor {
    padding: 8px 0 4px;
  }

  .shell {
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
  }

  .sidebar {
    width: 100%;
    gap: 10px;
    border-left: 0;
    border-bottom: 1px solid #242424;
    padding: 16px 14px 12px;
  }

  .sidebar .logo-small {
    width: 92px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .side-link {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
  }

  .shell-main {
    padding: 20px 16px 28px;
  }

  .field input {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: min(440px, 100%);
    margin-inline: auto;
    gap: 12px;
  }

  .btn,
  .btn-extra {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 64px;
    font-size: 18px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(20px, 5.2vw, 30px);
  }
}

@media (max-height: 520px) and (min-width: 640px) {
  .stage {
    padding: 12px 16px;
  }

  .logo {
    width: min(108px, 20vw);
  }

  h1 {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .actions {
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: auto;
    min-height: 52px;
    padding: 10px 12px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

body.panel-app {
  background: #07080d;
}

body.panel-app .aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.panel-app .aurora svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.panel-app .stage {
  position: relative;
  z-index: 1;
}

body.panel-app .panel-login {
  background: rgba(8, 8, 12, 0.82);
  border: 1px solid rgba(240, 200, 75, 0.4);
  border-radius: 24px;
  box-shadow: 0 0 36px rgba(240, 180, 40, 0.16);
}

body.panel-app .sidebar {
  background: rgba(7, 7, 12, 0.72);
  border-left: 1px solid rgba(240, 200, 75, 0.55);
  box-shadow: -16px 0 40px rgba(240, 170, 40, 0.08);
}

body.panel-app .side-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 16px;
}

body.panel-app .nav-ico {
  width: 22px;
  height: 22px;
  flex: none;
}

body.panel-app .side-link.is-active {
  box-shadow: 0 0 18px rgba(255, 167, 38, 0.4);
}

body.panel-app .shell-main h1,
body.panel-app .home-heading {
  text-shadow: 0 0 18px rgba(240, 200, 75, 0.28);
}

body.panel-app .stat-card {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 42%),
    rgba(10, 10, 16, 0.82);
  border: 1px solid transparent;
}

body.panel-app .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.panel-app .stat-card h2 {
  margin: 0 0 6px;
}

body.panel-app .stat-value {
  margin: 0;
  font-size: 34px;
}

body.panel-app .stat-ico {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
}

body.panel-app .stat-ico svg {
  width: 30px;
  height: 30px;
}

body.panel-app .stat-cpu {
  box-shadow: 0 0 0 1px rgba(90, 150, 255, 0.7), 0 0 26px rgba(60, 110, 255, 0.35);
}

body.panel-app .stat-cpu .stat-ico {
  color: #9ec0ff;
  box-shadow: 0 0 16px rgba(80, 140, 255, 0.65);
}

body.panel-app .stat-ram {
  box-shadow: 0 0 0 1px rgba(190, 80, 255, 0.72), 0 0 26px rgba(160, 40, 255, 0.34);
}

body.panel-app .stat-ram .stat-ico {
  color: #e2b0ff;
  box-shadow: 0 0 16px rgba(180, 70, 255, 0.65);
}

body.panel-app .stat-disk {
  box-shadow: 0 0 0 1px rgba(240, 190, 70, 0.8), 0 0 26px rgba(240, 160, 40, 0.34);
}

body.panel-app .stat-disk .stat-ico {
  color: #f0c84b;
  box-shadow: 0 0 16px rgba(240, 180, 50, 0.6);
}

body.panel-app .meter {
  height: 7px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.08);
}

body.panel-app .stat-cpu .meter span {
  background: linear-gradient(90deg, #3d6dff, #8eb6ff);
  box-shadow: 0 0 10px rgba(80, 140, 255, 0.8);
}

body.panel-app .stat-ram .meter span {
  background: linear-gradient(90deg, #a43dff, #e2a6ff);
  box-shadow: 0 0 10px rgba(180, 70, 255, 0.8);
}

body.panel-app .stat-disk .meter span {
  background: linear-gradient(90deg, #14d98a, #b6ff6a);
  box-shadow: 0 0 10px rgba(32, 245, 160, 0.8);
}

body.panel-app .stat-card .hint {
  margin-top: 8px;
  text-align: center;
}

body.panel-app .home-buttons {
  align-items: center;
}

body.panel-app .home-row {
  width: min(640px, 100%);
  margin-inline: auto;
  background: rgba(8, 8, 12, 0.78);
  border: 1px solid rgba(240, 196, 70, 0.82);
  box-shadow: 0 0 16px rgba(240, 180, 40, 0.28);
}

body.panel-app .home-row strong {
  flex: 1 1 auto;
}

body.panel-app .home-edit,
body.panel-app .home-delete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 8, 12, 0.9);
  box-shadow: 0 0 10px rgba(240, 180, 40, 0.12);
}

body.panel-app .home-edit svg,
body.panel-app .home-delete svg {
  width: 16px;
  height: 16px;
  flex: none;
}

body.panel-app .home-delete {
  box-shadow: 0 0 10px rgba(255, 80, 140, 0.16);
}

body.panel-app .edit-card,
body.panel-app .extra-item {
  background: rgba(10, 10, 16, 0.82);
  border: 1px solid rgba(240, 200, 75, 0.28);
  box-shadow: 0 0 18px rgba(240, 180, 40, 0.08);
}

body.panel-app .field input,
body.panel-app input[type="color"],
body.panel-app .file-row {
  background: rgba(8, 8, 12, 0.9);
  border-color: rgba(240, 200, 75, 0.28);
}

body.panel-app [data-view="edit"] form,
body.panel-app [data-view="edit"] .edit-card {
  max-width: 920px;
}

body.panel-app .add-view .lede {
  margin-bottom: 18px;
  color: #d5d5d5;
}

body.panel-app .add-card {
  max-width: 920px;
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: rgba(6, 10, 18, 0.78);
  border: 1px solid rgba(240, 196, 70, 0.8);
  box-shadow: 0 0 22px rgba(240, 180, 40, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.panel-app .add-card .field label {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.panel-app .add-card .field label svg,
body.panel-app .input-ico {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
}

body.panel-app .input-shell {
  position: relative;
}

body.panel-app .input-shell input {
  padding-left: 46px;
}

body.panel-app .input-ico {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

body.panel-app .color-bar {
  --picked: #3b82f6;
  position: relative;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.7);
  background: linear-gradient(90deg, var(--picked), color-mix(in srgb, var(--picked) 45%, white));
  box-shadow: 0 0 16px color-mix(in srgb, var(--picked) 55%, transparent);
  overflow: hidden;
}

body.panel-app .color-thumb {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

body.panel-app .color-bar input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

body.panel-app .add-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin-top: 6px;
  border-radius: 16px;
  color: #062018;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 70' preserveAspectRatio='none'%3E%3Cpath d='M0 42 C 60 18 110 62 180 38 S 320 16 480 46' fill='none' stroke='white' stroke-opacity='.45' stroke-width='3'/%3E%3C/svg%3E") center 70% / 120% 60% no-repeat,
    linear-gradient(180deg, #b8ffe0, #2ef0a4 42%, #12c98a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 16px rgba(32, 245, 160, 0.65),
    0 0 36px rgba(32, 245, 160, 0.35);
}

body.panel-app .add-submit svg {
  position: absolute;
  left: 16px;
  width: 28px;
  height: 28px;
}

body.panel-app .add-view .extra-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 920px;
  margin-top: 14px;
  color: #d0d0d0;
}

body.panel-app .add-view .extra-empty svg {
  width: 18px;
  height: 18px;
  flex: none;
}

body.panel-app .sidebar {
  gap: 8px;
  padding: 14px 12px;
}

body.panel-app .logo-small {
  width: 88px;
}

body.panel-app .side-link {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 15px;
}

body.panel-app .shell-main {
  padding: 14px 20px 12px;
}

body.panel-app .shell-main h1 {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1.25;
}

body.panel-app .shell-main h2,
body.panel-app .edit-card h2 {
  margin-bottom: 4px;
  font-size: 15px;
}

body.panel-app .lede,
body.panel-app .url-line,
body.panel-app .hint {
  font-size: 13px;
  line-height: 1.4;
}

body.panel-app .lede {
  margin: 0 0 2px;
}

body.panel-app .url-line {
  margin: 0 0 8px;
}

body.panel-app .field {
  gap: 3px;
  margin-bottom: 8px;
}

body.panel-app .field label {
  font-size: 13px;
}

body.panel-app .field input,
body.panel-app input[type="color"],
body.panel-app .color-bar {
  min-height: 34px;
  height: 34px;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 10px;
}

body.panel-app .edit-card {
  padding: 8px 12px 2px;
}

body.panel-app [data-view="edit"] .btn,
body.panel-app .add-submit {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 15px;
}

body.panel-app .stat-value {
  font-size: 24px;
}

body.home {
  background:
    radial-gradient(ellipse 90% 55% at 50% 8%, rgba(12, 40, 110, 0.45), transparent 70%),
    #04060f;
}

body.home .aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.home .aurora svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.home .stage {
  position: relative;
  z-index: 1;
}

body.home .panel {
  width: min(1180px, 96vw);
  padding-top: 12px;
}

body.home .brand {
  position: relative;
  display: grid;
  place-items: center;
  margin: 72px 0 0;
}

body.home .brand-arc {
  position: absolute;
  width: min(920px, 94vw);
  height: auto;
  top: -196px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

body.home .logo {
  position: relative;
  z-index: 1;
  width: clamp(240px, 32vw, 420px);
  clip-path: inset(0 0 16% 0);
  filter: none;
}

body.home h1 {
  margin: 2px 0 26px;
  font-size: clamp(26px, 2.5vw, 40px);
  text-shadow: none;
}

body.home .actions {
  position: relative;
  align-items: stretch;
}

body.home .btn {
  --btn: #333333;
  position: relative;
  overflow: hidden;
  direction: ltr;
  justify-content: space-between;
  gap: 12px;
  min-height: 84px;
  padding-inline: 18px;
  border-radius: 22px;
  font-size: clamp(17px, 1.5vw, 22px);
  white-space: nowrap;
  color: #111;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: var(--btn);
  box-shadow: none;
}

body.home .btn-admin { --btn: var(--admin); }
body.home .btn-agent { --btn: var(--agent); }
body.home .btn-support { --btn: var(--support); }

body.home .btn::before {
  content: none;
}

body.home .btn-label,
body.home .btn-mark,
body.home .btn-go {
  position: relative;
  z-index: 1;
}

body.home .btn-label {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

body.home .btn-mark,
body.home .btn-go {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0, 0, 0, 0.72);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

body.home .btn-ico,
body.home .btn-go svg {
  width: 24px;
  height: 24px;
}

body.home .btn:hover {
  filter: brightness(1.06);
  box-shadow: none;
}

@media (min-width: 861px) {
  body.home .actions {
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  body.home .btn,
  body.home .btn-extra {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    gap: 8px;
    min-height: 64px;
    padding-inline: 10px;
    font-size: 15px;
  }

  body.home .btn-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
  }

  body.home .btn-mark,
  body.home .btn-go {
    width: 34px;
    height: 34px;
  }

  body.home .btn-ico,
  body.home .btn-go svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 860px) {
  body.home .stage {
    align-items: flex-start;
    justify-content: flex-start;
  }

  body.home .panel {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: 100dvh;
    padding: 8px 12px 24px;
  }

  body.home .brand {
    flex: none;
    margin-top: 56px;
  }

  body.home .brand-arc {
    width: 88vw;
    top: -52px;
  }

  body.home .logo {
    width: min(168px, 44vw);
  }

  body.home h1 {
    margin-bottom: 14px;
    font-size: clamp(18px, 4.8vw, 26px);
    line-height: 1.35;
  }

  body.home .actions {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    flex: none;
    align-self: center;
    width: min(440px, calc(100% - 24px));
    max-width: none;
    margin-top: auto;
    margin-bottom: auto;
    gap: 10px;
  }

  body.home .btn,
  body.home .btn-extra {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 58px;
    padding-inline: 10px;
    gap: 8px;
    font-size: 16px;
    border-radius: 18px;
  }

  body.home .btn-mark,
  body.home .btn-go {
    width: 34px;
    height: 34px;
  }

  body.home .btn-ico,
  body.home .btn-go svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  body.home .btn {
    font-size: 14px;
    padding-inline: 8px;
  }

  body.home .btn-mark,
  body.home .btn-go {
    width: 28px;
    height: 28px;
  }
}

@media (max-height: 520px) and (min-width: 640px) {
  body.home .stage {
    align-items: center;
  }

  body.home .panel {
    display: block;
    min-height: 0;
  }

  body.home .actions {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    align-self: auto;
    margin-top: 0;
    margin-bottom: 0;
    max-width: none;
    width: 100%;
  }

  body.home .brand {
    margin-top: 40px;
  }

  body.home .brand-arc {
    top: -32px;
  }

  body.home .logo {
    width: 112px;
  }

  body.home h1 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  body.home .btn {
    min-height: 48px;
    padding-inline: 8px;
    gap: 6px;
    font-size: 14px;
  }

  body.home .btn-mark,
  body.home .btn-go {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 860px) {
  body.panel-app .sidebar {
    border-left: 0;
    border-bottom: 1px solid rgba(240, 200, 75, 0.45);
    box-shadow: none;
  }

  body.panel-app .stat-value {
    font-size: 28px;
  }

  body.panel-app .home-row {
    width: 100%;
  }
}

body.panel-app .settings-view {
  max-width: 1080px;
}

body.panel-app .settings-view .set-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

body.panel-app .settings-view .set-head-copy {
  min-width: 0;
}

body.panel-app .settings-view h1 {
  margin: 0;
  color: #f6c73b;
  font-size: 34px;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(246, 199, 59, 0.35);
}

body.panel-app .settings-view h2 {
  margin: 2px 0 0;
  color: #f4f4f4;
  font-size: 16px;
  font-weight: 800;
}

body.panel-app .settings-view .lede,
body.panel-app .settings-view .hint {
  margin: 2px 0 0;
  color: #b9b9c4;
  font-size: 13px;
  line-height: 1.45;
}

body.panel-app .settings-view .logo-preview {
  display: block;
  width: 92px;
  height: 92px;
  flex: none;
  margin: 0;
  padding: 8px;
  object-fit: contain;
  border: 1.5px solid #f0c84b;
  border-radius: 18px;
  background: #07080d;
  box-shadow: 0 0 16px rgba(240, 200, 75, 0.55);
}

body.panel-app .settings-view .set-card {
  margin: 0 0 14px;
  padding: 16px 16px 14px;
  border: 1.5px solid rgba(240, 200, 75, 0.85);
  border-radius: 22px;
  background: rgba(8, 10, 16, 0.55);
  box-shadow: 0 0 18px rgba(240, 200, 75, 0.16);
}

body.panel-app .settings-view .logo-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

body.panel-app .settings-view .logo-pick-copy {
  flex: 1;
  min-width: 0;
}

body.panel-app .settings-view .logo-pick-title {
  margin: 0;
  color: #f6c73b;
  font-size: 18px;
  font-weight: 800;
}

body.panel-app .settings-view .file-chosen {
  margin: 4px 0 0;
  color: #d7d7d7;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.panel-app .settings-view .file-doc,
body.panel-app .settings-view .file-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #f0c84b;
}

body.panel-app .settings-view .file-doc {
  width: 54px;
  height: 54px;
  border: 1.5px solid #f0c84b;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 12px rgba(240, 200, 75, 0.28);
}

body.panel-app .settings-view .file-doc svg {
  width: 26px;
  height: 26px;
}

body.panel-app .settings-view .file-pick {
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: #1a1204;
  background: linear-gradient(180deg, #ffe38a, #f0b000);
  box-shadow: 0 0 14px rgba(255, 186, 40, 0.45);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

body.panel-app .settings-view .file-pick svg {
  width: 18px;
  height: 18px;
}

body.panel-app .settings-view .set-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  direction: ltr;
  margin-top: 14px;
}

body.panel-app .settings-view .btn {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding-inline: 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

body.panel-app .settings-view .btn > span:not(.set-mark):not(.set-go) {
  flex: 1;
  min-width: 0;
  text-align: center;
}

body.panel-app .settings-view .set-save {
  color: #1a1204;
  border-color: rgba(255, 236, 170, 0.9);
  background: linear-gradient(180deg, #ffe38a, #ffc107 46%, #e89a00);
  box-shadow: 0 0 18px rgba(255, 186, 40, 0.72);
}

body.panel-app .settings-view .set-reset {
  border-color: rgba(170, 205, 255, 0.7);
  background: linear-gradient(180deg, #3d7dff, #1554f0 52%, #0c38b8);
  box-shadow: 0 0 18px rgba(40, 110, 255, 0.65);
}

body.panel-app .settings-view .set-logout {
  border-color: rgba(255, 180, 220, 0.55);
  background: linear-gradient(180deg, #ff4db8, #e21888 55%, #a01060);
  box-shadow: 0 0 18px rgba(255, 40, 160, 0.55);
}

body.panel-app .settings-view .set-pass {
  color: #fff;
  border-color: rgba(220, 220, 220, 0.45);
  background: linear-gradient(180deg, #3a3a40, #1c1c20 60%, #121214);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}

body.panel-app .settings-view .set-mark,
body.panel-app .settings-view .set-go {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}

body.panel-app .settings-view .set-mark svg,
body.panel-app .settings-view .set-go svg {
  width: 16px;
  height: 16px;
}

body.panel-app .settings-view .status {
  margin: 8px 0 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.3;
}

body.panel-app .settings-view .status:empty {
  display: none;
}

body.panel-app .settings-view .pass-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f6c73b;
}

body.panel-app .settings-view .pass-title h2 {
  color: #f6c73b;
}

body.panel-app .settings-view .pass-title svg {
  width: 18px;
  height: 18px;
  flex: none;
}

body.panel-app .settings-view .pass-card .lede {
  margin-bottom: 10px;
}

body.panel-app .settings-view .pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.panel-app .settings-view .pass-grid .field {
  position: relative;
  margin: 0;
}

body.panel-app .settings-view .pass-grid .field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.panel-app .settings-view .pass-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 16px;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.panel-app .settings-view .pass-shell input {
  flex: 1;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f5f5;
  font-size: 15px;
  text-align: right;
  box-shadow: none;
}

body.panel-app .settings-view .pass-shell input::placeholder {
  color: #9a9aa8;
}

body.panel-app .settings-view .pass-eye,
body.panel-app .settings-view .pass-lock {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  color: #c8c8d2;
}

body.panel-app .settings-view .pass-eye {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.panel-app .settings-view .pass-eye svg,
body.panel-app .settings-view .pass-lock svg {
  width: 20px;
  height: 20px;
}

body.panel-app .settings-view .pass-eye.is-open .eye-slash {
  display: none;
}

@media (max-width: 860px) {
  body.panel-app .settings-view h1 {
    font-size: 28px;
  }

  body.panel-app .settings-view .logo-preview {
    width: 72px;
    height: 72px;
  }

  body.panel-app .settings-view .logo-pick {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "pick pick";
    direction: ltr;
    align-items: center;
    gap: 10px 12px;
  }

  body.panel-app .settings-view .file-doc {
    grid-area: icon;
  }

  body.panel-app .settings-view .logo-pick-copy {
    grid-area: copy;
    text-align: right;
  }

  body.panel-app .settings-view .logo-pick-title {
    font-size: 16px;
  }

  body.panel-app .settings-view .file-pick {
    grid-area: pick;
    justify-self: end;
  }

  body.panel-app .settings-view .set-actions,
  body.panel-app .settings-view .pass-grid {
    grid-template-columns: 1fr;
  }

  body.panel-app .settings-view .btn {
    min-height: 48px;
    font-size: 16px;
  }
}
