@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0b1324;
  --muted: #5c6885;
  --muted-2: #c9d8f5;
  --line: #d9e6fb;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-blue: #3b82f6;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 18px 42px rgba(11, 19, 36, 0.08);
  --shadow-soft: 0 10px 28px rgba(34, 48, 79, 0.08);
  --radius: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 30% 0%, rgba(34, 197, 94, 0.10), transparent 55%),
    radial-gradient(900px 500px at 80% 20%, rgba(59, 130, 246, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 0.84);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  margin-bottom: 30px;
  padding: 8px 10px;
}

.brand img {
  width: 142px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.08;
}

.brand-caption {
  margin-left: 2px;
}

.brand strong {
  font-size: 15px;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav {
  display: grid;
  gap: 8px;
}

.desktop-nav a {
  color: #22304f;
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #ffffff;
  background: #0b1324;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding: 0 28px;
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 1;
}

.mobile-logo {
  display: none;
  width: 118px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

.mobile-menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #0f172a;
}

.mobile-menu-button img {
  display: block;
  width: 30px;
  height: 30px;
}

.mobile-menu-overlay {
  display: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #6f747d;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--bg);
}

.logout-button {
  margin-left: auto;
}

.logout-button img {
  display: block;
  width: 24px;
  height: 24px;
}

.hidden {
  display: none !important;
}

.content {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 26px 28px 58px;
}


.push-prompt {
  width: min(100%, var(--container));
  margin: 18px auto 0;
  padding: 0 28px;
}

.push-prompt > div,
.push-prompt {
  color: var(--text);
}

.push-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.push-prompt:not(.hidden) {
  background: transparent;
}

.push-prompt > div {
  flex: 1;
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.push-prompt strong {
  font-size: 15px;
  font-weight: 800;
}

.push-prompt span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.push-prompt.success > div {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.push-prompt.error > div {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.08);
}

.button.compact {
  min-height: 48px;
  padding: 0 22px;
  box-shadow: none;
}


.loading-card,
.empty-state,
.error-state {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-weight: 700;
}

.error-state {
  color: var(--danger);
}

.stack {
  display: grid;
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card.pad {
  padding: 28px;
}

.scan-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.scan-card .scan-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.scan-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 25px;
  overflow: hidden;
}

.scan-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.form-card h2,
.section-title {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 800;
}

.field-list {
  display: grid;
  gap: 0;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 1.4fr);
  gap: 16px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.field label {
  color: #686e78;
  font-weight: 600;
}

.field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.field input::placeholder {
  color: #c4c8cf;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 24px;
  background: #0b1324;
  color: white;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(11, 19, 36, 0.16);
}

.button:hover {
  background: #101a33;
}

.button.secondary {
  background: var(--surface);
  color: #0b1324;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.notice {
  margin-top: 18px;
  border-radius: 14px;
  padding: 11px 13px;
  font-weight: 700;
  background: rgba(49, 188, 231, 0.1);
  color: var(--accent-dark);
}

.notice.error {
  background: rgba(229, 83, 83, 0.1);
  color: var(--danger);
}

.list {
  display: grid;
  gap: 18px;
}

.certificate-card,
.payment-card {
  padding: 22px 26px 24px;
  color: inherit;
  text-decoration: none;
  transition: 0.18s ease;
  display: grid;
  gap: 18px;
}

.certificate-card:hover,
.payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(25, 31, 40, 0.12);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.money {
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.dashed-line {
  height: 1px;
  border-top: 2px dashed #dde2e6;
}

.card-subtitle {
  color: #4f5560;
  font-weight: 500;
  line-height: 1.35;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  font-weight: 900;
  white-space: nowrap;
}

.status.redeemed {
  color: var(--warning);
}

.status.processing {
  color: var(--accent-dark);
}

.status.scheduled {
  color: var(--accent-blue);
}

.status.awaiting-payment {
  color: #db2777;
}

.status.visited {
  color: #6b7280;
}

.status.not-redeemed {
  color: var(--danger);
}

.status.paid {
  color: var(--success);
}

.summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
}

.summary-label {
  color: #9da2aa;
  font-size: 18px;
  font-weight: 600;
}

.summary-amount {
  color: #111827;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.detail-card {
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #dbeafe;
}

.detail-body {
  padding: 28px;
}

.detail-title {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-table {
  display: grid;
  gap: 13px;
  border-top: 2px dashed #dde2e6;
  padding-top: 24px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr);
  gap: 18px;
  align-items: baseline;
  color: #646b75;
  font-size: 18px;
}

.detail-row strong {
  color: var(--text);
  text-align: right;
  font-size: 19px;
}

.detail-row.total {
  border-top: 2px dashed #dde2e6;
  margin-top: 12px;
  padding-top: 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.filter-field {
  display: grid;
  gap: 8px;
  min-width: 178px;
}

.filter-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-field input,
.filter-field select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
  color: var(--text);
  outline: 0;
  font-weight: 700;
}

.table-card {
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.table-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.table-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: #3f4650;
  font-weight: 600;
}

td strong {
  color: var(--text);
}

.checkbox-cell {
  width: 52px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-dark);
}

.mobile-cards {
  display: none;
}


.scan-card {
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
}

.scan-card:hover {
  box-shadow: 0 18px 38px rgba(11, 19, 36, 0.11);
  transform: translateY(-1px);
}

.scan-icon {
  background: #eef4ff;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-modal.hidden {
  display: none !important;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 14, 26, 0.58);
  cursor: default;
}

.qr-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(7, 14, 26, 0.28);
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.qr-header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.qr-close {
  flex: 0 0 auto;
}

.qr-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.qr-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #070e1a;
  aspect-ratio: 1 / 1;
}

.qr-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-frame {
  position: absolute;
  inset: 15%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: 0 0 0 999px rgba(7, 14, 26, 0.26);
  pointer-events: none;
}

.qr-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.qr-status {
  border-radius: 16px;
  padding: 13px 14px;
  background: #eef4ff;
  color: #22304f;
  font-weight: 700;
  line-height: 1.45;
}

.qr-status.success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.qr-status.error {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger);
}


@media (max-width: 920px) {
  .layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-menu-overlay.open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 180ms ease;
  }

  .mobile-menu-overlay.open .mobile-menu-backdrop {
    background: rgba(15, 23, 42, 0.36);
  }

  .mobile-side-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid #e2e8f0;
    box-shadow: 18px 0 44px rgba(15, 23, 42, 0.18);
    transform: translateX(-102%);
    transition: transform 220ms ease;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
  }

  .mobile-menu-overlay.open .mobile-side-menu {
    transform: translateX(0);
  }

  .mobile-side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
  }

  .mobile-side-menu-header img {
    width: 136px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
  }

  .mobile-menu-close {
    color: #0f172a;
    background: #f1f5f9;
  }

  .mobile-side-nav {
    display: grid;
    align-content: start;
    gap: 8px;
  }

  .mobile-side-nav a {
    color: #0f172a;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    transition: 0.18s ease;
  }

  .mobile-side-nav a:hover,
  .mobile-side-nav a:focus-visible,
  .mobile-side-nav a.active {
    color: #ffffff;
    background: #0b1324;
    outline: none;
  }

  .workspace {
    min-height: 100vh;
    padding-bottom: 76px;
  }

  .topbar {
    height: 58px;
    padding: 0 14px;
    gap: 10px;
  }

  .topbar h1 {
    min-width: 0;
    font-size: 24px;
  }

  .mobile-logo {
    display: block;
  }

  .content {
    padding: 22px 22px 34px;
  }


  .push-prompt {
    padding: 0 22px;
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .push-prompt .button {
    width: 100%;
  }


  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 92px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(12px);
  }

  .bottom-nav a {
    color: #7a8088;
    text-decoration: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
  }

  .bottom-nav a.active {
    color: #22aee8;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .nav-icon-image img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    opacity: 0.58;
  }

  .bottom-nav a.active .nav-icon-image img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(63%) sepia(84%) saturate(2419%) hue-rotate(167deg) brightness(100%) contrast(93%);
  }

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

  .field {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .field input {
    text-align: left;
  }

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

  .summary-amount {
    font-size: 32px;
  }

  .scan-card {
    font-size: 20px;
    padding: 18px 22px;
  }

  .detail-row {
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
  }

  .detail-row strong {
    font-size: 16px;
  }
}

@media (min-width: 921px) {
  .bottom-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .card.pad,
  .detail-body {
    padding: 22px;
  }

  .certificate-card,
  .payment-card {
    padding: 22px;
  }

  .card-title,
  .money {
    font-size: 22px;
  }

  .hero-image {
    height: 210px;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filters .button {
    grid-column: 1 / -1;
  }

  .filter-field {
    min-width: 0;
  }

  .table-wrapper {
    display: none;
  }

  .mobile-cards {
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .mobile-check-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .mobile-check-card strong {
    display: block;
    margin-bottom: 6px;
  }

  .mobile-check-card p {
    margin: 0 0 8px;
    color: #555c67;
    line-height: 1.3;
  }

  .mobile-check-card .money {
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 0 18px;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .logout-button {
    width: 36px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-row strong {
    text-align: left;
  }
}

/* Certificates filter panel: mobile-first rounded controls and multi-status choice */
.filters-card {
  border-radius: 28px;
}

.certificate-filters {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.certificate-filters .filter-field {
  min-width: 0;
}

.filter-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-field-status {
  display: grid;
  gap: 8px;
}

.status-multi {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  padding: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.status-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.status-choice span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe6fb;
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #65708a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: 0.16s ease;
}

.status-choice input:checked + span {
  border-color: #22aee8;
  background: rgba(34, 174, 232, 0.12);
  color: #119bd4;
  box-shadow: inset 0 0 0 1px rgba(34, 174, 232, 0.16);
}

.status-multi-hint {
  color: #8490a5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.filter-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}

.filter-apply {
  width: min(100%, 360px);
  border-radius: 999px;
}

@media (max-width: 680px) {
  .filters-card {
    border-radius: 30px;
    padding: 26px 22px;
  }

  .certificate-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .certificate-filters .filter-field {
    display: grid;
    gap: 12px;
  }

  .certificate-filters .filter-field label,
  .certificate-filters .filter-label {
    color: #65708a;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  .filter-date-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
  }

  .certificate-filters .filter-field input,
  .certificate-filters .filter-field select,
  .status-multi {
    min-height: 74px;
    height: auto;
    border-radius: 30px;
    border-color: #dbe7ff;
    box-shadow: inset 0 0 0 1px rgba(219, 231, 255, 0.55);
  }

  .certificate-filters .filter-field input {
    padding: 0 16px;
    font-size: 16px;
  }

  .status-multi {
    padding: 10px;
    gap: 10px;
  }

  .status-choice span {
    min-height: 48px;
    padding: 0 15px;
    font-size: 13px;
  }

  .status-multi-hint {
    margin-top: -4px;
    font-size: 12px;
  }

  .filter-apply {
    width: 100%;
    min-height: 74px;
    border-radius: 36px;
    font-size: 17px;
  }

  .certificate-card,
  .payment-card {
    border-radius: 28px;
  }
}

@media (max-width: 420px) {
  .filter-date-row {
    gap: 14px;
  }

  .status-choice span {
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Desktop filter panels: keep filter controls on the left and move the action button to the right. */
@media (min-width: 921px) {
  .filters {
    width: 100%;
  }

  .filters > .button {
    margin-left: auto;
  }

  .certificate-filters {
    grid-template-columns: minmax(280px, 360px) minmax(420px, 620px) 1fr auto;
    gap: 20px;
    align-items: end;
  }

  .certificate-filters .filter-field-status {
    grid-column: 1;
  }

  .certificate-filters .filter-date-row {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

  .certificate-filters .filter-apply {
    grid-column: 4;
    justify-self: end;
    width: auto;
    min-width: 240px;
    margin-left: 0;
  }
}

/* Status multiselect control for the certificates filters. */
.multiselect {
  position: relative;
  min-width: 0;
}

.multiselect-control {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
  color: var(--text);
  outline: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none;
}

.multiselect-control:focus-visible,
.filter-field input:focus-visible,
.filter-field select:focus-visible {
  border-color: #b9d4ff;
  box-shadow: 0 0 0 3px rgba(34, 174, 232, 0.14);
}

.multiselect-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multiselect-arrow {
  flex: 0 0 auto;
  color: #5f6980;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.multiselect.open .multiselect-arrow {
  transform: rotate(180deg);
}

.multiselect-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 35;
  display: none;
  gap: 4px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(11, 19, 36, 0.14);
}

.multiselect.open .multiselect-menu {
  display: grid;
}

.multiselect-option {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 12px;
  color: #22304f;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.multiselect-option:hover {
  background: #f2f7ff;
}

.multiselect-option input {
  width: 18px;
  height: 18px;
  accent-color: #22aee8;
}

.multiselect-option[aria-selected="true"] {
  background: rgba(34, 174, 232, 0.10);
  color: #119bd4;
}

@media (min-width: 921px) {
  .filters > .button,
  .certificate-filters .filter-apply {
    height: 46px;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 24px;
    box-shadow: none;
  }

  .certificate-filters .filter-apply {
    min-width: 240px;
  }
}

@media (max-width: 680px) {
  .multiselect-control {
    min-height: 74px;
    height: auto;
    border-radius: 30px;
    border-color: #dbe7ff;
    padding: 0 18px;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(219, 231, 255, 0.55);
  }

  .multiselect-menu {
    top: calc(100% + 10px);
    border-radius: 24px;
    padding: 10px;
  }

  .multiselect-option {
    min-height: 52px;
    border-radius: 18px;
    font-size: 15px;
  }
}

body.is-login {
  min-height: 100vh;
  background: #f6f7fb;
}

body.is-login .layout {
  display: block;
  min-height: 100vh;
}

body.is-login .sidebar,
body.is-login .topbar,
body.is-login .bottom-nav,
body.is-login #pushPrompt,
body.is-login .mobile-menu-overlay {
  display: none !important;
}

body.is-login .workspace {
  min-height: 100vh;
  display: block;
}

body.is-login .content {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

.auth-screen {
  min-height: 100vh;
  width: 100%;
}

.auth-screen-wakesurf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f6f7fb;
}

.auth-brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}

.auth-brand-panel img {
  width: min(72%, 360px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.auth-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-panel-inner {
  width: min(100%, 448px);
}

.auth-heading {
  margin-bottom: 30px;
}

.auth-mobile-logo {
  display: none;
  width: 178px;
  height: auto;
  margin: 0 0 30px;
}

.auth-heading h1 {
  margin: 0;
  color: #0b1324;
  font-size: clamp(30px, 3.8vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.auth-heading p {
  margin: 6px 0 0;
  color: #44506a;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.auth-card {
  padding: 32px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: none;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form-wakesurf {
  padding: 0;
  background: transparent;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #44506a;
  font-weight: 500;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.auth-form input {
  width: 100%;
  height: 40px;
  border: 1px solid #d9e6fb;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  color: #0b1324;
  outline: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-form input::placeholder {
  color: #94a3b8;
}

.auth-form input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.32);
}

.auth-submit {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border-radius: 12px;
  margin-top: 0;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.auth-form .notice {
  margin: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 6px;
}

.auth-tab {
  min-height: 56px;
  border: 2px solid #1d6ff2;
  border-radius: 12px;
  background: #ffffff;
  color: #1d6ff2;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
}

.auth-tab.active {
  background: linear-gradient(180deg, #409df2 0%, #237ee8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 9px 18px rgba(35, 126, 232, 0.26);
}

.auth-input-stack {
  display: grid;
  gap: 16px;
}

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

.auth-password-field input {
  padding-right: 104px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(29, 111, 242, 0.10);
  color: #1d6ff2;
  font-size: 12px;
  font-weight: 800;
}

.auth-password-toggle:hover {
  background: rgba(29, 111, 242, 0.16);
}

.auth-form .auth-input-stack .auth-submit {
  margin-top: 0;
}


@media (max-width: 920px) {
  .auth-screen-wakesurf {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-panel {
    padding: 40px 18px;
  }

  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 560px) {
  body.is-login .content {
    padding: 0;
  }

  .auth-panel {
    align-items: flex-start;
    padding-top: 54px;
  }

  .auth-heading h1 {
    font-size: 31px;
  }
}



@media (max-width: 560px) {
  .auth-tabs {
    gap: 10px;
  }

  .auth-tab {
    min-height: 50px;
    font-size: 14px;
  }

  .auth-password-field input {
    padding-right: 96px;
  }

  .auth-password-toggle {
    right: 6px;
    padding: 0 8px;
  }
}


/* WakeMeSurf login controls refinement */
.auth-screen-wakesurf,
.auth-screen-wakesurf button,
.auth-screen-wakesurf input {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-tabs-wakesurf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 0;
  border-radius: 20px;
  background: #eef4ff;
}

.auth-tabs-wakesurf .auth-tab {
  min-height: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #5c6885;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-tabs-wakesurf .auth-tab:hover {
  transform: none;
  color: #0b1324;
}

.auth-tabs-wakesurf .auth-tab.active {
  background: #ffffff;
  color: #0b1324;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-tab-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
}

.auth-tab-icon svg,
.auth-password-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input-stack {
  gap: 16px;
}

.auth-password-field input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5c6885;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: #eef4ff;
  color: #0b1324;
}

.auth-password-toggle.is-visible {
  color: #0b1324;
}

.auth-form .auth-input-stack .auth-submit {
  margin-top: 0;
}

@media (max-width: 560px) {
  .auth-tabs-wakesurf {
    gap: 4px;
    padding: 4px;
    border-radius: 18px;
  }

  .auth-tabs-wakesurf .auth-tab {
    min-height: 42px;
    height: 42px;
    border-radius: 14px;
    gap: 6px;
    padding: 0 8px;
    font-size: 13px;
  }

  .auth-tab-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .auth-tab-icon svg,
  .auth-password-toggle svg {
    width: 15px;
    height: 15px;
  }

  .auth-password-field input {
    padding-right: 48px;
  }

  .auth-password-toggle {
    right: 2px;
    padding: 0;
  }
}

/* Admin screens adapted from wakesurf-booking admin/daily-reports and admin/registered-users. */
body:not(.is-login) {
  background: #f6f7fb;
}

body:not(.is-login) .layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #f6f7fb;
}

body:not(.is-login) .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 0;
  backdrop-filter: none;
}

body:not(.is-login) .brand {
  min-height: 56px;
  height: 56px;
  margin: 0;
  padding: 2mm 12px;
  border-bottom: 1px solid #e2e8f0;
  gap: 10px;
  font-size: 16px;
}

body:not(.is-login) .brand img {
  width: 160px;
  height: auto;
  max-height: calc(56px - 4mm);
  object-fit: contain;
}

body:not(.is-login) .brand-caption small,
body:not(.is-login) .brand small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

body:not(.is-login) .desktop-nav {
  padding: 16px 12px;
  gap: 4px;
}

body:not(.is-login) .desktop-nav a {
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
}

body:not(.is-login) .desktop-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body:not(.is-login) .desktop-nav a.active {
  background: #0f172a;
  color: #ffffff;
}

body:not(.is-login) .workspace {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.is-login) .topbar {
  height: 56px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body:not(.is-login) .topbar h1 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: 0;
}

body:not(.is-login) .icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #475569;
  font-size: 21px;
}

body:not(.is-login) .icon-button:hover {
  background: #f1f5f9;
}

body:not(.is-login) .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
}

body:not(.is-login) .stack {
  gap: 24px;
}

body:not(.is-login) .card,
body:not(.is-login) .loading-card,
body:not(.is-login) .empty-state,
body:not(.is-login) .error-state {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.is-login) .card.pad,
body:not(.is-login) .filters-card {
  padding: 16px;
}

body:not(.is-login) .form-card h2,
body:not(.is-login) .section-title,
body:not(.is-login) .table-header h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

body:not(.is-login) .scan-card {
  min-height: 64px;
  padding: 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

body:not(.is-login) .scan-card:hover {
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

body:not(.is-login) .scan-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  border-color: #e2e8f0;
}

body:not(.is-login) .field {
  min-height: 64px;
  border-bottom-color: #e2e8f0;
}

body:not(.is-login) .field label,
body:not(.is-login) .filter-field label,
body:not(.is-login) .filter-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.is-login) .field input,
body:not(.is-login) .filter-field input,
body:not(.is-login) .filter-field select,
body:not(.is-login) .multiselect-control {
  min-height: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  outline: none;
}

body:not(.is-login) .field input {
  border: 0;
  padding: 0;
}

body:not(.is-login) .filter-field input:focus,
body:not(.is-login) .filter-field select:focus,
body:not(.is-login) .multiselect-control:focus-visible {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.22);
}

body:not(.is-login) .filters,
body:not(.is-login) .certificate-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body:not(.is-login) .certificate-filters .filter-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

body:not(.is-login) .filter-field {
  min-width: 180px;
  gap: 6px;
}

body:not(.is-login) .filter-field-status {
  min-width: 240px;
}

body:not(.is-login) .actions,
body:not(.is-login) .filter-apply,
body:not(.is-login) .filters > .button {
  margin-top: 0;
}

body:not(.is-login) .button {
  min-height: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  border: 1px solid transparent;
}

body:not(.is-login) .button:hover {
  background: #1e293b;
}

body:not(.is-login) .button.secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}

body:not(.is-login) .button.secondary:hover {
  background: #f8fafc;
}

body:not(.is-login) .list {
  display: grid;
  gap: 16px;
}

body:not(.is-login) .certificate-card,
body:not(.is-login) .payment-card {
  padding: 20px;
  border-radius: 16px;
  border-color: #e2e8f0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.is-login) .certificate-card:hover,
body:not(.is-login) .payment-card:hover {
  background: #ffffff;
  box-shadow: none;
  transform: none;
  border-color: #cbd5e1;
}

body:not(.is-login) .card-title,
body:not(.is-login) .money {
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

body:not(.is-login) .money {
  color: #16a34a;
}

body:not(.is-login) .card-subtitle,
body:not(.is-login) .summary-label,
body:not(.is-login) .status-row span {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

body:not(.is-login) .dashed-line {
  border-top-color: #e2e8f0;
}

body:not(.is-login) .summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
}

body:not(.is-login) .summary-amount {
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
}

body:not(.is-login) .table-card {
  overflow: hidden;
  border-radius: 16px;
}

body:not(.is-login) .table-header {
  padding: 16px;
  border-bottom-color: #e2e8f0;
}

body:not(.is-login) .table-header p {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

body:not(.is-login) table {
  min-width: 760px;
  font-size: 14px;
}

body:not(.is-login) th,
body:not(.is-login) td {
  padding: 12px 16px;
  border-bottom-color: #f1f5f9;
}

body:not(.is-login) th {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body:not(.is-login) td {
  color: #0f172a;
  font-weight: 500;
}

body:not(.is-login) .detail-card {
  max-width: 920px;
  overflow: hidden;
}

body:not(.is-login) .detail-body {
  padding: 20px;
}

body:not(.is-login) .detail-row {
  color: #64748b;
  font-size: 14px;
}

body:not(.is-login) .detail-row strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 921px) {
  body:not(.is-login) .certificate-detail-card {
    width: 100%;
    max-width: none;
  }

  body:not(.is-login) .certificate-detail-card .detail-table {
    width: 100%;
  }
}

body:not(.is-login) .multiselect-menu {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  padding: 6px;
}

body:not(.is-login) .multiselect-option {
  border-radius: 12px;
  padding: 9px 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

body:not(.is-login) .multiselect-option:hover {
  background: #f8fafc;
}

@media (max-width: 920px) {
  body:not(.is-login) .layout {
    display: block;
  }

  body:not(.is-login) .topbar {
    height: 64px;
    padding: 0 18px;
    background: #ffffff;
  }

  body:not(.is-login) .topbar h1 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: 0;
  }

  body:not(.is-login) .content {
    padding: 20px 18px 34px;
  }

  body:not(.is-login) .bottom-nav {
    border-top-color: #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
  }

  body:not(.is-login) .filters,
  body:not(.is-login) .certificate-filters,
  body:not(.is-login) .certificate-filters .filter-date-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body:not(.is-login) .certificate-filters .filter-date-row {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.is-login) .filter-field,
  body:not(.is-login) .filter-field-status {
    min-width: 0;
  }

  body:not(.is-login) .filter-apply,
  body:not(.is-login) .filters > .button {
    width: 100%;
  }

  body:not(.is-login) .certificate-card,
  body:not(.is-login) .payment-card {
    border-radius: 26px;
    padding: 24px;
  }

  body:not(.is-login) .card-title,
  body:not(.is-login) .money {
    font-size: 24px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pagination-summary {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-page {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  padding: 0 13px;
}

.pagination-page:hover:not(:disabled),
.pagination-page.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.pagination-page:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-gap {
  color: var(--muted);
  font-weight: 800;
  padding: 0 2px;
}

body:not(.is-login) .pagination {
  border-color: #e2e8f0;
  border-radius: 16px;
  box-shadow: none;
}

body:not(.is-login) .pagination-page {
  border-color: #e2e8f0;
  border-radius: 12px;
}

@media (max-width: 680px) {
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-controls {
    justify-content: stretch;
  }

  .pagination-page {
    flex: 1 1 auto;
  }
}

/* Certificates filters: align apply action and match wakesurf-booking select/button controls. */
body:not(.is-login) .certificate-filters {
  align-items: end;
}

body:not(.is-login) .certificate-apply-button {
  justify-self: end;
  margin-left: auto;
  width: auto;
  min-width: 0;
  background: #0f172a;
  color: #ffffff;
}

body:not(.is-login) .certificate-apply-button:hover {
  background: #1e293b;
}

body:not(.is-login) .multiselect-control {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body:not(.is-login) .multiselect-control:hover {
  background: #f8fafc;
}

body:not(.is-login) .multiselect-value {
  font-weight: 500;
}

body:not(.is-login) .multiselect-arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 16px;
  opacity: 0.8;
}

body:not(.is-login) .multiselect-menu {
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border-color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  padding: 4px;
}

body:not(.is-login) .multiselect-option {
  position: relative;
  min-height: 36px;
  gap: 8px;
  padding: 8px 10px 8px 32px;
  border-radius: 12px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
}

body:not(.is-login) .multiselect-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

body:not(.is-login) .multiselect-check {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
}

body:not(.is-login) .multiselect-option[aria-selected="true"] {
  background: #f1f5f9;
  color: #0f172a;
}

body:not(.is-login) .multiselect-option[aria-selected="true"] .multiselect-check {
  opacity: 1;
}

@media (min-width: 921px) {
  body:not(.is-login) .certificate-filters .filter-apply.certificate-apply-button {
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 920px) {
  body:not(.is-login) .certificate-apply-button {
    width: 100%;
  }
}

/* Profile page */
.nav-icon-svg svg {
  display: block;
  width: 26px;
  height: 26px;
}

.bottom-nav a.active .nav-icon-svg {
  color: #22aee8;
}

.profile-page {
  display: grid;
  gap: 24px;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.profile-hero-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  background: #e2e8f0;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #334155);
  font-size: 26px;
  font-weight: 800;
}

.profile-hero h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

.profile-hero p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
}

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

.profile-actions .button:disabled {
  opacity: 1;
  cursor: default;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.profile-section {
  min-height: 180px;
  padding: 20px 22px;
}

.profile-section h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.profile-section-header h2 {
  margin: 0;
}

.profile-section-header .profile-agent-report-edit {
  flex: 0 0 auto;
}

.profile-section-body {
  color: #64748b;
  font-size: 15px;
  line-height: 1.58;
  font-weight: 500;
}

.profile-section-body p {
  margin: 0;
}

.profile-line {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  padding: 4px 0;
}

.profile-line span {
  color: #64748b;
}

.profile-line strong {
  min-width: 0;
  color: #0f172a;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-empty {
  color: #94a3b8;
  font-weight: 500;
}

.profile-page a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
}

.profile-page a:hover {
  text-decoration: underline;
}

.profile-block-label {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.profile-block-label:not(:first-child) {
  margin-top: 16px;
}

.profile-requisite-item + .profile-requisite-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.profile-list,
.profile-documents {
  margin: 0;
  padding-left: 18px;
}

.profile-list li,
.profile-documents li {
  margin: 0 0 8px;
}

.profile-channels {
  display: grid;
  gap: 12px;
}

.profile-channel {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #334155;
}

.profile-checkbox {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #ffffff;
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.profile-channel.active .profile-checkbox {
  border-color: #1d6ff2;
  background: #1d6ff2;
}

.profile-channel-body {
  display: grid;
  gap: 2px;
}

.profile-channel-body strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.profile-channel-body small {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}


.profile-channel-body small a {
  color: #4c1d95;
  font-weight: 700;
  text-decoration: none;
}

.profile-channel-body small a:hover,
.profile-channel-body small a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 920px) {
  body:not(.is-login) .bottom-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions .button {
    flex: 1 1 160px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-section {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .profile-hero-main {
    gap: 14px;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .profile-hero h2 {
    font-size: 22px;
  }

  .profile-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-actions .button {
    width: 100%;
  }
}

/* Certificate schedule dialog: admin-style modal adapted to certificates-payout design. */
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.detail-actions-right {
  justify-content: flex-end;
}

.detail-action-button {
  min-width: 132px;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
}

.schedule-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.58);
  cursor: default;
}

.schedule-panel {
  position: relative;
  width: min(100%, 760px);
  max-height: min(900px, calc(100vh - 48px));
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.schedule-panel-loading {
  width: min(100%, 560px);
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.schedule-close {
  flex: 0 0 auto;
}

.schedule-form {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.schedule-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.schedule-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.schedule-field label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.schedule-field input,
.schedule-field select,
.schedule-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.schedule-field input,
.schedule-field select {
  height: 48px;
  padding: 0 14px;
}

.schedule-field textarea {
  resize: vertical;
  min-height: 118px;
  padding: 14px;
}

.schedule-field input:focus,
.schedule-field select:focus,
.schedule-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.schedule-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.schedule-submit,
.schedule-cancel {
  min-width: 156px;
}

.schedule-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

body:not(.is-login) .schedule-panel {
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

body:not(.is-login) .schedule-header {
  padding: 24px;
}

body:not(.is-login) .schedule-form {
  padding: 24px;
}

body:not(.is-login) .schedule-field input,
body:not(.is-login) .schedule-field select,
body:not(.is-login) .schedule-field textarea {
  border-color: #e2e8f0;
  border-radius: 14px;
  color: #0f172a;
  font-size: 14px;
}

body:not(.is-login) .schedule-field label {
  color: #64748b;
}

@media (max-width: 680px) {
  .schedule-modal {
    align-items: end;
    padding: 12px;
  }

  .schedule-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .schedule-header,
  body:not(.is-login) .schedule-header {
    padding: 20px;
  }

  .schedule-header h2 {
    font-size: 21px;
  }

  .schedule-form,
  body:not(.is-login) .schedule-form {
    padding: 20px;
    gap: 18px;
  }

  .schedule-grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .schedule-submit,
  .schedule-cancel {
    width: 100%;
  }
}

/* Redeem certificate preview dialog: reuse the schedule dialog design system. */
.redeem-actions {
  justify-content: flex-end;
}

.redeem-info-panel {
  width: min(100%, 760px);
}

.redeem-info-form {
  gap: 22px;
}

.redeem-info-grid {
  gap: 18px;
}

.redeem-info-field label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.redeem-info-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.redeem-info-actions {
  padding-top: 8px;
}

@media (max-width: 680px) {
  .redeem-actions,
  .redeem-info-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .redeem-actions .button,
  .redeem-info-actions .button {
    width: 100%;
  }
}

/* Certificate list actions: mirror detail action visibility on /certificates. */
.certificate-card-clickable {
  cursor: pointer;
}

.certificate-card-clickable:focus-visible {
  outline: 3px solid rgba(47, 126, 231, 0.28);
  outline-offset: 3px;
}

.certificate-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
}

.certificate-list-action {
  min-width: 132px;
  padding-inline: 22px;
}

@media (max-width: 720px) {
  .certificate-card-actions {
    justify-content: stretch;
  }

  .certificate-list-action {
    width: 100%;
  }
}

/* Mobile dialog navigation screens. */
.schedule-screen-card {
  padding: 0;
  overflow: hidden;
}

.schedule-screen-header {
  background: #ffffff;
}

.schedule-date-time-grid > .schedule-field,
.schedule-screen-card .schedule-field {
  min-width: 0;
}

.schedule-field input[type="date"],
.schedule-field input[type="time"] {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  .schedule-screen-card {
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

  .schedule-screen-card .schedule-header,
  body:not(.is-login) .schedule-screen-card .schedule-header {
    padding: 18px;
  }

  .schedule-screen-card .schedule-form,
  body:not(.is-login) .schedule-screen-card .schedule-form {
    padding: 18px;
    gap: 16px;
  }

  .schedule-date-time-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .schedule-field input[type="date"],
  .schedule-field input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    padding-left: 12px;
    padding-right: 12px;
    text-align: left;
  }

  .schedule-field input[type="date"]::-webkit-date-and-time-value,
  .schedule-field input[type="time"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
  }
}


.reconciliations-page .summary-card {
  align-items: center;
}

@media (max-width: 920px) {
  body:not(.is-login) .bottom-nav a {
    font-size: 10px;
    gap: 4px;
  }

  body:not(.is-login) .bottom-nav .nav-icon {
    width: 28px;
    height: 28px;
  }
}

.certificate-number-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  text-underline-offset: 3px;
}

.certificate-number-link:hover {
  color: var(--accent-dark);
}

.mobile-check-card .certificate-number-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 4px;
}

.reconciliations-page .summary-amount {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.reconciliations-page .summary-amount span {
  display: block;
}

body:not(.is-login) .reconciliations-page .summary-amount {
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Services page */
.services-table {
  min-width: 980px;
}

.services-name-cell {
  max-width: 320px;
  line-height: 1.45;
}

.services-link,
.certificate-number-link {
  color: #4c1d95;
  font-weight: 800;
  text-decoration: none;
}

.services-link:hover,
.certificate-number-link:hover {
  text-decoration: underline;
}

.services-open-price {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.services-edit-button {
  min-width: 128px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 12px;
}

.services-mobile-card .services-edit-button {
  width: 100%;
  margin-top: 8px;
}

.services-mobile-actions {
  margin-top: 12px;
}

body:not(.is-login) .services-link,
body:not(.is-login) .certificate-number-link {
  color: #4c1d95;
}

body:not(.is-login) .services-table {
  min-width: 980px;
}

body:not(.is-login) .services-table th,
body:not(.is-login) .services-table td {
  font-size: 14px;
}

body:not(.is-login) .services-name-cell {
  color: #0f172a;
  font-size: inherit;
  font-weight: 500;
}

@media (max-width: 920px) {
  .bottom-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .bottom-nav a {
    font-size: 12px;
    gap: 4px;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }

  .nav-icon-image img {
    width: 24px;
    height: 24px;
  }

  body:not(.is-login) .bottom-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  body:not(.is-login) .bottom-nav a {
    font-size: 10px;
  }
}

/* Mobile table representation: reuse the same card language as /payments. */
@media (max-width: 920px) {
  body:not(.is-login) .table-wrapper {
    display: none;
  }

  body:not(.is-login) .mobile-cards {
    display: grid;
    gap: 16px;
    padding: 16px;
  }

  body:not(.is-login) .table-mobile-card,
  body:not(.is-login) .mobile-check-card {
    padding: 20px;
    border-radius: 16px;
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: none;
  }

  body:not(.is-login) .table-mobile-card:hover,
  body:not(.is-login) .mobile-check-card:hover {
    background: #ffffff;
    box-shadow: none;
    transform: none;
    border-color: #cbd5e1;
  }

  body:not(.is-login) .mobile-check-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  body:not(.is-login) .table-mobile-card .card-topline,
  body:not(.is-login) .mobile-check-card .card-topline {
    align-items: flex-start;
  }

  body:not(.is-login) .table-mobile-card .card-title,
  body:not(.is-login) .mobile-check-card .card-title,
  body:not(.is-login) .services-mobile-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body:not(.is-login) .table-mobile-card .money,
  body:not(.is-login) .mobile-check-card .money {
    font-size: 20px;
  }

  body:not(.is-login) .mobile-table-meta {
    display: grid;
    gap: 10px;
  }

  body:not(.is-login) .mobile-table-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  body:not(.is-login) .mobile-table-row strong {
    min-width: 0;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
  }

  body:not(.is-login) .certificate-table-mobile-status span:first-child {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
  }

  body:not(.is-login) .services-mobile-actions,
  body:not(.is-login) .certificate-card-actions {
    margin-top: 2px;
  }

  body:not(.is-login) .services-mobile-actions .button,
  body:not(.is-login) .certificate-card-actions .button {
    width: 100%;
  }
}

/* Desktop table width sync: use /certificates as the baseline. */
.certificates-table-card .table-wrapper table,
.services-table-card .table-wrapper table,
.reconciliations-page #reconciliationsTable .table-wrapper table,
.payment-detail-page .table-card .table-wrapper table {
  min-width: 980px;
}

.certificates-table-card .table-wrapper tbody tr,
.services-table-card .table-wrapper tbody tr,
.reconciliations-page #reconciliationsTable .table-wrapper tbody tr,
.payment-detail-page .table-card .table-wrapper tbody tr {
  height: 65px;
}

.certificates-table-card .table-wrapper td,
.services-table-card .table-wrapper td,
.reconciliations-page #reconciliationsTable .table-wrapper td,
.payment-detail-page .table-card .table-wrapper td {
  height: 65px;
  vertical-align: middle;
}

.certificate-table-row {
  cursor: pointer;
}

.certificate-table-row:hover td {
  background: rgba(47, 126, 231, 0.04);
}

.certificate-table-row:focus-visible {
  outline: 3px solid rgba(47, 126, 231, 0.28);
  outline-offset: -3px;
}

.table-actions-cell {
  min-width: 144px;
  text-align: left;
  white-space: nowrap;
}

.table-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  min-width: 116px;
  padding-inline: 18px;
  white-space: nowrap;
  line-height: 1;
}

/* Mobile table panels: make table headers and rows separate cards, like /payments. */
@media (max-width: 920px) {
  body:not(.is-login) .certificates-table-card,
  body:not(.is-login) .services-table-card,
  body:not(.is-login) .reconciliations-page #reconciliationsTable,
  body:not(.is-login) .payment-detail-page .table-card {
    display: grid;
    gap: 16px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body:not(.is-login) .certificates-table-card > .table-header,
  body:not(.is-login) .services-table-card > .table-header,
  body:not(.is-login) .reconciliations-page #reconciliationsTable > .table-header,
  body:not(.is-login) .payment-detail-page .table-card > .table-header {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
  }

  body:not(.is-login) .certificates-table-card > .mobile-cards,
  body:not(.is-login) .services-table-card > .mobile-cards,
  body:not(.is-login) .reconciliations-page #reconciliationsTable > .mobile-cards,
  body:not(.is-login) .payment-detail-page .table-card > .mobile-cards {
    padding: 0;
    gap: 16px;
  }

  body:not(.is-login) .certificates-table-card > .empty-state,
  body:not(.is-login) .services-table-card > .empty-state,
  body:not(.is-login) .reconciliations-page #reconciliationsTable > .empty-state,
  body:not(.is-login) .payment-detail-page .table-card > .empty-state {
    margin: 0;
  }
}

/* Services description dialog: reuse the redeem/schedule modal design language. */
.service-description-panel {
  width: min(100%, 640px);
}

.service-description-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.service-description-form {
  gap: 18px;
}

.service-description-form textarea {
  min-height: 150px;
}

.service-description-helper {
  margin: -2px 0 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.service-description-actions {
  padding-top: 6px;
}

@media (max-width: 680px) {
  .service-description-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-description-actions .button {
    width: 100%;
  }
}

/* Services create/edit dialogs: keep the same product form language as redeem/schedule. */
.services-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.services-create-button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  white-space: nowrap;
}

.service-create-panel {
  width: min(100%, 640px);
}

.service-create-form,
.service-dialog-screen-card .schedule-form {
  gap: 18px;
}

.service-create-form textarea {
  min-height: 142px;
}

.service-create-submit {
  min-width: 190px;
}

.service-dialog-screen-card {
  overflow: hidden;
}

/* Services actions alignment: keep the create button on the same vertical guide as row actions. */
@media (min-width: 921px) {
  body:not(.is-login) .services-table th:last-child,
  body:not(.is-login) .services-table td:last-child {
    text-align: right;
  }

  body:not(.is-login) .services-table td:last-child {
    white-space: nowrap;
  }
}

@media (max-width: 920px) {
  body:not(.is-login) .services-table-header {
    grid-template-columns: 1fr;
  }

  body:not(.is-login) .services-header-actions,
  body:not(.is-login) .services-create-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .service-create-actions,
  .service-description-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-create-actions .button,
  .service-description-actions .button {
    width: 100%;
  }
}

/* Certificate new status actions */
.table-action-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.table-action-stack .table-action-button {
  width: 100%;
}

body.is-admin .sidebar,
body.is-admin .bottom-nav,
body.is-admin .mobile-menu-button,
body.is-admin .mobile-menu-overlay,
body.is-admin-auth .sidebar,
body.is-admin-auth .bottom-nav,
body.is-admin-auth .mobile-menu-button,
body.is-admin-auth .mobile-menu-overlay,
body.is-admin-auth .logout-button {
  display: none !important;
}

body.is-admin .workspace,
body.is-admin-auth .workspace {
  width: 100%;
}

body.is-admin .topbar,
body.is-admin-auth .topbar {
  grid-template-columns: auto 1fr auto;
}

body.is-admin .mobile-logo,
body.is-admin-auth .mobile-logo {
  display: block;
}

.admin-auth-helper {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.admin-auth-helper a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.admin-push-screen {
  max-width: 1180px;
}

.admin-push-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.admin-push-hero h2 {
  margin: 4px 0 8px;
}

.admin-push-hero p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.admin-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.admin-stat-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-stat-card strong {
  color: var(--text);
  display: block;
  font-size: 30px;
  line-height: 1;
}

.admin-push-form {
  display: grid;
  gap: 16px;
}

.admin-push-form label {
  display: grid;
  gap: 8px;
}

.admin-push-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-push-form textarea {
  resize: vertical;
}

.admin-installed-only {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
}

.admin-installed-only input {
  width: 18px;
  height: 18px;
}

.admin-push-table table {
  min-width: 760px;
}

.empty-state.compact {
  color: var(--muted);
  padding: 18px 22px 24px;
}

@media (max-width: 920px) {
  body.is-admin .content,
  body.is-admin-auth .content {
    padding-bottom: 30px;
  }

  .admin-push-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile password setup: reuse sign-in input language inside profile flows. */
.profile-password-modal .profile-password-panel {
  width: min(100%, 460px);
}

.profile-password-dialog-body {
  padding: 24px;
}

.profile-password-form {
  width: 100%;
}

.profile-password-screen {
  min-height: min(720px, calc(100vh - 120px));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.profile-password-screen .auth-panel {
  min-height: min(720px, calc(100vh - 120px));
}

.profile-password-success-panel {
  width: min(100%, 420px);
}

.profile-password-success-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.profile-password-success-body p {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.profile-password-success-body .button {
  justify-self: end;
  min-width: 112px;
}

@media (max-width: 680px) {
  .profile-password-screen {
    min-height: auto;
    border-radius: 18px;
  }

  .profile-password-screen .auth-panel {
    min-height: auto;
    align-items: flex-start;
    padding: 24px 18px;
  }

  .profile-password-success-body .button {
    width: 100%;
    justify-self: stretch;
  }
}

/* Profile moderation request: dialog/screen adapted from redeem info modal. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.profile-moderation-panel {
  width: min(100%, 620px);
}

.profile-moderation-form {
  gap: 22px;
}

.profile-moderation-form .schedule-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.profile-moderation-field input,
.profile-moderation-field textarea,
body:not(.is-login) .profile-moderation-field input,
body:not(.is-login) .profile-moderation-field textarea {
  border-color: #d1d5db;
  border-radius: 12px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 500;
}

.profile-moderation-field input::placeholder,
.profile-moderation-field textarea::placeholder {
  color: #7c859f;
}

.profile-moderation-field textarea {
  min-height: 132px;
}

.profile-moderation-file-row {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 0 4px;
}

.profile-moderation-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #1d6ff2;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.profile-moderation-file-button:hover,
.profile-moderation-file-button:focus-visible {
  color: #0f58d6;
  outline: none;
}

.profile-moderation-file-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 111, 242, 0.16);
  border-radius: 12px;
}

.profile-moderation-attach-icon {
  flex: 0 0 auto;
}

.profile-moderation-file-name {
  min-height: 18px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}

.profile-moderation-actions {
  padding-top: 4px;
}

.profile-moderation-submit {
  min-width: 180px;
}

.profile-moderation-screen-card {
  overflow: hidden;
}

.profile-moderation-success-panel {
  width: min(100%, 420px);
}

.profile-moderation-success-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.profile-moderation-success-body p {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.profile-moderation-success-body .button {
  justify-self: end;
  min-width: 112px;
}

@media (max-width: 680px) {
  .profile-moderation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-moderation-actions .button,
  .profile-moderation-success-body .button {
    width: 100%;
    justify-self: stretch;
  }

  .profile-moderation-file-row {
    justify-items: stretch;
  }

  .profile-moderation-file-button {
    width: 100%;
  }
}


/* Profile moderation mobile screen: align typography with /services/create screen. */
@media (max-width: 680px) {
  .profile-moderation-screen-card .profile-moderation-form,
  body:not(.is-login) .profile-moderation-screen-card .profile-moderation-form {
    gap: 16px;
  }

  .profile-moderation-screen-card .profile-moderation-form .schedule-field label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
  }

  .profile-moderation-screen-card .profile-moderation-field input,
  .profile-moderation-screen-card .profile-moderation-field textarea,
  body:not(.is-login) .profile-moderation-screen-card .profile-moderation-field input,
  body:not(.is-login) .profile-moderation-screen-card .profile-moderation-field textarea {
    border-color: #e2e8f0;
    border-radius: 14px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  .profile-moderation-screen-card .profile-moderation-field input,
  body:not(.is-login) .profile-moderation-screen-card .profile-moderation-field input {
    height: 48px;
    padding: 0 14px;
  }

  .profile-moderation-screen-card .profile-moderation-field textarea,
  body:not(.is-login) .profile-moderation-screen-card .profile-moderation-field textarea {
    min-height: 142px;
    padding: 14px;
  }

  .profile-moderation-screen-card .profile-moderation-file-button {
    min-height: 48px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
  }

  .profile-moderation-screen-card .profile-moderation-file-name {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
  }
}

/* Desktop admin PUSH layout and campaign history filters. Mobile layout intentionally keeps the existing single-column flow. */
.admin-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-campaign-filters {
  display: grid;
  gap: 14px;
}

.admin-campaign-filters label {
  display: grid;
  gap: 8px;
}

.admin-campaign-filters label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-campaign-filter-actions {
  display: grid;
  gap: 10px;
}

.admin-campaigns-table table {
  min-width: 980px;
}

.admin-campaigns-table td strong,
.admin-campaigns-table td small {
  display: block;
}

.admin-campaigns-table td small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
  max-width: 420px;
}

@media (min-width: 1024px) {
  .admin-push-screen {
    max-width: 1360px;
    width: 100%;
  }

  .admin-push-screen:not(.admin-campaigns-screen) {
    align-items: start;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  }

  .admin-push-screen:not(.admin-campaigns-screen) .admin-push-hero,
  .admin-push-screen:not(.admin-campaigns-screen) .admin-stat-grid {
    grid-column: 1 / -1;
  }

  .admin-push-screen:not(.admin-campaigns-screen) .admin-broadcast-card {
    grid-column: 1;
    grid-row: 3 / span 2;
    position: sticky;
    top: 24px;
  }

  .admin-push-screen:not(.admin-campaigns-screen) .admin-push-list-card {
    grid-column: 2;
  }

  .admin-campaigns-screen {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .admin-campaigns-screen .admin-push-hero {
    grid-column: 1 / -1;
  }

  .admin-campaigns-screen .admin-campaign-filters-card {
    grid-column: 1;
    position: sticky;
    top: 24px;
  }

  .admin-campaigns-screen .admin-push-list-card {
    grid-column: 2;
  }

  .admin-campaign-filter-actions {
    grid-template-columns: 1fr;
  }
}

/* Wide desktop layout for the administrator PUSH panel. Mobile keeps the existing flow. */
@media (min-width: 1024px) {
  body.is-admin .content {
    width: 100%;
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
  }

  body.is-admin #app {
    width: 100%;
  }

  body.is-admin .admin-push-screen {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(400px, 480px) minmax(0, 1fr);
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-hero,
  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-stat-grid {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-broadcast-card {
    grid-column: 1;
    grid-row: 3 / span 2;
    min-width: 0;
    position: sticky;
    top: 24px;
    width: 100%;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-list-card {
    grid-column: 2;
    min-width: 0;
    width: 100%;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-table {
    width: 100%;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-table table {
    min-width: 920px;
  }
}

@media (min-width: 1440px) {
  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) {
    grid-template-columns: minmax(440px, 520px) minmax(0, 1fr);
  }
}

/* Admin PUSH: align the panel with the /redeem visual language. */
body.is-admin .admin-push-screen {
  width: 100%;
  max-width: none;
  color: #0f172a;
  gap: 16px;
}

body.is-admin .admin-push-hero,
body.is-admin .admin-stat-card,
body.is-admin .admin-broadcast-card,
body.is-admin .admin-push-list-card,
body.is-admin .admin-campaign-filters-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

body.is-admin .admin-push-hero {
  align-items: flex-start;
  padding: 16px 18px;
}

body.is-admin .admin-push-hero .eyebrow {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.is-admin .admin-push-hero h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

body.is-admin .admin-push-hero p:not(.eyebrow) {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 760px;
}

body.is-admin .admin-hero-actions {
  gap: 10px;
}

body.is-admin .admin-stat-grid {
  gap: 16px;
}

body.is-admin .admin-stat-card {
  padding: 16px;
}

body.is-admin .admin-stat-card span {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body.is-admin .admin-stat-card strong {
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

body.is-admin .admin-broadcast-card.card.pad,
body.is-admin .admin-campaign-filters-card.card.pad {
  padding: 0;
  overflow: hidden;
}

body.is-admin .admin-broadcast-card .table-header,
body.is-admin .admin-push-list-card .table-header,
body.is-admin .admin-campaign-filters-card .table-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

body.is-admin .admin-broadcast-card .table-header h2,
body.is-admin .admin-push-list-card .table-header h2,
body.is-admin .admin-campaign-filters-card .table-header h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

body.is-admin .admin-broadcast-card .table-header p,
body.is-admin .admin-push-list-card .table-header p,
body.is-admin .admin-campaign-filters-card .table-header p {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

body.is-admin .admin-push-form,
body.is-admin .admin-campaign-filters {
  gap: 18px;
  padding: 16px;
}

body.is-admin .admin-push-form label,
body.is-admin .admin-campaign-filters label {
  display: grid;
  gap: 8px;
}

body.is-admin .admin-push-form label > span,
body.is-admin .admin-campaign-filters label > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body.is-admin .admin-push-form input:not([type="checkbox"]),
body.is-admin .admin-push-form textarea,
body.is-admin .admin-campaign-filters input,
body.is-admin .admin-campaign-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.is-admin .admin-push-form input:not([type="checkbox"]),
body.is-admin .admin-campaign-filters input,
body.is-admin .admin-campaign-filters select {
  height: 48px;
  padding: 0 14px;
}

body.is-admin .admin-push-form textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

body.is-admin .admin-push-form input:not([type="checkbox"]):focus,
body.is-admin .admin-push-form textarea:focus,
body.is-admin .admin-campaign-filters input:focus,
body.is-admin .admin-campaign-filters select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

body.is-admin .admin-installed-only {
  align-items: flex-start;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

body.is-admin .admin-installed-only input {
  flex: 0 0 18px;
  margin-top: 2px;
}

body.is-admin .admin-installed-only span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

body.is-admin .admin-push-form > .button,
body.is-admin .admin-campaign-filter-actions .button,
body.is-admin .admin-hero-actions .button {
  min-height: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

body.is-admin .admin-push-table table {
  font-size: 14px;
}

body.is-admin .admin-push-table th,
body.is-admin .admin-push-table td {
  padding: 12px 16px;
  border-bottom-color: #f1f5f9;
}

body.is-admin .admin-push-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.is-admin .admin-push-table td {
  color: #334155;
  font-weight: 500;
}

body.is-admin .admin-push-table td strong {
  color: #0f172a;
  font-weight: 600;
}

body.is-admin .empty-state.compact {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  padding: 16px;
}

body.is-admin .admin-push-form .notice,
body.is-admin .admin-push-form .notice.error {
  margin-top: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) {
    gap: 16px;
    grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  }

  body.is-admin .admin-campaigns-screen {
    gap: 16px;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }
}

/* Admin PUSH desktop full-width correction. Keeps mobile flow unchanged. */
body.is-admin .layout,
body.is-admin-auth .layout {
  grid-template-columns: 1fr;
}

body.is-admin .workspace,
body.is-admin-auth .workspace {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 921px) {
  body.is-admin .content {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding-left: clamp(24px, 3vw, 56px);
    padding-right: clamp(24px, 3vw, 56px);
  }

  body.is-admin #app,
  body.is-admin .admin-push-screen,
  body.is-admin .admin-campaigns-screen {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) {
    display: grid;
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-hero,
  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-stat-grid {
    grid-column: 1 / -1;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-broadcast-card {
    grid-column: 1;
    grid-row: 3 / span 2;
    width: 100%;
    min-width: 0;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-list-card {
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) .admin-push-table table {
    width: 100%;
    min-width: 980px;
  }

  body.is-admin .admin-campaigns-screen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.is-admin .admin-campaigns-screen .admin-push-hero,
  body.is-admin .admin-campaigns-screen .admin-campaign-filters-card,
  body.is-admin .admin-campaigns-screen .admin-push-list-card {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  body.is-admin .admin-campaigns-screen .admin-campaign-filters-card {
    position: static;
  }

  body.is-admin .admin-campaigns-screen .admin-campaign-filters {
    grid-template-columns: repeat(5, minmax(160px, 1fr)) auto;
    align-items: end;
  }

  body.is-admin .admin-campaigns-screen .admin-campaign-filter-actions {
    grid-template-columns: repeat(2, minmax(112px, auto));
    align-items: end;
  }

  body.is-admin .admin-campaigns-screen .admin-campaigns-table table {
    width: 100%;
    min-width: 1160px;
  }
}

@media (min-width: 1440px) {
  body.is-admin .admin-push-screen:not(.admin-campaigns-screen) {
    grid-template-columns: minmax(460px, 560px) minmax(0, 1fr);
  }
}

/* Admin panel navigation: desktop mirrors the main app sidebar while keeping admin routes isolated. */
.admin-shell {
  width: 100%;
  min-width: 0;
}

.admin-sidebar-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
  padding: 20px;
}

.admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.admin-sidebar-brand img {
  display: block;
  max-width: 156px;
  height: auto;
}

.admin-sidebar-nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a:focus-visible {
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

.admin-sidebar-nav a.active {
  background: #eef6ff;
  color: #0f172a;
}

body.is-admin .admin-new-broadcast-screen,
body.is-admin .admin-devices-screen,
body.is-admin .admin-subscription-logs-screen {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

body.is-admin .admin-new-broadcast-screen .admin-push-hero,
body.is-admin .admin-new-broadcast-screen .admin-stat-grid,
body.is-admin .admin-new-broadcast-screen .admin-broadcast-card,
body.is-admin .admin-devices-screen .admin-push-hero,
body.is-admin .admin-devices-screen .admin-stat-grid,
body.is-admin .admin-devices-screen .admin-push-list-card,
body.is-admin .admin-subscription-logs-screen .admin-push-hero,
body.is-admin .admin-subscription-logs-screen .admin-push-list-card {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

body.is-admin .admin-new-broadcast-screen .admin-broadcast-card {
  grid-row: auto;
  position: static;
}

@media (min-width: 921px) {
  body.is-admin .admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
  }

  body.is-admin .admin-sidebar-panel {
    position: sticky;
    top: 24px;
    min-height: calc(100vh - 48px);
  }

  body.is-admin .admin-shell-content {
    min-width: 0;
    width: 100%;
  }

  body.is-admin .admin-new-broadcast-screen,
  body.is-admin .admin-devices-screen,
  body.is-admin .admin-subscription-logs-screen {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.is-admin .admin-new-broadcast-screen .admin-push-form {
    max-width: none;
  }

  body.is-admin .admin-devices-screen .admin-push-table table,
  body.is-admin .admin-subscription-logs-screen .admin-push-table table {
    width: 100%;
    min-width: 980px;
  }

  body.is-admin .admin-campaigns-screen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 920px) {
  body.is-admin .admin-shell {
    display: grid;
    gap: 16px;
  }

  body.is-admin .admin-sidebar-panel {
    padding: 16px;
  }

  body.is-admin .admin-sidebar-nav {
    grid-template-columns: 1fr;
  }
}

/* Final specificity overrides for split admin screens. */
body.is-admin .admin-push-screen.admin-new-broadcast-screen,
body.is-admin .admin-push-screen.admin-devices-screen,
body.is-admin .admin-push-screen.admin-subscription-logs-screen {
  display: grid;
  grid-template-columns: 1fr;
}

body.is-admin .admin-push-screen.admin-new-broadcast-screen .admin-push-hero,
body.is-admin .admin-push-screen.admin-new-broadcast-screen .admin-stat-grid,
body.is-admin .admin-push-screen.admin-new-broadcast-screen .admin-broadcast-card,
body.is-admin .admin-push-screen.admin-devices-screen .admin-push-hero,
body.is-admin .admin-push-screen.admin-devices-screen .admin-stat-grid,
body.is-admin .admin-push-screen.admin-devices-screen .admin-push-list-card,
body.is-admin .admin-push-screen.admin-subscription-logs-screen .admin-push-hero,
body.is-admin .admin-push-screen.admin-subscription-logs-screen .admin-push-list-card {
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
  min-width: 0;
  position: static;
}

/* Admin PUSH redesign: use the main app shell on desktop and mobile cards for data-heavy screens. */
body.is-admin .layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #f6f7fb;
}

body.is-admin .sidebar {
  display: block !important;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 0;
  backdrop-filter: none;
}

body.is-admin .admin-brand {
  min-height: 56px;
  height: 56px;
  margin: 0;
  padding: 2mm 12px;
  border-bottom: 1px solid #e2e8f0;
}

body.is-admin .admin-brand img {
  width: 160px;
  height: auto;
  max-height: calc(56px - 4mm);
  object-fit: contain;
}

body.is-admin .admin-desktop-nav {
  padding: 16px 12px;
  gap: 4px;
}

body.is-admin .admin-desktop-nav a {
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
}

body.is-admin .admin-desktop-nav a:hover,
body.is-admin .admin-desktop-nav a:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

body.is-admin .admin-desktop-nav a.active {
  background: #0f172a;
  color: #ffffff;
}

body.is-admin .workspace {
  grid-column: auto;
  min-width: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.is-admin .topbar {
  display: flex;
  grid-template-columns: none;
  height: 56px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.is-admin .topbar h1 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

body.is-admin .mobile-logo {
  display: none;
}

body.is-admin .mobile-menu-button,
body.is-admin .mobile-menu-overlay {
  display: none !important;
}

body.is-admin .bottom-nav {
  display: none !important;
}

body.is-admin .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
}

body.is-admin .admin-shell,
body.is-admin .admin-shell-content,
body.is-admin #app,
body.is-admin .admin-push-screen,
body.is-admin .admin-campaigns-screen {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

body.is-admin .admin-push-screen,
body.is-admin .admin-campaigns-screen,
body.is-admin .admin-new-broadcast-screen,
body.is-admin .admin-devices-screen,
body.is-admin .admin-subscription-logs-screen {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px;
  align-items: start;
}

body.is-admin .admin-push-hero,
body.is-admin .admin-stat-grid,
body.is-admin .admin-broadcast-card,
body.is-admin .admin-push-list-card,
body.is-admin .admin-campaign-filters-card {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100%;
  min-width: 0;
  position: static !important;
}

body.is-admin .admin-push-hero,
body.is-admin .admin-broadcast-card,
body.is-admin .admin-push-list-card,
body.is-admin .admin-campaign-filters-card,
body.is-admin .admin-stat-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

body.is-admin .admin-push-hero {
  min-height: 86px;
  padding: 20px;
  align-items: center;
}

body.is-admin .admin-push-hero h2 {
  margin: 4px 0 6px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.is-admin .admin-push-hero p:not(.eyebrow) {
  max-width: 780px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

body.is-admin .admin-push-hero .eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.is-admin .admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.is-admin .admin-stat-card {
  padding: 18px;
}

body.is-admin .admin-stat-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

body.is-admin .admin-stat-card strong {
  color: #0f172a;
  font-size: 30px;
  font-weight: 700;
}

body.is-admin .admin-broadcast-card.card.pad,
body.is-admin .admin-campaign-filters-card.card.pad {
  padding: 0;
}

body.is-admin .admin-push-form,
body.is-admin .admin-campaign-filters {
  padding: 20px;
}

body.is-admin .admin-new-broadcast-screen .admin-push-form {
  max-width: none;
}

body.is-admin .admin-campaign-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

body.is-admin .admin-campaign-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, auto));
  gap: 10px;
}

body.is-admin .admin-push-table table,
body.is-admin .admin-campaigns-table table {
  width: 100%;
  min-width: 980px;
  font-size: 14px;
}

body.is-admin .admin-campaigns-table table {
  min-width: 1120px;
}

body.is-admin .admin-mobile-cards {
  display: none;
}

body.is-admin .admin-mobile-card-meta,
body.is-admin .admin-mobile-card-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.is-admin .admin-mobile-card-badge {
  flex: 0 0 auto;
}

body.is-admin .admin-mobile-card-badge .status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 920px) {
  body.is-admin .layout {
    display: block;
  }

  body.is-admin .sidebar {
    display: none !important;
  }

  body.is-admin .workspace {
    min-height: 100vh;
    padding-bottom: 0;
  }

  body.is-admin .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
    background: #ffffff;
  }

  body.is-admin .mobile-menu-button {
    display: grid !important;
  }

  body.is-admin .mobile-menu-overlay {
    display: block !important;
  }

  body.is-admin .mobile-logo {
    display: block;
  }

  body.is-admin .topbar h1 {
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
  }

  body.is-admin .logout-button {
    width: 36px;
    height: 36px;
  }

  body.is-admin .content {
    padding: 20px 18px 30px;
  }

  body.is-admin .admin-push-screen,
  body.is-admin .admin-campaigns-screen,
  body.is-admin .admin-new-broadcast-screen,
  body.is-admin .admin-devices-screen,
  body.is-admin .admin-subscription-logs-screen {
    gap: 16px;
  }

  body.is-admin .admin-push-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  body.is-admin .admin-push-hero h2 {
    font-size: 22px;
  }

  body.is-admin .admin-hero-actions,
  body.is-admin .admin-hero-actions .button {
    width: 100%;
    justify-content: stretch;
  }

  body.is-admin .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.is-admin .admin-stat-card {
    border-radius: 18px;
    padding: 16px;
  }

  body.is-admin .admin-stat-card strong {
    font-size: 26px;
  }

  body.is-admin .admin-broadcast-card,
  body.is-admin .admin-campaign-filters-card {
    border-radius: 24px;
    overflow: hidden;
  }

  body.is-admin .admin-broadcast-card .table-header,
  body.is-admin .admin-campaign-filters-card .table-header {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  body.is-admin .admin-push-form,
  body.is-admin .admin-campaign-filters {
    padding: 20px;
  }

  body.is-admin .admin-push-form .form-grid.two,
  body.is-admin .admin-campaign-filters {
    grid-template-columns: 1fr;
  }

  body.is-admin .admin-campaign-filter-actions {
    grid-template-columns: 1fr;
  }

  body.is-admin .admin-push-form > .button,
  body.is-admin .admin-campaign-filter-actions .button,
  body.is-admin .admin-hero-actions .button {
    width: 100%;
    min-height: 48px;
    height: 48px;
    border-radius: 14px;
  }

  body.is-admin .admin-push-list-card {
    display: grid;
    gap: 16px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.is-admin .admin-push-list-card > .table-header {
    grid-template-columns: 1fr;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: none;
  }

  body.is-admin .admin-push-list-card > .table-wrapper {
    display: none !important;
  }

  body.is-admin .admin-push-list-card > .admin-mobile-cards {
    display: grid !important;
    gap: 16px;
    padding: 0;
  }

  body.is-admin .admin-mobile-card {
    border-radius: 24px;
    padding: 20px;
  }

  body.is-admin .admin-mobile-card-topline {
    align-items: flex-start;
  }

  body.is-admin .admin-mobile-card-title {
    min-width: 0;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  body.is-admin .admin-mobile-card .mobile-table-meta {
    gap: 10px;
  }

  body.is-admin .admin-mobile-card .mobile-table-row {
    align-items: flex-start;
  }

  body.is-admin .admin-mobile-card .mobile-table-row strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  body.is-admin .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  body.is-admin .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile agent report editing: compact controls without changing /profile layout. */
.profile-agent-report-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
}

.profile-agent-report-edit {
  min-width: 118px;
}

.profile-agent-report-panel {
  width: min(100%, 560px);
}

.profile-agent-report-form {
  gap: 18px;
}

.profile-agent-report-submit {
  min-width: 132px;
}

.profile-agent-report-screen-card {
  overflow: hidden;
}

@media (max-width: 680px) {
  .profile-agent-report-actions {
    justify-content: stretch;
  }

  .profile-agent-report-edit,
  .profile-agent-report-form-actions .button {
    width: 100%;
  }

  .profile-agent-report-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-section-header .profile-agent-report-edit {
    width: auto;
    min-width: 104px;
  }
}

/* Profile notification channels editing: inline action in the existing card header. */
.profile-section-header .profile-notification-channels-action {
  flex: 0 0 auto;
  min-width: 104px;
}

.profile-notification-channels-form {
  display: grid;
  gap: 12px;
}

.profile-channel-editable {
  align-items: start;
}

.profile-channel-input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #1d6ff2;
  cursor: pointer;
}

.profile-channel-editable .profile-channel-body {
  cursor: pointer;
}

.profile-channel-input:focus-visible {
  outline: 3px solid rgba(29, 111, 242, 0.2);
  outline-offset: 3px;
}

#profileNotificationChannelsNotice {
  margin-top: 4px;
}

@media (max-width: 680px) {
  .profile-section-header .profile-notification-channels-action {
    width: auto;
    min-width: 104px;
  }
}

/* CRM data tab: full-width profile-like form, without adding a mobile bottom tab. */
.crm-data-page {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: none;
}

.crm-data-card {
  width: 100%;
  overflow: hidden;
  padding: 22px;
}

.crm-data-header {
  align-items: flex-start;
  margin-bottom: 0;
}

.crm-data-header h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.crm-data-header p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.crm-data-form {
  padding: 22px 0 0;
}

.crm-data-grid .schedule-field-full {
  grid-column: 1 / -1;
}

.crm-data-actions {
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .crm-data-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  }
}

@media (max-width: 680px) {
  .crm-data-page {
    max-width: none;
  }

  .crm-data-card {
    padding: 22px;
    border-radius: 26px;
  }

  .crm-data-header h2 {
    font-size: 22px;
  }

  .crm-data-grid {
    grid-template-columns: 1fr;
  }

  .crm-data-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-data-actions .button {
    width: 100%;
  }
}

/* CRM Booking iframe: modal experiment for YCLIENTS embedded auth flow. */
.crm-booking-iframe-modal {
  z-index: 170;
}

.crm-booking-iframe-panel {
  width: min(1180px, calc(100vw - 40px));
  max-height: min(940px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.crm-booking-iframe-header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.crm-booking-iframe-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(420px, 1fr) auto;
  gap: 16px;
  padding: 20px 24px 24px;
  overflow: auto;
}

.crm-booking-iframe-status {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
  color: #334155;
}

.crm-booking-iframe-status.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.crm-booking-iframe-status.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.crm-booking-iframe-status.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.crm-booking-iframe-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crm-booking-iframe-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.crm-booking-iframe-status pre,
.crm-booking-iframe-target-row code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.crm-booking-iframe-target-row {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.crm-booking-iframe-frame-wrap {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #ffffff;
}

.crm-booking-iframe-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  background: #ffffff;
}

.crm-booking-hidden-frame {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  pointer-events: none;
}

.crm-booking-iframe-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 680px) {
  .crm-booking-iframe-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .crm-booking-iframe-body {
    grid-template-rows: auto auto minmax(360px, 1fr) auto;
    padding: 16px;
  }

  .crm-booking-iframe-frame-wrap {
    min-height: 360px;
  }

  .crm-booking-iframe-frame {
    min-height: 420px;
  }

  .crm-booking-iframe-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-booking-iframe-actions .button {
    width: 100%;
  }
}

.crm-data-checkbox-field {
  min-height: auto;
}

.crm-data-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.crm-data-checkbox-label input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0f172a;
  flex: 0 0 auto;
}

/* Admin application parameters: system-defined keys with editable boolean values. */
/* The page itself deliberately reuses the admin/push/logs layout, cards, table and mobile cards. */
body.is-admin .admin-parameters-table table {
  min-width: 880px;
}

body.is-admin .admin-parameters-table th:nth-child(1),
body.is-admin .admin-parameters-table td:nth-child(1) {
  width: 25%;
}

body.is-admin .admin-parameters-table th:nth-child(2),
body.is-admin .admin-parameters-table td:nth-child(2) {
  width: 14%;
}

body.is-admin .admin-parameters-table th:nth-child(4),
body.is-admin .admin-parameters-table td:nth-child(4) {
  width: 170px;
  text-align: right;
}

body.is-admin .admin-parameter-key {
  padding: 0;
  background: transparent;
  color: #0f172a;
  font: 650 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

body.is-admin .admin-parameter-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.is-admin .admin-parameter-value.is-enabled {
  background: #dcfce7;
  color: #166534;
}

body.is-admin .admin-parameter-value.is-disabled {
  background: #f1f5f9;
  color: #475569;
}

body.is-admin .admin-parameter-edit-button {
  min-width: 136px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

body.is-admin .admin-parameter-edit-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-admin .admin-mobile-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

body.is-admin .admin-parameter-mobile-cards .admin-mobile-card-title {
  font-size: 18px;
}

body.is-admin .admin-parameter-mobile-cards .admin-parameter-edit-button {
  width: 100%;
}

.admin-parameter-panel {
  width: min(100%, 620px);
}

.admin-parameter-dialog-eyebrow {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-parameter-dialog-summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fafc;
}

.admin-parameter-dialog-summary p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.admin-parameter-form select {
  min-height: 48px;
}

@media (max-width: 760px) {
  .admin-parameter-modal {
    padding: 12px;
  }

  .admin-parameter-panel {
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .admin-parameter-form .schedule-actions {
    grid-template-columns: 1fr;
  }

  .admin-parameter-form .schedule-actions .button {
    width: 100%;
  }
}
