

:root {
  
  --background: oklch(0.985 0.005 240);
  --foreground: oklch(0.185 0.02 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.185 0.02 250);
  --primary: oklch(0.52 0.16 245);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.96 0.01 240);
  --secondary-foreground: oklch(0.25 0.03 250);
  --muted: oklch(0.96 0.005 240);
  --muted-foreground: oklch(0.5 0.02 250);
  --accent: oklch(0.94 0.04 240);
  --accent-foreground: oklch(0.25 0.05 250);
  --destructive: oklch(0.6 0.22 25);
  --destructive-foreground: oklch(0.99 0 0);
  --success: oklch(0.62 0.16 155);
  --success-foreground: oklch(0.99 0 0);
  --warning: oklch(0.78 0.15 75);
  --warning-foreground: oklch(0.2 0.04 70);
  --border: oklch(0.9 0.01 240);
  --input: oklch(0.92 0.01 240);
  --ring: oklch(0.52 0.16 245);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.185 0.02 250);

  
  --radius: 0.75rem; 
  --radius-sm: calc(var(--radius) - 4px); 
  --radius-md: calc(var(--radius) - 2px); 
  --radius-lg: var(--radius); 
  --radius-xl: calc(var(--radius) + 4px); 
  --radius-2xl: calc(var(--radius) + 8px); 

  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.16 0.02 250);
    --foreground: oklch(0.97 0.01 240);
    --card: oklch(0.22 0.02 250);
    --card-foreground: oklch(0.97 0.01 240);
    --primary: oklch(0.7 0.16 245);
    --primary-foreground: oklch(0.15 0.02 250);
    --secondary: oklch(0.25 0.02 250);
    --secondary-foreground: oklch(0.97 0.01 240);
    --muted: oklch(0.25 0.02 250);
    --muted-foreground: oklch(0.7 0.02 250);
    --accent: oklch(0.28 0.04 250);
    --accent-foreground: oklch(0.97 0.01 240);
    --destructive: oklch(0.5 0.2 25);
    --destructive-foreground: oklch(0.99 0 0);
    --success: oklch(0.5 0.15 155);
    --success-foreground: oklch(0.99 0 0);
    --warning: oklch(0.65 0.14 75);
    --warning-foreground: oklch(0.15 0.03 70);
    --border: oklch(1 0 0 / 12%);
    --input: oklch(1 0 0 / 14%);
    --ring: oklch(0.7 0.16 245);
    --popover: oklch(0.22 0.02 250);
    --popover-foreground: oklch(0.97 0.01 240);
  }
}


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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem; 
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  min-height: 100vh;
  padding-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
}

h1 {
  font-size: 1.5rem; 
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.25rem; 
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem; 
  margin-bottom: 0.75rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}


.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-nowrap {
  white-space: nowrap;
}

.currency-value {
  font-size: 0.9em;
  letter-spacing: -0.03em;
}


.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}


header {
  border-bottom: 1px solid var(--border);
  background-color: var(--card);
  margin-bottom: 2rem;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted-foreground);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
  text-decoration: none;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  height: 36px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  gap: 0.5rem;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background-color: oklch(from var(--primary) calc(l - 0.05) c h);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover {
  background-color: oklch(from var(--secondary) calc(l - 0.03) c h);
}

.btn-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}
.btn-destructive:hover {
  background-color: oklch(from var(--destructive) calc(l - 0.05) c h);
}

.btn-outline {
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}
.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-link {
  background-color: transparent;
  color: var(--primary);
  height: auto;
  padding: 0;
}
.btn-link:hover {
  text-decoration: underline;
}

.btn-sm {
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  height: 40px;
  padding: 0 2rem;
}


.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.card-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card-content {
  padding-top: 0;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.card-interactive:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
  cursor: pointer;
}

.card-selected {
  border-color: oklch(from var(--primary) l c h / 0.6);
  box-shadow: 0 0 0 1px oklch(from var(--primary) l c h / 0.2);
}


.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  line-height: 1;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.badge-outline {
  border-color: var(--border);
  color: var(--foreground);
}


.alert {
  padding: 1rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  margin-bottom: 1.25rem;
  position: relative;
  display: flex;
  gap: 0.75rem;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.alert-description {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.alert-destructive {
  border-color: oklch(from var(--destructive) l c h / 0.5);
  background-color: oklch(from var(--destructive) l c h / 0.05);
  color: var(--destructive);
}
.alert-destructive .alert-description {
  color: oklch(from var(--destructive) calc(l - 0.1) c h);
}

.alert-success {
  border-color: oklch(from var(--success) l c h / 0.4);
  background-color: oklch(from var(--success) l c h / 0.05);
  color: var(--success);
}
.alert-success .alert-description {
  color: oklch(from var(--success) calc(l - 0.1) c h);
}

.alert-warning {
  border-color: oklch(from var(--warning) l c h / 0.5);
  background-color: oklch(from var(--warning) l c h / 0.05);
  color: var(--warning-foreground);
}
.alert-warning .alert-description {
  color: var(--warning-foreground);
}


.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  background-color: var(--muted);
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: oklch(from var(--muted) l c h / 0.5);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}


.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  height: 36px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

.form-control::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

.form-control:disabled {
  background-color: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}

textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}


.grid-params {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-params {
    grid-template-columns: repeat(3, 1fr);
  }
}

.input-compact {
  width: 112px;
  text-align: right;
}


.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card-full {
  grid-column: 1 / -1;
}

.kpi-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}


.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2.5rem;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
  transform: translateY(-50%);
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--background);
  padding: 0 0.75rem;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--muted);
  border: 2px solid var(--border);
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.step-item.active .step-circle {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.step-item.active .step-label {
  color: var(--foreground);
  font-weight: 600;
}

.step-item.completed .step-circle {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--success-foreground);
}

.step-item.completed .step-label {
  color: var(--muted-foreground);
}

.step-item.future-accessible {
  cursor: pointer;
  opacity: 0.6;
  text-decoration: none;
}
.step-item.future-accessible:hover {
  opacity: 1;
}
.step-item.future-accessible .step-circle {
  border-color: var(--primary);
  color: var(--primary);
}


.wizard-layout {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

/* Sticky Summary Panel */
.sticky-summary-panel {
  position: sticky;
  top: 0.5rem;
  z-index: 100;
  background-color: oklch(from var(--card) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1.25rem;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-normal);
}

@media print {
  .sticky-summary-panel {
    display: none !important;
  }
}

/* Toggleable Block Selection Cards */
.card-toggle {
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.card-toggle:hover:not(.disabled-card) {
  transform: translateY(-2px);
  border-color: oklch(from var(--primary) l c h / 0.4);
  box-shadow: var(--shadow-md);
}

.card-toggle.card-selected {
  border-color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.03);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.card-toggle.card-selected:hover:not(.disabled-card) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.disabled-card {
  opacity: 0.5;
  cursor: not-allowed !important;
}

.disabled-card * {
  pointer-events: none;
}

/* Progressive Disclosure for Settings */
details.settings-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--card);
  transition: all var(--transition-normal);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

details.settings-details summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: var(--foreground);
}

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

details.settings-details summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  margin-right: 0.25rem;
}

details.settings-details[open] summary::after {
  transform: rotate(-135deg);
}

details.settings-details summary:hover {
  background-color: oklch(from var(--muted) l c h / 0.3);
}

details.settings-details .settings-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}



.opacity-50 {
  opacity: 0.5;
}

.print-only {
  display: none;
}

@media print {
  .print-only {
    display: inline;
  }
}


.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.chip:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--ring);
  transform: scale(1.05);
}

.chip:active {
  transform: scale(0.95);
}


.toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.toggle-option {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background-color: var(--card);
  color: var(--muted-foreground);
  user-select: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.toggle-option:not(:last-child) {
  border-right: 1px solid var(--border);
}

.toggle-option.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.toggle-option:hover:not(.active) {
  background-color: var(--accent);
  color: var(--accent-foreground);
}


@media print {
  .no-print {
    display: none !important;
  }
  body {
    background-color: white;
    color: black;
  }
  .card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
}

.segmented-control {
  display: inline-flex;
  align-items: stretch;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
  max-width: 100%;
  flex-wrap: wrap;
}

.segmented-control-form {
  display: contents;
}

.segmented-control-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--muted-foreground);
  user-select: none;
}

.segmented-control-option:hover:not(.option-disabled):not(.option-readonly) {
  background-color: oklch(from var(--card) calc(l - 0.02) c h / 0.3);
  color: var(--foreground);
}

.segmented-control-option.selected:not(.option-disabled):not(.option-readonly) {
  background-color: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font-weight: 600;
}

.block-pill-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  transition: all var(--transition-fast);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.block-pill-checkbox:hover:not(.option-disabled):not(.option-readonly) {
  border-color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.02);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.block-pill-checkbox.selected:not(.option-disabled):not(.option-readonly) {
  border-color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.07);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.option-readonly {
  background-color: var(--muted);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  opacity: 0.8;
  cursor: not-allowed;
}

.option-disabled {
  border: 1px dashed var(--border);
  background-color: var(--muted);
  color: var(--muted-foreground);
  opacity: 0.5;
  cursor: not-allowed;
}

.option-disabled-reason {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-left: 0.25rem;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-group.flex-wrap {
  flex-wrap: wrap;
}

.inline-group .form-control {
  width: 80px !important;
  text-align: right;
  padding: 0.375rem 0.5rem;
}

.results-plaque {
  background: linear-gradient(135deg, oklch(from var(--primary) l c h / 0.08) 0%, oklch(from var(--primary) l c h / 0.03) 100%);
  border: 1px solid oklch(from var(--primary) l c h / 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .results-plaque {
    grid-template-columns: repeat(3, 1fr);
  }
}

.results-plaque-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
}

.results-plaque-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.results-plaque-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.results-plaque-title {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px dashed oklch(from var(--primary) l c h / 0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Step 1 Card Grid Layout */
.card-grid-step1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .card-grid-step1 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-step1 .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}

.card-grid-step1 .card-content {
  flex-grow: 1;
}

.project-meta-plaque {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .project-meta-plaque {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.project-meta-plaque .form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.project-meta-plaque .form-group:first-child {
  flex: 2;
}

.project-meta-plaque .form-group:last-child {
  flex: 3;
}

/* Input field embedded suffixes */
.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-suffix .form-control {
  padding-right: 2.75rem;
  text-align: right;
}

.input-suffix {
  position: absolute;
  right: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  pointer-events: none;
  font-weight: 500;
  user-select: none;
}

/* Feedback UI and Layout Expansion */
.wizard-layout-wide, .sticky-summary-panel-wide {
  max-width: 1180px !important;
}

.component-name {
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8rem;
  line-height: 1.4;
}

.feedback-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  opacity: 0.4;
  transition: opacity var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.feedback-btn:hover:not(:disabled) {
  opacity: 1;
  background-color: var(--muted);
}

.feedback-btn.feedback-like:hover:not(:disabled) {
  color: var(--success);
}

.feedback-btn.feedback-dislike:hover:not(:disabled) {
  color: var(--destructive);
}

.feedback-btn.active {
  opacity: 1;
  cursor: default;
}

.feedback-btn.feedback-like.active {
  color: var(--success);
  background-color: oklch(from var(--success) l c h / 0.1);
}

.feedback-btn.feedback-dislike.active {
  color: var(--destructive);
  background-color: oklch(from var(--destructive) l c h / 0.1);
}

.feedback-btn.inactive {
  opacity: 0.15;
  cursor: not-allowed;
}

.feedback-popover-container {
  position: relative;
  width: 0;
  height: 0;
}

.feedback-popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 998;
  background: transparent;
}

.feedback-popover-card {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  z-index: 999;
  margin-top: 0.5rem;
  text-align: left;
}




