:root {
  color-scheme: dark;
  --bg: #070a10;
  --bg-soft: #0a0e17;
  --surface: #101622;
  --surface-2: #151d2b;
  --surface-3: #1a2434;
  --border: #253147;
  --border-soft: rgba(148, 163, 184, 0.16);
  --text: #f5f7fb;
  --muted: #96a2b6;
  --muted-2: #6e7b91;
  --primary: #91a7ff;
  --primary-strong: #7892ff;
  --primary-soft: rgba(121, 146, 255, 0.14);
  --cyan: #4ee4ce;
  --cyan-soft: rgba(78, 228, 206, 0.12);
  --success: #51d7a5;
  --warning: #f6c764;
  --danger: #ff7486;
  --danger-soft: rgba(255, 116, 134, 0.11);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-small: 12px;
  --sidebar: 264px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% -10%, rgba(99, 102, 241, 0.13), transparent 29rem),
    var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

code {
  color: #cbd4ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

h3 {
  font-size: 1.08rem;
}

p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(145, 167, 255, 0.55);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.text-error {
  color: var(--danger) !important;
}

.text-live {
  color: var(--success) !important;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(145, 167, 255, 0.28);
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 44%),
    linear-gradient(135deg, #7288f4, #6757d8);
  box-shadow: 0 8px 22px rgba(91, 78, 210, 0.3);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark-large {
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border-radius: 17px;
  font-size: 1rem;
}

.primary-button,
.secondary-button,
.danger-button,
.quiet-danger-button,
.topbar-action,
.hero-action,
.obtainium-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.primary-button {
  color: #0a1020;
  background: linear-gradient(135deg, #a9b8ff, #879eff);
  box-shadow: 0 10px 28px rgba(91, 119, 236, 0.2);
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.danger-button {
  color: #29080e;
  background: var(--danger);
}

.quiet-danger-button {
  min-height: 38px;
  border: 1px solid rgba(255, 116, 134, 0.22);
  color: #ff9aa7;
  background: var(--danger-soft);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.quiet-danger-button:hover,
.topbar-action:hover,
.hero-action:hover,
.obtainium-button:hover {
  transform: translateY(-1px);
}

.secondary-button:hover {
  border-color: #455676;
  background: rgba(255, 255, 255, 0.055);
}

button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.full-button {
  width: 100%;
}

.text-link,
.auth-help {
  color: var(--primary);
  font-weight: 700;
}

.panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.015), transparent 42%),
    var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
  padding: clamp(1.05rem, 2.4vw, 1.55rem);
}

.accent-panel {
  border-color: rgba(145, 167, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(145, 167, 255, 0.1), transparent 45%),
    var(--surface);
}

.subtle-panel {
  background: rgba(16, 22, 34, 0.62);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  margin-top: 0.28rem;
  font-size: 0.88rem;
}

.section-heading > span {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.notice {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.85rem 1rem;
  color: #d8e1ef;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

.notice-success {
  border-color: rgba(81, 215, 165, 0.25);
  background: rgba(81, 215, 165, 0.09);
}

.notice-warning {
  border-color: rgba(246, 199, 100, 0.25);
  background: rgba(246, 199, 100, 0.09);
}

.notice-error {
  border-color: rgba(255, 116, 134, 0.28);
  background: rgba(255, 116, 134, 0.09);
}

.notice-info {
  border-color: rgba(145, 167, 255, 0.26);
  background: rgba(145, 167, 255, 0.09);
}

/* Admin shell */

.admin-body {
  background:
    radial-gradient(circle at 86% 0, rgba(78, 228, 206, 0.045), transparent 24rem),
    var(--bg);
}

.admin-shell {
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--border-soft);
  background: rgba(8, 12, 20, 0.96);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.18);
  padding: 1.25rem 0.85rem;
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 54px;
  padding: 0 0.65rem;
}

.sidebar-brand > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-brand strong {
  font-size: 0.94rem;
  letter-spacing: -0.025em;
}

.sidebar-brand small {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 1.8rem;
}

.sidebar-label {
  margin: 1rem 0 0.35rem;
  padding: 0 0.72rem;
  color: #556177;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.62rem 0.7rem;
  color: #99a5b9;
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-link.is-active {
  border-color: rgba(145, 167, 255, 0.15);
  background: var(--primary-soft);
}

.sidebar-link.is-emphasis {
  color: #dbe2ff;
}

.sidebar-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #bdc7dc;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.94rem;
}

.sidebar-link.is-active .sidebar-icon {
  color: white;
  background: rgba(145, 167, 255, 0.2);
}

.sidebar-bottom {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 1rem;
}

.sidebar-bottom form {
  margin: 0;
}

.sidebar-button {
  appearance: none;
}

.sidebar-version {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0.72rem 0;
  color: #566279;
  font-size: 0.68rem;
}

.sidebar-version i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.admin-main {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar);
}

.admin-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  padding: 0.9rem clamp(1.2rem, 4vw, 3.4rem);
  background: rgba(7, 10, 16, 0.75);
  backdrop-filter: blur(16px);
}

.admin-topbar > div {
  display: flex;
  flex-direction: column;
}

.admin-topbar small {
  color: var(--muted-2);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.admin-topbar strong {
  font-size: 0.95rem;
}

.topbar-action {
  min-height: 38px;
  padding: 0.62rem 0.9rem;
  color: #0c1221;
  background: var(--primary);
  font-size: 0.8rem;
}

.admin-content {
  width: 100%;
  max-width: 1500px;
  flex: 1;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3.3rem);
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  margin: 1rem clamp(1.2rem, 4vw, 3.4rem) 0;
  padding: 1.5rem 0 2rem;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.mobile-admin-header {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.page-heading h1 {
  margin: 0.3rem 0 0.45rem;
}

.page-heading p {
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Forms */

.stack-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.42rem;
  color: #c8d0df;
  font-size: 0.78rem;
  font-weight: 700;
}

label small,
.privacy-note {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  background: #0a0f19;
  font-size: 0.9rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(120, 146, 255, 0.12);
}

input[readonly] {
  color: var(--muted);
  background: #0d121c;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f8ba1 50%),
    linear-gradient(135deg, #7f8ba1 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 2.4rem;
}

.input-prefix {
  display: flex;
  overflow: hidden;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #0a0f19;
}

.input-prefix:focus-within {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(120, 146, 255, 0.12);
}

.input-prefix > span {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  padding: 0 0.7rem;
  color: var(--muted-2);
  font-family: monospace;
}

.input-prefix input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 5rem;
}

.field-action {
  position: absolute;
  top: 50%;
  right: 0.48rem;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  transform: translateY(-50%);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
}

.toggle-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-control {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #39465b;
  border-radius: 99px;
  background: #111824;
  transition: background 0.18s ease;
}

.toggle-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8490a2;
  content: "";
  transition: transform 0.18s ease;
}

.toggle-card input:checked + .toggle-control {
  border-color: var(--primary);
  background: var(--primary-strong);
}

.toggle-card input:checked + .toggle-control::after {
  background: white;
  transform: translateX(18px);
}

.toggle-card > span:last-child {
  display: grid;
  gap: 0.16rem;
}

.toggle-card strong {
  color: var(--text);
  font-size: 0.84rem;
}

.file-drop {
  position: relative;
  display: flex;
  min-height: 108px;
  align-items: center;
  gap: 0.9rem;
  overflow: hidden;
  border: 1px dashed #3a4a65;
  border-radius: 15px;
  padding: 1rem;
  background: rgba(145, 167, 255, 0.025);
  cursor: pointer;
}

.file-drop:hover,
.file-drop.has-file {
  border-color: var(--primary);
  background: rgba(145, 167, 255, 0.06);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.file-drop-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.2rem;
}

.file-drop-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.2rem;
}

.file-drop-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop-copy small {
  color: var(--muted-2);
}

.file-drop .secondary-button {
  position: relative;
  z-index: 1;
  min-height: 38px;
}

.upload-progress {
  display: grid;
  gap: 0.38rem;
  border: 1px solid rgba(145, 167, 255, 0.2);
  border-radius: 12px;
  padding: 0.85rem;
  background: var(--primary-soft);
}

.upload-progress strong {
  font-size: 0.78rem;
}

.upload-progress small {
  color: var(--muted);
  font-size: 0.7rem;
}

.progress-track {
  display: block;
  width: 100%;
  height: 7px;
  border: 0;
  overflow: hidden;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.2s ease;
}

.progress-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.2s ease;
}

.clipboard-fallback {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Authentication */

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 0, rgba(112, 94, 228, 0.21), transparent 32rem),
    radial-gradient(circle at 10% 80%, rgba(78, 228, 206, 0.07), transparent 24rem),
    var(--bg);
}

.auth-main {
  width: 100%;
}

.auth-card {
  width: min(100%, 430px);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin: 0 auto;
  padding: clamp(1.35rem, 5vw, 2.2rem);
  background: rgba(14, 20, 31, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card-wide {
  width: min(100%, 560px);
}

.auth-card h1 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(2rem, 6vw, 2.7rem);
}

.auth-card > p {
  margin-bottom: 1.5rem;
}

.auth-help {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.78rem;
}

.success-orb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(81, 215, 165, 0.25);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--success);
  background: rgba(81, 215, 165, 0.1);
  font-size: 1.4rem;
}

.recovery-key {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  margin: 1.2rem 0;
  padding: 0.75rem;
  background: #080c13;
}

.recovery-key code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #d8dfff;
  font-size: 0.82rem;
}

.recovery-key button {
  flex: 0 0 auto;
}

/* Dashboard */

.dashboard-hero {
  position: relative;
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid rgba(145, 167, 255, 0.17);
  border-radius: 24px;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(78, 228, 206, 0.12), transparent 15rem),
    radial-gradient(circle at 38% 100%, rgba(120, 146, 255, 0.18), transparent 24rem),
    #101625;
}

.dashboard-hero::after {
  position: absolute;
  right: 10%;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.dashboard-hero h1 {
  margin: 0.4rem 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.dashboard-hero p {
  max-width: 650px;
  margin-bottom: 0;
}

.hero-action {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 185px;
  min-height: 120px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #0b1120;
  background: linear-gradient(145deg, #b4c1ff, #869dff);
  text-align: left;
}

.hero-action > span {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.hero-action small {
  margin-top: 0.18rem;
  opacity: 0.66;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  display: grid;
  min-height: 130px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: 17px;
  padding: 1.1rem;
  background: var(--surface);
}

.metric-card > small {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.metric-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.metric-card > div {
  display: grid;
}

.metric-card strong {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: -0.035em;
}

.metric-card span:not(.metric-icon) {
  color: var(--muted);
  font-size: 0.76rem;
}

.metric-primary {
  border-color: rgba(145, 167, 255, 0.21);
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 1rem;
}

.dashboard-panel {
  min-width: 0;
}

.dashboard-channel-list,
.activity-preview {
  display: grid;
}

.dashboard-channel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.82rem 0;
}

.dashboard-channel:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-channel-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.dashboard-channel-copy strong,
.dashboard-channel-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-channel-copy small {
  color: var(--muted);
}

.row-arrow {
  color: var(--muted-2);
  font-size: 1.4rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.75rem 0;
}

.activity-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-item > span {
  display: grid;
}

.activity-item small {
  color: var(--muted-2);
}

.activity-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: var(--primary);
}

.activity-dot.is-error {
  background: var(--danger);
}

.activity-dot.is-warning {
  background: var(--warning);
}

.info-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(78, 228, 206, 0.15);
  border-radius: 16px;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(78, 228, 206, 0.045);
}

.info-strip-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: var(--cyan-soft);
}

.info-strip > div {
  flex: 1;
}

.info-strip p {
  margin: 0.18rem 0 0;
  font-size: 0.8rem;
}

.info-strip > a {
  color: var(--cyan);
  font-weight: 700;
}

/* App and channel cards */

.app-avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #566179, #323b50);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.app-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.app-avatar-xl {
  width: 66px;
  height: 66px;
  border-radius: 19px;
  font-size: 0.95rem;
}

.app-avatar-hero {
  width: 94px;
  height: 94px;
  border-radius: 26px;
  font-size: 1.25rem;
}

.app-instagram {
  background: linear-gradient(145deg, #fb5a70, #9c4bd8 56%, #4c6fe8);
}

.app-tiktok {
  background: linear-gradient(145deg, #34ebdf, #161a25 48%, #fa496b);
}

.app-x {
  background: linear-gradient(145deg, #333946, #080a0f);
}

.app-youtube {
  background: linear-gradient(145deg, #ff5967, #b91325);
}

.app-reddit {
  background: linear-gradient(145deg, #ff7b43, #d84012);
}

.variant-badge,
.status-pill,
.badge,
.health-pill,
.limit-pill,
.release-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.variant-badge.is-clone {
  border-color: rgba(145, 167, 255, 0.23);
  color: #bdc9ff;
  background: var(--primary-soft);
}

.status-pill.is-live,
.badge-live,
.health-pill.is-good {
  border-color: rgba(81, 215, 165, 0.24);
  color: var(--success);
  background: rgba(81, 215, 165, 0.09);
}

.status-pill.is-error,
.badge-error {
  border-color: rgba(255, 116, 134, 0.24);
  color: var(--danger);
  background: var(--danger-soft);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.search-box {
  position: relative;
  display: flex;
  max-width: 520px;
  flex: 1;
  align-items: center;
}

.search-box > span {
  position: absolute;
  z-index: 1;
  left: 0.85rem;
  color: var(--muted-2);
  font-size: 1.1rem;
}

.search-box input {
  padding-left: 2.45rem;
}

.toolbar-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.channel-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: visible;
  border: 1px solid var(--border-soft);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.channel-card:hover {
  border-color: #33415a;
  transform: translateY(-2px);
}

.channel-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.15rem;
}

.channel-card-title {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.25rem;
}

.channel-card-title > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-card-title h2 {
  overflow: hidden;
  margin: 0;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card-title code {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.action-menu > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  right: 0;
  display: grid;
  width: 190px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  background: #111824;
  box-shadow: var(--shadow);
}

.action-menu a {
  border-radius: 8px;
  padding: 0.62rem 0.7rem;
  color: #c3ccdc;
  font-size: 0.76rem;
  font-weight: 650;
}

.action-menu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.channel-card-status {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.8rem 1.15rem;
}

.channel-card-status strong {
  font-size: 0.85rem;
}

.channel-card-status small {
  overflow: hidden;
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.9rem 1.15rem;
}

.channel-card-metrics span {
  display: grid;
  color: var(--muted-2);
  font-size: 0.66rem;
}

.channel-card-metrics strong {
  color: #cfd6e5;
  font-size: 0.8rem;
}

.channel-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding: 0.85rem 1.15rem;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 750;
}

.empty-search {
  padding: 3rem;
  text-align: center;
}

/* New channel and settings */

.creation-layout,
.settings-layout,
.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  align-items: start;
  gap: 1rem;
}

.creation-main,
.settings-main,
.channel-main,
.stack-panels {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.creation-aside,
.settings-aside,
.channel-aside {
  position: sticky;
  top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.step-heading > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(145, 167, 255, 0.2);
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.step-heading h2,
.step-heading p {
  margin-bottom: 0;
}

.step-heading p {
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.step-panel {
  display: grid;
  gap: 1rem;
}

.upload-summary {
  display: grid;
  gap: 1rem;
  border-color: rgba(145, 167, 255, 0.22);
}

.upload-summary h2 {
  margin: -0.5rem 0 0;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #b9c3d4;
  font-size: 0.78rem;
}

.check-list i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 0.65rem;
  font-style: normal;
}

.identity-card dl {
  display: grid;
  gap: 0;
  margin: 1rem 0;
}

.identity-card dl > div {
  display: grid;
  gap: 0.2rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.75rem 0;
}

.identity-card dt {
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.identity-card dd {
  margin: 0;
  color: #ccd4e2;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.identity-card p {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

/* Channel detail */

.channel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.channel-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.channel-identity > div {
  min-width: 0;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.title-with-badge h1 {
  margin: 0 0 0.25rem;
}

.channel-identity code {
  color: var(--muted);
  font-size: 0.76rem;
}

.channel-identity p {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}

.channel-hero-actions,
.row-actions,
.release-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.channel-hero-actions form,
.row-actions form,
.release-actions form {
  margin: 0;
}

.channel-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 17px;
  margin-bottom: 1rem;
  background: var(--surface);
}

.channel-metrics article {
  display: grid;
  gap: 0.2rem;
  border-left: 1px solid var(--border-soft);
  padding: 0.95rem 1rem;
}

.channel-metrics article:first-child {
  border-left: 0;
}

.channel-metrics span {
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.channel-metrics strong {
  font-size: 0.86rem;
}

.obtainium-card {
  border-color: rgba(78, 228, 206, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(78, 228, 206, 0.1), transparent 12rem),
    var(--surface);
}

.obtainium-logo {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(78, 228, 206, 0.26);
  border-radius: 13px;
  margin-bottom: 0.8rem;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 1.05rem;
  font-weight: 900;
}

.obtainium-card p,
.obtainium-card > small,
.stats-note p {
  font-size: 0.76rem;
}

.copy-field {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0.8rem 0;
  background: #080c13;
}

.copy-field code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 0.6rem 0.7rem;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-field button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 0 0.65rem;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.compact-list {
  display: grid;
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.8rem 0;
}

.compact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.compact-row > div:first-child {
  display: grid;
  min-width: 0;
}

.compact-row span,
.compact-row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.release-list {
  display: grid;
  gap: 0.75rem;
}

.release-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1fr);
  gap: 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.release-card.is-current {
  border-color: rgba(81, 215, 165, 0.2);
  background:
    linear-gradient(135deg, rgba(81, 215, 165, 0.035), transparent 45%),
    rgba(255, 255, 255, 0.015);
}

.release-status {
  display: flex;
  gap: 0.65rem;
}

.release-status > div {
  display: grid;
  align-content: start;
  gap: 0.18rem;
}

.release-status strong {
  margin-top: 0.2rem;
  font-size: 1rem;
}

.release-status small {
  color: var(--muted);
  font-size: 0.7rem;
}

.release-marker {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid var(--surface);
  border-radius: 50%;
  margin-top: 0.4rem;
  background: var(--muted-2);
  box-shadow: 0 0 0 2px var(--border);
}

.is-current .release-marker {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(81, 215, 165, 0.25);
}

.release-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.release-details span {
  display: grid;
  color: var(--muted-2);
  font-size: 0.64rem;
}

.release-details strong {
  color: #c5cedd;
  font-size: 0.72rem;
}

.release-hash,
.release-notes,
.release-actions {
  grid-column: 1 / -1;
}

.release-hash {
  display: grid;
  gap: 0.2rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.7rem;
}

.release-hash span {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.release-hash code {
  font-size: 0.66rem;
}

.release-notes {
  margin: 0;
  font-size: 0.76rem;
}

.release-actions {
  align-items: center;
}

.release-actions small {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.empty-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 130px;
  color: var(--muted-2);
}

.empty-inline p {
  margin: 0;
}

.danger-zone {
  border-color: rgba(255, 116, 134, 0.15);
}

.danger-zone > summary {
  color: #ff98a5;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.danger-zone > summary::-webkit-details-marker {
  display: none;
}

.danger-zone[open] > summary {
  margin-bottom: 1rem;
}

.danger-zone p {
  font-size: 0.76rem;
}

/* Metadata, checks and activity */

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.metadata-grid > div {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.015);
}

.metadata-grid dt {
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.metadata-grid dd {
  margin: 0.25rem 0 0;
  color: #d9e0eb;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.hash-block {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-top: 0.65rem;
  padding: 0.8rem;
  background: #080c13;
}

.hash-block span {
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hash-block code {
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.check-row input[type="checkbox"] {
  width: 21px;
  min-height: 21px;
  margin: 0.15rem 0 0;
  accent-color: var(--primary);
}

.check-row-result {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.75rem 0;
}

.check-row-result:first-child {
  border-top: 0;
}

.check-row-result > div {
  display: grid;
}

.check-row-result small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--success);
  background: rgba(81, 215, 165, 0.09);
}

.check-icon.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.system-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.mini-action-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mini-action-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.mini-action-card > div {
  display: grid;
  flex: 1;
}

.mini-action-card small {
  color: var(--muted);
}

.mini-action-card b {
  color: var(--muted-2);
  font-size: 1.25rem;
}

.privacy-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-color: rgba(78, 228, 206, 0.16);
}

.privacy-banner > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--cyan);
  background: var(--cyan-soft);
}

.privacy-banner p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
}

.activity-list {
  display: grid;
}

.activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.8rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.9rem 0;
}

.activity-row:first-child {
  border-top: 0;
}

.activity-symbol {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: var(--success);
  background: rgba(81, 215, 165, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
}

.activity-symbol.is-warning {
  color: var(--warning);
  background: rgba(246, 199, 100, 0.09);
}

.activity-symbol.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.activity-context {
  display: flex;
  gap: 0.35rem 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.activity-context span {
  color: var(--muted-2);
  font-size: 0.66rem;
}

.activity-row time {
  color: var(--muted-2);
  font-size: 0.68rem;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.empty-state h2 {
  margin: 0.65rem 0 0.35rem;
}

.empty-state p {
  max-width: 530px;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.4rem;
}

.empty-state-featured {
  background:
    radial-gradient(circle at 50% 100%, rgba(145, 167, 255, 0.1), transparent 18rem),
    rgba(16, 22, 34, 0.7);
}

/* Public site */

.public-body {
  background:
    radial-gradient(circle at 74% -5%, rgba(118, 86, 224, 0.18), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(78, 228, 206, 0.05), transparent 22rem),
    var(--bg);
}

.public-header,
.public-footer,
.public-container {
  width: min(100% - 2.2rem, 1120px);
  margin-inline: auto;
}

.public-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.public-brand > span:last-child {
  display: grid;
}

.public-brand strong {
  font-size: 0.88rem;
}

.public-brand small {
  color: var(--muted-2);
  font-size: 0.66rem;
}

.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(81, 215, 165, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  color: #9de7ca;
  background: rgba(81, 215, 165, 0.055);
  font-size: 0.68rem;
  font-weight: 700;
}

.verified-chip i,
.release-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 9px var(--success);
}

.public-container {
  min-height: calc(100vh - 180px);
  padding: clamp(2rem, 8vw, 6rem) 0;
}

.public-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 320px;
}

.public-hero h1 {
  margin: 0.55rem 0 1.1rem;
  font-size: clamp(3rem, 7.5vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.public-hero h1 em {
  color: transparent;
  background: linear-gradient(90deg, #a9b8ff, #78d9d1);
  background-clip: text;
  font-style: normal;
  -webkit-background-clip: text;
}

.public-hero p {
  max-width: 610px;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
}

.hero-signal {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid rgba(145, 167, 255, 0.17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 167, 255, 0.12), transparent 68%);
  text-align: center;
}

.hero-signal::before,
.hero-signal::after {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(145, 167, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.hero-signal::after {
  inset: -40px;
}

.hero-signal > span {
  position: absolute;
  top: 16px;
  right: 29px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(81, 215, 165, 0.1);
}

.hero-signal i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.hero-signal strong {
  font-size: 3rem;
  letter-spacing: -0.07em;
}

.hero-signal small {
  color: var(--muted);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin: 2rem 0 5rem;
  padding: 1rem 0;
}

.trust-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-left: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.72rem;
}

.trust-row span:first-child {
  border-left: 0;
}

.trust-row i {
  color: var(--cyan);
  font-style: normal;
}

.public-section-heading {
  align-items: flex-end;
}

.public-section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.public-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-app-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 1.3rem;
  background:
    radial-gradient(circle at 100% 0, rgba(145, 167, 255, 0.07), transparent 13rem),
    var(--surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.public-app-card:hover {
  border-color: #394965;
  transform: translateY(-4px);
}

.public-app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.public-card-arrow {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.public-app-card h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.5rem;
}

.public-app-card p {
  font-size: 0.78rem;
}

.public-app-card-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}

.public-app-card-meta span {
  display: grid;
}

.public-app-card-meta small {
  color: var(--muted-2);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.public-app-card-meta strong {
  font-size: 0.78rem;
}

.public-footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 0.68rem;
}

.public-breadcrumb {
  margin-bottom: 2rem;
}

.public-release {
  display: grid;
  gap: 1rem;
}

.public-release-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.public-release-header > div {
  min-width: 0;
  flex: 1;
}

.public-release-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.public-release-header p {
  margin: 0.4rem 0;
}

.public-release-header code {
  color: var(--muted);
  font-size: 0.74rem;
}

.release-live {
  gap: 0.45rem;
  border-color: rgba(81, 215, 165, 0.19);
  color: var(--success);
}

.public-version-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 21px;
  background: var(--surface);
}

.public-version-card > div {
  display: grid;
  align-content: center;
  border-right: 1px solid var(--border-soft);
  padding: 1.6rem;
}

.public-version-card > div > strong {
  margin: 0.25rem 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.055em;
}

.public-version-card > div > small {
  color: var(--muted);
}

.public-version-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.public-version-card dl > div {
  display: grid;
  place-content: center;
  border-left: 1px solid var(--border-soft);
  padding: 1rem;
  text-align: center;
}

.public-version-card dl > div:first-child {
  border-left: 0;
}

.public-version-card dt {
  color: var(--muted-2);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.public-version-card dd {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 750;
}

.release-changes {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.015);
}

.release-changes span {
  color: var(--primary);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-changes p {
  margin: 0.4rem 0 0;
}

.public-download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-button,
.obtainium-button {
  display: grid;
  min-height: 108px;
  grid-template-columns: auto 1fr;
  align-content: center;
  justify-content: start;
  padding: 1.1rem 1.3rem;
  text-align: left;
}

.download-button > span,
.obtainium-button > span {
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 13px;
  margin-right: 0.2rem;
  background: rgba(8, 14, 29, 0.12);
  font-size: 1.15rem;
}

.download-button small,
.obtainium-button small {
  opacity: 0.65;
}

.obtainium-button {
  border: 1px solid rgba(78, 228, 206, 0.25);
  color: #c7fff5;
  background:
    linear-gradient(135deg, rgba(78, 228, 206, 0.1), transparent),
    var(--surface);
}

.verification-panel {
  border: 1px solid var(--border-soft);
  border-radius: 21px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
}

.release-id-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.release-id-line span {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.public-obtainium-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(78, 228, 206, 0.13);
  border-radius: 18px;
  margin-top: 1rem;
  padding: 1.2rem;
  background: rgba(78, 228, 206, 0.035);
}

.public-obtainium-note .obtainium-logo {
  margin: 0;
}

.public-obtainium-note h2 {
  margin: 0 0 0.25rem;
}

.public-obtainium-note p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 1120px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .release-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: min(86vw, 310px);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .mobile-admin-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    padding: 0.55rem 1rem;
    background: rgba(7, 10, 16, 0.9);
    backdrop-filter: blur(15px);
  }

  .mobile-admin-header .sidebar-brand {
    min-height: auto;
    padding: 0;
  }

  .mobile-admin-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #b8c2d4;
  }

  .admin-topbar {
    display: none;
  }

  .admin-content {
    padding: 1.15rem;
  }

  .admin-footer {
    margin-inline: 1.15rem;
  }

  .creation-layout,
  .settings-layout,
  .channel-layout {
    grid-template-columns: 1fr;
  }

  .creation-aside,
  .settings-aside,
  .channel-aside {
    position: static;
  }

  .creation-aside {
    order: initial;
  }

  .creation-aside .check-list {
    display: none;
  }

  .creation-aside .upload-summary > .eyebrow,
  .creation-aside .upload-summary > h2 {
    display: none;
  }

  .dashboard-columns,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .channel-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-metrics article:nth-child(3) {
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .channel-metrics article:nth-child(4) {
    border-top: 1px solid var(--border-soft);
  }

  .public-container {
    padding-top: 2.5rem;
  }

  .public-hero {
    min-height: 280px;
  }

  .hero-signal {
    display: none;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 3.5rem;
  }

  .trust-row span {
    min-height: 42px;
  }

  .trust-row span:nth-child(3) {
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .trust-row span:nth-child(4) {
    border-top: 1px solid var(--border-soft);
  }

  .public-version-card {
    grid-template-columns: 1fr;
  }

  .public-version-card > div {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .page-heading,
  .channel-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading .primary-button,
  .channel-hero-actions {
    width: 100%;
  }

  .channel-hero-actions > * {
    flex: 1;
  }

  .form-grid,
  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .metric-card {
    min-height: 116px;
    padding: 0.85rem;
  }

  .metric-icon {
    width: 34px;
    height: 34px;
  }

  .dashboard-hero {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 1.35rem;
  }

  .hero-action {
    min-width: 0;
    min-height: 76px;
    grid-template-columns: auto 1fr;
    justify-content: stretch;
    column-gap: 0.7rem;
  }

  .hero-action > span {
    grid-row: 1 / 3;
    margin: 0;
  }

  .info-strip {
    align-items: flex-start;
  }

  .info-strip > a {
    display: none;
  }

  .channel-card-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .channel-card-status small {
    width: 100%;
    margin-left: 0;
  }

  .compact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-details {
    grid-template-columns: 1fr;
  }

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

  .release-actions > *,
  .release-actions form button {
    width: 100%;
  }

  .file-drop {
    align-items: flex-start;
  }

  .file-drop .secondary-button {
    display: none;
  }

  .activity-row {
    grid-template-columns: auto 1fr;
  }

  .activity-row time {
    grid-column: 2;
  }

  .system-actions {
    grid-template-columns: 1fr;
  }

  .admin-footer,
  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
  }

  .public-header,
  .public-footer,
  .public-container {
    width: min(100% - 1.35rem, 1120px);
  }

  .public-header {
    min-height: 74px;
  }

  .public-header > .verified-chip {
    display: none;
  }

  .public-hero {
    min-height: 240px;
  }

  .public-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .public-app-grid {
    grid-template-columns: 1fr;
  }

  .public-app-card {
    min-height: 270px;
  }

  .public-release-header {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .app-avatar-hero {
    width: 72px;
    height: 72px;
    border-radius: 21px;
  }

  .public-release-header > div {
    flex-basis: calc(100% - 90px);
  }

  .public-release-header .release-live {
    margin-left: 88px;
  }

  .public-version-card dl {
    grid-template-columns: 1fr;
  }

  .public-version-card dl > div {
    border-top: 1px solid var(--border-soft);
    border-left: 0;
    padding: 0.8rem;
  }

  .public-version-card dl > div:first-child {
    border-top: 0;
  }

  .public-download-actions {
    grid-template-columns: 1fr;
  }

  .release-id-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .public-obtainium-note {
    align-items: flex-start;
  }

  .recovery-key {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selected source branding assets are rendered without pixel modification. */
.brand-lock {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-lock--large {
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
}
