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

/* ================= DESIGN TOKENS ================= */
:root {
  /* ===== COLOR SYSTEM =====
     Controls page background, card surfaces, brand gold tones, and primary text colors */
  --bg-page: #f2ede6;
  --bg-card: #fbf7ef;
  --primary-gold: #d9c19a;
  --gold-light: #f2e5cb;
  --gold-hover: #e8d7b5;
  --text-brown: #6f5534;

  /* ===== SHADOW SYSTEM =====
     Used for cards, elevated sections, and button depth effects */
  --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 30px 80px rgba(0, 0, 0, 0.07);
  --shadow-button: 0 6px 15px rgba(0, 0, 0, 0.08);

  /* ===== BORDER RADIUS SYSTEM =====
     Controls rounded corners for cards, buttons, inputs, units */
  --radius-large: 28px;
  --radius-medium: 10px;
  --radius-small: 10px;

  /* ===== GLOBAL SPACING SCALE (FLUID) =====
     Used for margins, paddings, gaps across layout */
  --space-xs: clamp(6px, 0.5vw, 8px);
  --space-sm: clamp(10px, 0.8vw, 15px);
  --space-md: clamp(18px, 1.5vw, 30px);
  --space-lg: clamp(24px, 2vw, 40px);
  --space-xl: clamp(32px, 2.5vw, 50px);
  --space-xxl: clamp(50px, 4vw, 80px);

  /* ===== FONTS SYSTEM =====
     Controls fonts, scaling text sizes, and weights globally */
  --font-primary: Georgia, serif;

  --font-size-xs: clamp(12px, 0.75vw, 13px);
  --font-size-sm: clamp(14px, 0.9vw, 15px);
  --font-size-md: clamp(15px, 1vw, 16px);
  --font-size-lg: clamp(16px, 1.2vw, 18px);
  --font-size-xl: clamp(20px, 1.8vw, 25px);
  --font-size-xxl: clamp(22px, 2.2vw, 28px);

  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ===== MOTION SYSTEM =====
     Controls animation timing for hover, transitions, UI feedback */
  --motion-fast: 0.18s ease;
  --motion-medium: 0.3s ease;
  --motion-slow: 0.45s ease;

  /* ===== LAYOUT WIDTH SYSTEM =====
     Controls max widths of main containers and project cards */
  --container-max: 860px;
  --container-narrow: 700px;

  /* ===== CORE COMPONENT SIZES =====
     Controls calculator form sizing and reusable UI elements */
  --panel-label-width: 10rem;
  --input-height: 3rem;
  --button-height: 3rem;
  --circle-size: 2.4rem;
  --unit-box-width: 5rem;
  --unit-box-height: 2.8rem;
  --legend-size: 1.125rem;

  /* ===== PROJECT LANDING OPTION SIZE =====
     Controls width & height of project selection buttons (Flats / Shops etc.) */
  --size-project-option-width: 13.75rem;
  --size-project-option-height: 4.2rem;

  /* ===== HOME BUTTON SIZE =====
     Controls circular home button dimensions */
  --size-home-btn: 3.4375rem;

  /* ===== MICRO SPACING TOKENS =====
     Used for table padding, small layout adjustments */
  --space-8: 0.5rem;
  --space-10: 0.625rem;
  --space-12: 0.75rem;
  --space-15: 0.9375rem;
  --space-20: 1.25rem;
  --space-25: 1.5625rem;
  --space-30: 1.875rem;

  /* ===== MICRO RADIUS & FONT TOKENS =====
     Used for fine adjustments in small components */
  --radius-20: 1.25rem;
  --font-13: 0.8125rem;
  --font-14: 0.875rem;

  /* ===== LETTER SPACING =====
     Controls subtle uppercase / title spacing */
  --letter-spacing-sm: 0.0625rem;

  /* ===== BORDER WIDTH SYSTEM =====
     Controls consistent border thickness */
  --border-thin: 1px;
  --border-medium: 2px;
}

html {
  font-size: clamp(14px, 1vw, 16px);
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg-page);
  padding: var(--space-lg) var(--space-xl);
}

/* Main Card */
.main-card {
  display: flex;
  max-width: var(--container-max);
  margin: auto;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  overflow: hidden;
}

/* Project card */

.project-card {
  max-width: var(--container-narrow);
  margin: auto;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
}

.project-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--letter-spacing-sm);
}

.project-sub-title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xl);
  letter-spacing: var(--letter-spacing-sm);
}

.project-options {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
}

.project-options-button {
  width: var(--size-project-option-width);
  height: var(--size-project-option-height);
  border-radius: var(--radius-medium);
  border: var(--border-thin) solid var(--primary-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}

.project-options-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.project-options-button span {
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-sm);
}

/* Spacing utility for second project card */
.project-spaced {
  margin-top: var(--space-xl);
}

/* Floor plan link block */
.floorplan-link-wrapper {
  margin-top: var(--space-xl);
  text-align: center;
}

.floorplan-link {
  cursor: pointer;
  font-size: var(--font-size-md);
  color: var(--text-brown);
  text-decoration: underline;
}

/* DISABLED PROJECT LOOK */

.project-disabled {
  opacity: 0.55;
  filter: grayscale(40%);
  pointer-events: none;
}

.project-disabled .project-options-button {
  cursor: not-allowed;
}

.project-disabled .project-options-button:hover {
  transform: none;
  box-shadow: none;
}

/* ================= ADMIN DASHBOARD ================= */

/* ================= ADMIN PANEL CARD ================= */

.admin-panel-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  padding: var(--space-xl) var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* One group: title + line + buttons */
.admin-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-section-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-brown);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.admin-section-line {
  flex: 1;
  height: 1px;
  background: var(--primary-gold);
  opacity: 0.35;
}

.admin-section-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
}

/* Individual action buttons — fixed width so all align perfectly */
.admin-action-btn {
  height: 38px;
  width: 220px;
  padding: 0 20px;
  border-radius: 40px;
  border: 1px solid var(--primary-gold);
  background: transparent;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-brown);
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: left;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}

.admin-action-btn:hover {
  background: var(--gold-light);
  border-color: #a07840;
  color: #3a2410;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(160,128,80,0.14);
}

.admin-action-btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Coming soon buttons — muted, not interactive */
.admin-action-btn--soon {
  opacity: 0.38;
  cursor: not-allowed;
  border-style: dashed;
}

.admin-action-btn--soon:hover {
  background: transparent;
  border-color: var(--primary-gold);
  color: var(--text-brown);
  transform: none;
  box-shadow: none;
}

#admin-page {
  text-align: center;
}

#admin-page .project-title {
  font-size: var(--font-size-xl);
  letter-spacing: 0.08em;
}

#admin-page .project-options-button {
  width: 14rem;
  height: 4rem;
  font-size: var(--font-size-sm);
}

/* HOME BUTTON */

.home-btn {
  position: fixed;
  top: var(--space-30);
  left: var(--space-30);
  width: var(--size-home-btn);
  height: var(--size-home-btn);

  border-radius: 50%;
  border: none;
  cursor: pointer;
  /* hidden initially */
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, #e5cfa6, #d5b885);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  font-size: var(--font-size-xl);
}

.home-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ================= ADMIN BUTTON ================= */

.admin-btn {
  position: fixed;
  top: var(--space-30);
  right: var(--space-30);

  height: var(--size-home-btn);
  padding: 0 var(--space-lg);

  border-radius: var(--radius-large);
  border: none;
  cursor: pointer;

  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-sm);

  background: linear-gradient(145deg, #e5cfa6, #d5b885);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}

.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Left Panel */
.left-panel {
  flex: 0 0 22%;
  padding: var(--space-xxl) var(--space-lg) var(--space-xl);
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #efe2cd, #e6d5bc);
}
.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/white pattern vertical.png") center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}
.left-panel > * { position: relative; z-index: 1; }

/* Reset button — uses refresh.png as the button; image provides the circle shape */
.calc-reset-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(111, 85, 52, 0.28);
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  transition: background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.calc-reset-btn:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(111, 85, 52, 0.5);
}
.calc-reset-btn:active { transform: scale(0.90); }
.calc-reset-btn svg {
  width: 14px; height: 14px;
  color: var(--text-brown);
  opacity: 0.72;
  transition: opacity var(--motion-fast);
}
.calc-reset-btn:hover svg { opacity: 1; }

.left-panel img {
  max-width: 6rem;
  margin-bottom: var(--space-md);
}

.left-panel h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.left-panel p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Right Panel */
.right-panel {
  flex: 1;
  padding: var(--space-xl) var(--space-xxl);
  min-width: 0;
  overflow: hidden;
}

/* Form Row Layout */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: 0;
}

.form-row label {
  width: var(--panel-label-width);
  font-size: var(--font-size-md);
}

.form-row select,
.form-row input {
  height: var(--input-height);
  border-radius: var(--radius-medium);
  border: var(--border-thin) solid #ddd;
  background: #faf8f3;
  padding: 0 var(--space-sm);
  font-size: var(--font-size-md);
  max-width: 100%;
}
/* Remove number input spinners in calculator */
.right-panel input[type=number]::-webkit-inner-spin-button,
.right-panel input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.right-panel input[type=number] { -moz-appearance: textfield; }

/* Calculator layout wrappers — invisible on desktop, active in phone media query */
.calc-rr-total-row { display: contents; }
.calc-adv-cols     { display: contents; }

/* Desktop: parking row never wraps */
.calc-parking-row  { flex-wrap: nowrap !important; }
.right-panel .form-row { flex-wrap: nowrap; }

/* Luxury Divider Line */
.lux-divider {
  margin: var(--space-md) 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(217, 193, 154, 0.15),
    rgba(217, 193, 154, 0.7),
    rgba(217, 193, 154, 0.15)
  );
}

/* Select Flat bigger */
#flatSelect {
  width: 100%;
  max-width: 24rem;
}

/* RR + Total half width */
#rrRate,
#totalRate {
  width: 12rem;
}

#customerName {
  width: 18rem;
}

/* Circle Groups */
.circle-group {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}

.pill-group {
  display: flex;
  gap: var(--space-sm);
  width: 18rem;
}

.circle-btn {
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  border: 1px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: white;
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}

.circle-btn.active {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
}

/* Pill Options */
.option-pill {
  flex: 1;
  /* take equal space */
  height: var(--input-height);
  /* match input height */
  border-radius: var(--radius-medium);
  border: var(--border-thin) solid #ddd;
  cursor: pointer;
  background: #faf8f3;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: var(--font-size-sm);
  /* same visual balance as input */
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}

.option-pill.active {
  background: var(--gold-light);
  border-color: var(--primary-gold);
}

.option-pill:hover {
  background: var(--gold-hover);
}

/* Generate Button */
.generate-btn {
  margin-top: var(--space-25);

  width: 100%;
  height: var(--button-height);
  border-radius: var(--radius-medium);
  border: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  cursor: pointer;

  background: linear-gradient(145deg, #e5cfa6, #d5b885);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    var(--shadow-button);

  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}

.generate-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.view-btn {
  width: 100%;
  height: var(--button-height);
  border-radius: var(--radius-medium);
  border: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;

  background: var(--gold-light);
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
  margin-top: auto;
}

.view-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.hidden-input {
  display: none;
}

/* Custom styled select wrapper (calculator unit dropdown) */
.calc-select-wrap {
  position: relative;
  width: 20.2rem;
  max-width: 100%;
  display: inline-block;
}
.calc-select-wrap select {
  width: 100%;
  height: var(--input-height);
  border-radius: var(--radius-medium);
  border: 1.5px solid var(--primary-gold);
  background: #faf8f3;
  padding: 0 44px 0 8px;
  font-size: var(--font-size-md);
  font-family: var(--font-primary);
  color: var(--text-brown);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-select-wrap select:focus {
  border-color: #b89a60;
  box-shadow: 0 0 0 3px rgba(200,180,138,0.2);
}
.calc-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--text-brown);
  pointer-events: none;
  opacity: 0.65;
}
.calc-select-wrap select option {
  color: var(--text-brown);
  background: #faf8f3;
}

/* Advanced Toggle */
.advanced-toggle {
  margin: var(--space-md) 0 var(--space-sm) 0;
  font-size: var(--font-size-md);
  cursor: pointer;
  color: var(--text-brown);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  user-select: none;
  transition: color var(--motion-fast);
}

.advanced-toggle:hover {
  color: var(--text-brown);
}

/* Advanced Toggle Arrow */
#advancedArrow {
  transition: transform var(--motion-medium);
}

#advancedArrow.rotated {
  transform: rotate(180deg);
}

/* SECOND BOX */

/* ═══════════════════════════════════════
   PRICE SHEET — SCREEN
   ═══════════════════════════════════════ */

/* Outer card */
.output-card {
  max-width: 860px;
  margin: var(--space-xl) auto 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  padding: 40px clamp(16px, 4vw, 48px);
}

/* Inner body — grows wider as viewport shrinks so numbers never squish */
.ps-body {
  width: clamp(88%, 90%, 100%);
  margin: 0 auto;
}

/* Header: title left, logo right — both within ps-body width */
.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.ps-header-center { flex: 1; }
.ps-title {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  color: #2a1f0e;
}
.ps-meta {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.02em;
}
.ps-logo {
  height: 51px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Divider — full width of ps-body (65%) */
.ps-rule {
  height: 1.5px;
  background: linear-gradient(to right, transparent, #d9c19a, transparent);
  margin: 14px 0 0;
}

/* Section labels — black, wider spacing above */
.ps-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  padding-bottom: 5px;
  border-bottom: 1px solid #e8dcc8;
  margin: 28px 0 8px;
}

/* Tables — full width of ps-body (which is already 65% of card) */
.ps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.ps-th-label { text-align: left; }
.ps-th-num   { width: 18%; text-align: right; }

.ps-table thead tr { background: #f0e8d8; }
.ps-table thead th {
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  color: #5a4025;
  border: 1px solid #e0d2ba;
}
.ps-table tbody td {
  padding: 8px 12px;
  border: 1px solid #ede4d4;
  color: #1a1a1a;
  text-align: left;
}
.ps-table tbody tr:nth-child(even) { background: #faf6ef; }

.ps-num {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  color: #1a1a1a;
}
.ps-subtotal td {
  background: #f5edd8 !important;
  font-weight: 600;
  color: #1a1a1a !important;
  border-top: 1px solid #ede4d4 !important;
}

/* Details table */
.ps-table--2col .ps-key { width: 45%; color: #1a1a1a; font-size: 13px; }
.ps-table--2col .ps-val {
  text-align: right;
  font-weight: 400;
  color: #1a1a1a;
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Gap row + grand total */
.ps-gap-row {
  height: 10px;
  border-left: 1px solid #ede4d4;
  border-right: 1px solid #ede4d4;
  background: transparent;
}
.ps-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f5edd8;
  border: 1px solid #ede4d4;
}
.ps-grand-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.ps-grand-value {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
}

.print-btn {
  display: block;
  width: 65%;
  margin: var(--space-xl) auto 0 auto;
  height: var(--button-height);
  border-radius: var(--radius-medium);
  border: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  background: var(--gold-light);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.print-btn:active { background: linear-gradient(145deg, #e5cfa6, #d5b885); }
.print-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ── Print: centred on A4 with equal margins all sides ── */
/* Price sheet printing is handled via popup window in printPriceSheet() — no @media print rules needed here */

/* ================= INVENTORY TOWER ================= */

.inventory-card {
  max-width: var(--container-max);
  margin: var(--space-xl) auto;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  padding: var(--space-xxl) var(--space-xl);
  width: 60%;
  max-height: 90vh;
  overflow-y: auto;
  padding-right: var(--space-md);
}

.inventory-title {
  text-align: center;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xl);
  letter-spacing: var(--letter-spacing-sm);
}

.floor-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.floor-label {
  width: 7.5rem;
  font-weight: 600;
  font-size: var(--font-14);
  text-align: right;
  padding-right: var(--space-25);
  color: var(--text-brown);
  padding-top: var(--space-8);
  flex-shrink: 0;
  /* 👈 prevents collapsing */
}

/* Commercial Layout (Simple Row) */
.floor-units.commercial {
  display: grid;
  grid-template-columns: repeat(5, var(--unit-box-width));
  gap: var(--space-xs);
}

/* Residential Layout (Exact PDF Shape) */
.floor-units.residential {
  display: grid;
  grid-template-columns: repeat(4, var(--unit-box-width));
  grid-template-rows: var(--unit-box-height) var(--unit-box-height);
  gap: var(--space-xs);
}

/* Exact Positions */

.unit-6 {
  grid-column: 1;
  grid-row: 1;
}

.unit-1 {
  grid-column: 4;
  grid-row: 1;
}

.unit-5 {
  grid-column: 1;
  grid-row: 2;
}

.unit-4 {
  grid-column: 2;
  grid-row: 2;
}

.unit-3 {
  grid-column: 3;
  grid-row: 2;
}

.unit-2 {
  grid-column: 4;
  grid-row: 2;
}

/* Unit Box Styling */
.unit-box {
  width: var(--unit-box-width);
  height: var(--unit-box-height);
  border-radius: var(--radius-small);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0d6c2;
}

/* Status Colors */
.status-sold {
  background: #d97f7f;
}

/* darker soft red */
.status-allotted {
  background: #e7bcbc;
}

/* richer red */
.status-available {
  background: #cfe8cf;
}

.status-blocked {
  background: #f4a261; /* orange */
}

/* light red (instead of yellow) */
.status-common {
  background: #d8c6f2;
}

/* Legend */
.inventory-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  font-size: var(--font-13);
}

.inventory-legend-top {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  font-size: var(--font-13);
}

.legend-box {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.legend-color {
  width: var(--legend-size);
  height: var(--legend-size);
  border-radius: var(--radius-small);
}

/* ===== INVENTORY MODAL ===== */
.inventory-modal,
.floorplan-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.hidden {
  display: none !important;
}

.inventory-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}

.inventory-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ===== FLOOR PLAN MODAL ===== */

.floor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
}

.floor-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3001;
}

.floor-inner {
  width: 80%;
  height: 85vh;
  background: white;
  border-radius: var(--radius-20);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
}

/* ================= UTILITY CLASSES ================= */

.flex-spacer {
  flex-grow: 1;
}

.auto-margin-left {
  margin-left: auto;
  padding-right: 4px;
  padding-left: 32px;
}

/* Floor Plan PDF Embed */
.floor-embed {
  flex: 1;
  width: 100%;
  height: 100%;
}

/* ================= ADMIN SPREADSHEET ================= */

#spreadsheet-page {
  width: 100%;
  display: flex;
  justify-content: center;   /* center the card */
  margin-top: var(--space-xl);
}

#spreadsheet-page .project-card {
  width: 100%;
  padding: var(--space-xl);
  overflow-x: auto;
}

/* Spreadsheet table */
#spreadsheetTable {
  width: max-content;             /* allows natural expansion */
  min-width: 1600px;              /* ensures horizontal scroll */
  border-collapse: collapse;
  table-layout: auto;
  font-size: var(--font-size-sm);
}

#spreadsheetTable th,
#spreadsheetTable td {
  border: 1px solid #e0d6c2;
  padding: var(--space-10);
  text-align: left;
  white-space: nowrap;
}

/* Header row */
#spreadsheetTable th {
  background: #f4eee3;
  font-weight: var(--font-weight-semibold);
}

/* Make columns wider */
#spreadsheetTable th:nth-child(1),
#spreadsheetTable td:nth-child(1) {
  width: 120px;   /* Type */
}

#spreadsheetTable th:nth-child(2),
#spreadsheetTable td:nth-child(2) {
  width: 140px;   /* Number */
}

#spreadsheetTable th:nth-child(3),
#spreadsheetTable td:nth-child(3) {
  width: 140px;   /* Area */
}

#spreadsheetTable th:nth-child(4),
#spreadsheetTable td:nth-child(4) {
  width: 180px;   /* Status */
}

#spreadsheetTable th:nth-child(5),
#spreadsheetTable td:nth-child(5) {
  width: 200px;   /* Extra column (future use) */
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet */
@media (max-width: 1024px) {
  body {
    padding: var(--space-md);
  }

  /* NOTE: .main-card, .left-panel, .right-panel intentionally NOT stacked here —
     calculator keeps desktop side-by-side layout until phone (768px) */

  .project-options {
    gap: var(--space-lg);
  }

  .lux-table,
  .section-title,
  .print-btn {
    width: 85%;
  }

  .inventory-card {
    width: 85%;
  }

  .floor-inner {
    width: 90%;
  }
}

/* Mobile */
@media (max-width: 660px) {
  body {
    padding: 0;
  }

  .project-options {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .project-options-button {
    width: 100%;
    max-width: 300px;
  }

  .main-card {
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }

  .calc-page .main-card {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* ── LEFT PANEL ── */
  .left-panel::before {
    background: url("../assets/white pattern.png") center/cover no-repeat;
  }

  .left-panel {
    padding: 20px 20px 24px;
    align-items: center;
  }

  .left-panel img {
    max-width: 4.2rem;
    margin-bottom: 5px;
  }

  .left-panel h2 {
    font-size: 15px;
    margin-bottom: 0;
  }

  .left-panel p { display: none; }

  .view-btn {
    width: 52%;
    min-width: 130px;
    margin-top: 16px;
  }

  /* ── RIGHT PANEL: generous side padding to crunch content to center ── */
  .right-panel {
    padding: 18px 94px 24px;
    overflow: visible;
  }

  /* ── ALL FORM ROWS: label stacked above input, full width ── */
  .form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .form-row label {
    width: 100% !important;
    font-size: 13px;
    font-weight: 500;
  }

  /* All inputs and selects fill the row */
  .form-row input,
  .form-row select,
  .right-panel .form-row input,
  .right-panel .form-row select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ── DROPDOWN: wrap fills width, arrow stays inside ── */
  .calc-select-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    position: relative;
  }

  .calc-select-wrap select {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* ── RR + TOTAL RATE: side by side ── */
  .calc-rr-total-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
  }

  .calc-rr-total-row .form-row {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  .calc-rr-total-row .form-row input {
    width: 100% !important;
  }

  /* ── CUSTOMER NAME: full width ── */
  #calcCustomer { width: 100% !important; box-sizing: border-box; }

  /* ── PRICING MODE pills: full width, horizontal (same line) ── */
  .pill-group {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
  }

  /* ── CAR PARKING ROW: circles + Advanced on same line ── */
  .calc-parking-row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin-bottom: 12px;
  }

  .calc-parking-row > label { display: none; }

  .circle-group { width: auto; flex-shrink: 0; }

  /* ── ADVANCED: Floor Rise stacked above Stamp Duty (each full width),
       pills within each row are HORIZONTAL like Pricing Mode ── */
  .calc-adv-cols {
    display: block !important;
    width: 100%;
  }

  .calc-adv-cols .form-row {
    width: 100%;
    margin-bottom: 12px;
  }

  /* Pills inside advanced stay horizontal, full height */
  .calc-adv-cols .pill-group {
    flex-direction: row !important;
    width: 100% !important;
  }

  .calc-adv-cols .option-pill {
    flex: 1;
    font-size: 12px;
    height: var(--input-height);
  }

  #calcInclusive { width: 100% !important; box-sizing: border-box; }

  .generate-btn { width: 100%; margin-top: 6px; }

  /* ── OTHER PAGES ── */
  #flatSelect, #rrRate, #totalRate, #customerName {
    width: 100%;
    max-width: 100%;
  }

  .lux-table, .section-title, .print-btn { width: 95%; }
  .inventory-card { width: 95%; padding: var(--space-lg); }
  .floor-inner { width: 95%; height: 90vh; }
  .inventory-legend, .inventory-legend-top { flex-wrap: wrap; gap: var(--space-sm); }

  /* ── OUTPUT CARD ── */
  .output-card { padding: 24px 16px; margin-left: 20px; margin-right: 20px; }
  .ps-body { width: 100%; }

  /* Section headers — FLAT DETAILS, PRICE DETAILS etc */
  .ps-section { font-size: 10px; }

  /* Table header row */
  .ps-table thead th { font-size: 12px; padding: 7px 8px; }

  /* Table body */
  .ps-table { font-size: 13px; }
  .ps-table tbody td { padding: 7px 8px; }

  /* Numbers column width */
  .ps-th-num { width: 30%; }

  /* Number cells */
  .ps-num { font-size: 13px; }

  /* Flat details left column */
  .ps-table--2col .ps-key { font-size: 13px; }

  /* Subtotal rows */
  .ps-subtotal td { font-size: 13px; }

  /* Grand total — keep label + value on SAME LINE, allow wrapping if needed */
  .ps-grand-total {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 8px;
  }
  .ps-grand-label { font-size: 13px; }
  .ps-grand-value { font-size: 13px; }
}


/* ===== SPREADSHEET FULL WIDTH + HORIZONTAL SCROLL ===== */

#spreadsheetContainer {
  overflow-x: auto;
  width: 100%;
}

#spreadsheetTable {
  min-width: 1800px;   /* ensures horizontal scroll */
  table-layout: auto;
}

#spreadsheetTable th,
#spreadsheetTable td {
  min-width: 220px;    /* decent readable width */
  white-space: nowrap;
}

#spreadsheetTable input,
#spreadsheetTable select {
  width: 100%;
  min-width: 200px;
  box-sizing: border-box;
}

/* ===============================
   NEW APP ADDITIONS
   (on top of old design system)
   =============================== */

/* Opaque top banner — covers gap above pill so content doesn't show through */
.top-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: var(--bg-page);
  z-index: 999;
}

/* Top pill nav */
.top-pill {
  position: fixed;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 56px); max-width: 860px;
  z-index: 1000;
}

.top-pill-inner {
  background: var(--bg-card);
  border-radius: 60px;
  height: 60px; padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
}

/* Left zone: back btn + home btn */
.pill-left { display: flex; align-items: center; gap: 8px; }

/* Center zone: logo */
.pill-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right zone: admin btn + logout */
.pill-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }

.pill-logo {
  height: 40px; object-fit: contain; display: block;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pill-logo:hover {
  transform: scale(1.06);
  opacity: 0.85;
}

.pill-logo:active {
  transform: scale(0.94);
  opacity: 0.7;
}

/* ── Home button — always visible circle on the left ── */
.pill-home-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(217,193,154,0.55);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
  position: relative;
}
.pill-home-btn:hover {
  border-color: #a07840;
  transform: scale(1.06);
}
.pill-home-btn:active { transform: scale(0.92); box-shadow: none; }
.pill-home-btn svg { width: 15px; height: 15px; color: var(--text-brown); opacity: 0.75; transition: opacity var(--motion-fast); }
.pill-home-btn:hover svg { opacity: 1; color: #3a2410; }
.pill-home-btn::after {
  content: attr(title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42,31,18,0.82);
  color: #f5edde;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  z-index: 100;
}
.pill-home-btn:hover::after { opacity: 1; }


/* ── Admin button (right side, always goes to admin) ── */
.pill-admin-btn,
.pill-nav-btn {
  height: 34px;
  min-width: 80px;
  padding: 0 16px;
  border-radius: 40px;
  border: 1px solid var(--primary-gold);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-brown);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.15s ease,
    border-color var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-fast);
}
.pill-admin-btn:hover,
.pill-nav-btn:hover {
  border-color: #a07840;
  color: #3a2410;
}
.pill-admin-btn:active,
.pill-nav-btn:active {
  transform: scale(0.96);
  border-color: #8a6428;
}

/* Nav toggle button tooltip */
.pill-nav-btn {
  position: relative;
}
.pill-nav-btn::after {
  content: attr(title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42,31,18,0.82);
  color: #f5edde;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  z-index: 100;
}
.pill-nav-btn:hover::after { opacity: 1; }

/* Breadcrumb button tooltip */
.pill-breadcrumb-btn {
  position: relative;
}
.pill-breadcrumb-btn::after {
  content: attr(title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42,31,18,0.82);
  color: #f5edde;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  z-index: 100;
}
.pill-breadcrumb-btn:hover::after { opacity: 1; }

/* ── Breadcrumb back button — hidden by default, shown on non-home pages ── */
.pill-breadcrumb-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(217,193,154,0.55);
  background: transparent;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.72;
  transition:
    opacity var(--motion-fast),
    background var(--motion-fast),
    border-color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}
.pill-breadcrumb-btn svg { width: 15px; height: 15px; color: var(--text-brown); opacity: 0.75; transition: opacity var(--motion-fast), color var(--motion-fast); }
.pill-breadcrumb-btn:hover svg { opacity: 1; color: #3a2410; }
/* Show back button when NOT on home page (pill-has-back class) */
.pill-has-back .pill-breadcrumb-btn { display: inline-flex; }
.pill-breadcrumb-btn:hover {
  opacity: 1;
  border-color: #a07840;
  transform: scale(1.06);
}
.pill-breadcrumb-btn:active { transform: scale(0.92); box-shadow: none; }


/* ── Unsaved changes modal ── */
.unsaved-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(42,31,18,0.42);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  animation: uFadeIn 0.15s ease;
}
@keyframes uFadeIn { from { opacity: 0; } to { opacity: 1; } }

.unsaved-modal {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px 40px 28px;
  max-width: 360px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.16);
  display: flex; flex-direction: column; gap: 12px;
  animation: uModalPop 0.2s cubic-bezier(0.34,1.4,0.64,1);
}
@keyframes uModalPop { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }

.unsaved-modal-emoji { font-size: 30px; text-align: center; line-height: 1; margin-bottom: 4px; }
.unsaved-modal-title {
  margin: 0; text-align: center;
  font-family: var(--font-primary); font-size: 17px; font-weight: 600;
  color: var(--text-brown);
}
.unsaved-modal-sub {
  margin: 0; text-align: center;
  font-family: var(--font-primary); font-size: 13.5px;
  color: var(--text-brown); opacity: 0.6; line-height: 1.5;
}
.unsaved-modal-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.unsaved-btn {
  height: 42px; border-radius: 40px;
  border: 1px solid var(--primary-gold);
  background: transparent;
  font-family: var(--font-primary); font-size: 14px; font-weight: 500;
  color: var(--text-brown); cursor: pointer;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.unsaved-btn:hover { background: var(--gold-light); border-color: #a07840; color: #3a2410; transform: translateY(-1px); }
.unsaved-btn:active { transform: scale(0.97); }
.unsaved-btn--leave {
  border-color: rgba(0,0,0,0.1); opacity: 0.55; font-size: 13px;
}
.unsaved-btn--leave:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.2); color: var(--text-brown); opacity: 1; transform: none; }

/* ── Logout button ── */
.pill-logout-btn {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  border: 1px solid rgba(217,193,154,0.55);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
  position: relative;
}
.pill-logout-btn:hover {
  border-color: #a07840;
  transform: scale(1.06);
}
.pill-logout-btn:active {
  transform: scale(0.92);
  box-shadow: none;
}
/* Tooltip */
.pill-logout-btn::after {
  content: 'Log out';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42,31,18,0.82);
  color: #f5edde;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}
.pill-logout-btn:hover::after { opacity: 1; }
.pill-logout-btn svg { width: 15px; height: 15px; color: var(--text-brown); opacity: 0.75; transition: opacity var(--motion-fast), color var(--motion-fast); }
.pill-logout-btn:hover svg { opacity: 1; color: #3a2410; }

/* ── Website modal overlay ── */
.site-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-modal-overlay.site-modal--open {
  opacity: 1;
  pointer-events: all;
}
.site-modal-card {
  width: min(96vw, 1280px);
  height: min(88vh, 820px);
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.22),
    0 8px 24px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.site-modal-overlay.site-modal--open .site-modal-card {
  transform: scale(1) translateY(0);
}
.site-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(to right, #f0e8d8, #ede0cc);
  border-bottom: 1px solid rgba(217,193,154,0.4);
  flex-shrink: 0;
}
.site-modal-url {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--text-brown);
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.site-modal-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(111,85,52,0.25);
  background: transparent;
  color: var(--text-brown);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--motion-fast), border-color var(--motion-fast);
  font-family: var(--font-primary);
}
.site-modal-close:hover { background: rgba(111,85,52,0.1); border-color: var(--text-brown); }
.site-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* Page wrapper for new app */
.page { padding-top: 110px; background: transparent; }
.page .project-card + .project-card { margin-top: var(--space-xl); }
.calc-page { padding-top: 110px !important; background: transparent !important; }

/* Advanced section hidden state */
.adv-hidden { display: none; }

/* Advanced arrow */
#advancedArrow    { display: inline-block; transition: transform var(--motion-medium); }
#advancedArrow.rotated { transform: rotate(180deg); }

/* Project card new-app top banner */
.project-card-top {
  position: relative;
  background: linear-gradient(145deg, #efe2cd, #e0cfb5);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  overflow: hidden;
}
.project-card-top::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/white pattern.png") center/cover no-repeat;
  opacity: 0.1; z-index: 0;
}
.project-card-top-content { position: relative; z-index: 1; }
.project-card-top-content h3 {
  font-size: var(--font-size-lg);
  letter-spacing: var(--letter-spacing-sm);
  margin: 0 0 4px 0;
}
.project-card-top-content p {
  font-size: var(--font-size-sm);
  margin: 0;
  color: var(--text-brown);
}
.project-card-bottom {
  padding: var(--space-xl) var(--space-lg) var(--space-xxl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.project-card-bottom p {
  font-size: var(--font-size-sm);
  color: var(--text-brown);
  margin: 0;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

/* Cat buttons match old .project-options-button exactly */
.cat-btn {
  width: var(--size-project-option-width);
  height: var(--size-project-option-height);
  border-radius: var(--radius-medium);
  border: var(--border-thin) solid var(--primary-gold);
  background: transparent;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.cat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* New project-card uses top/bottom sections — remove old padding */
.project-card {
  padding: 0 !important;
  max-width: var(--container-narrow);
  text-align: center;
}

/* Validation */
.field-error { border: 1px solid #d9534f !important; background: #fff5f5; }
.error-text  { color: #d9534f; font-size: 12px; margin-top: 4px; margin-bottom: 8px; }

/* Login page */
.login-wrapper {
  display: flex; justify-content: center; align-items: flex-start;
  min-height: 100vh; padding: 95px 20px 40px;
}
.login-card {
  width: 760px; max-width: 92%; height: 420px;
  background: var(--bg-card); border-radius: var(--radius-large);
  display: flex; overflow: hidden;
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
}
.login-left {
  position: relative; width: 28%;
  background: linear-gradient(145deg, #efe2cd, #e6d5bc);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center; overflow: hidden;
}
.login-left::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/white pattern vertical.png") center/cover no-repeat;
  opacity: 0.1; z-index: 0;
}
.login-left img, .login-left h2 { position: relative; z-index: 1; }
.login-left img { width: 115px; margin-bottom: 25px; }
.login-left h2  { font-size: var(--font-size-md); letter-spacing: 1px; color: #181818; font-weight: 400; }
.login-right { width: 72%; padding: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.login-right h1 { font-size: var(--font-size-md); margin-bottom: 14px; letter-spacing: 1px; font-weight: 400; }
.luxury-line {
  width: 380px; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-gold), #bfa877, var(--primary-gold), transparent);
  margin: 8px auto 24px;
}
.login-field { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; width: 100%; max-width: 360px; }
.login-field label { font-size: var(--font-size-sm); color: #000; min-width: 90px; font-weight: 500; }
.login-field input {
  flex: 1; height: var(--input-height);
  border-radius: var(--radius-medium); border: 1px solid #e0d6c2;
  padding: 0 14px; font-size: var(--font-size-sm); background: #faf8f3;
}
.login-btn {
  margin-top: 15px; height: var(--input-height); width: 100%; max-width: 360px;
  border-radius: var(--radius-medium); border: 1px solid var(--primary-gold); background: transparent;
  font-size: var(--font-size-sm); letter-spacing: 0.06em;
  font-family: var(--font-primary); cursor: pointer; transition: border var(--motion-fast);
}
.login-btn:hover { border-color: #bfa877; background: linear-gradient(145deg, #e8cda4e7); }

@media (max-width: 660px) {
  .login-card { flex-direction: column; height: auto; }
  .login-left, .login-right { width: 100%; padding: 40px 25px; }
  .login-left { border-bottom: 1px solid #e0d6c2; }
}

/*  */

/* ═══════════════════════════════════════════════════
   LUXURY PROJECT WIZARD
   Contained card below nav pill — blueprint layout
   ═══════════════════════════════════════════════════ */

/* Outer wrapper — sits in normal page flow below the pill */
.wiz-outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px var(--space-lg) var(--space-xl);  /* 90px = nav pill height + breathing room */
  font-family: var(--font-primary);
}

/* The card itself */
.wiz-shell {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  overflow: hidden;
  min-height: 520px;
  font-family: var(--font-primary);
}

/* ── Sidebar ── */
.wiz-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #ede4d3 0%, #e4d8c4 60%, #ddd0b8 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 32px 28px;
  position: relative;
  font-family: var(--font-primary);
  overflow: hidden;
}
.wiz-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/white pattern vertical.png") center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.wiz-sidebar > * { position: relative; z-index: 1; }

.wiz-exit-btn {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(111,85,52,0.3);
  background: transparent;
  font-size: 14px;
  color: var(--text-brown);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--motion-fast);
  font-family: var(--font-primary);
}
.wiz-exit-btn:hover {
  background: rgba(111,85,52,0.1);
  border-color: var(--text-brown);
}

.wiz-brand { margin-bottom: 40px; margin-top: 4px; }
.wiz-brand-logo { height: 38px; object-fit: contain; }

/* Stepper */
.wiz-stepper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex: 1;
}

.wiz-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--motion-fast);
  position: relative;
}
.wiz-step:hover { background: rgba(255,255,255,0.3); }
.wiz-step--active { background: rgba(255,255,255,0.45); }
.wiz-step--done { opacity: 0.75; }
.wiz-step--done:hover { opacity: 1; }

.wiz-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(111,85,52,0.35);
  background: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--motion-medium);
  font-size: 13px;
  color: var(--text-brown);
}
.wiz-step--active .wiz-step-dot {
  background: rgba(212,185,138,0.18);
  border: 1.5px solid #c8a96e;
  color: #b8954a;
}

.wiz-step--done .wiz-step-dot {
  background: #c8b48a;
  border-color: #c8b48a;
  color: white;
}

.wiz-step-num { font-size: 12px; font-weight: 600; line-height: 1; }

.wiz-step-text { display: flex; flex-direction: column; gap: 1px; }
.wiz-step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-brown);
  letter-spacing: 0.02em;
  font-family: var(--font-primary);
}
.wiz-step-hint {
  font-size: 11px;
  color: var(--text-brown);
  opacity: 0.7;
  font-family: var(--font-primary);
}
.wiz-step--active .wiz-step-label { color: #1a1208; }

/* Progress bar removed */
.wiz-progress-bar { display: none; }
.wiz-progress-fill { display: none; }

/* ── Main content ── */
.wiz-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  position: relative;
  min-height: 0;
}

.wiz-content-wrap {
  flex: 1;
  padding: 0 8% 40px;
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
}

/* Entrance animation */
.wiz-entering { animation: wizSlideIn 0.28s cubic-bezier(0.4,0,0.2,1); }
@keyframes wizSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step body ── */
.wiz-step-body {
  width: 100%;
  max-width: 560px;
  padding-top: 40px;
}
.wiz-step-body--wide {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.wiz-step-header { margin-bottom: 40px; }
.wiz-step-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a08050;
  margin-bottom: 10px;
  font-weight: 600;
}
.wiz-step-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  color: #1a1208;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.wiz-step-sub {
  font-size: 14px;
  color: #8a7258;
  margin: 0;
  line-height: 1.5;
}

/* ── Fields ── */
.wiz-fields { display: flex; flex-direction: column; gap: 24px; }

.wiz-field { display: flex; flex-direction: column; gap: 7px; }
.wiz-field--inline { flex: 1; min-width: 140px; }

.wiz-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #5a4630;
  letter-spacing: 0.02em;
  text-transform: none;
}
.wiz-required { color: #c0845a; }

.wiz-input {
  height: 48px;
  border: 1.5px solid #e0d6c2;
  border-radius: 10px;
  background: #faf8f3;
  padding: 0 16px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: #1a1208;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.wiz-input:focus {
  border-color: #c8b48a;
  box-shadow: 0 0 0 3px rgba(200,180,138,0.2);
}
.wiz-input::placeholder { color: #bdb09a; }
.wiz-input--sm { height: 40px; font-size: 13.5px; }

.wiz-select {
  height: 40px;
  border: 1.5px solid #e0d6c2;
  border-radius: 10px;
  background: #faf8f3;
  padding: 0 12px;
  font-size: 13.5px;
  font-family: var(--font-primary);
  color: #1a1208;
  outline: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.wiz-select:focus { border-color: #c8b48a; box-shadow: 0 0 0 3px rgba(200,180,138,0.2); }

.wiz-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Radio cards (status) ── */
.wiz-radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.wiz-radio-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid #e0d6c2;
  border-radius: 10px;
  background: #faf8f3;
  cursor: pointer;
  font-size: 14px;
  color: #5a4630;
  transition: all var(--motion-fast);
  user-select: none;
}
.wiz-radio-card input { display: none; }
.wiz-radio-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid #c8b48a;
  flex-shrink: 0;
  transition: all var(--motion-fast);
}
.wiz-radio-card--active {
  border-color: #c8b48a;
  background: #f5edde;
}
.wiz-radio-card--active .wiz-radio-dot {
  background: #a08050;
  border-color: #a08050;
  box-shadow: 0 0 0 3px rgba(160,128,80,0.2);
}

/* ── Category tiles (step 2) ── */
.wiz-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wiz-cat-tile {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  width: 96px; height: 88px;
  border: 1.5px solid #e0d6c2;
  border-radius: 14px;
  background: #faf8f3;
  cursor: pointer;
  transition: all var(--motion-fast);
  user-select: none;
}
.wiz-cat-tile:hover {
  border-color: #c8b48a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.wiz-cat-tile--active {
  border-color: #a08050;
  background: #f5edde;
  box-shadow: 0 4px 14px rgba(160,128,80,0.18);
}
.wiz-cat-icon { font-size: 24px; line-height: 1; }
.wiz-cat-name { font-size: 12px; font-weight: 600; color: #5a4630; letter-spacing: 0.04em; }

.wiz-custom-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wiz-add-btn {
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--primary-gold);
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-brown);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--motion-fast);
}
.wiz-add-btn:hover { background: #f5edde; }

/* Selected tags */
.wiz-selected-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.wiz-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: #f0e8d8;
  border: 1px solid #d4c4a4;
  border-radius: 20px;
  font-size: 12.5px;
  color: #5a4630;
  font-weight: 500;
}
.wiz-tag-remove {
  background: none; border: none; cursor: pointer;
  color: #a08050; font-size: 16px; line-height: 1;
  padding: 0; display: flex; align-items: center;
  transition: color var(--motion-fast);
}
.wiz-tag-remove:hover { color: #6f5534; }
.wiz-error-msg { color: #c0845a; font-size: 13px; margin: 0; }

/* ── Pricing blocks (step 3) ── */
.wiz-pricing-block {
  border: 1px solid #e8dfc8;
  border-radius: 14px;
  padding: 20px 22px;
  background: #fdfaf4;
}
.wiz-pricing-block-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a08050;
  margin-bottom: 16px;
}
.wiz-divider-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #a08050;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8dfc8;
  margin-top: 4px;
}

/* ── Units (step 4) ── */
.wiz-units-container { display: flex; flex-direction: column; gap: 28px; margin: 0 -48px; }
.wiz-unit-list { overflow-x: auto; }
.wiz-units-section {
  border: 1px solid #e8dfc8;
  border-radius: 14px;
  overflow: hidden;
  background: #fdfaf4;
}
.wiz-units-section-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: linear-gradient(to right, #f0e8d8, #ede0cc);
  border-bottom: 1px solid #e0d4bc;
}
.wiz-units-cat-label {
  font-size: 11px; letter-spacing: 0.12em; font-weight: 700; color: #6f5534;
}
.wiz-add-unit-btn {
  height: 30px; padding: 0 14px;
  border: 1px solid #c8b48a;
  border-radius: 8px;
  background: white;
  font-family: var(--font-primary);
  font-size: 12px; color: var(--text-brown);
  cursor: pointer;
  transition: all var(--motion-fast);
}
.wiz-add-unit-btn:hover { background: #f5edde; }

.wiz-unit-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.wiz-unit-row {
  display: grid;
  grid-template-columns: 90px 90px 80px 100px 100px 110px 32px;
  gap: 6px;
  align-items: center;
}
.wiz-unit-row--header {
  font-size: 11px; font-weight: 600;
  color: #a08050; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 2px 4px;
  border-bottom: 1px solid #e8dfc8;
}
.wiz-unit-row--header span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wiz-remove-btn {
  width: 28px; height: 28px;
  border-radius: 6px; border: 1px solid rgba(220,80,60,0.35);
  background: transparent;
  font-size: 16px; color: #d9534f;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--motion-fast);
  padding: 0;
}
.wiz-remove-btn:hover { border-color: #c0392b; color: #c0392b; background: #fff0ef; }

/* ── Footer ── */
/* ── Dots row — outside the card, below it ── */
.wiz-dots-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 0 0;
}
.wiz-dots-pips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.wiz-save-exit-btn {
  height: 38px;
  padding: 0 24px;
  border-radius: 40px;
  border: 1.5px solid var(--primary-gold);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-brown);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.wiz-save-exit-btn:hover {
  background: var(--gold-light);
  border-color: #a07840;
  transform: translateY(-1px);
}
.wiz-save-exit-btn:active { transform: scale(0.97); }

/* ── Circular continue button — inside card bottom-right ── */
.wiz-continue-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e5cfa6, #d5b885);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(160,128,80,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
  flex-shrink: 0;
}
.wiz-continue-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(160,128,80,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.wiz-continue-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-brown);
  stroke-width: 2.5;
  fill: none;
}
.wiz-continue-btn--finish {
  background: linear-gradient(145deg, #e5cfa6, #d5b885);
}

/* wiz-footer removed — back/cancel replaced by reset btn */
.wiz-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd4c0;
  cursor: pointer;
  padding: 0;
  transition: all var(--motion-medium);
}
.wiz-dot:hover { background: #c8b48a; transform: scale(1.2); }
.wiz-dot--active {
  width: 24px;
  border-radius: 4px;
  background: #a08050;
}
.wiz-dot--done { background: #c8b48a; }

/* ── Buttons ── */
.wiz-btn {
  height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--motion-fast);
  letter-spacing: 0.02em;
}
.wiz-btn--ghost {
  background: transparent;
  border: 1.5px solid #ddd4c0;
  color: #8a7258;
}
.wiz-btn--ghost:hover {
  border-color: #c8b48a;
  color: var(--text-brown);
  background: #faf5ec;
}
.wiz-btn--primary {
  background: linear-gradient(145deg, #e5cfa6, #d5b885);
  border: none;
  color: #3a2410;
  box-shadow: 0 4px 14px rgba(160,128,80,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
  font-weight: 600;
}
.wiz-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(160,128,80,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}
.wiz-btn--finish {
  background: linear-gradient(145deg, #3a2e1f, #5a4630);
  border: none;
  color: #f5edde;
  box-shadow: 0 4px 18px rgba(58,46,31,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wiz-btn--finish:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(58,46,31,0.38), inset 0 1px 0 rgba(255,255,255,0.1);
}
.wiz-btn--finish:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

/* field-error reuse */
.wiz-input.field-error { border-color: #c0845a !important; background: #fff8f5; }


/* ── New app calc input sizing (mirrors old #flatSelect / #rrRate) ── */
#calcUnit     { width: 24rem; max-width: 100%; }
#calcRR,
#calcTotal    { width: 12rem; max-width: 100%; }
#calcCustomer { width: 18rem; max-width: 100%; }
#calcInclusive { width: 18rem; max-width: 100%; }

/* ── New app pill/circle groups match old widths ── */
#calcMode     { width: 18rem; }
#calcParking .circle-group { max-width: 100%; }

/* ── Reset button (top-right of right panel) ── */
.wiz-reset-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 30px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1.5px solid #e0d6c2;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 11.5px;
  color: var(--text-brown);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all var(--motion-fast);
  z-index: 2;
}
.wiz-reset-btn:hover {
  background: #f5edde;
  border-color: #c8b48a;
}

/* ── Accordion (step 3 pricing) ── */
.wiz-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.wiz-accordion {
  border: 1.5px solid #e0d6c2;
  border-radius: 14px;
  overflow: hidden;
  background: #fdfaf4;
}

.wiz-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  text-align: left;
  transition: background var(--motion-fast);
}
.wiz-acc-header:hover { background: rgba(200,180,138,0.1); }
.wiz-acc-header--open { background: #f5edde; }

.wiz-acc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-brown);
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.wiz-acc-chevron {
  color: var(--text-brown);
  opacity: 0.7;
  transition: transform var(--motion-medium);
  display: flex;
  align-items: center;
}
.wiz-acc-header--open .wiz-acc-chevron {
  transform: rotate(180deg);
}

.wiz-acc-body {
  display: none;
  padding: 0;
  border-top: 1px solid #e0d6c2;
}
.wiz-acc-body--open {
  display: block;
  animation: accExpand 0.22s ease;
}
@keyframes accExpand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wiz-acc-fields {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wiz-acc-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wiz-acc-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-brown);
  font-family: var(--font-primary);
  width: 160px;
  flex-shrink: 0;
}

/* Uniform fixed-width inputs inside accordion */
.wiz-acc-fields .wiz-input {
  width: 140px !important;
  flex-shrink: 0;
  flex-grow: 0;
}

/* ── Accordion error state ── */
.wiz-acc--error {
  border-color: #c0845a !important;
  box-shadow: 0 0 0 2px rgba(192,132,90,0.2);
}
.wiz-acc--error .wiz-acc-header {
  background: #fff8f3;
}
.wiz-acc--error .wiz-acc-title {
  color: #c0845a;
}


/* ── Step 4 upload zone ── */
.wiz-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 0;
}

.wiz-upload-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 20px;
  min-height: 80px;
  border: 1.5px dashed #c8b48a;
  border-radius: 10px;
  background: #faf8f3;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-brown);
  transition: all var(--motion-fast);
  user-select: none;
  text-align: center;
}
.wiz-upload-zone:hover,
.wiz-upload-zone--drag {
  border-color: #a08050;
  background: #f5edde;
}
.wiz-upload-zone svg {
  flex-shrink: 0;
  color: #a08050;
}

.wiz-sample-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  width: 110px;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--primary-gold);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--text-brown);
  text-decoration: none;
  white-space: normal;
  line-height: 1.4;
  cursor: pointer;
  transition: all var(--motion-fast);
}
.wiz-sample-btn:hover {
  background: #f5edde;
  border-color: #a08050;
}
/* ═══════════════════════════════════════════════════
   DRAFT ALLOTMENT LETTER — EDITOR
   ═══════════════════════════════════════════════════ */

/* Select page */
.al-select-page { display: flex; justify-content: center; align-items: flex-start; padding-top: 110px }
.al-select-card {
  width: 480px; max-width: 92%;
  background: var(--bg-card);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated), var(--shadow-soft);
  padding: 44px 48px;
  display: flex; flex-direction: column; gap: 8px;
}
.al-select-fields { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }

/* Editor shell — full height split layout */
.al-editor-shell {
  display: flex;
  height: calc(100vh - 110px);
  margin-top: 110px;
  overflow: hidden;
  background: var(--bg-page);
}

/* LEFT PANEL */
.al-left-panel {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-right: 1px solid #e8dfc8;
  overflow: hidden;
}

.al-left-header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid #ede4d4;
  flex-shrink: 0;
}
.al-left-title {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #5a4630;
}
.al-left-sub { font-size: 12px; color: #a08050; margin-top: 3px; }

.al-left-scroll {
  flex: 1; overflow-y: auto; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}

/* ── Accordion ── */
.al-acc {
  border: 1px solid #ede4d4; border-radius: 10px;
  overflow: hidden; background: #fdfaf4; margin-bottom: 6px;
}
.al-acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; cursor: pointer;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #7a6545; background: #f8f2e8;
  user-select: none;
  transition: background var(--motion-fast), color var(--motion-fast);
  gap: 6px;
}
.al-acc-head:hover { background: #f2e9d8; color: #5a4630; }
.al-acc-head--open { color: #3a2e1f; background: #f0e8d8; }
.al-acc-icon {
  width: 13px; height: 13px; flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); color: #a08050;
}
.al-acc-icon--open { transform: rotate(90deg); color: #6f5534; }
.al-acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1), padding 0.28s ease;
  padding: 0 13px;
}
.al-acc-body--open { max-height: 1400px; padding: 12px 13px; }

.al-var-section { margin-bottom: 20px; }
.al-var-section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #a08050;
  padding-bottom: 6px; margin-bottom: 10px;
  border-bottom: 1px solid #ede4d4;
}

.al-var-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.al-var-row--calc { flex-direction: row; align-items: center; justify-content: space-between; }
.al-var-label {
  font-size: 11px; font-weight: 600; color: #7a6545;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.al-var-input {
  height: 36px;
  border: 1.5px solid #e0d6c2;
  border-radius: 8px;
  background: #faf8f3;
  padding: 0 12px;
  font-size: 13px;
  font-family: var(--font-primary);
  color: #1a1208;
  outline: none;
  width: 100%; box-sizing: border-box;
  transition: border-color var(--motion-fast);
}
.al-var-input:focus { border-color: #c8b48a; box-shadow: 0 0 0 2px rgba(200,180,138,0.2); }
.al-var-input--readonly {
  background: #f4f0e8; color: #8a7258; cursor: default;
  border-color: transparent;
}
.al-var-textarea { height: auto; padding: 8px 12px; resize: vertical; }
.al-var-derived {
  font-size: 11px; color: #a08050; margin-top: 2px;
  min-height: 14px; font-style: italic;
}
.al-calc-val { font-size: 14px; font-weight: 600; color: #5a4630; }

/* Holder blocks */
.al-holder-block {
  border: 1px solid #ede4d4; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px;
  background: #fdfaf4;
}
.al-holder-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; color: #a08050;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.al-remove-holder {
  background: none; border: none; cursor: pointer;
  color: #c0845a; font-size: 11px; font-family: var(--font-primary);
  padding: 0; transition: color var(--motion-fast);
}
.al-remove-holder:hover { color: #8b3a1a; }
.al-add-holder-btn {
  background: none; border: none; cursor: pointer;
  color: #a08050; font-size: 11px; font-family: var(--font-primary);
  padding: 0; transition: color var(--motion-fast); font-weight: 600;
}
.al-add-holder-btn:hover { color: #5a4630; }

/* Left footer */
.al-left-footer {
  padding: 14px 18px;
  border-top: 1px solid #ede4d4;
  display: flex; gap: 10px;
  flex-shrink: 0;
}
.al-left-footer .wiz-btn { flex: 1; height: 40px; font-size: 12.5px; padding: 0 12px; }

/* RIGHT PANEL */
.al-right-panel {
  flex: 1; display: flex; flex-direction: column;
  background: #e8e4dd; overflow: hidden;
}

.al-doc-toolbar {
  height: 44px; padding: 0 24px;
  background: var(--bg-card);
  border-bottom: 1px solid #e0d6c2;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.al-doc-toolbar-label { font-size: 12px; font-weight: 600; color: #5a4630; letter-spacing: 0.05em; text-transform: uppercase; }
.al-doc-toolbar-hint  { font-size: 11px; color: #a08050; font-style: italic; }

.al-doc-scroll {
  flex: 1; overflow-y: auto;
  padding: 28px 0;
  display: flex; flex-direction: column; align-items: center;
  background: #b8b4ad;
}

/* ── Paginated document wrapper ── */
/* 
  The trick: the contenteditable div is one continuous div,
  but we overlay a repeating-gradient that draws the grey gap
  every 297mm — exactly where a page break would be.
  This gives the Google Docs visual effect.
  The white "pages" are 297mm tall with a shadow line at each break.
*/
.al-doc-page-shell {
  width: 210mm;
  position: relative;
}

/* A4 page — the actual contenteditable */
.al-a4-page {
  width: 210mm;
  min-height: 297mm;
  background: white;
  /* Top padding accounts for letterhead (~42mm) + content padding */
  padding: 0 18mm 20mm;
  font-family: 'Times New Roman', Times, serif;
  font-size: 11pt;
  line-height: 1.65;
  color: #111;
  outline: none;
  box-sizing: border-box;
  position: relative;
  /*
    Repeating gradient draws:
    - white page (297mm tall)
    - grey gap (20px) between pages
    Each repeat = 297mm + 20px ≈ page height + gap
    Shadow lines at the bottom of each page via a thin dark strip
  */
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(297mm - 1px),
      #888 calc(297mm - 1px),
      #888 297mm,
      #b8b4ad 297mm,
      #b8b4ad calc(297mm + 20px),
      transparent calc(297mm + 20px)
    );
  background-attachment: local;
  /* Each page has its own box shadow via the repeating bg */
  box-shadow: 0 0 0 1px #ccc, 0 4px 20px rgba(0,0,0,0.18);
  border-radius: 1px;
}
.al-a4-page p { margin: 0 0 8pt 0; }

/* ── Letterhead — top of page, exact docx match ── */
.al-letterhead {
  display: block;
  width: calc(100% + 36mm);
  margin-left: -18mm;
  text-align: center;
  padding: 5mm 18mm 0;
  box-sizing: border-box;
  background: white;
  /* Sticky so it appears at top of every page as you scroll */
}
.al-letterhead-logo {
  width: 27.3mm;
  height: 19.8mm;
  display: block;
  margin: 0 auto 2.5mm;
  object-fit: contain;
}
.al-letterhead-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13pt; font-weight: 700;
  color: #980000;
  letter-spacing: 0.02em;
  margin: 0 0 2pt;
}
.al-letterhead-addr {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 7.5pt; color: #134F5C; margin: 0 0 1pt;
}
.al-letterhead-contact {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 7.5pt; color: #134F5C; margin: 0 0 3mm;
}
.al-letterhead-rule {
  border: none; border-top: 1.5px solid #134F5C;
  margin: 0 0 5mm; width: 100%;
}

/* Document typography */
.al-doc-center  { text-align: center; }
.al-doc-bold    { font-weight: 700; }
.al-doc-title   { font-size: 14pt; letter-spacing: 0.04em; margin-bottom: 14pt; }
.al-doc-section { margin-top: 13pt; margin-bottom: 4pt; font-size: 11pt; }
.al-doc-sub     { margin-top: 12pt; }
.al-doc-ref-row { display: flex; justify-content: space-between; margin-bottom: 14pt; font-size: 10.5pt; }
.al-doc-divider { border: none; border-top: 1px solid #ccc; margin: 18pt 0; }

/* Variable highlighting */
.al-filled   { background: rgba(200,180,138,0.25); border-radius: 2px; padding: 0 1px; }
.al-unfilled { background: rgba(192,132,90,0.18); color: #8b4513; border-radius: 2px; padding: 0 2px; font-style: italic; }

/* Pulse on focus */
@keyframes alPulse {
  0%   { outline: 3px solid transparent; outline-offset: 0; background-color: transparent; }
  20%  { outline: 3px solid #c8a050; outline-offset: 3px; background-color: rgba(200,160,80,0.2); }
  70%  { outline: 3px solid #c8a050; outline-offset: 3px; background-color: rgba(200,160,80,0.1); }
  100% { outline: 3px solid transparent; outline-offset: 0; background-color: transparent; }
}
.al-var-pulse { border-radius: 3px; animation: alPulse 1.8s ease forwards; }

/* Schedule table */
.al-schedule-table { width: 100%; border-collapse: collapse; margin: 10pt 0; font-size: 10.5pt; }
.al-schedule-table td { border: 1px solid #ccc; padding: 5pt 8pt; }
.al-schedule-table td:first-child { width: 30%; font-weight: 600; background: #f8f4ec; }

/* Signature block */
.al-signature-block { margin-top: 16pt; line-height: 2; }

/* ── Print ── */
@media print {
  .al-editor-shell { height: auto !important; overflow: visible !important; margin-top: 0 !important; display: block !important; }
  .al-left-panel, .al-doc-toolbar { display: none !important; }
  .al-right-panel { display: block !important; background: white !important; overflow: visible !important; }
  .al-doc-scroll { display: block !important; padding: 0 !important; overflow: visible !important; background: white !important; }
  .al-a4-page {
    width: 100% !important; min-height: 297mm !important;
    box-shadow: none !important; background-image: none !important;
    padding: 0 15mm 15mm !important;
  }
  .al-letterhead { width: 100% !important; margin-left: 0 !important; padding: 5mm 15mm 0 !important; }
  .al-filled   { background: none !important; }
  .al-unfilled { background: none !important; color: #111 !important; font-style: normal !important; }
}
/* ── Wizard additions ──────────────────────────────────────────────────────── */

/* Step indicator below dots */
.wiz-step-indicator {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 12px;
  color: #a89070;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* Category tile error state */
.wiz-cat-tile--error {
  border: 2px solid #e05252 !important;
  background: #fff5f5 !important;
}

/* Status field error highlight */
.wiz-field--error .wiz-radio-group {
  border: 1.5px solid #e05252;
  border-radius: 10px;
  padding: 6px;
  background: #fff5f5;
}

/* Numeric inputs use sans-serif for consistent digit rendering */
.wiz-input--num,
input.wiz-input--num,
.wiz-acc-fields input[type="number"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Add Unit button row — sits below data rows */
.wiz-add-unit-row {
  display: flex;
  padding: 6px 0 2px 0;
}
/* ── Centered empty projects message ──────────────────────────────────────── */
.projects-empty-msg {
  text-align: center;
  width: 100%;
  padding: 40px 0;
  color: var(--text-brown);
  opacity: 0.6;
  font-family: var(--font-primary);
  font-size: 15px;
}

/* ── Calc loading (no visible text) ──────────────────────────────────────── */
.calc-loading { min-height: 200px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE – Wizard (Add / Edit Project)
   Breakpoints:  tablet ≤ 768px   mobile ≤ 480px
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 768px) ─────────────────────────────────────────────────────── */
@media (max-width: 660px) {

  /* Outer wrapper: reduce padding */
  .wiz-outer {
    padding: 80px 12px 40px;
    max-width: 100%;
  }

  /* Card switches to column — sidebar on top, main below */
  .wiz-shell {
    flex-direction: column;
    min-height: auto;
    border-radius: 16px;
  }

  /* ── Sidebar becomes a compact horizontal strip ── */
  .wiz-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
  }

  /* Stepper becomes horizontal */
  .wiz-stepper {
    flex-direction: row;
    gap: 4px;
    justify-content: flex-start;
    flex: 1;
    flex-wrap: nowrap;
  }

  /* Each step item: compact pill */
  .wiz-step {
    flex-direction: row;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 20px;
    flex-shrink: 0;
  }

  /* Hide hint text on tablet to save space */
  .wiz-step-hint { display: none; }

  /* Smaller dot on tablet */
  .wiz-step-dot {
    width: 26px; height: 26px;
    font-size: 11px;
  }

  .wiz-step-label { font-size: 13px; }

  /* Main content area */
  .wiz-main { min-height: 0; }

  .wiz-content-wrap {
    padding: 20px 20px 60px;
  }

  /* Reset button repositioned */
  .wiz-reset-btn {
    top: 12px;
    right: 12px;
  }

  /* Continue/Finish button: smaller on tablet */
  .wiz-continue-btn {
    bottom: 14px;
    right: 14px;
    width: 50px; height: 50px;
  }

  /* Accordion fields stack if needed */
  .wiz-acc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .wiz-acc-label { min-width: 0; }
  .wiz-input--sm { width: 100%; max-width: 100%; }

  /* Step 4 unit table: allow horizontal scroll */
  .wiz-unit-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wiz-unit-row {
    grid-template-columns: 80px 80px 80px 100px 32px;
    min-width: 420px;
  }

  /* Upload row stacks on tablet */
  .wiz-upload-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .wiz-sample-btn {
    justify-content: center;
    width: 100%;
  }

  /* Dots row */
  .wiz-dots-row { padding: 14px 0 0; }

  /* Step indicator */
  .wiz-step-indicator { margin-top: 4px; }
}

/* ── Mobile (≤ 480px) ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {

  .wiz-outer {
    padding: 72px 8px 32px;
  }

  .wiz-shell { border-radius: 12px; }

  /* Sidebar: even more compact */
  .wiz-sidebar { padding: 10px 10px; }

  /* Labels hidden, show only numbers */
  .wiz-step-label { display: none; }

  .wiz-step { padding: 4px 6px; gap: 4px; }

  .wiz-step-dot {
    width: 28px; height: 28px;
    font-size: 12px;
  }

  /* Content area */
  .wiz-content-wrap {
    padding: 16px 14px 70px;
  }

  /* Step title slightly smaller */
  .wiz-step-title { font-size: 18px !important; }

  /* Fields full-width */
  .wiz-fields { gap: 14px; }
  .wiz-input { width: 100%; box-sizing: border-box; }

  /* Category tiles: 2 columns */
  .wiz-cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Accordion */
  .wiz-accordion-list { gap: 8px; }
  .wiz-acc-header { padding: 12px 14px; }
  .wiz-acc-fields { padding: 12px 14px; gap: 12px; }

  /* Unit rows: tighter grid, scrollable */
  .wiz-unit-row {
    grid-template-columns: 70px 70px 70px 90px 28px;
    min-width: 380px;
    gap: 6px;
  }
  .wiz-unit-list { padding: 8px 10px; }

  /* Buttons touch-friendly */
  .wiz-add-unit-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }
  .wiz-continue-btn {
    width: 48px; height: 48px;
    bottom: 12px; right: 12px;
  }

  /* Upload zone: compact */
  .wiz-upload-zone { font-size: 12px; padding: 10px 12px; }
  .wiz-upload-row { padding: 8px 10px 0; }
}

/* ── Change 4: Logo tooltip ───────────────────────────────────────────────── */
.pill-logo {
  position: relative;
}
/* Use a wrapper approach — pill-logo is an <img> so ::after won't work.
   We add the tooltip via a sibling span injected in JS via the data-tooltip pattern,
   OR use the pill-right wrapper. Since <img> can't have ::after, we style the
   parent .pill-right with a data-tooltip attribute set on the logo wrapper. */

/* Logo tooltip via pill-logo-wrap */
.pill-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.pill-logo-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42,31,18,0.82);
  color: #f5edde;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}
.pill-logo-wrap:hover::after { opacity: 1; }

/* ── Change 7: Remove number input spinners (arrows) globally in wizard ───── */
/* Chrome / Safari / Edge */
.wiz-input[type="number"]::-webkit-inner-spin-button,
.wiz-input[type="number"]::-webkit-outer-spin-button,
.wiz-input--num::-webkit-inner-spin-button,
.wiz-input--num::-webkit-outer-spin-button,
.wiz-acc-fields input[type="number"]::-webkit-inner-spin-button,
.wiz-acc-fields input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
.wiz-input[type="number"],
.wiz-input--num,
.wiz-acc-fields input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ── Step 4 category accordions ──────────────────────────────────────────── */
.wiz-units-acc {
  border: 1px solid #e8dfc8;
  border-radius: 14px;
  overflow: hidden;
  background: #fdfaf4;
  margin-bottom: 12px;
}

.wiz-units-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(to right, #f0e8d8, #ede0cc);
  border: none;
  border-bottom: 1px solid #e0d4bc;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: background var(--motion-fast);
}
.wiz-units-acc-header:hover { background: linear-gradient(to right, #ece0cc, #e8d8be); }
.wiz-units-acc-header--open { border-bottom-color: #d8cbb0; }

.wiz-units-acc-body {
  display: none;
  overflow: hidden;
}
.wiz-units-acc-body--open {
  display: block;
}

.wiz-units-acc-chevron {
  display: flex;
  align-items: center;
  color: var(--text-brown);
  opacity: 0.6;
  transition: transform var(--motion-fast);
}
.wiz-acc-chevron--open {
  transform: rotate(180deg);
}

/* ── Placeholder symbol styling — faint ─────────────────────────────────── */
/* Shows ₹ or % as faint placeholder inside number inputs */
.wiz-input::placeholder,
.wiz-input--num::placeholder,
.wiz-acc-fields input::placeholder {
  color: rgba(111, 85, 52, 0.3);
  font-size: 14px;
}

/* ── Confirm modal bullet list ───────────────────────────────────────────── */
.confirm-modal-list {
  margin: 6px 0 10px;
  padding: 0 0 0 18px;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-brown);
  opacity: 0.85;
  line-height: 1.7;
}
.confirm-modal-list li { margin-bottom: 2px; }

/* ── Responsive: upload zone keeps proportions on small screens ─────────── */
@media (max-width: 660px) {
  .wiz-upload-zone { min-height: 60px; padding: 14px; }
  .wiz-sample-btn { min-height: 60px; width: 90px; font-size: 11px; }
}