/* StyleGauge: Search, About, Contact, Legal, Account and 404. Values mirror the prototype HTML. */

.sg-mt-6 { margin-top: 6px; }

/* ---------- Search ---------- */
.sg-search__head { max-width: 980px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--sg-gutter) 24px; display: flex; flex-direction: column; gap: 20px; }
.sg-search__title { margin: 0; font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.035em; font-weight: 600; line-height: 1; }
.sg-search__form { display: flex; gap: 8px; align-items: center; background: var(--sg-white); border: 1.5px solid var(--sg-ink); border-radius: 999px; padding: 6px 6px 6px 22px; }
.sg-search__input { flex: 1; min-width: 0; font: inherit; font-size: clamp(17px, 1.8vw, 20px); border: 0; outline: none; background: transparent; color: var(--sg-ink); padding: 10px 0; -webkit-appearance: none; appearance: none; }
.sg-search__input::-webkit-search-cancel-button { display: none; }
.sg-search__form:focus-within { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-search__clear { font-size: 14px; font-weight: 600; padding: 10px 14px; color: var(--sg-muted-2); }
.sg-search__submit { font: inherit; font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--sg-ink); color: var(--sg-bg); cursor: pointer; white-space: nowrap; }
.sg-search__popular { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sg-search__popular > span { font-size: 13px; color: var(--sg-muted-2); margin-right: 4px; }
.sg-search__chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--sg-border-strong); background: var(--sg-white); white-space: nowrap; }
.sg-search__body { max-width: 980px; margin: 0 auto; padding: 0 var(--sg-gutter) clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.sg-search__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--sg-border); padding-bottom: 14px; }
.sg-search__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-chip-btn--tab { padding: 8px 14px; }
.sg-search__n { opacity: 0.6; font-weight: 500; }
.sg-search__summary { font-size: 14px; color: var(--sg-muted-2); }
.sg-result { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--sg-border); }
.sg-result[hidden] { display: none; }
.sg-result__type { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-accent); padding-top: 4px; }
.sg-result__body { display: flex; flex-direction: column; gap: 6px; }
.sg-result__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.sg-result__desc { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }
.sg-result__meta { font-size: 13px; color: var(--sg-muted-2); }
.sg-noresults { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.sg-noresults__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-noresults__text { font-size: 15px; color: var(--sg-muted); line-height: 1.55; }
.sg-noresults .sg-btns { margin-top: 6px; }
.sg-tool-btn--sm11 { font-size: 14px; padding: 11px 18px; }
.sg-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.sg-browse__card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.sg-browse__t { font-size: 17px; font-weight: 600; }
.sg-browse__d { font-size: 13px; color: var(--sg-muted-2); }

/* ---------- About ---------- */
.sg-about__hero { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(48px, 6vw, 80px); }
.sg-about__title { margin: 0; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; max-width: 1100px; text-wrap: balance; }
.sg-about__mission { padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; }
.sg-about__h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; }
.sg-about__text { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; }
.sg-about__text p { margin: 0; }
.sg-about__text .is-muted { color: var(--sg-muted); }
.sg-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.sg-principle { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--sg-ink); padding-top: 18px; }
.sg-principle__n { font-size: 13px; font-weight: 600; color: var(--sg-accent); }
.sg-principle__t { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.sg-principle__d { font-size: 15px; color: var(--sg-muted); line-height: 1.6; }
.sg-about__cta { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.sg-about__cta-title { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; max-width: 640px; }

/* ---------- Contact ---------- */
.sg-contact__grid { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px 72px; align-items: start; }
.sg-contact__title { margin: 0; font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.sg-contact__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--sg-muted); max-width: 460px; }
.sg-contact__channels { margin-top: 8px; }
.sg-channel { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--sg-border); }
.sg-channel__h { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-muted-2); }
.sg-channel__v { font-size: 16px; font-weight: 600; }
.sg-contact__card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; padding: clamp(22px, 3vw, 40px); }
.sg-contact__form { display: flex; flex-direction: column; gap: 18px; }
.sg-contact__form[hidden], .sg-contact__done[hidden] { display: none; }
.sg-field { display: flex; flex-direction: column; gap: 8px; }
.sg-field__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-muted-2); }
.sg-field__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-chip-btn--topic { padding: 9px 14px; }
.sg-chip-btn[aria-checked="true"] { border-color: var(--sg-ink); background: var(--sg-ink); color: var(--sg-bg); }
.sg-field__input { font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--sg-border-strong); border-radius: 6px; background: var(--sg-bg); color: var(--sg-ink); outline: none; }
.sg-field__input:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-field__input[aria-invalid="true"] { border-color: #a4412a; }
.sg-field__input--13 { padding: 13px 16px; }
.sg-field__input--area { line-height: 1.5; resize: vertical; }
.sg-field__error { font-size: 13px; color: #a4412a; font-weight: 600; }
.sg-field__error[hidden] { display: none; }
.sg-contact__send { align-self: flex-start; padding: 15px 28px; }
.sg-contact__small { font-size: 13px; color: var(--sg-muted-2); line-height: 1.5; }
.sg-contact__small a { color: var(--sg-accent); }
.sg-contact__done { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }
.sg-contact__tick { width: 44px; height: 44px; border-radius: 50%; background: var(--sg-accent-tint); color: var(--sg-accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.sg-contact__done-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.sg-contact__done-text { font-size: 16px; color: var(--sg-muted); line-height: 1.55; }

/* ---------- Legal ---------- */
.sg-legal__head { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) var(--sg-gutter) 28px; display: flex; flex-direction: column; gap: 20px; }
.sg-legal__title { margin: 8px 0 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.sg-legal__date { font-size: 14px; color: var(--sg-muted-2); }
.sg-legal__body { max-width: 1180px; margin: 0 auto; padding: 40px var(--sg-gutter) clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; border-top: 1px solid var(--sg-border); }
.sg-toc--legal { top: 100px; }
.sg-legal__content { flex: 1 1 520px; max-width: 700px; display: flex; flex-direction: column; }
.sg-legal__content > * { margin: 0; }
.sg-legal__content > p:first-child { margin: 0 0 26px; font-size: 19px; line-height: 1.6; color: var(--sg-muted); }
.sg-legal__content > h2 { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--sg-border); font-size: 22px; letter-spacing: -0.015em; font-weight: 600; line-height: normal; scroll-margin-top: 90px; }
.sg-legal__content > p:first-child + h2 { margin-top: 0; }
.sg-legal__content > h2 + p { margin-top: 10px; padding-bottom: 22px; font-size: 17px; line-height: 1.7; }
.sg-legal__ask { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 20px 22px; font-size: 15px; line-height: 1.55; color: var(--sg-muted); margin-top: 22px !important; }
.sg-legal__ask a { color: var(--sg-accent); font-weight: 600; }

/* ---------- Account ---------- */
.sg-signin { max-width: 1180px; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 72px; align-items: center; }
.sg-signin__title { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.sg-signin__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--sg-muted); }
.sg-signin__card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.sg-signin__h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.sg-signin__btn { padding: 15px; }
.sg-signin__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.sg-signin__create { color: var(--sg-accent); font-weight: 600; }
.sg-signin__forgot { color: var(--sg-muted-2); }
.sg-preview-note.is-flash { color: var(--sg-ink); background: var(--sg-accent-tint); padding: 10px 12px; border-radius: 6px; }
.sg-account__preview { margin: 0; padding-top: 16px; font-size: 13px; color: var(--sg-muted-2); }
.sg-account__main { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.sg-account__aside { flex: 0 1 240px; min-width: 220px; display: flex; flex-direction: column; gap: 20px; }
.sg-account__user { display: flex; align-items: center; gap: 12px; }
.sg-account__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sg-ink); color: var(--sg-bg); display: grid; place-items: center; font-weight: 600; }
.sg-account__who { display: flex; flex-direction: column; gap: 2px; }
.sg-account__name { font-size: 16px; font-weight: 600; }
.sg-account__sub { font-size: 13px; color: var(--sg-muted-2); }
.sg-account__nav { display: flex; flex-direction: column; gap: 2px; }
.sg-account__nav a { font-size: 15px; font-weight: 500; padding: 11px 14px; border-radius: 6px; display: flex; justify-content: space-between; color: var(--sg-ink); }
.sg-account__nav a[aria-current] { background: #ebe7df; font-weight: 600; }
.sg-account__nav a span { font-size: 13px; color: var(--sg-muted-2); font-weight: 500; }
.sg-account__out { font-size: 14px; font-weight: 600; padding: 11px 14px; color: var(--sg-muted-2); }
.sg-account__content { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sg-account__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sg-account__title { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.035em; font-weight: 600; line-height: 1; }
.sg-account .sg-segmented--sm .sg-segmented__btn { padding: 8px 14px; }
.sg-acard { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; }
.sg-acard--fields { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.sg-account__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.sg-account__h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.sg-tool-btn--9 { font-size: 14px; padding: 9px 16px; }
.sg-account__members { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.sg-member { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sg-member__top { display: flex; align-items: center; gap: 12px; }
.sg-member__avatar { width: 40px; height: 40px; border-radius: 50%; color: var(--sg-bg); display: grid; place-items: center; font-weight: 600; }
.sg-member__stats { font-size: 13px; color: var(--sg-muted); }
.sg-prefrow { padding: 20px 24px; display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 16px; align-items: center; }
.sg-prefrow__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-pref { font: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--sg-border-strong); background: var(--sg-white); color: var(--sg-ink); white-space: nowrap; }
.sg-pref[aria-pressed="true"] { background: var(--sg-accent-tint); border-color: var(--sg-accent); }
.sg-pref__dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(19, 32, 59, 0.12); }
.sg-account__note { font-size: 13px; color: var(--sg-muted-2); }
.sg-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.sg-saved { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.sg-saved[hidden] { display: none; }
.sg-saved__sw { display: flex; height: 96px; }
.sg-saved__sw span { flex: 1; }
.sg-saved__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.sg-saved__name { font-size: 17px; font-weight: 600; }
.sg-saved__meta { font-size: 13px; color: var(--sg-muted-2); }
.sg-saved__actions { display: flex; gap: 14px; padding: 0 18px 16px; font-size: 13px; font-weight: 600; }
.sg-saved__actions a { color: var(--sg-accent); }
.sg-saved__actions button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; color: var(--sg-muted-2); cursor: pointer; padding: 0; }
.sg-account__empty { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sg-wardrobe { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sg-wardrobe__item { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; overflow: hidden; }
.sg-wardrobe__sw { height: 80px; }
.sg-wardrobe__name { padding: 10px 12px; font-size: 14px; font-weight: 600; }
.sg-wardrobe__add { font: inherit; min-height: 120px; border: 1.5px dashed #b9b3a6; border-radius: 6px; background: transparent; color: var(--sg-muted-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.sg-account__link { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--sg-accent); }
.sg-history { display: grid; grid-template-columns: 100px 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sg-border); align-items: baseline; }
.sg-history__d { font-size: 13px; color: var(--sg-muted-2); }
.sg-history__tool { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--sg-accent); }
.sg-history__t { font-size: 15px; }
.sg-settings { display: flex; flex-direction: column; }
.sg-setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #eeebe4; }
.sg-setting__text { display: flex; flex-direction: column; gap: 3px; }
.sg-setting__t { font-size: 16px; font-weight: 600; }
.sg-setting__d { font-size: 13px; color: var(--sg-muted-2); }
.sg-switch { flex: 0 0 auto; width: 48px; height: 28px; border-radius: 999px; border: 0; background: var(--sg-border-strong); position: relative; cursor: pointer; padding: 0; }
.sg-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sg-white); transition: left 0.15s; }
.sg-switch[aria-checked="true"] { background: var(--sg-ink); }
.sg-switch[aria-checked="true"] span { left: 23px; }
.sg-tool-btn--danger { font-size: 14px; padding: 12px 20px; border: 1px solid #a4412a; background: transparent; color: #a4412a; }
.sg-tool-btn--danger:hover { color: #a4412a; }

/* ---------- 404 ---------- */
.sg-404 { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(48px, 8vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px 72px; align-items: center; }
.sg-404__num { font-family: var(--sg-serif); font-size: clamp(140px, 22vw, 300px); line-height: 0.8; letter-spacing: -0.03em; }
.sg-404__title { margin: 0; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.08; }
.sg-404__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--sg-muted); }
.sg-404__search { display: flex; gap: 8px; align-items: center; background: var(--sg-white); border: 1px solid var(--sg-border-strong); border-radius: 999px; padding: 5px 5px 5px 18px; }
.sg-404__search:focus-within { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-404__search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 0; outline: none; background: transparent; color: var(--sg-ink); padding: 10px 0; }
.sg-404__search button { font: inherit; font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 999px; border: 0; background: var(--sg-ink); color: var(--sg-bg); cursor: pointer; white-space: nowrap; }
.sg-404__link { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--sg-border); font-size: 16px; font-weight: 600; }
.sg-404__link span { color: var(--sg-accent); }
