/* GLOWSUN warranty console + dealer portal. No web fonts, no external assets. */

:root {
  --orange: #ff7500;
  --orange-600: #e86a00;
  --orange-700: #b85400;
  --orange-50: #fff5ec;
  --orange-100: #ffe7d1;
  --ink: #0d0c11;
  --ink-2: #26252b;
  --ink-3: #4d4b53;
  --muted: #6d6a73;
  --line: #ebe6e0;
  --line-2: #dcd5cd;
  --bg: #f4f1ee;
  --surface: #ffffff;
  --surface-2: #faf8f6;
  --green: #11795a;
  --green-50: #e6f5ee;
  --amber: #8f5300;
  --amber-50: #fff1dc;
  --red: #b42b26;
  --red-50: #fdecea;
  --blue: #2c59b8;
  --blue-50: #eaf0fc;
  --violet: #6b3fb5;
  --violet-50: #f1ebfb;
  --series-window: #e86a00;
  --series-ppf: #3b6fd8;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(13, 12, 17, 0.05);
  --shadow-2: 0 12px 32px -14px rgba(13, 12, 17, 0.22);
  --shadow-3: 0 24px 60px -20px rgba(13, 12, 17, 0.35);
  --font: "Onest", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ring: 0 0 0 3px rgba(255, 117, 0, 0.45);
  --sidebar-w: 256px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid rgba(255, 117, 0, 0.7);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.small {
  font-size: 13px;
}

.right {
  text-align: right;
}

.mono {
  font-family: var(--mono);
  font-size: 0.93em;
  letter-spacing: 0.01em;
}

.upper {
  text-transform: uppercase;
}

.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.warn {
  color: var(--amber);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 40px;
  height: 40px;
}

/* ------------------------------------------------------------------ boot */

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.boot-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 117, 0, 0.5);
  animation: pulse 1.4s ease-out infinite;
}

.boot-noscript {
  padding: 24px;
  text-align: center;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 117, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 28px rgba(255, 117, 0, 0);
  }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(255, 117, 0, 0.8);
}

.btn-primary:hover:not(:disabled) {
  background: #ff8a26;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(13, 12, 17, 0.05);
  color: var(--ink);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #9a211d;
}

.btn-danger-ghost {
  background: transparent;
  border-color: rgba(180, 43, 38, 0.35);
  color: var(--red);
}

.btn-danger-ghost:hover:not(:disabled) {
  background: var(--red-50);
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

.btn.is-busy {
  position: relative;
  color: transparent !important;
}

.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.btn-danger.is-busy::after {
  border-color: #fff;
  border-right-color: transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(13, 12, 17, 0.06);
}

.link-btn,
.row-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.link-btn {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.row-link:hover,
.row-link:focus-visible {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link {
  color: var(--orange-700);
}

.lang-toggle {
  white-space: nowrap;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.lang-toggle .icon {
  width: 16px;
  height: 16px;
}

.lang-toggle:hover {
  border-color: var(--ink);
}

/* ------------------------------------------------------------------ cards & layout helpers */

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

.card + .card,
.card + section,
section + .card {
  margin-top: 16px;
}

.card-flush {
  padding: 0;
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 17px;
  font-weight: 650;
}

.card-subtitle {
  font-size: 15px;
  font-weight: 650;
  margin: 22px 0 12px;
}

.card-head .card-subtitle {
  margin: 0;
}

.form-card {
  padding: 28px;
}

.stack > * + * {
  margin-top: 16px;
}

.narrow {
  max-width: 760px;
}

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

.grid-2 > .field-full,
.grid-2 > fieldset.field-full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.actions-stack {
  flex-direction: column;
  align-items: stretch;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title:focus {
  outline: none;
}

.page-sub {
  margin-top: 6px;
  color: var(--muted);
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-title {
  font-weight: 600;
  color: var(--ink-3);
}

.skeleton-block {
  height: 220px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, #efebe7 25%, #f8f6f4 50%, #efebe7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 14px 0;
}

.callout-danger {
  background: var(--red-50);
  border-color: rgba(180, 43, 38, 0.2);
  color: #7d1d19;
}

.code-block {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: #f4f1ee;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  max-height: 420px;
}

/* ------------------------------------------------------------------ forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > label,
.label-like,
.fieldset > legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.req {
  color: var(--orange-700);
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.input {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.input::placeholder {
  color: #a19ca6;
}

.input:hover {
  border-color: #c9c1b8;
}

.input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: var(--ring);
}

.input[readonly] {
  background: var(--surface-2);
  color: var(--ink-3);
}

.input.upper::placeholder {
  text-transform: none;
}

.select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input-search {
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6a73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px 18px;
}

.input-lg {
  min-height: 52px;
  font-size: 16px;
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
}

.field-error {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

.field.invalid .input,
.fieldset.invalid .checks {
  border-color: var(--red);
}

.field.invalid .input:focus {
  box-shadow: 0 0 0 3px rgba(180, 43, 38, 0.25);
}

.form-error {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--red-50);
  border: 1px solid rgba(180, 43, 38, 0.2);
  color: #7d1d19;
  font-weight: 500;
}

.form-error[hidden] {
  display: none;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fieldset > legend {
  padding: 0;
  margin-bottom: 8px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange);
}

.check:hover {
  border-color: #c9c1b8;
}

.check:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-50);
}

.check:has(input:focus-visible) {
  box-shadow: var(--ring);
}

.expiry {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  color: var(--muted);
}

.expiry:empty::before {
  content: "—";
}

.expiry.is-set {
  border-style: solid;
  border-color: rgba(255, 117, 0, 0.35);
  background: var(--orange-50);
  color: var(--ink);
}

.expiry .icon {
  color: var(--orange-600);
}

.expiry div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.expiry span {
  font-size: 13px;
  color: var(--ink-3);
}

.warranty-form {
  display: block;
}

.form-section + .form-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-700);
  margin-bottom: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.sub-form {
  padding: 18px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.sub-form .form-actions {
  margin-top: 4px;
}

/* ------------------------------------------------------------------ badges & chips */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: #eeeae6;
  color: var(--ink-3);
}

.badge + .badge {
  margin-left: 6px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-active,
.badge-dealer-active,
.badge-user-active,
.badge-job-done,
.badge-sr-resolved,
.badge-inq-closed {
  background: var(--green-50);
  color: var(--green);
}

.badge-expired,
.badge-sr-in_progress,
.badge-inq-contacted,
.badge-job-queued {
  background: var(--amber-50);
  color: var(--amber);
}

.badge-voided,
.badge-dealer-suspended,
.badge-user-disabled,
.badge-job-failed,
.badge-sr-rejected,
.badge-locked {
  background: var(--red-50);
  color: var(--red);
}

.badge-sr-open,
.badge-inq-new,
.badge-job-running,
.badge-running {
  background: var(--orange-100);
  color: var(--orange-700);
}

.badge-role-admin {
  background: var(--ink);
  color: #fff;
}

.badge-role-staff,
.badge-kind-contact {
  background: var(--blue-50);
  color: var(--blue);
}

.badge-role-dealer,
.badge-kind-dealer {
  background: var(--violet-50);
  color: var(--violet);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 6px;
}

.chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
}

/* ------------------------------------------------------------------ tables & lists */

.list-wrap {
  position: relative;
}

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

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.table td.wrap {
  white-space: normal;
  min-width: 160px;
  max-width: 280px;
}

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

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table tr.clickable {
  cursor: pointer;
}

.table tr.clickable:hover td {
  background: #fcfaf8;
}

.table tr.clickable:focus-within td {
  background: var(--orange-50);
}

.table-compact td,
.table-compact th {
  padding: 8px 12px;
}

.cell-strong {
  font-weight: 600;
}

.cell-detail {
  max-width: 320px;
}

.truncate {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.card-list + .list-foot,
.dp-view .list-foot {
  border-top: 0;
  padding: 16px 0;
}

.list-foot .btn[hidden] {
  display: none;
}

.list-wrap.is-loading .list-status::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.result-count {
  font-weight: 600;
  color: var(--ink-3);
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list li:last-child {
  border-bottom: 0;
}

/* key/value */

.kv {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 10px 18px;
  margin: 0;
}

.kv dt {
  color: var(--muted);
  font-size: 13.5px;
}

.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.kv-compact {
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------ filters */

.filters {
  padding: 20px 22px;
  margin-bottom: 16px;
}

.filters-search {
  margin-bottom: 14px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 14px;
}

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

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

.filters-inline > .input,
.filters-inline > .field {
  flex: 1 1 200px;
  max-width: 340px;
}

.filters-inline > .input-search {
  max-width: 420px;
  flex-basis: 280px;
}

/* ------------------------------------------------------------------ overlays */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(13, 12, 17, 0.42);
  opacity: 0;
  transition: opacity 0.2s;
}

.backdrop.open {
  opacity: 1;
}

.backdrop-modal {
  z-index: 60;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  transform: translateX(104%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer.wide {
  width: min(780px, 100vw);
}

.drawer.open {
  transform: none;
}

.drawer:focus,
.modal:focus {
  outline: none;
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-title,
.modal-title {
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.drawer-subtitle,
.modal-subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.drawer-sub-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.drawer-body,
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  overscroll-behavior: contain;
}

.drawer-footer,
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.drawer-footer[hidden],
.modal-footer[hidden] {
  display: none;
}

.drawer .form-card,
.drawer .warranty-form {
  padding: 0;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  transition: transform 0.18s, opacity 0.18s;
}

.modal.open {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.modal-footer {
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.confirm p {
  color: var(--ink-3);
  margin-bottom: 14px;
}

.secret-box p + .secret-row {
  margin-top: 10px;
}

.secret-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.secret {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

/* toasts */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2);
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.in {
  opacity: 1;
  transform: none;
}

.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

.toast-success .icon {
  color: #4fd1a0;
}

.toast-error {
  background: #7d1d19;
}

.toast-error .icon {
  color: #ffb3ae;
}

/* ------------------------------------------------------------------ sign-in */

.auth-root {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 117, 0, 0.22), transparent 60%),
    radial-gradient(700px 520px at -10% 110%, rgba(255, 117, 0, 0.12), transparent 60%),
    var(--bg);
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 34px 28px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo {
  width: 168px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 8px 0 24px;
  color: var(--muted);
}

.auth-form > * + * {
  margin-top: 16px;
}

.auth-form .btn {
  margin-top: 24px;
}

.auth-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  text-align: center;
}

.auth-alt a {
  color: var(--ink-3);
  text-decoration: none;
}

.auth-alt a:hover {
  color: var(--orange-700);
}

.auth-card .actions {
  justify-content: flex-start;
}

/* ------------------------------------------------------------------ admin shell */

.app-root {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  flex: none;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 22px 14px 16px;
  background: var(--ink);
  color: #fff;
  overflow-y: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 12px 22px;
  text-decoration: none;
}

.brand-logo {
  width: 150px;
}

.brand-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-link.active {
  background: rgba(255, 117, 0, 0.16);
  color: #fff;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
}

.nav-link.active .icon {
  color: var(--orange);
}

.nav-badge {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.nav-badge[hidden] {
  display: none;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-chip {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.user-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.sidebar-row .lang-toggle {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.sidebar-row .lang-toggle:hover {
  border-color: #fff;
}

.sidebar-row .nav-button {
  flex: 1;
  min-height: 36px;
}

.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: none;
}

.view {
  width: 100%;
  max-width: 1360px;
  padding: 34px 40px 60px;
}

.view:focus {
  outline: none;
}

.scrim {
  display: none;
}

/* ------------------------------------------------------------------ detail drawer */

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--orange-50);
  border: 1px solid rgba(255, 117, 0, 0.25);
}

.detail-hero.status-expired {
  background: var(--amber-50);
  border-color: rgba(143, 83, 0, 0.2);
}

.detail-hero.status-voided {
  background: #f5f2ef;
  border-color: var(--line-2);
}

.detail-hero-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.detail-hero-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.detail-hero-meta {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13.5px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section > h3 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 16px 6px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--orange);
}

.timeline-title {
  font-weight: 600;
}

/* ------------------------------------------------------------------ dashboard */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  display: block;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

a.stat-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.stat-card.accent {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.stat-card.accent .stat-label,
.stat-card.accent .stat-foot {
  color: rgba(255, 255, 255, 0.65);
}

.stat-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card.accent .stat-value {
  color: var(--orange);
}

.stat-foot {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dash-grid > .card + .card {
  margin-top: 0;
}

.chart-wrap {
  position: relative;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart .grid {
  stroke: #efeae5;
  stroke-width: 1;
}

.chart .axis {
  stroke: var(--line-2);
  stroke-width: 1;
}

.chart .tick {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--font);
}

.chart .bar {
  fill: var(--series-window);
  transition: fill 0.15s;
}

.chart .bar-label {
  fill: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
}

.chart .hit {
  fill: transparent;
}

.chart .bar-g {
  cursor: default;
  outline: none;
}

.chart .bar-g:hover .bar,
.chart .bar-g:focus .bar {
  fill: var(--orange-700);
}

.chart .bar-g:focus-visible .hit {
  fill: rgba(255, 117, 0, 0.08);
  stroke: rgba(255, 117, 0, 0.6);
  stroke-width: 2;
}

.chart-tip {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.split-bar {
  display: flex;
  gap: 2px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.split-seg {
  flex: 1 1 0;
  min-width: 4px;
}

.seg-window {
  background: var(--series-window);
}

.seg-ppf {
  background: var(--series-ppf);
}

.seg-empty {
  background: #efeae5;
}

.legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}

.legend-label {
  flex: 1;
}

.legend-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hbars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbars li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.hbar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbar-track {
  height: 10px;
}

.hbar-fill {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.hbar-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ import */

.import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.drop .icon {
  color: var(--orange-600);
}

.drop:hover,
.drop.drag {
  border-color: var(--orange);
  background: var(--orange-50);
}

.drop:focus-within {
  box-shadow: var(--ring);
  border-color: var(--orange);
}

.drop.has-file {
  border-style: solid;
  border-color: var(--orange);
}

.drop-title {
  font-weight: 650;
  font-size: 16px;
}

.drop-file {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.radio-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.radio-card input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.radio-card:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-50);
}

.radio-card:has(input:focus-visible) {
  box-shadow: var(--ring);
}

.radio-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help {
  margin-top: 18px;
}

.help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-3);
}

.help p {
  margin: 10px 0;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: #efeae5;
  overflow: hidden;
  margin: 6px 0 10px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-600), var(--orange));
  transition: width 0.4s ease;
}

.progress.indeterminate .progress-fill {
  width: 30% !important;
  animation: slide 1.2s ease-in-out infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.mini-stat {
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.mini-stat-value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.mini-stat.good .mini-stat-value {
  color: var(--green);
}

.mini-stat.warn .mini-stat-value {
  color: var(--amber);
}

.mini-stat.bad .mini-stat-value {
  color: var(--red);
}

.error-table {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.job-card[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ dealer portal */

.dp-root {
  min-height: 100vh;
}

.dp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.dp-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
}

.dp-logo {
  display: block;
  width: 132px;
}

.dp-dealer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
  line-height: 1.25;
}

.dp-dealer-name {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.dp-dealer-code {
  font-size: 12px;
  color: var(--muted);
}

.dp-topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.dp-tab {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.dp-tab:hover {
  background: rgba(13, 12, 17, 0.05);
  color: var(--ink);
}

.dp-tab.active {
  background: var(--ink);
  color: #fff;
}

.dp-tab .icon {
  width: 18px;
  height: 18px;
}

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

.dp-bottomnav {
  display: none;
}

.dp-view {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.dp-view:focus {
  outline: none;
}

.dp-form-card {
  max-width: 820px;
}

.dp-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-search .input-search {
  flex: 3 1 260px;
}

.dp-search .select {
  flex: 1 1 150px;
  width: auto;
  min-height: 52px;
}

.dp-search .btn {
  min-height: 52px;
}

.search-hint {
  margin: 8px 0 18px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.card-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s, transform 0.15s;
}

.card-item:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.w-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
}

.w-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.w-card-no {
  font-weight: 700;
  font-size: 15px;
}

.w-card-product {
  font-weight: 600;
}

.w-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--ink-3);
  font-size: 14px;
}

.w-card-foot {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 4px 6px;
  text-align: center;
}

.success-panel:focus {
  outline: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
}

.success-title {
  font-size: 24px;
  font-weight: 700;
}

.big-code {
  margin: 10px 0 2px;
  padding: 16px 22px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--orange);
  font-family: var(--mono);
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  user-select: all;
}

.success-panel .kv {
  width: 100%;
  max-width: 520px;
  margin: 16px 0;
  text-align: left;
}

.success-panel .actions {
  width: 100%;
  max-width: 420px;
}

.dealer-card {
  margin-top: 16px;
}

.dealer-card .kv {
  margin: 14px 0;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .import-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1040px) {
  .dp-topnav .icon {
    display: none;
  }
  .dp-tab {
    padding: 0 12px;
  }
  .dp-dealer-name {
    max-width: 150px;
  }
}

@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    z-index: 45;
    transform: translateX(-102%);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-3);
  }
  .menu-open .sidebar {
    transform: none;
  }
  .menu-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(13, 12, 17, 0.42);
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-logo {
    width: 112px;
    margin-right: auto;
  }
  .view {
    padding: 22px 16px 48px;
  }
  .page-title {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }
  .input {
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 48px;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 18px;
    border-radius: var(--r-lg);
  }
  .form-card {
    padding: 20px 16px;
  }
  .card-flush {
    padding: 0;
  }
  .kv {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .kv dd {
    margin-bottom: 10px;
  }
  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
  .drawer,
  .drawer.wide {
    width: 100vw;
    border-radius: 0;
  }
  .drawer-head,
  .drawer-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .drawer-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .drawer-footer .actions .btn {
    flex: 1 1 auto;
  }
  .toasts {
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    align-items: center;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1 1 auto;
  }
  .filters-inline > .input,
  .filters-inline > .field {
    max-width: none;
    flex-basis: 100%;
  }
  .stat-value {
    font-size: 26px;
  }
  .auth-card {
    padding: 26px 20px 22px;
  }
  .hide-sm {
    display: none;
  }

  /* dealer portal: bottom tab bar */
  .dp-header-inner {
    padding: 10px 14px;
    gap: 12px;
  }
  .dp-logo {
    width: 104px;
  }
  .dp-dealer {
    padding-left: 12px;
    flex: 1;
  }
  .dp-dealer-name {
    max-width: 46vw;
  }
  .dp-topnav {
    display: none;
  }
  .dp-header-actions .lang-toggle {
    padding: 0 10px;
  }
  .dp-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .dp-bottomnav .dp-tab {
    flex-direction: column;
    gap: 3px;
    min-height: 56px;
    padding: 6px 4px;
    border-radius: 14px;
    font-size: 12px;
    justify-content: center;
  }
  .dp-bottomnav .dp-tab .icon {
    width: 22px;
    height: 22px;
  }
  .dp-bottomnav .dp-tab.active {
    background: var(--orange-50);
    color: var(--orange-700);
  }
  .dp-view {
    padding: 20px 14px calc(100px + env(safe-area-inset-bottom));
  }
  .card-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .check {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .badge::before,
  .swatch {
    forced-color-adjust: none;
  }
  .btn {
    border-color: ButtonText;
  }
}

.dp-form-card,
.card {
  scroll-margin-top: 84px;
}

.card-title + .kv,
.card-title + p,
.card-title + .grid-2,
.card-title + .field {
  margin-top: 12px;
}

.form-card > p + .field,
.form-card > .kv + .grid-2 {
  margin-top: 16px;
}
