:root {
  --sky-top: #59b8ff;
  --sky-mid: #95dcff;
  --sky-bottom: #ecfbff;
  --bg-0: #4daef6;
  --bg-1: #e5f8ff;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-soft: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(89, 139, 210, 0.22);
  --line-strong: rgba(79, 148, 227, 0.34);
  --ink: #11427a;
  --muted: #4d6f97;
  --accent: #7dd9ff;
  --accent-2: #1c8df8;
  --success: #7be0a8;
  --warning: #ffd873;
  --danger: #ff9fac;
  --bright: #ffffff;
  --shadow: 0 28px 70px rgba(54, 120, 194, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: ui-rounded, "Trebuchet MS", "Verdana", sans-serif;
  background:
    radial-gradient(circle at 50% 4%, rgba(173, 233, 255, 0.36), transparent 24%),
    linear-gradient(180deg, var(--bg-0) 0%, #84cff9 42%, #bbeafd 74%, var(--bg-1) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 229, 145, 0.8) 0 1px, transparent 2px);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 40px 70px;
  opacity: 0.55;
}

.sky-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb,
.cloud,
.spark {
  position: absolute;
}

.orb {
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.42;
}

.orb-a {
  width: 320px;
  height: 320px;
  top: 3%;
  left: -4%;
  background: radial-gradient(circle, rgba(161, 228, 255, 0.58), transparent 68%);
}

.orb-b {
  width: 380px;
  height: 380px;
  right: -10%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(173, 233, 255, 0.44), transparent 72%);
}

.cloud {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(105, 164, 220, 0.15);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.cloud-a {
  width: 142px;
  height: 44px;
  top: 9%;
  left: 4%;
}

.cloud-a::before {
  width: 58px;
  height: 58px;
  left: 10px;
  bottom: 9px;
}

.cloud-a::after {
  width: 62px;
  height: 62px;
  right: 16px;
  bottom: 13px;
}

.cloud-b {
  width: 110px;
  height: 36px;
  top: 16%;
  right: 18%;
}

.cloud-b::before {
  width: 46px;
  height: 46px;
  left: 8px;
  bottom: 8px;
}

.cloud-b::after {
  width: 48px;
  height: 48px;
  right: 10px;
  bottom: 10px;
}

.cloud-c {
  width: 164px;
  height: 52px;
  right: 2%;
  top: 8%;
}

.cloud-c::before {
  width: 64px;
  height: 64px;
  left: 12px;
  bottom: 10px;
}

.cloud-c::after {
  width: 70px;
  height: 70px;
  right: 17px;
  bottom: 14px;
}

.spark {
  width: 18px;
  aspect-ratio: 1;
  background: linear-gradient(180deg, rgba(255, 250, 206, 0.98), rgba(255, 208, 64, 0.95));
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
  filter: drop-shadow(0 0 16px rgba(255, 225, 126, 0.6));
}

.spark-a {
  top: 24%;
  left: 29%;
  transform: scale(1.6);
}

.spark-b {
  top: 34%;
  right: 12%;
  transform: scale(1.1);
}

.spark-c {
  bottom: 24%;
  left: 20%;
  transform: scale(0.95);
}

.portal-shell {
  position: relative;
  width: min(1160px, calc(100vw - 24px));
  margin: 16px auto 36px;
  z-index: 1;
}

.portal-topbar,
.auth-panel,
.hero-card,
.side-panel,
.panel,
.flash-message {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 250, 255, 0.84), rgba(227, 245, 253, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.portal-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.94), rgba(235, 246, 252, 0.84));
  box-shadow: 0 14px 28px rgba(69, 131, 191, 0.1);
}

.portal-topbar::before {
  display: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0f4174;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(43, 127, 210, 0.18);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-pill,
.eyebrow,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.user-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.user-pill {
  gap: 10px;
}

.user-name {
  font-weight: 700;
}

.user-role {
  color: #2d6ea9;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.nav-link.accent,
.nav-button {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0f4174;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(39, 126, 221, 0.16);
}

.inline-form {
  margin: 0;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.flash-message {
  padding: 14px 16px;
  border-radius: 16px;
}

.flash-message.success {
  border-color: rgba(88, 223, 157, 0.32);
}

.flash-message.error {
  border-color: rgba(255, 132, 148, 0.32);
}

.portal-main {
  margin-top: 18px;
}

.auth-body .portal-shell {
  width: min(100vw - 24px, 620px);
}

.auth-body .portal-topbar,
.auth-body .page-foot {
  width: 100%;
}

.auth-layout,
.hero-grid,
.panel-grid {
  display: grid;
  gap: 16px;
}

.auth-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
}

.auth-layout-single {
  width: 100%;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}

.landing-grid {
  align-items: start;
}

.landing-hero {
  min-height: 100%;
}

.landing-bullets {
  margin-top: 26px;
}

.auth-shell {
  display: grid;
  gap: 18px;
}

.auth-shell-compact {
  gap: 14px;
}

.auth-switch {
  display: inline-flex;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.auth-pane.is-active {
  padding-top: 2px;
}

.auth-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.auth-switch-link.is-active {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0f4174;
}

.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: block;
}

.auth-panel,
.hero-card,
.side-panel,
.panel {
  border-radius: 28px;
  padding: 22px;
  overflow: hidden;
}

.hero-card,
.panel,
.side-panel,
.auth-panel {
  position: relative;
}

.panel::before,
.side-panel::before,
.auth-panel::before {
  content: "";
  position: absolute;
  inset: -32% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 215, 255, 0.2), transparent 72%);
  pointer-events: none;
}

.hero-card {
  background:
    radial-gradient(circle at 48% 18%, rgba(173, 233, 255, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(66, 163, 237, 0.88), rgba(98, 204, 252, 0.76) 48%, rgba(159, 227, 255, 0.7));
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -150px;
  background: radial-gradient(circle, rgba(166, 229, 255, 0.34), transparent 72%);
}

.hero-card::after {
  width: 520px;
  height: 180px;
  left: -90px;
  bottom: -120px;
  background: radial-gradient(circle at 50% 0, rgba(157, 224, 255, 0.34), transparent 72%);
}

.hero-card > *,
.side-panel > *,
.panel > *,
.auth-panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  border: 1px solid rgba(102, 208, 255, 0.2);
  background: rgba(102, 208, 255, 0.14);
  color: #2f6da8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.muted {
  color: var(--muted);
}

.hero-card .eyebrow {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--bright);
}

.hero-shell,
.protocol-card {
  backdrop-filter: blur(16px);
}

.hero-shell {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(58, 154, 232, 0.96), rgba(101, 201, 247, 0.88) 48%, rgba(175, 230, 255, 0.78));
  box-shadow: 0 30px 70px rgba(43, 112, 187, 0.18);
  overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
  display: none;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--bright);
}

.hero-shell h1 {
  color: var(--bright);
  text-shadow: 0 8px 26px rgba(42, 116, 186, 0.22);
}

.hero-lead {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-support {
  max-width: 34ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.62;
}

.hero-inline-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-shell .hero-actions {
  margin-top: 18px;
}

.hero-link {
  min-height: 34px;
}

.hero-art {
  display: grid;
  place-items: center;
  min-height: 248px;
}

.hero-glow {
  display: none;
}

.hero-frame {
  position: relative;
  width: min(286px, 100%);
  border-radius: 30px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 42px rgba(57, 132, 203, 0.2);
}

.panel-frame {
  width: min(220px, 100%);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.hero-badge {
  margin-top: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd9ff, #1c8df8);
  color: #ffffff;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 0 rgba(17, 66, 122, 0.22);
  box-shadow: 0 18px 34px rgba(43, 127, 210, 0.22);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

.bento-portal {
  gap: 24px;
}

.subscription-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.panel-subscription-main,
.panel-qr {
  min-height: 100%;
}

.panel-subscription-main {
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.95), rgba(232, 245, 253, 0.84));
}

.panel-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.95), rgba(233, 246, 254, 0.84));
}

.section-intro {
  max-width: none;
}

.panel-qr .panel-kicker {
  justify-self: center;
}

.qr-shell-large {
  width: min(100%, 332px);
  padding: 22px;
  border-radius: 34px;
}

.qr-code-large {
  width: min(100%, 288px);
}

.panel-subscription,
.panel-happ,
.panel-telegram {
  grid-column: 1 / -1;
}

.panel-subscription::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 214, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.panel-subscription {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  padding: 24px;
}

.panel-happ,
.panel-telegram {
  padding: 24px;
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 190, 249, 0.18), rgba(48, 143, 223, 0.14));
  border: 1px solid rgba(70, 151, 219, 0.24);
  color: #1d5f9f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.panel-copy,
.qr-card,
.panel-happ,
.panel-telegram {
  position: relative;
  z-index: 1;
}

.qr-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.qr-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.qr-shell {
  display: grid;
  place-items: center;
  width: min(100%, 232px);
  padding: 16px;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid rgba(105, 164, 220, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qr-code {
  display: block;
  width: min(100%, 200px);
  height: auto;
  margin: 0 auto;
}

.qr-note {
  margin: 0;
  max-width: 24ch;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

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

.btn {
  appearance: none;
  border: 0;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 28px rgba(39, 126, 221, 0.22);
}

.secondary {
  background: linear-gradient(180deg, #b5efff, #69cfff);
  color: #0f4b86;
  box-shadow: 0 16px 26px rgba(70, 174, 233, 0.16);
}

.ghost {
  background: rgba(36, 152, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(57, 145, 220, 0.14);
}

.url {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(57, 145, 220, 0.14);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fact-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(86, 183, 255, 0.09);
  border: 1px solid rgba(57, 145, 220, 0.14);
  color: #2268ab;
  font-size: 13px;
  font-weight: 800;
}

.help-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.help-list span {
  display: block;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(57, 145, 220, 0.12);
  color: #245b93;
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-note {
  margin: 0;
  max-width: none;
  color: var(--muted);
  text-align: left;
  line-height: 1.6;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.protocol-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(66, 154, 228, 0.16);
  background: linear-gradient(180deg, rgba(242, 250, 255, 0.82), rgba(225, 243, 252, 0.72));
  box-shadow: 0 16px 34px rgba(83, 142, 196, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.protocol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(83, 142, 196, 0.16);
}

.protocol-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.protocol-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.protocol-sub {
  margin: 8px 0 0;
  color: #3d83c1;
  font-weight: 800;
}

.protocol-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.protocol-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.protocol-badge,
.protocol-hint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.protocol-badge {
  background: linear-gradient(180deg, rgba(121, 219, 255, 0.98), rgba(64, 164, 244, 0.94));
  color: #ffffff;
}

.protocol-hint {
  background: rgba(36, 152, 255, 0.08);
  border: 1px solid rgba(57, 145, 220, 0.14);
  color: #2d6ea9;
}

.protocol-dot {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fe3ff, #2192ff);
  box-shadow: 0 0 0 6px rgba(127, 227, 255, 0.14);
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 16px;
  max-width: 12ch;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.auth-body .form-head h2 {
  margin-top: 0;
}

.lead-copy,
.panel-text,
.entry-card p,
.form-head p,
.fact-grid dt,
.page-foot,
.empty-note,
table td,
table th {
  color: var(--muted);
}

.lead-copy,
.panel-text,
.entry-card p,
.form-head p {
  margin-top: 14px;
  line-height: 1.65;
}

.hero-card h1 {
  color: var(--bright);
  text-shadow: 0 8px 26px rgba(42, 116, 186, 0.22);
}

.hero-card .lead-copy {
  color: rgba(255, 255, 255, 0.92);
}

.bullet-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.bullet-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.bullet-card strong {
  display: block;
  font-size: 15px;
}

.bullet-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 14px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(102, 208, 255, 0.08);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.primary-button,
.secondary-button {
  border: 0;
}

.primary-button {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0f4174;
  font-weight: 800;
}

.secondary-button {
  background: rgba(121, 216, 255, 0.22);
  border: 1px solid rgba(79, 146, 255, 0.18);
  color: var(--ink);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.ghost-button.mini {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-link:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.form-foot {
  margin-top: 16px;
  color: var(--muted);
}

.form-foot a {
  color: var(--accent);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.hero-actions,
.button-row,
.badge-row,
.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 18px;
}

.side-panel .secondary-button {
  margin-top: 18px;
  width: 100%;
}

.fact-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.fact-grid dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact-grid dd {
  margin: 6px 0 0;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.panel-grid-single {
  grid-template-columns: 1fr;
}

.admin-panels {
  align-items: start;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.code-box,
.table-code,
.log-box {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.92);
  color: #1f558d;
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow: auto;
}

.code-box {
  margin-top: 16px;
}

.code-box.compact,
.table-code {
  font-size: 12px;
}

.button-row {
  margin-top: 16px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.entry-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 34px rgba(83, 142, 196, 0.08);
}

.entry-card h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.table-wrap {
  overflow: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(132, 189, 255, 0.08);
  vertical-align: top;
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  background: rgba(247, 251, 255, 0.96);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-box {
  margin-top: 16px;
  min-height: 220px;
  white-space: pre-wrap;
}

.page-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 6px 0;
}

.hero-shell {
  gap: 26px;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(49, 148, 229, 0.92), rgba(102, 205, 248, 0.82) 42%, rgba(181, 239, 255, 0.74));
  box-shadow:
    0 30px 70px rgba(43, 112, 187, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  isolation: isolate;
}

.hero-shell::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 72%);
}

.hero-shell::after {
  width: 620px;
  height: 220px;
  left: -110px;
  bottom: -145px;
  background: radial-gradient(circle at 50% 0, rgba(204, 244, 255, 0.32), transparent 72%);
}

.hero-copy {
  max-width: 660px;
}

.hero-shell h1 {
  max-width: 10.5ch;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 0.9;
  text-shadow: 0 10px 28px rgba(29, 92, 153, 0.26);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.72;
}

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

.hero-stat {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
}

.hero-stat strong {
  font-size: 18px;
  line-height: 1.1;
}

.hero-stat > span:last-child {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 248, 255, 0.92);
}

.hero-art {
  min-height: 310px;
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(42, 113, 182, 0.2);
  backdrop-filter: blur(12px);
}

.hero-orbit span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 248, 255, 0.86);
}

.hero-orbit strong {
  font-size: 22px;
  line-height: 1;
}

.hero-orbit-a {
  top: 18px;
  right: 6px;
}

.hero-orbit-b {
  left: 8px;
  bottom: 58px;
}

.hero-glow {
  width: 112%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(172, 237, 255, 0.26) 54%, transparent 76%);
  filter: blur(14px);
}

.hero-frame {
  width: min(310px, 100%);
  padding: 14px;
  border-radius: 34px;
  transform: rotate(-5deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2));
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 30px 50px rgba(39, 108, 173, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.hero-logo {
  border-radius: 28px;
}

.hero-badge {
  position: relative;
  margin-top: 22px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(43, 127, 210, 0.24);
}

.panel {
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.9), rgba(231, 245, 253, 0.78));
  box-shadow:
    0 28px 56px rgba(69, 131, 191, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.panel-subscription,
.panel-happ,
.panel-telegram {
  overflow: hidden;
}

.panel-subscription {
  background:
    radial-gradient(circle at 100% 0, rgba(141, 229, 255, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(247, 252, 255, 0.95), rgba(231, 245, 253, 0.82));
}

.panel-happ {
  background:
    radial-gradient(circle at 0 0, rgba(173, 233, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(250, 254, 255, 0.94), rgba(232, 247, 255, 0.82));
}

.panel-telegram {
  background:
    radial-gradient(circle at 100% 100%, rgba(130, 220, 255, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.94), rgba(229, 244, 252, 0.82));
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(57, 145, 220, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: #1c67a6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.subscription-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.subscription-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(111, 207, 255, 0.12);
  border: 1px solid rgba(57, 145, 220, 0.14);
  color: #1f6aa8;
  font-size: 13px;
  font-weight: 800;
}

.url {
  padding: 16px 18px;
  border-radius: 24px;
  border-color: rgba(57, 145, 220, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 255, 0.82));
  color: #1b5f98;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 14px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(81, 156, 214, 0.08);
}

.actions .btn {
  flex: 1 1 180px;
}

.btn {
  position: relative;
  min-height: 54px;
  border-radius: 20px;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 30px rgba(75, 139, 200, 0.12);
}

.primary {
  background: linear-gradient(180deg, #81e1ff, #1386f0);
  box-shadow: 0 18px 30px rgba(27, 123, 224, 0.24);
}

.secondary {
  background: linear-gradient(180deg, #d5f8ff, #8ad9ff);
  box-shadow: 0 16px 26px rgba(70, 174, 233, 0.18);
}

.ghost {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(57, 145, 220, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.fact-pill,
.help-list span {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.qr-card {
  padding: 18px 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 250, 255, 0.64));
  border: 1px solid rgba(105, 164, 220, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.qr-shell {
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 34px rgba(84, 155, 210, 0.12);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.step-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(57, 145, 220, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 249, 255, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.step-card strong {
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}

.step-card span:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8be5ff, #36a4fb);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 22px rgba(53, 148, 232, 0.18);
}

.protocol-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.protocol-card::before {
  display: none;
}

.protocol-note {
  max-width: none;
}

.page-foot {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(57, 145, 220, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(235, 248, 255, 0.6));
  box-shadow: 0 18px 34px rgba(76, 144, 201, 0.1);
}

.cabinet-dashboard .portal-shell {
  width: min(880px, calc(100vw - 28px));
}

.cabinet-dashboard .portal-topbar {
  padding: 10px 12px;
  border-radius: 20px;
}

.cabinet-dashboard .portal-main {
  margin-top: 16px;
}

.cabinet-dashboard .bento-portal {
  gap: 18px;
}

.hero-shell-cabinet {
  grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.36fr);
  gap: 14px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  align-items: stretch;
}

.cabinet-dashboard .hero-shell-cabinet {
  display: block;
}

.hero-shell-cabinet .hero-copy {
  max-width: none;
}

.hero-copy-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(79, 153, 213, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(163, 232, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(250, 254, 255, 0.96), rgba(234, 246, 253, 0.92));
  box-shadow: 0 18px 34px rgba(66, 134, 188, 0.11);
}

.hero-copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-copy-card-app {
  position: relative;
  overflow: hidden;
  gap: 12px;
  padding: 24px 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(148, 227, 255, 0.24), transparent 30%),
    radial-gradient(circle at 14% 100%, rgba(197, 242, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(250, 254, 255, 0.96), rgba(233, 246, 253, 0.92));
}

.hero-copy-card-app::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 224, 255, 0.26), transparent 70%);
  pointer-events: none;
}

.hero-shell-cabinet h1 {
  max-width: 10.5ch;
  margin-top: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.94;
  color: #153d68;
  text-shadow: none;
}

.hero-shell-cabinet .hero-lead {
  max-width: 26ch;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #456b8f;
}

.hero-subnote {
  max-width: 34ch;
  color: #5b7b9a;
  font-size: 13px;
  line-height: 1.52;
}

.hero-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 153, 212, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #2e6ea3;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-shell-cabinet .hero-eyebrow {
  width: fit-content;
  background: rgba(54, 157, 224, 0.12);
  border-color: rgba(64, 152, 212, 0.18);
  color: #2f6fa4;
}

.hero-quicklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-quickitem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 10px;
  border-radius: 18px;
  border: 1px solid rgba(86, 157, 210, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #2c678f;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.hero-quickitem strong {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8be5ff, #36a4fb);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.hero-shell-cabinet .hero-inline-notes {
  margin-top: 4px;
  gap: 8px;
}

.hero-shell-cabinet .hero-note {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(86, 157, 210, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #2c678f;
  font-size: 11px;
}

.hero-art-banner {
  display: block;
  min-height: auto;
}

.hero-banner-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  aspect-ratio: 2.05 / 1;
  border-radius: 26px;
  border: 1px solid rgba(94, 173, 229, 0.18);
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.94), rgba(227, 242, 252, 0.88));
  box-shadow: 0 20px 38px rgba(66, 134, 188, 0.12);
}

.hero-banner-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(180deg, transparent, rgba(17, 90, 146, 0.1));
  pointer-events: none;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.panel-subscription,
.panel-happ,
.panel-telegram {
  padding: 20px;
}

.panel-subscription {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
}

.panel-copy h2,
.panel-happ h2,
.panel-telegram h2 {
  margin-top: 10px;
  font-size: clamp(24px, 2.5vw, 32px);
}

.panel-split-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.happ-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.happ-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(77, 159, 217, 0.14);
  color: #2d6ea1;
  font-size: 12px;
  font-weight: 800;
}

.panel-happ .panel-text {
  max-width: none;
  margin-top: 10px;
}

.happ-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.happ-main {
  display: grid;
  gap: 14px;
}

.panel-happ {
  background:
    radial-gradient(circle at 100% 0, rgba(132, 222, 255, 0.2), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(176, 238, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(250, 254, 255, 0.96), rgba(232, 247, 255, 0.84));
}

.happ-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.happ-side-kicker {
  color: #2f6ea3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.happ-points {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.happ-points span {
  display: flex;
  align-items: flex-start;
  min-height: 58px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(82, 163, 218, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #3d6f98;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.protocol-grid-compact {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.protocol-grid-compact .protocol-card {
  padding: 18px;
}

.protocol-grid-compact .protocol-head {
  align-items: center;
}

.protocol-grid-compact .actions {
  margin-top: 14px;
}

.panel-protocol-health {
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(145, 228, 255, 0.18), transparent 28%),
    radial-gradient(circle at 0 100%, rgba(185, 241, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(250, 254, 255, 0.96), rgba(232, 247, 255, 0.84));
}

.protocol-grid-health {
  margin-top: 18px;
}

.protocol-health-card {
  display: grid;
  gap: 14px;
}

.protocol-health-green {
  border-color: rgba(77, 186, 126, 0.26);
}

.protocol-health-yellow {
  border-color: rgba(240, 190, 75, 0.28);
}

.protocol-health-red {
  border-color: rgba(232, 112, 122, 0.26);
}

.protocol-head-health {
  align-items: flex-start;
}

.protocol-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.protocol-role {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(78, 153, 210, 0.16);
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #2d6ea1;
}

.role-auto {
  background: linear-gradient(180deg, rgba(122, 221, 255, 0.98), rgba(58, 165, 245, 0.92));
  color: #ffffff;
}

.role-primary {
  background: rgba(111, 224, 168, 0.18);
  color: #1c7e4f;
}

.role-backup {
  background: rgba(255, 216, 115, 0.24);
  color: #8b6200;
}

.health-dot {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.46);
}

.health-dot-green {
  background: linear-gradient(180deg, #80e0a9, #34b26d);
}

.health-dot-yellow {
  background: linear-gradient(180deg, #ffe48b, #f4ba38);
}

.health-dot-red {
  background: linear-gradient(180deg, #ffb1b9, #e46b78);
}

.protocol-meta-health {
  margin-top: 0;
}

.quality-stack {
  display: grid;
  gap: 12px;
}

.quality-row {
  display: grid;
  gap: 8px;
}

.quality-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #335f84;
  font-size: 13px;
  font-weight: 800;
}

.quality-score {
  font-size: 13px;
}

.quality-score.tone-green {
  color: #1c8551;
}

.quality-score.tone-yellow {
  color: #946700;
}

.quality-score.tone-red {
  color: #b43c49;
}

.quality-meter {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(72, 149, 213, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(117, 165, 205, 0.12);
}

.quality-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.quality-meter.tone-green span {
  background: linear-gradient(90deg, #85e0ab, #3cb675);
}

.quality-meter.tone-yellow span {
  background: linear-gradient(90deg, #ffe48c, #f0bb44);
}

.quality-meter.tone-red span {
  background: linear-gradient(90deg, #ffb1b8, #e56c78);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.22), transparent 34%);
  opacity: var(--card-glow, 0);
  transition: opacity 0.3s ease;
}

body.ui-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.ui-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.ui-ready [data-tilt].is-hovered {
  --card-glow: 1;
}

.hero-shell .hero-copy {
  transform: translateY(calc(var(--hero-shift, 0px) * -0.16));
}

.hero-shell .hero-art {
  transform: translateY(calc(var(--hero-shift, 0px) * 0.1));
}

.user-pill {
  min-height: 38px;
  padding-right: 14px;
}

.user-role,
.panel-head,
.panel-badge,
.subscription-rail,
.fact-row,
.help-list,
.hero-showcase,
.hero-orbit,
.hero-badge,
.steps-grid,
.section-note,
.protocol-meta,
.protocol-note,
.page-foot {
  display: none;
}

body.admin-dashboard {
  background:
    radial-gradient(circle at 18% 0, rgba(232, 246, 255, 0.42), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(169, 229, 255, 0.28), transparent 22%),
    linear-gradient(180deg, #58b9f7 0%, #8dd8fb 38%, #caecff 100%);
}

body.admin-dashboard .portal-shell {
  width: min(1216px, calc(100vw - 28px));
}

body.admin-dashboard .cloud {
  opacity: 0.84;
}

body.admin-dashboard .spark {
  opacity: 0.4;
  filter: drop-shadow(0 0 12px rgba(255, 225, 126, 0.34));
}

.admin-stack {
  display: grid;
  gap: 22px;
}

.admin-summary-panel,
.admin-section {
  padding: 24px;
}

.admin-summary-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(149, 228, 255, 0.22), transparent 26%),
    radial-gradient(circle at 0 100%, rgba(193, 242, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(249, 254, 255, 0.96), rgba(232, 246, 253, 0.9));
}

.admin-summary-panel .panel-head,
.admin-section .panel-head {
  display: flex;
}

.admin-summary-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-summary-copy {
  display: grid;
  gap: 12px;
  max-width: none;
  min-width: 0;
}

.admin-summary-panel .eyebrow {
  width: fit-content;
}

.admin-summary-panel h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 0.98;
}

.admin-summary-note {
  color: #4d7196;
  line-height: 1.62;
}

.admin-summary-highlight {
  display: grid;
  gap: 8px;
  align-self: stretch;
  min-width: min(100%, 260px);
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(95, 166, 220, 0.16);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 30px rgba(107, 172, 221, 0.08);
}

.admin-summary-highlight-label {
  color: #6483a2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-summary-highlight strong {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  color: #1d4f82;
}

.admin-summary-inline {
  margin-top: 14px;
}

.admin-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-inline-stat {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 159, 216, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: #335f89;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.admin-inline-stat strong {
  margin-left: 6px;
  color: #1d4f82;
}

.admin-traffic-note {
  margin-top: 14px;
  color: var(--muted);
}

.admin-traffic-errors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-users-section {
  background:
    radial-gradient(circle at 100% 0, rgba(146, 227, 255, 0.18), transparent 24%),
    radial-gradient(circle at 0 100%, rgba(193, 242, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.95), rgba(230, 245, 252, 0.88));
}

.admin-section-head {
  align-items: flex-end;
  gap: 16px;
}

.admin-section-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-section-note {
  margin: 0;
  max-width: none;
  color: #5b7b9a;
  line-height: 1.62;
}

.admin-section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(90, 159, 216, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: #2f6fa4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.admin-users-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  grid-template-areas: "list details";
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.admin-user-toolbar {
  display: grid;
  grid-area: details;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(98, 165, 219, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 248, 253, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 34px rgba(71, 136, 191, 0.1);
}

.toolbar-search,
.toolbar-current,
.toolbar-role,
.toolbar-login,
.toolbar-link-card,
.toolbar-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(102, 170, 222, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toolbar-search,
.toolbar-link-card,
.toolbar-actions {
  align-content: start;
}

.toolbar-search {
  grid-column: 1 / -1;
}

.toolbar-current {
  align-content: start;
  color: var(--muted);
}

.toolbar-caption {
  color: #6b89a8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-current strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.toolbar-current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(84, 158, 215, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #2f6fa4;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.toolbar-meta-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #8b5a2b;
  font-size: 12px;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.toolbar-role,
.toolbar-login {
  align-content: start;
}

.toolbar-link-card {
  grid-column: 1 / -1;
}

.toolbar-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(252, 254, 255, 0.94);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.toolbar-input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(102, 208, 255, 0.08);
}

.toolbar-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toolbar-select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(252, 254, 255, 0.94);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.toolbar-select:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(102, 208, 255, 0.08);
}

.toolbar-hint {
  margin: 0;
  color: #6282a1;
  font-size: 12px;
  line-height: 1.5;
}

.toolbar-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-filter-chip {
  appearance: none;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(84, 158, 215, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #46709b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.toolbar-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(64, 151, 223, 0.24);
}

.toolbar-filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, #9ae7ff, #3caaff);
  color: #0f477c;
  box-shadow: 0 12px 22px rgba(65, 156, 225, 0.14);
}

.toolbar-link-box {
  display: flex;
  align-items: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(84, 158, 215, 0.14);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #345f89;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.toolbar-actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.toolbar-actions .ghost-button {
  width: 100%;
  min-width: 0;
  box-shadow: 0 12px 24px rgba(76, 146, 209, 0.08);
}

.toolbar-action-strong {
  border-color: transparent;
  background: linear-gradient(180deg, #9ae7ff, #3caaff);
  color: #0f477c;
  font-weight: 900;
}

.toolbar-action-strong:hover {
  background: linear-gradient(180deg, #a8ecff, #46b0ff);
}

.ghost-button:disabled,
.toolbar-select:disabled,
.ghost-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
  pointer-events: none;
}

.ghost-button.danger {
  border-color: rgba(220, 88, 88, 0.24);
  background: rgba(255, 235, 235, 0.9);
  color: #9f2431;
  box-shadow: 0 12px 24px rgba(205, 94, 94, 0.08);
}

.table-wrap-users {
  grid-area: list;
  max-width: 100%;
  max-height: 720px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(98, 165, 219, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 248, 253, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 16px 30px rgba(71, 136, 191, 0.08);
}

.users-table {
  display: block;
  width: 100%;
  min-width: 0;
  border-spacing: 0;
}

.users-table thead,
.users-table tbody {
  display: block;
}

.users-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.users-table thead th {
  background: rgba(243, 248, 253, 0.94);
  color: #6687a9;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.users-table th:first-child,
.users-table td:first-child {
  width: auto;
  padding-right: 0;
  text-align: center;
}

.users-table td {
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.user-selector {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1px solid rgba(94, 160, 215, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(74, 143, 205, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.user-selector:hover {
  transform: scale(1.04);
}

.user-selector:checked {
  border-color: rgba(46, 146, 241, 0.34);
  background:
    radial-gradient(circle at center, #ffffff 0 28%, transparent 31%),
    linear-gradient(180deg, #7fe0ff, #2594f6);
  box-shadow:
    0 0 0 4px rgba(77, 176, 255, 0.12),
    0 12px 20px rgba(62, 150, 228, 0.18);
}

.admin-user-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas:
    "select name role"
    "select traffic changed"
    "select login login";
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(90, 159, 216, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-user-row[hidden] {
  display: none;
}

.admin-user-row td:nth-child(1) {
  grid-area: select;
}

.admin-user-row td:nth-child(2) {
  grid-area: name;
}

.admin-user-row td:nth-child(3) {
  grid-area: role;
  justify-self: end;
}

.admin-user-row td:nth-child(4) {
  grid-area: traffic;
}

.admin-user-row td:nth-child(5) {
  grid-area: login;
}

.admin-user-row td:nth-child(6) {
  grid-area: changed;
  justify-self: end;
  text-align: right;
}

.admin-user-row.is-selected {
  border-color: rgba(47, 150, 243, 0.34);
  background: linear-gradient(180deg, rgba(209, 240, 255, 0.9), rgba(244, 251, 255, 0.72));
  box-shadow:
    inset 4px 0 0 #2f96f3,
    0 14px 24px rgba(66, 148, 220, 0.12);
}

.admin-user-row.is-selected td {
  background: transparent;
}

.admin-user-row:hover {
  border-color: rgba(64, 151, 223, 0.26);
  background: rgba(247, 253, 255, 0.9);
  transform: translateY(-1px);
}

.user-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.user-cell strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.user-state-note {
  color: #8b5a2b;
  font-size: 12px;
  font-weight: 800;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(82, 160, 219, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #2b6899;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.role-badge.role-admin {
  background: linear-gradient(180deg, rgba(126, 222, 255, 0.98), rgba(67, 165, 245, 0.92));
  color: #ffffff;
  border-color: transparent;
}

.role-badge.role-subscriber {
  background: rgba(115, 222, 170, 0.16);
  color: #1f7d4e;
  border-color: rgba(80, 186, 126, 0.2);
}

.role-badge.role-user {
  background: rgba(255, 255, 255, 0.7);
  color: #3b6e97;
}

.traffic-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.traffic-cell strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.traffic-cell span {
  max-width: 18ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.last-login-cell {
  min-width: 0;
  color: #4e7398;
  font-size: 12px;
  line-height: 1.5;
}

.role-change-cell {
  display: inline-block;
  min-width: 0;
  max-width: 18ch;
  color: #4e7398;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-entry-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.api-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 34px rgba(83, 142, 196, 0.08);
}

.api-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.api-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.api-link {
  color: #1c67a6;
  text-decoration: none;
  word-break: break-word;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.api-link:hover {
  text-decoration: underline;
}

.admin-protocol-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-service-summary,
.admin-log-badges {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-service-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-service-head h3 {
  margin: 0;
}

.admin-service-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-service-active {
  border-color: rgba(79, 192, 129, 0.26);
}

.admin-service-inactive {
  border-color: rgba(255, 196, 87, 0.24);
}

.admin-service-failed,
.admin-service-unavailable {
  border-color: rgba(234, 116, 126, 0.24);
}

.admin-service-badges {
  margin-top: 0;
}

.admin-service-footnote {
  margin: 0;
  color: #55799b;
  font-size: 12px;
  line-height: 1.5;
}

.admin-auto-section {
  background:
    radial-gradient(circle at 100% 0, rgba(151, 229, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.95), rgba(230, 244, 252, 0.9));
}

.admin-auto-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(84, 158, 215, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-auto-selected strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.admin-auto-selected p,
.admin-auto-candidate p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-auto-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-auto-score-grid span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(84, 158, 215, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #6282a1;
  font-size: 12px;
  font-weight: 800;
}

.admin-auto-score-grid strong {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.admin-auto-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-auto-candidate {
  padding: 14px;
  border: 1px solid rgba(84, 158, 215, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-auto-candidate.is-selected {
  border-color: rgba(47, 150, 243, 0.34);
  background: linear-gradient(180deg, rgba(209, 240, 255, 0.84), rgba(244, 251, 255, 0.68));
  box-shadow: inset 4px 0 0 #2f96f3;
}

.admin-auto-candidate > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-auto-candidate strong {
  color: var(--ink);
}

.admin-log-section {
  background:
    radial-gradient(circle at 100% 0, rgba(151, 229, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.95), rgba(230, 244, 252, 0.9));
}

.admin-log-head {
  align-items: flex-start;
}

.admin-log-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(84, 158, 215, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.admin-log-source code {
  min-width: 0;
  color: #1f5f98;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-log-select {
  width: min(100%, 280px);
  min-height: 38px;
}

.admin-live-log {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(84, 158, 215, 0.14);
  background: rgba(245, 251, 255, 0.92);
  color: #1d4d79;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.log-box-scroll {
  max-height: 420px;
  overflow: auto;
}

.status-pill {
  border: 1px solid transparent;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill.active,
.status-pill.running,
.status-pill.green {
  background: var(--success);
  color: #0f4e29;
}

.status-pill.inactive,
.status-pill.disabled,
.status-pill.missing,
.status-pill.yellow {
  background: rgba(146, 175, 208, 0.2);
  color: var(--ink);
}

.status-pill.failed,
.status-pill.error,
.status-pill.red {
  background: var(--danger);
  color: #29050c;
}

.status-pill.unavailable {
  background: var(--warning);
  color: #2d2200;
}

.empty-note {
  margin-top: 16px;
}

body.ui-ready .portal-topbar,
body.ui-ready .auth-panel,
body.ui-ready .hero-card,
body.ui-ready .side-panel,
body.ui-ready .panel,
body.ui-ready .flash-message,
body.ui-ready .entry-card {
  animation: rise-in 0.65s ease both;
}

body.ui-ready .side-panel,
body.ui-ready .auth-panel {
  animation-delay: 0.06s;
}

body.ui-ready .panel {
  animation-delay: 0.12s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .auth-layout,
  .hero-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .subscription-grid,
  .hero-shell,
  .panel-subscription {
    grid-template-columns: 1fr;
  }

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

  .hero-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-switch {
    width: 100%;
  }

  .auth-switch-link {
    flex: 1 1 0;
  }

  .panel-split-head {
    flex-direction: column;
  }

  .happ-strip {
    justify-content: flex-start;
  }

  .hero-shell-cabinet {
    grid-template-columns: 1fr;
  }

  .happ-points {
    grid-template-columns: 1fr;
  }

  .admin-users-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "details"
      "list";
  }

  .admin-user-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-service-summary,
  .admin-log-badges {
    justify-content: flex-start;
  }

  .toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100vw - 12px, 100%);
    margin: 10px auto 24px;
  }

  .auth-body .portal-shell {
    width: min(100vw - 12px, 100%);
  }

  .portal-topbar,
  .auth-panel,
  .hero-card,
  .side-panel,
  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  .hero-shell,
  .panel-subscription,
  .panel-happ,
  .panel-telegram {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-shell {
    gap: 12px;
  }

  .protocol-title-row,
  .quality-head {
    align-items: flex-start;
  }

  .quality-head {
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-shell-cabinet {
    padding: 0;
    border-radius: 0;
  }

  .portal-topbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy span {
    display: none;
  }

  .hero-copy-card {
    padding: 14px 16px;
    border-radius: 20px;
  }

  .hero-copy-top {
    align-items: flex-start;
  }

  .hero-shell-cabinet h1 {
    max-width: none;
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero-shell-cabinet .hero-lead {
    max-width: none;
    font-size: 13px;
  }

  .hero-subnote {
    max-width: none;
    font-size: 12px;
  }

  .hero-mini-badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-quicklist {
    gap: 8px;
  }

  .hero-quickitem {
    min-height: 34px;
    padding: 0 12px 0 8px;
    font-size: 12px;
  }

  .hero-quickitem strong {
    width: 20px;
    height: 20px;
  }

  .hero-inline-notes-top {
    width: auto;
  }

  .hero-banner-card {
    border-radius: 22px;
    aspect-ratio: 1.7 / 1;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-inline-notes {
    gap: 8px;
  }

  .subscription-rail {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions,
  .button-row,
  .action-stack,
  .page-foot {
    flex-direction: column;
    align-items: stretch;
  }

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

  h1 {
    max-width: none;
    font-size: clamp(30px, 10vw, 44px);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.admin-dashboard .portal-shell {
    width: min(100vw - 12px, 100%);
  }

  .admin-summary-head,
  .admin-section-head {
    align-items: flex-start;
  }

  .admin-service-head,
  .admin-log-source {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-auto-selected {
    grid-template-columns: 1fr;
  }

  .admin-section-badge {
    align-self: flex-start;
  }

  .admin-users-workspace {
    gap: 12px;
  }

  .admin-user-toolbar {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }

  .toolbar-link-card {
    grid-column: auto;
  }

  .toolbar-current,
  .toolbar-role {
    padding: 14px 16px;
  }

  .toolbar-current strong {
    font-size: clamp(22px, 8vw, 28px);
  }

  .toolbar-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .toolbar-actions .ghost-button {
    flex: 1 1 140px;
    min-width: 0;
  }

  .admin-log-badges {
    width: 100%;
  }

  .table-wrap-users {
    max-height: 560px;
  }

  .admin-user-row {
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
      "select name"
      "select role"
      "select traffic"
      "select login"
      "select changed";
  }

  .admin-user-row td:nth-child(3),
  .admin-user-row td:nth-child(6) {
    justify-self: start;
    text-align: left;
  }

  .admin-live-log {
    padding: 14px;
    font-size: 11px;
  }

  .section-note {
    text-align: left;
  }

  .actions {
    flex-direction: column;
  }

  .subscription-grid {
    gap: 16px;
  }

  .panel-qr {
    padding-top: 20px;
  }

  .panel-qr .qr-note {
    max-width: 30ch;
  }

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

  .happ-strip {
    gap: 6px;
  }

  .happ-strip span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .happ-side {
    gap: 8px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .auth-shell-compact {
    gap: 12px;
  }

  .panel-subscription,
  .panel-subscription-main {
    overflow: hidden;
  }

  .panel-subscription .actions,
  .panel-subscription-main .actions,
  .protocol-card .actions {
    flex-direction: row;
    align-items: stretch;
  }

  .panel-subscription .actions .btn,
  .panel-subscription-main .actions .btn,
  .protocol-card .actions .btn {
    flex: 1 1 140px;
    width: auto;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .device-grid .btn {
    width: 100%;
  }

  .subscription-cell {
    min-width: 260px;
  }

  .panel-qr .qr-shell-large {
    width: min(100%, 320px);
    padding: 18px;
  }

  .panel-qr .qr-code-large {
    width: min(100%, 264px);
  }

  .url {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}
