.pcc-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 64px;
  padding: 0 32px 64px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background: transparent;
  box-sizing: border-box;
}

.pcc-wrap *,
.pcc-wrap *::before,
.pcc-wrap *::after {
  box-sizing: inherit;
}

.pcc-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.pcc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
  gap: 24px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid #e6e8ec;
  background: #ffffff;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.pcc-hero__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pcc-eyebrow {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.pcc-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
}

.pcc-intro {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.pcc-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.pcc-chip {
  border: 1px solid #e6e8ec;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #2563eb;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}
.pcc-hero__flow {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pcc-hero__flow li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  color: #4b5563;
}

.pcc-hero__flow li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pcc-hero__status {
  border-radius: 24px;
  border: 1px solid #e6e8ec;
  background: #f8fbff;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.pcc-status-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  padding: 8px 0;
}

.pcc-status-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.pcc-status-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.pcc-status-card small {
  color: #4b5563;
  font-size: 13px;
}

.pcc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.pcc-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pcc-column--analysis .pcc-panel--canvas {
  flex: 1;
}

.pcc-column--analysis .pcc-panel {
  transition: opacity 0.25s ease;
}

.pcc-wrap[data-phase='entry'] .pcc-column--analysis .pcc-panel,
.pcc-wrap[data-phase='results'] .pcc-column--analysis .pcc-panel {
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.pcc-wrap[data-phase='results'] .pcc-panel--form {
  box-shadow: none;
  border-color: #dfe3ea;
}

.pcc-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pcc-panel--results {
  gap: 20px;
}

.pcc-form-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcc-form-head--compact {
  padding-bottom: 4px;
  border-bottom: 1px solid #eef0f4;
}

.pcc-form-head--minimal {
  padding-bottom: 0;
  border-bottom: none;
  gap: 18px;
}

.pcc-form-head--minimal h2 {
  font-size: 26px;
}

.pcc-form-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin: 0;
}

.pcc-form-head h2,
.pcc-form-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.pcc-form-head p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.pcc-form-flow {
  font-size: 13px;
  color: #9ca3af;
}

.pcc-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid #eef0f4;
}

.pcc-block:first-of-type {
  padding-top: 0;
  border-top: none;
}

.pcc-block__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.pcc-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: #111827;
}

.pcc-note {
  margin: -4px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.pcc-check--minimal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #111827;
}

.pcc-check--minimal input {
  width: 18px;
  height: 18px;
}

.pcc-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pcc-panel__title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pcc-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid #e6e8ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: #f6f7f9;
}

.pcc-panel__icon svg {
  width: 22px;
  height: 22px;
}

.pcc-panel__title h3 {
  margin: 0;
  font-size: 20px;
}

.pcc-panel__title p {
  margin: 4px 0 0;
  color: #6b7280;
}

.pcc-panel__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 6px;
}

.pcc-panel__step {
  border: 1px dashed #e6e8ec;
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
}

.pcc-panel__step strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: #111827;
}

.pcc-panel__step small {
  color: #6b7280;
}

.pcc-panel__toggle {
  border: 1px solid #d8dae0;
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pcc-panel__toggle:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.pcc-panel__toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.pcc-panel__toggle-icon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  display: inline-block;
}

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

.pcc-panel--production[data-collapsed='true'] .pcc-panel__toggle-icon {
  transform: rotate(180deg);
}

.pcc-panel__tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 6px 12px;
}

.pcc-entry-body {
  max-height: 2400px;
  transition: max-height 0.32s ease, opacity 0.24s ease;
  opacity: 1;
}

.pcc-panel--form.is-collapsed .pcc-entry-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.pcc-panel--form.is-collapsed {
  padding: 22px;
  gap: 12px;
}

.pcc-panel--form.is-collapsed .pcc-panel__head {
  margin-bottom: 0;
}

.pcc-panel--form.is-collapsed .pcc-panel__title p:not(.pcc-panel__eyebrow) {
  display: none;
}

.pcc-wrap[data-phase='results'] .pcc-panel--form {
  border-color: #d8dae0;
  background: #fdfdfd;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.pcc-entry-summary {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 16px;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.3s ease, margin 0.3s ease;
}

.pcc-panel--form.is-collapsed .pcc-entry-summary {
  max-height: 420px;
  padding: 14px 16px;
  margin-bottom: 4px;
  opacity: 1;
  pointer-events: auto;
}

.pcc-entry-summary__items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  flex: 1;
}

.pcc-entry-summary__item {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcc-entry-summary__item span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pcc-entry-summary__item strong {
  font-size: 18px;
}

.pcc-entry-summary__btn {
  align-self: flex-start;
  height: 42px;
}

.pcc-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: transparent;
}

.pcc-mode-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.pcc-mode-btn {
  border-radius: 999px;
  border: 1px solid #d8dae0;
  background: #fff;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #475569;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pcc-mode-btn.is-active {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.pcc-mode-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.pcc-mode-hint {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  flex: 1 0 100%;
}

.pcc-advanced-fields {
  border-radius: 18px;
  border: 1px dashed #e1e3e8;
  padding: 18px;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, border-width 0.3s ease;
  margin-top: 8px;
}

.pcc-wrap[data-mode='advanced'] .pcc-advanced-fields {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
}

.pcc-wrap[data-mode='quick'] .pcc-advanced-fields {
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.pcc-advanced-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcc-advanced-head strong {
  font-size: 15px;
}

.pcc-advanced-head p {
  margin: 0;
  color: #6b7280;
}

.pcc-form-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #eceef3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pcc-form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 24px;
}

.pcc-presets {
  border: 1px solid #e6e8ec;
  border-radius: 20px;
  padding: 16px 18px;
  background: #fafbfc;
}

.pcc-presets__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pcc-presets__head strong {
  display: block;
}

.pcc-presets__head p {
  margin: 4px 0 0;
  color: #6b7280;
}

.pcc-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pcc-custom-fields {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.pcc-custom-fields.is-visible {
  display: flex;
}

.pcc-piece-presets {
  border: 1px dashed #e1e3e8;
  border-radius: 18px;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pcc-piece-presets p {
  margin: 0;
  font-weight: 600;
  color: #1f2933;
}

.pcc-preset-list--pieces {
  gap: 8px;
}

.pcc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.pcc-grid--meta {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pcc-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.pcc-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pcc-field-hint {
  color: #6b7280;
  font-size: 12px;
}

.pcc-grid input,
.pcc-item-row input {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #d8dae0;
  background: #fdfdfd;
  padding: 10px 14px;
  font-size: 15px;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pcc-grid input:focus,
.pcc-item-row input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.pcc-tax-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pcc-tax-row input[type="number"] {
  max-width: 140px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #d8dae0;
  padding: 8px 12px;
  font-size: 14px;
}

.pcc-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1f2933;
}

.pcc-switch input {
  width: 18px;
  height: 18px;
}

.pcc-hint {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
  cursor: help;
  position: relative;
}

.pcc-hint:focus-visible,
.pcc-hint:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.pcc-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  max-width: 220px;
  text-align: center;
  background: #111827;
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.pcc-hint:hover::after,
.pcc-hint:focus-visible::after {
  opacity: 1;
}

.pcc-items {
  margin: 32px 0 16px;
}

.pcc-items__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.pcc-items__hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.pcc-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.pcc-items-empty {
  border: 1px dashed #d8dae0;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #6b7280;
  background: #f8fafc;
  font-size: 14px;
}

.pcc-item-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(2, minmax(120px, 1fr)) auto;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #d8dae0;
  border-radius: 18px;
  background: #fafbfc;
}

.pcc-remove-item {
  border: 1px solid #fcd5d5;
  border-radius: 12px;
  background: #fff5f5;
  color: #ef4444;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pcc-remove-item svg {
  width: 16px;
  height: 16px;
}

.pcc-remove-item:hover {
  background: #fee2e2;
}

.pcc-btn,
.pcc-primary,
.pcc-secondary,
.pcc-tertiary {
  border-radius: 14px;
  border: 1px solid transparent;
  height: 48px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pcc-btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.pcc-btn-icon svg {
  width: 100%;
  height: 100%;
}

.pcc-primary {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}

.pcc-primary:hover {
  background: #1d4ed8;
}

.pcc-secondary {
  background: #eef2ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

.pcc-secondary:hover {
  background: #e0e7ff;
}

.pcc-tertiary {
  background: #fff;
  border-color: #e6e8ec;
  color: #111827;
}

.pcc-tertiary:hover {
  border-color: #cbd0d9;
}

.pcc-btn--ghost {
  background: #fff;
  border: 1px dashed #d8dae0;
  color: #2563eb;
  height: 42px;
  padding: 0 16px;
}

.pcc-btn--ghost:hover {
  border-color: #2563eb;
}

.pcc-btn--preset {
  background: #fff;
  border-color: #d8dae0;
  color: #111827;
  height: 40px;
  font-weight: 500;
}

.pcc-btn--preset:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.pcc-btn--preset.is-active {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.pcc-btn:focus-visible,
.pcc-primary:focus-visible,
.pcc-secondary:focus-visible,
.pcc-tertiary:focus-visible,
.pcc-btn--ghost:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.pcc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pcc-panel--actions-block {
  gap: 16px;
}

.pcc-calc-feedback {
  font-size: 13px;
  color: #475569;
  margin: 8px 0 0;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.pcc-calc-feedback.is-visible {
  opacity: 1;
  max-height: 60px;
}

.pcc-check {
  margin-top: 18px;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fafbfc;
}

.pcc-check input {
  width: 20px;
  height: 20px;
  accent-color: #2563eb;
}

.pcc-check__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcc-check__title {
  font-weight: 600;
}

.pcc-check__body small {
  color: #6b7280;
}

.pcc-check__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid #d8dae0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.pcc-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pcc-tech-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pcc-kpi-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pcc-kpi-block {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcc-kpi-block span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #94a3b8;
}

.pcc-kpi-block strong {
  font-size: 36px;
  line-height: 1;
  color: #0f172a;
}

.pcc-kpi-block--secondary strong {
  font-size: 24px;
}

.pcc-efficiency {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pcc-efficiency-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #1f2937;
}

.pcc-efficiency-head strong {
  font-size: 18px;
}

.pcc-efficiency-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.pcc-efficiency-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
}

.pcc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.pcc-metric {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fdfdfd;
}

.pcc-metric span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.pcc-metric strong {
  font-size: 18px;
  color: #0f172a;
}

.pcc-result-card--empty {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: #f9fafb;
}

.pcc-result-card__title {
  margin: 0 0 4px;
  font-weight: 600;
  color: #111827;
  font-size: 15px;
}

.pcc-result-card__hint {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.pcc-result-empty {
  border: 1px dashed #d8dae0;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #6b7280;
  background: #f8fafc;
  font-size: 14px;
}

.pcc-result-empty.is-error {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.pcc-result-highlight {
  border: 1px solid #2563eb;
  border-radius: 20px;
  padding: 18px;
  background: rgba(37, 99, 235, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pcc-result-highlight p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.pcc-result-highlight h4 {
  margin: 0;
  font-size: 20px;
}

.pcc-result-highlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #1f2933;
}

.pcc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pcc-result-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.pcc-result-card strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.pcc-result-card span {
  font-size: 20px;
  font-weight: 600;
}

.pcc-result-grid + p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed #d8dae0;
  color: #6b7280;
  background: #fafbfc;
}

.pcc-rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pcc-rank-card {
  grid-column: 1 / -1;
  border: 1px solid #e6e8ec;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.pcc-rank-card.is-best {
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.pcc-rank-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pcc-rank-card__top strong {
  font-size: 16px;
}

.pcc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
}

.pcc-badge--success {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.pcc-badge--muted {
  background: #edf1f7;
  color: #475467;
}

.pcc-scrap-note {
  border: 1px dashed #d7dbe5;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.pcc-scrap-note.is-active {
  border-color: #c3d2ff;
  background: #eef3ff;
}

.pcc-scrap-note__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.pcc-scrap-note__main span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.pcc-scrap-note__main strong {
  font-size: 28px;
  color: #0f172a;
}

.pcc-scrap-note__status {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcc-scrap-note__status p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.pcc-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  font-size: 14px;
  color: #4b5563;
}

.pcc-suggestions {
  border-top: 1px solid #eef0f4;
  padding-top: 12px;
  margin-bottom: 12px;
}

.pcc-suggestions--smart {
  border-top: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pcc-suggestions__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pcc-suggestions__head span {
  font-weight: 600;
  color: #0f172a;
}

.pcc-suggestions__head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.pcc-suggestions__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pcc-suggestions__item {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e1e8ff;
  background: #f8fbff;
  font-size: 14px;
  color: #1f2933;
}

.pcc-suggestions__item.is-empty {
  text-align: center;
  color: #6b7280;
  background: #f3f4f6;
  border-style: dashed;
  font-weight: 500;
}

.pcc-canvas-wrap {
  border: 1px solid #e6e8ec;
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 520px;
}

.pcc-canvas-stage {
  flex: 1;
  border: 1px solid #d8dae0;
  border-radius: 20px;
  background: #f5f6fb;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 60vh, 640px);
  position: relative;
  overflow: hidden;
}

#pcc-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.pcc-canvas__hint {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.pcc-canvas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}

.pcc-legend {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-flex;
  margin-right: 6px;
}

.pcc-legend--sheet {
  background: #e2e8f0;
}

.pcc-legend--usable {
  background: #cbd5f5;
}

.pcc-legend--pieces {
  background: rgba(37, 99, 235, 0.6);
}

.pcc-legend--waste {
  background: rgba(239, 68, 68, 0.4);
}

.pcc-panel--production {
  margin-top: 32px;
}

.pcc-panel--production[data-state='idle'] .pcc-production {
  opacity: 0.85;
}

.pcc-production {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 1600px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.pcc-production__empty {
  border: 1px dashed #d8dae0;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: #6b7280;
  background: #f8fafc;
}

.pcc-production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.pcc-production-card {
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcc-production-card strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.pcc-production-card span {
  font-size: 18px;
  font-weight: 600;
}

.pcc-production-card small {
  color: #6b7280;
}

@keyframes pccFadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pcc-wrap[data-phase='results'] .pcc-column--analysis .pcc-panel {
  animation: pccFadeSlide 0.35s ease;
}

.pcc-panel--production[data-state='ready'] .pcc-production-grid {
  animation: pccFadeSlide 0.35s ease;
}

.pcc-panel--production[data-collapsed='true'] .pcc-production {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .pcc-wrap {
    padding: 0 20px 48px;
  }

  .pcc-hero {
    grid-template-columns: 1fr;
  }

  .pcc-hero__status {
    width: 100%;
  }

  .pcc-layout {
    grid-template-columns: 1fr;
  }

  .pcc-canvas-stage {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .pcc-panel,
  .pcc-hero {
    padding: 20px;
  }

  .pcc-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .pcc-panel__tag {
    align-self: flex-start;
  }

  .pcc-item-row {
    grid-template-columns: 1fr;
  }

  .pcc-actions {
    flex-direction: column;
  }

  .pcc-btn,
  .pcc-primary,
  .pcc-secondary,
  .pcc-tertiary,
  .pcc-btn--ghost {
    width: 100%;
    justify-content: center;
  }

  .pcc-hero__chips {
    justify-content: flex-start;
  }

  .pcc-canvas-stage {
    min-height: 260px;
  }

  .pcc-tax-row input[type="number"] {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .pcc-mode-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .pcc-mode-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcc-btn,
  .pcc-primary,
  .pcc-secondary,
  .pcc-tertiary,
  .pcc-grid input,
  .pcc-item-row input {
    transition: none;
  }
}
