:root{font-family:"Trebuchet MS",Arial,sans-serif;color:#34333d;background:#f9f6ef;font-synthesis:none;--ink:#34333d;--muted:#746f78;--purple:#6e548b;--lavender:#e9dff2;--line:#e3ddd3;--paper:#fffefa;--serif:Georgia,"Times New Roman",serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b294d0;outline-offset:4px}[hidden]{display:none!important}a{color:inherit}button{color:inherit}button,a{transition:background .18s,transform .18s}button:hover:not(:disabled),a.button:hover{transform:translateY(-2px)}.site-header{max-width:1320px;margin:auto;min-height:110px;display:flex;align-items:center;justify-content:space-between;padding:24px 55px;border-bottom:1px solid var(--line);gap:20px}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:28px;font-weight:bold}.brand-mark{font-size:42px;color:var(--purple)}.brand-sub{font:9px "Trebuchet MS",sans-serif;display:block;letter-spacing:3px;margin-top:5px}.button{display:inline-flex;align-items:center;justify-content:center;gap:28px;background:var(--purple);color:white;padding:17px 25px;border:1px solid var(--purple);border-radius:10px;text-decoration:none;font-size:14px;font-weight:bold;line-height:1.3}.button span{font-size:20px}.button.small{padding:12px 18px;gap:24px}.button.secondary{background:transparent;color:var(--purple);border-color:#cec0dc}.button.full{width:100%}.landing{max-width:1210px;margin:0 auto;padding:58px 0 0;display:grid;grid-template-columns:1fr 1fr;align-items:center}.hero-copy{padding:12px 15px 12px 50px;z-index:1}.eyebrow{font-size:10px;font-weight:bold;letter-spacing:2px;color:var(--purple);line-height:1.8}.tiny-star{font-size:20px;vertical-align:middle;margin-right:5px}.hero-copy h1{font:76px/1.06 var(--serif);letter-spacing:-3px;margin:21px 0 25px}.hero-copy h1 em{font-weight:normal;color:var(--purple)}.hero-description{font-size:16px;line-height:1.8;color:var(--muted);max-width:370px;margin-bottom:29px}.hero-note{font-size:11px;color:var(--muted);margin-top:18px}.hero-art{height:565px;position:relative;display:flex;align-items:center;justify-content:center}.art-orbit{width:430px;height:430px;border-radius:50%;background:#e8e5ef;position:absolute}.paper-sheet{width:325px;height:443px;padding:22px 22px 17px;background:var(--paper);box-shadow:2px 14px 35px #493f6420;transform:rotate(7deg);z-index:1;text-align:center;display:flex;flex-direction:column;justify-content:space-between}.paper-label{font-size:7px;letter-spacing:2px;color:#8b808c}.storybook-art{width:100%;height:auto;max-height:370px}.paper-footer{font-family:var(--serif);font-size:13px;font-style:italic;color:#817486}.floating-star{position:absolute;color:#b49a67;z-index:2}.star-one{font-size:56px;left:45px;top:43px;transform:rotate(15deg)}.star-two{font-size:68px;right:20px;bottom:90px}.art-sticker{position:absolute;background:#edd594;color:#665338;width:133px;height:133px;right:9px;top:84px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(12deg);z-index:3;font:16px/1.5 var(--serif);box-shadow:0 4px 10px #88724a15}.crayon{position:absolute;width:19px;height:160px;border-radius:3px;z-index:2;bottom:6px;left:131px;transform:rotate(46deg);border:1px solid #9a78b1;background:linear-gradient(to bottom,#a98bbf 18%,#d5c0e5 18%,#d5c0e5 78%,#a98bbf 78%)}.crayon:before{content:"";position:absolute;top:-24px;left:-1px;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:24px solid #a98bbf}.crayon-coral{left:175px;bottom:5px;transform:rotate(60deg);border-color:#c47f75;background:linear-gradient(to bottom,#d89588 18%,#f0b7a9 18%,#f0b7a9 78%,#d89588 78%)}.crayon-coral:before{border-bottom-color:#d89588}.steps{grid-column:1/-1;display:flex;justify-content:center;gap:65px;padding:38px 20px;margin-top:45px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.steps b{font-family:var(--serif);font-size:21px;font-weight:normal;color:var(--purple);margin-right:10px}footer{max-width:1210px;margin:20px auto 0;padding:23px 50px 28px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#8c8490}.footer-star{font-size:20px;color:#a792b6}.workspace{max-width:1210px;padding:35px 50px 55px;margin:auto;min-height:75vh}#private-nav{display:flex;align-items:center;gap:25px}.nav-link{border:0;background:none;padding:12px 2px;font-size:13px;color:var(--muted)}.nav-link.active{color:var(--purple);box-shadow:0 2px var(--purple)}#page-count{font-size:10px;background:#e9e0ef;border-radius:10px;padding:3px 6px;margin-left:4px}.profile-button{width:35px;height:35px;background:#e7dcc3;border-radius:50%;border:0;font-family:var(--serif);font-size:19px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.section-heading h1{font:37px/1.2 var(--serif);letter-spacing:-.8px;margin:8px 0}.section-heading p:not(.eyebrow){font-size:14px;color:var(--muted)}.heading-star{color:#b9a17c;font-size:45px}.studio-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:30px;align-items:start}.idea-panel{background:#f0eaf4;border:1px solid #e7dfed;border-radius:16px;padding:25px}label{font-size:15px;font-weight:bold;display:block}.field-help{font-size:12px;color:var(--muted);line-height:1.6;margin:9px 0 15px}textarea,input,select{border:1px solid #d9cfdf;background:#fffefb;color:var(--ink);border-radius:9px;padding:13px;line-height:1.6;max-width:100%;width:100%;font-size:14px}textarea{resize:vertical;min-height:140px}textarea::placeholder,input::placeholder{color:#9a90a2}.suggestion-label{font-size:10px;letter-spacing:.6px;color:#817189;margin:23px 0 10px}.suggestions{display:flex;flex-direction:column;gap:8px;margin-bottom:25px}.suggestions button{text-align:left;border:1px solid #d8cbe2;border-radius:8px;padding:10px 12px;background:#f7f2fa;font-size:12px;color:#685479}.suggestions button:hover{background:#fff}.saved-note{display:flex;align-items:center;gap:13px;border-top:1px solid #dcd1e4;margin-top:24px;padding-top:8px}.saved-note>span{font-size:26px;color:#9277a9}.saved-note p{font-size:11px;line-height:1.8}.saved-note small{font-size:10px;color:#8b7b95}.picture-panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:24px;min-height:520px}.picture-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1.4px;color:#8e8196;gap:10px}.text-button{border:0;background:none;color:var(--purple);font-size:11px;padding:5px}.empty-canvas{min-height:417px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-spark{font-size:88px;line-height:1;color:#baabc8}.empty-canvas h2,.drawing-state h2{font:27px var(--serif);margin:20px 0 8px}.empty-canvas p,.drawing-state p{font-size:13px;line-height:1.8;color:var(--muted)}.pencil-trail{font-size:60px;color:#d8c5a3}.drawing-state{text-align:center;padding:110px 10px}.drawing-spark{display:inline-block;color:var(--purple);font-size:58px;animation:breathe 2.4s ease-in-out infinite}@keyframes breathe{50%{opacity:.4;transform:rotate(30deg) scale(.85)}}#picture-figure{margin:20px 0 0;text-align:center}#current-image{display:block;max-width:100%;max-height:560px;margin:0 auto;object-fit:contain;border:1px solid #eee9e1;border-radius:3px}#picture-caption{font-size:12px;color:var(--muted);line-height:1.7;margin:13px 0;overflow-wrap:anywhere}.download-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.download-row .button{font-size:12px;padding:12px 18px;gap:15px}.print-help{text-align:center;font-size:10px;color:#948897;margin:12px 0 24px}#edit-form{border-top:1px solid var(--line);padding-top:21px}#edit-form label{font-family:var(--serif);font-size:23px;font-weight:normal}.edit-row{display:flex;gap:10px;align-items:stretch}.edit-row input{min-width:0}.edit-row .button{font-size:11px;padding:12px;gap:10px;flex-shrink:0}.version-note{font-size:10px;color:#8c7d92;line-height:1.6}.versions{margin-top:20px;padding-top:17px;border-top:1px solid var(--line);display:flex;align-items:center;gap:15px}.versions label{font-size:11px;font-weight:normal;flex-shrink:0}.versions select{font-size:12px;padding:8px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.page-card{border:1px solid var(--line);border-radius:13px;background:var(--paper);padding:13px;text-align:left;display:flex;flex-direction:column;gap:12px;overflow:hidden}.page-card img{width:100%;aspect-ratio:3/4;object-fit:contain;background:white;border-radius:5px}.page-card strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.page-card small{font-size:10px;color:var(--muted);line-height:1.6}.empty-gallery{text-align:center;padding:55px 10px}.empty-gallery>span{font-size:70px;color:#b4a2c7}.empty-gallery h2{font:30px var(--serif)}.empty-gallery p{font-size:14px;color:var(--muted)}.empty-gallery .button{margin-top:12px}.profile-view{display:flex;justify-content:center;padding:30px}.profile-card{max-width:520px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:40px}.profile-avatar{width:86px;height:86px;border-radius:50%;background:var(--lavender);font:48px/86px var(--serif);color:var(--purple);margin:0 auto 25px}.profile-card h1{font:38px var(--serif);margin:14px 0}.profile-card p{font-size:14px;line-height:1.8;color:var(--muted)}.profile-card .eyebrow{font-size:9px}.profile-note{border-top:1px solid var(--line);padding-top:20px;margin:25px 0}.message{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#34333d;color:#fff;padding:17px 22px;max-width:calc(100% - 32px);width:max-content;box-shadow:0 5px 25px #33224425;border-radius:12px;font-size:13px;line-height:1.6;z-index:6}.message.error{background:#854f56}dialog{border:1px solid var(--line);border-radius:20px;background:var(--paper);padding:36px;width:420px;max-width:calc(100% - 30px);color:var(--ink);box-shadow:0 20px 100px #31264130}dialog::backdrop{background:#30273c66;backdrop-filter:blur(4px)}.close-button{position:absolute;right:16px;top:12px;font-size:28px;border:0;background:none;color:#9b8da2}.login-star{font-size:40px;color:#b8a274}.login-star,.login-note,dialog h2,dialog .eyebrow,dialog form>p:not(.form-error){text-align:center}dialog h2{font:35px/1.16 var(--serif);margin:15px 0}dialog form>p:not(.eyebrow){color:var(--muted);font-size:13px}dialog label{font-size:12px;margin:22px 0 8px}dialog .button{margin-top:25px}.login-note{font-size:10px!important;margin-top:18px}.form-error{font-size:12px;color:#a34d5b;line-height:1.7;margin-bottom:0}
@media(min-width:1500px){.landing{padding-top:75px}.hero-art{height:595px}.hero-copy h1{font-size:84px}}@media(max-width:1000px){.site-header{padding:22px 30px}.landing{padding:25px 20px 0}.hero-copy{padding-left:15px}.hero-copy h1{font-size:62px}.hero-art{height:530px}.art-orbit{width:330px;height:330px}.paper-sheet{width:275px;height:390px}.art-sticker{width:105px;height:105px;font-size:13px;right:0;top:70px}.star-one{left:0}.crayon{bottom:4px;left:100px}.crayon-coral{left:145px}.workspace{padding:30px}.studio-grid{grid-template-columns:280px minmax(0,1fr);gap:20px}.idea-panel,.picture-panel{padding:20px}.edit-row{flex-direction:column}.section-heading h1{font-size:32px}.steps{gap:35px}.gallery{gap:15px}.versions{align-items:flex-start;flex-direction:column;gap:7px}}@media(max-width:700px){.site-header{padding:19px 20px;min-height:86px}.brand{font-size:23px;gap:8px}.brand-mark{font-size:32px}.brand-sub{font-size:7px;letter-spacing:2px}.button.small{padding:10px 12px;font-size:10px;gap:10px}.landing{grid-template-columns:1fr;padding-top:25px}.hero-copy{text-align:center;padding:10px}.eyebrow{font-size:9px;letter-spacing:1.3px}.hero-copy h1{font-size:60px;margin:17px 0;letter-spacing:-2px}.hero-description{margin:0 auto 24px;font-size:14px;max-width:335px}.hero-art{height:440px;max-width:440px;width:100%;margin:0 auto}.paper-sheet{height:340px;width:245px}.art-orbit{width:295px;height:295px}.art-sticker{right:10px;top:57px}.star-one{font-size:43px;left:13px;top:49px}.star-two{right:0;bottom:59px;font-size:50px}.crayon{height:120px;left:100px;bottom:4px}.crayon-coral{left:137px;bottom:0}.steps{margin-top:25px;padding:24px 5px;gap:15px;justify-content:space-between}.steps span{max-width:100px;font-size:10px;line-height:1.7}.steps b{display:block;font-size:21px;margin:0}.workspace{padding:25px 18px}.section-heading{align-items:flex-start;margin-bottom:22px}.section-heading h1{font-size:30px}.section-heading .button{padding:10px;font-size:10px;gap:5px;min-width:110px}.heading-star{font-size:30px}.studio-grid{grid-template-columns:1fr;gap:20px}.idea-panel{padding:20px}textarea{min-height:100px}.suggestions{flex-direction:row;flex-wrap:wrap;gap:7px;margin-bottom:20px}.suggestions button{font-size:10px;flex:1;min-width:100px;padding:8px}.saved-note{display:none}.picture-panel{min-height:350px}.empty-canvas{min-height:320px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.page-card{padding:10px}.page-card strong{font-size:11px}.profile-view{padding:10px 0}.profile-card{padding:30px 23px}#private-nav{gap:13px}.nav-link{font-size:11px}#page-count{display:none}.profile-button{width:30px;height:30px;font-size:16px}.picture-toolbar{font-size:8px}.edit-row{flex-direction:column}.versions{flex-direction:row;align-items:center}.versions label{font-size:10px}.versions select{font-size:11px}.download-row{gap:8px}.download-row .button{padding:12px;font-size:11px}.drawing-state{padding:65px 10px}footer{padding:23px 20px;font-size:8px;line-height:1.7;margin-top:5px}footer>span:first-child,footer>span:last-child{max-width:120px}.message{bottom:15px;font-size:12px}dialog{padding:30px 25px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.photo-option{margin:20px 0 24px;padding-top:18px;border-top:1px solid #dcd1e4}.photo-label{font-size:12px}.photo-label span{font-weight:normal;color:var(--muted);font-size:10px}.photo-option .field-help{font-size:11px;margin-bottom:10px}.photo-option input[type=file]{font-size:10px;padding:8px;background:#f8f5fa;width:100%}.photo-option input::file-selector-button{font:inherit;background:#e5d9ed;color:#614877;border:0;border-radius:5px;padding:8px;margin-right:7px;cursor:pointer}#photo-preview{display:flex;align-items:center;gap:10px;margin-top:12px}#photo-thumbnail{width:76px;height:76px;object-fit:cover;border-radius:8px;border:1px solid #d8cbe2}.photo-note{font-size:10px;color:var(--muted);line-height:1.6}

.reference-panel{display:flex;gap:12px;align-items:center;border-bottom:1px solid #d8cbe2;padding-bottom:17px;margin-bottom:20px}.reference-panel img{width:70px;height:85px;object-fit:contain;background:white;border:1px solid #d8cbe2;border-radius:6px}.reference-panel strong{font-size:12px}.reference-panel p{font-size:11px;color:var(--muted);line-height:1.5}.reference-button{display:block;margin:15px auto 0;border:0;background:none;color:var(--purple);font-size:12px;padding:9px}.reference-button span{margin-left:8px}

/* Comfortable controls and readable form text on a phone. */
.text-button,.close-button,.reference-button,.nav-link{min-height:44px;min-width:44px}
@media(max-width:700px){
  .site-header{gap:8px;flex-wrap:wrap}
  #private-nav{gap:8px}
  .nav-link{font-size:13px}
  .profile-button{width:44px;height:44px;flex-shrink:0}
  textarea,input,select,.versions select{font-size:16px}
  .field-help{font-size:13px}
  .photo-option input[type=file]{font-size:12px}
  .text-button{font-size:12px}
  .versions{align-items:stretch;flex-direction:column}
  .versions label{font-size:12px}
}

.dictation-controls{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}.dictation-button{min-height:44px;padding:12px 18px}.dictation-button[aria-pressed=true]{background:#854f56;color:white;border-color:#854f56}.dictation-status{min-height:2.8em;margin:9px 0 5px;line-height:1.5}.voice-note{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 0 16px}

.dictation-level{display:block;width:100%;height:20px;margin-top:10px}

#review-controls, #result-recovery { padding: 1rem; margin-bottom: 1rem; border: 1px solid #d8caec; border-radius: 12px; background: #f8f3fd; }
#paper-size { margin: .4rem 0 1rem; padding: .5rem; font: inherit; }

/* Private operation history shares the studio's paper and ink palette. */
.activity-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0}
.activity-total,.activity-operation{border:1px solid #ded7cd;border-radius:14px;padding:1rem 1.25rem;background:#fffdf8}
.activity-total h2{font-size:1rem;margin:0}.activity-amount{font-size:1.5rem;margin:.5rem 0;overflow-wrap:anywhere}
.activity-operation{margin:1rem 0;overflow-wrap:anywhere}.activity-operation summary{cursor:pointer;font-weight:600;line-height:1.7}
.activity-line{display:grid;grid-template-columns:minmax(150px,1fr) 3fr;gap:1rem;padding:.4rem 0;border-bottom:1px solid #eee8df}
.activity-line dt{font-weight:600}.activity-line dd{margin:0}.activity-attempts{padding-left:1.4rem;line-height:1.6}.activity-warning{color:#834519}
.activity-pagination{display:flex;gap:1rem;align-items:center;justify-content:space-between;margin:1.5rem 0}
#private-nav{flex-wrap:wrap}
@media(max-width:640px){.activity-totals{grid-template-columns:1fr}.activity-line{grid-template-columns:1fr;gap:.2rem}.activity-pagination{flex-wrap:wrap}#private-nav .nav-link{font-size:.8rem;padding:.5rem}}

/* Reusable inspiration and explicit request review. */
.together-note{color:var(--muted,#69646f);font-size:.92rem;margin:-.5rem 0 1.5rem}
.inspiration{margin-bottom:2rem;padding:1.4rem;border:1px solid #e3dce9;border-radius:20px;background:#fffdf8}
.inspiration-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.inspiration-heading h2{font-family:Georgia,serif;font-size:1.8rem;margin:.2rem 0}.inspiration-heading p{margin:.4rem 0}.inspiration-heading .eyebrow{font-size:.68rem}
.inspiration-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem;margin:1rem 0}.inspiration-category{background:#f1ebf7;border:2px solid transparent;border-radius:14px;padding:.6rem;cursor:pointer;color:#5f4b75;font:inherit}.inspiration-category:nth-child(2n){background:#f6eedb;color:#7d633b}.inspiration-category:nth-child(3n){background:#e8efe7;color:#4b6752}.inspiration-category svg{display:block;width:100%;height:90px}.inspiration-category span{display:block;font-size:.85rem;font-weight:600}.inspiration-category[aria-pressed=true]{border-color:#7b5d97}.inspiration-category:hover{border-color:#a797b7}
.inspiration-search-row{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}.inspiration-search-row label{font-size:.9rem}.inspiration-search-row input{max-width:270px;margin:0}.inspiration-search-row .dictation-controls{margin:0}.inspiration-search-row p{flex-basis:100%;margin:0}.inspiration-ideas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.inspiration-idea{padding:1rem;text-align:left;background:white;border:1px solid #ded6e8;border-radius:12px;cursor:pointer;font:inherit;color:#393844}.inspiration-idea strong,.inspiration-idea span{display:block}.inspiration-idea strong{margin-bottom:.35rem}.inspiration-idea span{font-size:.85rem;line-height:1.45;color:#69646f}.inspiration-idea:hover{border-color:#7b5d97}.inspiration .voice-note{margin-bottom:0}.prompt-help{margin:.4rem 0}.cost-note{line-height:1.5}.cost-note button{display:inline;font-size:inherit;padding:0;text-decoration:underline}
.prompt-dialog{max-width:620px;width:calc(100% - 2rem);max-height:90dvh;padding:1.7rem;overflow:auto;border:1px solid #ded6e8;border-radius:20px;color:#393844;background:#fffdf8}.prompt-dialog::backdrop{background:#28213288}.prompt-dialog h2{font-family:Georgia,serif;font-size:1.9rem;margin:.4rem 0}.prompt-dialog label{display:block;margin:.9rem 0 .4rem}.prompt-original{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0ebf5;padding:.8rem;border-radius:8px;max-height:8rem;overflow:auto}.prompt-original:empty::before{content:'No words yet — start with this idea.';color:#716878}.prompt-dialog textarea,.prompt-dialog input,.prompt-dialog select{box-sizing:border-box;width:100%}.prompt-dialog .download-row{display:flex;flex-wrap:wrap;gap:.7rem}.prompt-dialog .download-row button{flex:1;min-width:160px}.prompt-dialog details{margin:.8rem 0}.prompt-dialog #prompt-compose{margin:.6rem 0}
@media(max-width:700px){.inspiration{padding:1rem}.inspiration-heading{align-items:flex-start;flex-direction:column}.inspiration-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.inspiration-category svg{height:65px}.inspiration-category span{font-size:.75rem}.inspiration-ideas{grid-template-columns:1fr}.inspiration-search-row input{max-width:100%}.prompt-dialog{padding:1rem}.together-note{margin-top:0}.inspiration-heading h2{font-size:1.5rem}}

.edit-row textarea{flex:1;min-width:0;min-height:90px;resize:vertical}

.assistant-turn { border-top: 1px solid var(--line, #ddd); padding: .8rem 0; }
.assistant-turn p, #saved-request-history p { white-space: pre-wrap; overflow-wrap: anywhere; }
#assistant-conversation { max-height: 32vh; overflow-y: auto; }
#assistant-operations { display: grid; gap: .5rem; overflow-wrap: anywhere; }
#assistant-operations button { text-align: left; overflow-wrap: anywhere; }
#saved-request-history { margin: 1rem 0; max-width: 100%; }
#account-check{position:fixed;inset:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;box-sizing:border-box;border:0;background:#fffdf6;padding:3rem;color:#243029}
#account-check::backdrop{background:#fffdf6}
body.account-checking dialog:not(#account-check){visibility:hidden}

/* Parent controls follow the Studio's existing paper cards and rounded buttons. */
.profile-view:has(.family-panel:not([hidden])){display:grid;gap:1.5rem;align-items:start}.family-panel{background:#fffaf1;border:1px solid #e6d8bd;border-radius:24px;padding:clamp(1rem,3vw,2rem);max-width:52rem;width:100%;box-sizing:border-box;text-align:left}.family-panel h2{margin:.25rem 0 .65rem;font-size:clamp(1.6rem,4vw,2.2rem)}.family-intro,.family-note{color:#5d635a;line-height:1.5}.family-note{font-size:.9rem}.family-message{min-height:1.4em}.family-children{display:grid;gap:1rem;margin:1rem 0}.family-child{padding:1rem;border:1px solid #e2ded0;border-radius:16px;background:#fff;min-width:0;overflow-wrap:anywhere}.family-child h3{margin:0 0 .5rem}.family-state{display:inline-block;margin:0;padding:.35rem .65rem;border-radius:999px;background:#edece7;font-size:.8rem;font-weight:700}.family-state-ready{background:#e2f1e1;color:#285432}.family-state-active{background:#dceef0;color:#214e52}.family-state-expired,.family-state-revoked{background:#f5e3d8;color:#743d27}.family-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.75rem}.family-panel .button{min-height:44px;white-space:normal}.family-add{display:grid;gap:.65rem;border-top:1px solid #e2ded0;padding-top:1.3rem;margin-top:1.3rem}.family-add h3,.family-add p{margin:.25rem 0}.family-add input,.family-add select{font:inherit;width:100%;box-sizing:border-box;min-height:46px;padding:.7rem;border-radius:12px;border:1px solid #b6bcae;background:white}.family-add input:focus,.family-add select:focus{outline:3px solid #aac6b4;outline-offset:2px}.family-confirm{width:min(28rem,calc(100vw - 2rem));box-sizing:border-box;padding:1.5rem;border:1px solid #d5cbb6;border-radius:20px;background:#fffaf1;color:#28362b}.family-confirm::backdrop{background:#182b28aa}.family-confirm p{line-height:1.6;overflow-wrap:anywhere}.family-panel a[aria-disabled=true]{opacity:.55;pointer-events:none}.family-panel [hidden]{display:none!important}@media(min-width:850px){.profile-view:has(.family-panel:not([hidden])){grid-template-columns:minmax(15rem,1fr) minmax(22rem,1.5fr)}}

.family-gallery { width: min(48rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid #d6dce7; border-radius: 1.2rem; padding: 1.2rem; box-sizing: border-box; }
.family-gallery::backdrop { background: rgb(25 32 52 / 55%); }
.family-gallery-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.family-gallery-content { display: grid; gap: .75rem; margin-top: 1rem; overflow-wrap: anywhere; }
.family-gallery-content img { display: block; max-width: 100%; max-height: 55vh; margin: auto; object-fit: contain; }
.family-gallery-content select { width: 100%; min-width: 0; padding: .6rem; }
