:root {
  --bg-body: #f4f5ef;
  --bg-card: rgba(255, 255, 255, 0.84);
  --bg-card-strong: #ffffff;
  --text-main: #18212b;
  --text-secondary: #4c5966;
  --text-muted: #667383;
  --border-subtle: rgba(24, 33, 43, 0.1);
  --border-color: rgba(24, 33, 43, 0.12);
  --accent: #0f5bff;
  --accent-soft: rgba(15, 91, 255, 0.1);
  --accent-primary: var(--accent);
  --accent-secondary: #1741bb;
  --success: #0f9b73;
  --warning: #c98616;
  --danger: #d9474f;
  --radius: 18px;
  --radius-lg: 24px;
  --font-family-sans: "Manrope", sans-serif;
  --font-family-display: "Space Grotesk", sans-serif;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 28px 64px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-sans);
  background:
    radial-gradient(circle at top left, rgba(83, 223, 179, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 91, 255, 0.13), transparent 24%),
    linear-gradient(180deg, #eef4ff 0%, #f4f5ef 28%, #f8f6ef 100%);
  color: var(--text-main);
  min-height: 100vh;
}

body.panel-shell {
  position: relative;
}

.shell-ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.shell-ambient-one {
  width: 280px;
  height: 280px;
  top: 80px;
  right: 10%;
  background: radial-gradient(circle, rgba(15, 91, 255, 0.16) 0%, transparent 70%);
}

.shell-ambient-two {
  width: 240px;
  height: 240px;
  left: 8%;
  top: 280px;
  background: radial-gradient(circle, rgba(83, 223, 179, 0.16) 0%, transparent 68%);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

.shell-header {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 18px;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 91, 255, 0.12), rgba(83, 223, 179, 0.14));
  color: var(--accent-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.shell-header h1 {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.shell-header span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions {
  display: contents;
}

.header-user-info {
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

#logout-btn {
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

#logout-btn:hover {
  border-color: rgba(15, 91, 255, 0.36);
  color: var(--accent);
  transform: translateY(-1px);
}

.section-tabs {
  max-width: 1240px;
  margin: 12px auto 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.section-tab {
  position: relative;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.section-tab::after {
  display: none;
}

.section-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.78);
}

.section-tab-active {
  color: #ffffff;
  background: linear-gradient(135deg, #143bb0 0%, #0f5bff 100%);
  box-shadow: 0 12px 24px rgba(15, 91, 255, 0.24);
}

main.panel-page {
  max-width: 1240px;
  margin: 20px auto 48px;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.panel-layout {
  display: grid;
  gap: 24px;
}

.panel-layout--two-cols {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: flex-start;
}

.panel-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.74);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.panel h2 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.panel p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.status {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.status.error {
  color: var(--danger);
}

.muted {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.table-wrapper {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  margin-top: 10px;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.simple-table thead {
  background: rgba(244, 247, 252, 0.95);
}

.simple-table th,
.simple-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(24, 33, 43, 0.07);
  text-align: left;
}

.simple-table th {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.simple-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.95);
}

button,
.btn {
  font-family: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #143bb0 0%, #0f5bff 100%);
  border: 1px solid rgba(17, 62, 157, 0.95);
  color: #ffffff;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(15, 91, 255, 0.2);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
  box-shadow: 0 18px 32px rgba(15, 91, 255, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: rgba(15, 91, 255, 0.34);
  color: var(--accent);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(217, 71, 79, 0.95);
  background: linear-gradient(135deg, #cc3944 0%, #d9474f 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger:hover {
  filter: brightness(1.03);
}

.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled,
.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  border: 1px solid var(--border-subtle);
  font-weight: 700;
}

.badge.active {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(236, 253, 245, 0.95);
  color: #166534;
}

.badge.inactive {
  background: rgba(248, 250, 252, 0.95);
  color: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.modal-content,
.modal-dialog {
  position: relative;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  padding: 20px;
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.admin-panel-dialog .modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.admin-panel-dialog-content {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.92);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.admin-panel-dialog[data-size="xl"] .admin-panel-dialog-content {
  max-width: none;
  width: min(1120px, calc(100vw - 40px));
  max-height: min(88vh, 960px);
  padding: 28px;
}

.admin-panel-dialog-header {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin-bottom: 16px;
  padding-right: 52px;
}

.admin-panel-dialog-copy {
  display: grid;
  gap: 8px;
}

.admin-panel-dialog-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.96);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-panel-dialog[data-tone="danger"] .admin-panel-dialog-badge {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(254, 242, 242, 0.96);
  color: #b42318;
}

.admin-panel-dialog[data-tone="warning"] .admin-panel-dialog-badge {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(255, 251, 235, 0.98);
  color: #b45309;
}

.admin-panel-dialog[data-tone="info"] .admin-panel-dialog-badge {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(239, 246, 255, 0.98);
  color: #1d4ed8;
}

.admin-panel-dialog-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-panel-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-main);
}

.admin-panel-dialog-note {
  flex: 0 0 auto;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.admin-panel-dialog-close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}

.admin-panel-dialog-close:hover {
  border-color: rgba(148, 163, 184, 0.92);
  background: rgba(248, 250, 252, 0.98);
  color: var(--text-main);
}

.admin-panel-dialog-actions {
  flex: 0 0 auto;
  gap: 10px;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.admin-panel-dialog-actions .btn-secondary,
.admin-panel-dialog-actions .btn-primary,
.admin-panel-dialog-actions .btn-danger {
  min-width: 132px;
  min-height: 42px;
}

@media (max-width: 720px) {
  .admin-panel-dialog-content,
  .admin-panel-dialog[data-size="xl"] .admin-panel-dialog-content {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px;
  }
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
  gap: var(--spacing-lg);
}

.column {
  flex: 1;
}

.section {
  margin-bottom: var(--spacing-xl);
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

input,
select,
textarea {
  font-family: inherit;
  color: var(--text-main);
}

input,
select,
textarea {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(248, 250, 252, 0.96);
  padding: 10px 12px;
}

@media (max-width: 1024px) {
  .shell-header-inner,
  .shell-workspace {
    max-width: none;
  }

  .shell-workspace {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell-sidebar {
    position: static;
  }

  .section-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }

  .section-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .panel-layout--two-cols,
  .panel-layout--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .shell-header-inner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .header-left {
    align-items: flex-start;
  }

  .header-right {
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ==============================
   ADMIN SHELL REFRESH
   ============================== */

:root {
  --radius-pill: 4px;
  --radius-box: 8px;
  --radius-box-lg: 10px;
  --radius: var(--radius-box);
  --radius-lg: var(--radius-box-lg);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.1);
}

body.panel-shell {
  background:
    radial-gradient(circle at top right, rgba(15, 91, 255, 0.06), transparent 20%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
}

.shell-ambient {
  opacity: 0.18;
  filter: blur(42px);
}

.shell-ambient-one {
  top: 88px;
  right: 3%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(15, 91, 255, 0.08) 0%, transparent 70%);
}

.shell-ambient-two {
  top: 300px;
  left: 2%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(83, 223, 179, 0.06) 0%, transparent 68%);
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: 0;
  background: rgba(249, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.shell-header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-badge {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(15, 91, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-secondary);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.brand-badge-logo {
  width: 40px;
  min-height: 40px;
  padding: 4px;
  justify-content: center;
}

.brand-badge-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shell-brand-wordmark-shell {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.shell-brand-wordmark {
  display: block;
  width: auto;
  height: 30px;
  max-width: 160px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.shell-header h1 {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.shell-header span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.header-user-info {
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

#logout-btn {
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

body:not(.public-login-page-body) .locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

body:not(.public-login-page-body) .locale-switcher-link {
  min-width: 32px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}

body:not(.public-login-page-body) .locale-switcher-link:hover,
body:not(.public-login-page-body) .locale-switcher-link:focus-visible {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.04);
}

body:not(.public-login-page-body) .locale-switcher-link.is-active {
  color: var(--accent-secondary);
  background: rgba(15, 91, 255, 0.08);
}

.shell-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px 28px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
  z-index: 1;
}

.shell-sidebar {
  position: sticky;
  top: 53px;
  max-height: calc(100vh - 53px);
  align-self: start;
  overflow-y: auto;
  padding: 18px 18px 0 0;
  border-right: 1px solid rgba(24, 33, 43, 0.08);
}

.section-tabs {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.section-tab,
.section-group-toggle {
  min-height: 38px;
}

.section-tab {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5f6f82;
  text-decoration: none;
}

.section-tab:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(24, 33, 43, 0.04);
  color: var(--text-main);
}

.section-tab-active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(24, 33, 43, 0.08);
  box-shadow: inset 2px 0 0 var(--accent);
}

.section-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
}

.section-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.section-group-toggle:hover,
.section-group-toggle:focus-visible {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-main);
}

.section-group-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.section-group.is-open .section-group-toggle-icon {
  transform: rotate(225deg);
}

.section-subnav {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px 10px;
  padding: 2px 0 0 12px;
  border-left: 1px solid rgba(24, 33, 43, 0.08);
}

.section-group.is-open .section-subnav {
  display: flex;
}

.section-subnav-link {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 0.77rem;
  font-weight: 700;
  color: #6b7b8f;
  text-decoration: none;
}

.section-subnav-link:hover,
.section-subnav-link:focus-visible {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-main);
}

.section-subnav-link.is-active {
  color: var(--accent-secondary);
  background: rgba(15, 91, 255, 0.06);
}

main.panel-page {
  max-width: none;
  margin: 0;
  padding: 20px 0 0 28px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.account-activation-flow {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.98) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.account-gdpr-flow {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.account-gdpr-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.98) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.account-gdpr-banner--info {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
}

.account-gdpr-banner--warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, #fffbeb 0%, #fffdf5 100%);
}

.account-gdpr-banner--critical {
  border-color: rgba(239, 68, 68, 0.26);
  background: linear-gradient(135deg, #fef2f2 0%, #fff7f7 100%);
}

.account-gdpr-banner-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-gdpr-banner-title {
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
}

.account-gdpr-banner-body {
  max-width: 72ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.account-gdpr-banner-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.account-activation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-activation-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-activation-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.account-activation-title {
  font-size: 1rem;
  line-height: 1.2;
}

.account-activation-body {
  max-width: 72ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.account-activation-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.account-activation-progress {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.account-activation-cta {
  min-width: 120px;
}

.account-activation-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.account-activation-step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.14s ease, transform 0.14s ease, background-color 0.14s ease;
}

.account-activation-step:hover {
  border-color: rgba(15, 91, 255, 0.18);
  transform: translateY(-1px);
}

.account-activation-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(124, 138, 162, 0.55);
  border-right: 1.5px solid rgba(124, 138, 162, 0.55);
  transform: translateY(-50%) rotate(45deg);
}

.account-activation-step:last-child::after {
  display: none;
}

.account-activation-step-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.account-activation-step-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-activation-step-location {
  display: block;
  min-width: 0;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-activation-step-label {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-activation-step-description {
  min-width: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.account-activation-step.is-complete {
  border-color: rgba(15, 155, 115, 0.16);
  background: linear-gradient(180deg, #f2fbf8 0%, #ffffff 100%);
}

.account-activation-step.is-complete .account-activation-step-status {
  border-color: rgba(15, 155, 115, 0.18);
  background: rgba(236, 253, 245, 0.96);
  color: #0f7a5b;
}

.account-activation-step.is-current {
  border-color: rgba(15, 91, 255, 0.18);
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
}

.account-activation-step.is-current .account-activation-step-status {
  border-color: rgba(15, 91, 255, 0.18);
  background: rgba(239, 246, 255, 0.98);
  color: var(--accent-secondary);
}

.account-activation-step.is-upcoming {
  opacity: 0.92;
}

.panel {
  border-radius: 4px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(6px);
}

.table-wrapper {
  border-radius: 4px;
}

.simple-table th,
.simple-table td {
  padding: 11px 12px;
}

.panel-page-header {
  align-items: end;
  margin-bottom: 6px;
}

.panel-page-copy {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:not(.public-login-page-body) .locale-switcher,
body:not(.public-login-page-body) .locale-switcher-link,
.btn-secondary,
.btn-primary,
.icon-btn,
.badge,
.modal-content,
.modal-dialog,
input,
select,
textarea {
  border-radius: 4px;
}

.btn-primary,
.btn-secondary {
  box-shadow: none;
}

@media (max-width: 900px) {
  :where(
    .badge,
    .admin-panel-dialog-badge,
    .billing-status-badge,
    .billing-profile-required-chip,
    .billing-plan-editor-version-chip,
    .jobs-status-pill,
    .jobs-rgpd-history-pill,
    .onboarding-status-pill,
    .onboarding-payment-badge,
    .onboarding-data-request-badge,
    .onboarding-number-badge,
    .number-pool-status-pill,
    .number-pool-form-badge,
    .users-role-badge,
    .clients-legal-request-badge,
    .conv-badge
  ) {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    justify-self: start;
  }
}

@media (max-width: 1024px) {
  .shell-header-inner,
  .shell-workspace {
    max-width: none;
  }

  .shell-workspace {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 14px 0 0;
    border-right: 0;
  }

  main.panel-page {
    padding-left: 0;
  }

  .account-activation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-activation-step::after {
    display: none;
  }

  .section-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-group {
    width: 100%;
  }

  .section-group-row {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .section-subnav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0 0 8px;
    border-left: 0;
  }
}

@media (max-width: 768px) {
  .shell-header-inner {
    padding: 10px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .header-right {
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .account-activation-header {
    flex-direction: column;
  }

  .account-activation-summary {
    align-items: flex-start;
  }

  .account-gdpr-banner {
    flex-direction: column;
  }

  .account-gdpr-banner-link {
    width: 100%;
    white-space: normal;
  }

  .account-activation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .account-activation-step {
    min-height: 132px;
    padding: 12px;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .account-activation-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==============================
   ADMIN CONTROL CONSISTENCY
   ============================== */

:root {
  --admin-control-height: 46px;
  --admin-control-padding-x: 12px;
  --admin-control-border: rgba(148, 163, 184, 0.32);
  --admin-control-border-focus: rgba(15, 91, 255, 0.34);
  --admin-control-bg: #ffffff;
  --admin-control-text: #172033;
  --admin-control-placeholder: #7c8aa2;
}

.panel-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.panel-shell select:not([multiple]),
.login-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.login-shell select:not([multiple]) {
  width: 100%;
  height: var(--admin-control-height) !important;
  min-height: var(--admin-control-height) !important;
  padding: 0 var(--admin-control-padding-x) !important;
  border-radius: 4px !important;
  border: 1px solid var(--admin-control-border) !important;
  background-color: var(--admin-control-bg) !important;
  color: var(--admin-control-text) !important;
  font: inherit;
  font-size: 0.95rem !important;
  line-height: 1.35;
  box-shadow: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.panel-shell textarea,
.login-shell textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px var(--admin-control-padding-x) !important;
  border-radius: 4px !important;
  border: 1px solid var(--admin-control-border) !important;
  background-color: var(--admin-control-bg) !important;
  color: var(--admin-control-text) !important;
  font: inherit;
  font-size: 0.95rem !important;
  line-height: 1.5;
  box-shadow: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.panel-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
.panel-shell textarea::placeholder,
.login-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
.login-shell textarea::placeholder {
  color: var(--admin-control-placeholder);
}

.panel-shell select:not([multiple]),
.login-shell select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7c8aa2 50%),
    linear-gradient(135deg, #7c8aa2 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px !important;
}

.panel-shell select[multiple] {
  min-height: 122px;
  padding: 8px 10px !important;
  border-radius: 4px !important;
  border: 1px solid var(--admin-control-border) !important;
  background: var(--admin-control-bg) !important;
  color: var(--admin-control-text) !important;
  font: inherit;
  font-size: 0.95rem !important;
  line-height: 1.4;
  box-shadow: none !important;
}

.panel-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.panel-shell select:focus,
.panel-shell textarea:focus,
.login-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.login-shell select:focus,
.login-shell textarea:focus {
  outline: none;
  border-color: var(--admin-control-border-focus) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Mobile hardening */
@media (max-width: 900px) {
  main.panel-page {
    padding-inline: clamp(16px, 3.5vw, 22px);
  }

  .shell-workspace {
    gap: 16px;
  }

  .shell-header-inner {
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .section-tabs > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .table-wrapper,
  .panel-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table,
  .panel-table-wrapper table {
    min-width: 720px;
  }
}

@media (max-width: 640px) {
  .shell-header {
    padding-block: 16px;
  }

  .shell-header-inner {
    align-items: stretch;
  }

  .header-right {
    gap: 8px;
  }

  .header-right > * {
    width: 100%;
  }

  main.panel-page {
    padding-inline: 14px;
    padding-block-end: 24px;
  }

  .shell-workspace {
    gap: 12px;
  }

  .section-tabs {
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .table-wrapper,
  .panel-table-wrapper {
    margin-inline: -4px;
    padding-inline-end: 4px;
  }

  :where(.page-actions, .toolbar-actions, .form-actions, .panel-actions, .editor-actions, .dialog-actions, .card-actions, .section-actions, .header-actions, .jobs-rgpd-card-actions, .jobs-rgpd-history-pagination-actions, .jobs-rgpd-history-toolbar) {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  :where(.page-actions, .toolbar-actions, .form-actions, .panel-actions, .editor-actions, .dialog-actions, .card-actions, .section-actions, .header-actions, .jobs-rgpd-card-actions, .jobs-rgpd-history-pagination-actions, .jobs-rgpd-history-toolbar) > * {
    width: 100%;
  }
}

/* Mobile nav hardening */
.shell-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: var(--radius-box);
  background: rgba(255, 255, 255, 0.94);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.shell-nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f2937;
}

.shell-mobile-overlay {
  display: none;
}

@media (max-width: 900px) {
  .shell-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-left {
    align-items: center;
    gap: 12px;
  }

  .shell-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(86vw, 320px);
    padding: 88px 16px 20px;
    border-right: 1px solid rgba(31, 41, 55, 0.08);
    background: rgba(247, 248, 252, 0.98);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
    overflow-y: auto;
    transform: translateX(calc(-100% - 24px));
    transition: transform 180ms ease;
  }

  .section-tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .section-tabs > * {
    white-space: normal;
  }

  .mobile-sidebar-open .shell-sidebar {
    transform: translateX(0);
  }

  .shell-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-sidebar-open .shell-mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sidebar-open {
    overflow: hidden;
  }
}

/* Admin mobile drawer refinement */
.brand-copy-title-mobile {
  display: none;
}

@media (max-width: 900px) {
  .shell-header {
    position: sticky;
    top: 0;
    z-index: 70;
    backdrop-filter: blur(16px);
  }

  .brand-copy h1 {
    margin: 0;
    line-height: 1.1;
  }

  .brand-copy-title {
    display: none;
  }

  .brand-copy-title-mobile {
    display: inline;
  }

  .brand-copy > span {
    display: none;
  }

  .brand-copy h1,
  .brand-copy-title-mobile {
    font-size: 1rem;
    font-weight: 800;
  }

  .header-right {
    position: fixed;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 61;
    width: min(86vw, 320px);
    padding: 16px;
    display: grid;
    gap: 12px;
    align-content: end;
    border-right: 1px solid rgba(31, 41, 55, 0.08);
    background: linear-gradient(180deg, rgba(247, 248, 252, 0.86) 0%, rgba(247, 248, 252, 0.98) 28%);
    box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.08);
    transform: translateX(calc(-100% - 24px));
    transition: transform 180ms ease;
    justify-items: stretch;
  }

  .header-right > * {
    width: 100%;
  }

  .mobile-sidebar-open .header-right {
    transform: translateX(0);
  }

  .shell-sidebar {
    padding-top: 88px;
    padding-bottom: 176px;
  }

  .header-user-info {
    padding: 12px 14px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: var(--radius-box);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.4;
  }

  body:not(.public-login-page-body) .locale-switcher {
    justify-content: center;
  }

  body:not(.public-login-page-body) .locale-switcher-link {
    flex: 1 1 0;
    justify-content: center;
  }

  #logout-btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 640px) {
  .shell-header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-left {
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy h1 {
    white-space: nowrap;
  }

  .shell-sidebar,
  .header-right {
    width: min(92vw, 320px);
  }
}

/* Admin mobile drawer fix */
.shell-sidebar-mobile-controls {
  display: none;
}

@media (max-width: 900px) {
  .header-right {
    display: none;
    position: static;
    width: auto;
    padding: 0;
    transform: none;
    background: none;
    box-shadow: none;
    border: 0;
  }

  .mobile-sidebar-open .header-right {
    transform: none;
  }

  .shell-sidebar {
    display: block;
  }

  .shell-sidebar-mobile-controls {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
  }

  .shell-sidebar-user-info {
    margin: 0;
  }

  .shell-sidebar-locale-switcher {
    justify-content: center;
  }

  .shell-sidebar-logout-btn {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: var(--radius-box);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-weight: 700;
  }
}

/* Admin mobile layering fix */
.shell-sidebar-mobile-brand {
  display: none;
}

.shell-sidebar-mobile-close {
  display: none;
}

@media (max-width: 900px) {
  .shell-header {
    z-index: 40;
  }

  .shell-sidebar {
    z-index: 90;
    width: min(92vw, 340px);
    padding-top: 20px;
    padding-bottom: 176px;
  }

  .shell-mobile-overlay {
    z-index: 85;
  }

  .shell-sidebar-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    align-self: start;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  }

  .shell-sidebar-mobile-brand .brand-badge {
    flex: 0 0 auto;
  }

  .shell-sidebar-mobile-brand .shell-brand-wordmark {
    height: 28px;
    max-width: 144px;
  }

  .shell-sidebar-mobile-brand-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .shell-sidebar-mobile-brand-copy strong {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.1;
  }

  .shell-sidebar-mobile-brand-copy span {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .shell-sidebar-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: var(--radius-box);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .shell-sidebar-mobile-close:hover,
  .shell-sidebar-mobile-close:focus-visible {
    background: #ffffff;
    border-color: rgba(15, 91, 255, 0.2);
    color: var(--accent-secondary);
  }

  .mobile-sidebar-open .shell-header {
    opacity: 0;
    pointer-events: none;
  }

  .section-tabs {
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .shell-sidebar {
    width: 100vw;
    max-width: none;
    border-right: 0;
  }
}

/* Admin mobile z-index correction */
@media (max-width: 900px) {
  .shell-header {
    z-index: 20;
  }

  .shell-mobile-overlay {
    z-index: 600;
  }

  .shell-sidebar {
    z-index: 650;
  }

  .shell-sidebar-mobile-brand,
  .section-tabs,
  .shell-sidebar-mobile-controls {
    position: relative;
    z-index: 1;
  }
}

/* Admin mobile hard override */
@media (max-width: 900px) {
  .shell-workspace {
    z-index: auto !important;
  }

  .mobile-sidebar-open .shell-header {
    display: none !important;
  }

  .mobile-sidebar-open .shell-sidebar {
    top: 0;
    height: 100vh;
  }
}

/* Mobile table system */
@media (max-width: 760px) {
  .mobile-table-wrapper--cards,
  .mobile-table-wrapper--timeline {
    overflow: visible;
  }

  .table-wrapper.mobile-table-wrapper--cards table,
  .table-wrapper.mobile-table-wrapper--timeline table,
  .panel-table-wrapper.mobile-table-wrapper--cards table,
  .panel-table-wrapper.mobile-table-wrapper--timeline table,
  .users-table[data-mobile-layout="cards"] {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
  }

  table[data-mobile-layout="cards"],
  table[data-mobile-layout="timeline"] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  table[data-mobile-layout="cards"] thead,
  table[data-mobile-layout="timeline"] thead {
    display: none;
  }

  table[data-mobile-layout="cards"] tbody,
  table[data-mobile-layout="timeline"] tbody {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  table[data-mobile-layout="cards"] tr,
  table[data-mobile-layout="timeline"] tr {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(24, 33, 43, 0.12);
    border-radius: var(--radius-box);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  table[data-mobile-layout="cards"] td,
  table[data-mobile-layout="timeline"] td {
    display: grid;
    grid-template-columns: minmax(92px, 116px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
  }

  table[data-mobile-layout="cards"] td::before,
  table[data-mobile-layout="timeline"] td::before {
    content: attr(data-label);
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  table[data-mobile-layout="cards"] td[data-mobile-colspan="true"],
  table[data-mobile-layout="timeline"] td[data-mobile-colspan="true"] {
    grid-template-columns: 1fr;
  }

  table[data-mobile-layout="cards"] td[data-mobile-colspan="true"]::before,
  table[data-mobile-layout="timeline"] td[data-mobile-colspan="true"]::before {
    content: none;
  }

  table[data-mobile-layout="cards"] td:last-child,
  table[data-mobile-layout="timeline"] td:last-child {
    grid-template-columns: 1fr;
  }

  table[data-mobile-layout="cards"] td:last-child::before,
  table[data-mobile-layout="timeline"] td:last-child::before {
    margin-bottom: 2px;
  }

  table[data-mobile-layout="cards"] td:last-child :is(button, a, .btn-primary, .btn-secondary),
  table[data-mobile-layout="timeline"] td:last-child :is(button, a, .btn-primary, .btn-secondary) {
    width: 100%;
  }

  table[data-mobile-layout="cards"] td:last-child > :is(div, span),
  table[data-mobile-layout="timeline"] td:last-child > :is(div, span) {
    width: 100%;
  }

  table[data-mobile-layout="timeline"] tr {
    position: relative;
    padding-left: 18px;
    border-left: 4px solid rgba(15, 91, 255, 0.5);
  }

  table[data-mobile-layout="timeline"] td:first-child {
    grid-template-columns: 1fr;
  }

  table[data-mobile-layout="timeline"] td:first-child::before {
    content: none;
  }

  table[data-mobile-layout="timeline"] td:first-child strong,
  table[data-mobile-layout="timeline"] td:first-child span:first-child {
    color: #1f2937;
    font-weight: 800;
  }

  table[data-mobile-layout="scroll"] {
    min-width: 720px;
  }
}

@media (max-width: 760px) {
  table[data-mobile-layout="cards"] tbody,
  table[data-mobile-layout="timeline"] tbody {
    gap: 10px;
  }

  table[data-mobile-layout="cards"] tr,
  table[data-mobile-layout="timeline"] tr {
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-box);
  }

  table[data-mobile-layout="cards"] td,
  table[data-mobile-layout="timeline"] td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  table[data-mobile-layout="cards"] td::before,
  table[data-mobile-layout="timeline"] td::before {
    margin-bottom: 0;
  }
}
