:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-soft: #fafafc;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.16);
  --brand: #0071e3;
  --brand-deep: #0058b0;
  --success: #0d7f56;
  --success-bg: rgba(13, 127, 86, 0.08);
  --error: #b42318;
  --error-bg: rgba(180, 35, 24, 0.08);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --container: 1240px;
}

html[data-theme="dark"] {
  --bg: #09090b;
  --surface: rgba(22, 22, 26, 0.84);
  --surface-strong: #101014;
  --surface-soft: #17171c;
  --ink: #f5f5f7;
  --muted: #b0b0b7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --brand: #2997ff;
  --brand-deep: #0a84ff;
  --success-bg: rgba(48, 209, 88, 0.12);
  --error-bg: rgba(255, 69, 58, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] label,
html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] strong,
html[data-theme="dark"] small,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] dt,
html[data-theme="dark"] dd,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] summary,
html[data-theme="dark"] li,
html[data-theme="dark"] a,
html[data-theme="dark"] button {
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 38%, #f5f5f7 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top, rgba(30, 30, 36, 0.96), transparent 34%),
    linear-gradient(180deg, #09090b 0%, #121218 38%, #09090b 100%);
}

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

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

button {
  color: inherit;
}

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.06);
}

.site-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 16px 0 36px;
}

.admin-shell {
  --admin-gap: 18px;
}

.admin-stack {
  gap: var(--admin-gap);
}

.admin-shell .panel,
.admin-shell .price-admin-card,
.admin-shell .notice {
  padding: 24px;
}

.admin-shell .dashboard-grid,
.admin-shell .compact-dashboard-grid {
  gap: var(--admin-gap);
  margin-top: 0;
}

.admin-shell .panel-header,
.admin-shell .price-panel-header {
  align-items: center;
  min-height: 40px;
  margin-bottom: 16px;
}

.admin-shell .panel-header > div,
.admin-shell .price-panel-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-shell .eyebrow {
  margin-bottom: 8px;
}

.admin-shell .page-title,
.admin-shell h2 {
  line-height: 1;
}

.admin-shell .status-cards {
  margin: 0;
}

.admin-shell .message-form,
.admin-shell .compact-form,
.admin-shell .price-admin-card,
.admin-shell .price-admin-services,
.admin-shell .simple-order-list {
  gap: 14px;
}

.admin-shell .form-grid {
  gap: 14px;
}

.admin-shell .compact-link-row {
  margin-top: 14px;
}

.admin-shell .compact-block {
  margin-top: 12px;
}

.admin-shell .compact-block:first-of-type {
  margin-top: 0;
}

.admin-shell .compact-block summary {
  min-height: 56px;
  padding: 16px 18px;
}

.admin-shell .compact-block > :not(summary) {
  padding: 0 18px 18px;
}

.admin-shell .table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.admin-shell .data-table th,
.admin-shell .data-table td {
  padding: 16px 14px;
  vertical-align: middle;
}

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

.admin-shell .price-admin-service-row {
  align-items: end;
  min-height: 88px;
}

.admin-shell .finder {
  margin-bottom: 0;
  padding: 18px;
}

.admin-shell .finder-search,
.admin-shell .panel-inner,
.admin-shell .status-card,
.admin-shell .simple-order-card {
  padding: 16px;
}

.admin-shell .panel,
.admin-shell .price-admin-card,
.admin-shell .panel-header,
.admin-shell .panel-header > div,
.admin-shell .price-panel-header,
.admin-shell .price-panel-header > div,
.admin-shell .compact-block,
.admin-shell .compact-block > :not(summary),
.admin-shell .status-card,
.admin-shell .simple-order-card,
.admin-shell .message-bubble,
.admin-shell .panel-inner,
.admin-shell .finder-search,
.admin-shell .data-table td,
.admin-shell .data-table th {
  min-width: 0;
}

.admin-shell h1,
.admin-shell h2,
.admin-shell h3,
.admin-shell p,
.admin-shell span,
.admin-shell strong,
.admin-shell small,
.admin-shell a,
.admin-shell td,
.admin-shell th,
.admin-shell label,
.admin-shell summary,
.admin-shell li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-shell .panel-header span,
.admin-shell .price-panel-header span,
.admin-shell .status-card span,
.admin-shell .status-card strong,
.admin-shell .simple-order-card strong,
.admin-shell .simple-order-card small,
.admin-shell .message-bubble header span,
.admin-shell .message-bubble header strong {
  white-space: normal;
}

.admin-shell .compact-thread {
  margin-top: 0;
}

.admin-shell .meta-list {
  margin-top: 0;
}

.admin-shell .meta-list div,
.admin-shell .timeline-list li,
.admin-shell .message-bubble {
  min-height: 72px;
}

.narrow-shell {
  max-width: 640px;
}

.stack {
  display: grid;
  gap: 24px;
}

.topbar,
.subpage-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 18px 48px rgba(15, 18, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-text small,
.nav a,
.hero-text,
.source-list span,
.price-list small,
.muted,
.faq p,
.timeline p,
.meta-list dt,
.meta-list dd,
.notice,
.simple-list li,
.address-card p,
.print-card p {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.theme-toggle {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.panel,
.section,
.glass-card,
.price-card,
.price-panel,
.notice,
.login-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .subpage-header {
  background: rgba(16, 16, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero,
.section,
.footer,
.feature-grid,
.dashboard-grid {
  margin-top: 20px;
}

.hero {
  padding: 86px 38px 34px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 251, 0.98));
}

.hero-crafted {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
  padding: 72px 38px 34px;
  text-align: left;
}

html[data-theme="dark"] .hero-crafted {
  background:
    radial-gradient(circle at top, rgba(41, 151, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(18, 18, 24, 0.96), rgba(10, 10, 14, 0.98));
}

.hero-copy {
  display: grid;
  gap: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1,
.page-title {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.95;
}

.hero h1 {
  max-width: 12ch;
  margin-inline: auto;
}

.hero-crafted h1 {
  max-width: 10ch;
  margin-inline: 0;
}

.hero-text {
  max-width: 46rem;
  margin: 22px auto 0;
  font-size: clamp(1.04rem, 2vw, 1.26rem);
  line-height: 1.72;
}

.hero-actions,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.hero-actions-left {
  justify-content: flex-start;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-highlights li,
.filter-chip {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
}

.hero-note-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-note-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.95rem;
}

html[data-theme="dark"] .hero-note-strip span {
  background: rgba(255, 255, 255, 0.04);
}

.hero-devices {
  position: relative;
  min-height: 520px;
}

.device-scene {
  position: relative;
  height: 100%;
  min-height: 520px;
}

.hero-device {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(8, 10, 18, 0.18);
}

.hero-device-screen {
  display: grid;
  align-content: end;
  gap: 8px;
  height: 100%;
  padding: 22px 20px;
  border-radius: inherit;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(180deg, #11131b 0%, #1c3159 58%, #0c1f3a 100%);
}

.hero-device-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-device strong {
  font-size: 1.3rem;
  line-height: 1.06;
}

.hero-device small {
  color: rgba(255, 255, 255, 0.78);
}

.hero-phone {
  top: 24px;
  left: 6%;
  width: 200px;
  height: 392px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(180deg, #2d3037, #101114);
  transform: rotate(-9deg);
}

.hero-phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 36%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
}

.hero-tablet {
  right: 0;
  top: 92px;
  width: 312px;
  height: 422px;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(180deg, #2a2c30, #141417);
  transform: rotate(7deg);
}

.hero-tablet .hero-device-screen {
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #1e2636 0%, #334a78 58%, #1c2740 100%);
}

.hero-laptop {
  left: 22%;
  bottom: 10px;
  width: 330px;
  height: 232px;
  border: 0;
  box-shadow: none;
}

.hero-device-lid {
  width: 100%;
  height: 196px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 0;
  border-radius: 26px 26px 14px 14px;
  background: linear-gradient(180deg, #2c2e35, #121216);
  box-shadow: 0 22px 70px rgba(8, 10, 18, 0.16);
}

.hero-laptop .hero-device-screen {
  border-radius: 18px 18px 10px 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #0f1727 0%, #243a64 54%, #17233d 100%);
}

.hero-device-base {
  width: 118%;
  height: 18px;
  margin-left: -9%;
  margin-top: -1px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #d8dbe2, #a9adb6);
  box-shadow: 0 14px 24px rgba(10, 12, 18, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 32px rgba(0, 113, 227, 0.2);
}

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

.button-block {
  width: 100%;
  margin-top: 12px;
}

.section {
  padding: 52px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.section-heading p {
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--muted);
}

.crafted-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1fr;
  gap: 18px;
  align-items: start;
}

.crafted-card {
  min-height: 240px;
}

.crafted-tag {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crafted-card h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.04;
  margin-bottom: 14px;
}

.crafted-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.offset-card {
  transform: translateY(34px);
}

.accent-card {
  background:
    radial-gradient(circle at top, rgba(0, 113, 227, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] .accent-card {
  background:
    radial-gradient(circle at top, rgba(41, 151, 255, 0.14), transparent 40%),
    rgba(22, 22, 28, 0.86);
}

.feature-grid,
.two-column,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.finder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px;
}

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

.finder-step,
.finder-search,
.status-card,
.simple-order-card,
.panel-inner {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
}

.finder-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.finder-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}

.finder-step div,
.finder-search label {
  display: grid;
  gap: 6px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card,
.soft-panel,
.dark-panel,
.contact-form,
.lookup-form,
.login-panel,
.print-card {
  padding: 30px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
}

.soft-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 251, 0.96));
}

.dark-panel {
  color: #fff;
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.98), rgba(18, 18, 20, 0.98));
}

.dark-panel p,
.dark-panel .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.price-sections {
  display: grid;
  gap: 18px;
}

.price-result-panel {
  padding: 28px;
}

.price-result-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}

.price-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.price-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
}

.price-panel.is-hidden {
  display: none;
}

.price-panel-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.price-panel-header {
  align-items: center;
}

.price-panel-header,
.panel-header,
.price-panel-header > div,
.panel-header > div,
.price-card,
.price-card summary,
.price-card h3,
.price-card strong,
.price-card small,
.price-list li,
.price-list div,
.price-line-actions,
.finder-search,
.quick-category-card,
.quick-category-copy {
  min-width: 0;
}

.price-panel-header > div,
.panel-header > div,
.quick-category-copy {
  flex: 1 1 auto;
}

.price-panel-header > span,
#price-results-count {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.price-panel h2,
.price-panel h3,
.price-panel p,
.price-panel span,
.price-panel strong,
.price-panel small,
.price-card h3,
.price-card p,
.price-card span,
.price-card strong,
.price-card small,
.quick-category-card strong,
.quick-category-count,
.finder-search label,
.finder-search span {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

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

.compact-price-grid {
  grid-template-columns: 1fr;
}

.price-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
}

.device-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(41, 151, 255, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 247, 0.96));
}

html[data-theme="dark"] .device-preview {
  background:
    radial-gradient(circle at top, rgba(41, 151, 255, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(20, 20, 26, 0.94), rgba(10, 10, 14, 0.96));
}

.device-frame {
  position: relative;
  width: min(230px, 100%);
  aspect-ratio: 0.72;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(180deg, #2f2f36, #111116);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 34%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
}

.device-screen {
  display: grid;
  align-content: end;
  gap: 8px;
  height: 100%;
  padding: 28px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #0a84ff, #182848);
  color: #fff;
}

.device-chip {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.12);
}

.device-screen strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.device-screen small {
  color: rgba(255, 255, 255, 0.82);
}

.device-preview[data-device-category="tablet"] .device-frame,
.device-preview[data-device-category="laptop"] .device-frame,
.device-preview[data-device-category="desktop"] .device-frame,
.device-preview[data-device-category="console"] .device-frame {
  width: min(280px, 100%);
  aspect-ratio: 1.28;
  border-radius: 26px;
}

.device-preview[data-device-category="watch"] .device-frame {
  width: min(180px, 100%);
  aspect-ratio: 1;
  border-radius: 44px;
}

.device-preview[data-device-category="watch"] .device-frame::before {
  width: 0;
  height: 0;
}

.finder-secondary {
  padding-top: 0;
}

.left-text {
  text-align: left;
  margin-inline: 0;
}

.price-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.price-detail summary::-webkit-details-marker {
  display: none;
}

.price-detail summary span {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
}

.price-card.is-hidden,
.is-hidden {
  display: none !important;
}

.price-brand {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card h4 {
  font-size: 1.45rem;
}

.price-list,
.source-list,
.simple-list,
.timeline-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.price-list li,
.source-list li,
.timeline article,
.faq-list details,
.meta-list div,
.message-bubble,
.shipping-box,
.sendin-note,
.address-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
}

.price-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.price-list-item-action {
  align-items: center;
}

.price-list div {
  display: grid;
  gap: 4px;
}

.price-list span {
  white-space: normal;
  font-weight: 700;
}

.price-line-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.source-list li {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.source-list a {
  color: var(--brand);
  font-weight: 700;
}

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

.timeline-crafted article:nth-child(2),
.timeline-crafted article:nth-child(4) {
  transform: translateY(20px);
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: #1d1d1f;
}

.sendin-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 20px;
}

.contact-form,
.lookup-form,
.message-form {
  display: grid;
  gap: 16px;
}

.lookup-form-inline {
  margin-top: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted) !important;
  opacity: 1;
}

select {
  appearance: none;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  display: block;
  position: relative;
  z-index: 1;
  padding-right: 48px;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.custom-select {
  display: none !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

textarea {
  resize: vertical;
}

.notice {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
}

.notice.success {
  color: var(--success);
  background: var(--success-bg);
}

.notice.error {
  color: var(--error);
  background: var(--error-bg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(0, 113, 227, 0.08);
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.status-card {
  display: grid;
  gap: 6px;
}

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

.status-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.easy-actions {
  margin-bottom: 16px;
}

.quick-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 18px;
}

.quick-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 18, 32, 0.05);
}

.quick-category-copy {
  display: grid;
  gap: 2px;
}

.quick-category-card strong {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.quick-category-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.quick-category-card.is-active {
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(244, 249, 255, 0.98);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.12);
}

.quick-category-card.is-active strong,
.quick-category-card.is-active .quick-category-count {
  color: #fff;
}

.quick-category-card.is-active {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.finder-search-inline {
  max-width: 420px;
  margin: 0 auto 22px;
}

.finder-search-wide {
  max-width: 100%;
}

.price-admin-toolbar {
  align-items: end;
}

.price-admin-toolbar-action {
  display: flex;
  align-items: end;
}

.price-admin-toolbar-action .button {
  width: 100%;
}

.price-admin-card {
  display: grid;
  gap: 18px;
}

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

.request-selection-note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: var(--radius-md);
  background: rgba(244, 249, 255, 0.9);
}

.request-selection-note strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.request-selection-note span {
  color: var(--muted);
}

.intake-block {
  display: grid;
  gap: 16px;
}

.price-admin-services {
  display: grid;
  gap: 12px;
}

.price-admin-service-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(120px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.price-admin-actions,
.price-admin-delete {
  display: flex;
  justify-content: flex-start;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.saved-orders-list,
.simple-order-list {
  display: grid;
  gap: 12px;
}

.home-shortcuts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.shortcut-card {
  padding: 22px;
}

.shortcut-card strong {
  font-size: 1.2rem;
}

.panel-inner {
  margin-top: 16px;
}

.compact-dashboard-grid {
  gap: 16px;
}

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

.compact-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.compact-block {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.compact-inline-block {
  margin-top: 18px;
}

.compact-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.compact-block summary::-webkit-details-marker {
  display: none;
}

.compact-block summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
}

.compact-block[open] summary::after {
  content: "−";
}

.compact-block > :not(summary) {
  padding: 0 18px 18px;
}

.compact-form {
  gap: 14px;
}

.compact-thread {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.compact-list {
  margin-top: 0;
}

.compact-meta-list {
  gap: 10px;
}

.compact-panel-inner {
  padding: 16px;
}

.compact-order-list {
  gap: 10px;
}

.compact-order-card {
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 12px;
}

.compact-order-card strong {
  display: block;
}

.compact-order-card small {
  display: block;
  margin-top: 4px;
}

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

.compact-bullets {
  gap: 8px;
}

.compact-box {
  margin-top: 0;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.meta-list div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.meta-list dt {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.timeline-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.message-thread {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chat-thread {
  gap: 14px;
}

.chat-row {
  display: flex;
}

.chat-row.is-admin {
  justify-content: flex-end;
}

.chat-row.is-customer {
  justify-content: flex-start;
}

.message-bubble {
  padding: 16px 18px;
}

.chat-thread .message-bubble {
  width: min(82%, 560px);
  border-radius: 22px;
}

.message-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.message-bubble.customer {
  border-color: rgba(0, 113, 227, 0.16);
  background: rgba(0, 113, 227, 0.08);
}

.message-bubble.admin {
  border-color: rgba(29, 29, 31, 0.14);
  background: rgba(245, 245, 247, 0.92);
}

.message-bubble.system {
  background: rgba(245, 245, 247, 0.92);
}

.message-bubble p {
  margin: 0;
  line-height: 1.6;
}

.read-only-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.read-only-group {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.read-only-group span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-only-group strong {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
}

.read-only-group-wide {
  grid-column: 1 / -1;
}

.shipping-box,
.address-card {
  margin-top: 16px;
  padding: 18px;
}

.address-card p,
.print-grid p,
.print-note p {
  margin: 0 0 8px;
}

.customer-view-link {
  margin-top: 16px;
}

.customer-view-link a {
  color: var(--brand);
  font-weight: 700;
}

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

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

.data-table th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table a {
  color: var(--brand);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .section,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .price-panel,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .finder-search,
html[data-theme="dark"] .status-card,
html[data-theme="dark"] .simple-order-card,
html[data-theme="dark"] .panel-inner,
html[data-theme="dark"] .price-list li,
html[data-theme="dark"] .timeline article,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .meta-list div,
html[data-theme="dark"] .message-bubble,
html[data-theme="dark"] .shipping-box,
html[data-theme="dark"] .sendin-note,
html[data-theme="dark"] .address-card,
html[data-theme="dark"] .contact-tile,
html[data-theme="dark"] .legal-block {
  background: rgba(20, 20, 26, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .admin-shell .table-wrap {
  background: rgba(20, 20, 26, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .panel *,
html[data-theme="dark"] .section *,
html[data-theme="dark"] .glass-card *,
html[data-theme="dark"] .price-card *,
html[data-theme="dark"] .price-panel *,
html[data-theme="dark"] .login-panel *,
html[data-theme="dark"] .finder-search *,
html[data-theme="dark"] .status-card *,
html[data-theme="dark"] .simple-order-card *,
html[data-theme="dark"] .panel-inner *,
html[data-theme="dark"] .message-bubble *,
html[data-theme="dark"] .shipping-box *,
html[data-theme="dark"] .address-card *,
html[data-theme="dark"] .contact-tile *,
html[data-theme="dark"] .legal-block * {
  color: inherit;
}

html[data-theme="dark"] .muted,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .brand-text small,
html[data-theme="dark"] .nav a,
html[data-theme="dark"] .hero-text,
html[data-theme="dark"] .price-list small,
html[data-theme="dark"] .faq p,
html[data-theme="dark"] .timeline p,
html[data-theme="dark"] .meta-list dt,
html[data-theme="dark"] .meta-list dd,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .simple-list li,
html[data-theme="dark"] .address-card p,
html[data-theme="dark"] .print-card p,
html[data-theme="dark"] .quick-category-count,
html[data-theme="dark"] .price-brand {
  color: var(--muted) !important;
}

html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .quick-category-card.is-active,
html[data-theme="dark"] .quick-category-card.is-active * {
  color: #fff !important;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .hero-note-strip span,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .hero-highlights li {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

html[data-theme="dark"] .price-admin-service-row {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .quick-category-card {
  background: rgba(20, 20, 26, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

html[data-theme="dark"] .price-panel-header > span,
html[data-theme="dark"] #price-results-count {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

html[data-theme="dark"] .quick-category-card strong {
  color: #f5f5f7;
}

html[data-theme="dark"] .quick-category-count {
  color: #b0b0b7;
}

html[data-theme="dark"] .quick-category-card.is-active {
  border-color: rgba(41, 151, 255, 0.55);
  background: linear-gradient(180deg, #1577d8, #0a84ff);
}

html[data-theme="dark"] .quick-category-card.is-active strong,
html[data-theme="dark"] .quick-category-card.is-active .quick-category-count {
  color: #fff;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .custom-select-button {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--muted) !important;
}

html[data-theme="dark"] input:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] .custom-select-button[data-disabled="true"] {
  color: rgba(245, 245, 247, 0.72) !important;
  -webkit-text-fill-color: rgba(245, 245, 247, 0.72) !important;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill:hover,
html[data-theme="dark"] textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.04) inset !important;
  transition: background-color 99999s ease-out 0s;
}

html[data-theme="dark"] .custom-select-arrow {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .custom-select-menu {
  background: rgba(20, 20, 26, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .custom-select-option {
  color: var(--ink);
}

html[data-theme="dark"] .custom-select-option:hover,
html[data-theme="dark"] .custom-select-option:focus-visible {
  background: rgba(41, 151, 255, 0.14);
}

html[data-theme="dark"] .custom-select-option.is-selected {
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.18), rgba(41, 151, 255, 0.24));
  color: #9dd0ff;
}

html[data-theme="dark"] .request-selection-note {
  border-color: rgba(41, 151, 255, 0.2);
  background: rgba(41, 151, 255, 0.08);
}

html[data-theme="dark"] .compact-block {
  background: rgba(20, 20, 26, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .timeline-list li,
html[data-theme="dark"] .panel-inner.compact-panel-inner,
html[data-theme="dark"] .message-bubble.admin,
html[data-theme="dark"] .message-bubble.system {
  background: rgba(26, 26, 32, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .message-bubble.customer {
  background: rgba(41, 151, 255, 0.12) !important;
  border-color: rgba(41, 151, 255, 0.28) !important;
}

html[data-theme="dark"] .timeline-list li *,
html[data-theme="dark"] .panel-inner.compact-panel-inner *,
html[data-theme="dark"] .message-bubble.admin *,
html[data-theme="dark"] .message-bubble.system * {
  color: var(--ink) !important;
}

html[data-theme="dark"] .timeline-list li span,
html[data-theme="dark"] .message-bubble.admin span,
html[data-theme="dark"] .message-bubble.system span,
html[data-theme="dark"] .panel-inner.compact-panel-inner .muted {
  color: var(--muted) !important;
}

html[data-theme="dark"] .read-only-group {
  background: rgba(20, 20, 26, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .read-only-group strong {
  color: var(--ink) !important;
}

html[data-theme="dark"] .read-only-group span {
  color: var(--muted) !important;
}

html[data-theme="dark"] .subtle-badge,
html[data-theme="dark"] .admin-inline-check,
html[data-theme="dark"] .admin-sidebar-card,
html[data-theme="dark"] .admin-upload-item,
html[data-theme="dark"] .payment-qr-card,
html[data-theme="dark"] .payment-qr-inline {
  background: rgba(20, 20, 26, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .admin-upload-item a {
  color: #9dd0ff;
}

.login-panel {
  margin-top: 18vh;
}

.contact-strip-section {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

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

.contact-tile,
.legal-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.contact-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.legal-panel {
  margin-top: 24px;
  padding: 32px;
}

.legal-panel .page-title {
  margin-bottom: 24px;
}

.legal-block + .legal-block {
  margin-top: 16px;
}

.legal-block h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.legal-block p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.admin-order-hero {
  display: grid;
  gap: 18px;
}

.admin-order-hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-order-title {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.admin-order-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.admin-order-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.subtle-badge {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

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

.admin-order-cms {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 380px;
  gap: 18px;
  align-items: start;
}

.admin-order-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-order-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  min-width: 0;
}

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

.admin-chat-panel,
.admin-workflow-panel,
.admin-activity-panel,
.admin-tool-panel,
.admin-sticky-sidebar {
  padding: 26px;
}

.admin-chat-thread {
  display: grid;
  gap: 14px;
  min-height: 520px;
  max-height: 720px;
  overflow: auto;
  padding-right: 6px;
  margin-top: 4px;
}

.admin-chat-thread .message-bubble {
  width: min(84%, 720px);
}

.admin-chat-composer {
  gap: 14px;
  margin-top: 18px;
}

.admin-form-section {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.admin-form-section h3,
.admin-activity-block h3,
.admin-sidebar-card h3,
.admin-tool-panel h3 {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.admin-inline-check {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.admin-activity-stack {
  display: grid;
  gap: 18px;
}

.admin-activity-block {
  display: grid;
  gap: 14px;
}

.admin-activity-block .compact-thread {
  max-height: 240px;
}

.admin-order-sidebar {
  min-width: 0;
}

.admin-sticky-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

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

.admin-sidebar-scroll {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding-right: 6px;
}

.admin-sidebar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.admin-sidebar-sheet {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.admin-sidebar-sheet .read-only-group {
  padding: 14px 16px;
}

.admin-upload-list {
  display: grid;
  gap: 10px;
}

.admin-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-upload-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-upload-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-upload-item a {
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}

.payment-qr-card,
.payment-qr-inline {
  display: grid;
  gap: 12px;
  width: fit-content;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.payment-qr-card img,
.payment-qr-inline img {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

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

.password-toggle {
  min-height: 52px;
  padding-inline: 16px;
  white-space: nowrap;
}

.customer-db-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.customer-db-search {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.customer-db-search .finder-search {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-db-search-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-db-search-actions .button {
  margin: 0;
}

.customer-db-list,
.customer-db-orders {
  display: grid;
  gap: 14px;
}

.customer-db-card {
  gap: 10px;
}

.customer-db-card .compact-block summary {
  min-height: 0;
  padding: 14px 16px;
}

.customer-db-card .compact-block > :not(summary) {
  padding: 0 16px 16px;
}

.compact-summary-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.customer-db-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.customer-db-sheet {
  margin-top: 0;
}

.kva-item-grid {
  display: grid;
  gap: 12px;
}

.kva-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 120px 160px auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

html[data-theme="dark"] .kva-item-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.kva-add-button,
.kva-remove-button {
  align-self: end;
}

.inline-action-form {
  display: inline-flex;
}

.kva-panel,
.kva-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.kva-card {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kva-card--chat {
  margin-bottom: 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-kva {
  justify-self: stretch;
  max-width: 100%;
  padding: 18px;
  border-color: rgba(255, 208, 92, 0.26);
  background: linear-gradient(180deg, rgba(43, 35, 15, 0.34), rgba(25, 22, 14, 0.24));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

.chat-kva--pending {
  border-color: rgba(255, 208, 92, 0.26);
  background: linear-gradient(180deg, rgba(43, 35, 15, 0.34), rgba(25, 22, 14, 0.24));
}

.chat-kva--accepted {
  border-color: rgba(50, 205, 50, 0.38);
  background: linear-gradient(180deg, rgba(18, 44, 24, 0.96), rgba(12, 32, 16, 0.98));
  box-shadow: 0 0 0 1px rgba(50, 205, 50, 0.08) inset;
}

.chat-kva--declined {
  border-color: rgba(255, 92, 92, 0.38);
  background: linear-gradient(180deg, rgba(52, 18, 21, 0.96), rgba(36, 14, 17, 0.98));
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.08) inset;
}

.chat-kva__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chat-kva__actions .button {
  min-width: 220px;
}

.chat-message__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  align-items: center;
}

.chat-message__meta strong {
  font-size: 1rem;
}

.customer-kva-panel h3 {
  margin-bottom: 14px;
}

.kva-chat-header,
.kva-chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kva-chat-header {
  margin-bottom: 14px;
}

.kva-chat-header > div {
  display: grid;
  gap: 4px;
}

.kva-chat-header small,
.kva-chat-footer span {
  color: var(--muted);
}

.kva-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  font-weight: 700;
}

.kva-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.kva-meta-line,
.kva-note-box,
.kva-summary-grid > div {
  display: grid;
  gap: 6px;
}

.kva-meta-line span,
.kva-note-box span,
.kva-summary-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kva-lines {
  display: grid;
  gap: 10px;
}

.kva-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.kva-line-item > div {
  display: grid;
  gap: 4px;
}

.kva-line-item small {
  color: var(--muted);
}

.kva-line-item span {
  font-weight: 800;
  white-space: nowrap;
}

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

.kva-summary-grid strong {
  font-size: 1.05rem;
}

.kva-note-box {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.estimate-response-bubble {
  max-width: 420px;
}

.estimate-response-bubble--accepted {
  border-color: rgba(48, 209, 88, 0.28);
  background: rgba(48, 209, 88, 0.12);
}

.estimate-response-bubble--declined {
  border-color: rgba(255, 69, 58, 0.28);
  background: rgba(255, 69, 58, 0.12);
}

.customer-kva-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
}

.legal-panel .hero-text {
  margin: 0 0 24px;
  max-width: 70ch;
}

.legal-grid {
  display: grid;
  gap: 16px;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 8px;
}

.print-body {
  background: #fff;
}

.print-sheet {
  max-width: 840px;
  margin: 24px auto;
  padding: 24px;
}

.print-card {
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: none;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.print-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
}

@media (max-width: 980px) {
  .hero-crafted,
  .feature-grid,
  .dashboard-grid,
  .two-column,
  .timeline,
  .price-grid,
  .finder,
  .status-cards,
  .contact-strip-grid,
  .price-result-layout,
  .crafted-grid,
  .home-shortcuts {
    grid-template-columns: 1fr;
  }

  .price-admin-service-row {
    grid-template-columns: 1fr;
  }

  .quick-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-db-search,
  .kva-item-row {
    grid-template-columns: 1fr;
  }

  .hero-devices,
  .device-scene {
    min-height: 420px;
  }

  .hero-phone {
    left: 2%;
    width: 170px;
    height: 332px;
  }

  .hero-tablet {
    width: 248px;
    height: 332px;
  }

  .hero-laptop {
    left: 12%;
    width: 270px;
  }

  .offset-card,
  .timeline-crafted article:nth-child(2),
  .timeline-crafted article:nth-child(4) {
    transform: none;
  }

  .admin-order-cms,
  .admin-order-main-grid,
  .admin-tools-grid,
  .admin-order-summary {
    grid-template-columns: 1fr;
  }

  .admin-order-hero-main {
    flex-direction: column;
  }

  .admin-order-pills {
    justify-content: flex-start;
  }

  .admin-sticky-sidebar {
    position: static;
  }

  .admin-sidebar-scroll {
    max-height: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--container));
    padding-top: 10px;
  }

  .admin-shell .panel,
  .admin-shell .price-admin-card,
  .admin-shell .notice {
    padding: 20px;
  }

  .admin-shell .compact-block summary {
    min-height: 52px;
    padding: 14px 16px;
  }

  .admin-shell .compact-block > :not(summary) {
    padding: 0 16px 16px;
  }

  .hero,
  .section,
  .source-card,
  .glass-card,
  .contact-form,
  .lookup-form,
  .login-panel,
  .print-card,
  .price-panel {
    padding: 22px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.6rem, 14vw, 4.1rem);
  }

  .hero-crafted {
    padding: 34px 22px 24px;
  }

  .quick-category-grid {
    grid-template-columns: 1fr;
  }

  .password-field {
    grid-template-columns: 1fr;
  }

  .quick-category-card {
    min-height: 76px;
    padding: 18px 18px;
  }

  .hero-devices,
  .device-scene {
    min-height: 360px;
  }

  .hero-phone {
    left: 0;
    width: 142px;
    height: 274px;
  }

  .hero-tablet {
    top: 76px;
    width: 204px;
    height: 274px;
  }

  .hero-laptop {
    left: 6%;
    width: 220px;
    height: 178px;
  }

  .form-grid,
  .repair-flow-grid,
  .print-grid {
    grid-template-columns: 1fr;
  }

  .compact-summary,
  .compact-order-card,
  .compact-lookup-form,
  .read-only-sheet {
    grid-template-columns: 1fr;
  }

  .admin-chat-thread {
    min-height: 360px;
    max-height: 520px;
  }

  .footer {
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .subpage-header,
  .button {
    display: none !important;
  }

  .print-sheet {
    margin: 0;
    padding: 0;
  }
}

/* Dark mode contrast safety: text must stay clearly lighter than the background. */
html[data-theme="dark"] .timeline-list li,
html[data-theme="dark"] .panel-inner.compact-panel-inner,
html[data-theme="dark"] .message-bubble.admin,
html[data-theme="dark"] .message-bubble.system {
  background: #1a1b22 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .timeline-list li strong,
html[data-theme="dark"] .panel-inner.compact-panel-inner h3,
html[data-theme="dark"] .message-bubble.admin strong,
html[data-theme="dark"] .message-bubble.system strong,
html[data-theme="dark"] .message-bubble.admin p,
html[data-theme="dark"] .message-bubble.system p,
html[data-theme="dark"] .panel-inner.compact-panel-inner p,
html[data-theme="dark"] .panel-inner.compact-panel-inner a {
  color: #f5f7ff !important;
}

html[data-theme="dark"] .timeline-list li span,
html[data-theme="dark"] .message-bubble.admin span,
html[data-theme="dark"] .message-bubble.system span,
html[data-theme="dark"] .panel-inner.compact-panel-inner .muted {
  color: #c5cad8 !important;
}
