.profile-saved-looks { min-width: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.saved-looks-heading, .look-dialog-head, .look-photo-heading, .saved-look-source-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.saved-looks-heading h3 { margin: 0; font-size: 20px; }
.saved-looks-heading .soft-btn { min-height: 44px; }
.saved-looks-list { display: grid; gap: 8px; margin-top: 14px; }
.profile-saved-looks .saved-looks-list { display: flex; min-width: 0; margin-top: 10px; padding: 5px 5px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scroll-padding-inline: 5px; scrollbar-width: thin; scrollbar-color: #364257 transparent; }
.saved-look-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 10px; border: 1px solid #2b3444; border-radius: 8px; background: #0c1119; color: #ecf0ff; cursor: pointer; text-align: left; transition: border-color 160ms ease, background-color 160ms ease; }
.profile-saved-looks .saved-look-row { flex: 0 0 248px; width: 248px; max-width: 100%; height: 88px; padding: 6px; gap: 6px; scroll-snap-align: start; }
.profile-saved-looks .saved-look-label strong { line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saved-look-preview { position: relative; isolation: isolate; display: block; width: 72px; height: 56px; flex: 0 0 72px; }
.saved-look-preview > img { box-sizing: border-box; position: absolute; top: 3px; left: 0; z-index: 3; width: 50px; height: 50px; object-fit: cover; border: 1px solid #435169; border-radius: 6px; background: #111824; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.saved-look-preview > img:nth-child(2) { left: 8px; z-index: 2; transform: rotate(5deg); }
.saved-look-preview > img:nth-child(3) { left: 16px; z-index: 1; transform: rotate(10deg); }
.profile-saved-looks .saved-look-preview { width: 94px; height: 74px; flex-basis: 94px; }
.profile-saved-looks .saved-look-preview:has(> img:only-child) { width: 72px; flex-basis: 72px; }
.profile-saved-looks .saved-look-preview > img { top: 1px; width: 72px; height: 72px; }
.saved-look-row > .saved-look-label { flex: 1; min-width: 0; display: grid; gap: 5px; }
.saved-look-row strong { font-size: 15px; overflow-wrap: anywhere; }
.saved-look-row small { color: var(--muted); font-size: 12px; }
.saved-look-row > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); }
.saved-look-row.is-selected { border-color: var(--accent); background: rgba(var(--accent-rgb), .09); }
.saved-look-row.is-selected > svg { color: var(--accent); }
.saved-looks-empty { margin: 4px 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.saved-looks-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.saved-looks-note:empty, .look-error:empty { display: none; }
.saved-look-choose { min-height: 44px; }
.saved-look-save-link, .look-delete-link { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; color: var(--accent); font-size: 13px; cursor: pointer; text-align: left; }
.saved-look-save-link svg, .look-delete-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.saved-look-source { border: 1px solid #2e3d47; border-radius: 8px; padding: 10px; background: #0b1319; }
.saved-look-source-head > span { display: flex; gap: 8px; align-items: center; min-width: 0; }
.saved-look-source-head strong { font-size: 14px; overflow-wrap: anywhere; }
.saved-look-source-head > span > svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.saved-look-source-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 92px)); gap: 8px; margin-top: 8px; }
.saved-look-source-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.look-photo-open { width: 100%; height: 100%; border: 0; padding: 0; display: block; background: #111925; cursor: zoom-in; }
.look-photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.look-icon-button { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #303b4f; border-radius: 8px; display: inline-grid; place-items: center; padding: 0; background: #111824; color: #dce4f4; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.look-icon-button svg { width: 19px; height: 19px; }
.look-photo-exclude { position: absolute; bottom: 4px; right: 4px; background: rgba(8, 12, 18, .85); }
.look-dialog { box-sizing: border-box; width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #354053; border-radius: 8px; background: #0b1018; color: #f1f5ff; overflow: auto; opacity: 0; transform: translateY(10px); transition: opacity 160ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1); }
.look-dialog::backdrop { background: rgba(0, 0, 0, .62); }
.look-dialog[open].is-visible { opacity: 1; transform: translateY(0); }
.look-editor, .look-confirm { --look-safe-top: calc(16px + max(var(--tg-safe-top, 0px), env(safe-area-inset-top, 0px)) + var(--tg-controls-offset, 0px)); --look-safe-bottom: calc(16px + max(var(--tg-safe-bottom, 0px), env(safe-area-inset-bottom, 0px))); inset: var(--look-safe-top) 0 var(--look-safe-bottom); margin: auto; max-height: calc(100dvh - var(--look-safe-top) - var(--look-safe-bottom)); }
.look-editor { height: fit-content; overflow: hidden; }
.look-editor[open] { display: flex; flex-direction: column; }
.look-editor .look-dialog-head { flex-shrink: 0; }
.look-dialog-head { padding: 18px 20px; border-bottom: 1px solid #252d3b; }
.look-dialog-head h2 { font-size: 20px; line-height: 1.25; margin: 0; }
.look-picker-list { padding: 0 20px; }
.look-picker .saved-looks-note { padding: 0 20px; }
.look-picker-footer { padding: 18px 20px; }
.look-picker-footer .soft-btn { width: 100%; min-height: 44px; justify-content: center; }
.look-editor-form { display: flex; flex-direction: column; flex: 0 1 auto; margin: 0; min-height: 0; overflow: hidden; }
.look-editor-body { min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; }
.look-name-label { display: block; color: #cbd5e6; font-size: 13px; margin-bottom: 8px; }
.look-name-input { box-sizing: border-box; width: 100%; min-height: 46px; border: 1px solid #344056; border-radius: 8px; padding: 10px 12px; color: #f1f5ff; background: #111824; font-size: 16px; }
.look-photo-heading { margin-top: 24px; margin-bottom: 12px; }
.look-photo-heading strong { font-size: 15px; }
.look-photo-heading span { color: var(--muted); font-size: 12px; }
.look-editor-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.look-editor-photo, .look-photo-add { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; }
.look-photo-actions { position: absolute; bottom: 5px; right: 5px; left: 5px; display: flex; gap: 4px; justify-content: space-between; }
.look-photo-actions .look-icon-button { background: rgba(8, 12, 18, .86); }
.look-photo-delete { color: #ff9f9f; }
.look-photo-add { border: 1px dashed #48526a; color: #aab7ce; background: #0e1520; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; cursor: pointer; padding: 8px; }
.look-photo-add svg { width: 24px; height: 24px; }
.look-photo-add span { font-size: 12px; text-align: center; line-height: 1.4; }
.look-photo-hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 14px 0 0; }
.look-storage-note { color: #b5c3d3; font-size: 12px; line-height: 1.5; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #252d3b; }
.look-editor-footer { flex-shrink: 0; padding: 16px 20px; border-top: 1px solid #252d3b; display: grid; gap: 10px; background: #0d141d; }
.look-editor-footer button { width: 100%; height: 48px; min-height: 48px; font-size: 15px; line-height: 1.25; }
.look-delete-link { margin-top: 18px; color: #ff9f9f; }
.look-error { color: #ffa9a9; font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.look-confirm { padding: 24px; width: min(400px, calc(100% - 32px)); }
.look-confirm h2 { font-size: 19px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.look-confirm p { font-size: 14px; color: #b5c3d3; line-height: 1.5; }
.look-confirm-preview { display: block; width: 72px; height: 88px; object-fit: cover; border-radius: 6px; margin-top: 16px; }
.look-confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; margin-top: 22px; }
.look-confirm-actions button { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 48px; min-height: 48px; padding: 8px 12px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.look-confirm-actions .look-danger { background: #b7434d; color: white; border: 1px solid #cf5963; }
.look-photo-viewer { width: min(800px, calc(100% - 24px)); background: #05070a; }
.look-photo-viewer > .look-icon-button { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgba(8, 12, 18, .9); }
.look-photo-viewer > img { width: 100%; height: auto; max-height: 85dvh; display: block; object-fit: contain; }
.look-dialog button:disabled, .saved-looks-heading button:disabled { opacity: .5; cursor: default; }
.look-dialog button:focus-visible, .saved-look-row:focus-visible, .saved-look-save-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .saved-look-row:hover { background: #131b27; border-color: #60728b; }
  .saved-look-row.is-selected:hover { border-color: var(--accent); }
  .look-icon-button:hover { background: #202c3c; border-color: #60728b; }
  .saved-look-save-link:hover { text-decoration: underline; }
}
@media (max-width: 600px) {
  .profile-saved-looks { padding: 18px 0; }
  .saved-looks-heading { gap: 8px; }
  .saved-looks-heading h3 { font-size: 18px; }
  .saved-looks-heading .soft-btn { padding: 0 10px; font-size: 12px; gap: 5px; }
  .studio-source-head { flex-wrap: wrap; }
  .studio-source-actions { width: 100%; }
  .studio-source-actions .saved-look-choose { flex: 1; padding: 0 8px; font-size: 12px; justify-content: center; }
  .studio-source-actions .studio-source-add { flex: 1; min-height: 44px; font-size: 12px; padding: 0 8px; }
  .look-picker { margin: auto 0 0; width: 100%; max-width: none; max-height: 85dvh; border-radius: 8px 8px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .look-editor { width: min(500px, calc(100% - 24px)); max-height: min(680px, calc(100dvh - var(--look-safe-top) - var(--look-safe-bottom))); }
  .look-editor .look-dialog-head { padding: 12px 16px; }
  .look-editor-body { padding: 16px; }
  .look-editor .look-photo-heading { margin-top: 18px; margin-bottom: 10px; }
  .look-editor-footer { padding: 12px 16px; }
  .look-editor-photos { gap: 7px; }
  .look-photo-actions { left: 0; right: 0; bottom: 3px; gap: 0; }
  .look-photo-actions .look-icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  .look-confirm { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .look-dialog, .saved-look-row, .look-icon-button { transition: none; } .look-dialog { transform: none; } }
