/* StylePilot Tools – component styles. Uses theme tokens (--sp-*) with fallbacks. */
.spt-tool, .spt-guides, .spt-fabrics, .spt-dresscodes, .spt-faqs, .spt-season-grid {
	--_bg: var(--sp-bg, #f6f3ee); --_sf: var(--sp-surface, #fff); --_sf2: var(--sp-surface-2, #efeae2);
	--_ink: var(--sp-ink, #1e1f22); --_mut: var(--sp-muted, #6b6359); --_line: var(--sp-line, #e3dcd0);
	--_navy: var(--sp-navy, #1c2b45); --_acc: var(--sp-accent, #775940); --_good: var(--sp-good, #2f6b4f); --_warn: var(--sp-warn, #a0502e);
	--_r: var(--sp-radius, 14px); --_serif: var(--sp-font-serif, Georgia, serif);
	color: var(--_ink);
}
.spt-tool *, .spt-tool *::before, .spt-tool *::after { box-sizing: border-box; }
.spt-tool { position: relative; }
.spt-tool__app { min-height: 120px; }
.spt-skeleton { height: 320px; border-radius: var(--_r); background: linear-gradient(90deg, var(--_sf2) 25%, var(--_sf) 50%, var(--_sf2) 75%); background-size: 200% 100%; animation: spt-sk 1.4s infinite linear; }
@keyframes spt-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .spt-skeleton { animation: none; } }

/* layout */
.spt-split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .spt-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .spt-split--fig { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .spt-split--closet { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.spt-grid-2, .spt-grid-3, .spt-grid-4 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .spt-grid-2, .spt-grid-3, .spt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .spt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .spt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spt-split .spt-grid-3, .spt-split .spt-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.spt-panel, .spt-form { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: clamp(16px, 2.4vw, 26px); }
.spt-form { display: grid; gap: 16px; }
.spt-panel + .spt-panel, .spt-split + .spt-panel, .spt-form + .spt-capsule-out, .spt-form + .spt-pair-list, .spt-form + .spt-shoe-out, .spt-split + .spt-saved, .spt-split + .spt-suggest, .spt-suggest + .spt-saved, .spt-form + .spt-result { margin-top: 20px; }

/* fields */
.spt-field { display: grid; gap: 6px; min-width: 0; }
.spt-field > label, .spt-label, .spt-fieldset > legend { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--_mut); }
.spt-field--inline { display: flex; align-items: center; gap: 10px; }
.spt-tool select, .spt-tool input[type=text], .spt-tool input[type=number], .spt-tool input[type=search], .spt-tool textarea, .spt-filterbar select, .spt-compare select, .spt-search input {
	width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--_ink); background: var(--_bg); border: 1px solid var(--_line); border-radius: 10px; -webkit-appearance: none; appearance: none;
}
.spt-tool select, .spt-filterbar select, .spt-compare select { background-image: linear-gradient(45deg, transparent 50%, var(--_mut) 50%), linear-gradient(135deg, var(--_mut) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.spt-tool select[multiple] { background-image: none; padding-right: 12px; min-height: 150px; }
.spt-tool textarea { min-height: 90px; resize: vertical; }
.spt-tool input:focus-visible, .spt-tool select:focus-visible, .spt-tool textarea:focus-visible, .spt-tool button:focus-visible, .spt-search input:focus-visible, .spt-chip:focus-visible, .spt-tab:focus-visible { outline: 3px solid var(--_acc); outline-offset: 2px; }
.spt-hint { color: var(--_mut); font-size: .82rem; line-height: 1.4; }
.spt-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.spt-fieldset > legend { margin-bottom: 8px; padding: 0; }
.spt-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.spt-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--_navy); flex: none; }
.spt-range { display: flex; gap: 12px; align-items: center; }
.spt-range input { flex: 1; accent-color: var(--_navy); min-height: 32px; }
.spt-range output { min-width: 9.5em; font-size: .9rem; color: var(--_mut); }

/* buttons */
.spt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.spt-btn:active { transform: translateY(1px); }
.spt-btn--primary { background: var(--_navy); color: #fff; }
.spt-btn--primary:hover { background: color-mix(in srgb, var(--_navy) 85%, #000); }
.spt-btn--ghost { background: transparent; color: var(--_ink); border-color: var(--_line); }
.spt-btn--ghost:hover { border-color: var(--_ink); }
.spt-btn--link { background: none; border: 0; padding: 6px 8px; min-height: 0; color: var(--_mut); text-decoration: underline; font-weight: 500; }
.spt-btn--danger { background: transparent; color: var(--_warn); border-color: color-mix(in srgb, var(--_warn) 45%, transparent); }
.spt-btn[disabled] { opacity: .55; cursor: wait; }
.spt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spt-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--_line); background: var(--_sf); color: var(--_ink); font-size: 1.1rem; cursor: pointer; }

/* chips & swatches */
.spt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spt-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--_line); background: var(--_sf); color: var(--_ink); font: inherit; font-size: .9rem; cursor: pointer; transition: all .15s; }
.spt-chip:hover { border-color: var(--_ink); }
.spt-chip.is-active { background: var(--_navy); border-color: var(--_navy); color: #fff; }
.spt-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.spt-dot--lg { width: 30px; height: 30px; }
.spt-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.spt-swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); cursor: pointer; position: relative; transition: transform .12s; }
.spt-swatch:hover { transform: scale(1.07); }
.spt-swatch.is-active { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 0 0 3px var(--_sf), 0 0 0 5px var(--_ink); }
.spt-swatch:focus-visible { outline: 3px solid var(--_acc); outline-offset: 4px; }

/* results */
.spt-result { min-height: 200px; }
.spt-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.spt-result h3, .spt-panel h3 { font-family: var(--_serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0; line-height: 1.2; }
.spt-tool h4 { font-size: 1rem; margin: 18px 0 8px; }
.spt-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--_navy); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.spt-pill--soft { background: var(--_sf2); color: var(--_ink); }
.spt-empty-state { display: grid; place-items: center; text-align: center; min-height: 200px; color: var(--_mut); padding: 20px; border: 1px dashed var(--_line); border-radius: var(--_r); }
.spt-note { padding: 12px 14px; border-radius: 10px; background: var(--_sf2); font-size: .95rem; }
.spt-fineprint { font-size: .84rem; color: var(--_mut); line-height: 1.5; }
.spt-lede { font-size: 1.05rem; line-height: 1.6; }
.spt-eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--_acc); font-weight: 700; margin: 0 0 6px; }
.spt-badge { display: inline-block; margin-top: 4px; font-style: normal; font-size: .72rem; color: var(--_good); font-weight: 700; }

.spt-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 120px), 1fr)); gap: 12px; }
.spt-board--compact { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.spt-board--compact:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.spt-tile { margin: 0; background: var(--_bg); border: 1px solid var(--_line); border-radius: 12px; padding: 12px 10px 10px; text-align: center; animation: spt-in .35s ease both; }
.spt-tile:nth-child(2) { animation-delay: .05s; } .spt-tile:nth-child(3) { animation-delay: .1s; } .spt-tile:nth-child(4) { animation-delay: .15s; }
@keyframes spt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spt-tile { animation: none; } }
.spt-tile svg { width: 100%; max-width: 130px; aspect-ratio: 1; display: block; margin: 0 auto 6px; }
.spt-tile figcaption { display: grid; gap: 2px; font-size: .86rem; line-height: 1.3; }
.spt-tile__role { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--_mut); }
.spt-tile.is-owned { border-color: var(--_good); }
.spt-acc { margin: 14px 0 0; font-size: .95rem; }
.spt-why { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spt-why li { padding-left: 16px; position: relative; line-height: 1.55; font-size: .96rem; }
.spt-why li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--_acc); }
.spt-why-wrap { margin: 6px 0 16px; }
.spt-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spt-table th, .spt-table td { padding: 10px 8px; border-bottom: 1px solid var(--_line); text-align: left; vertical-align: top; }
.spt-table thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--_mut); }
.spt-table td.is-win { font-weight: 700; color: var(--_good); }
.spt-num { text-align: right !important; white-space: nowrap; }
.spt-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.spt-shop { margin: 6px 0 16px; }

/* saved */
.spt-saved h4 { margin-top: 24px; }
.spt-saved__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spt-saved__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--_sf); border: 1px solid var(--_line); border-radius: 12px; padding: 10px 12px; }
.spt-saved__list small { display: block; color: var(--_mut); font-size: .82rem; }
.spt-saved__mini { display: flex; }
.spt-saved__mini svg { width: 34px; height: 34px; }
.spt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--_ink); color: var(--_bg); padding: 12px 18px; border-radius: 999px; z-index: 9999; font-size: .92rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: opacity .4s; }
.spt-toast.is-out { opacity: 0; }

/* colour matcher */
.spt-color-controls { display: grid; gap: 14px; }
.spt-slot { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 14px; }
.spt-slot__head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.spt-slot__head h4 { margin: 0; }
.spt-slot__head select { max-width: 62%; min-height: 40px; }
.spt-color-preview { margin-bottom: 14px; }
.spt-verdicts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.spt-verdict { border-radius: 12px; padding: 12px; background: var(--_sf); border: 1px solid var(--_line); display: grid; gap: 2px; border-top: 4px solid var(--_line); }
.spt-verdict span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--_mut); }
.spt-verdict small { color: var(--_mut); }
.spt-verdict.is-good { border-top-color: var(--_good); } .spt-verdict.is-ok { border-top-color: var(--_acc); } .spt-verdict.is-warn { border-top-color: var(--_warn); }
.spt-analysis p { line-height: 1.55; }
.spt-suggest { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 18px; }
.spt-suggest h4 { margin-top: 0; }
.spt-sugg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.spt-sugg-label { width: 100%; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--_mut); font-weight: 700; }
.spt-sugg { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--_line); background: var(--_bg); border-radius: 12px; cursor: pointer; font: inherit; color: var(--_ink); text-align: left; }
.spt-sugg svg { grid-row: span 2; width: 34px; height: 42px; }
.spt-sugg span { font-size: .88rem; font-weight: 600; }
.spt-sugg small { font-size: .74rem; color: var(--_mut); }
.spt-sugg:hover { border-color: var(--_ink); }
.spt-palettes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.spt-palettes li { display: flex; align-items: center; }
.spt-palette { display: flex; align-items: center; gap: 0; padding: 6px 12px 6px 6px; border: 1px solid var(--_line); border-radius: 999px; background: var(--_sf); cursor: pointer; font: inherit; color: var(--_ink); }
.spt-palette span { width: 22px; height: 22px; border-radius: 50%; margin-right: -6px; box-shadow: 0 0 0 2px var(--_sf); }
.spt-palette small { margin-left: 14px; font-size: .8rem; }

/* quiz */
.spt-quiz { max-width: 820px; margin: 0 auto; }
.spt-progress { height: 6px; background: var(--_sf2); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.spt-progress span { display: block; height: 100%; background: var(--_navy); transition: width .3s; }
.spt-quiz h3 { margin-bottom: 18px !important; outline: none; }
.spt-quiz__opts { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .spt-quiz__opts { grid-template-columns: 1fr 1fr; } }
.spt-option { text-align: left; padding: 16px 18px; min-height: 56px; border: 1px solid var(--_line); border-radius: 12px; background: var(--_bg); font: inherit; font-size: 1rem; color: var(--_ink); cursor: pointer; transition: all .15s; }
.spt-option:hover, .spt-option.is-active { border-color: var(--_navy); background: var(--_sf); box-shadow: 0 0 0 1px var(--_navy); }
.spt-bars { display: grid; gap: 8px; margin: 14px 0; }
.spt-bar { display: grid; grid-template-columns: 9em 1fr 3em; gap: 10px; align-items: center; font-size: .92rem; }
.spt-bar__track { height: 10px; background: var(--_sf2); border-radius: 99px; overflow: hidden; }
.spt-bar__track span { display: block; height: 100%; background: var(--_acc); }
.spt-palette-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.spt-checklist { padding-left: 1.2em; line-height: 1.8; columns: 2 220px; }
.spt-checklist--tick { list-style: none; padding: 0; columns: 1; }
.spt-checklist--tick label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.spt-checklist--tick input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--_navy); flex: none; }
.spt-more { margin-top: 14px; border-top: 1px solid var(--_line); padding-top: 10px; }
.spt-more > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* capsule */
.spt-capsule-out { margin-top: 20px; }
.spt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 12px; }
.spt-stats > div { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 16px; display: grid; }
.spt-stats strong { font-family: var(--_serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.1; color: var(--_navy); }
.spt-stats span { font-size: .8rem; color: var(--_mut); text-transform: uppercase; letter-spacing: .06em; }
.spt-capsule-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
.spt-capsule-col h4 { margin-top: 0; }
.spt-piece { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 10px; width: 100%; text-align: left; align-items: center; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--_line); background: var(--_sf); border-radius: 12px; font: inherit; color: var(--_ink); cursor: pointer; }
.spt-piece svg { grid-row: span 2; width: 48px; height: 48px; }
.spt-piece span { font-size: .9rem; font-weight: 600; }
.spt-piece small { font-size: .76rem; color: var(--_mut); }
.spt-piece.is-owned { border-color: var(--_good); background: color-mix(in srgb, var(--_good) 8%, var(--_sf)); }
.spt-matrix-wrap { margin-top: 18px; }
.spt-matrix { border-collapse: separate; border-spacing: 3px; font-size: .8rem; }
.spt-matrix th { font-weight: 600; text-align: left; padding: 4px 6px; white-space: nowrap; }
.spt-matrix thead th { vertical-align: bottom; max-width: 90px; white-space: normal; font-size: .72rem; line-height: 1.2; }
.spt-matrix thead th span:last-child { display: block; }
.spt-matrix td { width: 38px; height: 34px; text-align: center; border-radius: 6px; font-weight: 700; }
.spt-matrix td.is-yes { background: color-mix(in srgb, var(--_good) 18%, var(--_sf)); color: var(--_good); }
.spt-matrix td.is-no { background: var(--_sf2); color: var(--_mut); }
.spt-mx-sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* fit */
.spt-fig-wrap { display: grid; gap: 14px; }
.spt-fig { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 14px; }
.spt-fig svg { width: 100%; max-height: 380px; display: block; }
.spt-body { fill: var(--_sf2); stroke: var(--_mut); stroke-width: 1.2; }
.spt-mline { fill: none; stroke: var(--_mut); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .45; }
.spt-mline.is-active { stroke: var(--_warn); stroke-width: 3; stroke-dasharray: none; opacity: 1; }
.spt-fig__how h4 { margin-top: 0; }
.spt-fig__how p { line-height: 1.6; }
.spt-cmp { margin-top: 20px; }
.spt-cmp h4 { margin-top: 0; }
.spt-result { margin-top: 0; }
.spt-split > div > .spt-form + .spt-result { margin-top: 20px; }

/* pairing / shoes */
.spt-pair-list, .spt-shoe-out { margin-top: 20px; }
.spt-pair-grid, .spt-shoe-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.spt-pair, .spt-shoe { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 14px; align-items: start; }
.spt-pair svg { width: 64px; height: 80px; }
.spt-pair h4, .spt-shoe h4 { margin: 0 0 6px; font-size: .98rem; }
.spt-pair p, .spt-shoe p { margin: 0 0 6px; font-size: .9rem; line-height: 1.5; }
.spt-pair__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.spt-shoe svg { width: 64px; height: 64px; }
.spt-shoe.is-yes { border-left: 4px solid var(--_good); } .spt-shoe.is-care { border-left: 4px solid var(--_acc); } .spt-shoe.is-no { opacity: .8; }
.spt-tier-title { margin: 18px 0 10px !important; }

/* closet */
.spt-closet-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 14px 0; }
.spt-closet-item { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 10px; display: grid; gap: 8px; position: relative; }
.spt-closet-item img, .spt-closet-item > svg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--_bg); }
.spt-closet-item.is-fav { border-color: var(--_acc); }
.spt-closet-item__body { display: grid; gap: 2px; font-size: .88rem; }
.spt-closet-item__body small { color: var(--_mut); font-size: .76rem; }
.spt-closet-item__actions { display: flex; gap: 6px; }
.spt-acc-swatch { aspect-ratio: 1; border-radius: 10px; }
.spt-photo-prev img { max-width: 160px; border-radius: 10px; border: 1px solid var(--_line); }
.spt-storage { background: var(--_sf2); border-radius: var(--_r); padding: 14px; }
.spt-storage p { margin: 0 0 10px; font-size: .9rem; }
.spt-closet-combo { margin-top: 20px; }
.spt-closet-combo h4:first-child { margin-top: 0; }
.spt-filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; }
.spt-filterbar .spt-field { min-width: 150px; flex: 1; }

/* feedback */
.spt-feedback { display: grid; gap: 4px; margin-top: 14px; }
.spt-fb-group h4 { margin: 12px 0 6px; }
.spt-fb-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.spt-fb-group li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; line-height: 1.5; font-size: .94rem; }
.spt-fb-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; margin-top: 1px; }
.is-good .spt-fb-icon { background: var(--_good); } .is-ok .spt-fb-icon { background: var(--_acc); } .is-warn .spt-fb-icon { background: var(--_warn); }
.spt-ai { margin-top: 20px; }
.spt-ai h4 { margin-top: 0; }
.spt-ai-text { white-space: pre-wrap; background: var(--_bg); border-radius: 10px; padding: 14px; margin-top: 10px; }

/* how it works */
.spt-how { margin-top: 16px; font-size: .92rem; color: var(--_mut); }
.spt-how summary { cursor: pointer; font-weight: 600; color: var(--_ink); display: inline-block; padding: 6px 0; }
.spt-how p { max-width: 75ch; line-height: 1.6; }

/* editorial */
.spt-search { flex: 1 1 260px; }
.spt-guide-grid, .spt-fabric-grid, .spt-season-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.spt-guide-grid + .spt-ad, .spt-ad + .spt-guide-grid { margin-top: 16px; }
.spt-guide, .spt-fabric, .spt-season { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 22px; }
.spt-guide h3, .spt-fabric h3, .spt-season h3 { font-family: var(--_serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; }
.spt-guide__excerpt { color: var(--_mut); line-height: 1.55; }
.spt-guide details > summary, .spt-fabric details > summary { cursor: pointer; font-weight: 600; color: var(--_navy); padding: 6px 0; }
.spt-prose { line-height: 1.7; }
.spt-prose h3 { font-family: inherit !important; font-size: 1.02rem !important; font-weight: 700 !important; margin: 18px 0 6px !important; }
.spt-prose ul, .spt-prose ol { padding-left: 1.2em; }
.spt-prose li { margin: 4px 0; }
.spt-rates { display: grid; gap: 6px; margin: 12px 0; }
.spt-rate { display: grid; grid-template-columns: 9.5em 1fr 2.6em; gap: 8px; align-items: center; font-size: .84rem; }
.spt-rate__bar { height: 8px; background: var(--_sf2); border-radius: 99px; overflow: hidden; }
.spt-rate__bar span { display: block; height: 100%; background: var(--_navy); border-radius: 99px; }
.spt-rate__val { color: var(--_mut); text-align: right; }
.spt-fabric__uses { font-size: .9rem; line-height: 1.5; }
.spt-compare { margin-top: 20px; }
.spt-compare-out { margin-top: 14px; }
.spt-table--compare td { min-width: 180px; }

.spt-tablist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.spt-dresscodes:not(.is-enhanced) .spt-tablist { display: none; }
.spt-tab { flex: none; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--_line); background: var(--_sf); color: var(--_ink); font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.spt-tab[aria-selected="true"] { background: var(--_navy); color: #fff; border-color: var(--_navy); }
.spt-tabpanel { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: clamp(18px, 3vw, 32px); }
.spt-dresscodes:not(.is-enhanced) .spt-tabpanel + .spt-tabpanel { margin-top: 14px; }
.spt-dc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.spt-dc-head h3 { font-family: var(--_serif); font-weight: 500; font-size: 1.6rem; margin: 0; }
.spt-formality { display: flex; align-items: center; gap: 4px; }
.spt-formality span { width: 22px; height: 8px; border-radius: 99px; background: var(--_sf2); }
.spt-formality span.is-on { background: var(--_acc); }
.spt-formality em { font-style: normal; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--_mut); margin-left: 6px; }
.spt-dl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 16px 0 0; }
.spt-dl > div { background: var(--_bg); border-radius: 12px; padding: 14px; }
.spt-dl dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--_mut); font-weight: 700; margin-bottom: 4px; }
.spt-dl dd { margin: 0; line-height: 1.55; }

.spt-faqs { display: grid; gap: 10px; }
.spt-faq { background: var(--_sf); border: 1px solid var(--_line); border-radius: var(--_r); padding: 0 20px; }
.spt-faq > summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; }
.spt-faq > summary::-webkit-details-marker { display: none; }
.spt-faq > summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--_acc); }
.spt-faq[open] > summary::after { content: "–"; }
.spt-faq > summary h3 { display: inline; font-size: 1.05rem; font-weight: 600; margin: 0; font-family: inherit; }
.spt-faq .spt-prose { padding-bottom: 16px; }

/* ads */
.spt-ad { margin: 32px auto; max-width: 1100px; text-align: center; min-height: 120px; }
.spt-ad__label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted, #6b6359); margin-bottom: 6px; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* print (packing list) */
@media print {
	body.spt-printing * { visibility: hidden; }
	body.spt-printing .spt-print-area.is-printing, body.spt-printing .spt-print-area.is-printing * { visibility: visible; }
	body.spt-printing .spt-print-area.is-printing { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
	.spt-no-print { display: none !important; }
}

.spt-owned { display: grid; gap: 12px; margin-top: 10px; }
.spt-owned__group { display: grid; gap: 6px; }
.spt-owned .spt-chip { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
/* sub-headings inside tools (h3 for correct outline under section h2) */
.spt-tool h3.spt-h, .spt-tool h4.spt-h { font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 18px 0 8px; letter-spacing: 0; }
.spt-slot__head h3.spt-h, .spt-pair h3.spt-h, .spt-shoe h3.spt-h, .spt-capsule-col h3.spt-h:first-child, .spt-fig__how h3.spt-h, .spt-suggest h3.spt-h, .spt-ai h3.spt-h, .spt-closet-combo h3.spt-h:first-child, .spt-cmp h3.spt-h { margin-top: 0; }
.spt-pair h3.spt-h, .spt-shoe h3.spt-h { font-size: .98rem; margin-bottom: 6px; }
.spt-tier-title { margin: 18px 0 10px !important; }
