/* Create Post, Create Story, Body Scan. Screen-specific only; core.css has the components. */
.soc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.soc-fieldset > legend { padding: 0; margin-bottom: 6px; }
.soc-pad { padding: 14px 16px; }
.soc-count { font-variant-numeric: tabular-nums; }

/* ---------- Create Post ---------- */
.soc-post-preview > img { object-fit: cover; }
.soc-post-preview.soc-contain > svg { width: auto; height: 86%; object-fit: contain; }
.soc-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); text-align: center; padding: 20px; font-size: 13.5px; }
.soc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-tags:empty { display: none; }
.soc-tag { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 12px; min-height: 34px; border-radius: 999px; background: rgba(245, 168, 0, .14); border: 1px solid rgba(245, 168, 0, .45); color: var(--gold-2); font-weight: 600; font-size: 13.5px; }
.soc-tag button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; display: grid; place-items: center; }
.soc-tag button:hover { background: rgba(245, 168, 0, .2); }
.soc-thumb { width: 46px; height: 54px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 10%, #2b3763, #172040 70%); }
.soc-thumb > svg { width: 88%; height: 88%; }
.soc-selected { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(245, 168, 0, .45); background: rgba(245, 168, 0, .08); }

/* ---------- Create Story ---------- */
.soc-story-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.soc-story-side { order: -1; }
@media (min-width: 860px) {
  .soc-story-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .soc-story-side { order: 2; position: sticky; top: calc(var(--top-h) + 16px); }
}
.soc-story { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 250px; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #0c1226; box-shadow: var(--shadow); }
@media (min-width: 860px) { .soc-story { max-width: 300px; } }
.soc-story-bg { position: absolute; inset: 0; }
.soc-story-bg > svg, .soc-story-bg > img { width: 100%; height: 100%; object-fit: cover; }
.soc-story-garment { position: absolute; inset: 20% 12% 24%; display: grid; place-items: center; }
.soc-story-garment > svg { width: 100%; height: 100%; }
.soc-story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 18, .55), transparent 26%, transparent 62%, rgba(5, 8, 18, .7)); pointer-events: none; }
.soc-f-warm { filter: sepia(.4) saturate(1.35); }
.soc-f-cool { filter: hue-rotate(-18deg) saturate(1.15) brightness(1.06); }
.soc-f-mono { filter: grayscale(1) contrast(1.12); }
.soc-f-vivid { filter: saturate(1.7) contrast(1.06); }
.soc-story-bars { position: absolute; top: 8px; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.soc-story-bars > i { display: block; width: 38%; height: 100%; background: #fff; }
.soc-story-top { position: absolute; top: 18px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.soc-story-top .avatar { width: 26px; height: 26px; font-size: 10px; text-shadow: none; }
.soc-story-text { position: absolute; left: 14px; right: 14px; margin: 0; text-align: center; font-weight: 800; font-size: 20px; line-height: 1.2; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.soc-story-text:empty { display: none; }
.soc-pos-top { top: 22%; }
.soc-pos-middle { top: 50%; transform: translateY(-50%); }
.soc-pos-bottom { bottom: 20%; }
.soc-sticker { position: absolute; top: 58px; right: 10px; transform: rotate(6deg); background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 11px; padding: 4px 9px; border-radius: 8px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.soc-story-link { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); max-width: 88%; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .94); color: #0b1020; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.soc-story-link span { overflow: hidden; text-overflow: ellipsis; }
.soc-story-link svg { flex: none; }

/* ---------- Body Scan ---------- */
.soc-scan { position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 280px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(110% 80% at 50% 20%, #26346a, #0d1430 72%); }
.soc-scan .soc-fig { position: absolute; left: 24%; top: 8%; width: 52%; height: 84%; color: rgba(255, 255, 255, .22); }
.soc-scan-line { position: absolute; left: 6%; right: 6%; top: 6%; height: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 18px 5px rgba(245, 168, 0, .5); animation: soc-scan 1.5s ease-in-out infinite alternate; }
@keyframes soc-scan { to { top: 92%; } }
.soc-scan-corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--gold-2); }
.soc-scan-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.soc-scan-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.soc-scan-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.soc-scan-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.soc-scan.idle .soc-scan-line { display: none; }
.soc-size-big { min-width: 76px; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--gold-2); text-align: center; }
.soc-measure-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .soc-measure-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.soc-unit { position: relative; }
.soc-unit .input { padding-right: 44px; }
.soc-unit > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
.soc-points { display: grid; gap: 10px; }
.soc-points li { display: flex; gap: 10px; align-items: flex-start; color: #cfd6ea; }
.soc-points li svg { flex: none; margin-top: 2px; color: var(--gold-2); }
.soc-mlist { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .soc-mlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.soc-mlist > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.soc-mlist dt { font-size: 12.5px; color: var(--muted); }
.soc-mlist dd { margin: 2px 0 0; font-weight: 750; font-size: 17px; }
