/* Scoped product shell components; existing fixed core stages keep their layout. */
.pw-feature{grid-template-rows:auto minmax(0,1fr) auto;gap:12px}.pw-feature-header{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center}.pw-feature-header h2{font-size:18px;line-height:1.35;overflow-wrap:anywhere}.pw-feature-heading{display:grid;gap:4px;min-width:0}.pw-feature-body{overflow-y:auto;overflow-x:hidden;min-height:0;min-width:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:3px}.pw-feature-footer{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.pw-feature-footer>*{flex:1}.pw-feature .pw-button,.pw-feature-sheet .pw-button{white-space:normal;line-height:1.35;padding:12px 16px;box-shadow:none}.pw-feature-card{padding:16px;border:1px solid var(--pw-divider);border-radius:20px;background:var(--pw-surface-soft);display:grid;gap:10px;min-width:0;overflow-wrap:anywhere;flex-shrink:0}.pw-feature-card h3{font-size:17px;line-height:1.4}.pw-feature-card p{line-height:1.5}.pw-status-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;width:fit-content;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:650;color:var(--pw-primary-text);background:var(--pw-primary-soft);line-height:1.4}.pw-status-chip--error{color:var(--pw-color-danger);background:#fceff1}.pw-preview-notice{padding:12px;border:1px dashed var(--pw-primary-text);border-radius:16px;font-size:.875rem;line-height:1.5;color:var(--pw-primary-text);background:var(--pw-primary-soft);flex-shrink:0}.pw-feature-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:48px;border-bottom:1px solid var(--pw-divider);padding-block:8px;overflow-wrap:anywhere}.pw-feature-row:last-child{border:0}.pw-feature-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.pw-feature-actions>*{flex:1;min-width:0}.pw-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}.pw-feature-field{display:grid;gap:6px;min-width:0}.pw-feature-field label{font-weight:650;line-height:1.4}.pw-feature-field input,.pw-feature-field select,.pw-feature-field textarea{min-width:0;width:100%;min-height:48px;border:1px solid var(--pw-divider);border-radius:14px;padding:12px;background:white;font-size:1rem;color:var(--pw-ink-strong)}.pw-feature-field textarea{min-height:88px;resize:vertical}.pw-feature-empty{padding:20px;text-align:center;display:grid;justify-items:center;gap:12px;min-width:0;overflow-wrap:anywhere;flex-shrink:0}.pw-feature-art{position:relative;width:80px;height:80px;--pw-art-size:100px;flex-shrink:0}.pw-feature-accordion{border:1px solid var(--pw-divider);border-radius:16px;background:var(--pw-surface);padding-inline:12px;overflow-wrap:anywhere}.pw-feature-accordion summary{min-height:48px;padding-block:12px;cursor:pointer;font-weight:650}.pw-feature-accordion>div{padding-bottom:12px;display:grid;gap:8px}.pw-feature-option{display:flex;align-items:center;gap:12px;min-height:48px;border:1px solid var(--pw-divider);border-radius:14px;padding:10px;background:var(--pw-surface);text-align:left;overflow-wrap:anywhere}.pw-feature-option[aria-pressed=true]{border-color:var(--pw-primary-text);background:var(--pw-primary-soft);color:var(--pw-primary-text)}.pw-feature-danger{color:var(--pw-color-danger);background:#fceff1;border:1px solid var(--pw-color-danger)}.pw-feature-sheet[open]{height:min(var(--pw-flow-height,100dvh),760px);inset:auto 0 max(0px,calc(100dvh - var(--pw-flow-top,0px) - var(--pw-flow-height,100dvh)));border-radius:24px 24px 0 0;padding-left:max(var(--pw-stage-gutter),var(--pw-safe-left));padding-right:max(var(--pw-stage-gutter),var(--pw-safe-right));grid-template-rows:48px minmax(0,1fr) auto;gap:12px}.pw-feature-sheet::backdrop{background:var(--pw-color-backdrop)}.pw-feature-sheet .pw-flow-header{grid-template-columns:minmax(0,1fr) 48px}.pw-feature-sheet .pw-flow-title{grid-column:1}.pw-feature-sheet .pw-flow-header>.pw-icon-button:last-child{grid-column:2}.pw-feature-sheet .pw-flow-body{display:flex;flex-direction:column;align-items:stretch;align-content:flex-start;overflow:auto;justify-content:flex-start;gap:12px;padding:3px}.pw-feature-sheet .pw-flow-body>*{flex-shrink:0}.pw-feature-row{flex-wrap:wrap}.pw-feature-row>span{min-width:0;overflow-wrap:anywhere}.pw-feature-sheet .pw-flow-title{overflow-wrap:anywhere}.pw-feature-sheet .pw-flow-footer{padding-bottom:8px}.pw-feature-tool-button{font-size:12px;border:0;border-radius:14px;background:var(--pw-primary-soft);color:var(--pw-primary-text);min-height:48px;min-width:48px;padding:8px}.pw-feature-score{font-size:clamp(32px,10vw,56px);font-weight:850;overflow-wrap:anywhere;line-height:1.15;font-variant-numeric:tabular-nums}.pw-feature-meter{height:10px;min-height:10px;border:0;border-radius:999px;overflow:hidden;background:var(--pw-primary-soft);width:100%}.pw-feature-meter>span{height:100%;display:block;background:var(--pw-primary-text);border-radius:inherit}.pw-feature-skeleton{border-radius:14px;height:48px;background:var(--pw-surface-soft);border:1px solid var(--pw-divider)}.pw-feature-inline-note{font-size:12px;color:var(--pw-primary-text);line-height:1.4}.pw-feature-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border:0;border-bottom:1px solid var(--pw-divider);background:white;text-align:left;padding:12px 0}.pw-feature-toggle>span:last-child{white-space:nowrap;color:var(--pw-primary-text);font-size:.875rem}.pw-core-tools{display:flex;gap:8px;min-width:0}.pw-core-tools>*{flex:1;min-width:0}.pw-accessible .pw-feature{height:auto;min-height:0}.pw-accessible .pw-feature-body{overflow:visible}.pw-accessible .pw-feature-header{grid-template-columns:var(--pw-touch-target) minmax(0,1fr)}.pw-accessible .pw-feature h2{font-size:1.125rem}.pw-accessible .pw-feature-grid{grid-template-columns:minmax(0,1fr)}.pw-feature-sheet[open]:has(.pw-flow-progress:not([hidden])){grid-template-rows:48px auto minmax(0,1fr) auto}.pw-accessible .pw-feature-sheet[open]{height:var(--pw-flow-height,100dvh);min-height:0;position:fixed;overflow:auto;grid-template-rows:auto auto auto}.pw-accessible .pw-feature-sheet[open]:has(.pw-flow-progress:not([hidden])){grid-template-rows:auto auto auto auto}.pw-accessible .pw-feature-card h3{font-size:1.0625rem}.pw-accessible .pw-status-chip{font-size:.75rem}.pw-feature-sheet[data-keyboard=true]{padding-top:0;padding-bottom:0}.pw-feature-sheet[data-compact=true][open]{gap:6px}.pw-feature-sheet[data-compact=true][open]:not(:has(.pw-flow-progress:not([hidden]))){grid-template-rows:48px minmax(0,1fr) auto}.pw-accessible .pw-feature-sheet[data-compact=true][open]:not(:has(.pw-flow-progress:not([hidden]))){grid-template-rows:auto auto auto}.pw-feature-sheet[data-compact=true] .pw-flow-footer{padding:0}.pw-feature-sheet[data-compact=true] .pw-feature-card{padding:10px}.pw-feature .pw-feature-body:focus-visible{outline-offset:-2px}@media(prefers-reduced-motion:reduce){.pw-feature-meter>span{transition:none}}@media(max-width:300px){.pw-feature-grid{grid-template-columns:minmax(0,1fr)}}

/* WebKit exposes long native option labels as field overflow in large-text layouts.
   Bound the paint to the select field while preserving the complete option value. */
.pw-feature-field:has(select) { overflow-x: clip; }
.pw-feature-field select { max-width: 100%; text-overflow: ellipsis; }
