/* StyleGauge: AI Style overview, AI tools and AI Outfit Analysis. Values mirror the prototype HTML. */

.sg-maxw-520 { max-width: 520px; }
.sg-ai-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sg-ai-badge--xs { padding: 3px 9px; }
.sg-preview-note { margin: 0; font-size: 12px; color: var(--sg-muted-2); line-height: 1.5; }

/* ---------- Overview ---------- */
.sg-ai-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sg-crumbs--light ol, .sg-crumbs--light a { color: #c9cfdb; }
.sg-crumbs--light a:hover { color: var(--sg-bg); }
.sg-crumbs--light [aria-current] { color: var(--sg-bg); }
.sg-ai-hero__title { margin: 0; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.sg-ai-hero__title .sg-accent { letter-spacing: inherit; }
.sg-ai-hero__lead { margin: 0; font-size: 18px; line-height: 1.6; color: #c9cfdb; max-width: 540px; }
.sg-grid--290 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.sg-ai-card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.sg-ai-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sg-ai-card__num { font-size: 13px; font-weight: 600; color: var(--sg-accent); }
.sg-ai-card__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-ai-card__desc { font-size: 15px; color: var(--sg-muted); line-height: 1.55; flex: 1; }
.sg-ai-card__eg { font-size: 13px; color: var(--sg-muted-2); border-top: 1px solid #eeebe4; padding-top: 14px; }
.sg-layer-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--sg-border); }
.sg-layer-row__n { font-size: 13px; font-weight: 600; color: var(--sg-accent); }
.sg-layer-row__body { display: flex; flex-direction: column; gap: 4px; }
.sg-layer-row__t { font-size: 17px; font-weight: 600; }
.sg-layer-row__d { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }
.sg-privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.sg-privacy__title { margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; }
.sg-privacy__item { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--sg-ink); padding-top: 16px; }
.sg-privacy__t { font-size: 17px; font-weight: 600; }
.sg-privacy__d { font-size: 15px; color: var(--sg-muted); line-height: 1.55; }
.sg-notify-section { padding-bottom: clamp(56px, 7vw, 96px); scroll-margin-top: 90px; }
.sg-notify-card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.sg-notify-card__title { margin: 0; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; font-weight: 600; line-height: normal; }
.sg-notify-card__text { font-size: 15px; color: var(--sg-muted); line-height: 1.55; }

/* Notify-me form */
.sg-notify--wide { flex: 1 1 360px; max-width: 520px; display: flex; }
.sg-notify__form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; position: relative; }
.sg-notify__form[hidden], .sg-notify__done[hidden], .sg-notify__error[hidden] { display: none; }
.sg-notify__input { flex: 1 1 220px; font: inherit; font-size: 15px; padding: 14px 18px; border: 1px solid var(--sg-border-strong); border-radius: 999px; background: var(--sg-bg); color: var(--sg-ink); outline: none; }
.sg-notify__input:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-notify__input[aria-invalid="true"] { border-color: #a4412a; }
.sg-notify__btn { font: inherit; font-size: 15px; font-weight: 600; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--sg-ink); color: var(--sg-bg); cursor: pointer; white-space: nowrap; }
.sg-notify__error { flex-basis: 100%; font-size: 13px; color: #a4412a; }
.sg-notify__done { font-size: 15px; font-weight: 600; color: var(--sg-accent); background: var(--sg-accent-tint); padding: 14px 20px; border-radius: 999px; }
.sg-notify--tryon { margin-top: 6px; }
.sg-notify--tryon .sg-notify__input { flex-basis: 200px; padding: 13px 18px; }
.sg-notify--tryon .sg-notify__btn { padding: 13px 22px; }
.sg-notify--tryon .sg-notify__done:not([hidden]) { display: inline-block; padding: 12px 18px; }

/* ---------- Style Advisor ---------- */
.sg-advisor { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; display: flex; flex-wrap: wrap; overflow: hidden; }
.sg-advisor__aside { flex: 1 1 280px; max-width: 100%; padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--sg-border); background: var(--sg-bg); }
.sg-advisor .sg-segmented { align-self: flex-start; }
.sg-advisor__prompts { display: flex; flex-direction: column; gap: 10px; }
.sg-advisor__prompt { font: inherit; font-size: 14px; line-height: 1.4; text-align: left; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--sg-border); background: var(--sg-white); color: var(--sg-ink); cursor: pointer; }
.sg-advisor__prompt:hover { border-color: var(--sg-ink); }
.sg-advisor__small { font-size: 12px; color: var(--sg-muted-2); line-height: 1.5; }
.sg-advisor__main { flex: 3 1 480px; display: flex; flex-direction: column; min-height: 560px; min-width: 0; }
.sg-advisor__log { flex: 1; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.sg-advisor__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 440px; }
.sg-advisor__hello { font-family: var(--sg-serif); font-size: 40px; line-height: 1.05; }
.sg-advisor__hint { font-size: 15px; color: var(--sg-muted); line-height: 1.55; }
.sg-msg { display: flex; justify-content: flex-start; }
.sg-msg--user { justify-content: flex-end; }
.sg-msg__bubble { max-width: min(560px, 90%); padding: 14px 18px; border-radius: 14px; background: var(--sg-bg); color: var(--sg-ink); font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; gap: 12px; }
.sg-msg--user .sg-msg__bubble { background: var(--sg-ink); color: var(--sg-bg); }
.sg-msg__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; }
.sg-msg__items li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #eeebe4; }
.sg-msg__sw { width: 24px; height: 24px; border-radius: 3px; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-msg__name { font-size: 14px; font-weight: 600; flex: 1; }
.sg-msg__role { font-size: 12px; color: var(--sg-muted-2); }
.sg-msg__link { font-size: 13px; font-weight: 600; color: var(--sg-accent); }
.sg-typing { display: flex; gap: 5px; padding: 16px 18px; background: var(--sg-bg); border-radius: 14px; align-self: flex-start; }
.sg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sg-ink); animation: sgdot 1.2s infinite; }
.sg-typing span:nth-child(2) { animation-delay: 0.15s; }
.sg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sgdot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.sg-advisor__form { border-top: 1px solid var(--sg-border); padding: 16px clamp(16px, 2.5vw, 28px); display: flex; gap: 10px; align-items: center; }
.sg-advisor__input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 14px 18px; border: 1px solid var(--sg-border-strong); border-radius: 999px; background: var(--sg-bg); color: var(--sg-ink); outline: none; }
.sg-advisor__input:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-advisor__send { padding: 14px 22px; }
.sg-preview-note--bar { padding: 0 clamp(16px, 2.5vw, 28px) 14px; }

/* ---------- AI Outfit Generator ---------- */
.sg-aigen { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; overflow: hidden; }
.sg-aigen__top { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--sg-border); }
.sg-aigen__text { font: inherit; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; padding: 18px 20px; border: 1px solid var(--sg-border-strong); border-radius: 8px; background: var(--sg-bg); color: var(--sg-ink); resize: vertical; outline: none; }
.sg-aigen__text:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-aigen__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sg-aigen__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-aigen__chip { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px dashed #b9b3a6; background: var(--sg-white); color: var(--sg-ink); cursor: pointer; white-space: nowrap; }
.sg-aigen__out { padding: clamp(22px, 3vw, 40px); background: var(--sg-bg); min-height: 380px; display: flex; flex-direction: column; gap: 20px; }
.sg-aigen__msg { display: flex; flex-direction: column; gap: 8px; max-width: 460px; padding: 40px 0; }
.sg-aigen__loading { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; }
.sg-ai-steps { display: flex; flex-direction: column; gap: 10px; }
.sg-ai-step { font-size: 15px; display: flex; gap: 10px; color: #8a8f9a; }
.sg-ai-step.is-on { color: var(--sg-ink); }
.sg-ai-step__mark { width: 18px; font-weight: 700; }
.sg-aigen__result { display: flex; flex-direction: column; gap: 16px; }
.sg-aigen__parsed { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-aigen__parsed .sg-og-group__label { margin-right: 4px; }
.sg-aigen__tag { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sg-accent-tint); color: var(--sg-accent); white-space: nowrap; }
.sg-aigen__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.sg-aigen__card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.sg-aigen__strip { display: flex; height: 72px; }
.sg-aigen__strip span { flex: 1; }
.sg-aigen__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sg-aigen__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sg-aigen__name { font-size: 18px; font-weight: 600; }
.sg-aigen__f { font-size: 12px; color: var(--sg-muted-2); }
.sg-aigen__item { font-size: 14px; display: flex; gap: 10px; align-items: center; }
.sg-aigen__dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-aigen__why { font-size: 13px; color: var(--sg-muted); line-height: 1.5; border-top: 1px solid #eeebe4; padding-top: 12px; flex: 1; }
.sg-aigen__save { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--sg-ink); color: var(--sg-ink); white-space: nowrap; }

/* ---------- AI Try-On ---------- */
.sg-tryon { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 32px; }
.sg-tryon__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-items: center; opacity: 0.9; }
.sg-frame--r6 { border-radius: 6px; }
.sg-tryon__placeholder { aspect-ratio: 3 / 4; border: 1.5px dashed #b9b3a6; border-radius: 6px; background: var(--sg-bg); display: grid; place-items: center; padding: 20px; text-align: center; }
.sg-tryon__placeholder span { font-size: 14px; color: var(--sg-muted-2); line-height: 1.5; }
.sg-tryon__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px 48px; border-top: 1px solid var(--sg-border); padding-top: 28px; }
.sg-tryon__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.sg-tryon__text { font-size: 15px; color: var(--sg-muted); line-height: 1.6; }
.sg-tryon__fact { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid #eeebe4; padding-top: 10px; }
.sg-tryon__fact-t { font-size: 15px; font-weight: 600; }
.sg-tryon__fact-d { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }
.sg-tryon__now { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.sg-tryon__now span { color: var(--sg-muted); }
.sg-tryon__now a { font-weight: 600; color: var(--sg-accent); }

/* ---------- AI Outfit Analysis ---------- */
.sg-analysis__left { gap: 22px; }
.sg-drop { font: inherit; color: var(--sg-ink); cursor: pointer; aspect-ratio: 4 / 5; max-height: 520px; width: 100%; border: 1.5px dashed #b9b3a6; background: var(--sg-bg); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.sg-drop[hidden] { display: none; }
.sg-drop.is-error { border-color: #a4412a; background: #fdf6f4; }
.sg-drop__plus { width: 48px; height: 48px; border-radius: 50%; background: var(--sg-ink); color: var(--sg-bg); display: grid; place-items: center; font-size: 24px; line-height: 1; }
.sg-drop__title { font-size: 18px; font-weight: 600; }
.sg-drop__text { font-size: 14px; color: var(--sg-muted-2); line-height: 1.5; max-width: 280px; }
.sg-drop__error { font-size: 14px; font-weight: 600; color: #a4412a; background: #fbe9e4; padding: 8px 14px; border-radius: 999px; }
.sg-drop__error[hidden] { display: none; }
.sg-analysis__photo { position: relative; aspect-ratio: 4 / 5; max-height: 520px; width: 100%; border-radius: 6px; overflow: hidden; }
.sg-analysis__photo[hidden] { display: none; }
.sg-analysis__photo .sg-frame { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.sg-analysis__label { position: absolute; top: 12px; left: 12px; background: var(--sg-bg); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.sg-scanner { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--sg-accent); box-shadow: 0 0 18px 4px rgba(47, 91, 211, 0.45); animation: sgscan 1.6s ease-in-out infinite alternate; pointer-events: none; }
.sg-scanner[hidden] { display: none; }
@keyframes sgscan { from { top: 0; } to { top: calc(100% - 2px); } }
.sg-og-actions--10 { gap: 10px; padding-top: 20px; }
.sg-tool-btn.is-muted { background: #7a8296; }
.sg-analysis__small { font-size: 13px; color: var(--sg-muted-2); line-height: 1.5; }
.sg-an-idle { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 400px; }
.sg-an-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sg-an-checks span { font-size: 14px; color: var(--sg-muted); display: flex; gap: 10px; }
.sg-an-checks b { color: var(--sg-accent); font-weight: 600; }
.sg-an-center { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.sg-an-result { display: flex; flex-direction: column; gap: 18px; }
.sg-an-result .sg-ob-score { flex-wrap: wrap; }
.sg-an-of { font-size: 24px; color: var(--sg-muted-2); }
.sg-an-table { 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-an-table li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid #eeebe4; }
.sg-an-table__k { font-size: 14px; font-weight: 600; }
.sg-an-table__d { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }
.sg-an-table__v { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sg-an-sugg { display: flex; flex-direction: column; gap: 8px; border-left: 2px solid var(--sg-accent); padding-left: 14px; }
.sg-an-sugg__h { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--sg-accent); }
.sg-an-sugg__t { font-size: 15px; line-height: 1.55; }
