/* Fotos Memórias V307. CSS consolidado sem alterar a cascata. */
/* Source: css/fotos-v165-polimento.css?v=165 */
/* Fotos Memórias V165 | estilo final. Carregado por último para manter padrão. */
:root{--fm165-ink:#5d1836;--fm165-pink:#ed4c81;--fm165-edge:#f0dae4}
/* Todas as três capas começam exatamente no topo e ocupam o card por inteiro. */
.fm-home68-options{display:grid!important;gap:12px!important}
.fm-home68-choice-grid{display:grid!important;gap:12px!important;margin:0!important;padding:0!important}
.fm-home68-choice-grid>.fm-home68-choice,.fm-home68-options>.fm-home68-choice-music{min-height:196px!important;grid-template-columns:40% minmax(0,1fr)!important;margin:0!important;align-self:stretch!important;overflow:hidden!important}
.fm-home68 .fm-home68-choice-art,.fm-home68 .fm-home68-choice-art.fm-home68-choice-tele-art,.fm-home68 .fm-home68-choice-art.fm121-original-cover{
 position:relative!important;display:block!important;box-sizing:border-box!important;align-self:stretch!important;height:100%!important;min-height:100%!important;min-width:0!important;max-height:none!important;margin:0!important;padding:0!important;line-height:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;
}
.fm-home68 .fm-home68-choice-art>img,.fm-home68 .fm-home68-choice-art.fm121-original-cover>img{
 position:absolute!important;inset:0!important;display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;padding:0!important;transform:none!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important;border:0!important;border-radius:0!important;
}
.fm-home68 .fm-home68-choice-copy{min-width:0!important;align-self:stretch!important;justify-content:center!important}
/* O Site do Amor usa os mesmos estilos, incluindo o botão secundário, do card de voz. */
.fm-home68 .fm-home68-choice .fm147-home-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;width:100%!important}
.fm-home68 .fm-home68-choice .fm147-home-actions>button{min-width:0!important;min-height:41px!important;white-space:normal!important;word-break:normal!important;margin:0!important;padding:9px 7px!important;border:1px solid #e5b3ca!important;border-radius:13px!important;font-weight:800!important;font-size:.74rem!important;line-height:1.15!important;box-shadow:none!important;opacity:1!important;transition:transform .18s,background .18s!important}
.fm-home68 .fm-home68-choice .fm147-home-actions>button:first-child{background:linear-gradient(145deg,#fce0eb,#fff0f5)!important;color:#871c4b!important;border-color:#ecc0d2!important}
.fm-home68 .fm-home68-choice .fm147-home-actions>button:last-child{background:#fffafc!important;color:#871c4b!important;border-color:#dcaec3!important}
.fm-home68 .fm-home68-choice .fm147-home-actions>button:active{transform:scale(.97)!important}
/* Administração sem cartão introdutório e com espaços consistentes. */
.fm147-admin-shell{padding-top:12px!important}
.fm147-admin-shell .admin-stats{margin-bottom:14px!important}
.fm147-admin-shell .fm147-admin-modules{gap:11px!important;margin-top:3px!important}
.fm147-admin-shell .fm147-mini-module{min-height:112px!important;padding:13px 12px 21px!important;border-radius:18px!important;box-shadow:0 5px 14px rgba(106,40,69,.06)!important}
.fm147-mini-module:focus-visible,.fm94-create:focus-visible{outline-offset:3px}
/* Funções administrativas abrem como página completa, sem bordas flutuantes arredondadas. */
#admin-detail-v51{padding:0!important;backdrop-filter:none!important}
#admin-detail-v51 .admin-detail-screen-v51{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
#admin-detail-v51 .admin-detail-body-v51{padding-bottom:calc(25px + env(safe-area-inset-bottom))!important}
#admin-detail-v51 .admin-card{max-width:900px;margin-left:auto;margin-right:auto}
.fm165-limit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:12px;margin-top:12px}
.fm165-limit-card{display:grid;align-content:start;gap:10px;padding:17px;border-radius:20px;background:#fff!important;border:1px solid var(--fm165-edge)}
.fm165-limit-card>span{color:#a52a5f;letter-spacing:.09em;font-size:.72rem;font-weight:850}
.fm165-limit-card h3{font:750 1.16rem Manrope,system-ui,sans-serif;color:var(--fm165-ink);margin:0}
.fm165-limit-card p{color:#886a7a;line-height:1.45;font-size:.79rem;margin:0}
.fm165-limit-card label{display:grid;gap:7px;font-weight:750;font-size:.79rem;color:var(--fm165-ink)}
.fm165-limit-card input{padding:11px 12px;border:1px solid #dfbac9;border-radius:13px;font:inherit;background:white;max-width:140px}
.fm165-limit-card button{justify-self:start;min-height:43px}
.fm165-limit-card small{font-size:.76rem;color:#806471;line-height:1.5}
/* Site do Amor com telas reais: apenas um painel por etapa. Campos nunca são recriados durante Avançar. */
.site-amor-builder:has(.fm165-wizard-nav) .builder-grid{display:contents!important}
.site-amor-builder .fm165-wizard-panel{width:min(100%,800px)!important;margin:0 auto 12px!important;max-width:100%!important;min-width:0!important;align-self:stretch!important}
.site-amor-builder .fm165-wizard-panel.fm165-hidden,.site-amor-builder .fm165-wizard-panel[hidden]{display:none!important}
.site-amor-builder .fm165-split-panel{display:grid;gap:12px}
.site-amor-builder .fm165-wizard-panel .sticky-preview{position:static!important;margin-top:17px!important;max-width:100%!important;box-shadow:none!important}
.site-amor-builder .fm165-wizard-nav{position:relative;z-index:2;width:min(100%,800px);margin:12px auto 8px;padding:14px;border:1px solid #edcfdb;border-radius:20px;background:#fff8fb;box-shadow:0 7px 22px #6b234019;scroll-margin-top:calc(60px + env(safe-area-inset-top))}
.fm165-wizard-meta{display:grid;gap:5px}.fm165-wizard-meta>span:first-child{font:900 .7rem Manrope,system-ui,sans-serif;color:#b12c63;letter-spacing:.1em}
.fm165-wizard-meta strong{font:700 clamp(1.18rem,4vw,1.48rem) 'Fraunces',Georgia,serif;color:#65203d}
.fm165-wizard-meta>span:last-child{font:650 .7rem Manrope,system-ui,sans-serif;color:#8c697a}
.fm165-wizard-progress{height:6px;overflow:hidden;background:#f3dce6;border-radius:999px;margin:12px 0 13px}
.fm165-wizard-progress i{display:block;height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,#e93a76,#ab1856);transition:width .25s ease}
.fm165-wizard-actions{display:flex;gap:9px;justify-content:flex-end}
.fm165-wizard-actions button{border:1px solid #ddadbf;background:white;color:#83274b;border-radius:13px;padding:11px 15px;min-width:110px;min-height:44px;font:800 .82rem Manrope,system-ui,sans-serif;cursor:pointer}
.fm165-wizard-actions button:last-child{background:#9d2356;color:white;border-color:#9d2356}
.fm165-wizard-actions button:disabled{opacity:.4;cursor:default}
.fm165-wizard-actions button[hidden]{display:none}
/* Minhas Criações: cartões menores, mais hierarquia e ar. */
#fm94-board{gap:13px!important;max-width:900px!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
#fm94-board .fm94-section{padding:clamp(12px,3vw,18px)!important;border-radius:23px!important;box-shadow:0 8px 21px #68264012!important}
#fm94-board .fm94-section-heading{margin-bottom:13px!important;gap:10px!important}
#fm94-board .fm94-section-icon{width:45px!important;height:45px!important;flex-basis:45px!important;border-radius:14px!important;font-size:1.4rem!important}
#fm94-board .fm94-heading-copy h2{font-size:clamp(1.13rem,4vw,1.45rem)!important}
#fm94-board .fm94-heading-copy p{font-size:.75rem!important}
#fm94-board .fm94-create{min-height:42px!important;padding:8px 13px!important;font-size:.76rem!important}
#fm94-board .fm94-collection{gap:9px!important}
#fm94-board .fm94-project{padding:12px!important;gap:7px!important;border-radius:19px!important;box-shadow:0 5px 16px #6019340d!important}
#fm94-board .fm94-project-overview{grid-template-columns:minmax(64px,93px) minmax(0,1fr)!important;gap:12px!important}
#fm94-board .fm94-cover{border-radius:15px!important}
#fm94-board .fm94-project h3{font-size:clamp(.97rem,3.5vw,1.15rem)!important}
#fm94-board .fm94-meta{font-size:.72rem!important}
/* Operações reais são acompanhadas pela tela modal e impedem toque duplo. */
#loading-overlay.ativo{display:flex!important;pointer-events:auto!important;touch-action:none;z-index:200000!important}
@media(max-width:420px){
 .fm-home68-choice-grid>.fm-home68-choice,.fm-home68-options>.fm-home68-choice-music{min-height:187px!important;grid-template-columns:40% minmax(0,1fr)!important}
 .fm-home68-choice-copy{padding:12px 11px!important}
 .fm-home68 .fm-home68-choice .fm147-home-actions>button{font-size:.68rem!important;padding:8px 5px!important}
 .fm165-wizard-actions button{flex:1;min-width:0}
 #fm94-board .fm94-project-overview{grid-template-columns:70px minmax(0,1fr)!important}
 .fm147-admin-shell .fm147-admin-modules{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .fm147-admin-shell .fm147-mini-module{min-height:108px!important}
}
@media(prefers-reduced-motion:reduce){.fm165-wizard-progress i,.fm-home68 .fm-home68-choice .fm147-home-actions button{transition:none!important}}

/* Source: css/fotos-v166-form-only.css?v=166 */
/* Fotos Memórias V166: criador Site do Amor somente com etapas e campos. */
.site-amor-builder.fm166-form-only { display:grid; gap:10px; align-content:start; width:100%; max-width:880px; margin:0 auto; padding:clamp(8px,2vw,15px) 0 calc(20px + env(safe-area-inset-bottom)); }
.site-amor-builder.fm166-form-only .fm165-wizard-nav { margin:0 auto 4px; max-width:100%; }
.site-amor-builder.fm166-form-only .fm165-wizard-panel { margin:0 auto 8px!important; width:min(100%,800px)!important; }
.site-amor-builder.fm166-form-only .fm165-wizard-panel[hidden],.site-amor-builder.fm166-form-only .fm165-wizard-panel.fm165-hidden { display:none!important; }
.site-amor-builder.fm166-form-only .fm100-birthday-builder.fm165-wizard-panel { display:block; padding:clamp(15px,4vw,24px); }
.site-amor-builder.fm166-form-only .fm100-birthday-builder.fm165-wizard-panel[hidden] { display:none!important; }
.site-amor-builder.fm166-form-only .fm100-birthday-builder .fm100-birthday-fields { width:100%; max-width:100%; }
.site-amor-builder.fm166-form-only .fm100-birthday-builder h3 { margin:0 0 12px; color:#702040; font-family:'Fraunces',Georgia,serif; }
@media(max-width:480px) { .site-amor-builder.fm166-form-only { padding:6px 0 16px; gap:8px; } .site-amor-builder.fm166-form-only .fm165-wizard-nav { border-radius:17px; } }

/* Source: css/fotos-v167-agrupado.css?v=167 */
/* V167: toda a área de imagem dos três cards tem geometria equivalente. */
.fm-home68 .fm-home68-choice-grid>.fm-home68-choice,
.fm-home68 .fm-home68-options>.fm-home68-choice-music{position:relative!important;align-items:stretch!important;grid-template-columns:40% minmax(0,1fr)!important;padding:0!important;row-gap:0!important;column-gap:0!important;}
.fm-home68 .fm-home68-choice-grid>.fm-home68-choice>.fm-home68-choice-art,
.fm-home68 .fm-home68-options>.fm-home68-choice-music>.fm-home68-choice-art{position:relative!important;inset:auto!important;display:block!important;height:100%!important;min-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;align-self:stretch!important;}
.fm-home68 .fm-home68-choice-art>img{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:100%!important;object-fit:cover!important;object-position:center center!important;display:block!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;}
/* As artes originais têm bordas claras incorporadas nos primeiros pixels; a escala leve preenche até os cantos. */
.fm-home68 .fm-home68-choice-love>.fm-home68-choice-art>img,
.fm-home68 .fm-home68-choice-voice>.fm-home68-choice-art>img{transform:scale(1.045)!important;transform-origin:center center!important;}
.fm-home68 .fm-home68-choice-music>.fm-home68-choice-art>img{transform:none!important;}
.fm-home68 .fm-home68-choice-grid{gap:12px!important}
.fm-home68 .fm-home68-options{gap:12px!important}
#fm94-board .fm94-section-music{margin:0}
.fm167-music-online{display:grid;gap:10px}
.fm167-music-online article{padding:12px 14px;border:1px solid #eed5df;border-radius:15px;background:#fff}
.fm167-music-online strong{display:block;color:#641b40}
.fm167-music-online a{display:inline-block;margin-top:6px;color:#9a285e;font-weight:700;overflow-wrap:anywhere}

/* Source: css/fm169-polish.css?v=169 */
/* V169: ações de histórico pessoal e estado concluído. */
.fm169-recent{padding:14px;margin-top:14px;border:1px solid rgba(180,84,126,.22);border-radius:16px;background:rgba(255,248,252,.88)}
.fm169-recent>strong{display:block;margin-bottom:12px}.fm169-recent>p{font-size:.9rem;opacity:.75}
.fm169-recent-track{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid rgba(130,50,80,.10)}
.fm169-recent-track img{width:62px;height:52px;object-fit:cover;border-radius:9px;flex-shrink:0}
.fm169-recent-track>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.fm169-recent-track span{font-size:.82rem;overflow-wrap:anywhere}.fm169-recent-track a{font-size:.83rem;color:#8e2359}
.fm169-recent-track button{border:0;border-radius:11px;background:#9b2857;color:white;padding:11px 15px;font-weight:700}
.fm169-more{width:100%;margin-top:9px;border:1px solid #ba7996;background:white;color:#8e2857;padding:11px;border-radius:12px;font-weight:700}
.fm169-done-mask{position:fixed;inset:0;z-index:100070;display:grid;place-items:center;background:rgba(18,12,23,.72);padding:22px}
.fm169-done-card{width:min(100%,420px);background:#fff8fc;color:#311625;border-radius:24px;padding:30px 22px;text-align:center;box-shadow:0 25px 70px #12081770}
.fm169-done-check{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:100%;background:#dcf6e3;color:#217d47;font-size:30px;font-weight:bold}
.fm169-done-card h2{font-size:1.4rem;line-height:1.3;margin:16px 0 8px}.fm169-done-card p{font-size:.96rem;line-height:1.55}
.fm169-done-actions{display:grid;gap:10px;margin-top:20px}.fm169-done-actions button{min-height:50px}
