:root {
  --red: #d7192a;
  --red-dark: #a70f1c;
  --red-soft: #fff0f2;
  --ink: #151518;
  --text: #2f3035;
  --muted: #747681;
  --line: #e2e3e8;
  --line-strong: #c7c9d1;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #f0f1f4;
  --surface-rgb: 255, 255, 255;
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --body-bg: linear-gradient(180deg, #fff 0, var(--bg) 360px), var(--bg);
  --control-bg: #ffffff;
  --secondary-bg: #151518;
  --secondary-bg-hover: #303138;
  --secondary-text: #ffffff;
  --success: #0d7a3b;
  --warn: #a46408;
  --shadow: 0 18px 48px rgba(21, 21, 24, 0.09);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --red: #e11d2e;
  --red-dark: #ff3b4e;
  --red-soft: rgba(225, 29, 46, 0.15);
  --ink: #f6f7fb;
  --text: #d8dbe4;
  --muted: #a4a9b7;
  --line: #303340;
  --line-strong: #464a59;
  --bg: #101116;
  --surface: #181a21;
  --surface-2: #222530;
  --surface-rgb: 24, 26, 33;
  --topbar-bg: rgba(24, 26, 33, 0.92);
  --body-bg: linear-gradient(180deg, #181a21 0, #101116 360px), #101116;
  --control-bg: #15171e;
  --secondary-bg: #2a2e3a;
  --secondary-bg-hover: #363b4a;
  --secondary-text: #f6f7fb;
  --success: #3dce79;
  --warn: #f1ae43;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand-logo,
.login-icon,
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button,
.icon-button,
.ghost-button,
.secondary-button,
.primary-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--ink);
  font-weight: 700;
  min-height: 38px;
  padding: 8px 12px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav-button:hover,
.icon-button:hover,
.ghost-button:hover,
.secondary-button:hover,
.mini-button:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.nav-button.active {
  color: var(--red);
  border-color: rgba(215, 25, 42, 0.28);
  background: var(--red-soft);
}

.theme-toggle {
  color: var(--red);
}

.icon-button,
.mini-button {
  width: 38px;
  padding: 0;
}

.primary-button {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.primary-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.secondary-button {
  background: var(--secondary-bg);
  color: var(--secondary-text);
  border-color: var(--secondary-bg);
}

.secondary-button:hover {
  background: var(--secondary-bg-hover);
  border-color: var(--secondary-bg-hover);
  color: var(--secondary-text);
}

.full {
  width: 100%;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--ink);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.quote-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.quote-main {
  display: grid;
  gap: 16px;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  min-width: 0;
}

.progress span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.progress strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress .active {
  border-color: rgba(215, 25, 42, 0.32);
  color: var(--red);
  background: var(--red-soft);
}

.progress .active span,
.progress .done span {
  background: var(--red);
  color: #fff;
}

.panel,
.summary,
.admin-panel,
.login-panel,
.success-panel,
.admin-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(18px, 3vw, 28px);
  min-height: 560px;
}

.panel-head,
.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.choice-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.list-choice,
.service-row,
.mode-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.choice-card {
  min-height: 160px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.choice-card:hover,
.list-choice:hover,
.service-row:hover,
.mode-card:hover {
  border-color: var(--red);
  background: rgba(215, 25, 42, 0.04);
}

.choice-icon,
.brand-letter {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--red);
  background: var(--red-soft);
}

.brand-letter {
  font-size: 20px;
  font-weight: 900;
}

.choice-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.choice-card small,
.list-choice small,
.service-copy small,
.cart-item small,
.catalog-row small,
.mode-card small,
.order-row small {
  color: var(--muted);
}

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

.list-choice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.list-choice span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  grid-row: span 2;
}

.list-choice strong,
.list-choice small {
  min-width: 0;
}

.service-stack,
.catalog-list {
  display: grid;
  gap: 14px;
}

.service-group,
.catalog-group {
  display: grid;
  gap: 8px;
}

.service-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.service-group-head span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--red);
  background: var(--red-soft);
  flex: 0 0 auto;
}

.service-group-head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.service-list {
  display: grid;
  gap: 8px;
}

.service-row {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
}

.service-row.selected {
  border-color: var(--red);
  background: var(--red-soft);
}

.checkmark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #fff;
  background: var(--surface);
}

.selected .checkmark {
  background: var(--red);
  border-color: var(--red);
}

.service-copy {
  display: grid;
  gap: 4px;
}

.service-copy strong {
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chips em {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.price {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.summary {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.device-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.device-summary div,
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.device-summary dt,
.device-summary dd {
  margin: 0;
  font-size: 13px;
}

.device-summary dt {
  color: var(--muted);
}

.device-summary dd {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.cart-list {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
}

.cart-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.cart-item span {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.empty {
  margin: 0;
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty.wide {
  grid-column: 1 / -1;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

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

.totals strong {
  color: var(--ink);
}

.totals .discount strong {
  color: var(--success);
}

.grand-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(215, 25, 42, 0.13);
  border-color: var(--red);
}

label.invalid input,
label.invalid textarea,
label.invalid select,
.terms-row.invalid {
  border-color: var(--red);
}

label.invalid input,
label.invalid textarea,
label.invalid select {
  background: var(--red-soft);
}

.field-error {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mode-card {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.mode-card.selected {
  border-color: var(--red);
  background: var(--red-soft);
}

.mode-card span {
  color: var(--red);
  font-weight: 900;
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coupon-ok,
.terms-row,
.checkout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coupon-ok {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(13, 122, 59, 0.12);
  color: var(--success);
  font-weight: 800;
}

.coupon-ok button {
  border: 0;
  background: transparent;
  color: var(--success);
  font-weight: 800;
}

.terms-row label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.terms-row.invalid {
  align-items: flex-start;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-soft);
  padding: 10px;
}

.terms-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--red);
}

.checkout-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-footer small {
  display: block;
  color: var(--muted);
}

.checkout-footer strong {
  color: var(--ink);
  font-size: 24px;
}

.mobile-action {
  display: none;
}

.step-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.step-action .primary-button {
  min-width: 220px;
}

.action-error {
  margin-top: 14px;
}

.success-panel {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}

.success-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
}

.success-panel p:not(.eyebrow) {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

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

.login-layout,
.admin-layout {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 56px;
}

.login-layout {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
}

.login-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-error,
.inline-message {
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 800;
}

.form-error {
  color: var(--red-dark);
  background: var(--red-soft);
}

.inline-message {
  margin: 14px 0;
  color: var(--success);
  background: rgba(13, 122, 59, 0.12);
}

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

.admin-hero {
  padding: 22px;
  margin: 0;
}

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

.stats-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats-grid small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  margin-top: 6px;
}

.admin-panel {
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
}

.tabs button.active {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(215, 25, 42, 0.32);
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0;
}

.admin-toolbar label {
  width: 220px;
}

.orders-list {
  display: grid;
  gap: 8px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 190px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-main > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.order-main strong {
  color: var(--ink);
}

.order-main p {
  margin: 3px 0;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: var(--surface-2);
  color: var(--muted);
}

.status.novo {
  color: var(--red-dark);
  background: var(--red-soft);
}

.status.aprovado,
.status.concluido {
  color: var(--success);
  background: rgba(13, 122, 59, 0.12);
}

.status.aguardando_pecas {
  color: var(--warn);
  background: rgba(164, 100, 8, 0.12);
}

.order-total {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-row strong,
.catalog-row small {
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.diff-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.diff-footer span,
.login-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-hint {
  margin: 14px 0 0;
}

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

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

.lookup-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lookup-card,
.service-order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.lookup-card > div,
.service-order-head,
.os-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lookup-card strong,
.service-order-card strong {
  color: var(--ink);
}

.lookup-card p,
.service-order-card p {
  margin: 6px 0 0;
}

.open-os-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.os-number {
  padding: 16px;
  border: 1px solid rgba(215, 25, 42, 0.28);
  border-radius: var(--radius);
  background: var(--red-soft);
}

.os-number span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.os-number strong {
  color: var(--ink);
  font-size: 32px;
}

.combo-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 116px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
}

.dropzone input {
  width: min(280px, 100%);
  border: 0;
  background: transparent;
  padding: 0;
}

.evidence-list,
.notes-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.evidence-list small,
.notes-list small {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.service-order-card {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .choice-grid,
  .choice-grid.compact,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 12px;
  }

  .brand {
    width: 100%;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .nav-button,
  .icon-button {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 6px;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
  }

  .quote-layout,
  .login-layout,
  .admin-layout {
    width: min(100% - 16px, 1160px);
    margin-top: 12px;
    margin-bottom: 28px;
  }

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

  .progress li {
    padding: 9px;
    font-size: 13px;
  }

  .panel {
    min-height: auto;
    padding: 18px;
  }

  .panel-head {
    gap: 12px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .eyebrow {
    font-size: 11px;
  }

  .panel-head,
  .admin-hero,
  .checkout-footer,
  .coupon-ok {
    flex-direction: column;
    align-items: stretch;
  }

  .choice-grid,
  .choice-grid.compact,
  .list-grid,
  .field-grid,
  .mode-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    gap: 12px;
    padding: 14px;
  }

  .choice-card .choice-icon,
  .choice-card .brand-letter {
    grid-row: span 2;
  }

  .choice-card strong,
  .choice-card small {
    min-width: 0;
  }

  .choice-card strong {
    align-self: end;
  }

  .choice-card small {
    align-self: start;
  }

  .service-row {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 13px;
  }

  .service-row .price {
    grid-column: 2;
  }

  .order-row,
  .catalog-row {
    grid-template-columns: 1fr;
  }

  .summary {
    padding: 16px;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto 34px;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }

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

  .admin-toolbar {
    justify-content: stretch;
  }

  .admin-toolbar label {
    width: 100%;
  }

  .lookup-form,
  .combo-inline,
  .note-form {
    grid-template-columns: 1fr;
  }

  .step-action {
    justify-content: stretch;
  }

  .step-action .primary-button {
    width: 100%;
  }
}
