:root{--cream:#f8f5ed;--sage:#a8bda7;--gold:#d8be91;--peach:#e8beb2;--deep:#354b44;--text:#293e38;--white:#fffefa;--line:#d9e1d6;--danger:#7a3030;--radius:22px;font:17px/1.65 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--cream)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #1e6865;outline-offset:3px}a{color:var(--deep)}.skip{position:absolute;top:-99px;inset-inline-start:12px}.skip:focus{top:12px;z-index:20;background:white}.shell{max-width:960px;margin:auto;padding:18px clamp(12px,4vw,28px) 60px}.head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:8px 0 18px}.brand{display:flex;align-items:center;gap:13px;font-weight:800}.brand img{width:53px;height:53px;object-fit:cover;border-radius:50%;background:#fff}.brand small{display:block;color:#6a7970;font-size:.75rem}.top-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-controls select,.panel input,.panel select,.panel textarea{border:1px solid #b4c8bc;border-radius:13px;padding:10px 12px;background:#fff;width:100%;color:var(--deep)}.top-controls select{width:auto;max-width:160px}.hero{background:radial-gradient(circle at 80% 12%,#f0dfd2 0,transparent 40%),linear-gradient(130deg,#fffdfa,#eef4ee);border:1px solid var(--line);border-radius:30px;padding:clamp(24px,5vw,48px);text-align:center;box-shadow:0 16px 45px #354b4410}.hero h1{font-size:clamp(2rem,6vw,3.3rem);line-height:1.25;margin:10px auto;color:var(--deep);max-width:710px}.hero p{max-width:660px;margin:12px auto 24px}.eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.08em;color:#647b68}.pill{display:inline-block;background:#e8eee6;padding:5px 12px;border-radius:25px;font-size:.76rem;font-weight:800}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:20px}.btn{background:var(--deep);border:2px solid var(--deep);border-radius:16px;padding:11px 18px;color:#fff;font-weight:800;min-height:48px}.btn.secondary{background:#fff;color:var(--deep)}.btn.ghost{background:transparent;border-color:transparent;color:var(--deep)}.btn.danger{background:#fff3f1;color:var(--danger);border-color:#b87575}.btn.small{font-size:.83rem;padding:7px 12px;min-height:38px}.panel{background:#fffefa;border:1px solid var(--line);border-radius:var(--radius);padding:clamp(17px,4vw,30px);margin:18px auto;box-shadow:0 9px 25px #354b4408}.panel h2{color:var(--deep);margin:0 0 12px;line-height:1.35}.panel h3{margin:12px 0 8px}.muted{color:#64716a}.note{border-inline-start:4px solid #9baeb0;background:#f2f6f4;padding:12px;border-radius:10px;margin:12px 0}.warn{border-inline-start:4px solid #b76f53;background:#fff6ef;padding:12px;border-radius:10px;margin:12px 0}.field{display:block;margin:15px 0}.field>span:first-child{display:block;font-weight:750;margin-bottom:5px}.field textarea{resize:vertical;min-height:100px;line-height:1.6}.field .hint{display:block;font-size:.8rem;color:#64716a}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:14px}.check{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#f5f8f3;border:1px solid #dce8dc;border-radius:13px}.check input{flex:0 0 auto;width:20px;height:20px;margin-top:3px;accent-color:#355e52}.check span{flex:1}.chiplane{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #b4c8bc;background:#fff;border-radius:22px;padding:8px 12px;cursor:pointer}.chip:has(input:checked){border-color:#446f61;background:#e2eee7}.chip input{accent-color:#496f5d}.stepbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress{height:7px;border-radius:10px;background:#e4ebe1;overflow:hidden;margin:12px 0 24px}.progress i{display:block;height:100%;background:#628678;transition:width .25s}.card{position:relative;background:#fffefc;border:1px solid #cad5ca;box-shadow:0 18px 32px #384a3c14;border-radius:18px;padding:28px;max-width:730px;margin:auto;overflow-wrap:anywhere}.card.theme-family{background:#fff4ef;border-color:#e8c7b9}.card.theme-luxury{background:#fffdfa;border:1px solid #cdbb90}.card-header{display:flex;align-items:center;gap:20px;margin-bottom:20px}.card-photo{width:125px;height:125px;object-fit:cover;border-radius:24px;background:#eaf2e8}.illustration{width:125px;height:125px;display:grid;place-items:center;border-radius:24px;background:#e8efe6;font-size:3.1rem}.card h2{font-size:2rem;margin:0;color:#2f5147}.card h3{margin:16px 0 7px;color:#385e50;font-size:1rem}.card p{white-space:pre-wrap;margin:4px 0}.card .section{border-top:1px solid #d7e2d6;padding-top:9px;margin-top:11px}.card .safety{background:#f5eee0;padding:12px;border-radius:13px;border:1px solid #e2cda1}.card .priority{border-inline-start:4px solid #b67a54;padding-inline-start:10px}.card-footer{font-size:.69rem;color:#62746b;text-align:center;margin-top:24px;border-top:1px solid #e3e8df;padding-top:12px}.card-footer img{width:22px;height:22px;vertical-align:middle;border-radius:50%}.meta{font-size:.8rem;color:#667b71}.status{font-size:.82rem;font-weight:700}.status.good{color:#356444}.status.bad{color:#943e3e}.status.pending{color:#8d6236}.slide-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px}.demo-area{margin-top:25px}.demo-inner{max-width:730px;margin:auto}.separator{height:1px;background:var(--line);margin:22px 0}.selector-list{display:grid;gap:11px}.selector{border:1px solid var(--line);background:white;border-radius:15px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:start}.selector .name{font-weight:800}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;margin:15px 0}.toolbar select{width:auto!important}.inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice-top{font-size:.8rem;color:#61796c;text-align:center;padding:6px;background:#eaf2e9}.paper{--paperw:210mm;--paperh:297mm}.print-root{display:none}.privacy-list{display:grid;gap:8px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(min-width:700px){.card-print.page{min-height:810px}}@media(max-width:580px){.card{padding:18px}.card-header{align-items:flex-start;gap:12px}.card-photo,.illustration{width:82px;height:82px;flex:0 0 82px}.illustration{font-size:2.1rem}.card h2{font-size:1.5rem}.card .section{margin-top:8px}.top-controls{width:100%;justify-content:space-between}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.progress i{transition:none}}
@page{size:A4 portrait;margin:11mm}@media print{html,body{background:white!important}.shell,.notice-top,.skip{display:none!important}.print-root{display:block!important}.card{max-width:100%;width:100%;border:0;box-shadow:none;border-radius:0;padding:0;min-height:272mm;display:flex;flex-direction:column;break-inside:avoid;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}.card:last-child{page-break-after:auto}.card .card-header{break-inside:avoid}.print-frugal .card{color:black;background:white!important}.print-frugal .section,.print-frugal .safety{background:white!important;border-color:#888!important}.print-root .card-footer{margin-top:auto}.print-root{font-size:10.4pt}.print-root .card h2{font-size:19pt}.print-root .card h3{font-size:11pt}}

/* MHS 2.0 — approved Cozy / Warm / Soft visual refinement.
   Design-only overrides. Keep brand tokens, copy, routes, and behavior unchanged.
   Typography follows the neutral ChatGPT conversation reading style,
   using device/system fonts without bundling proprietary font files. */
:root {
  --cozy-ink: #51645a;
  --cozy-body: #526258;
  --cozy-muted: #5b6b60;
  --cozy-border: #e5e5dc;
  --cozy-primary: #5b7665;
  --cozy-primary-hover: #506759;
  --cozy-paper: #fffdf9;
  --cozy-wash: #f6f3ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Hebrew", "Noto Sans Arabic", Arial, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cozy-body);
}
body { background: #f9f7f1; }
a { color: #526d60; }
button, input, textarea, select { font-family: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, a:focus-visible { outline-color: #476a60; }
.notice-top { background: #f0f2e9; color: #526d60; font-weight: 400; }
.shell { max-width: 1020px; }
.head { padding-block: 18px 22px; }
.brand { color: #465c51; font-weight: 650; gap: 14px; letter-spacing: -.018em; }
.brand img { box-shadow: 0 3px 14px #725d4212; }
.brand small { color: #667568; font-weight: 450; letter-spacing: 0; }
.top-controls select, .panel input, .panel select, .panel textarea {
  background: #fffefa;
  border: 1px solid #cdd8ce;
  border-radius: 16px;
  color: #405e51;
  box-shadow: 0 1px 3px #645a4610;
}
.top-controls select { padding-inline: 16px 20px; }
.hero {
  background: radial-gradient(circle at 91% 9%, #f7ebe2 0, transparent 36%),
              radial-gradient(circle at 7% 95%, #eef3e9 0, transparent 33%),
              linear-gradient(145deg, #fffefb 0%, #faf7f0 64%, #f5f5ed 100%);
  border: 1px solid var(--cozy-border);
  border-radius: 34px;
  padding: clamp(30px, 5.1vw, 58px) clamp(22px, 5vw, 52px);
  box-shadow: 0 12px 32px #605c4909;
}
.hero h1 {
  max-width: 730px;
  font-size: clamp(1.95rem, 4.7vw, 3rem);
  line-height: 1.34;
  font-weight: 420;
  letter-spacing: -.025em;
  color: #4f6459;
  margin-block: 18px 14px;
}
.hero p {
  color: #52645a;
  font-size: clamp(1rem, 1.65vw, 1.11rem);
  line-height: 1.85;
  font-weight: 400;
}
.hero .meta { color: #667568; font-size: .78rem; }
.eyebrow { color: #657d6b; font-weight: 600; letter-spacing: .14em; font-size: .75rem; }
.pill { background: #edf1e9; color: #516b5e; font-weight: 600; }
.actions { gap: 12px; margin-top: 24px; }
.btn {
  background: var(--cozy-primary);
  border-color: var(--cozy-primary);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 18px;
  box-shadow: 0 3px 8px #526a5612;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover:not(:disabled) { background: var(--cozy-primary-hover); border-color: var(--cozy-primary-hover); }
.btn.secondary { background: #fffefa; border-color: #b7cbbd; color: #4a6658; }
.btn.secondary:hover:not(:disabled) { background: #f1f5ed; border-color: #9eb6a6; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: #4f6b5e; }
.btn.ghost:hover:not(:disabled) { background: #eef2ea; }
.btn.danger { background: #fff5f0; color: #7a3636; border-color: #cda8a0; }
.btn.danger:hover:not(:disabled) { background: #ffede7; border-color: #bf9187; }
.panel { background: var(--cozy-paper); border-color: var(--cozy-border); border-radius: 26px; box-shadow: 0 8px 24px #605c490a; }
.panel h2 { color: #526b5e; font-weight: 520; letter-spacing: -.012em; }
.panel h3 { color: #526b5e; font-weight: 550; }
.muted, .field .hint { color: var(--cozy-muted); }
.field > span:first-child { color: #506357; font-weight: 600; }
.note { background: #f3f6f0; border-inline-start-color: #a2bbaa; }
.warn { background: #fff5ec; border-inline-start-color: #b27658; }
.check { background: #f8f8f1; border-color: #e3e9de; }
.chip { background: #fffefa; border-color: #c9d8ca; color: #52665c; }
.chip:has(input:checked) { background: #eaf1e7; border-color: #8eae98; }
.progress { background: #eaede5; }
.progress i { background: #779787; }
.selector { background: #fffefa; border-color: #e1e5dc; box-shadow: 0 2px 7px #5d63500b; }
.selector .name { color: #526758; font-weight: 650; }
.meta { color: #627467; }
.card { background: #fffefa; border-color: #dfe4d9; box-shadow: 0 10px 28px #5e655114; }
.card.theme-family { background: #fff7f2; border-color: #ebd7c9; }
.card.theme-luxury { background: #fffdf8; border-color: #ded5ba; }
.card h2 { color: #4b6457; font-weight: 550; }
.card h3 { color: #526b5e; font-weight: 600; }
.card .section { border-top-color: #e4e9df; }
.card .safety { background: #f8f2e8; border-color: #e5d7ba; }
.card .priority { border-inline-start-color: #b98d6c; }
.card-footer { color: #5c6d61; border-top-color: #e8ece3; }
.status.good { color: #446d52; }
.status.pending { color: #8b653b; }
@media (min-width: 700px) {
  .hero .actions { max-width: 760px; margin-inline: auto; }
}
@media (max-width: 580px) {
  .head { padding-block: 12px 18px; }
  .brand { font-size: .97rem; }
  .hero { border-radius: 26px; padding: 30px 21px 34px; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.15rem); line-height: 1.36; }
  .actions { gap: 10px; }
  .btn { padding-inline: 15px; }
  .panel { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
@media print {
  /* Preserve the established A4 pagination and readable ink in print. */
  .card, .card.theme-family, .card.theme-luxury { box-shadow: none; background: #fff !important; }
}
/* Emergency contact is rendered only when the parent authorized sharing it. */
.emergency-call{font-weight:650;padding:9px 12px;border:1px solid #d5c39f;border-radius:12px;background:#fff9ed}.emergency-call a{color:#315b50;text-decoration:underline;text-underline-offset:3px}

.shell-footer { text-align: center; padding-top: 24px; }

.progress[data-step="1"] i { width: 12.5%; }
.progress[data-step="2"] i { width: 25%; }
.progress[data-step="3"] i { width: 37.5%; }
.progress[data-step="4"] i { width: 50%; }
.progress[data-step="5"] i { width: 62.5%; }
.progress[data-step="6"] i { width: 75%; }
.progress[data-step="7"] i { width: 87.5%; }
.progress[data-step="8"] i { width: 100%; }

.print-qr-frame { text-align: center; flex-shrink: 0; }
.print-qr { vertical-align: middle; width: 23mm; height: 23mm; image-rendering: pixelated; }


/* MHS 2.0 APPROVED HOME DESIGN OPTION 2 — עולם של ילדים.
   Isolated to the home hero. No changes to saved cards, their A4 PDFs, or any editor.
   The original logo, all localization strings and every button action remain unchanged. */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 7% 16%, rgba(227,240,230,.78), transparent 42%),
    radial-gradient(ellipse at 93% 19%, rgba(250,228,206,.8), transparent 47%),
    linear-gradient(135deg,#fffefa 3%,#fbf8f1 56%,#f2f6ee 100%);
  border-color:#e6e4d9;
  padding:clamp(34px,4.8vw,49px) clamp(20px,4vw,40px) clamp(35px,4.7vw,49px);
  min-height:405px;
  box-shadow:0 15px 38px rgba(71,87,70,.09);
}
.hero::before,.hero::after{
  content:"";
  display:block;
  position:absolute;
  z-index:0;
  pointer-events:none;
  background-repeat:no-repeat;
  background-position:center bottom;
  background-size:contain;
}
.hero::before{
  background-image:url("/v2/welcome-books.svg");
  width:clamp(190px,29%,310px);
  height:330px;
  left:-12px;
  bottom:-24px;
}
.hero::after{
  background-image:url("/v2/welcome-kite.svg");
  width:clamp(205px,30%,320px);
  height:333px;
  right:-9px;
  bottom:-26px;
}
.hero>*{position:relative;z-index:1}
.hero .eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  color:#627e70;font-size:.79rem;font-weight:750;
  letter-spacing:.15em;
}
.hero .eyebrow::before,.hero .eyebrow::after{
  content:"";display:inline-block;height:1px;width:24px;
  background:linear-gradient(90deg,transparent,#d1b783);
}
.hero h1{
  color:#244c46;
  font-size:clamp(2rem,4.8vw,3.28rem);
  font-weight:800;
  line-height:1.24;
  letter-spacing:-.032em;
  max-width:665px;
  text-shadow:0 1px 0 rgba(255,255,255,.86);
  margin-block:13px 16px;
}
.hero p:not(.meta){
  color:#3e5b51;
  max-width:560px;
  font-size:clamp(1.01rem,1.7vw,1.12rem);
  line-height:1.7;
  margin-block:10px 18px;
}
.hero .actions{max-width:820px;margin-inline:auto;position:relative}
.hero .actions .btn{
  box-shadow:0 2px 9px rgba(71,87,70,.1);
}
.hero .meta{margin-bottom:0}
@media (min-width:920px){
  .hero::before{width:272px}
  .hero::after{width:277px}
  .hero h1{max-width:600px}
  .hero p:not(.meta){max-width:545px}
}
@media (max-width:750px){
  .hero::before{width:175px;height:194px;left:-29px;bottom:-28px;opacity:.47}
  .hero::after{width:168px;height:194px;right:-31px;bottom:-23px;opacity:.43}
  .hero h1{max-width:570px;font-size:clamp(1.8rem,5.5vw,2.55rem);line-height:1.3}
}
@media (max-width:580px){
  .hero{min-height:0;padding:33px 19px 35px;border-radius:25px}
  .hero::before{width:136px;height:143px;left:-35px;bottom:-18px;opacity:.3}
  .hero::after{width:146px;height:156px;right:-36px;top:-18px;bottom:auto;opacity:.28}
  .hero h1{font-size:clamp(1.8rem,7.1vw,2.3rem);font-weight:800;line-height:1.29}
  .hero p:not(.meta){line-height:1.72}
  .hero .actions{gap:10px}
  .hero .actions .btn{position:relative}
}
@media (prefers-contrast:more){
  .hero{background:#fffdf6}
  .hero::before,.hero::after{opacity:.16}
  .hero h1{color:#163b35}
}
@media print{
  .hero::before,.hero::after{display:none!important}
}

/* V2 information footer only. Does not alter printed cards or saved data. */
.v2-footer-links{display:flex;flex-wrap:wrap;gap:8px 19px;align-items:center;justify-content:center;max-width:100%;margin:0 auto 13px}
.v2-footer-links a{display:inline-block;padding:7px 3px;text-decoration:underline;text-underline-offset:4px;font-weight:650;overflow-wrap:anywhere}
.v2-footer-copy{margin:8px 0 0;line-height:1.6;font-weight:650}
.v2-footer-note{margin:6px auto 0;max-width:680px;font-size:.76rem;line-height:1.55}
@media(max-width:580px){.v2-footer-links{gap:3px 13px}.v2-footer-links a{padding:8px 2px;font-size:.83rem}}
@media print{.shell-footer{display:none!important}}


/* Preview QA: equal-size questionnaire choices on phones and tablets. */
.answer-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;align-items:stretch}
.answer-choices .chip{display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%;min-width:0;min-height:72px;gap:12px;padding:13px 15px;border-radius:16px;line-height:1.45}
.answer-choices .chip input{flex:0 0 20px;width:20px;height:20px;margin:0}
.answer-choices .chip span{flex:1;min-width:0;display:block;overflow-wrap:break-word;white-space:normal}
@media(max-width:580px){.answer-choices{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr}.answer-choices .chip{min-height:68px}}

/* Three recognizably distinct styles within the approved light palette. */
.card.theme-soft{background:#f3faf6;border:2px solid #a8c6b4;border-radius:22px;box-shadow:0 12px 26px #5979681a}
.card.theme-soft .card-header{border-bottom:1px solid #b7d4c0;padding-bottom:16px}
.card.theme-soft h2,.card.theme-soft h3{color:#315f50}
.card.theme-soft .section{border-top-color:#c8dbcf}
.card.theme-family{background:#fff1eb;border:2px solid #e1b5a7;border-radius:28px;box-shadow:0 12px 26px #ad7d701c}
.card.theme-family .card-header{background:#fbe3dd;border-radius:18px;padding:14px;margin-bottom:18px}
.card.theme-family h2,.card.theme-family h3{color:#925b4b}
.card.theme-family .section{border-top-color:#e9c8be}
.card.theme-luxury{background:#fffdf5;border:2px solid #c7ae76;border-radius:12px;box-shadow:0 12px 28px #a58b541b}
.card.theme-luxury .card-header{border-bottom:2px solid #d5c093;padding-bottom:18px}
.card.theme-luxury h2,.card.theme-luxury h3{color:#78623b}
.card.theme-luxury .section{border-top-color:#e2d4b4}

/* iPhone Safari print: no artificially tall card or extra safety-only sheet. */
@media print{
 .print-root .card.card-print.page{
  display:block!important;min-height:0!important;height:auto!important;
  overflow:visible!important;box-shadow:none!important;
  break-inside:avoid-page;page-break-inside:avoid;
  page-break-after:always;padding:0!important;border:0!important;
 }
 .print-root .card.card-print.page:last-child{page-break-after:auto}
 .print-root .card-footer{margin-top:18px!important;break-inside:avoid}
 .print-root .card.theme-soft{background:#f3faf6!important}
 .print-root .card.theme-family{background:#fff1eb!important}
 .print-root .card.theme-luxury{background:#fffdf5!important}
 .print-root.print-frugal .card{background:#fff!important;color:#000!important}
}


/* Preview QA approved three-step completion; no other screens affected. */
.finish-flow{margin-top:22px;padding:18px;border:1px solid #dce5dc;border-radius:22px;background:#fbfcf8}
.finish-flow>h3{margin:0 0 15px;color:#3a6253}
.finish-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.finish-step{min-width:0;padding:16px;border-radius:17px;border:1px solid #d8e0d7;background:#fffefa;display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere}
.finish-step strong{display:flex;align-items:center;gap:8px;font-weight:750;line-height:1.5}
.finish-step p{margin:4px 0 8px;font-size:.88rem;line-height:1.5}
.finish-step .finish-marker{flex:0 0 26px;display:grid;place-items:center;width:26px;height:26px;border:1px solid currentColor;border-radius:50%;font-size:.83rem}
.finish-step .actions{margin-top:auto;justify-content:flex-start}
.finish-step .actions .btn{flex:1 1 120px;min-width:0}
.finish-step.is-done{border-color:#a7c3af;background:#f0f7ef}
.finish-step.is-current{border-color:#c0ae82;background:#fff9ee}
.finish-step.is-locked{background:#f2f2ed;border-color:#dde1d8;color:#66736b}
.finish-step.is-locked .btn:disabled{cursor:not-allowed;opacity:.52}
.finish-step .field{margin:8px 0}
.finish-flow>.muted{font-size:.84rem;margin:15px 0 0}
@media(max-width:760px){.finish-grid{grid-template-columns:minmax(0,1fr)}.finish-step{min-height:0}.finish-step .actions{margin-top:8px}}
@media print{.finish-flow{display:none!important}}

/* Preview: founder story, free eligibility guidance, and draft backup label. */
.story-entry{margin:17px auto 0;display:flex;align-items:center;gap:13px;text-align:start;max-width:580px;padding:15px 17px;border:1px solid #cbdcca;background:#fffefa;border-radius:19px;text-decoration:none;color:var(--deep);box-shadow:0 5px 15px #354b440c}
.story-entry:hover{border-color:#88ac96;box-shadow:0 9px 23px #354b4417}.story-entry-icon{font-size:1.6rem;flex:0 0 auto}
.story-entry-text{display:flex;flex-direction:column;gap:3px;line-height:1.48}.story-entry-text strong{font-size:1.02rem}.story-entry-text>span{font-size:.86rem;color:#587368}
.eligibility-mission{padding:12px 13px;border:1px solid #cbdacb;border-radius:13px;background:#f2f7ef}
.eligibility-mission p{margin:0 0 8px;line-height:1.6}.eligibility-mission p:last-of-type{margin-bottom:8px}
.eligibility-mission a{display:inline-block;font-weight:800;text-underline-offset:3px}
.draft-clarifier{margin:10px 0 14px;padding:11px 14px;border-inline-start:4px solid #a8bda7;border-radius:11px;background:#f1f6ef;color:#405e51;font-size:.9rem}
@media(max-width:580px){.story-entry{padding:14px}.story-entry-text strong{font-size:.97rem}}


/* Approved warm family palette for the V2 Preview interface only. */
:root {
  --mhs-ui-forest: #24584a;
  --mhs-ui-sage: #dcefe1;
  --mhs-ui-peach: #f5ddd1;
  --mhs-ui-gold: #f8ead2;
  --mhs-ui-cream: #fffdf7;
  --mhs-ui-border: #ccdccd;
}
body {
  background:
    radial-gradient(ellipse at 8% 7%,#f5ddd1 0,transparent 39%),
    radial-gradient(ellipse at 97% 28%,#dcefe1 0,transparent 44%),
    linear-gradient(155deg,#fcf6ea 0%,#f1f8f1 53%,#fff2e9 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
.notice-top {
  background: linear-gradient(100deg,#e8f1e8,#fff3e7);
  border-bottom: 1px solid #d8e6d8;
  color: var(--mhs-ui-forest);
}
.head { border-bottom: 1px solid #d7e4d8; }
.brand { color: var(--mhs-ui-forest); }
.brand img { border: 3px solid #d8e9da; box-shadow: 0 5px 15px rgba(40,91,67,.12); }
.hero {
  background:
    radial-gradient(ellipse at 8% 8%,#f5ddd1 0,transparent 40%),
    radial-gradient(ellipse at 94% 25%,#dcefe1 0,transparent 46%),
    linear-gradient(135deg,#fffdf7 0%,#f8f1e4 51%,#eef7ef 100%);
  border-color: #cbdcca;
  box-shadow: 0 17px 43px rgba(46,78,63,.13);
}
.hero h1 { color: var(--mhs-ui-forest); }
.hero .eyebrow { color: #785542; }
.hero p:not(.meta) { color: #3c6053; }
.hero .meta { color: #526c5f; }
.hero .actions .btn:not(.secondary):not(.ghost):not(.danger) {
  background: #2d6352;
  border-color: #2d6352;
  box-shadow: 0 6px 15px rgba(45,99,82,.14);
}
.hero .actions .btn:not(.secondary):not(.ghost):not(.danger):hover:not(:disabled) {
  background: #245548; border-color: #245548;
}
.btn:not(.secondary):not(.ghost):not(.danger) {
  background: #2d6352; border-color: #2d6352;
}
.btn:not(.secondary):not(.ghost):not(.danger):hover:not(:disabled) {
  background: #245548; border-color: #245548;
}
.btn.secondary {
  background: linear-gradient(120deg,#fff8f0,#fffefa);
  border-color: #cdbda1;
  color: #355c4c;
}
.btn.secondary:hover:not(:disabled) { background: #faede0; border-color: #b7a17c; }
.btn.ghost { color: var(--mhs-ui-forest); }
.panel {
  background: linear-gradient(155deg,#fffefa,#fffaf3 58%,#f6faf4);
  border-color: #d1e1d3;
  box-shadow: 0 12px 31px rgba(46,78,63,.09);
}
.panel h2 { color: var(--mhs-ui-forest); }
.panel h3 { color: #8a533f; }
.field>span:first-child { color: #345f4e; }
.top-controls select,.panel input,.panel select,.panel textarea {
  background: #fffefb; border-color: #b8d1bf;
}
.top-controls select:focus-visible,.panel input:focus-visible,
.panel select:focus-visible,.panel textarea:focus-visible { outline-color: #508876; }
.note { background: #f1f7ef; border-inline-start-color: #9aba9e; }
.check { background: #f5faf4; border-color: #d0e1d4; }
.chip { background: #fffdfa; border-color: #d3ded0; }
.chip:has(input:checked) { background: #e2f1e6; border-color: #81a98d; }
.answer-choices .chip:nth-child(3n+1) { background: #f3f9f3; border-color: #c2dbc9; }
.answer-choices .chip:nth-child(3n+2) { background: #fff5f0; border-color: #e7cbbf; }
.answer-choices .chip:nth-child(3n) { background: #fffaf0; border-color: #e6d7b4; }
.answer-choices .chip:has(input:checked) { background: #ddefe1; border-color: #69997b; }
.selector { background: linear-gradient(110deg,#f6faf5,#fff8f0); border-color: #c8dbc9; }
.selector .name { color: var(--mhs-ui-forest); }
.progress { background: #e6ede3; }
.progress i { background: linear-gradient(90deg,#4f8b74,#a4b98a); }
.story-entry {
  background: linear-gradient(115deg,#eef7ed,#fff3e8 65%,#fffaf0);
  border-color: #bcd6c0;
  box-shadow: 0 8px 21px rgba(52,96,72,.1);
}
.story-entry:hover { background: linear-gradient(115deg,#e5f2e6,#ffebde); }
.story-entry-text strong { color: var(--mhs-ui-forest); }
.eligibility-mission {
  background: linear-gradient(125deg,#eff8ed,#fff8eb);
  border-color: #bdd6c1;
}
.draft-clarifier { background: #f1f8ee; border-inline-start-color: #8fac8f; }
.finish-flow {
  background: linear-gradient(125deg,#f0f7ef,#fff5eb);
  border-color: #bfd8c2;
}
.finish-flow>h3 { color: var(--mhs-ui-forest); }
.finish-step { background: #fffefa; border-color: #d2dfd1; }
.finish-step.is-done { background: #e6f3e8; border-color: #9fc7ac; }
.finish-step.is-current { background: #fff0dd; border-color: #d5b886; }
.finish-step.is-locked { background: #f3f3ef; border-color: #dde1d8; }
.shell-footer { color: #526f60; }
.shell-footer .v2-footer-links a { color: #315e4d; }
@media(max-width:580px) {
  body { background-attachment: scroll; }
  .hero { box-shadow: 0 12px 30px rgba(46,78,63,.12); }
  .panel { box-shadow: 0 7px 23px rgba(46,78,63,.08); }
}
@media(prefers-contrast:more) {
  .hero,.panel,.finish-flow { background: #fffefa; border-color: #557e6b; }
  .answer-choices .chip:nth-child(n) { background: #fffefa; border-color: #557e6b; }
}
@media print {
  html,body { background: #fff !important; }
}

/* Preview-only: auto-height A4 print cards, 10mm padding and a sage frame. */
@media print {
  .print-root .card.card-print.page {
    box-sizing: border-box;
    display: block !important;
    flex-direction: initial !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 10mm !important;
    border: 0.35mm solid #a8c6b4 !important;
    border-radius: 5mm !important;
    overflow: visible !important;
    box-shadow: none !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-root .card.card-print.page:last-child { page-break-after: auto; }
  .print-root .card.card-print.theme-soft { border-color: #a8c6b4 !important; }
  .print-root .card.card-print.theme-family { border-color: #dab3a3 !important; }
  .print-root .card.card-print.theme-luxury { border-color: #c7ae76 !important; }
  .print-root.print-frugal .card.card-print.page { border-color: #888 !important; }
  .print-root .card.card-print .card-footer {
    margin-top: 14px !important;
    padding-top: 12px;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-root .card.card-print .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


/* Isolated Preview: accessible parent-facing confirmation of sensitive sharing choices. */
.share-review{max-width:760px;margin-inline:auto}
.share-review>.muted{margin-block:0 18px;line-height:1.65}
.share-review-groups{display:grid;gap:13px}
.share-review-group{border:1px solid #c9ddce;border-radius:17px;padding:15px 18px;background:#f5faf5}
.share-review-group h3{font-size:1.05rem;line-height:1.4;margin:0 0 10px;color:#285747}
.share-review-list{margin:0;padding-inline-start:23px;line-height:1.85}
.share-review-list li+li{margin-top:4px}
.share-review-included{background:linear-gradient(125deg,#f1faf0,#fffdf7);border-color:#bcd5c1}
.share-review-excluded{background:#fff8f2;border-color:#ebd4c6}
.share-review-permissions{background:linear-gradient(120deg,#fff8ea,#f4f8f0);border-color:#e1d4ae}
.share-review-changes{background:linear-gradient(120deg,#fff4e9,#f2f8f0);border-color:#e5cfb9}
.share-review-notice{margin:0;padding:12px 14px;border-inline-start:4px solid #7ca793;background:#eef6ed;border-radius:12px}
@media(max-width:580px){.share-review-group{padding:13px 14px}.share-review-list{padding-inline-start:20px}.share-review>.actions .btn{max-width:100%}}

/* Branded native share composer; isolated Preview UI only. */
.share-invite{background:linear-gradient(135deg,#f1f8f0,#fff8ed 70%,#fffdf7);border:1px solid #bfd7c4;border-radius:19px;padding:20px;margin:18px 0 16px;box-shadow:0 6px 22px rgba(38,88,74,.07)}
.share-invite-brand{display:flex;align-items:center;gap:10px;color:#285b49}
.share-invite-brand img{width:45px;height:45px;border-radius:50%;object-fit:cover;border:2px solid #d5e8d8}
.share-invite h3{margin:15px 0 9px;color:#315e4d;font-size:1rem}
.share-invite-message{margin:0;white-space:pre-line;line-height:1.7;color:#3c6252;overflow-wrap:anywhere}
.share-invite-actions{margin-top:12px;justify-content:center}
.share-invite-actions .btn:not(.secondary){background:#2d6352;border-color:#2d6352;min-width:190px}
.share-invite-warning{margin:12px 0 8px;font-size:.89rem;color:#576a5f}
.share-link-details{border:1px solid #d1dfd1;border-radius:14px;background:#fffefa;margin:10px 0 19px;padding:11px 15px}
.share-link-details summary{cursor:pointer;font-weight:700;color:#315e4d}
.share-link-details .field{margin:11px 0 2px}
.share-link-details input{font-size:.86rem}
@media(max-width:580px){.share-invite{padding:16px}.share-invite-actions .btn{width:100%}}

/* Preview only: localized, privacy-safe unavailable shared-card screen. */
.unavailable-body{min-height:100vh;background:radial-gradient(ellipse at 13% 18%,#f6dfd6 0%,transparent 44%),radial-gradient(ellipse at 85% 75%,#e1f0e4 0%,transparent 50%),#f8f5ed;color:#354b44}
.unavailable-screen{min-height:100vh;min-height:100dvh;padding:clamp(20px,6vw,72px) 16px;display:grid;place-items:center}
.unavailable-card{width:min(100%,610px);padding:clamp(28px,6vw,54px);background:#fffefa;border:1.5px solid #a5c5b0;border-radius:30px;box-shadow:0 20px 55px rgba(41,75,60,.11);text-align:center}
.unavailable-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:26px;font-weight:800;font-size:1.12rem;color:#315f4e}
.unavailable-brand img{width:76px;height:76px;object-fit:cover;border-radius:50%;border:2px solid #d7e8d8;background:#fff}
.unavailable-card h1{font-size:clamp(1.7rem,5.2vw,2.45rem);line-height:1.25;color:#285948;margin:0 0 20px}
.unavailable-explanation{margin:0 auto 15px;max-width:460px;line-height:1.8}
.unavailable-privacy{margin:0 auto 28px;padding:13px 18px;border-inline-start:4px solid #82a994;border-radius:13px;background:#eff6ed;max-width:430px;font-weight:700}
.unavailable-home{display:inline-flex;align-items:center;justify-content:center;min-height:51px;padding:12px 24px;background:#2d6352;border:2px solid #2d6352;color:#fffefa;text-decoration:none;font-weight:800;border-radius:17px}
.unavailable-home:hover{background:#245242}
.unavailable-home:focus-visible{outline:3px solid #1e6865;outline-offset:4px}
@media(max-width:560px){.unavailable-brand{flex-direction:column}.unavailable-brand img{width:68px;height:68px}.unavailable-card{border-radius:24px}}


/* Recipient card toolbar only. The approved editor, printed card and
   existing two-tap PDF flow remain unchanged. */
.viewer-toolbar {
  max-width: 760px;
  margin: 15px auto 20px;
  padding: 14px;
  background: #f6faf5;
  border: 1px solid #cbded0;
  border-radius: 20px;
}
.viewer-toolbar .viewer-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.viewer-toolbar .viewer-action-grid .btn {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: .94rem;
  line-height: 1.42;
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
}
.viewer-toolbar .viewer-action-grid .viewer-emergency {
  background: #fbf1e8;
  color: #694a3b;
  border-color: #cfb39c;
}
.viewer-toolbar .viewer-action-grid .viewer-pdf {
  background: #2d6352;
  color: #fffefa;
  border-color: #2d6352;
}
.viewer-toolbar .viewer-toolbar-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  gap: 10px;
  margin-top: 12px;
}
.viewer-toolbar .viewer-toolbar-selectors label { min-width: 0; }
.viewer-toolbar .viewer-toolbar-selectors select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid #b8cebd;
  border-radius: 13px;
  color: #315d4b;
  background: #fffefa;
}
@media (max-width: 420px) {
  .viewer-toolbar { padding: 11px; }
  .viewer-toolbar .viewer-action-grid { gap: 8px; }
  .viewer-toolbar .viewer-action-grid .btn {
    padding: 10px 8px;
    font-size: .88rem;
  }
}


/* V2 PRINT PAGINATION QA 2026-11-21: public /v2 only. */
@page { size: A4 portrait; margin: 7mm; }
@media print {
  .print-root .card.card-print.page {
    /* Preserve the approved font size while reclaiming A4 vertical space. */
    line-height: 1.5 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
    break-after: page;
  }
  .print-root .card.card-print.page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .print-root .card.card-print .section {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }
  .print-root .card.card-print h3 {
    margin-top: 12px !important;
    margin-bottom: 5px !important;
  }
  .print-root .card.card-print .card-footer {
    margin-top: 12px !important;
  }
}
