/* compact_v1 — shared responsive presentation; no business rules. */
:root{--paper:#fbf2e3;--ink:#392719;--gold:#b57620;--line:#dfc9a8;--touch:34px}
html[data-journey-version=compact_v1]{background:var(--paper)}
html[data-journey-version=compact_v1] body{margin:0;color:var(--ink);background:linear-gradient(145deg,#fcf7ed,#f4e4c9);font-family:Arial,sans-serif}
.page-shell,.shell{width:min(100%,520px);max-width:520px;margin:auto;padding:10px 16px max(10px,env(safe-area-inset-bottom));box-sizing:border-box;min-height:100svh;display:flex;flex-direction:column;gap:8px}
.page-shell .topbar,.shell .topbar{padding:0;height:36px;min-height:36px;margin:0;display:flex;align-items:center;justify-content:space-between;border:0;gap:12px}
.brand,.brand-words{font-size:16px!important;letter-spacing:3px}.brand-mark,.mark{display:none}.brand small{font-size:8px!important;letter-spacing:3px}.back-link{font-size:14px;padding:6px;border:0;background:none}.menu{position:relative}.menu button{font-size:20px}.recover{font-size:12px;max-width:130px}.page-shell footer,.shell footer{display:none}
.page-shell main{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;margin:0;padding:0}.page-shell{height:100svh;min-height:0}.progress{padding:0;margin:0;height:6px;gap:6px}.progress span{height:3px;background:#decdb4}.progress span.filled{background:#b77c25}
#screen{flex:1;min-height:0;display:flex;flex-direction:column;gap:9px}h1,#journey h1{font-size:clamp(21px,5.5vw,28px);line-height:1.12;font-family:Arial,sans-serif;font-weight:700;letter-spacing:-.4px;margin:4px 0}h1 em{color:#a16c28;font-style:normal}.lead{font-size:14px!important;line-height:1.3;margin:0!important;color:#685442}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.choice{min-height:var(--touch);padding:7px 8px;line-height:1.15;font-size:14px;border:1px solid var(--line);background:#fff9ee;color:var(--ink);border-radius:10px;text-align:left;box-shadow:none;position:relative}.choice.selected,.compact-plans .selected{background:#f5dfab;border-color:#ab701b;box-shadow:inset 0 0 0 1px #ab701b}.choice span{color:#855910}.category{grid-template-columns:repeat(3,minmax(0,1fr))}.parent{grid-template-columns:repeat(3,minmax(0,1fr))}.admire{grid-template-columns:repeat(3,minmax(0,1fr))}.category .choice,.admire .choice{font-size:14px;text-align:center;padding:8px 4px}
.promo-card{margin:0;display:flex;flex-direction:column;gap:6px}.promo-card img{display:block;object-fit:contain;width:100%;height:auto;max-height:clamp(110px,28svh,235px);border-radius:14px}.promo-card p{font-size:12px;line-height:1.25;margin:0}.promo-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.promo-actions button{font-size:12px;line-height:1.25;border:1px solid var(--gold);border-radius:9px;padding:8px;color:#754610;background:#fff3d6}.promo-actions button:first-child{background:#925618;color:white}.promo-choice{color:#805415}
.occasion-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:8px}.occasion-tile{background-image:linear-gradient(transparent,#25180abf),var(--occasion-image);background-position:center;background-size:cover;border-radius:12px;display:flex;align-items:stretch;min-height:52px}.occasion-tile .choice{width:100%;border:1px solid transparent;color:white;background:none;display:flex;align-items:end;text-shadow:0 1px 2px #000;font-size:14px}.occasion-tile .selected{border:2px solid #c28625;box-shadow:0 0 0 2px #f1c368;color:#fff}
.field{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:600;margin:0;min-height:0}.field input,.field textarea,.field select{font-size:16px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fffbf3;color:var(--ink);box-sizing:border-box;width:100%;margin:0;min-height:36px}.story-field{flex:1;min-height:60px}.field textarea{flex:1;resize:none;min-height:58px;max-height:160px;line-height:1.4}.page-shell .actions{display:flex;margin:0;padding:0;gap:8px;flex:none}.primary,#journey .primary{width:100%;min-height:44px;border:1px solid #bf8d40;border-radius:24px;background:linear-gradient(#c79235,#9d5a0b);color:white;font-size:14px;font-weight:700;padding:11px 12px;box-shadow:0 2px 6px #a4773726;text-align:center;box-sizing:border-box;text-decoration:none}.primary:disabled{opacity:.55}.error{font-size:13px;margin:0}.help{font-size:12px;line-height:1.3;margin:3px 0}
.music-groups{display:flex;flex-direction:column;gap:10px;flex:1;justify-content:center}.music-groups fieldset{border:0;padding:0;margin:0;min-width:0}.music-groups legend{font-size:14px;font-weight:700;margin-bottom:5px}.music-groups .style{grid-template-columns:repeat(5,minmax(0,1fr))}.music-groups .mood{grid-template-columns:repeat(4,minmax(0,1fr))}.music-groups .voice,.music-groups .interpretation{grid-template-columns:repeat(3,minmax(0,1fr))}.music-groups .choice{font-size:13px;min-height:34px;padding:8px 2px;text-align:center}
.review-summary{display:grid;gap:4px}.review-summary button{display:grid;grid-template-columns:1fr auto;gap:2px 6px;text-align:left;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff7e8;color:var(--ink)}.review-summary button>span{font-size:12px;color:#785d40}.review-summary strong{grid-row:2;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.review-summary small{grid-column:2;grid-row:1/3;align-self:center;color:#8a5c20}.contact-fields{display:grid;gap:7px;margin-top:auto}.contact-fields .field{font-size:12px}.contact-fields input{min-height:36px;height:36px}.page-shell .help{margin:0}
.shell{height:100svh;min-height:0}.shell main{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;padding:0}.shell .order{font-size:11px;margin:5px 0}.shell #journey{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}.shell .card{padding:12px;border-radius:14px;margin:0;background:#fff8eb;border:1px solid var(--line)}.shell h2{font-size:17px;margin:0 0 6px;line-height:1.2}.shell h3{font-size:13px;margin:0}.shell .actions{display:flex;gap:8px;margin:0;flex-wrap:wrap}.shell .secondary{font-size:13px;border:1px solid var(--line);padding:8px 10px;border-radius:14px;background:#fff7e9}.shell .feedback{font-size:13px;margin:0}.shell .feedback:empty{display:none}.shell .direction-art{flex:1;min-height:75px;max-height:150px;width:100%;background-size:cover;border-radius:14px;margin:0}.shell .direction-row{padding:9px 0;font-size:14px}.direction-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shell .tracks{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.shell .track{padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff7e7;min-width:0;margin:0}.shell .track.selected{border:2px solid #a9711e;background:#f5e1b5}.shell audio{width:100%;height:35px;margin:3px 0}.track-head{display:flex;flex-direction:column;gap:2px}.badge{font-size:10px}.track .secondary{font-size:12px;padding:6px;width:100%}.shell .adjust{padding:7px;font-size:13px}.shell .adjust small{display:none}.compact-offer{display:flex;flex-direction:column;gap:6px;margin-top:auto}.compact-offer p,.compact-offer small{font-size:12px;line-height:1.25;margin:0}.compact-plans{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compact-plans button{display:flex;flex-direction:column;gap:5px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff8e9;color:var(--ink)}.compact-plans button span{font-size:12px}.compact-plans b{font-size:17px}.compact-total{display:flex;justify-content:space-between;font-size:14px}.stream-option{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;margin:0;padding:7px 0}.stream-option small{display:block;font-size:11px}.stream-option input{width:20px;height:20px}.thanks{font-size:14px!important;line-height:1.4;margin:0}.small{font-size:11px;margin:0}.shell .waiting{flex:1;min-height:0;max-height:60svh}.shell .waiting svg{height:100%;max-height:50svh}.waiting-caption{font-size:14px;margin:0}
body[data-journey-screen=lyric] .shell{height:auto;min-height:100svh}.lyrics{white-space:pre-wrap;font-size:16px!important;line-height:1.6!important}.lyrics+.actions{margin-top:12px}.shell[data-unused]{display:none}
@media(min-height:760px){#screen{gap:12px}.page-shell,.shell{padding-top:16px;gap:10px}.music-groups .choice{min-height:40px}.occasion-tile{min-height:65px}.shell .track{padding:12px}.shell .direction-art{max-height:190px}}
@media(max-height:650px){:root{--touch:30px}#screen{gap:6px}.page-shell,.shell{padding-top:6px;gap:5px}.promo-card img{max-height:21svh}.promo-card p{font-size:11px}.choice{padding:5px 6px}.admire .choice{padding:5px 3px}.music-groups{gap:5px}.music-groups .choice{min-height:29px;padding:5px 1px}.music-groups legend{margin-bottom:3px}.review-summary button{padding:4px 7px}.contact-fields{gap:4px}.shell .card{padding:8px}.shell .track{padding:5px}.shell .compact-offer{gap:4px}.compact-plans button{padding:6px;gap:3px}}
.lab-note{font-size:10px;letter-spacing:.6px;color:#805e35;text-align:center;flex:none;line-height:14px}
.page-shell main,.shell main,.shell .topbar{width:100%}.progress:before{content:none}.progress span,.progress span.filled:first-child{height:3px;width:auto;flex:1;border:0;border-radius:2px}.choice{display:block}.choice:hover{transform:none}.stream-option input{appearance:auto;width:20px;height:20px;background:none}.stream-option input:before{content:none}.shell .adjust{margin:0}.shell .thanks{margin:0}
@media(max-height:650px){body[data-recipient=pai] .promo-card img,body[data-recipient=mae] .promo-card img,body[data-recipient=os_dois] .promo-card img,body[data-recipient=outra_pessoa] .promo-card img{max-height:13svh}}
body[data-journey-screen=delivery] .shell .card audio{height:35px}body[data-journey-screen=delivery] .shell .card p{margin:4px 0;font-size:13px}

/* Unified expression: same control size, only three musical groups. */
.music-groups .expression{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Approved-board composition, limited to collection screens 5 and 6. */
body[data-compact-step="5"] .compact-emotional-head,
body[data-compact-step="6"] .compact-emotional-head{flex:1;min-height:120px;border-radius:14px;overflow:hidden;display:flex;align-items:flex-end;background-size:cover;background-position:center;isolation:isolate;position:relative}
.compact-emotional-head:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 15%,#281909d9 100%);z-index:-1}
.compact-emotional-head>div{padding:16px;width:100%;box-sizing:border-box}
.compact-emotional-head h1{color:#fff8ed;margin:0 0 9px;max-width:390px;text-wrap:balance}
.compact-emotional-head .lead{color:#fff2dd;font-size:15px!important;line-height:1.4;text-wrap:pretty}
.message-head,.sound-head{background-image:var(--context-hero);background-position:var(--context-position,50% 40%)}
body[data-compact-step="6"] .music-groups{flex:0;justify-content:flex-start;gap:12px;padding:5px 0}
body[data-compact-step="5"] .story-field{flex:0}
@media(max-height:650px){body[data-compact-step="5"] .compact-emotional-head,body[data-compact-step="6"] .compact-emotional-head{min-height:90px}.compact-emotional-head>div{padding:12px}.compact-emotional-head h1{margin-bottom:6px}.compact-emotional-head .lead{font-size:14px!important;line-height:1.3}body[data-compact-step="6"] .music-groups{gap:7px;padding:0}}

/* V146 finishing: inline relationships and discreet personal messages only. */
.relationship,.familyRelationship{grid-template-columns:repeat(3,minmax(0,1fr))}
.shell .personal-message{font-size:16px;line-height:1.35;margin:4px 0;color:var(--ink)}
