/* StyleGauge: Tools hub, Outfit Generator and style tools. Values mirror the prototype HTML. */

.sg-mt-8 { margin-top: 8px; }
.sg-maxw-680 { max-width: 680px; }
.sg-maxw-720 { max-width: 720px; }
.sg-stack-20 { display: flex; flex-direction: column; gap: 20px; }
.sg-badge--xs { padding: 3px 9px; }
.sg-badge--outline.sg-badge--xs { padding: 3px 9px; }

/* ---------- Tools hub ---------- */
.sg-tools__title { margin: 0; font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.sg-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.sg-hub-tool { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.sg-hub-tool__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-hub-tool__top .sg-badge { padding: 3px 10px; }
.sg-hub-tool__num { font-size: 13px; font-weight: 600; color: var(--sg-accent); }
.sg-hub-tool__name { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.sg-hub-tool__desc { font-size: 15px; color: var(--sg-muted); line-height: 1.55; flex: 1; }
.sg-hub-tool__example { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--sg-bg); border-radius: 4px; padding: 12px 14px; }
.sg-dot--20 { width: 20px; height: 20px; }
.sg-hub-tool__open { font-size: 14px; font-weight: 600; color: var(--sg-accent); }
.sg-hub-tool--ai { background: var(--sg-ink); color: var(--sg-bg); border-color: var(--sg-ink); }
.sg-hub-tool--ai:hover { color: var(--sg-bg); }
.sg-hub-tool--ai .sg-hub-tool__desc { color: #c9cfdb; }
.sg-hub-tool--ai .sg-hub-tool__open { color: var(--sg-bg); }
.sg-flow-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--sg-border); font-size: 15px; }
.sg-flow-row__a { font-weight: 600; }
.sg-flow-row__arrow { color: var(--sg-accent); }
.sg-flow-row__b { color: var(--sg-muted); }

/* ---------- Tool page intro ---------- */
.sg-tool-intro { padding-top: clamp(24px, 4vw, 40px); padding-bottom: 32px; }
.sg-tool-intro--18 { padding-bottom: 28px; }
.sg-tool-intro__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.sg-tool-intro__labels { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sg-tool-intro__title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.sg-tool-intro__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--sg-muted); text-wrap: pretty; }
.sg-tool-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font-size: 14px; color: var(--sg-muted-2); flex-wrap: wrap; }
.sg-tool-steps b { color: var(--sg-ink); }
.sg-tool-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-chip-btn--sm { font-size: 13px; padding: 8px 14px; }
.sg-chip-btn--lg { padding: 10px 16px; }
.sg-chip-btn--xs { font-size: 13px; padding: 6px 12px; }

/* ---------- Tool box ---------- */
.sg-tool-section { padding-bottom: clamp(56px, 7vw, 96px); }
.sg-tool-box { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.sg-tool-box--400 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.sg-tool-box--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sg-tool-box__left, .sg-tool-box__right { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; }
.sg-tool-box__left { border-right: 1px solid var(--sg-border); }
.sg-tool-box__right { background: var(--sg-bg); }
.sg-og-left { gap: 26px; }
.sg-og-right { gap: 20px; min-height: 520px; }
.sg-tool-box--color-matcher .sg-tool-box__left { gap: 18px; }
.sg-tool-box--color-matcher .sg-tool-box__right { gap: 20px; }
.sg-tool-box--what-goes-with-this .sg-tool-box__left { gap: 14px; }
.sg-tool-box--what-goes-with-this .sg-tool-box__right { gap: 24px; }
.sg-tool-box--outfit-builder .sg-tool-box__left { gap: 6px; }
.sg-tool-box--outfit-builder .sg-tool-box__right { gap: 20px; }
.sg-tool-box--wardrobe-planner .sg-tool-box__left { gap: 22px; }
.sg-tool-box--wardrobe-planner .sg-tool-box__right { gap: 22px; }

.sg-sq28, .sg-sq30, .sg-sq32, .sg-sq36 { border-radius: 3px; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-sq28 { width: 28px; height: 28px; }
.sg-sq30 { width: 30px; height: 30px; }
.sg-sq32 { width: 32px; height: 32px; }
.sg-sq36 { width: 36px; height: 36px; }
.sg-sq56 { width: 56px; height: 56px; border-radius: 4px; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-dot18 { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-tool-tip { font-size: 14px; color: var(--sg-muted); line-height: 1.55; border-left: 2px solid var(--sg-accent); padding-left: 12px; }

.sg-tool-btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 999px; border: 0; background: var(--sg-ink); color: var(--sg-bg); cursor: pointer; white-space: nowrap; text-align: center; }
.sg-tool-btn:hover { color: var(--sg-bg); }
.sg-tool-btn--sm { font-size: 14px; padding: 12px 20px; }
.sg-tool-btn--ghost { font-size: 14px; padding: 14px 18px; border: 1px solid var(--sg-border-strong); background: transparent; color: var(--sg-ink); }
.sg-tool-btn--outline { font-size: 14px; padding: 12px 20px; border: 1px solid var(--sg-ink); background: transparent; color: var(--sg-ink); }
.sg-tool-btn--ghost:hover, .sg-tool-btn--outline:hover { color: var(--sg-accent); }

/* Outfit Generator */
.sg-og-group { display: flex; flex-direction: column; gap: 10px; }
.sg-og-group__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--sg-muted-2); }
.sg-og-group__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-og-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--sg-border); padding-top: 22px; }
.sg-og-actions--result { gap: 10px; border-top: 0; padding-top: 0; }
.sg-og-state { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; max-width: 380px; }
.sg-og-state--error { max-width: 400px; }
.sg-og-dashes { display: flex; gap: 6px; }
.sg-og-dashes span { width: 36px; height: 48px; border: 1px dashed #b9b3a6; border-radius: 3px; }
.sg-og-state__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-og-state__text { font-size: 15px; color: var(--sg-muted); line-height: 1.55; }
.sg-og-error-icon { width: 40px; height: 40px; border-radius: 50%; background: #fbe9e4; color: #a4412a; display: grid; place-items: center; font-weight: 700; }
.sg-og-loading { display: flex; flex-direction: column; gap: 18px; }
.sg-og-loading__label { font-size: 14px; font-weight: 600; color: var(--sg-accent); }
.sg-skeleton { display: flex; flex-direction: column; gap: 12px; }
.sg-skeleton div { background: var(--sg-border); border-radius: 4px; animation: sgpulse 1.2s ease-in-out infinite; }
@keyframes sgpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.sg-og-result { display: flex; flex-direction: column; gap: 18px; }
.sg-og-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sg-og-result__title { display: flex; flex-direction: column; gap: 4px; }
.sg-og-result__summary { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-pill { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sg-white); border: 1px solid var(--sg-border); }
.sg-strip { display: flex; height: 56px; border-radius: 4px; overflow: hidden; border: 1px solid var(--sg-border); }
.sg-strip span { flex: 1; }
.sg-strip--48 { height: 48px; }
.sg-og-items, .sg-card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; }
.sg-og-items li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #eeebe4; }
.sg-og-items__text { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.sg-og-items__name { font-size: 15px; font-weight: 600; }
.sg-og-items__slot { font-size: 12px; color: var(--sg-muted-2); }

/* Color Matcher */
.sg-cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sg-cm-colour { font: inherit; cursor: pointer; background: var(--sg-white); border: 2px solid var(--sg-border); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--sg-ink); }
.sg-cm-colour[aria-pressed="true"] { border-color: var(--sg-ink); }
.sg-cm-colour__sw { height: 48px; border-radius: 3px; border: 1px solid rgba(19, 32, 59, 0.1); }
.sg-cm-colour__name { font-size: 13px; font-weight: 600; padding: 0 2px 2px; }
.sg-cm-head { display: flex; align-items: center; gap: 14px; }
.sg-cm-head__text { display: flex; flex-direction: column; gap: 2px; }
.sg-cm-head__name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.sg-card-list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #eeebe4; }
.sg-card-list__name { font-size: 15px; font-weight: 600; flex: 1; }
.sg-card-list .sg-badge { padding: 3px 9px; }
.sg-avoid { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-avoid__chip { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 12px 6px 6px; border: 1px solid var(--sg-border); border-radius: 999px; background: var(--sg-white); }
.sg-avoid__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }

/* What Goes With This? */
.sg-wg-items { display: flex; flex-direction: column; gap: 14px; }
.sg-wg-item { font: inherit; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--sg-border); background: var(--sg-white); color: var(--sg-ink); text-align: left; }
.sg-wg-item[aria-pressed="true"] { border-color: var(--sg-ink); background: var(--sg-bg); }
.sg-wg-item span:last-child { font-size: 15px; font-weight: 600; }
.sg-wg-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: normal; }
.sg-wg-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.sg-wg-group { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sg-wg-group__h { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--sg-accent); }
.sg-wg-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sg-wg-group li { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* Outfit Builder */
.sg-ob-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sg-tool-box--wardrobe-planner .sg-ob-head { margin-bottom: 0; }
.sg-ob-seasons { display: flex; gap: 6px; }
.sg-ob-slot { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eeebe4; }
.sg-ob-slot__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-muted-2); }
.sg-ob-slot__piece { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sg-ob-slot__name { font-size: 15px; font-weight: 600; }
.sg-ob-slot__nav { display: flex; gap: 4px; }
.sg-round-btn { font: inherit; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--sg-border-strong); background: var(--sg-white); cursor: pointer; color: var(--sg-ink); }
.sg-ob-score { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sg-ob-score__text { display: flex; flex-direction: column; gap: 4px; }
.sg-ob-score__verdict { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-ob-score__total { font-family: var(--sg-serif); font-size: 56px; line-height: 0.9; }
.sg-ob-bars { display: flex; flex-direction: column; gap: 14px; }
.sg-ob-bar { display: flex; flex-direction: column; gap: 6px; }
.sg-ob-bar__row { display: flex; justify-content: space-between; font-size: 14px; }
.sg-ob-bar__row span:first-child { font-weight: 600; }
.sg-ob-bar__row span:last-child { color: var(--sg-muted-2); }
.sg-ob-bar__track { height: 6px; background: var(--sg-border); border-radius: 3px; overflow: hidden; }
.sg-ob-bar__track div { height: 100%; border-radius: 3px; }

/* Wardrobe Planner */
.sg-segmented--sm .sg-segmented__btn { font-size: 13px; padding: 7px 14px; }
.sg-tool-box .sg-segmented { align-self: auto; }
.sg-wp-group { display: flex; flex-direction: column; gap: 8px; }
.sg-wp-group__h { font-size: 13px; font-weight: 600; }
.sg-wp-items { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-wp-item { font: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--sg-border-strong); background: var(--sg-white); color: var(--sg-ink); white-space: nowrap; }
.sg-wp-item[aria-pressed="true"] { border-color: var(--sg-accent); background: var(--sg-accent-tint); }
.sg-wp-item__mark { font-size: 12px; color: var(--sg-accent); font-weight: 700; }
.sg-wp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-wp-stat { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.sg-wp-stat__k { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-muted-2); }
.sg-wp-stat__v { font-family: var(--sg-serif); font-size: 52px; line-height: 1; }
.sg-wp-gain { font-size: 13px; color: var(--sg-accent); font-weight: 600; }
.sg-wp-done { font-size: 15px; color: var(--sg-muted); }

/* Guidance below tools */
.sg-howto { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.55; color: var(--sg-muted); }
.sg-howto__n { font-weight: 600; color: var(--sg-accent); }
.sg-guide-link { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sg-border); font-size: 16px; font-weight: 600; }
.sg-guide-link__arrow { color: var(--sg-accent); }
.sg-grid--260s { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.sg-rel-tool { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sg-rel-tool__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-rel-tool__name { font-size: 18px; font-weight: 600; }
.sg-rel-tool__desc { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }
