* {
  box-sizing: border-box;
}

:root {
  --bg: #151912;
  --bg-elevated: #1f261b;
  --panel: #243026;
  --panel-soft: #2a372d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(183, 100, 52, 0.45);
  --text: #f5f2eb;
  --text-soft: #c9c3b8;
  --text-muted: #938c80;
  --amber: #b76434;
  --amber-strong: #cf733d;
  --green: #3f8f5c;
  --red: #b84c4c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(183, 100, 52, 0.14), transparent 26%),
    linear-gradient(145deg, #151912 0%, #1b2217 45%, #202a21 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.portal-mobile-nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.portal-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.portal-login-card {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: rgba(27, 33, 24, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.portal-login-brand {
  padding: 48px;
  background:
    linear-gradient(160deg, rgba(20, 24, 18, 0.55), rgba(20, 24, 18, 0.88)),
    radial-gradient(circle at top right, rgba(183, 100, 52, 0.18), transparent 30%);
  border-right: 1px solid var(--line);
}

.portal-login-form {
  padding: 48px;
}

.brand-chip,
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(183, 100, 52, 0.12);
  color: #f3c8ab;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-title {
  margin: 18px 0 10px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.portal-copy,
.text-soft {
  color: var(--text-soft);
  line-height: 1.6;
}

.title-with-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(183, 100, 52, 0.4);
  border-radius: 999px;
  background: rgba(183, 100, 52, 0.12);
  color: #f3c8ab;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: 140ms ease;
}

.help-badge:hover,
.help-badge:focus-visible {
  border-color: rgba(183, 100, 52, 0.7);
  background: rgba(183, 100, 52, 0.2);
  outline: none;
}

.help-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.help-modal-shell.is-visible {
  display: flex;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.help-modal-card {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(27, 33, 24, 0.98);
  box-shadow: var(--shadow);
  padding: 22px;
}

.help-modal-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.help-modal-copy {
  color: var(--text-soft);
  line-height: 1.7;
  white-space: pre-line;
}

.help-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.feature-stack,
.quick-links {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.feature-card,
.summary-card,
.surface-card,
.empty-state,
.auth-note,
.helper-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-card,
.summary-card,
.helper-card,
.surface-card,
.empty-state,
.auth-note {
  padding: 18px 20px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.portal-sidebar-backdrop,
.mobile-shell-bar {
  display: none;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(16, 20, 15, 0.88);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  overflow-x: hidden;
}

.portal-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.78) rgba(255, 255, 255, 0.04);
}

.portal-sidebar::-webkit-scrollbar {
  width: 9px;
}

.portal-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.portal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.78);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.04);
}

.portal-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.9);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill.is-success {
  color: #bfe8cc;
  border-color: rgba(63, 143, 92, 0.5);
  background: rgba(63, 143, 92, 0.16);
}

.status-pill.is-warning {
  color: #ffd7bb;
  border-color: rgba(183, 100, 52, 0.55);
  background: rgba(183, 100, 52, 0.16);
}

.status-pill.is-muted {
  color: var(--text-soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.training-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.training-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-strong));
  transition: width 180ms ease;
}

.training-slide-card,
.quiz-question-card,
.quiz-result-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.training-slide-card {
  margin-top: 18px;
  padding: 22px;
}

.training-slide-eyebrow,
.quiz-question-number {
  color: #f3c8ab;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.training-slide-title,
.quiz-question-title {
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.training-slide-body {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.training-slide-points {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text);
  display: grid;
  gap: 10px;
}

.training-slide-callout,
.quiz-explanation {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(183, 100, 52, 0.1);
  border: 1px solid rgba(183, 100, 52, 0.24);
  color: #f3ded0;
  line-height: 1.6;
}

.quiz-stack,
.quiz-results-grid {
  display: grid;
  gap: 16px;
}

.quiz-question-card,
.quiz-result-card {
  padding: 20px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.quiz-option input {
  margin-top: 2px;
}

.quiz-result-card.is-correct {
  border-color: rgba(63, 143, 92, 0.38);
  background: rgba(63, 143, 92, 0.08);
}

.quiz-result-card.is-incorrect {
  border-color: rgba(183, 100, 52, 0.4);
  background: rgba(183, 100, 52, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.sidebar-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.sidebar-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.sidebar-brand-subtitle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sidebar-section {
  margin-top: 26px;
}

.sidebar-heading {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.sidebar-link,
.sidebar-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  transition: 140ms ease;
}

.sidebar-link:hover,
.sidebar-button:hover,
.sidebar-link.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.is-active {
  border-color: rgba(183, 100, 52, 0.35);
  box-shadow: inset 0 0 0 1px rgba(183, 100, 52, 0.16);
}

.sidebar-meta {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.portal-content {
  padding: 28px;
}

.content-shell {
  display: grid;
  gap: 22px;
}

.topbar,
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin-top: 8px;
  color: var(--text-soft);
}

.status-banner {
  display: none;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.status-banner.is-visible {
  display: block;
}

.status-banner[data-kind="success"] {
  border-color: rgba(63, 143, 92, 0.45);
  background: rgba(63, 143, 92, 0.16);
}

.status-banner[data-kind="error"] {
  border-color: rgba(184, 76, 76, 0.45);
  background: rgba(184, 76, 76, 0.14);
}

.status-banner[data-kind="info"] {
  border-color: rgba(183, 100, 52, 0.4);
  background: rgba(183, 100, 52, 0.12);
}

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

.summary-card {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  margin: 16px 0 0;
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.summary-note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.section-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.section-subtitle {
  margin-top: 6px;
  color: var(--text-soft);
}

.surface-card {
  overflow: hidden;
}

.surface-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 0;
}

.surface-card-body {
  padding: 20px 22px 22px;
}

.erp-collapsible {
  padding: 0;
}

.erp-collapsible-summary {
  margin: 0;
  padding: 20px 22px 0;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.erp-collapsible-summary::-webkit-details-marker {
  display: none;
}

.erp-collapsible-summary::after {
  content: '+';
  margin-left: auto;
  align-self: center;
  color: var(--text-soft);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.erp-collapsible[open] .erp-collapsible-summary::after {
  content: '−';
}

.erp-collapsible .surface-card-body {
  padding-top: 18px;
}

.tab-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  cursor: pointer;
  transition: 140ms ease;
}

.tab-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.tab-button.is-active {
  background: rgba(183, 100, 52, 0.16);
  border-color: var(--line-strong);
  color: #f7d9c4;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.action-row,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 140ms ease;
}

.button {
  color: white;
  background: var(--amber);
}

.button:hover {
  background: var(--amber-strong);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--text-soft);
  border-color: transparent;
  background: transparent;
}

.button.is-small,
.button-secondary.is-small,
.button-ghost.is-small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}

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

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

.field-block.is-full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 10, 0.42);
  color: var(--text);
}

.field-textarea {
  min-height: 110px;
  resize: vertical;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-muted);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: rgba(183, 100, 52, 0.62);
  box-shadow: 0 0 0 4px rgba(183, 100, 52, 0.12);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.table-shell {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  position: relative;
}

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

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

.data-table thead th {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.data-table .sticky-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--bg-elevated);
  box-shadow: -12px 0 20px rgba(0, 0, 0, 0.18);
}

.data-table thead .sticky-actions {
  z-index: 3;
  background: #293127;
}

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

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.row-title {
  font-weight: 800;
}

.row-subtitle {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.pill.is-active {
  color: #d6ffe4;
  border-color: rgba(63, 143, 92, 0.4);
  background: rgba(63, 143, 92, 0.16);
}

.pill.is-inactive {
  color: #ffd0d0;
  border-color: rgba(184, 76, 76, 0.4);
  background: rgba(184, 76, 76, 0.16);
}

.pill.is-soft {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.stat-list,
.activity-list {
  display: grid;
  gap: 12px;
}

.stat-row,
.activity-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-row strong,
.activity-row strong {
  display: block;
  margin-bottom: 4px;
}

.text-muted {
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  color: var(--text-soft);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hidden-file {
  display: none;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(90vh, 860px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(27, 33, 24, 0.97);
  box-shadow: var(--shadow);
}

.modal-card-wide {
  width: min(100%, 980px);
}

.map-picker-canvas {
  width: 100%;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.map-picker-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 1120px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-shell-bar {
    position: sticky;
    top: 0;
    z-index: 32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(16, 20, 15, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
  }

  .mobile-shell-bar-text {
    min-width: 0;
  }

  .mobile-shell-bar-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-shell-bar-title {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 48px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.09);
  }

  .portal-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(4px);
    transition: opacity 160ms ease;
  }

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: min(86vw, 360px);
    min-height: 100dvh;
    max-height: 100dvh;
    padding-top: 22px;
    padding-bottom: 22px;
    transform: translateX(-104%);
    transition: transform 180ms ease;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  }

  .portal-grid.is-sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .portal-grid.is-sidebar-open .portal-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-content {
    min-width: 0;
  }

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

  .portal-login-brand {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .portal-content,
  .portal-login-brand,
  .portal-login-form {
    padding: 22px;
  }

  .portal-sidebar {
    padding: 20px 18px 22px;
  }

  .mobile-shell-bar {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .topbar .helper-card {
    width: 100%;
  }

  .summary-grid,
  .field-grid,
  .controls-grid,
  .map-picker-search-row {
    grid-template-columns: 1fr;
  }

  .surface-card-head {
    padding: 18px 18px 0;
  }

  .surface-card-body {
    padding: 18px;
  }

  .summary-card {
    min-height: 0;
  }

  .summary-value {
    font-size: 2rem;
  }

  .tab-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tab-strip::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .action-row .button,
  .action-row .button-secondary,
  .action-row .button-ghost,
  .inline-actions .button,
  .inline-actions .button-secondary,
  .inline-actions .button-ghost {
    width: 100%;
  }

  .stat-row,
  .activity-row {
    flex-direction: column;
    align-items: stretch;
  }

  .table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    padding: 13px 14px;
  }

  .map-picker-canvas {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .portal-content,
  .portal-login-brand,
  .portal-login-form {
    padding: 16px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .helper-card,
  .summary-card,
  .surface-card,
  .empty-state,
  .auth-note {
    border-radius: 20px;
  }

  .button,
  .button-secondary,
  .button-ghost {
    min-height: 48px;
  }
}
