:root {
  color-scheme: dark;
  --bg: #080b18;
  --panel: #111629;
  --line: #252c45;
  --muted: #8f9aba;
  --accent: #7357ff;
  --cyan: #4ce4cf;
}
.master-muted { color: var(--muted); line-height: 1.7; }
.master-permission { padding: 18px 22px; margin-bottom: 20px; border-left: 3px solid var(--cyan); background: #11232e; }
.master-permission > b { color: var(--cyan); font-size: 16px; }
.master-permission p { margin: 8px 0 0; color: #b8c0d9; line-height: 1.6; }
.master-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.master-layout label { align-content: start; }
.master-guidance ul { padding-left: 20px; color: #b8c0d9; line-height: 1.8; }
.master-guidance li { margin-bottom: 15px; }
.master-confirm { border-top: 1px solid var(--line); padding-top: 18px; }
.master-list, .master-action { margin-top: 20px; overflow-x: auto; }
#masterPageMessage { display: block; color: var(--cyan); margin-top: 16px; line-height: 1.7; }
@media(max-width: 1000px) { .master-layout { grid-template-columns: minmax(0,1fr); } }
.project-heading p, .company-manager p, .form-divider p {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.6;
}
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.company-note { padding: 14px 18px; border-left: 3px solid var(--cyan); background: #111c2d; color: #b8c0d9; line-height: 1.6; margin-bottom: 16px; }
#projectPageMessage { display: block; color: var(--cyan); margin-bottom: 12px; }
.project-table-wrap { overflow-x: auto; }
.table.project-table { min-width: 950px; }
.project-table td { vertical-align: top; }
.project-actions { display: grid; gap: 9px; min-width: 160px; }
.workspace-link { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid #387e80; background: #153a40; color: #baf9ed; border-radius: 10px; text-decoration: none; font-weight: 700; }
.workspace-link:hover { background: #235158; }
.project-key { margin-top: 10px; max-width: 220px; }
.project-key summary { color: var(--muted); cursor: pointer; font-size: 12px; }
.project-key code { display: block; font-size: 11px; overflow-wrap: anywhere; padding-top: 5px; }
.company-manager { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 20px; }
.company-list { list-style: none; padding: 0; margin: 18px 0 0; }
.company-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.company-manager form .action-row { margin: 20px 0 12px; }
.form-divider { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.form-divider h3 { margin: 0; }
.timezone-preview { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0b182b; border: 1px solid #29455e; padding: 18px; border-radius: 12px; }
.timezone-preview b, .timezone-preview small { display: block; }
.timezone-preview b { margin: 6px 0; font-variant-numeric: tabular-nums; }
.timezone-preview p { color: var(--muted); margin: 0; line-height: 1.6; }
.settings-warning { color: #e7cf9a; background: #28251e; padding: 14px; border-radius: 10px; line-height: 1.6; }
.site-binding, #projectForm, #featureForm { margin-top: 18px; scroll-margin-top: 80px; }
.owner-project-banner { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; padding: 20px 24px; background: #112e35; border: 1px solid #2f666c; border-radius: 12px; }
.owner-project-banner small, .owner-project-banner b, .owner-project-banner span { display: block; }
.owner-project-banner small { letter-spacing: .08em; font-size: 10px; color: var(--cyan); }
.owner-project-banner b { margin: 6px 0; font-size: 19px; }
.owner-project-banner span { color: #b8c0d9; font-size: 12px; line-height: 1.6; }
.owner-project-banner a { color: #baf9ed; white-space: nowrap; }
button:disabled { opacity: .5; cursor: not-allowed; }
:is(button,a,input,select):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media(max-width: 760px) {
  .company-manager { grid-template-columns: 1fr; gap: 16px; }
  .section-head.project-heading, .timezone-preview, .owner-project-banner { align-items: stretch; flex-direction: column; gap: 16px; }
  .project-heading .action-row > button { flex: 1; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0, #17143b 0, transparent 35%), var(--bg);
  color: #f7f8ff;
  font:
    14px Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
.language-switch {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #303953;
  border-radius: 999px;
  background: rgba(8, 12, 25, 0.88);
  box-shadow: 0 10px 30px #0005;
  backdrop-filter: blur(12px);
}
.language-switch span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.language-switch select {
  width: auto;
  min-width: 82px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: #1c2440;
}
.hidden {
  display: none !important;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 22, 41, 0.94);
  box-shadow: 0 30px 100px #0008;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
}
.brand span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f80ff, #8b45ec);
  font-style: italic;
}
.login-card h1 {
  font-size: 34px;
  margin: 40px 0 8px;
}
.login-card p,
.login-card small,
small {
  color: var(--muted);
}
label {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  color: #b8c0d9;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1020;
  color: #fff;
  border-radius: 11px;
  padding: 13px 14px;
  font: inherit;
}
button {
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  background: #202740;
  color: #dbe1f6;
  font-weight: 700;
  cursor: pointer;
}
.login-card button,
.primary {
  background: linear-gradient(100deg, #347df6, #7645ef);
  color: #fff;
}
.login-card button {
  width: 100%;
  margin-top: 26px;
}
.login-card small {
  display: block;
  min-height: 20px;
  margin-top: 14px;
  color: #ff8297;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}
aside {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 27px 20px;
  display: flex;
  flex-direction: column;
  background: #090d1b;
}
nav {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}
nav button {
  text-align: left;
  background: transparent;
}
nav button.active,
nav button:hover {
  background: #1a2036;
  color: #fff;
}
.account {
  margin-top: auto;
  display: grid;
  gap: 5px;
  padding: 16px;
}
.account button {
  margin-top: 10px;
  text-align: left;
  padding-left: 0;
  background: transparent;
  color: #9ca7c5;
}
main {
  min-width: 0;
  padding: 35px clamp(22px, 4vw, 64px);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}
header h1 {
  margin: 5px 0 0;
  font-size: 32px;
}
.live {
  color: var(--cyan);
  font-size: 12px;
  margin-right: 145px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(17, 22, 41, 0.82);
  padding: 22px;
  overflow: auto;
}
.stat b {
  font-size: 34px;
  display: block;
  margin-top: 16px;
}
.stat small {
  font-size: 12px;
}
.wide {
  grid-column: span 2;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
}
.section-head h2 {
  margin: 0;
}
.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #173c38;
  color: var(--cyan);
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid label {
  min-width: 0;
  margin: 0;
}
.form-grid .full {
  grid-column: 1/-1;
}
.code {
  white-space: pre-wrap;
  background: #070a13;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  color: #b7c8ff;
  overflow: auto;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
.inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.notice {
  padding: 16px;
  border: 1px solid #315b57;
  background: #102522;
  border-radius: 12px;
  color: var(--cyan);
  line-height: 1.7;
}
.eyebrow {
  margin-top: 30px !important;
  color: var(--cyan) !important;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.text-button,
.login-card .text-button {
  margin-top: 10px;
  background: transparent;
  color: #aeb8d4;
}
.otp-input {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}
.two-factor-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  max-width: 980px;
  margin: 3vh auto 0;
}
.two-factor-intro {
  position: relative;
  padding: 34px 32px 34px 47px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, #151c34, #0a0e1d);
  overflow: hidden;
}
.security-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(#4ce4cf, #377bf5 48%, #7645ef);
}
.two-factor-intro > small,
.security-status small,
.recovery-panel > small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.two-factor-intro h2 {
  max-width: 380px;
  margin: 18px 0 12px;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.05;
}
.two-factor-intro p,
.two-factor-intro li,
.two-factor-card p,
.recovery-panel p,
#recoveryCodesForm p {
  color: var(--muted);
  line-height: 1.7;
}
.two-factor-intro ol {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding-left: 20px;
}
.two-factor-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
.qr-frame {
  align-self: center;
  width: min(280px, 100%);
  margin: 4px auto 8px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px #0007;
}
.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.manual-key {
  display: block;
  padding: 13px;
  border: 1px dashed #4c5a80;
  border-radius: 10px;
  background: #080c18;
  color: #bfcbeb;
  overflow-wrap: anywhere;
  letter-spacing: 0.08em;
  text-align: center;
}
#twoFactorMessage,
#recoveryCodesMessage {
  min-height: 18px;
  color: #ff8297;
}
.recovery-panel {
  max-width: 760px;
  margin: 5vh auto;
  padding: 32px;
  border: 1px solid #315b57;
  border-radius: 20px;
  background: linear-gradient(145deg, #102522, #10162a);
  box-shadow: 0 28px 90px #0007;
}
.recovery-panel h2 {
  margin: 12px 0 0;
  font-size: 30px;
}
.recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 23px 0;
}
.recovery-grid code {
  padding: 13px;
  border: 1px solid #335553;
  border-radius: 10px;
  background: #081513;
  color: #9ff7e9;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-align: center;
}
.recovery-panel > button {
  margin-right: 8px;
}
.security-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding-left: 19px;
}
.security-status .security-rail {
  border-radius: 8px;
}
.security-status h2 {
  margin: 6px 0 0;
}
.badge-warn {
  background: #392914;
  color: #ffc66b;
}
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric-grid .stat {
  position: relative;
  min-height: 126px;
  overflow: hidden;
}
.metric-grid .stat::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -38px;
  width: 105px;
  height: 105px;
  border: 17px solid #ffffff08;
  border-radius: 50%;
}
.audience-stat b { color: #80aaff; }
.ready-stat {
  border-color: #2a635b;
  background: linear-gradient(145deg, #112825, #111629);
}
.ready-stat b,
.count-cell.ready { color: var(--cyan); }
.muted-stat b { color: #8994b2; }
.audience-ledger {
  position: relative;
  margin-top: 18px;
  padding-top: 26px;
}
.audience-ledger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  background: linear-gradient(90deg, #4ce4cf 0 22%, #4ce4cf33 22% 70%, transparent 70%);
}
.audience-ledger::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(22% + 12px);
  width: 9px;
  height: 9px;
  border: 3px solid #0e1426;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px #4ce4cf;
}
.audience-ledger .section-head {
  margin-top: 0;
}
.audience-ledger .section-head small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .13em;
}
.audience-ledger .section-head h2 {
  margin-top: 8px;
}
.audience-ledger .section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.count-cell {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.feature-chip {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}
.feature-chip.calendar,
.feature-symbol.calendar {
  background: #1c3153;
  color: #8dbaff;
}
.feature-chip.notification,
.feature-symbol.notification {
  background: #153b35;
  color: #72efdc;
}
.compact-button {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10px;
}
.project-create > div > small,
.feature-editor > div > small,
.calendar-feeds > div:first-child small,
.delivery-explainer > small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .14em;
}
.project-create > div h2,
.feature-editor > div h2 {
  margin: 7px 0 0;
}
.feature-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 6px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature-picker legend {
  padding: 0 8px;
  color: #dbe3fa;
  font-weight: 800;
}
.feature-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #2b3450;
  border-radius: 13px;
  background: #0b1020;
  cursor: pointer;
}
.feature-option input {
  width: auto;
  margin-top: 13px;
  accent-color: #4ce4cf;
}
.feature-symbol {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
}
.feature-option b,
.feature-option small {
  display: block;
}
.feature-option small {
  margin-top: 5px;
  line-height: 1.45;
}
.feature-editor {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}
.feature-editor p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.schedule-timezone,
.inline-timezone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #2b4a5b;
  border-radius: 13px;
  background: linear-gradient(100deg, #0e2528, #10172a);
}
.schedule-timezone > span,
.inline-timezone > span {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #153c3d;
  color: var(--cyan);
  font-size: 20px;
}
.schedule-timezone small,
.schedule-timezone b,
.schedule-timezone p {
  display: block;
}
.schedule-timezone small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.schedule-timezone b { margin-top: 4px; }
.schedule-timezone p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.delivery-explainer div {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1020;
}
.delivery-explainer p,
.delivery-explainer span {
  color: var(--muted);
  line-height: 1.6;
}
.full-grid {
  grid-column: 1 / -1;
}
.calendar-feeds {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.calendar-feeds > div:first-child {
  margin-right: auto;
}
.calendar-feeds h2 { margin: 7px 0 0; }
.calendar-feeds > div:not(:first-child) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1020;
}
.calendar-feeds a {
  padding: 7px 9px;
  border-radius: 8px;
  background: #202b49;
  color: #b9d2ff;
  font-size: 11px;
  text-decoration: none;
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 22px;
  }
  nav button { flex: 0 0 auto; white-space: nowrap; }
  .account {
    display: none;
  }
  main {
    padding: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .live {
    display: none;
  }
  .language-switch {
    top: 14px;
    right: 14px;
  }
  .language-switch span { display: none; }
  .metric-grid,
  .feature-picker,
  .feature-editor {
    grid-template-columns: 1fr;
  }
  .calendar-feeds,
  .calendar-feeds > div:not(:first-child) {
    align-items: stretch;
    flex-direction: column;
  }
  .inline {
    grid-template-columns: 1fr;
  }
  .two-factor-shell {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .two-factor-intro {
    padding: 27px 24px 27px 38px;
  }
  .recovery-grid {
    grid-template-columns: 1fr;
  }
}

.appearance-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.integration-stack { display: grid; gap: 18px; }
.install-policy { overflow: visible; }
.policy-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.policy-heading h2 { margin: 7px 0 8px; font-size: 25px; }
.policy-heading p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.65; }
.policy-heading > div > small { color: var(--cyan); font-size: 10px; letter-spacing: .14em; }
.policy-status { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #345b5a; border-radius: 99px; background: #102623; color: var(--cyan); font-size: 11px; }
.policy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 24px 0 18px; }
.policy-option { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #0c1121; cursor: pointer; transition: .18s border-color, .18s transform, .18s background; }
.policy-option:hover { transform: translateY(-1px); border-color: #475275; }
.policy-option.selected { border-color: #527ef6; background: linear-gradient(145deg, #121b37, #12162b); box-shadow: inset 0 0 0 1px #527ef633; }
.policy-option input { position: absolute; opacity: 0; pointer-events: none; }
.policy-mark { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #202943; color: #aab9e2; font-size: 11px; font-weight: 900; }
.policy-option.selected .policy-mark { background: linear-gradient(135deg, #397ff7, #7747ef); color: #fff; }
.policy-option b { display: block; font-size: 14px; }
.policy-option em { margin-left: 6px; color: var(--cyan); font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.policy-option p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.device-behavior { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.device-behavior div { padding: 14px; background: #0a0f1e; }
.device-behavior b, .device-behavior span { display: block; }
.device-behavior b { font-size: 11px; color: #dce3f8; }
.device-behavior span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
#pwaSettingsMessage { margin-left: 12px; }
@media (max-width: 760px) { .policy-heading { display: grid; } .policy-status { justify-self: start; } .policy-options, .device-behavior { grid-template-columns: 1fr; } }
.theme-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.theme-form label {
  margin: 0;
}
.theme-form .full {
  grid-column: 1/-1;
}
.theme-form input[type="color"] {
  height: 48px;
  padding: 5px;
}
.theme-form input[type="range"] {
  padding: 7px 0;
  background: transparent;
  border: 0;
}
.theme-form output {
  float: right;
  color: var(--cyan);
}
.theme-form .check {
  display: flex;
  grid-column: 1/-1;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.theme-form .check input {
  width: auto;
}
.theme-section {
  margin: 12px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.theme-preview-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
}
.theme-stage {
  position: relative;
  min-height: 560px;
  margin-top: 18px;
  padding: 22px;
  background: linear-gradient(145deg, #1a2440, #080c18);
  border: 1px solid #303a57;
  border-radius: 18px;
}
.theme-dialog {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px #0008;
}
.theme-dialog-head {
  min-height: 88px;
  padding: 18px;
  color: #fff;
  display: grid;
  gap: 6px;
  position: relative;
}
.theme-dialog-head small {
  color: #fff9;
  font-size: 8px;
}
.theme-dialog-head b {
  font-size: 16px;
}
.theme-dialog-head span {
  position: absolute;
  right: 16px;
  top: 15px;
  font-size: 18px;
}
.theme-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}
.theme-month button {
  padding: 5px 8px;
}
.theme-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 14px;
}
.theme-days i {
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff1;
  font-size: 9px;
  font-style: normal;
}
.theme-days i.active {
  color: #fff;
}
.theme-event {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px;
  padding: 11px;
  border: 1px solid #8883;
  border-radius: 10px;
}
.theme-event > span {
  width: 7px;
  height: 34px;
  border-radius: 5px;
}
.theme-event b,
.theme-event small {
  display: block;
}
.theme-event small {
  font-size: 8px;
  margin-top: 4px;
}
.theme-launcher {
  position: absolute;
  right: 13px;
  bottom: 38px;
  border: 1px solid #fff5;
  border-radius: 12px;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 25px #0007;
}
.theme-hint {
  position: absolute;
  left: 22px;
  right: 72px;
  bottom: 17px;
  font-size: 9px;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .appearance-layout {
    grid-template-columns: 1fr;
  }
  .theme-preview-card {
    position: static;
  }
}
@media (max-width: 620px) {
  .theme-form {
    grid-template-columns: 1fr;
  }
  .theme-form .full {
    grid-column: auto;
  }
  .theme-stage {
    min-height: 500px;
    padding: 12px;
  }
  .appearance-layout {
    display: block;
  }
  .theme-preview-card {
    margin-top: 16px;
  }
}
