:root {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --text: #081a2f;
  --muted: #5e7287;
  --line: rgba(0, 169, 231, 0.14);
  --line-strong: rgba(0, 169, 231, 0.24);
  --brand: #00a9e7;
  --brand-strong: #008fd5;
  --brand-bright: #21cefc;
  --danger: #cf345f;
  --warning: #b47a00;
  --success: #11745f;
  --shadow: 0 28px 70px rgba(7, 57, 94, 0.12);
  --shadow-soft: 0 16px 30px rgba(7, 57, 94, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  background:
    radial-gradient(circle at 12% 12%, rgba(33, 206, 252, 0.15), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(0, 169, 231, 0.12), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

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

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 22px;
}

.dashboard-page .page-shell {
  width: min(1560px, calc(100% - 24px));
}

.site-header,
.hero,
.steps-strip,
.site-footer,
.app-main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 12px;
}

.brand img {
  width: clamp(190px, 20vw, 280px);
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.header-actions,
.header-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  flex-wrap: nowrap;
}

.header-inline-form {
  margin: 0;
}

.header-chip,
.user-chip,
.text-link,
.panel,
.auth-card,
.intro-card,
.support-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(7, 57, 94, 0.06);
}

.header-chip,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.text-link {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.user-chip {
  min-width: min(100%, 300px);
  padding: 9px 14px;
  border-radius: 20px;
}

.dashboard-page .header-panel {
  flex-wrap: nowrap;
  align-items: stretch;
}

.dashboard-page .user-chip {
  min-width: 280px;
}

.user-chip span,
.panel-kicker,
.eyebrow,
.card-kicker,
.feature-strip strong {
  font-family: "Sora", sans-serif;
}

.user-chip span,
.panel-kicker {
  display: block;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.user-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.user-chip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(20px, 2.2vw, 30px);
  min-height: calc(100vh - 210px);
  padding: 4px 0 4px;
}

.hero-login {
  min-height: calc(100vh - 230px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.hero-copy h1,
.auth-card h2,
.panel-head h2,
.intro-card h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-family: "Sora", sans-serif;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 700;
}

.lead,
.panel-copy,
.card-copy {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.lead {
  max-width: 40rem;
  margin: 12px 0 0;
}

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

.feature-strip article {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(7, 57, 94, 0.05);
}

.feature-strip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(0, 169, 231, 0.1);
  color: var(--brand-strong);
  font-size: 0.96rem;
}

.feature-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.visual-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.orb-one {
  top: 28px;
  left: 18px;
  width: 120px;
  height: 120px;
  background: rgba(33, 206, 252, 0.18);
}

.orb-two {
  right: 22px;
  bottom: 24px;
  width: 150px;
  height: 150px;
  background: rgba(0, 169, 231, 0.14);
}

.auth-card,
.intro-card,
.panel,
.download-card {
  position: relative;
  width: min(100%, 520px);
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 255, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.auth-card::before,
.intro-card::before,
.panel::before,
.download-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 169, 231, 0.16), rgba(33, 206, 252, 0.2));
  transform: rotate(18deg);
}

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

.auth-card h2,
.panel-head h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.card-copy {
  margin: 12px 0 0;
}

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

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

.field span {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(8, 26, 47, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(0, 169, 231, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 169, 231, 0.12);
}

.input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ghost-button,
.button,
.page-link,
.icon-action {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.ghost-button {
  min-width: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-strong);
  font-weight: 800;
  cursor: pointer;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.button:hover,
.button:focus-visible,
.page-link:hover,
.page-link:focus-visible,
.icon-action:hover,
.icon-action:focus-visible {
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  box-shadow: 0 18px 36px rgba(0, 169, 231, 0.28);
  color: #ffffff;
}

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

.button-block {
  width: 100%;
}

.button-compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.auth-note,
.panel-meta,
.form-actions,
.filter-actions,
.intro-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-note a {
  color: var(--brand-strong);
  font-weight: 800;
}

.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.alert-success {
  border-color: rgba(17, 116, 95, 0.2);
  background: rgba(17, 116, 95, 0.08);
  color: var(--success);
}

.alert-warning {
  border-color: rgba(180, 122, 0, 0.18);
  background: rgba(180, 122, 0, 0.08);
  color: var(--warning);
}

.alert-danger {
  border-color: rgba(207, 52, 95, 0.2);
  background: rgba(207, 52, 95, 0.08);
  color: var(--danger);
}

.app-main {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.narrow-main {
  justify-items: center;
}

.dashboard-hero {
  padding: 2px 0 0;
}

.dashboard-hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.panel {
  width: 100%;
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 26, 47, 0.24);
  backdrop-filter: blur(5px);
}

.page-loading[hidden] {
  display: none;
}

.page-loading-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 340px);
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.page-loading-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
}

.page-loading-card span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(0, 169, 231, 0.14);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: page-spin 0.8s linear infinite;
}

@keyframes page-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

.panel-kicker {
  margin: 0 0 8px;
}

.panel-head h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
}

.panel-meta {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.filters-form {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(128px, 0.72fr) minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(240px, 1.45fr);
  gap: 12px;
  margin-top: 16px;
}

.filter-actions {
  align-self: end;
}

.field-date,
.field-type,
.field-number,
.field-access-key {
  min-width: 0;
}

.field-inline-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.field-inline-action > .field {
  min-width: 0;
}

.field-inline-action .filter-actions {
  align-self: end;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.field-inline-action .button {
  min-width: 118px;
}

.table-wrapper {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid rgba(8, 26, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(8, 26, 47, 0.08);
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  background: rgba(246, 251, 255, 0.98);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  color: var(--text);
  font-size: 0.8rem;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: rgba(0, 169, 231, 0.04);
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  max-width: 150px;
  white-space: normal;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
  text-align: right;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
  text-align: center;
}

.data-table td:nth-child(6) {
  padding-left: 18px;
}

.cell-mono {
  font-family: "Sora", sans-serif;
  font-size: 0.62rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(7, 57, 94, 0.06);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.icon-action img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  text-align: center;
}

.empty-state strong {
  font-size: 1rem;
}

.empty-state span {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.6;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7, 57, 94, 0.05);
}

.page-link.is-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: #ffffff;
  border-color: transparent;
}

.page-link.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

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

.steps-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(7, 57, 94, 0.05);
}

.steps-strip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(0, 169, 231, 0.1);
  color: var(--brand-strong);
  font-size: 0.96rem;
}

.steps-strip span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 169, 231, 0.1);
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.support-status-page .page-shell,
.password-page .page-shell {
  min-height: 100vh;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1366px) {
  .dashboard-page .page-shell {
    width: calc(100% - 20px);
  }

  .site-header {
    gap: 14px;
  }

  .header-panel {
    gap: 10px;
  }

  .dashboard-page .header-panel {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dashboard-page .user-chip {
    min-width: 240px;
  }

  .filters-form {
    grid-template-columns: minmax(118px, 0.8fr) minmax(118px, 0.8fr) minmax(140px, 0.9fr) minmax(170px, 1fr) minmax(220px, 1.35fr);
  }

  .data-table {
    min-width: 820px;
  }
}

@media (max-width: 1160px) {
  .dashboard-page .page-shell {
    width: calc(100% - 20px);
  }

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

  .field-access-key {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .site-header,
  .site-footer,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding-top: 4px;
  }

  .hero-copy h1,
  .page-copy h1 {
    max-width: none;
  }

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

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

  .auth-card,
  .intro-card,
  .panel,
  .download-card {
    width: 100%;
  }

  .dashboard-page .header-panel {
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-visual {
    min-height: 0;
  }

  .data-table {
    min-width: 780px;
  }

  .field-access-key {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(1240px, calc(100% - 22px));
    padding-top: 14px;
  }

  .dashboard-page .page-shell {
    width: calc(100% - 20px);
  }

  .header-panel,
  .header-actions,
  .header-inline-form,
  .panel-meta,
  .auth-note,
  .form-actions,
  .intro-actions {
    width: 100%;
  }

  .text-link,
  .header-chip,
  .button,
  .page-link {
    width: 100%;
  }

  .input-with-action {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .auth-card,
  .panel,
  .intro-card,
  .download-card {
    padding: 16px;
  }

  .table-wrapper {
    border-radius: 18px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .filters-form,
  .field-inline-action,
  .input-with-action {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    width: 100%;
  }

  .data-table {
    min-width: 0;
  }

  .row-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .icon-action {
    justify-content: center;
    padding: 6px 10px;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tbody tr {
    border: 1px solid rgba(8, 26, 47, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(7, 57, 94, 0.05);
    overflow: hidden;
  }

  .data-table tbody td {
    padding: 12px 14px;
    white-space: normal;
    text-align: left;
  }

  .data-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
    text-align: left;
  }

  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
    text-align: left;
  }

  .data-table td:nth-child(6) {
    padding-left: 14px;
  }

  .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
  }

  .data-table tbody td[colspan] {
    display: table-cell;
    padding: 0;
  }

  .data-table tbody td[colspan]::before {
    content: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .page-loading-spinner {
    animation: none;
  }
}
