/* =========================================================
   KD Shipping Plus - Order Builder
   "KD Utility Pulse" design system
   Utility-first POS aesthetic: flat tonal layers, 1px
   outlines for depth, no gradients, no floating cards.
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #eef4f7;            /* surface-gray (Level 0) */
  --paper: #fbfcf8;
  --card: #ffffff;          /* Level 1 cards */
  --card-alt: #f3f7f9;      /* zebra / subtle fill */
  --rail: #f7fafb;          /* order rail */
  --border: #d7e0e5;        /* Level 1 outline */
  --border-strong: #b8c8d1;
  --focus-ring: rgba(0, 101, 144, 0.24);

  /* Ink */
  --ink: #14191d;
  --ink-variant: #36444c;
  --ink-faint: #71818a;

  /* Brand accents */
  --primary: #006590;       /* deep cyan - primary actions */
  --primary-strong: #003f5e;
  --cyan: #168dbf;          /* active states / standard categories */
  --cyan-wash: #e3f2f8;
  --shipping-blue: #1e5fae;
  --magenta: #9f1f63;       /* specialty / add-ons */
  --magenta-bright: #d9207d;
  --magenta-wash: #f8e2ed;
  --success: #2f9a46;
  --success-deep: #257338;
  --success-wash: #e7f3ea;
  --danger: #b3261e;        /* rush / delete / errors */
  --danger-bright: #d63b32;
  --danger-wash: #fbe2df;
  --yellow: #f1d85a;
  --tertiary: #79522a;

  /* Shape - soft, not over-rounded */
  --r-btn: 0.25rem;
  --r-card: 0.5rem;
  --r-input: 0.25rem;
  --r-pill: 9999px;

  /* Depth - only active/modal lift */
  --shadow-ambient: 0 4px 12px rgba(23, 28, 32, 0.05);
  --shadow-card: 0 18px 48px rgba(0, 55, 82, 0.09);
  --shadow-panel: 0 28px 70px rgba(0, 55, 82, 0.12);

  /* Rhythm (8px grid) */
  --tap: 48px;

  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 154, 218, 0.15), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(217, 32, 125, 0.09), transparent 30rem),
    linear-gradient(180deg, #f7fbfd 0%, var(--bg) 52%, #eaf1f4 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(0, 101, 144, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 101, 144, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

::selection {
  background: rgba(0, 154, 218, 0.22);
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font-family: inherit;
}

button,
a,
input,
select,
textarea {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

button:active,
a:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Monospace for all numeric/financial + SKU-like labels */
.svc-price,
.config-price,
.config-price-detail,
.btn-add-price,
.step-input,
.order-chip,
.done-number,
.rail-item-price,
.rail-totals dd,
.summary-totals dd,
.ritem-price,
.ritem-meta,
.done-item-price,
.done-item-qty,
.price-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Caps labels */
.hero-kicker,
.eyebrow,
.crumb,
.field-label em,
.kv span,
.brand-tag,
.label-caps {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 10px 24px rgba(0, 55, 82, 0.08);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms ease;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #087ca9);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 101, 144, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  border-color: var(--primary-strong);
  box-shadow: 0 18px 38px rgba(0, 101, 144, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--cyan-wash);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-variant);
}

.btn-ghost:hover {
  background: var(--card-alt);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 56px;
  font-size: 1.05rem;
  padding: 0 1.6rem;
}

.btn-hero {
  min-height: 56px;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- App shell ---------- */

.pos-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  isolation: isolate;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem;
  min-height: 64px;
  background: rgba(251, 252, 248, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 38px rgba(0, 55, 82, 0.08);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 101, 144, 0.16);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
}

.progress {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-faint);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
}

.progress li:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  transform: translateY(-1px);
}

.progress .dot {
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--card-alt);
  color: var(--ink-variant);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.progress li.active {
  border-color: var(--cyan);
  background: var(--cyan-wash);
  color: var(--primary-strong);
  box-shadow: 0 10px 28px rgba(0, 101, 144, 0.1);
}

.progress li.active .dot {
  background: var(--primary);
  color: #fff;
}

.progress li.complete {
  color: var(--success-deep);
}

.progress li.complete .dot {
  background: var(--success);
  color: #fff;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-chip {
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-btn);
  background: var(--success-wash);
  border: 1px solid var(--success);
  color: var(--success-deep);
  font-weight: 700;
  font-size: 0.85rem;
}

.link-admin {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-btn);
}

.link-admin:hover {
  color: var(--primary);
  background: var(--cyan-wash);
}

/* ---------- Work area ---------- */

.work-area {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.stage {
  padding: clamp(20px, 3vw, 44px);
  overflow: auto;
}

.screen {
  max-width: 1120px;
  margin: 0 auto;
}

.screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 24px;
}

.screen-head-titles {
  min-width: 0;
}

.screen-title {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: -0.055em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-wrap: balance;
}

.title-ico {
  width: 44px;
  height: 44px;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--accent) 13%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 15%, transparent);
}

.screen-sub {
  color: var(--ink-variant);
  font-size: 18px;
  margin-top: 0.4rem;
  max-width: 62ch;
  text-wrap: pretty;
}

.crumb {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.crumb-link {
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
}

.crumb-link:hover {
  text-decoration: underline;
}

.screen-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 24px;
}

/* ---------- Hero / start ---------- */

.screen-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 154, 218, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 248, 0.88));
  border: 1px solid rgba(0, 101, 144, 0.14);
  border-radius: 1.25rem;
  padding: clamp(32px, 5vw, 68px);
  box-shadow: var(--shadow-panel);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -88px;
  width: 240px;
  height: 240px;
  border: 34px solid rgba(0, 101, 144, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo {
  height: clamp(60px, 7vw, 84px);
  width: auto;
  margin-bottom: clamp(28px, 5vw, 54px);
  filter: drop-shadow(0 10px 20px rgba(0, 55, 82, 0.08));
}

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.075em;
  max-width: 13ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-sub {
  color: var(--ink-variant);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.48;
  max-width: 46ch;
  margin-bottom: 28px;
  text-wrap: pretty;
}

.hero-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.hero-points {
  display: grid;
  gap: 12px;
  align-content: center;
}

.hero-point {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 101, 144, 0.13);
  border-radius: 1rem;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(0, 55, 82, 0.07);
  backdrop-filter: blur(14px);
}

.hero-ico {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  color: color-mix(in srgb, var(--accent) 75%, #13212a);
}

.hero-point strong {
  display: block;
}

.hero-point span {
  color: var(--ink-variant);
  font-size: 0.92rem;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screen > .form-grid {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 101, 144, 0.12);
  border-radius: 1.1rem;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-variant);
}

.field-label em {
  font-style: normal;
  color: var(--magenta);
  font-size: 11px;
  margin-left: 0.4rem;
}

.input {
  width: 100%;
  min-height: var(--tap);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0.6rem 0.85rem;
  font-size: 18px;
  font-family: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76) inset;
}

.input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--focus-ring), 0 14px 30px rgba(0, 55, 82, 0.08);
}

textarea.input {
  resize: vertical;
  min-height: 92px;
}

.input-search {
  max-width: 280px;
  min-height: var(--tap);
}

.form-error {
  margin-top: 16px;
  padding: 0.75rem 1rem;
  border-radius: var(--r-input);
  background: var(--danger-wash);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-weight: 700;
}

/* ---------- Category grid ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.cat-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 252, 248, 0.8)),
    color-mix(in srgb, var(--accent) 4%, white);
  padding: 22px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 55, 82, 0.06);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.cat-tile::after {
  content: "";
  position: absolute;
  inset: auto -42px -56px auto;
  width: 128px;
  height: 128px;
  border: 24px solid color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.cat-tile:hover {
  background: color-mix(in srgb, var(--accent) 6%, white);
  border-color: var(--accent);
  box-shadow: 0 22px 46px color-mix(in srgb, var(--accent) 15%, transparent);
  transform: translateY(-3px);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: color-mix(in srgb, var(--accent) 14%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
}

.cat-name {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.08;
  margin-top: auto;
  max-width: 12ch;
}

.cat-count {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ---------- Service grid ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 14px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  padding: 20px;
  min-height: 194px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 55, 82, 0.06);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.svc-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, white);
  box-shadow: 0 22px 46px color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-3px);
}

.svc-ico {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: color-mix(in srgb, var(--accent) 14%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
}

.svc-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.svc-name {
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.14;
  text-wrap: balance;
}

.svc-desc {
  color: var(--ink-variant);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.svc-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--magenta);
  background: var(--magenta-wash);
  border: 1px solid color-mix(in srgb, var(--magenta) 35%, white);
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
}

.svc-price {
  margin-top: auto;
  align-self: flex-end;
  font-weight: 700;
  font-size: 1.34rem;
  color: var(--ink);
  text-align: right;
}

.svc-price small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.empty-note {
  color: var(--ink-faint);
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
}

/* ---------- Configure ---------- */

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.config-main {
  display: grid;
  gap: 16px;
}

.config-block {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 101, 144, 0.12);
  border-radius: 1rem;
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 14px 36px rgba(0, 55, 82, 0.06);
}

.config-h {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-btn {
  width: 56px;
  height: 56px;
  border-radius: 0.72rem;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  box-shadow: 0 10px 24px rgba(0, 55, 82, 0.06);
}

.step-btn:hover {
  background: var(--cyan-wash);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.step-input {
  width: 110px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.72rem;
  color: var(--ink);
}

.step-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.step-unit {
  color: var(--ink-faint);
  font-weight: 700;
}

.config-note {
  margin-top: 12px;
  color: var(--tertiary);
  font-weight: 700;
  font-size: 0.9rem;
}

.tier-hint {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--card-alt), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--border);
  display: grid;
  gap: 0.2rem;
}

.tier-hint-title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-variant);
}

.tier-hint-row {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-variant);
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.opt-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  min-height: 64px;
  box-shadow: 0 10px 24px rgba(0, 55, 82, 0.05);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.opt-card:hover {
  border-color: var(--magenta);
  transform: translateY(-2px);
}

.opt-check {
  width: 26px;
  height: 26px;
  border-radius: var(--r-btn);
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all 0.12s ease;
}

.opt-card.selected {
  border-color: var(--magenta);
  background: var(--magenta-wash);
  box-shadow: 0 16px 34px rgba(159, 31, 99, 0.13);
}

.opt-card.selected .opt-check {
  background: var(--magenta);
  border-color: var(--magenta);
}

.opt-card.selected .opt-check::after {
  content: "✓";
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
}

.opt-text {
  display: flex;
  flex-direction: column;
}

.opt-name {
  font-weight: 700;
}

.opt-amount {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.config-side {
  position: sticky;
  top: 88px;
}

.config-price-card {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 22%, transparent), transparent 9rem),
    #17242b;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 1rem;
  padding: 24px;
  display: grid;
  gap: 0.35rem;
  color: #fff;
  box-shadow: var(--shadow-panel);
}

.config-price-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  font-size: 12px;
}

.config-price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.config-price-detail {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 24px;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(238, 244, 247, 0), rgba(238, 244, 247, 0.96) 34%);
  border-top: 1px solid var(--border);
}

.btn-add {
  flex: 1;
  max-width: 460px;
  justify-content: space-between;
}

.btn-add-price {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-btn);
}

/* ---------- Review ---------- */

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.review-col {
  display: grid;
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 101, 144, 0.12);
  border-radius: 1rem;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(0, 55, 82, 0.06);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-head .card-title {
  margin-bottom: 0;
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kv div {
  display: flex;
  flex-direction: column;
}

.kv span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}

.ritems {
  display: grid;
  gap: 8px;
}

.ritem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
}

.ritem-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ritem-name {
  font-weight: 700;
}

.ritem-meta,
.ritem-opts {
  color: var(--ink-variant);
  font-size: 0.85rem;
}

.ritem-side {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ritem-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.ritem-actions {
  display: flex;
  gap: 0.4rem;
}

.chip-action {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 0.55rem;
  padding: 0 0.85rem;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
}

.chip-action:hover {
  background: var(--cyan-wash);
  border-color: var(--cyan);
}

.chip-danger {
  color: var(--danger);
}

.chip-danger:hover {
  background: var(--danger-wash);
  border-color: var(--danger);
}

.review-summary {
  position: sticky;
  top: 88px;
}

.card-summary {
  display: grid;
  gap: 12px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  min-height: 64px;
  box-shadow: 0 10px 24px rgba(0, 55, 82, 0.05);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.toggle-card:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.toggle-card.on {
  border-color: var(--cyan);
  background: var(--cyan-wash);
}

/* Rush toggle uses the urgent-red semantic when on */
.toggle-card.toggle-rush.on,
.toggle-card[data-action="toggle-rush"].on {
  border-color: var(--danger);
  background: var(--danger-wash);
}

.toggle-text {
  display: flex;
  flex-direction: column;
}

.toggle-text strong {
  font-weight: 700;
}

.toggle-text span {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.switch {
  width: 52px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background 0.12s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.12s ease;
}

.toggle-card.on .switch {
  background: var(--cyan);
}

.toggle-card[data-action="toggle-rush"].on .switch {
  background: var(--danger);
}

.toggle-card.on .switch::after {
  transform: translateX(22px);
}

.summary-totals {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
}

.summary-totals div {
  display: flex;
  justify-content: space-between;
  color: var(--ink-variant);
}

.summary-totals dt,
.summary-totals dd {
  margin: 0;
}

.summary-totals dd {
  font-weight: 700;
  color: var(--ink);
}

.summary-grand {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  font-size: 1.3rem;
}

.summary-grand dt {
  font-weight: 700;
  color: var(--ink);
}

.summary-grand dd {
  font-weight: 700;
  color: var(--success-deep);
}

.fine {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ---------- Order rail ---------- */

.order-rail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(247, 250, 251, 0.96)),
    var(--rail);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100dvh - 64px);
  box-shadow: -14px 0 38px rgba(0, 55, 82, 0.07);
}

.rail-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.rail-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.rail-customer {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.rail-items {
  flex: 1;
  overflow: auto;
  padding: 12px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.rail-empty {
  color: var(--ink-faint);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px 8px;
}

.rail-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 55, 82, 0.05);
}

.rail-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.rail-item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.rail-item-qty,
.rail-item-opts {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.rail-item-opts {
  color: var(--magenta);
}

.rail-item-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rail-item-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.rail-item-remove {
  width: 30px;
  height: 30px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 0.85rem;
}

.rail-item-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-wash);
}

.rail-footer {
  border-top: 1px solid var(--border);
  padding: 18px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
}

.rail-totals {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 12px;
}

.rail-totals div {
  display: flex;
  justify-content: space-between;
  color: var(--ink-variant);
  font-size: 0.92rem;
}

.rail-totals dt,
.rail-totals dd {
  margin: 0;
}

.rail-totals dd {
  font-weight: 700;
  color: var(--ink);
}

.rail-grand {
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
  margin-top: 0.2rem;
  font-size: 1.32rem !important;
}

.rail-grand dt {
  font-weight: 700;
  color: var(--ink) !important;
}

.rail-grand dd {
  font-weight: 700;
  color: var(--success-deep) !important;
}

.pos-app[data-step="start"] .order-rail,
.pos-app[data-step="done"] .order-rail {
  display: none;
}

.pos-app[data-step="start"] .work-area,
.pos-app[data-step="done"] .work-area {
  grid-template-columns: 1fr;
}

/* ---------- Confirmation ---------- */

.screen-done {
  display: grid;
  place-items: center;
}

.done-card {
  width: min(620px, 100%);
  background:
    radial-gradient(circle at top, rgba(47, 154, 70, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 154, 70, 0.22);
  border-top: 0;
  border-radius: 1.25rem;
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  box-shadow: var(--shadow-panel);
}

.done-badge {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  background: var(--success-wash);
  border: 2px solid var(--success);
  color: var(--success-deep);
  font-size: 2.2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.done-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 850;
}

.done-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0.25rem;
}

.done-items {
  text-align: left;
  margin: 24px 0;
  display: grid;
  gap: 8px;
}

.done-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.8);
}

.done-item-name {
  font-weight: 700;
  display: block;
}

.done-item-opts {
  color: var(--magenta);
  font-size: 0.82rem;
}

.done-item-qty {
  color: var(--ink-variant);
  font-size: 0.9rem;
}

.done-item-price {
  font-weight: 700;
}

.done-card .summary-totals {
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.done-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------- Print area (hidden on screen) ---------- */

.print-area {
  display: none;
}

/* =========================================================
   Pricing editor (shared classes, utility styling)
   ========================================================= */

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 44px);
  background: rgba(251, 252, 248, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  box-shadow: 0 12px 38px rgba(0, 55, 82, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header-logo {
  height: 58px;
  width: auto;
}

.app-header h1 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.app-header .muted {
  color: var(--ink-variant);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--magenta);
  margin-bottom: 0.3rem;
}

.header-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.editor-layout {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
}

.panel {
  border: 1px solid rgba(0, 101, 144, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 14px 36px rgba(0, 55, 82, 0.06);
  backdrop-filter: blur(14px);
}

.panel-heading,
.service-card-header,
.history-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 16px;
}

.muted,
.field-help {
  color: var(--ink-variant);
}

.field-help {
  font-size: 0.86rem;
  font-weight: 400;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: var(--tap);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-btn);
  background: linear-gradient(135deg, var(--primary), #087ca9);
  color: #fff;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 101, 144, 0.18);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
}

.button:hover,
.button:focus {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  border-color: var(--primary-strong);
  transform: translateY(-1px);
}

.button-secondary {
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 55, 82, 0.06);
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--cyan-wash);
  border-color: var(--cyan);
}

.button-ghost {
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus {
  background: var(--card-alt);
}

.button-danger {
  background: var(--danger);
  border-color: var(--danger);
}

.button-danger:hover,
.button-danger:focus {
  background: #8c0f0f;
  border-color: #8c0f0f;
}

.quote-details,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.editor-layout label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.editor-layout input,
.editor-layout select,
.editor-layout textarea {
  width: 100%;
  min-height: var(--tap);
  border: 1.5px solid var(--border-strong);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  font: inherit;
}

.editor-layout input[type="number"] {
  font-family: var(--font-mono);
}

.editor-layout input:focus,
.editor-layout select:focus,
.editor-layout textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--focus-ring), 0 14px 30px rgba(0, 55, 82, 0.08);
}

.wide-field {
  grid-column: 1 / -1;
}

.service-editor-list,
.history-list {
  display: grid;
  gap: 12px;
}

/* Zebra striping for service rows */
.service-card,
.history-entry,
.help-box {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 55, 82, 0.05);
}

.service-card:nth-child(even) {
  background: rgba(243, 247, 249, 0.82);
}

.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 700;
}

.check-row input[type="checkbox"] {
  width: auto;
  min-width: 24px;
  min-height: 24px;
  accent-color: var(--primary);
}

.status-text {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-weight: 700;
  white-space: pre-wrap;
  border-radius: 0.7rem;
}

.status-text:not(:empty) {
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.status-text[data-type="success"] {
  color: var(--success-deep);
}

.status-text[data-type="error"] {
  color: var(--danger);
}

.status-text[data-type="info"] {
  color: var(--primary);
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 1rem;
  margin: 0;
  padding: 16px;
  color: var(--ink-faint);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.nested-editor {
  margin-top: 16px;
}

.nested-editor summary {
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-strong);
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 190px) minmax(120px, 160px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.tier-row {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 160px) auto;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.history-entry ul {
  margin: 0;
  padding-left: 1.25rem;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.unsaved-indicator {
  color: var(--danger);
  font-weight: 700;
  display: inline-flex;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(179, 38, 30, 0.24);
  border-radius: 0.35rem;
  background: var(--danger-wash);
}

/* Modal - the one place depth lifts (Level 2) */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(20, 25, 29, 0.48);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(760px, 100%);
  max-height: 80vh;
  overflow: auto;
  border-radius: 1.15rem;
  background: var(--paper);
  border: 1px solid rgba(0, 101, 144, 0.24);
  box-shadow: 0 32px 88px rgba(0, 32, 48, 0.28);
  padding: clamp(20px, 3vw, 30px);
}

.diff-list {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.diff-list li {
  margin-bottom: 0.35rem;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .work-area {
    grid-template-columns: 1fr;
  }

  .order-rail {
    position: static;
    height: auto;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .rail-items {
    max-height: 280px;
  }

  .config-side,
  .review-summary {
    position: static;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .topbar-meta {
    margin-left: auto;
  }

  .progress {
    display: none;
  }

  .screen-hero,
  .config-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .stage {
    padding: 16px;
  }

  .brand-logo,
  .app-header-logo,
  .hero-logo {
    max-width: min(72vw, 320px);
    height: auto;
  }

  .hero-card,
  .done-card {
    border-radius: 1rem;
  }

  .form-grid,
  .kv {
    grid-template-columns: 1fr;
  }

  .screen-head {
    flex-direction: column;
  }

  .screen-title {
    font-size: 26px;
    line-height: 1.05;
  }

  .cat-grid,
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .mini-row,
  .tier-row {
    grid-template-columns: 1fr;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* =========================================================
   Print: work order only
   ========================================================= */

@media print {
  body::before {
    display: none;
  }

  .pos-app {
    display: none !important;
  }

  .print-area {
    display: block;
  }

  body {
    background: #fff;
  }
}

.pf {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  color: #111;
  font-family: var(--font-sans);
  font-size: 12.5px;
}

.pf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px solid #111;
  padding-bottom: 12px;
}

.pf-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.pf-contact {
  color: #444;
  font-size: 11px;
  margin-top: 0.4rem;
}

.pf-order {
  text-align: right;
}

.pf-order-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #444;
}

.pf-order-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}

.pf-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.pf-meta-box {
  border: 1px solid #ccc;
  border-radius: var(--r-input);
  padding: 12px 14px;
}

.pf-meta-box h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 0.4rem;
}

.pf-meta-box p {
  margin: 0.1rem 0;
}

.pf-meta-box span {
  color: #555;
  display: inline-block;
  min-width: 96px;
}

.pf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.pf-table th,
.pf-table td {
  border-bottom: 1px solid #ddd;
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.pf-table thead th {
  border-bottom: 2px solid #111;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-num {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.pf-opts {
  color: #555;
  font-size: 11px;
}

.pf-cat {
  color: #888;
  font-size: 10.5px;
}

.pf-table tfoot td {
  border-bottom: 0;
  font-weight: 700;
}

.pf-total td {
  border-top: 2px solid #111;
  font-size: 1.05rem;
}

.pf-notes {
  margin-top: 16px;
  border: 1px solid #ccc;
  border-radius: var(--r-input);
  padding: 12px 14px;
  min-height: 60px;
}

.pf-notes h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 0.3rem;
}

.pf-disclaimer {
  color: #666;
  font-size: 10.5px;
  margin-top: 12px;
}

.pf-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.pf-sign-line {
  border-top: 1px solid #111;
  padding-top: 0.3rem;
  color: #555;
  font-size: 11px;
}
