/* Espelho Mágico: estilos próprios do app (o resto vem das classes do Tailwind, em tailwind.css). */

html, body { width: 100%; height: 100%; margin: 0; background-color: #121214; }
/* A página em si não rola: só o conteúdo dentro do app. Assim o Safari não
   deixa sobra de tela nem esconde a barra de baixo. */
html, body { overflow: hidden; overscroll-behavior: none; }
body { font-family: 'Inter', sans-serif; background-color: #000; }
.mobile-viewport { height: 100vh; height: -webkit-fill-available; height: 100svh; height: 100dvh; }
.app-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
}
/* Telas largas (tablet, janela estreita no computador): o app fica numa coluna com a largura de um
   celular, centralizada. O transform faz as telas que abrem por cima (position: fixed) ficarem presas
   a essa coluna, em vez de se esticarem pela tela toda. */
@media (min-width: 520px) {
    /* Centralizada pela posição (o reset do Tailwind, carregado depois, zera a margem do body). */
    body { position: relative; left: calc(50% - 14rem); width: 28rem; transform: translateZ(0); background-color: #121214; }
}
.app-header { padding-top: max(1rem, env(safe-area-inset-top, 0px)); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .app-shell {
        position: relative;
        inset: auto;
        max-width: 28rem;
        height: 850px;
        max-height: calc(100vh - 2rem);
        border: 8px solid #202024;
        border-radius: 2.5rem;
    }
}
button, input, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.tab-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.tab-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.gradient-text {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.magic-bg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}
.voice-assistant-frame {
    /* Acima de tudo (looks, configurações, janelas): é só o contorno do modo conversa e não recebe toques.
       Fica fora da tela principal (que é fixa e prenderia o contorno abaixo das telas que abrem por cima). */
    position: fixed;
    inset: 0;
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    border: 6px solid rgba(168, 85, 247, 0.72);
    border-radius: 2rem;
    background: transparent;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.26);
    transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
@supports (-webkit-mask-composite: xor) {
    .voice-assistant-frame {
        box-sizing: border-box;
        border: 0;
        padding: 6px;
        background: conic-gradient(from 210deg, #7c3aed, #38bdf8, #ec4899, #a855f7, #22d3ee, #7c3aed);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }
}
.voice-assistant-frame.is-listening { opacity: 0.75; animation: voice-frame-breathe 2s ease-in-out infinite; }
.voice-assistant-frame.is-awaiting { opacity: 1; animation: voice-frame-awaiting 850ms ease-in-out infinite; }
.voice-assistant-frame.is-success { opacity: 1; animation: voice-frame-success 700ms ease-out; }
.voice-assistant-frame.is-error {
    opacity: 1;
    border-color: rgba(251, 113, 133, 0.95);
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.62);
    animation: voice-frame-error 650ms ease-out;
}
@supports (-webkit-mask-composite: xor) {
    .voice-assistant-frame.is-listening { animation: voice-siri-colors 2.8s linear infinite; }
    .voice-assistant-frame.is-awaiting { animation: voice-siri-awaiting 1.1s ease-in-out infinite; }
    .voice-assistant-frame.is-success {
        background: linear-gradient(135deg, #a3e635, #22c55e, #2dd4bf, #a3e635);
        animation: voice-frame-success 700ms ease-out;
    }
    .voice-assistant-frame.is-error {
        background: linear-gradient(135deg, #fb7185, #f43f5e, #fda4af, #fb7185);
    }
}
@keyframes voice-frame-breathe {
    0%, 100% { border-color: rgba(168, 85, 247, 0.58); box-shadow: 0 0 12px rgba(56, 189, 248, 0.18); }
    50% { border-color: rgba(56, 189, 248, 0.92); box-shadow: 0 0 24px rgba(56, 189, 248, 0.42); }
}
@keyframes voice-frame-awaiting {
    0%, 100% { border-color: rgba(168, 85, 247, 0.75); box-shadow: 0 0 20px rgba(56, 189, 248, 0.28); }
    50% { border-color: rgba(236, 72, 153, 0.96); box-shadow: 0 0 34px rgba(236, 72, 153, 0.52); }
}
@keyframes voice-frame-success {
    0% { border-color: rgba(168, 85, 247, 0.72); box-shadow: 0 0 16px rgba(56, 189, 248, 0.26); }
    45% { border-color: rgba(74, 222, 128, 1); box-shadow: 0 0 42px rgba(74, 222, 128, 0.72); }
    100% { border-color: rgba(168, 85, 247, 0.72); box-shadow: 0 0 16px rgba(56, 189, 248, 0.26); }
}
@keyframes voice-frame-error {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes voice-siri-colors {
    0%, 100% { filter: hue-rotate(0deg) saturate(1.15); box-shadow: 0 0 14px rgba(56, 189, 248, 0.36), 0 0 30px rgba(168, 85, 247, 0.2); }
    50% { filter: hue-rotate(75deg) saturate(1.65); box-shadow: 0 0 27px rgba(236, 72, 153, 0.52), 0 0 52px rgba(34, 211, 238, 0.3); }
}
@keyframes voice-siri-awaiting {
    0%, 100% { filter: hue-rotate(0deg) saturate(1.4); box-shadow: 0 0 24px rgba(56, 189, 248, 0.48), 0 0 46px rgba(168, 85, 247, 0.34); }
    50% { filter: hue-rotate(120deg) saturate(1.9); box-shadow: 0 0 38px rgba(236, 72, 153, 0.74), 0 0 66px rgba(34, 211, 238, 0.48); }
}
#mirror-tab { background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.14), transparent 34%), #121214; }
.mirror-stage {
    height: min(58vh, 42rem);
    margin: 1rem 1rem 0;
    border: 1px solid rgba(192, 132, 252, 0.34);
    border-radius: 1.75rem;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42), 0 0 28px rgba(168, 85, 247, 0.1);
}
.voice-mode-control {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 12, 16, 0.48);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}
.voice-mode-control.is-active {
    color: #fff;
    border-color: rgba(232, 121, 249, 0.9);
    background: linear-gradient(100deg, rgba(124, 58, 237, 0.78), rgba(56, 189, 248, 0.56), rgba(236, 72, 153, 0.72));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.66), 0 0 30px rgba(232, 121, 249, 0.52);
    animation: voice-button-shimmer 2.4s ease-in-out infinite;
}
.iara-avatar {
    position: relative;
    z-index: 30;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.5), 0 0 14px rgba(168, 85, 247, 0.35);
    transform-origin: top right;
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, opacity 380ms ease, filter 380ms ease;
}
.iara-avatar:not(.is-present) { opacity: 0; transform: scale(0.35); filter: blur(6px); }
.iara-stage {
    pointer-events: none;
    background: #000 url('../assets/iara/full/iara.jpg') center 30% / cover no-repeat;
    opacity: 0;
    transform: scale(1.08) translateY(-14px);
    filter: blur(16px);
    transition: opacity 520ms ease, transform 640ms ease, filter 520ms ease;
}
.iara-stage.is-present { opacity: 1; transform: none; filter: none; }
.iara-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transition: opacity 180ms linear;
}
.iara-stage video.is-visible { opacity: 1; }
.iara-smoke { position: absolute; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.iara-smoke-puff {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 9999px;
    opacity: 0;
    filter: blur(12px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}
.stage-photo { object-fit: contain; background: #000; }
.stage-photo.is-mirrored { object-fit: cover; transform: scaleX(-1); }
/* Câmera da frente aparece como espelho; a de trás, como a foto sai. */
.camera-live.is-mirrored { transform: scaleX(-1); }
.stage-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(16, 12, 23, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.stage-caption { flex: 1; min-width: 0; padding: 0.125rem 0.25rem; color: #fff; font-size: 0.75rem; line-height: 1.35; }
.stage-round {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #fff;
}
.stage-shutter {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 120ms ease;
}
.stage-shutter:active { transform: scale(0.92); }
.stage-shutter.is-live { background: #fff; color: #121214; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28); }
/* O avatar mostra o quadro quase inteiro (rosto e mãos); as medidas abaixo definem esse enquadramento. */
.iara-avatar-clip {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    overflow: hidden;
    clip-path: circle(50%);
    background: #000 url('../assets/iara/full/iara.jpg') 50% 74.4% / 81.4% auto no-repeat;
}
.iara-avatar video {
    position: absolute;
    left: 9.3%;
    top: -15.4%;
    width: 81.4%;
    height: auto;
    opacity: 0;
    transition: opacity 180ms linear;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.iara-avatar video.is-visible { opacity: 1; }
/* O iPhone desenha um botão de “play” sobre vídeos que ainda não começaram; aqui eles nunca têm controles. */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.iara-avatar.is-spotlight { transform: scale(1.75); }
/* Reação a uma ação (foto, armário, troca de foto…): o círculo cresce um pouco para dar destaque. */
.iara-avatar.is-highlight { transform: scale(1.22); }
.iara-avatar.is-listening { box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.85), 0 0 18px rgba(56, 189, 248, 0.5); }
.iara-avatar.is-awaiting { box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.95), 0 0 24px rgba(236, 72, 153, 0.65); }
.iara-avatar.is-success { box-shadow: 0 0 0 2px rgba(74, 222, 128, 1), 0 0 24px rgba(74, 222, 128, 0.65); }
.iara-avatar.is-error { box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.95), 0 0 24px rgba(244, 63, 94, 0.6); }
.empty-state-clip {
    width: 8.5rem;
    aspect-ratio: 464 / 688;
    object-fit: cover;
    margin-bottom: 0.25rem;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 76%);
    mask-image: radial-gradient(ellipse at center, #000 52%, transparent 76%);
}
.sound-toggle, .stage-icon-button {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 12, 16, 0.42);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 180ms ease, background 180ms ease;
}
.sound-toggle:hover, .stage-icon-button:hover { background: rgba(12, 12, 16, 0.62); }
.stage-icon-button.hidden { display: none; }
.sound-toggle[aria-pressed="false"] { color: rgba(255, 255, 255, 0.4); }
.caption-assistant-name { color: #d946ef; font-weight: 600; }
.auth-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.auth-panel { background: linear-gradient(to top, #121214 58%, rgba(18, 18, 20, 0.85) 78%, transparent); }
.account-button {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #29292E;
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
}
/* Anotações da Iara no detalhe da peça. */
.item-tags:empty { display: none; }
.item-tags { display: flex; flex-direction: column; gap: 0.5rem; }
.item-tags-description { font-size: 0.875rem; line-height: 1.35; color: #f3f4f6; }
.item-tags-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.item-tag {
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.6rem;
    font-size: 0.6875rem;
    color: #d1d5db;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.item-tags-pairs { font-size: 0.75rem; color: #c4b5fd; }
.item-tags-pending { font-size: 0.75rem; color: #c4b5fd; animation: item-tags-pulse 1.6s ease-in-out infinite; }
.item-tags-pending i { margin-right: 0.35rem; }
@keyframes item-tags-pulse { 50% { opacity: 0.45; } }
/* Escolher uma foto do armário no espelho: páginas de 9 miniaturas (3×3), deslizando para o lado. */
.wardrobe-photo-picker:not(.hidden) { display: block; }
.picker-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.picker-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 0.5rem; }
.picker-page button { height: 4.5rem; overflow: hidden; border-radius: 0.875rem; border: 1px solid #29292e; background: #202024; transition: border-color 0.2s ease, transform 0.15s ease; }
.picker-page button:active { transform: scale(0.96); }
.picker-page img { width: 100%; height: 100%; object-fit: cover; }
.picker-dots { display: flex; justify-content: center; gap: 0.375rem; margin-top: 0.625rem; }
.picker-dots:empty { display: none; }
.picker-dots span { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.2); transition: width 0.25s ease, background 0.25s ease; }
.picker-dots span.is-active { width: 1.25rem; background: linear-gradient(90deg, #a855f7, #ec4899); }
/* Looks montados pela Iara (etapa 5). */
.wardrobe-looks-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f3e8ff;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.22), rgba(219, 39, 119, 0.14));
    border: 1px solid rgba(216, 180, 254, 0.3);
    box-shadow: 0 0 18px -6px rgba(168, 85, 247, 0.6);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.wardrobe-looks-button:active { transform: scale(0.95); }
.outfits-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    background: radial-gradient(120% 60% at 50% 0%, rgba(88, 28, 135, 0.35), transparent 60%), #121214;
    color: #f4f4f5;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.outfits-overlay.is-open { opacity: 1; transform: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    /* No computador fica sobre o “celular” do centro da tela. */
    .outfits-overlay { left: calc(50% - 14rem); right: auto; width: 28rem; top: max(1rem, calc(50% - 425px)); bottom: max(1rem, calc(50% - 425px)); border-radius: 2.5rem; border: 8px solid #202024; overflow: hidden; }
}
.outfits-header { padding: 0 1rem 0.75rem; }
.outfits-icon-button { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #e4e4e7; }
.outfits-tabs { margin-top: 0.875rem; display: flex; gap: 0.25rem; padding: 0.25rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.outfits-tab { flex: 1; padding: 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8b95; transition: color 0.2s ease, background 0.2s ease; }
.outfits-tab.is-active { color: #fff; background: linear-gradient(135deg, rgba(147, 51, 234, 0.45), rgba(219, 39, 119, 0.3)); box-shadow: 0 0 16px -6px rgba(168, 85, 247, 0.8); }
.outfits-count:empty { display: none; }
.outfits-count { margin-left: 0.25rem; padding: 0 0.4rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.14); font-size: 0.625rem; }
.outfits-panel { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: 0.5rem 1rem 0; overflow-x: hidden; }
.outfits-subquestion { margin: 1.125rem 0 0.5rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #a1a1aa; }
.outfits-subquestion.is-first { margin-top: 0.5rem; }
.outfits-iara-strip { display: flex; align-items: center; gap: 0.75rem; margin: 0 1rem 0.5rem; padding: 0.5rem 0.875rem 0.5rem 0.5rem; border-radius: 1.25rem; background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(219, 39, 119, 0.08)); border: 1px solid rgba(216, 180, 254, 0.22); }
.outfits-iara-strip p { font-size: 0.8125rem; line-height: 1.4; color: #e4e4e7; }
.outfits-iara-strip p b { color: #e879f9; font-weight: 600; }
/* Mesmo enquadramento do avatar do topo: o rosto inteiro dentro do círculo. */
.outfits-iara-face {
    position: relative;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.55), 0 0 18px -2px rgba(168, 85, 247, 0.85);
}
.outfits-iara-clip {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    overflow: hidden;
    clip-path: circle(50%);
    background: #000 url('../assets/iara/full/iara.jpg') 50% 74.4% / 81.4% auto no-repeat;
}
.outfits-iara-face video { position: absolute; left: 9.3%; top: -15.4%; width: 81.4%; height: auto; pointer-events: none; }
/* Só rola para baixo: a tela nunca anda para o lado (só a fileira de datas rola na horizontal). */
.outfits-setup-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: none; padding-bottom: 0.75rem; }
.outfits-days-row { display: flex; gap: 0.375rem; align-items: center; }
.outfits-days { flex: 1; min-width: 0; display: flex; gap: 0.375rem; overflow-x: auto; }
/* O calendário tem a cara e o tamanho das outras datas (a largura vem da data ao lado). */
.outfits-days-row .outfits-chip { height: 2.375rem; }
.outfits-calendar { position: relative; flex-shrink: 0; min-width: 4.5rem; justify-content: center; cursor: pointer; }
.outfits-calendar i { color: #c4b5fd; font-size: 0.875rem; }
/* O campo de data fica invisível por cima do ícone: tocar no ícone abre o calendário do celular. */
.outfits-calendar input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.outfits-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    white-space: nowrap;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.outfits-chip i { color: #a78bfa; }
.outfits-chip.is-selected { color: #fff; border-color: rgba(216, 180, 254, 0.6); background: rgba(168, 85, 247, 0.16); }
.outfits-place { display: flex; gap: 0.375rem; }
.outfits-place .outfits-chip { max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.outfits-place .outfits-chip span { overflow: hidden; text-overflow: ellipsis; }
.outfits-city { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.875rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #a1a1aa; }
.outfits-city.is-selected { border-color: rgba(216, 180, 254, 0.6); background: rgba(168, 85, 247, 0.16); color: #fff; }
.outfits-city input { flex: 1; min-width: 0; padding: 0.5rem 0; background: transparent; border: 0; outline: none; font-size: 16px; color: #f4f4f5; }
.outfits-city input::placeholder { color: #71717a; }
.outfits-city-results { margin-top: 0.375rem; overflow: hidden; border-radius: 1rem; background: #1c1c20; border: 1px solid rgba(255, 255, 255, 0.08); }
.outfits-city-results button { width: 100%; display: flex; align-items: baseline; gap: 0.5rem; padding: 0.625rem 0.875rem; text-align: left; font-size: 0.875rem; color: #e4e4e7; }
.outfits-city-results button + button { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.outfits-city-results i { color: #a78bfa; font-size: 0.75rem; }
.outfits-city-results small { margin-left: auto; font-size: 0.6875rem; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outfits-city-results p { padding: 0.625rem 0.875rem; font-size: 0.8125rem; color: #a1a1aa; }
.outfits-toggle { margin-top: 0.875rem; gap: 0.5rem; font-size: 0.75rem; color: #a1a1aa; }
/* Chave liga/desliga usada no app (previsão do tempo nos looks, preferências da conta). */
.app-toggle { display: flex; align-items: center; cursor: pointer; }
.app-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.app-switch { position: relative; flex-shrink: 0; width: 1.875rem; height: 1.125rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.12); transition: background 0.2s ease; }
.app-switch::after { content: ''; position: absolute; top: 0.15625rem; left: 0.15625rem; width: 0.8125rem; height: 0.8125rem; border-radius: 9999px; background: #fff; transition: transform 0.2s ease; }
.app-toggle input:checked + .app-switch { background: linear-gradient(135deg, #9333ea, #db2777); }
.app-toggle input:checked + .app-switch::after { transform: translateX(0.75rem); }
.app-toggle input:focus-visible + .app-switch { outline: 2px solid rgba(216, 180, 254, 0.6); outline-offset: 2px; }
.app-toggle input:disabled + .app-switch { opacity: 0.5; }
/* Preferências na folha da conta. */
.account-preferences { margin-bottom: 1rem; padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.account-section-title { margin-bottom: 0.625rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #a1a1aa; }
.preference-row { justify-content: space-between; gap: 1rem; }
.preference-row + .preference-row { margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.preference-text { display: flex; flex-direction: column; gap: 0.25rem; }
.preference-name { font-size: 0.875rem; font-weight: 500; color: #f4f4f5; }
.preference-hint { font-size: 0.75rem; line-height: 1.4; color: #a1a1aa; }

/* Configurações */
.settings-overlay { z-index: 110; }
.settings-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.settings-card { padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.settings-account { display: flex; align-items: center; gap: 0.875rem; }
.settings-avatar { position: relative; flex-shrink: 0; border-radius: 9999px; }
.settings-avatar .account-button-large { width: 4rem; height: 4rem; font-size: 1.25rem; }
.settings-avatar-badge { position: absolute; right: -0.125rem; bottom: -0.125rem; width: 1.5rem; height: 1.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.625rem; color: #fff; background: linear-gradient(135deg, #9333ea, #db2777); border: 2px solid #1c1c20; }
.settings-avatar.is-busy .account-button-large { opacity: 0.5; }
.settings-photo-actions { margin-top: 0.375rem; display: flex; gap: 0.875rem; font-size: 0.75rem; font-weight: 600; }
.settings-photo-actions button { color: #d8b4fe; }
.settings-photo-actions button.is-muted { color: #a1a1aa; font-weight: 500; }
.settings-field { display: flex; flex-direction: column; gap: 0.5rem; }
.settings-field + .settings-field { margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.settings-input { width: 100%; padding: 0.625rem 0.875rem; border-radius: 0.75rem; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.1); color: #f4f4f5; font-size: 1rem; }
.settings-input:focus { outline: none; border-color: rgba(216, 180, 254, 0.6); }
.settings-choices { display: flex; gap: 0.25rem; padding: 0.25rem; border-radius: 9999px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.settings-choices button { flex: 1; min-width: 0; padding: 0.5rem 0.25rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; color: #a1a1aa; transition: color 0.2s ease, background 0.2s ease; }
.settings-choices button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, rgba(147, 51, 234, 0.85), rgba(219, 39, 119, 0.85)); }
.settings-choices button:disabled { opacity: 0.6; }
.settings-sign-out { width: 100%; padding: 0.75rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); font-size: 0.875rem; font-weight: 500; color: #f4f4f5; }
.settings-about { text-align: center; font-size: 0.6875rem; color: #71717a; }
.dock-account .account-button i { font-size: 0.95rem; color: #e4e4e7; }
.outfits-iara {
    width: 9rem;
    height: 9rem;
    border-radius: 9999px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.5), 0 0 48px -6px rgba(168, 85, 247, 0.9);
    animation: outfits-glow 2.4s ease-in-out infinite;
}
/* Enquadramento parecido com o avatar do topo, um pouco mais afastado: o rosto aparece inteiro no círculo. */
.outfits-iara { position: relative; background: #000 url('../assets/iara/full/iara.jpg') 50% 70% / 92% auto no-repeat; }
.outfits-iara video { position: absolute; left: 4%; top: -9%; width: 92%; height: auto; }
@keyframes outfits-glow { 50% { box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.6), 0 0 64px -4px rgba(236, 72, 153, 0.85); } }
.outfits-occasions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.outfits-occasion {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 0.875rem;
    border-radius: 1.125rem;
    font-size: 0.875rem;
    text-align: left;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.outfits-occasion i { width: 1rem; color: #a78bfa; }
.outfits-occasion.is-selected { color: #fff; border-color: rgba(216, 180, 254, 0.6); background: rgba(168, 85, 247, 0.16); box-shadow: 0 0 18px -8px rgba(168, 85, 247, 0.9); }
.outfits-weather { margin: 0.625rem 0 0; font-size: 0.8125rem; line-height: 1.45; color: #a1a1aa; }
.outfits-weather:empty { display: none; }
.outfits-weather i { margin-right: 0.375rem; color: #c4b5fd; }
.outfits-primary, .outfits-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.outfits-primary { color: #fff; background: linear-gradient(135deg, #9333ea, #db2777); box-shadow: 0 10px 24px -10px rgba(219, 39, 119, 0.8); }
.outfits-primary:disabled { opacity: 0.4; }
.outfits-secondary { color: #e4e4e7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.outfits-primary:active, .outfits-secondary:active { transform: scale(0.97); }
#outfits-build { flex-shrink: 0; margin: 0.5rem 0; }
.outfits-loading, .outfits-message { align-items: center; justify-content: center; text-align: center; gap: 0.75rem; }
.outfits-orb {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #f5f3ff;
    background: radial-gradient(circle at 35% 30%, rgba(236, 72, 153, 0.7), rgba(147, 51, 234, 0.55) 55%, rgba(59, 7, 100, 0.4));
    box-shadow: 0 0 40px -6px rgba(168, 85, 247, 0.9);
    animation: outfits-orb 1.8s ease-in-out infinite;
}
.outfits-orb.is-quiet { animation: none; box-shadow: 0 0 26px -10px rgba(168, 85, 247, 0.8); }
@keyframes outfits-orb { 50% { transform: scale(1.08) rotate(8deg); box-shadow: 0 0 56px -4px rgba(236, 72, 153, 0.9); } }
.outfits-loading-title { font-size: 1rem; font-weight: 600; }
.outfits-loading-hint, .outfits-message-text { max-width: 18rem; font-size: 0.875rem; line-height: 1.45; color: #a1a1aa; }
.outfits-message-text { color: #e4e4e7; }
.outfits-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 0.625rem; }
.outfits-carousel { flex: 1; min-height: 0; display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.outfits-carousel > .outfit-card { flex: 0 0 100%; scroll-snap-align: center; }
.outfits-dots { display: flex; justify-content: center; gap: 0.375rem; margin: 0.75rem 0; }
.outfits-dots span { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.2); transition: width 0.25s ease, background 0.25s ease; }
.outfits-dots span.is-active { width: 1.25rem; background: linear-gradient(90deg, #a855f7, #ec4899); }
.outfits-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; }
.outfit-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(41, 41, 46, 0.7), rgba(24, 24, 27, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.outfit-collage { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 2px; background: rgba(0, 0, 0, 0.4); }
.outfit-collage.has-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.outfit-collage.has-two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
.outfit-collage.has-three > .outfit-piece:first-child { grid-row: span 2; }
.outfit-piece { position: relative; min-height: 0; overflow: hidden; background: #0b0b0d; }
.outfit-piece img { width: 100%; height: 100%; object-fit: cover; }
.outfit-piece span { position: absolute; left: 0.375rem; bottom: 0.375rem; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: #e4e4e7; background: rgba(0, 0, 0, 0.55); }
.outfit-info { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1rem 1rem; }
.outfit-info h3 { font-size: 1rem; font-weight: 600; color: #fff; }
.outfit-info p { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.45; color: #a1a1aa; }
.outfit-info .outfit-occasion-tag { display: inline-block; margin-top: 0.5rem; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; }
.outfit-heart {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.outfit-heart:active { transform: scale(0.9); }
.outfit-heart.is-saved { color: #fff; border-color: transparent; background: linear-gradient(135deg, #db2777, #9333ea); box-shadow: 0 0 18px -4px rgba(219, 39, 119, 0.8); }
.outfits-saved-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.875rem; padding-bottom: 1rem; }
.outfits-saved-list > .outfit-card { flex-shrink: 0; }
.outfits-saved-list .outfit-collage { flex: none; height: 13rem; }
.outfits-empty { margin: auto; max-width: 17rem; text-align: center; font-size: 0.875rem; line-height: 1.5; color: #a1a1aa; }
.outfits-empty i { display: block; margin-bottom: 0.75rem; font-size: 1.75rem; color: #c4b5fd; }
/* Avisos e confirmações no estilo do app. */
.app-dialog { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.app-dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); opacity: 0; transition: opacity 0.2s ease; }
.app-dialog-card {
    position: relative;
    width: 100%;
    max-width: 20rem;
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 1.75rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(41, 41, 46, 0.96), rgba(18, 18, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9), 0 0 40px -14px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.12);
}
.app-dialog.is-open .app-dialog-backdrop { opacity: 1; }
.app-dialog.is-open .app-dialog-card { opacity: 1; transform: none; }
.app-dialog-image {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1rem;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
}
.app-dialog-compare { display: flex; justify-content: center; gap: 0.75rem; margin: 0 auto 1rem; }
.app-dialog-compare figure { margin: 0; width: 6.5rem; }
.app-dialog-compare img {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
}
.app-dialog-compare figcaption { margin-top: 0.375rem; font-size: 0.75rem; color: #a1a1aa; }
.app-dialog-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #e9d5ff;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(219, 39, 119, 0.22));
    border: 1px solid rgba(216, 180, 254, 0.25);
    box-shadow: 0 0 20px -4px rgba(168, 85, 247, 0.6);
}
.app-dialog.is-danger .app-dialog-icon { color: #fecaca; background: rgba(239, 68, 68, 0.16); border-color: rgba(248, 113, 113, 0.3); box-shadow: 0 0 20px -6px rgba(239, 68, 68, 0.6); }
.app-dialog-title { font-size: 1.0625rem; font-weight: 600; color: #f5f3ff; }
.app-dialog-message { margin-top: 0.375rem; font-size: 0.8125rem; line-height: 1.45; color: #a1a1aa; }
.app-dialog-message:empty { display: none; }
.app-dialog-actions { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.app-dialog-button {
    flex: 1;
    padding: 0.7rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: filter 0.15s ease, transform 0.15s ease;
}
.app-dialog-button:active { transform: scale(0.97); }
.app-dialog-button:focus { outline: none; }
.app-dialog-button:focus-visible { outline: 2px solid rgba(216, 180, 254, 0.6); outline-offset: 2px; }
.app-dialog-button.is-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #9333ea, #db2777); box-shadow: 0 8px 20px -8px rgba(219, 39, 119, 0.7); }
.app-dialog.is-danger .app-dialog-button.is-primary { background: linear-gradient(135deg, #dc2626, #be123c); box-shadow: 0 8px 20px -8px rgba(220, 38, 38, 0.7); }
/* Rodapé: cápsula de vidro flutuante com a aba ativa iluminada. */
.app-dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    /* Mesma distância da borda que o dock do iPhone (~20 pt): a barra de gestos ocupa 34 pt, e o
       rodapé fica logo acima dela. Em aparelhos sem barra de gestos, uma margem pequena. */
    padding: 0 0.875rem max(0.625rem, calc(env(safe-area-inset-bottom, 0px) - 0.875rem));
    pointer-events: none;
}
.dock-bar {
    position: relative;
    max-width: 24rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(41, 41, 46, 0.72), rgba(14, 14, 16, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.9), 0 0 32px -12px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    pointer-events: auto;
}
.dock-indicator {
    position: absolute;
    top: 0.375rem;
    bottom: 0.375rem;
    left: 0;
    width: 0;
    border-radius: 1.375rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.38), rgba(219, 39, 119, 0.24));
    border: 1px solid rgba(216, 180, 254, 0.22);
    box-shadow: 0 0 22px -4px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.12), width 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.12);
}
.dock-item {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0 0.45rem;
    color: #6b6b75;
    transition: color 0.3s ease;
}
.dock-item:active { transform: scale(0.96); }
.dock-icon { width: 1.4rem; height: 1.4rem; transition: transform 0.35s ease, filter 0.35s ease; }
.dock-label { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.dock-item.is-active { color: #f5f0ff; }
.dock-item.is-active .dock-icon { color: #e9d5ff; transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.85)); }
.dock-account {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin: 0 0.375rem 0 0.25rem;
    padding: 2px;
    border-radius: 9999px;
    background: conic-gradient(from 200deg, #a855f7, #ec4899, #38bdf8, #a855f7);
    box-shadow: 0 0 14px -3px rgba(168, 85, 247, 0.7);
    transition: filter 0.2s ease;
}
.dock-account:hover { filter: brightness(1.15); }
.dock-account .account-button { width: 2.25rem; height: 2.25rem; border: 2px solid #121214; }
.account-button img { width: 100%; height: 100%; object-fit: cover; }
.account-button-large { width: 3rem; height: 3rem; font-size: 1rem; }
/* Armário: barra fixa no topo e duas fileiras por tela, para sempre caberem 4 miniaturas. */
.wardrobe-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 1.5rem 0 0.75rem;
    background: #121214;
    box-shadow: 0 0 0 100vmax #121214;
    clip-path: inset(0 -100vmax);
}
#wardrobe-grid { align-content: start; }
.wardrobe-card-media { height: var(--wardrobe-row, 14rem); }
main.is-wardrobe { scroll-snap-type: y proximity; }
.wardrobe-card:nth-child(4n + 1) { scroll-snap-align: start; scroll-margin-top: var(--wardrobe-toolbar-height, 0px); }
.wardrobe-card[data-order]::after {
    content: attr(data-order);
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 1.6rem;
    height: 1.6rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
main.is-voice .wardrobe-card[data-order]::after { display: flex; }
#outfits-saved .outfit-card { position: relative; }
#outfits-saved .outfit-card[data-order]::after {
    content: attr(data-order);
    position: absolute;
    right: 0.625rem;
    top: 0.625rem;
    z-index: 2;
    width: 1.75rem;
    height: 1.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}
body.is-voice #outfits-saved .outfit-card[data-order]::after { display: flex; }
.floating-caption {
    position: fixed;
    left: 50%;
    bottom: 5.75rem;
    z-index: 115;
    width: max-content;
    max-width: min(22rem, 90vw);
    transform: translateX(-50%);
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    border: 1px solid rgba(192, 132, 252, 0.35);
    background: rgba(16, 12, 23, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
}
.floating-caption.is-top { top: 5.75rem; bottom: auto; }
header.is-above-modal { z-index: 105; }
.occasion-field { border-radius: 1rem; }
.occasion-field.is-highlighted { animation: occasion-glow 2.4s ease-out; }
@keyframes occasion-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
    15% { box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.95), 0 0 26px rgba(168, 85, 247, 0.7); }
    45% { box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.9), 0 0 30px rgba(56, 189, 248, 0.55); }
    75% { box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.9), 0 0 26px rgba(236, 72, 153, 0.55); }
}
.ai-score-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.125rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    background: rgba(168, 85, 247, 0.14);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}
.ai-score-badge.hidden { display: none; }
.ai-score-badge small { font-size: 0.625rem; font-weight: 500; color: #c4b5fd; }
.category-sheet { opacity: 0; transition: opacity 200ms ease; }
.category-sheet.is-open { opacity: 1; }
.category-sheet-panel { transform: translateY(100%); transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.category-sheet.is-open .category-sheet-panel { transform: none; }
.category-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border-radius: 1rem;
    border: 1px solid #29292E;
    background: #121214;
    color: #e5e7eb;
    font-size: 0.8125rem;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease;
}
.category-option:hover { border-color: rgba(192, 132, 252, 0.4); }
.category-option.is-current { border-color: rgba(192, 132, 252, 0.75); background: rgba(168, 85, 247, 0.16); color: #fff; }
@keyframes voice-button-shimmer {
    0%, 100% { filter: saturate(1); }
    50% { filter: saturate(1.55) brightness(1.18); }
}
@media (max-width: 420px) {
    .mirror-stage { margin: 0.75rem 0.75rem 0; border-radius: 1.35rem; }
    #wardrobe-tab, #mirror-tab {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .mobile-compact {
        font-size: 0.68rem;
    }
}

/* Detalhe da peça: sem pinça e sem toque duplo para ampliar (o arraste lateral troca de peça). */
#wardrobe-detail-modal { touch-action: pan-y; }
#wardrobe-detail-image { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Escolha do que adicionar ao armário. */
.add-option { width: 100%; display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 0.5rem; padding: 0.875rem 1rem; border-radius: 1rem; text-align: left; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.2s ease, background 0.2s ease; }
.add-option:hover { border-color: rgba(216, 180, 254, 0.4); background: rgba(168, 85, 247, 0.1); }
.add-option > i { margin-top: 0.125rem; width: 1.25rem; font-size: 1.125rem; color: #c4b5fd; }
.add-option b { display: block; font-size: 0.9375rem; font-weight: 600; color: #f4f4f5; }
.add-option small { display: block; margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.4; color: #a1a1aa; }

/* Foto melhorada pela Iara: fundo branco com uma camada preta de 20%, para combinar com o app escuro. */
.is-enhanced { position: relative; }
.is-enhanced::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); pointer-events: none; }

/* Revisão das peças separadas da foto do look. */
.import-pieces { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 0.5rem; }
.import-piece { padding: 0.75rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: opacity 0.2s ease; }
.import-piece.is-excluded { opacity: 0.45; }
.import-piece-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.import-piece-name { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600; color: #f4f4f5; }
.import-piece-name small { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #a1a1aa; }
.import-piece-head .app-toggle { gap: 0.5rem; font-size: 0.75rem; color: #a1a1aa; }
.import-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.import-choices.has-one { grid-template-columns: minmax(0, 1fr); }
.import-choice { overflow: hidden; border-radius: 0.875rem; border: 2px solid transparent; background: #0b0b0d; text-align: left; transition: border-color 0.2s ease; }
.import-choice.is-selected { border-color: #c084fc; box-shadow: 0 0 18px -6px rgba(168, 85, 247, 0.9); }
.import-choice .import-photo { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #f4f4f5; }
.import-choice .import-photo img { width: 100%; height: 100%; object-fit: contain; }
.import-choice.is-original .import-photo { background: #18181b; }
.import-choice > span { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.625rem; font-size: 0.75rem; font-weight: 600; color: #e4e4e7; }
.import-choice > span i { color: #c4b5fd; }
.import-choice.is-selected > span::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; color: #c084fc; }
.import-repeat { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.625rem; padding: 0.625rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.import-repeat.is-pending { border-color: rgba(192, 132, 252, 0.55); box-shadow: 0 0 18px -8px rgba(168, 85, 247, 0.9); }
.import-repeat img { width: 4.5rem; height: 4.5rem; flex-shrink: 0; border-radius: 0.75rem; object-fit: cover; background: #18181b; }
.import-repeat-body { flex: 1; min-width: 0; }
.import-repeat-body p { margin: 0 0 0.5rem; font-size: 0.75rem; line-height: 1.4; color: #d4d4d8; }
.import-repeat-actions { display: flex; gap: 0.375rem; }
.import-repeat-button { flex: 1; min-height: 2.25rem; padding: 0.375rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; color: #e4e4e7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.import-repeat-button.is-selected { color: #fff; background: linear-gradient(135deg, rgba(147, 51, 234, 0.55), rgba(219, 39, 119, 0.45)); border-color: rgba(216, 180, 254, 0.5); }
.import-note { margin: 0.5rem 0 0.25rem; font-size: 0.75rem; line-height: 1.45; color: #a1a1aa; }
.import-note:empty { display: none; }
#look-import-save { flex-shrink: 0; margin: 0.5rem 0; }

/* Detalhe da peça: etiqueta de foto melhorada, ver original e melhorar foto. */
.detail-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.detail-badge, .detail-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 500; white-space: nowrap; }
.detail-badge { color: #e9d5ff; background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(216, 180, 254, 0.25); }
.detail-pill { color: #e4e4e7; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.2s ease; }
.detail-pill:hover { background: rgba(255, 255, 255, 0.14); }
.detail-pill.is-accent { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(147, 51, 234, 0.85), rgba(219, 39, 119, 0.85)); }
.detail-pill:disabled { opacity: 0.6; }
.detail-badge i, .detail-pill i { font-size: 0.6875rem; }
/* Na foto ampliada, a camada preta de 20% vira um escurecimento da própria imagem (o fundo do detalhe já é escuro). */
#wardrobe-detail-image.is-enhanced-photo { filter: brightness(0.8); }

/* Histórico das últimas análises. */
.history-button { position: relative; flex-shrink: 0; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; color: #d8b4fe; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.2s ease; }
.history-button:hover { background: rgba(168, 85, 247, 0.15); }
.history-count { position: absolute; top: -0.25rem; right: -0.25rem; min-width: 1.125rem; height: 1.125rem; padding: 0 0.25rem; border-radius: 9999px; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; font-size: 0.625rem; font-weight: 700; line-height: 1.125rem; text-align: center; }
.history-count:empty { display: none; }
.history-panel { max-height: 80vh; display: flex; flex-direction: column; }
.history-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.history-entry { border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.history-entry summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; cursor: pointer; list-style: none; }
.history-entry summary::-webkit-details-marker { display: none; }
.history-entry img { width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 0.75rem; object-fit: cover; }
.history-entry img.is-mirrored { transform: scaleX(-1); }
.history-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.history-info b { font-size: 0.875rem; font-weight: 600; color: #f4f4f5; }
.history-info small { font-size: 0.75rem; color: #a1a1aa; }
.history-score { padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.9375rem; font-weight: 700; color: #f5f3ff; background: rgba(168, 85, 247, 0.18); border: 1px solid rgba(216, 180, 254, 0.3); }
.history-score small { font-size: 0.625rem; font-weight: 500; color: #c4b5fd; }
.history-text { padding: 0 0.875rem 0.875rem; font-size: 0.8125rem; line-height: 1.5; color: #d4d4d8; }
.history-text strong { color: #fff; }
.history-empty { padding: 1.5rem 0.5rem; text-align: center; font-size: 0.875rem; color: #a1a1aa; }

/* Recorte da foto anexada. */
.crop-overlay { z-index: 125; }
.crop-hint { margin-top: 0.5rem; font-size: 0.75rem; color: #a1a1aa; }
.crop-stage { position: relative; flex: 1; min-height: 0; margin: 0 1rem; overflow: hidden; border-radius: 1rem; background: #000; }
/* Girar a foto 90° (fotos de peças tiradas de lado, na cama ou no cabide). */
.photo-rotate-button {
    position: absolute; right: 0.625rem; bottom: 0.625rem; z-index: 2;
    width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
    border-radius: 9999px; color: #f5f3ff; background: rgba(24, 24, 27, 0.78); border: 1px solid rgba(216, 180, 254, 0.35);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px);
}
.photo-rotate-button.is-inline { position: static; flex-shrink: 0; }
.import-choices { position: relative; }
.crop-stage img { display: block; max-width: 100%; }
.crop-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0.5rem; padding: 0.875rem 1rem 0; }
.crop-overlay .cropper-view-box { outline: 2px solid #c084fc; outline-color: rgba(192, 132, 252, 0.9); }
.crop-canvas { position: absolute; inset: 20px; }
/* Alças fáceis de pegar com o dedo: bolinha visível de 16 px e área de toque de 44 px em volta. */
.crop-overlay .cropper-point {
    width: 16px; height: 16px; border-radius: 9999px; opacity: 1;
    background-color: #ec4899; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.crop-overlay .cropper-point::after { content: ''; position: absolute; inset: -14px; }
.crop-overlay .cropper-point.point-se::before { display: none; }
.crop-overlay .cropper-point.point-n, .crop-overlay .cropper-point.point-s { left: 50%; margin-left: -8px; }
.crop-overlay .cropper-point.point-e, .crop-overlay .cropper-point.point-w { top: 50%; margin-top: -8px; }
.crop-overlay .cropper-point.point-n { top: -8px; }
.crop-overlay .cropper-point.point-s { bottom: -8px; }
.crop-overlay .cropper-point.point-e { right: -8px; }
.crop-overlay .cropper-point.point-w { left: -8px; }
.crop-overlay .cropper-point.point-ne { top: -8px; right: -8px; }
.crop-overlay .cropper-point.point-nw { top: -8px; left: -8px; }
.crop-overlay .cropper-point.point-se { bottom: -8px; right: -8px; width: 16px; height: 16px; }
.crop-overlay .cropper-point.point-sw { bottom: -8px; left: -8px; }
/* Bordas: arrastar em qualquer ponto da linha também ajusta (faixa de toque de 28 px, invisível). */
.crop-overlay .cropper-line { background: transparent; opacity: 1; }
.crop-overlay .cropper-line.line-n { top: -14px; height: 28px; }
.crop-overlay .cropper-line.line-s { bottom: -14px; height: 28px; }
.crop-overlay .cropper-line.line-e { right: -14px; width: 28px; }
.crop-overlay .cropper-line.line-w { left: -14px; width: 28px; }
.crop-square .crop-actions { grid-template-columns: 1fr; }
.crop-square .cropper-view-box, .crop-square .cropper-face { border-radius: 50%; }

/* A Iara falando: um brilho rosa que pulsa em volta dela. */
.iara-avatar.is-speaking { animation: iara-speaking 1.4s ease-in-out infinite; }
#iara-stage.is-speaking { animation: iara-speaking-stage 1.4s ease-in-out infinite; }
@keyframes iara-speaking { 50% { box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.9), 0 0 26px rgba(236, 72, 153, 0.7); } }
@keyframes iara-speaking-stage { 50% { box-shadow: inset 0 0 0 2px rgba(236, 72, 153, 0.55), 0 0 32px -6px rgba(236, 72, 153, 0.7); } }

/* Primeiro acesso: apresentação e conversa com a Iara */
.onboarding {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    background: radial-gradient(120% 60% at 50% 0%, rgba(88, 28, 135, 0.45), transparent 62%), #121214;
    color: #f4f4f5;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.onboarding.is-open { opacity: 1; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .onboarding { left: calc(50% - 14rem); right: auto; width: 28rem; top: max(1rem, calc(50% - 425px)); bottom: max(1rem, calc(50% - 425px)); border-radius: 2.5rem; border: 8px solid #202024; overflow: hidden; }
}
.onboarding-tour, .onboarding-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; transition: opacity 0.4s ease; }
.onboarding-tour.is-leaving { opacity: 0; }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; min-height: 2.5rem; padding: 0 1.25rem; }
.onboarding-brand { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: #d8b4fe; }
.onboarding-brand i { margin-right: 0.5rem; }
.onboarding-skip { padding: 0.5rem 0.25rem; font-size: 0.875rem; font-weight: 500; color: #a1a1aa; }
.onboarding-slides { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.onboarding-slides::-webkit-scrollbar { display: none; }
.onboarding-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem 2rem; text-align: center; }
.onboarding-icon {
    width: 8.5rem;
    height: 8.5rem;
    margin-bottom: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background: radial-gradient(circle at 30% 25%, rgba(244, 114, 182, 0.9), rgba(147, 51, 234, 0.85) 55%, rgba(76, 29, 149, 0.9));
    box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.08), 0 0 0 22px rgba(168, 85, 247, 0.05), 0 20px 50px -10px rgba(219, 39, 119, 0.55);
    animation: onboarding-float 4s ease-in-out infinite;
}
@keyframes onboarding-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.onboarding-slide h2 { font-size: 1.625rem; font-weight: 700; line-height: 1.2; }
.onboarding-slide p { margin-top: 0.875rem; max-width: 20rem; font-size: 1rem; line-height: 1.55; color: #c4c4cc; }
.onboarding-bottom { padding: 0 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.onboarding-dots { display: flex; gap: 0.5rem; }
.onboarding-dots span { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.18); transition: width 0.3s ease, background 0.3s ease; }
.onboarding-dots span.is-active { width: 1.5rem; background: linear-gradient(90deg, #a855f7, #ec4899); }
.onboarding-next { width: 100%; }
.onboarding-progress { display: flex; gap: 0.375rem; }
.onboarding-progress span { width: 1.25rem; height: 0.25rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.15); transition: background 0.3s ease; }
.onboarding-progress span.is-done { background: linear-gradient(90deg, #a855f7, #ec4899); }
.onboarding-iara-frame { position: relative; flex: 1; min-height: 12rem; margin: 0.5rem 1.25rem 0; border-radius: 1.75rem; overflow: hidden; border: 1px solid rgba(192, 132, 252, 0.25); box-shadow: 0 20px 60px -20px rgba(147, 51, 234, 0.6); }
.onboarding-iara { position: absolute; inset: 0; }
.onboarding-iara.is-speaking { animation: iara-speaking-stage 1.4s ease-in-out infinite; }
.onboarding-talk { padding: 1rem 1.25rem 0; }
.onboarding-say { min-height: 3.2em; font-size: 1.0625rem; line-height: 1.5; color: #f4f4f5; }
.onboarding-say::before { content: 'Iara: '; font-weight: 600; color: #e879f9; }
.onboarding-say.is-typing { opacity: 0.55; }
.onboarding-controls { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.onboarding-controls .onboarding-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.5rem; }
.onboarding-choice { padding: 0.875rem 0.5rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 600; color: #e4e4e7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.onboarding-choice small { display: block; margin-top: 0.25rem; font-size: 0.6875rem; font-weight: 500; color: #a1a1aa; }
.onboarding-choice:active { transform: scale(0.97); }
.choice-sheet-options { display: grid; gap: 0.5rem; }
.choice-sheet-options .onboarding-choice { text-align: left; padding: 0.75rem 0.875rem; }
.onboarding-choice.is-chosen { border-color: rgba(236, 72, 153, 0.8); background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(219, 39, 119, 0.35)); }
.onboarding-later { padding: 0.5rem; font-size: 0.875rem; color: #a1a1aa; }
.settings-link-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; }

/* Perguntas de estilo */
.onboarding-talk { flex-shrink: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0.25rem; }
.onboarding-chat.is-picking .onboarding-iara-frame { flex: 0 0 auto; height: clamp(6.5rem, 20vh, 11rem); min-height: 0; }
.onboarding-chat.is-picking .onboarding-say { min-height: 0; }
.onboarding-looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.onboarding-look { position: relative; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: #ece8f1; border: 2px solid transparent; transition: transform 0.15s ease, border-color 0.2s ease, opacity 0.2s ease; }
.onboarding-look img { width: 100%; height: 100%; object-fit: cover; }
.onboarding-look:active { transform: scale(0.97); }
.onboarding-look.is-chosen { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.35); }
.onboarding-look.is-chosen::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0.5rem; top: 0.5rem; width: 1.75rem; height: 1.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #fff; background: linear-gradient(135deg, #9333ea, #db2777); }
.onboarding-looks:has(.is-chosen) .onboarding-look:not(.is-chosen) { opacity: 0.45; }
.onboarding-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.onboarding-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500; color: #e4e4e7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.2s ease, border-color 0.2s ease; }
.onboarding-chip[aria-pressed="true"] { color: #fff; border-color: rgba(236, 72, 153, 0.85); background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(219, 39, 119, 0.4)); }
.onboarding-chip:disabled { opacity: 0.3; }
.onboarding-swatch { width: 1rem; height: 1rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.35); flex-shrink: 0; }
.onboarding-progress span { width: 0.875rem; }
.settings-style-summary { font-size: 0.8125rem; line-height: 1.45; color: #d4d4d8; }
.settings-style-summary.is-empty { color: #a1a1aa; }
.settings-style-button { align-self: flex-start; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 600; color: #d8b4fe; }

/* Fotos da pessoa (rosto e corpo inteiro) */
.person-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.person-photo { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.person-photo-pick { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: #d8b4fe; font-size: 0.75rem; font-weight: 600; background: rgba(255, 255, 255, 0.04); border: 1.5px dashed rgba(216, 180, 254, 0.45); }
.person-photo-pick i { font-size: 1.5rem; }
.person-photo-pick.has-photo { border-style: solid; border-color: rgba(255, 255, 255, 0.12); }
.person-photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-photo-pick.is-busy { opacity: 0.5; }
.person-photo-edit { position: absolute; right: 0.375rem; bottom: 0.375rem; width: 1.75rem; height: 1.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #9333ea, #db2777); }
.person-photo-edit i { font-size: 0.7rem; }
.person-photo-label { font-size: 0.75rem; font-weight: 500; color: #d4d4d8; }
.person-photo-remove { font-size: 0.6875rem; color: #a1a1aa; }
.onboarding-note { font-size: 0.75rem; line-height: 1.45; color: #a1a1aa; }
.onboarding-controls .person-photos { max-width: 18rem; margin: 0 auto; width: 100%; }

/* “Iara, me imagina com esse look” */
.outfit-imagine { flex-shrink: 0; width: 2.75rem; height: 2.75rem; margin-right: 0.5rem; border-radius: 9999px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #f0abfc; background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(216, 180, 254, 0.35); transition: transform 0.2s ease; }
.outfit-imagine:active { transform: scale(0.9); }
.outfit-imagine img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.outfit-imagine.has-image { border: 2px solid #ec4899; }
.tryon-viewer { position: fixed; inset: 0; z-index: 102; display: flex; align-items: center; justify-content: center; padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s ease; }
.tryon-viewer.is-open { opacity: 1; }
.tryon-card { width: 100%; max-width: 26rem; max-height: 100%; display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; border-radius: 1.75rem; background: #18181b; border: 1px solid rgba(255, 255, 255, 0.08); color: #f4f4f5; }
.tryon-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tryon-frame { position: relative; flex: 1; min-height: 0; aspect-ratio: 3 / 4; border-radius: 1.25rem; overflow: hidden; background: #ece8f1; }
.tryon-frame img { width: 100%; height: 100%; object-fit: cover; animation: tryon-reveal 0.6s ease; }
@keyframes tryon-reveal { from { opacity: 0; filter: blur(12px); transform: scale(1.03); } to { opacity: 1; filter: none; transform: none; } }
.tryon-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; color: #3b2a55; background: radial-gradient(circle at 50% 40%, rgba(216, 180, 254, 0.55), #ece8f1 70%); }
.tryon-loading p { font-size: 0.9375rem; font-weight: 500; line-height: 1.45; }
.tryon-spark { width: 4.5rem; height: 4.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: #fff; background: linear-gradient(135deg, #9333ea, #db2777); animation: onboarding-float 2.4s ease-in-out infinite, tryon-glow 2.4s ease-in-out infinite; }
@keyframes tryon-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.45); } 50% { box-shadow: 0 0 0 18px rgba(219, 39, 119, 0); } }
.tryon-note { font-size: 0.6875rem; line-height: 1.4; color: #a1a1aa; }

/* Termos de uso */
.terms-screen {
    position: fixed;
    inset: 0;
    z-index: 108;
    display: flex;
    flex-direction: column;
    background: radial-gradient(120% 50% at 50% 0%, rgba(88, 28, 135, 0.4), transparent 60%), #121214;
    color: #f4f4f5;
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .terms-screen { left: calc(50% - 14rem); right: auto; width: 28rem; top: max(1rem, calc(50% - 425px)); bottom: max(1rem, calc(50% - 425px)); border-radius: 2.5rem; border: 8px solid #202024; overflow: hidden; }
}
.terms-head h2 { margin-top: 1rem; font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.terms-intro { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5; color: #c4c4cc; }
.terms-body { flex: 1; min-height: 0; overflow-y: auto; margin: 1rem -0.25rem 0; padding: 0 0.25rem 1rem; -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
.terms-body section { padding: 0.875rem 1rem; margin-bottom: 0.625rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.terms-body h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 600; }
.terms-body h3 i { width: 1.25rem; color: #d8b4fe; font-size: 0.875rem; }
.terms-body p, .terms-body li { margin-top: 0.375rem; font-size: 0.8125rem; line-height: 1.55; color: #d4d4d8; }
.terms-body ul { padding-left: 1.1rem; list-style: disc; }
.terms-body strong { color: #fff; }
.terms-contact { color: #f0abfc; font-weight: 600; }
.terms-version { margin-top: 0.5rem; text-align: center; font-size: 0.6875rem; color: #71717a; }
.terms-actions { display: flex; flex-direction: column; gap: 0.625rem; padding-top: 0.75rem; }
.terms-check { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.8125rem; line-height: 1.45; color: #e4e4e7; cursor: pointer; }
.terms-check input { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin-top: 0.1rem; accent-color: #db2777; }
.terms-screen.is-reading .terms-check, .terms-screen.is-reading #terms-accept, .terms-screen.is-reading #terms-decline { display: none; }

/* Jeito da análise (Configurações) */
.settings-choices.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 1rem; }
.settings-choices.is-grid button { border-radius: 0.75rem; }
.settings-tone { display: flex; flex-direction: column; gap: 0.5rem; }

/* Meu uso (Configurações): barras no estilo de medidor de uso */
.usage-list { display: flex; flex-direction: column; gap: 1rem; }
.usage-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.usage-item-head .preference-name i { margin-right: 0.5rem; color: #d8b4fe; }
.usage-count { font-size: 0.75rem; font-weight: 600; color: #d4d4d8; white-space: nowrap; }
.usage-bar { position: relative; height: 0.5rem; margin-top: 0.5rem; border-radius: 9999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.usage-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 9999px; background: linear-gradient(90deg, #9333ea, #db2777); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.usage-bar.is-full span { background: linear-gradient(90deg, #db2777, #f43f5e); }
.usage-note { margin-top: 0.375rem; font-size: 0.6875rem; line-height: 1.4; color: #a1a1aa; }
.usage-note.is-over { color: #fda4af; }
.usage-badge { display: inline-block; margin-bottom: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fde68a; background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.3); }
.usage-section-title { margin-top: 0.25rem; padding-top: 0.875rem; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #a1a1aa; }
.usage-section-title small { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Servidor acordando */
/* Aviso rápido no alto: abaixo da câmera do iPhone (área segura) e com fundo firme para dar para ler. */
#toast { top: calc(0.75rem + env(safe-area-inset-top, 0px)); background: rgba(32, 32, 36, 0.94); }
.wake-banner { position: fixed; left: 50%; top: calc(0.75rem + env(safe-area-inset-top, 0px)); z-index: 125; max-width: calc(100% - 2rem); display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 9999px; font-size: 0.75rem; color: #f4f4f5; background: rgba(32, 32, 36, 0.92); border: 1px solid rgba(216, 180, 254, 0.35); box-shadow: 0 10px 30px -10px rgba(147, 51, 234, 0.6); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.wake-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.wake-dot { flex-shrink: 0; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: linear-gradient(135deg, #a855f7, #ec4899); animation: wake-pulse 1s ease-in-out infinite; }
@keyframes wake-pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* Opinião e painel do criador */
.feedback-text { resize: none; font-size: 0.9375rem; line-height: 1.45; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.admin-stat { padding: 0.75rem; border-radius: 0.875rem; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.06); }
.admin-stat b { display: block; font-size: 1.375rem; font-weight: 700; color: #fff; }
.admin-stat span { font-size: 0.6875rem; color: #a1a1aa; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.admin-table th, .admin-table td { padding: 0.375rem 0.25rem; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.admin-table th:first-child, .admin-table td:first-child { text-align: left; }
.admin-table th { font-weight: 600; color: #a1a1aa; }
.admin-feedback { padding: 0.625rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.admin-feedback:last-child { border-bottom: 0; }
.admin-feedback-head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.6875rem; color: #a1a1aa; }
.admin-feedback-kind { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #f0abfc; }
.admin-feedback p { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.45; color: #e4e4e7; white-space: pre-wrap; }

/* Planos: Grátis, Básico e Pro */
.plans-intro { font-size: 0.8125rem; line-height: 1.5; color: #d4d4d8; }
.plan-card { position: relative; padding: 1.125rem 1rem 1rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.plan-card.is-recommended { border-color: rgba(192, 132, 252, 0.55); background: linear-gradient(160deg, rgba(168, 85, 247, 0.16), rgba(255, 255, 255, 0.03)); box-shadow: 0 0 28px -12px rgba(168, 85, 247, 0.9); }
.plan-card.is-current { border-color: rgba(52, 211, 153, 0.5); }
.plan-badge { position: absolute; top: -0.625rem; right: 1rem; padding: 0.125rem 0.625rem; border-radius: 9999px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #064e3b; background: #6ee7b7; }
.plan-badge.is-gold { color: #3b0764; background: linear-gradient(90deg, #f0abfc, #c4b5fd); }
.plan-name { font-size: 1.125rem; font-weight: 700; color: #fff; }
.plan-tagline { font-size: 0.75rem; color: #a1a1aa; }
.plan-price { margin-top: 0.5rem; font-size: 1.625rem; font-weight: 800; color: #fff; }
.plan-price small { font-size: 0.8125rem; font-weight: 500; color: #a1a1aa; }
.plan-features { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.plan-features li { display: flex; gap: 0.625rem; align-items: baseline; font-size: 0.8125rem; color: #e4e4e7; }
.plan-features i { width: 1rem; text-align: center; color: #c084fc; font-size: 0.75rem; }
.plan-button { margin-top: 1rem; width: 100%; padding: 0.75rem; border-radius: 0.875rem; font-size: 0.875rem; font-weight: 600; color: #fff; background: linear-gradient(90deg, #a855f7, #ec4899); }
.plan-button.is-current { color: #6ee7b7; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); }
#plans-body { display: grid; gap: 1.125rem; }

/* Apagar a conta */
.settings-link-row.is-danger .preference-name, .settings-link-row.is-danger > i { color: #fda4af; }
.delete-step { display: flex; flex-direction: column; gap: 0.875rem; }
.delete-lead { font-size: 0.875rem; line-height: 1.5; color: #d4d4d8; }
.delete-reasons { display: grid; gap: 0.5rem; }
.delete-reasons button { padding: 0.75rem 1rem; border-radius: 0.875rem; text-align: left; font-size: 0.875rem; color: #e4e4e7; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.2s ease, background 0.2s ease; }
.delete-reasons button[aria-checked="true"] { border-color: rgba(192, 132, 252, 0.7); background: rgba(168, 85, 247, 0.14); color: #fff; }
.delete-keep { padding: 0.5rem; font-size: 0.875rem; color: #a1a1aa; }
.delete-warning { display: flex; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.35); font-size: 0.8125rem; color: #fecdd3; }
.delete-warning > i { margin-top: 0.125rem; font-size: 1.125rem; color: #fb7185; }
.delete-warning-title { font-size: 0.9375rem; font-weight: 700; color: #fff; }
.delete-list { display: grid; gap: 0.625rem; padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.delete-list li { display: flex; gap: 0.75rem; align-items: baseline; font-size: 0.8125rem; color: #e4e4e7; }
.delete-list i { width: 1rem; text-align: center; color: #fb7185; font-size: 0.75rem; }
.delete-check { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.8125rem; color: #e4e4e7; }
.delete-check input { margin-top: 0.125rem; width: 1.125rem; height: 1.125rem; accent-color: #f43f5e; flex-shrink: 0; }
.delete-type { display: grid; gap: 0.375rem; font-size: 0.8125rem; color: #d4d4d8; }
.delete-type input { letter-spacing: 0.12em; text-transform: uppercase; }
.delete-button { width: 100%; padding: 0.875rem; border-radius: 9999px; font-size: 0.9375rem; font-weight: 600; color: #fff; background: #e11d48; transition: opacity 0.2s ease; }
.delete-button:disabled { opacity: 0.35; }
.delete-progress { display: grid; justify-items: center; gap: 0.5rem; padding: 3rem 1rem; text-align: center; color: #e4e4e7; }
.delete-progress > i { font-size: 1.75rem; color: #fb7185; }
/* A Iara triste no topo da tela de apagar a conta: brilho mais suave, sem pulsar. */
.delete-iara { flex-shrink: 0; width: 7.5rem; height: 7.5rem; margin: 0.25rem auto 0.25rem; animation: none; box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.35), 0 0 36px -8px rgba(129, 140, 248, 0.8); }
.admin-tests td:nth-child(2), .admin-tests th:nth-child(2) { text-align: left; white-space: normal; }
.admin-bills { margin-top: 0.75rem; display: grid; gap: 0.375rem; font-size: 0.75rem; color: #d4d4d8; }
.admin-bills b { color: #fff; }
.admin-bills li.is-low { color: #fecaca; }
/* Painel: dicas, etiquetas de erro/aviso e barra do gasto por dia. */
.admin-tips { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.admin-tip { padding: 0.625rem 0.75rem; border-radius: 0.875rem; font-size: 0.8125rem; line-height: 1.45; color: #e4e4e7; background: rgba(255, 255, 255, 0.04); border-left: 3px solid #a1a1aa; }
.admin-tip.is-alta { border-left-color: #f87171; background: rgba(239, 68, 68, 0.1); }
.admin-tip.is-media { border-left-color: #fbbf24; background: rgba(245, 158, 11, 0.08); }
.admin-tip.is-baixa { border-left-color: #a78bfa; }
.admin-tip.is-ok { border-left-color: #4ade80; }
.admin-level { display: inline-block; padding: 0.125rem 0.375rem; border-radius: 9999px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-level.is-erro { color: #fecaca; background: rgba(239, 68, 68, 0.25); }
.admin-level.is-aviso { color: #fde68a; background: rgba(245, 158, 11, 0.22); }
.admin-level.is-info { color: #ddd6fe; background: rgba(139, 92, 246, 0.22); }
.admin-bar-cell { width: 25%; }
.admin-topup { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.admin-topup select, .admin-topup input { flex: 1 1 8rem; min-width: 0; padding: 0.5rem 0.625rem; border-radius: 0.75rem; font-size: 0.8125rem; color: #f4f4f5; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.admin-topup button { flex: 1 1 100%; }
.admin-bar { display: block; height: 0.5rem; min-width: 2px; border-radius: 9999px; background: linear-gradient(90deg, #a855f7, #ec4899); }
.admin-bills li.is-low b { color: #fca5a5; }
/* Painel: filtros e páginas dos testes */
.admin-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.admin-filters label { display: grid; gap: 0.25rem; font-size: 0.6875rem; color: #a1a1aa; }
.admin-filters .is-wide { grid-column: 1 / -1; }
.admin-filters input, .admin-filters select { width: 100%; padding: 0.5rem 0.625rem; border-radius: 0.75rem; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.8125rem; color-scheme: dark; }
.admin-tests td small { display: block; margin-top: 0.125rem; font-size: 0.625rem; color: #a1a1aa; }
.admin-tests tfoot td { padding-top: 0.625rem; font-weight: 700; color: #fff; border-bottom: 0; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.75rem; color: #d4d4d8; }
.admin-pager button { width: 2rem; height: 2rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; }
.admin-pager button:disabled { opacity: 0.3; }

/* Montar meu look (sem IA) */
#outfits-saved > .outfits-own { margin: 0 0 0.75rem; }
.look-builder-preview .outfit-collage { height: 15rem; border-radius: 1.25rem; overflow: hidden; }
.look-builder-preview .outfit-piece { position: relative; display: block; background: #e8e5ec; }
.look-builder-preview .outfit-piece img { width: 100%; height: 100%; object-fit: contain; }
.look-builder-empty { display: grid; justify-items: center; gap: 0.5rem; padding: 2.5rem 1rem; border-radius: 1.25rem; border: 1px dashed rgba(255, 255, 255, 0.15); font-size: 0.8125rem; color: #a1a1aa; text-align: center; }
.look-builder-empty i { font-size: 1.5rem; color: #a78bfa; }
.look-builder-slots { display: grid; gap: 0.875rem; }
.look-builder-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 0.375rem; }
.look-builder-label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.look-builder-slot { min-width: 0; }
.look-builder-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 0.5rem; padding: 0.125rem; box-sizing: border-box; }
.look-builder-pages + .picker-dots { margin-top: 0.5rem; }
.look-builder-option { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 0.875rem; overflow: hidden; border: 2px solid transparent; background: rgba(255, 255, 255, 0.05); transition: border-color 0.2s ease, transform 0.2s ease; }
.look-builder-option img { width: 100%; height: 100%; object-fit: cover; }
.look-builder-option.is-selected { border-color: #c084fc; transform: scale(0.96); box-shadow: 0 0 16px -6px rgba(168, 85, 247, 0.9); }
.look-builder-field { display: grid; gap: 0.375rem; margin-bottom: 0.875rem; font-size: 0.75rem; color: #a1a1aa; }
.look-builder-opinion { padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(192, 132, 252, 0.3); font-size: 0.875rem; line-height: 1.5; color: #f4f4f5; }
.look-builder-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.look-builder-actions button:disabled, #look-builder-save:disabled { opacity: 0.45; }
/* Painel: no iPhone o campo de data tem largura mínima própria e um invadia o outro. */
.admin-filters label { min-width: 0; }
.admin-filters input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; box-sizing: border-box; height: 2.5rem; line-height: 1.2; text-align: left; }
.admin-filters input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* Primeira tela de Looks compacta (cabe sem rolar num iPhone comum) e os dois botões juntos. */
#outfits-setup .outfits-occasion { padding: 0.625rem 0.75rem; }
#outfits-setup .outfits-subquestion { margin-top: 0.875rem; margin-bottom: 0.5rem; }
#outfits-setup .outfits-subquestion.is-first { margin-top: 0.25rem; }
#outfits-setup .outfits-toggle { margin-top: 0.625rem; }
#outfits-build { margin: 0.375rem 0 0; box-sizing: border-box; }
.outfits-own { width: 100%; }
#outfits-build, #outfits-setup > .outfits-own { width: 100%; height: 3.1875rem; }
#outfits-setup > .outfits-own { flex-shrink: 0; margin: 0.5rem 0; }
#outfits-saved > .outfits-own { margin: 0 0 0.75rem; }

/* Fileira de datas: as datas deslizam e somem por baixo do botão redondo do calendário (sem corte reto). */
.outfits-days-row { position: relative; }
.outfits-days { border-radius: 9999px; padding-right: 4.75rem; }
.outfits-days-row .outfits-calendar { position: absolute; right: 0; top: 0; z-index: 1; background: #1d1c22; box-shadow: -0.75rem 0 0.75rem -0.25rem #121214; }
/* Os botões ficam logo abaixo das opções (sem um vão no meio); em tela pequena, só as opções rolam. */
#outfits-setup .outfits-setup-scroll { padding-bottom: 0.5rem; }

/* “Looks com” a peça de partida e/ou a cor pedida, no alto da tela de montar. */
.outfits-anchor { display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
.outfits-anchor.hidden { display: none; }
.outfits-anchor-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 1rem; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(192, 132, 252, 0.3); }
.outfits-anchor-card img { width: 3rem; height: 3rem; flex: none; border-radius: 0.75rem; object-fit: cover; background: #e8e5ec; }
.outfits-anchor-card .outfits-swatch { width: 2.25rem; height: 2.25rem; margin: 0.375rem; flex: none; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, 0.25); }
.outfits-anchor-card span { flex: 1; min-width: 0; font-size: 0.875rem; color: #f4f4f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outfits-anchor-card small { display: block; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #c4b5fd; }
.outfits-anchor-card button { width: 2rem; height: 2rem; flex: none; border-radius: 9999px; color: #d4d4d8; background: rgba(255, 255, 255, 0.08); }

/* Escolha dos acessórios para melhorar juntos (mesma página do “Foto do armário”), com a marcação. */
.picker-page .picker-pick { position: relative; padding: 0; }
.picker-page .picker-pick.is-selected { border: 2px solid #c084fc; box-shadow: 0 0 16px -6px rgba(168, 85, 247, 0.9); }
.picker-page .picker-pick.is-selected::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 0.25rem; right: 0.25rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 9999px; font-size: 0.625rem; color: #fff; background: linear-gradient(135deg, #9333ea, #db2777); }

/* Ouvir / Silenciar a análise. */
.ai-voice-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; color: #e9d5ff; background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(192, 132, 252, 0.35); }
.ai-voice-btn.is-playing { color: #fff; background: linear-gradient(135deg, rgba(147, 51, 234, 0.85), rgba(219, 39, 119, 0.85)); border-color: transparent; }

/* Configurações em seções sanfonadas: o título com ícone e resumo; tocar abre (e fecha a que estava aberta). */
/* flex-shrink 0: a seção aberta mostra tudo e a tela rola (antes, a coluna espremia a seção e cortava). */
.settings-group { flex-shrink: 0; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; transition: border-color 0.2s ease, background 0.2s ease; }
.settings-group[open] { background: rgba(255, 255, 255, 0.055); border-color: rgba(192, 132, 252, 0.28); }
.settings-group.hidden { display: none; }
.settings-group-head { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.settings-group-head::-webkit-details-marker { display: none; }
.settings-group-head::marker { content: ''; }
.settings-group-icon { width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center; border-radius: 0.75rem; font-size: 0.9375rem; color: #d8b4fe; background: rgba(168, 85, 247, 0.14); }
.settings-group-text { flex: 1; min-width: 0; display: grid; gap: 0.125rem; }
.settings-group-title { font-size: 0.9375rem; font-weight: 600; color: #f4f4f5; }
.settings-group-hint { font-size: 0.75rem; color: #a1a1aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-group-chevron { flex: none; font-size: 0.75rem; color: #71717a; transition: transform 0.25s ease; }
.settings-group[open] .settings-group-chevron { transform: rotate(180deg); color: #d8b4fe; }
.settings-group-body { padding: 0.25rem 1rem 1rem; animation: settings-group-in 0.25s ease; }
.settings-subtitle { margin: 1rem 0 0.625rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #a1a1aa; }
.settings-group-body > .settings-subtitle:first-child { margin-top: 0.25rem; }
.settings-group-body > .settings-link-row + .settings-link-row { margin-top: 0.5rem; }
@keyframes settings-group-in { from { opacity: 0; transform: translateY(-0.25rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .settings-group-body { animation: none; } }

/* Números das peças no “Montar meu look”, no modo de voz (como no armário). */
.look-builder-option[data-order]::after { content: attr(data-order); position: absolute; right: 0.3rem; top: 0.3rem; width: 1.5rem; height: 1.5rem; display: none; align-items: center; justify-content: center; border-radius: 9999px; background: linear-gradient(135deg, #a855f7, #ec4899); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); color: #fff; font-size: 0.75rem; font-weight: 700; }
body.is-voice .look-builder-option[data-order]::after { display: flex; }

/* Apresentação: silenciar a Iara (ao lado do “Pular”). */
.onboarding-top-actions { display: flex; align-items: center; gap: 0.25rem; }
/* Discreto: só o ícone, no tom do “Pular”; a área de toque continua confortável. */
.onboarding-mute { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 9999px; font-size: 0.75rem; color: #a1a1aa; background: transparent; transition: color 0.2s ease, background 0.2s ease; }
.onboarding-mute:active { background: rgba(255, 255, 255, 0.08); }
.onboarding-mute.is-muted { color: #71717a; }

/* No computador, o contorno do modo conversa acompanha o “celular” do centro (dentro da borda dele). */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .voice-assistant-frame { left: calc(50% - 14rem + 8px); right: auto; width: calc(28rem - 16px); top: calc(max(1rem, 50% - 425px) + 8px); bottom: calc(max(1rem, 50% - 425px) + 8px); border-radius: 2rem; }
}

/* Armário: selecionar várias peças. */
.wardrobe-select-button { width: 2.375rem; height: 2.375rem; display: grid; place-items: center; border-radius: 9999px; font-size: 0.9375rem; color: #d4d4d8; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.wardrobe-select-button:active { transform: scale(0.95); }
#wardrobe-grid.is-selecting .wardrobe-card { cursor: pointer; }
#wardrobe-grid.is-selecting .wardrobe-card .group-hover\:opacity-100 { opacity: 0 !important; pointer-events: none; }
/* Círculo de seleção no canto de baixo (o de cima é dos números do modo de voz); marcado, ganha o ✓. */
#wardrobe-grid.is-selecting .wardrobe-card::before { content: ""; position: absolute; bottom: 0.5rem; right: 0.5rem; z-index: 3; width: 1.625rem; height: 1.625rem; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.35) center / 0.75rem no-repeat; }
#wardrobe-grid.is-selecting .wardrobe-card.is-picked { border-color: #c084fc; box-shadow: 0 0 0 2px #c084fc, 0 0 18px -6px rgba(168, 85, 247, 0.9); }
#wardrobe-grid.is-selecting .wardrobe-card.is-picked::before { border-color: transparent; background-color: #c026d3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.select-bar { position: absolute; left: 0.875rem; right: 0.875rem; bottom: max(0.625rem, calc(env(safe-area-inset-bottom, 0px) - 0.875rem)); z-index: 25; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border-radius: 9999px; background: rgba(24, 22, 30, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8); backdrop-filter: blur(12px); }
.select-bar.hidden { display: none; }
.select-count { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-link { padding: 0.5rem 0.625rem; font-size: 0.8125rem; font-weight: 600; color: #d8b4fe; }
.select-delete { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.625rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; color: #fff; background: #ef4444; }
.select-delete:disabled { opacity: 0.4; }
.select-close { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 9999px; color: #d4d4d8; background: rgba(255, 255, 255, 0.08); }

/* Looks para vários dias: um cartão por dia (e a mala, na viagem). */
.plan-iara { margin: 0 1rem 0.25rem; padding: 0.625rem 0.875rem; border-radius: 1.25rem; font-size: 0.8125rem; line-height: 1.4; color: #e4e4e7; background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(219, 39, 119, 0.08)); border: 1px solid rgba(216, 180, 254, 0.22); }
.plan-iara:empty { display: none; }
.plan-iara b { color: #e879f9; font-weight: 600; }
.plan-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 0.75rem; padding: 0.25rem 0 0.75rem; }
.plan-card { padding: 0.75rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.plan-card h3 { margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; color: #f4f4f5; }
.plan-card p { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.45; color: #a1a1aa; }
.plan-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; color: #f4f4f5; }
.plan-card-head span { font-size: 0.75rem; color: #a1a1aa; }
.plan-card-head i { color: #c4b5fd; margin-right: 0.25rem; }
.plan-pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; margin-top: 0.5rem; }
.plan-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0.75rem; background: #e8e5ec; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plan-thumb span { position: absolute; left: 0.25rem; bottom: 0.25rem; padding: 0.0625rem 0.375rem; border-radius: 9999px; font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #f4f4f5; background: rgba(0, 0, 0, 0.55); }
.plan-card-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.625rem; }
.plan-card-actions .outfits-secondary { flex: 1; margin: 0; }
.plan-packing-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.25rem; margin-top: 0.5rem; }
.plan-packing { border-color: rgba(216, 180, 254, 0.3); background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(219, 39, 119, 0.06)); }

/* Ações do look: editar (ou ajustar as peças de um sugerido) e compartilhar. */
.outfit-actions { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; }
.outfit-action {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.5rem 0.75rem;
    border-radius: 9999px; font-size: 0.75rem; font-weight: 500; color: #e4e4e7;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.2s ease;
}
.outfit-action:active { transform: scale(0.97); }
.outfit-action i { color: #d8b4fe; }
/* Montar/editar look: tocar numa peça da prévia tira ela do look. */
.look-builder-preview .outfit-piece { cursor: pointer; }
.look-builder-remove {
    position: absolute; top: 0.375rem; right: 0.375rem; width: 1.375rem; height: 1.375rem; display: flex; align-items: center; justify-content: center;
    border-radius: 9999px; font-size: 0.6875rem; color: #fff; background: rgba(18, 18, 20, 0.7);
}
.look-builder-tip { margin-top: 0.5rem; font-size: 0.6875rem; color: #a1a1aa; text-align: center; }
/* Looks de vários dias: escolher as peças que vão na mala (ou que entram na semana). */
.plan-pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.plan-pick-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.5rem; padding-top: 0.75rem; }
.plan-section-title { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #d8b4fe; }
.plan-section-hint { margin-top: -0.25rem; font-size: 0.75rem; line-height: 1.4; color: #a1a1aa; }

/* Segurar e arrastar para mudar a ordem (looks salvos e peças do armário): segurar não abre o menu da foto. */
.wardrobe-card, .outfits-saved-list .outfit-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.wardrobe-card img, .outfits-saved-list .outfit-card img { -webkit-user-drag: none; }
.is-reordering { position: relative; z-index: 60; pointer-events: none; transition: none !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(192, 132, 252, 0.7); opacity: 0.96; }
.is-reordering-list > :not(.is-reordering) { transition: transform 0.15s ease; }
/* A tremidinha ao levantar (como os ícones do iPhone): usa rotate, que não briga com o transform que segue o dedo. */
.is-wiggling { animation: reorder-wiggle 0.4s ease-in-out; }
@keyframes reorder-wiggle {
    0% { rotate: 0deg; }
    20% { rotate: -2.5deg; }
    40% { rotate: 2.5deg; }
    60% { rotate: -1.5deg; }
    80% { rotate: 1deg; }
    100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) { .is-wiggling { animation: none; } }

/* Nada de selecionar texto ou imagem tocando na tela (atrapalhava segurar e arrastar e parecia site, não app).
   Onde a pessoa escreve (campos de texto), a seleção continua funcionando. */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; }
input, textarea, select, [contenteditable="true"], [contenteditable=""] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* “Montar meu look”: o clima que a Iara vai considerar na opinião. */
.look-builder-context { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.25rem 0.25rem 0; font-size: 0.75rem; line-height: 1.35; color: #d8b4fe; }
.look-builder-context i { margin-top: 0.15rem; }
.look-builder-context.is-unknown { color: #a1a1aa; }

/* Espelho ao vivo: câmera, vídeo da IA ao vivo e o vídeo gravado, no mesmo quadro. */
.live-mirror { position: fixed; inset: 0; z-index: 103; display: flex; align-items: center; justify-content: center; padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s ease; }
.live-mirror.is-open { opacity: 1; }
.live-card { width: 100%; max-width: 26rem; max-height: 100%; display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; border-radius: 1.75rem; background: #18181b; border: 1px solid rgba(255, 255, 255, 0.08); color: #f4f4f5; }
.live-frame { position: relative; flex: 1; min-height: 0; aspect-ratio: 3 / 4; border-radius: 1.25rem; overflow: hidden; background: #0b0b0f; }
.live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0b0f; }
.live-video.is-mirrored { transform: scaleX(-1); }
.live-mirror[data-phase="done"] .live-video { object-fit: contain; }
.live-timer { position: absolute; top: 0.75rem; right: 0.75rem; min-width: 2.75rem; height: 2.75rem; padding: 0 0.6rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: rgba(219, 39, 119, 0.85); box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.25); }
.live-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%; padding: 0.6rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; text-align: center; color: #fff; background: rgba(0, 0, 0, 0.6); }
.live-mirror[data-phase="connecting"] .live-status::before { content: ''; display: inline-block; width: 0.85rem; height: 0.85rem; margin-right: 0.5rem; vertical-align: -0.1rem; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: live-spin 0.8s linear infinite; }
@keyframes live-spin { to { transform: rotate(360deg); } }
.live-pieces { position: absolute; left: 0.75rem; bottom: 0.75rem; display: flex; gap: 0.35rem; }
.live-pieces img { width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: 0.6rem; background: #fff; border: 2px solid rgba(255, 255, 255, 0.85); }
/* As fotos das peças só aparecem antes de começar: com a IA ligada, a tela fica livre para ver o resultado. */
.live-mirror:not([data-phase="preview"]) .live-pieces { display: none; }
.live-flip { position: absolute; right: 0.75rem; bottom: 0.75rem; width: 2.75rem; height: 2.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.2); }
.live-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.live-actions .hidden { display: none; }

/* Quatro botões no cartão do look (Editar, Ao vivo, Compartilhar, Ordem): mais justos para caber no celular. */
.outfit-action { min-width: 0; }
.outfit-action span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outfit-actions:has(> :nth-child(4)) { gap: 0.375rem; }
.outfit-actions:has(> :nth-child(4)) .outfit-action { padding-inline: 0.45rem; gap: 0.25rem; font-size: 0.6875rem; }

/* Fumaça do espelho ao vivo: por cima do vídeo, embaixo dos avisos e botões. */
.live-smoke { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.live-timer, .live-status, .live-flip, .live-pieces { z-index: 3; }
/* Enquanto liga, a câmera fica embaçada, como um espelho mágico se preparando. */
.live-mirror #live-camera { transition: filter 0.6s ease; }
.live-mirror[data-phase="connecting"] #live-camera { filter: blur(4px) saturate(1.35) brightness(0.75); }
/* O resultado aparece de dentro da fumaça. */
.live-mirror[data-phase="live"] #live-output { animation: live-reveal 1s ease 0.2s both; }
@keyframes live-reveal { from { opacity: 0; filter: blur(10px) brightness(1.4); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) {
    .live-mirror[data-phase="live"] #live-output { animation: none; }
}

/* Espelho ao vivo em tela cheia enquanto liga e gera: só o vídeo, com o fechar, a contagem e o “Parar” por cima. */
.live-card, .live-frame { transition: max-width 0.35s ease, border-radius 0.35s ease, padding 0.35s ease; }
.live-mirror.is-fullscreen { padding: 0; background: #000; backdrop-filter: none; }
.live-mirror.is-fullscreen .live-card { position: relative; max-width: none; width: 100%; height: 100%; padding: 0; gap: 0; border: 0; border-radius: 0; background: #000; }
.live-mirror.is-fullscreen .live-frame { flex: 1; aspect-ratio: auto; border-radius: 0; }
.live-mirror.is-fullscreen .tryon-head { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 0.75rem); left: 0.75rem; }
.live-mirror.is-fullscreen #live-title { display: none; }
.live-mirror.is-fullscreen #live-close { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); }
.live-mirror.is-fullscreen .live-timer { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }
.live-mirror.is-fullscreen .tryon-note { display: none; }
.live-mirror.is-fullscreen .live-actions { position: absolute; z-index: 4; left: 1rem; right: 1rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.live-mirror.is-fullscreen #live-stop { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px); }
.live-mirror.is-fullscreen .live-flip { bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem); }
/* Tocar no vídeo: imagem inteira (sem cortar as laterais) ou preenchendo a tela. */


/* Escolher a cena que fica guardada: miniaturas do vídeo, barra para o quadro exato e os botões. */
.live-mirror.is-picking .live-actions { display: none; }
.live-scene-picker { display: flex; flex-direction: column; gap: 0.6rem; }
.live-scene-picker.hidden { display: none; }
.live-scene-strip { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.15rem 0.1rem 0.35rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.live-scene-strip::-webkit-scrollbar { display: none; }
.live-scene-thumb { position: relative; flex: 0 0 auto; height: 5.6rem; aspect-ratio: 9 / 16; border-radius: 0.6rem; overflow: hidden; border: 2px solid transparent; background: #0b0b0f; scroll-snap-align: center; transition: border-color 0.15s ease, transform 0.15s ease; }
.live-scene-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-scene-thumb span { position: absolute; left: 0.25rem; bottom: 0.2rem; font-size: 0.625rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.live-scene-thumb.is-current { border-color: #db2777; transform: scale(1.05); }
.live-scene-loading { font-size: 0.8125rem; color: #a1a1aa; padding: 0.75rem 0; }
.live-scene-range { width: 100%; accent-color: #db2777; }
.live-scene-buttons { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.5rem; }
.live-scene-thumb.is-wide { height: 3.4rem; }

/* Fim da sessão: “Salvar vídeo” em cima; “Guardar cena” e “Gravar de novo” lado a lado, sem quebrar o texto. */
.live-actions-row { display: flex; gap: 0.5rem; }
.live-actions-row > button { flex: 1; min-width: 0; white-space: nowrap; padding-inline: 0.75rem; }
.live-actions-row > button.hidden { display: none; }
.live-actions button { white-space: nowrap; }
@media (max-width: 360px) {
    .live-actions-row > button { font-size: 0.8125rem; gap: 0.35rem; }
}
/* Botão “Ao vivo” do look com a cena guardada: a miniatura no lugar do ícone. */
.outfit-action .outfit-action-thumb { width: 1.15rem; height: 1.15rem; border-radius: 9999px; object-fit: cover; flex: 0 0 auto; }
.detail-pill .outfit-action-thumb { width: 1rem; height: 1rem; border-radius: 9999px; object-fit: cover; }

/* Tela cheia em todas as fases do espelho ao vivo. Antes de começar e gerando: os controles ficam por cima do
   vídeo. No fim (vídeo gravado e escolha da cena): os botões numa faixa embaixo, sem cobrir os controles do vídeo. */
.live-mirror.is-fullscreen .live-card { display: flex; flex-direction: column; }
.live-mirror.is-fullscreen .live-frame { min-height: 0; }
.live-mirror.is-fullscreen .live-video { object-fit: cover; }
.live-mirror.is-fullscreen[data-phase="done"] .live-video { object-fit: contain; }
/* Antes de começar: dica e “Começar” por cima da câmera, com um degradê para ler bem. */
.live-mirror.is-fullscreen[data-phase="preview"] .live-frame::after,
.live-mirror.is-fullscreen[data-phase="live"] .live-frame::after { content: ''; position: absolute; inset: auto 0 0 0; height: 11rem; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0)); }
.live-mirror.is-fullscreen #live-hint { display: block; position: absolute; z-index: 4; left: 1.25rem; right: 1.25rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem); text-align: center; font-size: 0.8125rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.live-mirror.is-fullscreen #live-hint.hidden { display: none; }
.live-mirror.is-fullscreen #live-start { box-shadow: 0 10px 30px -8px rgba(219, 39, 119, 0.9); }
/* As fotos das peças e o virar câmera ficam no alto (embaixo ficam a dica e o botão). */
.live-mirror.is-fullscreen .live-pieces { top: calc(env(safe-area-inset-top, 0px) + 4.25rem); bottom: auto; left: 0.75rem; }
.live-mirror.is-fullscreen .live-flip { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); right: 0.75rem; bottom: auto; }
.live-mirror.is-fullscreen[data-phase="live"] .live-flip { top: calc(env(safe-area-inset-top, 0px) + 4.25rem); }
/* No fim: botões e escolha da cena numa faixa embaixo (não por cima do vídeo). */
.live-mirror.is-fullscreen[data-phase="done"] .live-actions,
.live-mirror.is-fullscreen .live-scene-picker { position: static; padding: 0.75rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.75rem); background: #0b0b0f; }
.live-mirror.is-fullscreen .live-scene-picker .tryon-note { display: block; }
.live-mirror.is-fullscreen.is-picking .live-actions { display: none; }

/* Padrão em tela cheia: preencher, como a câmera do celular (com a câmera em pé, corta só um pouco das laterais);
   tocar alterna para a imagem inteira. No fim (vídeo gravado), a imagem inteira. */
.live-mirror.is-fullscreen .live-video { object-fit: cover; }
.live-mirror.is-fullscreen[data-phase="done"] .live-video { object-fit: contain; }
.live-mirror.is-fullscreen.is-whole #live-camera,
.live-mirror.is-fullscreen.is-whole #live-output { object-fit: contain; }
