@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");

:root {
  color-scheme: light;
  --navy: #172a3a;
  --navy-soft: #526476;
  --teal: #167c74;
  --teal-dark: #0e625c;
  --canvas: #f6f8fb;
  --surface: #fff;
  --line: #e6ebf0;
  --muted: #718094;
  --gold: #d99a32;
  --shadow: 0 5px 18px rgba(27, 47, 67, .06);
  --surface-soft: #fbfcfd;
  --surface-hover: #f7fbfa;
  --table-line: #eef2f5;
  --detail-line: #edf1f4;
  --bs-body-color: var(--navy);
  --bs-body-color-rgb: 23, 42, 58;
  --bs-body-bg: var(--canvas);
  --bs-body-bg-rgb: 246, 248, 251;
  --bs-emphasis-color: var(--navy);
  --bs-emphasis-color-rgb: 23, 42, 58;
  --bs-secondary-color: var(--muted);
  --bs-secondary-color-rgb: 113, 128, 148;
  --bs-tertiary-color: #8795a5;
  --bs-tertiary-color-rgb: 135, 149, 165;
  --bs-heading-color: var(--navy);
  --bs-link-color: var(--teal-dark);
  --bs-link-hover-color: var(--teal);
  --bs-border-color: var(--line);
  --bs-dark-rgb: 23, 42, 58;
}

[data-theme="dark"] {
  color-scheme: dark;
  --navy: #edf5f7;
  --navy-soft: #b7c8d2;
  --teal: #35b8aa;
  --teal-dark: #79ddd1;
  --canvas: #111a22;
  --surface: #192630;
  --line: #2b3c48;
  --muted: #9eb1bd;
  --gold: #e8b65b;
  --shadow: 0 8px 24px rgba(0, 0, 0, .2);
  --surface-soft: #1d2c37;
  --surface-hover: #203b3d;
  --table-line: #2b3c48;
  --detail-line: #2b3c48;
  --bs-body-color: #edf5f7;
  --bs-body-color-rgb: 237, 245, 247;
  --bs-body-bg: #111a22;
  --bs-body-bg-rgb: 17, 26, 34;
  --bs-emphasis-color: #f7fbfc;
  --bs-emphasis-color-rgb: 247, 251, 252;
  --bs-secondary-color: #aab9c3;
  --bs-secondary-color-rgb: 170, 185, 195;
  --bs-tertiary-color: #8ea2ae;
  --bs-tertiary-color-rgb: 142, 162, 174;
  --bs-heading-color: #edf5f7;
  --bs-link-color: #79ddd1;
  --bs-link-hover-color: #a0eee2;
  --bs-border-color: #2b3c48;
  --bs-dark-rgb: 237, 245, 247;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black,
[data-theme="dark"] .text-body,
[data-theme="dark"] .text-body-emphasis,
[data-theme="dark"] .text-reset {
  color: #edf5f7 !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
  color: #aab9c3 !important;
}

[data-theme="dark"] .text-success { color: #7ee0ad !important; }
[data-theme="dark"] .text-primary { color: #8fc1ff !important; }
[data-theme="dark"] .text-info { color: #7fd8ec !important; }
[data-theme="dark"] .text-warning { color: #ffd479 !important; }
[data-theme="dark"] .text-danger { color: #ff9d9d !important; }

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.dashboard-anchor {
  scroll-margin-top: 5rem;
}

a {
  color: var(--teal-dark);
}

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

[data-theme="dark"] .sidebar-nav {
  scrollbar-color: #425765 var(--surface);
}

[data-theme="dark"] .account-logout,
[data-theme="dark"] .search-box,
[data-theme="dark"] .quick-action,
[data-theme="dark"] .record-count,
[data-theme="dark"] .settings-status {
  background: var(--surface-soft);
}

[data-theme="dark"] .menu-group>summary:hover,
[data-theme="dark"] .menu-group[open]>summary {
  background: #193d3b;
}

[data-theme="dark"] .submenu a:hover,
[data-theme="dark"] .submenu a:focus-visible {
  background: #203b3d;
}

[data-theme="dark"] .list-table thead th {
  background: var(--surface-soft);
}

[data-theme="dark"] .table {
  --bs-table-color: var(--navy-soft);
  --bs-table-bg: var(--surface);
  --bs-table-border-color: var(--table-line);
}

[data-theme="dark"] .table-responsive {
  border-color: #3a5260;
  background: #17232c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

[data-theme="dark"] .table-responsive .table thead {
  background: linear-gradient(110deg, #203b47, #1d333e);
}

[data-theme="dark"] .table-responsive .table thead th {
  color: #b9d1d8;
  border-bottom-color: #3d5966;
}

[data-theme="dark"] .table-responsive .table tbody tr:nth-child(even) {
  background: #1b2b35;
}

[data-theme="dark"] .table-responsive .table tbody tr:hover {
  background: #21494a;
}

[data-theme="dark"] .table-responsive .table td {
  color: #d3e0e5;
  border-bottom-color: #2d424e;
}

[data-theme="dark"] .table-responsive .table td:first-child {
  color: #f0f7f8;
  font-weight: 650;
}

[data-theme="dark"] .table-responsive .badge {
  border: 1px solid #ffffff20;
}

[data-theme="dark"] .list-table tbody tr:hover {
  background: var(--surface-hover);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  color: var(--navy);
  border-color: var(--line);
  background-color: var(--surface-soft);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .search-box input::placeholder {
  color: #8095a2;
}

[data-theme="dark"] .asset-upload {
  border-color: #3b5361;
  background: var(--surface-soft);
}

[data-theme="dark"] .asset-preview {
  background: #253641;
}

[data-theme="dark"] .alert-success {
  color: #bcebd7;
  border-color: #28614e;
  background: #173a32;
}

[data-theme="dark"] .sidebar-caption,
[data-theme="dark"] .sidebar-nav,
[data-theme="dark"] .sidebar-foot,
[data-theme="dark"] .menu-group>summary,
[data-theme="dark"] .submenu a {
  color: #b8c8d2;
}

[data-theme="dark"] .menu-group>summary:hover,
[data-theme="dark"] .menu-group[open]>summary {
  color: #83e1d3;
  background: #1d3b3d;
}

[data-theme="dark"] .submenu a:hover,
[data-theme="dark"] .submenu a:focus-visible {
  color: #9af0e2;
  background: #203d40;
}

[data-theme="dark"] .account-bar,
[data-theme="dark"] .mobile-topbar,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .list-panel,
[data-theme="dark"] .form-card,
[data-theme="dark"] .detail-card {
  background: var(--surface);
}

[data-theme="dark"] .account-logout,
[data-theme="dark"] .row-action {
  color: #c4d2da;
  border-color: #3a4f5c;
  background: #202f39;
}

[data-theme="dark"] .account-logout:hover,
[data-theme="dark"] .row-action:hover {
  color: #a0eee2;
  border-color: #4b9e96;
  background: #1e4445;
}

[data-theme="dark"] .row-action.delete:hover {
  color: #ffb4b4;
  border-color: #8c4c58;
  background: #482c36;
}

[data-theme="dark"] .role-pill,
[data-theme="dark"] .settings-status.is-active {
  color: #9af0e2;
  border-color: #347b75;
  background: #1c4140;
}

[data-theme="dark"] .quick-action {
  color: #e7f0f3;
  border-color: #334955;
  background: #202f39;
}

[data-theme="dark"] .quick-action:hover {
  color: #fff;
  border-color: #4b9e96;
  background: #243f43;
}

[data-theme="dark"] .quick-action small,
[data-theme="dark"] .empty,
[data-theme="dark"] .form-text {
  color: #9eb2be !important;
}

[data-theme="dark"] .settings-card .form-label,
[data-theme="dark"] .form-card .form-label {
  color: #c1d0d7;
}

[data-theme="dark"] .settings-card .form-control,
[data-theme="dark"] .settings-card .form-select,
[data-theme="dark"] .form-card .form-control,
[data-theme="dark"] .form-card .form-select {
  color: #e7f0f3;
  border-color: #3a4f5c;
  background: #202f39;
}

[data-theme="dark"] .settings-card .form-control:focus,
[data-theme="dark"] .settings-card .form-select:focus,
[data-theme="dark"] .form-card .form-control:focus,
[data-theme="dark"] .form-card .form-select:focus {
  border-color: #58bdb2;
  background: #243640;
}

[data-theme="dark"] .settings-icon.teal,
[data-theme="dark"] .settings-icon.blue,
[data-theme="dark"] .settings-icon.gold,
[data-theme="dark"] .settings-icon.purple,
[data-theme="dark"] .form-plus {
  color: #9af0e2;
  background: #1d4142;
}

[data-theme="dark"] .asset-upload {
  background: #202f39;
}

[data-theme="dark"] .search-box {
  border-color: #3a4f5c;
  background: #202f39;
}

[data-theme="dark"] .search-box input {
  color: #edf5f7;
}

[data-theme="dark"] .search-box:focus-within {
  border-color: #58bdb2;
  background: #243640;
}

[data-theme="dark"] .btn-outline-secondary {
  color: #c8d5db;
  border-color: #526875;
}

[data-theme="dark"] .btn-outline-secondary:hover {
  color: #fff;
  border-color: #79ddd1;
  background: #244b4b;
}

[data-theme="dark"] .btn-primary {
  color: #102b2b;
  background: #63d1c2;
  border-color: #63d1c2;
}

[data-theme="dark"] .btn-primary:hover {
  color: #0c2024;
  background: #88e5d8;
  border-color: #88e5d8;
}

[data-theme="dark"] .badge.text-bg-light {
  color: #d9e8ec !important;
  background: #2b414d !important;
}

[data-theme="dark"] .badge.text-bg-success {
  color: #c8f5db !important;
  background: #1e6048 !important;
}

[data-theme="dark"] .badge.text-bg-warning {
  color: #ffe8ad !important;
  background: #70511f !important;
}

[data-theme="dark"] .badge.text-bg-secondary {
  color: #d2dce1 !important;
  background: #455660 !important;
}

[data-theme="dark"] .table-hover>tbody>tr:hover>* {
  --bs-table-accent-bg: #21494a;
  color: #f0f7f8;
}

[data-theme="dark"] code {
  color: #f0c77b;
  background: #302c25;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  width: 252px;
  height: 100vh;
  min-height: 0;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 8px 24px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--teal);
  font-size: 18px;
  font-weight: 850;
}
.brand-logo { overflow: hidden; background: var(--surface-soft); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.sidebar-caption {
  padding: 0 11px 9px;
  color: #9aa8b6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 1px 10px;
  scrollbar-color: #ccd5de #fff;
  scrollbar-width: thin;
}

.menu-group {
  margin: 3px 0;
}

.menu-group>summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #536477;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  transition: background .15s ease, color .15s ease;
}

.menu-group>summary::-webkit-details-marker {
  display: none;
}

.menu-group>summary>span {
  min-width: 0;
  flex: 1;
}

.menu-group>summary::after {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin: -4px 3px 0 0;
  border-right: 1px solid #9aa8b6;
  border-bottom: 1px solid #9aa8b6;
  content: "";
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.menu-group[open]>summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.menu-group>summary:hover,
.menu-group[open]>summary {
  color: var(--teal-dark);
  background: #eaf5f3;
}

.menu-group[open]>summary {
  box-shadow: inset 3px 0 0 var(--teal);
}

.submenu {
  display: grid;
  gap: 1px;
  padding: 4px 4px 7px 34px;
}

.submenu a,
.submenu .unavailable {
  display: block;
  min-height: 29px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #738295;
  font-size: 11px;
  line-height: 1.35;
  text-decoration: none;
}

.submenu a:hover,
.submenu a:focus-visible {
  color: var(--teal-dark);
  background: #f0f7f6;
}

.submenu .unavailable {
  color: #a4afbb;
  cursor: not-allowed;
}

.submenu .unavailable::after {
  float: right;
  margin-left: 5px;
  color: #a4afbb;
  content: "soon";
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 13px 10px 3px;
  border-top: 1px solid var(--line);
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-foot small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #36a979;
  box-shadow: 0 0 0 4px #36a9791c;
}

.workspace {
  min-width: 0;
}

.account-bar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.account-context,
.account-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.topbar-title {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.topbar-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.topbar-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #36a979;
}

.user-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.account-name {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.role-pill {
  margin-left: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eaf5f3;
  font-size: 9px;
  font-weight: 800;
}

.theme-toggle {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-soft);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
  outline: 0;
}

.theme-toggle-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 14px;
}

.account-bar form {
  margin: 0;
}

.account-logout {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--navy-soft);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.account-logout:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.main-content {
  width: 100%;
  max-width: 1680px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px);
}

.mobile-topbar,
.sidebar-backdrop {
  display: none;
}

.eyebrow {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.display-6 {
  color: var(--navy);
  font-size: clamp(1.7rem, 2.3vw, 2.35rem);
  line-height: 1.15;
}

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

.panel,
.card {
  border: 1px solid var(--line) !important;
  background: var(--surface);
  box-shadow: var(--shadow) !important;
}

.panel {
  min-width: 0;
}

.card {
  border-radius: 12px;
}

.sticky-form {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.detail-item {
  border-bottom: 1px solid var(--detail-line);
}

.detail-item dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.detail-item dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-card {
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  content: "";
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(27, 47, 67, .035);
  scrollbar-color: #b8c7d1 transparent;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #b8c7d1;
}

.table {
  width: 100%;
  margin-bottom: 0;
}

.table th {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  white-space: nowrap;
}

.table td {
  color: var(--navy-soft);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

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

.row-link {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.form-page-panel {
  width: 100%;
  max-width: 760px;
}

.confirm-panel {
  width: 100%;
  max-width: 620px;
}

.form-page-panel input:not([type=checkbox]):not([type=radio]),
.form-page-panel select,
.form-page-panel textarea,
.sticky-form input:not([type=checkbox]):not([type=radio]),
.sticky-form select,
.sticky-form textarea {
  width: 100%;
  max-width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: #6bb2a9;
  box-shadow: 0 0 0 .2rem #167c7420;
}

.btn {
  border-radius: 7px;
  font-weight: 700;
}

.btn-primary {
  border-color: var(--teal);
  background: var(--teal);
}

.btn-primary:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  background: #23dde1;
  box-shadow: 0 16px 30px rgba(23, 42, 58, .14);
}

.dashboard-hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  box-shadow: 0 0 0 30px #ffffff08, 0 0 0 60px #ffffff04;
  content: "";
}

.dashboard-hero>* {
  position: relative;
  z-index: 1;
}

.dashboard-hero h1 {
  max-width: 700px;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 620px;
  color: #083f4a;
  font-size: 14px;
}

.hero-date {
  display: grid;
  gap: 2px;
  min-width: 165px;
  padding: 12px 15px;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  color: #fff;
  background: #ffffff0d;
  font-size: 12px;
}

.hero-date-label {
  color: rgb(26, 25, 25);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(23, 42, 58, .12) !important;
}

.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--metric-color);
  content: "";
}

.metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 8px;
  color: var(--metric-color);
  background: var(--metric-bg);
  font-size: 16px;
  font-weight: 800;
}

.metric-sales {
  --metric-color: #167c74;
  --metric-bg: #e5f5f2;
}

.metric-warning {
  --metric-color: #c58a27;
  --metric-bg: #fff4dc;
}

.metric-purple {
  --metric-color: #8062bf;
  --metric-bg: #f0ebfb;
}

.metric-blue {
  --metric-color: #357bc0;
  --metric-bg: #e8f1fb;
}

.metric-green {
  --metric-color: #3c9b6b;
  --metric-bg: #e6f5ec;
}

.metric-orange {
  --metric-color: #d27538;
  --metric-bg: #fff0e5;
}

.quick-action {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 42, 58, .035);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.quick-action:hover {
  border-color: #9acbc4;
  color: var(--navy);
  box-shadow: 0 9px 20px rgba(23, 42, 58, .09);
  transform: translateY(-2px);
}

.quick-action>span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action strong {
  font-size: 12px;
}

.quick-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.quick-action b {
  color: var(--muted);
  font-size: 16px;
}

.quick-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 800;
}

.quick-action-icon.teal {
  color: var(--teal-dark);
  background: #e4f5f2;
}

.quick-action-icon.blue {
  color: #357bc0;
  background: #e8f1fb;
}

.quick-action-icon.gold {
  color: #b17a1d;
  background: #fff3da;
}

.quick-action-icon.purple {
  color: #8062bf;
  background: #f0ebfb;
}

.record-count {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.record-count span {
  color: var(--muted);
  font-weight: 500;
}

.settings-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.settings-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4afbb;
}

.settings-status.is-active {
  color: var(--teal-dark);
  background: #eaf5f3;
  border-color: #b8ddd7;
}

.settings-status.is-active i {
  background: #36a979;
  box-shadow: 0 0 0 3px #36a9791c;
}

.settings-side {
  position: sticky;
  top: 18px;
}

.settings-card {
  overflow: hidden;
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 22px;
}

.settings-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 9px;
  font-weight: 800;
}

.settings-icon.teal {
  color: var(--teal-dark);
  background: #e5f5f2;
}

.settings-icon.blue {
  color: #357bc0;
  background: #e8f1fb;
}

.settings-icon.gold {
  color: #aa751e;
  background: #fff3da;
}

.settings-icon.purple {
  color: #8062bf;
  background: #f0ebfb;
}

.settings-card .form-label {
  color: #536477;
  font-size: 11px;
  font-weight: 750;
}

.settings-card .form-control,
.settings-card .form-select {
  min-height: 41px;
  border-color: #dce5eb;
  border-radius: 7px;
  font-size: 12px;
}

.settings-card textarea.form-control {
  min-height: 90px;
}

.settings-check {
  display: flex;
  align-items: center;
  min-height: 41px;
}

.settings-check label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.settings-check .form-check-input {
  margin: 0;
}

.asset-upload {
  padding: 12px;
  border: 1px dashed #cbd9e1;
  border-radius: 10px;
  background: #fbfcfd;
}

.asset-upload .form-control {
  min-height: auto;
  margin-top: 5px;
}

.asset-preview {
  display: grid;
  width: 100%;
  height: 92px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #9aa8b6;
  background: #f0f4f7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stamp-preview {
  height: 78px;
}

.list-panel {
  background: #fff;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  min-width: min(100%, 310px);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.search-box>span {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-height: 38px;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: 12px;
}

.search-box:focus-within {
  border-color: #75b8b0;
  box-shadow: 0 0 0 3px #167c7414;
  background: #fff;
}

.toolbar-add {
  white-space: nowrap;
}

.list-table {
  border: 0;
}

.list-table thead th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.list-table tbody tr {
  transition: background .15s ease, box-shadow .15s ease;
}

.list-table tbody tr:hover {
  position: relative;
  background: var(--surface-hover);
  box-shadow: inset 3px 0 0 var(--teal);
}

.list-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--table-line);
  color: var(--navy-soft);
  font-size: 13px;
}

.list-table td.record-primary {
  color: var(--navy);
  font-weight: 750;
}

.record-mobile-name {
  display: none;
}

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

.row-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy-soft);
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.row-action:hover {
  border-color: #91c9c1;
  color: var(--teal-dark);
  background: #f1faf8;
}

.row-action.delete:hover {
  border-color: #edb5b5;
  color: #b34949;
  background: #fff7f7;
}

.no-search-results {
  padding: 34px 12px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.form-card {
  border-top: 3px solid var(--teal) !important;
}

.form-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.form-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.form-plus {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--teal-dark);
  background: #e8f6f3;
  font-size: 19px;
  font-weight: 700;
}

.form-card .form-label {
  color: #536477;
  font-size: 11px;
}

.form-card .form-control,
.form-card .form-select {
  min-height: 40px;
  border-color: #dce5eb;
  border-radius: 7px;
  font-size: 12px;
}

@media (max-width: 1200px) and (min-width: 961px) {
  .app-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .sidebar {
    width: 230px;
  }

  .main-content {
    padding: 28px;
  }
}

@media (max-width: 960px) {
  .app-shell {
    display: block;
    .dashboard-anchor { scroll-margin-top: 7rem; }
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1060;
    width: min(88vw, 320px);
    height: 100dvh;
    padding: 18px 13px 13px;
    box-shadow: 18px 0 48px #071b2440;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .sidebar-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    background: var(--surface);
    font-size: 23px;
    line-height: 1;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #102538a8;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .menu-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .menu-toggle span {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
  }

  .mobile-title {
    flex: 1;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-topbar>a {
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
  }

  .account-bar {
    min-height: 54px;
  }

  .account-context {
    display: none;
  }

  .main-content {
    padding: 24px clamp(16px, 4vw, 32px);
  }

  .sticky-form {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 575.98px) {
  .main-content {
    padding: 19px 13px 28px;
  }

  .display-6 {
    font-size: 1.65rem;
  }

  .panel.rounded-4 {
    border-radius: 11px !important;
  }

  .table-responsive {
    margin-inline: -.15rem;
  }

  .table th,
  .table td {
    padding: .55rem .5rem;
  }

  .detail-panel {
    padding: 1rem !important;
  }

  .form-page-panel,
  .confirm-panel {
    max-width: none;
  }

  .form-page-panel .btn {
    width: 100%;
  }

  .account-bar {
    justify-content: flex-end;
    padding-inline: 13px;
  }

  .role-pill {
    display: none;
  }

  .dashboard-hero {
    padding: 1.25rem !important;
  }

  .dashboard-hero h1 {
    font-size: 1.55rem;
  }

  .hero-date {
    width: 100%;
  }

  .record-count span {
    display: none;
  }

  .settings-side {
    position: static;
  }

  .settings-status {
    width: 100%;
    justify-content: center;
  }

  .settings-card {
    padding: 1.1rem !important;
  }

  .list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .toolbar-add {
    width: 100%;
  }

  .list-table thead {
    display: none;
  }

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

  .list-table tbody tr {
    position: relative;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
  }

  .list-table tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--teal);
  }

  .list-table td {
    display: none;
    padding: 2px 0;
    border: 0;
    white-space: normal;
  }

  .list-table td.record-primary,
  .list-table td:last-child {
    display: block;
  }

  .list-table td.record-primary {
    padding-right: 72px;
    font-size: 13px;
  }

  .record-mobile-name {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
  }

  .list-table td:last-child {
    position: absolute;
    top: 16px;
    right: 10px;
  }

  .row-actions {
    gap: 3px;
  }

  .row-action {
    padding: 4px 6px;
    font-size: 9px;
  }

  .theme-toggle {
    padding-inline: 8px;
  }

  .theme-toggle-label {
    display: none;
  }
}

.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(35, 154, 142, .12), transparent 35%),
    radial-gradient(ellipse at 92% 88%, rgba(218, 163, 75, .12), transparent 32%),
    #f3f6f8;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  width: min(100%, 1120px);
  min-height: min(720px, calc(100svh - 56px));
  overflow: hidden;
  border: 1px solid #e4eaee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 45, 60, .13);
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  color: #f5fbfc;
  background: linear-gradient(145deg, #102d3b 0%, #124b54 56%, #147d73 100%);
}

.login-brand,
.login-mobile-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.15;
  text-decoration: none;
}

.login-brand:hover { color: #fff; }

.login-brand small,
.login-mobile-brand small {
  display: block;
  margin-top: 5px;
  color: #a9c6c9;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .17em;
}

.login-brand > span:last-child,
.login-mobile-brand > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.login-brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border: 1px solid #ffffff38;
  border-radius: 13px;
  color: #103441;
  background: #f0bd68;
  box-shadow: 0 7px 18px #061d2540;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-story-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: auto 0 34px;
  padding-top: 55px;
}

.login-kicker,
.login-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #54d4bd;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-kicker i,
.login-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65dfb9;
  box-shadow: 0 0 0 4px #65dfb920;
}

.login-story-copy h1 {
  max-width: 460px;
  margin: 17px 0 15px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.login-story-copy p {
  max-width: 390px;
  margin: 0;
  color: #c1d6d9;
  font-size: 14px;
  line-height: 1.75;
}

.login-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.login-highlight {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid #ffffff1b;
  border-radius: 11px;
  background: #ffffff0d;
  backdrop-filter: blur(6px);
}

.login-highlight-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  color: #a0f0df;
  background: #ffffff12;
  font-size: 17px;
}

.login-highlight strong,
.login-highlight small { display: block; }
.login-highlight strong { color: #f1f8f9; font-size: 10px; }
.login-highlight small { margin-top: 4px; color: #abc4c8; font-size: 9px; line-height: 1.35; }

.login-story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  color: #a9c6c9;
  font-size: 10px;
  font-weight: 650;
}

.login-status-dot { width: 6px; height: 6px; }

.login-orbit {
  position: absolute;
  right: -180px;
  width: 440px;
  height: 440px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  pointer-events: none;
}

.login-orbit-one { top: 13%; box-shadow: 0 0 0 34px #ffffff08, 0 0 0 70px #ffffff05; }
.login-orbit-two { right: auto; bottom: -310px; left: -180px; width: 380px; height: 380px; }

.login-panel {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(30px, 5vw, 64px);
  background: #fff;
}

.login-panel-inner { width: min(100%, 370px); }
.login-mobile-brand { display: none; }

.login-heading-group { margin-bottom: 30px; }
.login-form-kicker { color: #16877c; font-size: 9px; }
.login-heading-group h2 { margin: 10px 0 7px; color: #172f3c; font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 780; letter-spacing: -.04em; }
.login-heading-group p { margin: 0; color: #748592; font-size: 13px; line-height: 1.6; }

.login-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 0 21px;
  padding: 11px 12px;
  border: 1px solid #f2c8c4;
  border-radius: 9px;
  color: #873d38;
  background: #fff4f2;
}

.login-message>span { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; color: #fff; background: #bb5148; font-size: 12px; font-weight: 800; }
.login-message strong, .login-message small { display: block; }
.login-message strong { font-size: 11px; }
.login-message small { margin-top: 3px; color: #9c5b55; font-size: 10px; line-height: 1.4; }

.login-form { display: grid; gap: 20px; }
.login-field { display: grid; gap: 8px; }
.login-field label { color: #334957; font-size: 11px; font-weight: 750; }
.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dce5e9;
  border-radius: 9px;
  outline: none;
  color: #203642;
  background: #fbfcfd;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-field input::placeholder { color: #9aa8b2; }
.login-field input:focus { border-color: #218d82; background: #fff; box-shadow: 0 0 0 4px #16877c18; }

.login-submit {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 0 16px;
  border: 1px solid #126f68;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(100deg, #126f68, #16877c);
  box-shadow: 0 8px 16px #126f6826;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-submit:hover { background: linear-gradient(100deg, #0e625c, #13796f); box-shadow: 0 10px 20px #126f6833; transform: translateY(-1px); }
.login-submit:focus-visible { outline: 3px solid #16877c44; outline-offset: 3px; }
.login-submit b { font-size: 18px; font-weight: 500; }

.login-help { display: flex; align-items: flex-start; gap: 9px; margin-top: 21px; color: #7b8d98; font-size: 10px; line-height: 1.5; }
.login-lock { color: #16877c; font-size: 13px; line-height: 1.1; }
.login-panel-footer { margin-top: 42px; padding-top: 16px; border-top: 1px solid #edf1f3; color: #9aa7af; font-size: 9px; }
.login-panel-footer span { padding: 0 4px; color: #c2ccd1; }

.user-detail-card,
.delete-user-card,
.role-permissions-intro,
.permission-model-card { border-color: var(--line); }

.user-detail-card { max-width: 900px; }
.user-detail-heading { display: flex; align-items: center; gap: 13px; }
.user-detail-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; color: var(--teal-dark); background: color-mix(in srgb, var(--teal) 12%, var(--surface)); font-size: 20px; font-weight: 850; }
.user-detail-grid>div { padding-top: 15px; padding-bottom: 15px; border-top: 1px solid var(--line); }
.user-detail-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.user-detail-grid dd { margin: 0; color: var(--navy); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.user-detail-actions { border-top: 1px solid var(--line); }
.user-protected-note { max-width: 560px; padding: 11px 13px; border: 1px solid #f1d8a8; border-radius: 9px; color: #795a22; background: #fff8e9; font-size: 11px; }
.delete-user-card { max-width: 620px; }
.delete-user-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 16px; border-radius: 12px; color: #a43e46; background: #fff0f0; font-size: 21px; font-weight: 850; }
.role-permissions-form { width: 100%; }
.role-permissions-intro { color: var(--navy); }
.permission-model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.permission-model-card { min-width: 0; }
.permission-model-card h2 { padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--navy); }
.permission-option-list { display: grid; gap: 7px; }
.permission-option { display: flex; align-items: flex-start; gap: 10px; padding: 9px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.permission-option:hover { border-color: var(--line); background: var(--surface-soft); }
.permission-option input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; accent-color: var(--teal); }
.permission-option strong, .permission-option small { display: block; }
.permission-option strong { color: var(--navy); font-size: 10px; font-weight: 700; }
.permission-option small { margin-top: 3px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.role-permissions-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; padding: 13px 0; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(10px); }

[data-theme="dark"] .user-protected-note { border-color: #6c5932; color: #f0d28f; background: #302a1e; }
[data-theme="dark"] .delete-user-icon { color: #ffb3b7; background: #482d36; }
[data-theme="dark"] .permission-option:hover { background: var(--surface-hover); }

@media (max-width: 820px) {
  .login-page { display: block; padding: 0; background: #fff; }
  .login-shell { display: flex; width: 100%; min-height: 100vh; min-height: 100svh; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
  .login-story { min-height: 225px; flex: 0 0 auto; padding: 23px clamp(21px, 6vw, 40px) 25px; }
  .login-brand { gap: 9px; font-size: 11px; }
  .login-brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; font-size: 18px; }
  .login-brand small { margin-top: 3px; font-size: 8px; }
  .login-story-copy { max-width: 540px; margin: 25px 0 0; padding: 0; }
  .login-kicker { font-size: 8px; }
  .login-story-copy h1 { max-width: 520px; margin: 9px 0 7px; font-size: clamp(1.55rem, 6vw, 2.15rem); line-height: 1.12; }
  .login-story-copy p { max-width: 480px; font-size: 11px; line-height: 1.45; }
  .login-highlights, .login-story-footer { display: none; }
  .login-orbit-one { top: -290px; right: -225px; width: 390px; height: 390px; }
  .login-orbit-two { display: none; }
  .login-panel { display: block; flex: 1 0 auto; padding: 35px clamp(21px, 7vw, 46px) 25px; }
  .login-panel-inner { width: min(100%, 430px); margin: 0 auto; }
  .login-heading-group { margin-bottom: 25px; }
  .login-heading-group h2 { font-size: 1.8rem; }
  .login-panel-footer { margin-top: 34px; }
}

@media (max-width: 575.98px) {
  .user-detail-heading { flex-wrap: wrap; }
  .role-permissions-actions { justify-content: stretch; }
  .role-permissions-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .login-story { min-height: 209px; padding-top: 18px; padding-bottom: 20px; }
  .login-story-copy { margin-top: 20px; }
  .login-story-copy p { max-width: 330px; }
  .login-panel { padding-top: 29px; }
  .login-form { gap: 17px; }
  .login-field input, .login-submit { min-height: 47px; }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
