:root {
  --bg: #0b0d12;
  --sidebar: #0f1118;
  --panel: #151821;
  --panel-2: #1b1f2a;
  --line: #2a2f3b;
  --text: #f4f1ea;
  --muted: #9298a8;
  --blue: #6aa7ff;
  --blue-soft: rgba(106, 167, 255, 0.12);
  --orange: #ff7657;
  --green: #54d39a;
  --yellow: #edc66d;
  --red: #ff706f;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}

/* Public subscription card */
.subscription-public {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 15%, rgba(81, 117, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 12% 84%, rgba(86, 229, 181, 0.09), transparent 25rem),
    #080b12;
}
.subscription-public::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.subscription-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.subscription-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.subscription-brand i {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.subscription-brand small {
  color: var(--muted);
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
}
.subscription-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #84b9ff, #597cf7);
  color: #07101e;
  box-shadow: 0 12px 30px rgba(74, 113, 255, 0.24);
}
.subscription-card {
  width: 100%;
  margin: auto 0;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(460px, 1.2fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(17, 21, 31, 0.88);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}
.subscription-orbit {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(100, 145, 255, 0.22), transparent 35%),
    linear-gradient(145deg, rgba(74, 105, 225, 0.14), rgba(9, 13, 21, 0.25));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.subscription-orbit::before,
.subscription-orbit::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(126, 167, 255, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}
.subscription-orbit::before {
  width: 300px;
  height: 300px;
  box-shadow:
    0 0 80px rgba(75, 112, 255, 0.12),
    inset 0 0 60px rgba(75, 112, 255, 0.08);
}
.subscription-orbit::after {
  width: 210px;
  height: 410px;
}
.subscription-orbit span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 132px;
  height: 132px;
  border-radius: 38px;
  transform: translate(-50%, -50%) rotate(14deg);
  background:
    linear-gradient(145deg, rgba(151, 191, 255, 0.94), rgba(72, 98, 225, 0.94));
  box-shadow:
    0 0 0 18px rgba(102, 143, 255, 0.07),
    0 30px 80px rgba(70, 105, 255, 0.36);
}
.subscription-orbit span::before {
  content: "M";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-14deg);
  color: #07101e;
  font-size: 58px;
  font-weight: 950;
}
.subscription-copy {
  padding: 56px 62px 50px;
  align-self: center;
}
.subscription-kicker {
  margin: 0 0 17px;
  color: #88afff;
  font: 750 11px/1.2 ui-monospace, monospace;
  letter-spacing: 0.2em;
}
.subscription-copy h1 {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.subscription-lead {
  margin: 22px 0 30px;
  color: #aeb5c5;
  font-size: 17px;
  line-height: 1.55;
}
.subscription-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.subscription-facts > div {
  min-width: 0;
  min-height: 76px;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subscription-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}
.subscription-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.subscription-status {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.subscription-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.subscription-status.is-online i {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.subscription-status.is-offline i {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.subscription-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.subscription-primary,
.subscription-secondary {
  min-height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.subscription-primary {
  gap: 14px;
  background: #f3f5f9;
  color: #0b0e15;
}
.subscription-primary span {
  font-size: 19px;
}
.subscription-primary:hover,
.subscription-secondary:hover {
  transform: translateY(-2px);
}
.subscription-primary.is-disabled {
  background: #393d47;
  color: #a7acb7;
  cursor: default;
}
.subscription-secondary {
  border: 1px solid #363d4d;
  background: transparent;
  color: var(--text);
}
.subscription-help {
  margin: 14px 0 0;
  color: #747c8e;
  font-size: 11px;
  line-height: 1.45;
}
.subscription-footer {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #626a7a;
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
}
.subscription-footer a {
  color: #7f899d;
  text-decoration: none;
}
.subscription-footer a:hover {
  color: var(--text);
}
@media (max-width: 800px) {
  .subscription-shell {
    width: min(100% - 24px, 580px);
    padding-top: 18px;
  }
  .subscription-brand {
    margin-bottom: 18px;
  }
  .subscription-card {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .subscription-orbit {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .subscription-orbit::before {
    width: 190px;
    height: 190px;
  }
  .subscription-orbit::after {
    width: 120px;
    height: 260px;
  }
  .subscription-orbit span {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }
  .subscription-orbit span::before {
    font-size: 37px;
  }
  .subscription-copy {
    padding: 32px 24px 28px;
  }
  .subscription-copy h1 {
    font-size: clamp(42px, 14vw, 64px);
  }
  .subscription-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .subscription-actions {
    grid-template-columns: 1fr;
  }
  .subscription-footer {
    padding: 16px 2px 4px;
  }
  .subscription-footer span {
    display: none;
  }
  .subscription-footer a {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .subscription-brand small,
  .subscription-brand i {
    display: none;
  }
  .subscription-facts {
    grid-template-columns: 1fr;
  }
  .subscription-facts > div {
    min-height: 66px;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.app-body {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 28px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #07101e;
  font-size: 18px;
  font-weight: 950;
  border-radius: 4px;
  transform: rotate(-2deg);
}
.brand small {
  display: block;
  color: var(--muted);
  font:
    600 9px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.18em;
  margin-top: 2px;
}
.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 58px;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
}
.nav-icon {
  display: none;
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-style: normal;
}
.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.nav-overview::before {
  inset: 1px;
  border: 1.6px solid currentColor;
  border-radius: 5px;
}
.nav-overview::after {
  top: 5px;
  left: 5px;
  width: 3px;
  height: 3px;
  border-radius: 1.5px;
  background: currentColor;
  box-shadow: 5px 0 currentColor, 0 5px currentColor, 5px 5px currentColor;
}
.nav-sources::before,
.nav-sources::after {
  width: 11px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-radius: 7px;
  transform: rotate(-38deg);
}
.nav-sources::before {
  top: 2px;
  left: 1px;
}
.nav-sources::after {
  right: 1px;
  bottom: 2px;
}
.nav-servers::before {
  inset: 2px 1px;
  border: 1.6px solid currentColor;
  border-radius: 5px;
}
.nav-servers::after {
  top: 8px;
  left: 4px;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 4px 0 currentColor, 8px 0 currentColor;
}
.nav-bundles::before,
.nav-bundles::after {
  width: 13px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  background: var(--sidebar);
}
.nav-bundles::before {
  top: 2px;
  left: 1px;
}
.nav-bundles::after {
  right: 1px;
  bottom: 2px;
}
.nav-users::before {
  top: 1px;
  left: 6px;
  width: 7px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}
.nav-users::after {
  left: 2px;
  bottom: 1px;
  width: 14px;
  height: 8px;
  border: 1.6px solid currentColor;
  border-radius: 8px 8px 5px 5px;
}
.main-nav a b {
  font:
    500 10px ui-monospace,
    monospace;
  color: #5f6573;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--panel);
}
.main-nav a.active {
  color: var(--text);
  background: var(--blue-soft);
  border-color: rgba(106, 167, 255, 0.25);
}
.main-nav a.active b {
  color: var(--blue);
}
.sidebar-foot {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c8cbd3;
  font-size: 12px;
}
.sidebar-foot i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 0 5px rgba(84, 211, 154, 0.08);
}
.sidebar-foot small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}
.app-frame {
  grid-column: 2;
  min-width: 0;
}
.app-topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.94);
  backdrop-filter: blur(16px);
  z-index: 20;
}
.route-label,
.kicker {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
}
.logout-button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.logout-button:hover {
  color: var(--orange);
}
.page {
  width: min(1420px, 100%);
  padding: 48px 42px 120px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 7px 0 8px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.page-head p:last-child {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
  line-height: 1.55;
}
.date-chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--green);
  padding: 10px 12px;
  border-radius: 4px;
  font:
    700 10px ui-monospace,
    monospace;
}
.primary,
.secondary,
.text-button,
.danger-button,
.icon-button {
  border: 0;
  cursor: pointer;
  border-radius: 4px;
}
.primary {
  background: var(--blue);
  color: #08101e;
  padding: 13px 17px;
  font-weight: 850;
  box-shadow: 4px 4px 0 #243f66;
}
.primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #243f66;
}
.primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.primary.wide {
  width: 100%;
}
.secondary {
  padding: 10px 13px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.text-button {
  color: var(--blue);
  background: transparent;
  padding: 10px;
}
.danger-button {
  color: var(--red);
  background: transparent;
  padding: 10px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}
.metric {
  background: var(--panel);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  min-height: 158px;
  display: flex;
  flex-direction: column;
}
.metric span {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font-size: 52px;
  letter-spacing: -0.07em;
  margin: auto 0 4px;
}
.metric small {
  color: var(--muted);
  font-size: 11px;
}
.metric:hover {
  background: var(--panel-2);
}
.metric.health-metric strong {
  color: var(--green);
}
.metric.accent {
  background: var(--blue);
  color: #08101e;
}
.metric.accent span,
.metric.accent small {
  color: #1d3d68;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.panel-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.panel-head h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.panel-head a,
.open-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
}
.compact-list > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.compact-list > div:last-child {
  border-bottom: 0;
}
.compact-list p {
  margin: 0;
}
.compact-list strong,
.compact-list small {
  display: block;
}
.compact-list small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.letter-icon,
.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #252a36;
  color: var(--blue);
  border: 1px solid #343b4b;
  border-radius: 4px;
  font-weight: 900;
}
.letter-icon.user {
  color: var(--orange);
}
.state,
.health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font:
    700 10px ui-monospace,
    monospace;
  text-transform: uppercase;
  white-space: nowrap;
}
.state.online,
.health.online {
  color: var(--green);
}
.state.offline,
.health.offline {
  color: var(--red);
}
.health.unknown {
  color: var(--yellow);
}
.health i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.source-grid,
.bundle-grid,
.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.source-card,
.bundle-card,
.user-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  position: relative;
}
.card-index {
  font:
    600 10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: #656c7b;
}
.source-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.source-title h2,
.user-card h2,
.bundle-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
}
.source-title p,
.user-card p,
.bundle-card p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
}
.source-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: var(--muted);
  font-size: 11px;
}
.source-card form {
  margin-top: 10px;
}
.error-line,
.offline-note {
  color: var(--red);
  font-size: 11px;
}
.filter-bar,
.composer-controls {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}
.filter-bar label,
.composer-controls label {
  display: grid;
  gap: 7px;
  flex: 1;
  color: var(--muted);
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
}
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e1118;
  color: var(--text);
  border-radius: 4px;
  padding: 12px 13px;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.server-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.server-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  background: var(--panel);
}
.server-table th {
  color: #777e8d;
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.server-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.server-table td strong,
.server-table td small {
  display: block;
}
.server-table td small {
  color: #626978;
  margin-top: 4px;
}
.server-table code,
.server-meta code,
.user-link code {
  font:
    500 11px ui-monospace,
    monospace;
  color: #b8bdc9;
}
.server-table tr:last-child td {
  border-bottom: 0;
}
.server-table tr:hover td {
  background: #191d27;
}
.disabled-row {
  opacity: 0.42;
}
.protocol {
  display: inline-block;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(106, 167, 255, 0.2);
  border-radius: 3px;
  padding: 5px 7px;
  font:
    700 9px ui-monospace,
    monospace;
  text-transform: uppercase;
}
.icon-button {
  background: #202531;
  color: var(--text);
  padding: 6px 8px;
  font:
    700 9px ui-monospace,
    monospace;
}
.bundle-card {
  color: var(--text);
  text-decoration: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  min-height: 250px;
}
.bundle-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.bundle-card .card-index {
  grid-column: 1 / 3;
}
.bundle-symbol {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #29100b;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 950;
}
.bundle-card dl {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
}
.bundle-card dl div {
  padding: 14px 0 0;
}
.bundle-card dt {
  color: var(--muted);
  font-size: 10px;
}
.bundle-card dd {
  margin: 5px 0 0;
  font-size: 24px;
}
.bundle-card .open-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
}
.user-card {
  padding: 0;
  overflow: hidden;
}
.user-card-head {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.user-avatar {
  width: 46px;
  height: 46px;
  color: var(--orange);
}
.user-link {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.user-link > span,
.user-meta span {
  display: block;
  color: var(--muted);
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}
.user-link > div {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  background: #0d1016;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 0;
}
.user-link code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-link button {
  margin-left: auto;
  border: 0;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 3px;
  padding: 7px 9px;
  cursor: pointer;
}
.user-meta {
  padding: 16px 20px;
}
.user-meta strong {
  font-size: 12px;
}
.user-actions {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
  background: #11141b;
}
.user-actions form:last-child {
  margin-left: auto;
}
.composer-head .back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 30px;
  font-size: 12px;
}
.composer-counter {
  min-width: 140px;
  text-align: right;
}
.composer-counter span {
  display: block;
  font-size: 64px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.08em;
}
.composer-counter small {
  color: var(--muted);
}
.composer-controls {
  position: sticky;
  top: 77px;
  z-index: 15;
}
.composer-controls .search-control {
  flex: 1.5;
}
.composer-actions {
  display: flex;
  gap: 5px;
}
.status-legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  margin: 20px 2px;
}
.status-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-legend i.online {
  background: var(--green);
}
.status-legend i.offline {
  background: var(--red);
}
.status-legend i.unknown {
  background: var(--yellow);
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.select-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 17px;
  min-height: 190px;
  position: relative;
  cursor: pointer;
}
.select-card:hover {
  border-color: #485165;
}
.select-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.select-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 4px 0 0 var(--blue);
}
.checkmark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: transparent;
  border-radius: 3px;
}
.select-card:has(input:checked) .checkmark {
  background: var(--blue);
  color: #08101e;
  border-color: var(--blue);
}
.select-card-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-right: 34px;
}
.select-card h3 {
  margin: 30px 0 13px;
  font-size: 17px;
}
.server-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.server-offline {
  border-style: dashed;
}
.sticky-save {
  position: fixed;
  bottom: 18px;
  left: calc(224px + (100vw - 224px) / 2);
  transform: translateX(-50%);
  width: min(850px, calc(100vw - 260px));
  padding: 13px 14px 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #1a1e28;
  border: 1px solid #3a4252;
  border-radius: 6px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  z-index: 25;
}
.sticky-save div {
  display: grid;
  gap: 3px;
}
.sticky-save span {
  color: var(--muted);
  font-size: 11px;
}
.empty {
  color: var(--muted);
  padding: 28px;
  grid-column: 1 / -1;
}
dialog {
  padding: 0;
  border: 1px solid #3b4352;
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  width: min(520px, calc(100% - 28px));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}
dialog::backdrop {
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(5px);
}
.dialog-form {
  padding: 25px;
  display: grid;
  gap: 16px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}
.dialog-head h2 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -0.045em;
}
.dialog-head button {
  border: 1px solid var(--line);
  background: #20242e;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 3px;
  cursor: pointer;
}
.dialog-form label,
.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.11em;
}
.dialog-form label small {
  font: inherit;
  color: #606776;
}
.login-page {
  overflow: hidden;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
}
.login-art {
  padding: 48px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: #10131a;
  border-right: 1px solid var(--line);
}
.login-art::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid #293142;
  border-radius: 50%;
  right: 8%;
  top: 14%;
  box-shadow:
    0 0 0 55px rgba(106, 167, 255, 0.025),
    0 0 0 110px rgba(106, 167, 255, 0.018);
  pointer-events: none;
}
.login-art h1 {
  font-size: clamp(58px, 7vw, 105px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  margin: 14px 0 26px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}
.login-art > div > p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 570px;
}
.login-coordinates {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #656c7b;
  font:
    600 9px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.login-coordinates i {
  height: 1px;
  width: 90px;
  background: var(--line);
}
.login-side {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-card {
  width: min(420px, 100%);
}
.login-card h2 {
  font-size: 52px;
  letter-spacing: -0.06em;
  margin: 7px 0;
}
.login-card > p:not(.kicker) {
  color: var(--muted);
  margin: 0 0 32px;
}
.login-form {
  display: grid;
  gap: 18px;
}
.login-form input {
  padding: 15px;
}
.login-submit {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login-note {
  display: block;
  color: #686f7e;
  text-align: center;
  margin-top: 22px;
}
.login-error {
  color: var(--red);
  border-left: 3px solid var(--red);
  background: rgba(255, 112, 111, 0.08);
  padding: 11px 13px;
  margin-bottom: 18px;
  font-size: 12px;
}
.checking-banner {
  margin: -10px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(106, 167, 255, 0.28);
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: #c9ddff;
  border-radius: 4px;
  font-size: 12px;
}
.row-actions { display: flex; gap: 5px; align-items: center; }
.composer-side { display: grid; justify-items: end; gap: 13px; }
@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .source-grid,
  .bundle-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr 440px;
  }
  .login-art h1 {
    font-size: 70px;
  }
}
@media (max-width: 760px) {
  .app-body {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: auto;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding: 3px 6px max(3px, env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--line);
    border-width: 1px 0 0;
    background: rgba(15, 17, 24, 0.96);
    backdrop-filter: blur(16px);
  }
  .sidebar .brand,
  .sidebar-foot {
    display: none;
  }
  .main-nav {
    margin: 0;
    height: 100%;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 3px;
  }
  .main-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    padding: 3px 2px 2px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1;
  }
  .main-nav a.active {
    border-color: rgba(106, 167, 255, 0.15);
    background: rgba(106, 167, 255, 0.09);
  }
  .main-nav a b {
    display: none;
  }
  .main-nav .nav-icon {
    display: block;
    color: #788194;
  }
  .main-nav a.active .nav-icon {
    color: var(--blue);
    filter: drop-shadow(0 0 5px rgba(106, 167, 255, 0.32));
  }
  .app-frame {
    width: 100%;
  }
  .app-topbar {
    padding: 0 16px;
    height: 56px;
  }
  .page {
    padding: 30px 16px calc(78px + env(safe-area-inset-bottom, 0px));
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 45px;
  }
  .action-head .primary {
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    min-height: 130px;
  }
  .metric strong {
    font-size: 42px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar,
  .composer-controls {
    align-items: stretch;
    flex-direction: column;
    position: static;
  }
  .composer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .selection-grid {
    grid-template-columns: 1fr;
  }
  .sticky-save {
    left: 14px;
    bottom: calc(61px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: calc(100% - 28px);
  }
  .sticky-save div {
    display: none;
  }
  .sticky-save {
    justify-content: flex-end;
  }
  .user-card-head {
    grid-template-columns: auto 1fr;
  }
  .user-card-head .state {
    grid-column: 2;
  }
  .user-actions {
    flex-wrap: wrap;
  }
  .user-actions form:last-child {
    margin-left: 0;
  }
  .login-page {
    overflow: auto;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 42vh;
    padding: 28px 22px;
  }
  .login-art h1 {
    font-size: 48px;
    margin-top: 60px;
  }
  .login-art > div > p:last-child,
  .login-coordinates {
    display: none;
  }
  .login-art::after {
    width: 170px;
    height: 170px;
  }
  .login-side {
    min-height: 58vh;
    padding: 34px 22px;
  }
  .login-card h2 {
    font-size: 44px;
  }
}

/* Subscription builder v2 */
.select-card[hidden],
.palette-card[hidden],
#server-list tr[hidden] {
  display: none !important;
}
.builder-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 720px;
  margin: 30px 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #10131a;
}
.builder-mode-switch button {
  min-width: 0;
  padding: 13px 15px;
  border: 0;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.builder-mode-switch button.active {
  color: var(--text);
  background: #202532;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.builder-mode-switch b {
  color: #789ff4;
  font: 750 11px/1 ui-monospace, monospace;
}
.builder-mode-switch span,
.builder-mode-switch small {
  display: block;
}
.builder-mode-switch span {
  font-weight: 800;
}
.builder-mode-switch small {
  margin-top: 3px;
  color: #737b8d;
  font-size: 10px;
  font-weight: 600;
}
.builder-view {
  display: none;
}
.builder-view.active {
  display: block;
}
.text-server {
  border-color: rgba(237, 198, 109, 0.35) !important;
  background:
    linear-gradient(120deg, rgba(237, 198, 109, 0.09), transparent 55%),
    var(--panel) !important;
}
.text-server .flow-card-type,
.text-server .protocol {
  color: #edc66d;
  border-color: rgba(237, 198, 109, 0.3);
  background: rgba(237, 198, 109, 0.08);
}
.flow-builder {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 14px;
  align-items: stretch;
}
.flow-palette,
.flow-workspace {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #11141c;
  overflow: hidden;
}
.flow-workspace {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #0e1118;
  background-size: 100% 42px;
}
.flow-panel-head {
  min-height: 76px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(24, 28, 38, 0.94);
}
.flow-panel-head span,
.flow-panel-head strong {
  display: block;
}
.flow-panel-head span {
  margin-bottom: 6px;
  color: #799ef0;
  font: 700 9px/1 ui-monospace, monospace;
  letter-spacing: 0.16em;
}
.flow-panel-head strong {
  font-size: 15px;
}
.flow-panel-head small {
  color: var(--muted);
  font-size: 10px;
}
.text-block-button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(237, 198, 109, 0.28);
  border-radius: 10px;
  background: rgba(237, 198, 109, 0.08);
  color: #edc66d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.flow-list {
  padding: 12px;
}
.flow-catalog,
.flow-sequence {
  min-height: 420px;
  max-height: 650px;
  overflow-y: auto;
  scrollbar-color: #343b4b transparent;
  scrollbar-width: thin;
}
.flow-card {
  min-width: 0;
  min-height: 66px;
  margin-bottom: 8px;
  padding: 10px 11px;
  border: 1px solid #2a303d;
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: #181c25;
  transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease, transform 140ms ease;
}
.flow-card:hover {
  border-color: #465064;
  background: #1c212c;
}
.flow-card[draggable="true"] {
  cursor: grab;
}
.flow-card[draggable="true"]:active {
  cursor: grabbing;
}
.flow-card strong,
.flow-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-card strong {
  margin-bottom: 5px;
  font-size: 13px;
}
.flow-card small {
  color: var(--muted);
  font-size: 10px;
}
.flow-card-type {
  max-width: 72px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid #364158;
  border-radius: 7px;
  color: #8eb4ff;
  background: #151c2a;
  font: 750 9px/1 ui-monospace, monospace;
  text-overflow: ellipsis;
}
.palette-card button[data-add-server] {
  width: 34px;
  height: 34px;
  border: 1px solid #3e4b63;
  border-radius: 10px;
  background: #20293a;
  color: #9abbff;
  font-size: 21px;
  cursor: pointer;
}
.palette-card.is-selected {
  display: none !important;
}
.flow-sequence {
  position: relative;
  margin: 0 12px;
  padding: 4px 0;
  border: 1px dashed #2d3544;
  border-radius: 14px;
  min-height: 360px;
}
.flow-sequence.drag-active {
  border-color: #6a9df6;
  background: rgba(106, 157, 246, 0.055);
}
.sequence-card {
  grid-template-columns: 28px 24px auto minmax(0, 1fr) auto;
  margin: 8px;
  background: #1b202b;
}
.sequence-card.dragging {
  opacity: 0.35;
  border-color: #6a9df6;
}
.drag-handle,
.sequence-actions button {
  border: 0;
  background: transparent;
  color: #7f899c;
  cursor: pointer;
}
.drag-handle {
  padding: 7px 2px;
  font-size: 20px;
  line-height: 1;
}
.sequence-number {
  color: #667188;
  font: 700 10px/1 ui-monospace, monospace;
}
.sequence-actions {
  display: flex;
  gap: 2px;
}
.sequence-actions button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 14px;
}
.sequence-actions button:hover,
.drag-handle:hover {
  color: var(--text);
  background: #29303e;
}
.sequence-actions button:last-child {
  color: #df7874;
}
.flow-empty {
  display: none;
  margin: 20px;
  padding: 70px 24px;
  border: 1px dashed #313949;
  border-radius: 12px;
  color: #697286;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.flow-empty.visible {
  display: block;
}
.sequence-ruler {
  margin: 15px 22px 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #576071;
  font: 650 8px/1 ui-monospace, monospace;
  letter-spacing: 0.13em;
}
.sequence-ruler i {
  height: 1px;
  flex: 1;
  background: #29303d;
}
.sequence-ruler.end {
  margin-top: 9px;
  margin-bottom: 18px;
}
.dialog-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Complete mobile pass */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .app-frame,
  .page,
  .page-head > div,
  .panel,
  .source-card,
  .bundle-card,
  .user-card {
    min-width: 0;
  }
  .app-topbar {
    gap: 8px;
  }
  .route-label {
    max-width: calc(100vw - 130px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
  }
  .logout-button {
    padding: 8px 10px;
  }
  .page {
    width: 100%;
    padding: 24px 12px 120px;
  }
  .page-head h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(38px, 13vw, 54px);
    line-height: 0.95;
  }
  .page-head p {
    max-width: 100%;
  }
  .page-head .primary,
  .action-head .primary {
    width: 100%;
  }
  .metric-grid {
    gap: 8px;
  }
  .metric {
    min-height: 116px;
    padding: 16px;
  }
  .metric strong {
    font-size: 38px;
  }
  .metric span,
  .metric small {
    font-size: 9px;
  }
  .panel,
  .source-card,
  .bundle-card,
  .user-card {
    border-radius: 16px;
  }
  .source-grid,
  .bundle-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }
  .source-title,
  .user-card-head {
    min-width: 0;
  }
  .source-title h2,
  .user-card-head h2 {
    overflow-wrap: anywhere;
  }
  .user-link > div {
    align-items: stretch;
    flex-direction: column;
  }
  .user-link code {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    overflow-x: auto;
  }
  .user-link button {
    width: 100%;
  }
  .user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .user-actions form,
  .user-actions button {
    width: 100%;
  }
  .user-actions form:last-child {
    grid-column: 1 / -1;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
  }
  .dialog-form {
    padding: 22px 18px;
  }
  .dialog-head h2 {
    font-size: 34px;
  }
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .filter-bar label,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }
  .server-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .server-table {
    min-width: 0;
  }
  .server-table thead {
    display: none;
  }
  .server-table,
  .server-table tbody,
  .server-table tr,
  .server-table td {
    display: block;
    width: 100%;
  }
  .server-table tr {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
  }
  .server-table td {
    min-height: 0;
    padding: 7px 0;
    border: 0;
  }
  .server-table td:not(:first-child):not(:last-child) {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
  }
  .server-table td:nth-child(2)::before { content: "Источник"; }
  .server-table td:nth-child(3)::before { content: "Протокол"; }
  .server-table td:nth-child(4)::before { content: "Endpoint"; }
  .server-table td:nth-child(5)::before { content: "Состояние"; }
  .server-table td::before {
    color: #737b8c;
    font-size: 9px;
    text-transform: uppercase;
  }
  .server-table code {
    overflow-wrap: anywhere;
  }
  .server-table .row-actions {
    justify-content: stretch;
  }
  .server-table .row-actions form,
  .server-table .row-actions button {
    flex: 1;
    width: 100%;
  }
  .composer-head {
    gap: 18px;
  }
  .composer-side {
    width: 100%;
    justify-content: space-between;
  }
  .composer-side form,
  .composer-side button {
    flex: 1;
  }
  .builder-mode-switch {
    max-width: 100%;
  }
  .builder-mode-switch button {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .builder-mode-switch b,
  .builder-mode-switch small {
    display: none;
  }
  .builder-mode-switch span {
    font-size: 12px;
    text-align: center;
  }
  .composer-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .composer-controls label,
  .composer-controls input,
  .composer-controls select {
    width: 100%;
    min-width: 0;
  }
  .selection-grid {
    grid-template-columns: 1fr;
  }
  .select-card {
    min-width: 0;
  }
  .select-card h3,
  .select-card code {
    overflow-wrap: anywhere;
  }
  .flow-builder {
    grid-template-columns: 1fr;
  }
  .flow-catalog,
  .flow-sequence {
    max-height: none;
  }
  .flow-catalog {
    min-height: 180px;
    max-height: 330px;
  }
  .flow-sequence {
    min-height: 260px;
  }
  .flow-panel-head {
    padding: 14px;
  }
  .flow-panel-head small {
    display: none;
  }
  .sequence-card {
    grid-template-columns: 24px 20px minmax(0, 1fr) auto;
  }
  .sequence-card .flow-card-type {
    display: none;
  }
  .sequence-actions button {
    width: 32px;
    height: 32px;
  }
  .sequence-actions button[data-move] {
    display: inline-block;
  }
  .sticky-save {
    gap: 0;
    padding: 8px;
  }
  .sticky-save button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .main-nav a span {
    font-size: 9px;
  }
  .main-nav a b {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .compact-list > div {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .compact-list .state {
    grid-column: 2;
    justify-self: start;
  }
  .flow-card {
    gap: 7px;
  }
  .palette-card {
    grid-template-columns: auto minmax(0, 1fr) 34px;
  }
  .sequence-card {
    margin: 6px;
    padding: 8px 6px;
  }
  .sequence-actions {
    flex-direction: column;
  }
  .text-block-button {
    max-width: 116px;
  }
}

/* Animated drag destination */
.drop-placeholder {
  max-height: 0;
  min-height: 0;
  margin: 0 8px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  opacity: 0;
  display: grid;
  place-items: center;
  background: rgba(106, 157, 246, 0.035);
  transition:
    max-height 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    min-height 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    margin 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    padding 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 120ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.drop-placeholder.active {
  max-height: 72px;
  min-height: 64px;
  margin: 8px;
  padding: 10px 12px;
  border-color: rgba(106, 157, 246, 0.72);
  opacity: 1;
  background: rgba(106, 157, 246, 0.09);
  box-shadow:
    inset 0 0 28px rgba(106, 157, 246, 0.06),
    0 0 22px rgba(80, 126, 231, 0.08);
}
.drop-placeholder span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9abbff;
  font: 750 10px/1 ui-monospace, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.drop-placeholder i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78a4ff;
  box-shadow: 0 0 12px #78a4ff;
  animation: drop-pulse 900ms ease-in-out infinite alternate;
}
.sequence-card {
  transition:
    transform 190ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 160ms ease,
    border-color 140ms ease,
    background 140ms ease;
}
.sequence-card.just-dropped {
  transform: translateY(8px) scale(0.985);
  opacity: 0.25;
}
@keyframes drop-pulse {
  to {
    opacity: 0.45;
    transform: scale(0.78);
  }
}
@media (prefers-reduced-motion: reduce) {
  .drop-placeholder,
  .sequence-card {
    transition-duration: 1ms;
  }
  .drop-placeholder i {
    animation: none;
  }
}
@media (max-width: 760px) {
  .page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
