:root {
  --bg: #080f1d;
  --panel: #121d30;
  --panel2: #192842;
  --text: #edf4ff;
  --muted: #9aabc3;
  --border: #ffffff1d;
  --blue: #3988f6;
  --cyan: #63d8ff;
  --green: #42d392;
  --red: #ff6b7a;
  --violet: #8b5cf6;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 0, #233e7547, transparent 32rem),
    radial-gradient(circle at 5% 55%, #4c1d9533, transparent 30rem), var(--bg);
  color: var(--text);
}
a {
  color: inherit;
}
.tool-nav {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1180px;
  margin: auto;
  padding: 0 1.3rem;
  border-bottom: 1px solid var(--border);
}
.brand {
  margin-right: auto;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.brand span {
  color: #75bfff;
}
.tool-nav > a:not(.brand) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.tool-nav > a:hover {
  color: var(--text);
}
.page {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}
.hero-copy {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.eyebrow {
  margin: 0 0 0.7rem;
  color: #79ceff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.hero-copy h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}
.hero-copy .hero-guide-link {
  margin-top: 1rem;
  font-size: 0.92rem;
}
.hero-guide-link a {
  color: #9edcff;
  font-weight: 750;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.panel {
  padding: 1.5rem;
  background: linear-gradient(145deg, #18263cde, #10192add);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 18px 55px #02061735;
}
.panel h2,
.panel h1 {
  margin: 0.1rem 0 0.55rem;
  letter-spacing: -0.035em;
}
.panel > p {
  color: var(--muted);
  line-height: 1.55;
}
.stack {
  display: grid;
  gap: 0.9rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  color: #cbd7e7;
  font-size: 0.86rem;
  font-weight: 650;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #ffffff26;
  border-radius: 9px;
  background: #080f1db8;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  border-color: #5ba4ff;
  box-shadow: 0 0 0 3px #3b82f625;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.skip-to-content {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  max-width: calc(100vw - 1.5rem);
  padding: 0.7rem 1rem;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  background: #080f1d;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.12s ease;
}

.skip-to-content:focus-visible {
  transform: translateY(0);
}

.runtime-fallback {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 760px);
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #f59e0b99;
  border-radius: 10px;
  background: #42200666;
  color: #fff7ed;
}

.runtime-fallback h2,
.runtime-fallback p {
  margin: 0;
}

.runtime-fallback h2 {
  color: #fde68a;
  font-size: 1.08rem;
}

.runtime-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.runtime-recovery-active .runtime-fallback {
  display: none;
}

.embed-body .runtime-fallback {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.embed-body .runtime-fallback-actions .button {
  padding: 0.5rem 0.65rem;
}
.field small,
.muted {
  color: var(--muted);
  font-weight: 400;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel2);
  color: var(--text);
  padding: 0.76rem 1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.12);
}
.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: #7286ef;
}
.button.danger {
  color: #ffb6bd;
  border-color: #ff6b7a4d;
  background: #ff6b7a16;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.notice {
  padding: 0.8rem 1rem;
  border: 1px solid #68a9ff55;
  border-radius: 9px;
  background: #3b82f615;
  color: #bfdcff;
  font-size: 0.9rem;
  line-height: 1.5;
}
.notice.error {
  border-color: #ff6b7a55;
  background: #ff6b7a12;
  color: #ffc0c6;
}
.notice.success {
  border-color: #42d39255;
  background: #42d39212;
  color: #a8f0d0;
}
.hidden {
  display: none !important;
}
.file-drop-page {
  max-width: 900px;
}
.drop-panel {
  max-width: 760px;
  margin: 0 auto;
}
.file-pickers,
.share-output {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.share-output {
  margin-top: 1rem;
}
.share-output .field {
  flex: 1 1 25rem;
}
.share-output input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.drop-progress {
  width: 100%;
  accent-color: var(--blue);
}
.delivery-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid #68a9ff55;
  border-radius: 12px;
  background: #3b82f60d;
}
.delivery-controls legend {
  padding: 0 0.4rem;
  color: #bfdcff;
  font-weight: 750;
}
.embed-body {
  min-height: 0;
  background: transparent;
}
.embed-shell {
  padding: 0.5rem;
}
.embed-shell .panel {
  margin: 0;
  box-shadow: none;
}
.powered {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}
.status-embed-body {
  padding: 0.4rem;
}
.status-embed-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.status-embed-card strong,
.status-embed-card small {
  display: block;
}
.status-embed-card small {
  margin-top: 0.2rem;
  color: var(--muted);
}
.account-box {
  margin-bottom: 1rem;
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.account-summary > div {
  margin-right: auto;
}
.account-summary strong {
  display: block;
}
.plan-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #72a8ff55;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #3b82f618;
  color: #abd5ff;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}
.auth-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.auth-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0.35rem 0;
  margin-right: 0.8rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.auth-tabs button.active {
  color: var(--text);
  border-bottom: 2px solid #63b8ff;
}
.account-auth {
  max-width: 31rem;
  margin-inline: auto;
  border-color: #619cff66;
}
.account-auth h2 {
  margin-bottom: 0.25rem;
}
.account-auth-copy {
  margin: 0 0 1.35rem;
  color: var(--muted);
}
.account-auth .stack {
  gap: 0.8rem;
}
.account-auth .button.primary {
  width: 100%;
  margin-top: 0.25rem;
}

.account-auth-secondary {
  justify-self: center;
  border: 0;
  padding: 0.2rem;
  background: none;
  color: #8dc6ff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.account-auth-secondary:hover,
.account-auth-secondary:focus-visible {
  color: #c9e6ff;
}
.account-page .account-box {
  max-width: 31rem;
  margin: 0 auto;
}
.secret-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 130px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #070d18;
  color: #dcecff;
  font:
    500 0.95rem/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.link-output {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080f1d;
  color: #aedaff;
  font:
    500 0.82rem/1.5 ui-monospace,
    SFMono-Regular,
    monospace;
}
.monitor-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.monitor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #0a1322a6;
}
.monitor > div {
  min-width: 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8290a7;
  box-shadow: 0 0 0 4px #8290a719;
}
.dot.up {
  background: var(--green);
  box-shadow: 0 0 0 4px #42d3921c;
}
.dot.down {
  background: var(--red);
  box-shadow: 0 0 0 4px #ff6b7a1c;
}
.monitor strong,
.monitor small {
  display: block;
}
.monitor small {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  white-space: nowrap;
}
.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.monitor-actions .button {
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
}
.status-head {
  text-align: center;
  margin-bottom: 2rem;
}
.status-logo {
  display: block;
  max-width: 190px;
  max-height: 70px;
  margin: 0 auto 1.2rem;
  object-fit: contain;
}
.big-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin: 1.2rem 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.history {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.history th,
.history td {
  text-align: left;
  padding: 0.72rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.history th {
  color: var(--muted);
}
.history .up {
  color: #70e2ad;
}
.history .down {
  color: #ff8b96;
}
.empty {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}
.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.full {
  grid-column: 1/-1;
}
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 900px;
}
.tier-grid.three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}
.section-heading {
  max-width: 760px;
  margin: 4rem auto 1.25rem;
  text-align: center;
}
.section-heading h2 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
}
.section-heading > p:last-child {
  color: var(--muted);
  line-height: 1.6;
}
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #07101d;
}
.billing-toggle button {
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.billing-toggle button.active {
  color: #fff;
  background: #1c5fca;
}
.pricing-account,
.request-panel {
  max-width: 900px;
  margin: 2rem auto;
}
.pricing-account > .account-box {
  margin-top: 1rem;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.tier.compact {
  min-height: 340px;
}
.tier h3 {
  margin: 0.1rem 0 0.55rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.tier.featured {
  border-color: #5d8dec;
}
.tier .price {
  font-size: 2.4rem;
  font-weight: 850;
  letter-spacing: -0.06em;
  margin: 0.8rem 0;
}
.tier .price.price-note {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
.tier .price small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: normal;
}
.tier ul {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.25rem;
  color: #cad6e7;
}
.tier .button {
  margin-top: auto;
}
.tool-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.gtm-frame {
  display: none;
  visibility: hidden;
}
.checkout-page {
  max-width: 1040px;
  padding-top: 2.5rem;
}
.paddle-checkout-frame {
  display: block;
  justify-self: stretch;
  width: 100%;
  min-width: 312px;
  min-height: 700px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.paddle-checkout-frame iframe {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}
@media (max-width: 480px) {
  .checkout-page {
    width: 100%;
    padding: 0;
  }
  .checkout-page > .panel {
    padding: 1rem;
    border-radius: 0;
  }
}
@media (max-width: 760px) {
  .tool-nav > a:not(.brand):not(.language):not([href$="/guides/"]) {
    display: none;
  }
  .page {
    padding-top: 3rem;
  }
  .grid,
  .tier-grid,
  .tier-grid.three,
  .invoice-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .monitor {
    grid-template-columns: auto 1fr;
  }
  .monitor-actions {
    grid-column: 1/-1;
  }
  .hero-copy h1 {
    font-size: 2.7rem;
  }
  .panel {
    padding: 1.15rem;
  }
  .history th:nth-child(3),
  .history td:nth-child(3) {
    display: none;
  }
}

/* Shared navigation and forms must remain usable after adding Links. */
.tool-nav {
  height: auto;
  min-height: 68px;
}
.tool-nav > a {
  white-space: nowrap;
}
.tool-nav > a.language {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.15rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid #75bfff66;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f626, #8b5cf61f);
  color: #d9ecff;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.tool-nav > a.language::before {
  content: "◌";
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
}
.tool-nav > a.language:hover {
  border-color: #8ed1ff;
  background: linear-gradient(135deg, #3b82f640, #8b5cf633);
  color: var(--text);
  transform: translateY(-1px);
}
.field input,
.field textarea,
.field select {
  min-width: 0;
}
.account-summary {
  flex-wrap: wrap;
}
.account-summary > div {
  min-width: 12rem;
}
.panel {
  min-width: 0;
}
.actions > * {
  max-width: 100%;
}
@media (max-width: 920px) {
  .tool-nav {
    gap: 0.65rem;
    padding-inline: 1rem;
  }
  .tool-nav > a:not(.brand) {
    font-size: 0.84rem;
  }
}
@media (max-width: 760px) {
  .tool-nav {
    gap: 0.8rem;
  }
  .tool-nav .language {
    margin-left: auto;
  }
  .page {
    width: min(100% - 1.25rem, 1080px);
  }
}
@media (max-width: 480px) {
  .account-summary > div {
    width: 100%;
    margin-right: 0;
  }
  .account-summary .button,
  .actions > .button {
    flex: 1;
  }
  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 2.7rem);
  }
  .account-auth {
    padding: 1.1rem;
  }
}

.account-dashboard {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.account-dashboard-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.account-dashboard-header > div {
  margin-right: auto;
}
.account-dashboard-header p,
.license-summary p {
  margin: 0;
  color: var(--muted);
}
.service-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.widget-settings {
  max-width: 42rem;
}
.widget-snippet {
  width: 100%;
  min-height: 8rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080f1d;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.service-access-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
}
.service-access-card p {
  color: var(--muted);
}
.service-access-card .button {
  margin-top: auto;
}
.license-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.password-settings {
  max-width: 42rem;
}
.two-factor-settings {
  max-width: 42rem;
}
.two-factor-settings > .stack {
  margin-top: 1rem;
}
.two-factor-secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080f1d;
  color: #aedaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}
.recovery-code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.55rem 1.5rem;
  padding-left: 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}
.two-factor-disable {
  max-width: 28rem;
}
.team-settings {
  display: grid;
  gap: 1rem;
}
.team-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}
.team-create {
  max-width: 36rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #080f1d55;
}
.team-member-list {
  display: grid;
  gap: 0.75rem;
}
.team-password-reset {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.team-password-reset input {
  min-width: 12rem;
  flex: 1;
  border: 1px solid #ffffff26;
  border-radius: 9px;
  background: #080f1db8;
  color: var(--text);
  padding: 0.7rem 0.8rem;
}
.password-settings form {
  margin-top: 1rem;
}
.password-settings .button {
  justify-self: start;
}
.admin-grid,
.admin-list {
  display: grid;
  gap: 1rem;
}
.admin-list {
  gap: 0.7rem;
}
.admin-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(9rem, 0.8fr) minmax(
      0,
      1.6fr
    );
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0a1322a6;
}
.admin-row strong,
.admin-row small {
  display: block;
}
.admin-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-row .actions {
  justify-content: flex-end;
  min-width: 0;
}
.admin-row select {
  width: 100%;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #080f1db8;
  color: var(--text);
  padding: 0.62rem 0.7rem;
  font: inherit;
}
.admin-row input {
  width: 100%;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #080f1db8;
  color: var(--text);
  padding: 0.58rem 0.65rem;
  font: inherit;
}
.package-row {
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 2.45fr);
  align-items: start;
}
.package-editor {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0a1322a6;
}
.package-editor > summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}
.package-editor > .package-row {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
.package-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.55rem;
}
.package-fields label {
  color: var(--muted);
  font-size: 0.72rem;
}
.package-fields .check-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.85rem;
  padding: 0.65rem;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #080f1d80;
  color: #cbd7e7;
  font-size: 0.78rem;
}
.package-fields .check-field input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.package-row > .actions {
  grid-column: 2;
  justify-content: stretch;
}
.package-row > .actions .button {
  width: 100%;
}
.user-row {
  align-items: start;
}
.user-plan-control {
  display: grid;
  gap: 0.45rem;
}
.custom-user-limits {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.custom-user-limits > strong {
  font-size: 0.78rem;
}
.custom-user-limits .check-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
}
.custom-user-limits .check-field input {
  width: 1rem;
}
.user-plan-control label,
.license-control label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, 1fr));
  gap: 0.55rem;
}
.registration-settings {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-top: 1rem;
}
.registration-settings .check-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
}
.registration-settings .check-field input {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}
.registration-settings .button {
  justify-self: start;
}
.user-actions .license-control {
  grid-column: 1 / -1;
}
.user-actions .button {
  min-width: 0;
}
.license-control {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}
.license-control label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.license-control input {
  width: 100%;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #080f1db8;
  color: var(--text);
  color-scheme: dark;
  padding: 0.58rem 0.65rem;
  font: inherit;
}
.license-control small {
  color: var(--muted);
  font-size: 0.7rem;
}
.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  line-height: 1.55;
}
.legal-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.legal-page {
  max-width: 920px;
}
.legal-document {
  display: grid;
  gap: 0;
  line-height: 1.7;
}
.legal-document section {
  padding: 1.15rem 0;
  border-bottom: 1px solid #ffffff18;
}
.legal-document section:first-child {
  padding-top: 0;
}
.legal-document section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.legal-document h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}
.legal-document p,
.legal-document ul {
  margin: 0.55rem 0 0;
}
@media (max-width: 760px) {
  .service-access-grid,
  .license-summary {
    grid-template-columns: 1fr;
  }
  .admin-row {
    grid-template-columns: 1fr;
  }
  .admin-row .actions {
    justify-content: flex-start;
  }
}
@media (max-width: 1020px) {
  .monitor {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .monitor-actions {
    grid-column: 1 / -1;
  }
  .package-row,
  .user-row {
    grid-template-columns: 1fr;
  }
  .package-row > .actions,
  .user-actions {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .user-actions {
    grid-template-columns: 1fr;
  }
  .user-actions .license-control {
    grid-column: auto;
  }
  .monitor-actions .button {
    flex: 1;
  }
}

.guide-page {
  max-width: 980px;
}
.guide-index,
.guide-layout,
.guide-steps,
.guide-use-cases {
  display: grid;
  gap: 1rem;
}
.guide-index {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
}
.guide-card p,
.guide-article p,
.guide-article li {
  color: var(--muted);
  line-height: 1.7;
}
.guide-card .button {
  margin-top: auto;
}
.guide-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 0.8fr);
  align-items: start;
}
.guide-article {
  display: grid;
  gap: 1rem;
}
.guide-article section {
  scroll-margin-top: 1rem;
}
.guide-article h2,
.guide-aside h2 {
  margin-top: 0;
}
.guide-steps {
  counter-reset: guide-step;
}
.guide-step {
  position: relative;
  padding-left: 3.4rem;
}
.guide-step::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}
.guide-use-cases {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-aside {
  position: sticky;
  top: 1rem;
}
.guide-aside .actions {
  display: grid;
}
.guide-callout {
  border-color: #63d8ff55;
}
@media (max-width: 800px) {
  .guide-index,
  .guide-layout,
  .guide-use-cases {
    grid-template-columns: 1fr;
  }
  .guide-card {
    min-height: 0;
  }
  .guide-aside {
    position: static;
  }
}

.forms-page {
  max-width: 1120px;
}
.forms-overview,
.editor-heading,
.form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.forms-list,
.question-editor {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
.form-card {
  align-items: flex-start;
}
.form-card h3,
.editor-heading h3 {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.question-builder,
.form-question {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
}
.question-builder {
  display: grid;
  gap: 0.8rem;
  background: #09142766;
}
.form-question legend {
  font-weight: 750;
  padding: 0 0.35rem;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.form-question > .muted {
  margin: 0.25rem 0 0.85rem;
  line-height: 1.5;
}
.form-question > .check-field {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #09142788;
  cursor: pointer;
  line-height: 1.4;
}
.form-question > .check-field:hover {
  border-color: #63d8ff66;
  background: #13223a;
}
.form-question > .check-field:has(input:checked) {
  border-color: #6da9ff;
  background: #25457466;
}
.form-question > .check-field input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.05rem 0 0;
  accent-color: var(--blue);
}
.form-public-panel {
  width: min(760px, calc(100vw - 2rem));
  margin: 1rem auto;
}
.form-public-panel h1 {
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.form-description {
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.6;
}
.form-response {
  margin-top: 1.25rem;
}
.field-error {
  color: var(--danger);
  margin: 0.5rem 0 0;
}
.response-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.response-stats:empty {
  display: none;
}
.response-stats-heading {
  grid-column: 1 / -1;
  margin: 0;
}
.response-stat-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #09142788;
}
.response-stat-card h4,
.response-stat-total {
  margin: 0;
}
.response-stat-total {
  padding: 0.3rem 0 0.8rem;
}
.response-stat-option + .response-stat-option {
  margin-top: 0.7rem;
}
.response-stat-detail {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.response-stat-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.response-stat-detail strong {
  flex: none;
  font-variant-numeric: tabular-nums;
}
.response-stat-option progress {
  display: block;
  width: 100%;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  color: var(--blue);
  background: #ffffff14;
}
.response-stat-option progress::-webkit-progress-bar {
  background: #ffffff14;
}
.response-stat-option progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}
.response-stat-option progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}
.response-table-wrap {
  max-width: 100%;
  overflow: auto;
  margin-top: 1rem;
}
.response-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.response-table th,
.response-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
}
.response-table th {
  background: #14233a;
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .forms-overview,
  .editor-heading,
  .form-card {
    align-items: stretch;
    flex-direction: column;
  }
  .response-stats {
    grid-template-columns: 1fr;
  }
  .form-public-panel {
    width: calc(100vw - 1rem);
    margin: 0.5rem auto;
    padding: 1rem;
  }
  .form-question {
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
