*{box-sizing:border-box}body{margin:0;background:#f0eaf8;color:#49365f;font-family:var(--ui-font);font-size:14px}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button,a.btn{cursor:pointer}button{border:0}a{color:inherit}#app{max-width:440px;margin:auto;padding:16px 14px 30px}header.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.brand{font-weight:700;font-size:15px;letter-spacing:.1em}.badge{font-size:10px;background:#fff8;padding:5px 9px;border-radius:20px}.eyebrow{font-size:11px;letter-spacing:.16em;color:#8e78a3}h1{font-size:25px;margin:10px 0 16px;line-height:1.5}h2{font-size:19px}.muted,.note{color:#847390;font-size:12px;line-height:1.7}.note{margin:14px 0}.btn{display:block;text-decoration:none;text-align:center;padding:15px 12px;border-radius:16px;background:#76558f;color:white;font-weight:700;width:100%;margin:10px 0;min-height:48px}.btn.secondary{background:white;color:#59416d;border:1px solid #ded1e9}.text{background:transparent;text-decoration:underline;padding:12px;min-height:44px}.card{background:#fff9;border:1px solid #e0d4eb;border-radius:24px;padding:22px;margin:14px 0}.hero{text-align:center;padding:24px 20px}.hero .portrait{width:144px;height:144px;margin:auto;background:#ede4f5;border-radius:50%}.portrait img{height:100%;width:100%;object-fit:contain}.count{font-size:32px;font-weight:700}.count small{font-size:13px;font-weight:400}.profile{display:flex;align-items:center;gap:13px;background:#e5d8f1;border-radius:19px;padding:12px;min-height:114px}.profile .portrait{width:87px;height:95px;flex-shrink:0}.profile h2{margin:0 0 4px;font-size:20px;overflow-wrap:anywhere}.profile p{margin:3px 0;font-size:11px;line-height:1.45}.meta{display:flex;flex-wrap:wrap;gap:3px 9px}.sheet{background:#e9def4;padding:12px;border:1px solid #d9c9e6;border-radius:25px;margin:10px 0}.sheet-title{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.1em;margin:0 3px 9px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.field{display:block;text-align:left;background:white;border:1px solid #e4d8ed;border-radius:17px;padding:10px;min-width:0;min-height:95px;width:100%}.field label{display:block;font-size:10px;line-height:1.5;font-weight:700;pointer-events:none}.answer{display:block;line-height:1.55;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap;margin-top:5px}.placeholder{color:#aa98b7;font-size:12px}.word-area{margin:10px 0 4px}.word-area>label{display:block;text-align:center;font-size:11px;font-weight:700}.hearts{display:flex;gap:5px;justify-content:space-around;margin-top:4px}.heart{position:relative;width:31%;height:82px;background:white;clip-path:polygon(50% 16%,63% 4%,82% 3%,97% 19%,100% 40%,89% 61%,50% 100%,11% 61%,0 40%,3% 19%,18% 3%,37% 4%);display:flex;align-items:center;justify-content:center;padding:10px 14px 17px;text-align:center;line-height:1.4;font-size:12px;overflow-wrap:anywhere}.last{margin-top:8px;min-height:75px}.author{margin-top:7px;text-align:right;font-size:12px;min-height:44px;padding:8px;background:#ffffff90;border-radius:12px;overflow-wrap:anywhere}.nav{display:flex;gap:10px;align-items:center;justify-content:space-between}.nav button{background:white;border-radius:12px;min-height:44px;padding:10px 16px}.nav button:disabled{opacity:.4}.list-item{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;background:white;border-radius:18px;padding:18px;margin:10px 0}.list-item strong{display:block;font-size:16px}.list-item time{display:block;font-size:11px;color:#8d7e9b;margin-top:7px}.unread{color:#bd688f;font-size:11px}.form label{display:block;font-size:12px;margin-top:17px}.form input,.form select,dialog input,dialog textarea{display:block;width:100%;border:1px solid #d8c8e3;background:white;border-radius:12px;padding:12px;margin-top:7px;font-size:16px;min-height:46px}.form .row{display:flex;gap:8px}.form .row>*{flex:1;min-width:0}dialog{color:#49365f;border:0;border-radius:25px;padding:23px;width:calc(100% - 28px);max-width:430px;max-height:85dvh;overflow:auto;background:#faf7ff}dialog::backdrop{background:#38234870}dialog h2{margin:0 0 12px;font-size:19px}dialog textarea{height:125px;resize:vertical}.panel-head{display:flex;justify-content:space-between;align-items:start}.close{background:white;border-radius:50%;width:44px;height:44px;font-size:22px;flex-shrink:0}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.chip{padding:11px 13px;min-height:44px;border-radius:25px;background:white;border:1px solid #dfd1ea}.chip.selected{background:#78598f;color:white}.selected-word{display:flex;align-items:center;gap:4px;margin:5px 0}.selected-word .text{padding:7px}.error{color:#b32f68;line-height:1.6;font-size:13px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#49365f;color:white;border-radius:12px;padding:12px 18px;display:none;z-index:10;max-width:90%}.complete{text-align:center;padding-top:45px}.complete .symbol{font-size:65px;color:#bd7ba2}button:focus-visible,a:focus-visible{outline:3px solid #b377ac;outline-offset:3px}@media(max-width:350px){#app{padding:10px}.sheet{padding:9px}.field{padding:8px;min-height:102px}.answer{font-size:12px}.heart{font-size:11px;padding-left:10px;padding-right:10px}.profile{gap:8px}.profile .portrait{width:72px}.profile h2{font-size:18px}}

.heart{clip-path:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='white' d='M50 88C36 76 2 53 2 27C2 0 34 -4 50 17C66 -4 98 0 98 27C98 53 64 76 50 88Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.form-label{font-size:12px;margin:20px 0 8px}.character-picker{max-width:480px}.character-tabs{display:flex;gap:8px;margin:12px 0}.character-tabs button{flex:1;padding:12px;border-radius:14px;min-height:46px;background:white;border:1px solid #ded1e9}.character-tabs button[aria-pressed=true]{background:#76558f;color:white}.character-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.character-option{border:2px solid transparent;background:white;border-radius:17px;padding:9px 7px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.character-option[aria-pressed=true]{border-color:#a1699c;background:#f9edf6}.character-option img{width:100%;height:116px;object-fit:contain}.character-option span{font-size:12px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.character-option small{font-size:11px;color:#947a9f}.character-option[aria-pressed=true] small{color:#96527d}.character-picker #character-done{position:sticky;bottom:0;box-shadow:0 -4px 15px #faf7ff}.character-picker #character-done:disabled{opacity:.5}
/* Home preview: distinct paper on a near-white surface. */
body{background:#fcfbfd;color:#402c54}.badge{background:#eee7f4;color:#675477}.sheet{background:#eee5f7;border-color:#d4c2e5;box-shadow:0 3px 14px #49365f08}.profile{background:transparent;border-bottom:1px solid #d9c9e5;border-radius:0;padding:5px 0 10px}.form .profile{border-radius:16px;border:1px solid #d9c9e5;padding:12px;background:#f3edf8}.field{background:#fff;border-color:#e2d5ec}.placeholder{color:#897696}.author{background:#fff}.btn#share,.btn#native-share,.btn#send,.btn.action-pink{background:#E82D69;color:#fff}.btn:disabled{opacity:.5;cursor:default}.home-title{font-size:21px;line-height:1.45;margin:6px 0 12px;overflow-wrap:anywhere}.home-actions{margin:22px 0}.invite-copy{font-size:14px;text-align:center;font-weight:700;line-height:1.7}.preview-links{display:grid;grid-template-columns:1fr;gap:0}.preview-links .btn{font-size:13px;margin:5px 0}.inbox-summary{margin-top:24px;padding-top:14px;border-top:1px solid #ded4e6}.inbox-summary p,.reply-count{text-align:center;color:#675477}.inbox-summary strong,.reply-count strong{color:#402c54;font-size:22px}.list-title{font-size:22px;line-height:1.5}.heart-hint{margin:2px 0 0;text-align:center;font-size:10px;color:#897696}.share-message{white-space:pre-wrap;overflow-wrap:anywhere;background:white;border:1px solid #ddd0e6;border-radius:14px;padding:14px;line-height:1.8;font-size:13px}.paper-panel{width:calc(100% - 16px);max-width:460px;padding:14px;background:#fcfbfd}.preview-notice{font-size:12px;line-height:1.7;background:#f0e8f7;padding:12px;border-radius:12px;color:#675477}.friend-heading{font-size:17px;line-height:1.6;overflow-wrap:anywhere}.paper-panel .sheet{margin:10px 0}.sheet-blank .heart{height:76px}.sheet-blank .word-area{margin:8px 0 4px}.sheet .profile>div:last-child{min-width:0}.profile p{overflow-wrap:anywhere}

/* Paper edition: SIL OFL fonts, hosted with their license notices in fonts/. */
:root{--paper-ink:#40274f;}
body{background:#fcfbfd;color:var(--paper-ink)}
.nickname-help{margin:5px 0 16px;color:#654c71;font-size:13px}
.blank-guide{font-size:14px;font-weight:700;margin:10px 0 12px;text-align:center;color:var(--paper-ink)}
.sheet{position:relative;isolation:isolate;background:none;border:0;border-radius:12px;box-shadow:none;padding:13px 10px 12px 25px;color:var(--paper-ink)}
.sheet::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:10px 16px 16px 10px;background:linear-gradient(to right,var(--paper-band) 0 17px,transparent 17px),var(--paper-bg);box-shadow:inset 0 0 0 1px #d6c4e5;mask-image:radial-gradient(circle at 9px 8%,transparent 4px,#000 4.7px),radial-gradient(circle at 9px 22%,transparent 4px,#000 4.7px),radial-gradient(circle at 9px 36%,transparent 4px,#000 4.7px),radial-gradient(circle at 9px 50%,transparent 4px,#000 4.7px),radial-gradient(circle at 9px 64%,transparent 4px,#000 4.7px),radial-gradient(circle at 9px 78%,transparent 4px,#000 4.7px),radial-gradient(circle at 9px 92%,transparent 4px,#000 4.7px);mask-composite:intersect;pointer-events:none}
.binder-holes{position:absolute;inset:0;pointer-events:none;z-index:1}
.binder-holes i{position:absolute;left:4.5px;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;box-shadow:inset 0 1px 1.5px #4d325d36;background:transparent}
.sheet-title{font-size:10px;font-weight:700;color:#684d79;gap:8px;margin:0 0 6px;letter-spacing:.02em}
.sheet .profile{gap:10px;padding:2px 0 9px;min-height:116px;border-bottom:1px dashed #a58ab8;align-items:center}
.sheet .profile>div:last-child{min-width:0;flex:1}
.sheet .portrait{width:82px;height:96px;flex-shrink:0;background:#ffffff8c;border-radius:8px 18px 9px 14px;border:1px solid #ddcde8}
.sheet .nickname-label{font-family:var(--ui-font);font-size:12px;font-weight:700;display:block;line-height:1.5}
.sheet .profile h2{font-family:var(--ui-font);font-size:22px;font-weight:700;line-height:1.3;margin:0 0 3px;overflow-wrap:anywhere}
.sheet .profile p{font-size:12px;line-height:1.45;color:var(--paper-ink);margin:0 0 2px}
.sheet .meta{gap:0 8px}
.sheet .meta p{font-size:12px}
.sheet .grid{gap:8px;margin-top:11px;align-items:stretch}
.sheet .field{position:relative;border:1px solid #d3bddf;border-radius:5px 14px 7px 13px;padding:8px 9px;min-height:100px;background:#fff;overflow:visible;text-align:left}
.sheet .grid .field:nth-child(2){border-radius:14px 5px 13px 7px}
.sheet .field label,.sheet .word-area>label{display:table;max-width:100%;font-family:var(--ui-font);font-size:13px;font-weight:700;line-height:1.45;color:var(--paper-ink);background:#f4eafa;border:1px solid #e1cee9;border-radius:3px 7px 4px 6px;padding:2px 5px;margin:-14px 0 5px;white-space:normal;box-decoration-break:clone}
.sheet .field label .muted{font-family:var(--ui-font);font-size:11px;color:#70557d}
.sheet .answer{display:block;font-family:var(--ui-font);font-size:15px;line-height:1.4;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--paper-ink)}
.sheet .answer.placeholder{font-family:var(--ui-font);font-size:13px;font-weight:400;line-height:1.5;color:#765e83}
.sheet .answer.empty-answer{min-height:37px;background:repeating-linear-gradient(to right,#c6b3d5 0 2px,transparent 2px 5px) left bottom/100% 1px no-repeat}
.sheet .word-area{margin:13px 0 0;padding:0 1px}
.sheet .word-area>label{margin:0 auto 2px;background:#fce8f0;border-color:#efd0dd;text-align:center}
.sheet .hearts{gap:3px;align-items:center;margin:0}
.sheet .heart{font-family:var(--ui-font);font-size:14px;font-weight:700;line-height:1.3;height:94px;width:32%;padding:14px 11px 23px;color:var(--paper-ink);overflow-wrap:anywhere;filter:drop-shadow(0 1px 0 #cbb4dc)}
.sheet .heart.placeholder{color:#b479a1;font-size:18px}
.sheet .last{margin-top:13px;min-height:83px;border-style:dashed;border-radius:11px 5px 12px 6px}
.sheet .author{font-family:var(--ui-font);font-weight:700;font-size:15px;line-height:1.4;min-height:39px;padding:7px 8px 0;color:var(--paper-ink);background:transparent;border:0;text-align:right;overflow-wrap:anywhere}
.sheet-blank .author::after{content:'';display:inline-block;width:50%;border-bottom:1px dashed #a78cb7;vertical-align:middle}
.sheet [data-field]{cursor:pointer;transition:box-shadow .15s}
.sheet [data-field]:focus-visible{outline:3px solid #E82D69;outline-offset:2px}
.sheet [data-field]:hover{box-shadow:0 0 0 2px #E82D6926}
#profile-form>button.btn:not(.secondary),#share,#native-share,#send,.action-pink{background:#E82D69;color:#fff}
@media(max-width:350px){.sheet{padding-left:24px;padding-right:8px}.sheet .field{padding-left:7px;padding-right:7px}.sheet .field label{font-size:13px}.sheet .heart{font-size:13px;padding-left:7px;padding-right:7px}.sheet .answer{font-size:15px}}
/* Solid paper / three persistent accent colors. */
:root{}
html,body,button,input,select,textarea,dialog{font-family:var(--ui-font)}
body{background:#faf7ef;color:#40274f;font-weight:400}
.color-lavender,.sheet{--paper-bg:#fdfbff;--paper-band:#cfbde4;--paper-edge:#d9cae6;--paper-sticker:#f1e9f8}
.sheet.color-pink,.color-pink{--paper-bg:#fffcfd;--paper-band:#edbfd1;--paper-edge:#e9ccd8;--paper-sticker:#fceaf1}
.sheet.color-mint,.color-mint{--paper-bg:#fbfefc;--paper-band:#badbcf;--paper-edge:#c9dfd5;--paper-sticker:#e8f4ee}
.sheet{filter:drop-shadow(0 3px 4px #4b335115)}
.sheet::before{box-shadow:inset 0 0 0 1px var(--paper-edge)}
.sheet .field,.sheet .portrait{border-color:var(--paper-edge)}
.sheet .field label,.sheet .word-area>label{background:var(--paper-sticker);border-color:var(--paper-edge)}
.sheet .answer,.sheet .heart,.sheet .author{font-weight:400}
.sheet .profile h2{font-family:var(--ui-font);font-weight:700;font-size:21px}
.sheet .nickname-label{font-size:13px}
.sheet .answer.placeholder,.muted,.note{color:#705b7b}
.sheet .heart{filter:drop-shadow(0 1px 0 var(--paper-edge))}
.paper-panel{background:#faf7ef}
.color-picker{border:0;padding:0;margin:18px 0 22px;min-width:0}
.color-picker legend{font-weight:700;font-size:14px;margin-bottom:10px}
.color-picker>div{display:flex;gap:6px}
.color-picker .color-option{display:flex;position:relative;flex:1;align-items:center;justify-content:center;gap:5px;border:1px solid #d4c8db;border-radius:12px;padding:11px 3px;margin:0;background:#fff;font-size:12px;cursor:pointer;min-height:46px}
.color-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.color-option:has(input:checked){border:2px solid #725086;padding:10px 2px;background:var(--paper-sticker);font-weight:700}
.color-option:has(input:focus-visible){outline:3px solid #E82D69;outline-offset:2px}
.color-option .swatch{width:14px;height:14px;border-radius:50%;background:var(--paper-band);flex-shrink:0}
.intro{text-align:center}
.intro h1{font-size:25px;font-weight:700;line-height:1.6;margin:15px -4px 12px}
.intro-description{font-size:14px;line-height:1.9;margin:0 0 22px}
.example-caption{font-weight:700;font-size:13px;margin:0 0 0;color:#6a487d}
.example-caption span{font-weight:400;margin-left:8px}
.profile-fan{position:relative;isolation:isolate;width:calc(100% + 28px);margin:0 -14px;overflow:hidden;padding:40px 0 32px}
.fan-card{width:calc(100% - 60px);margin:auto}
.fan-center{position:relative;z-index:3}
.fan-left,.fan-right{position:absolute;top:40px;left:30px;transform-origin:50% 80%;pointer-events:none;z-index:1}
.fan-left{transform:translateX(-16px) rotate(-6deg)}
.fan-right{transform:translateX(16px) rotate(6deg);z-index:2}
.profile-fan .sheet{text-align:left}
.profile-fan .sheet-title{font-size:10px}
.intro>.btn{margin:6px 0 4px}
.return-book,.intro-back{display:block;padding:12px;font-size:14px;text-underline-offset:4px}
.intro-steps{list-style:none;counter-reset:step;text-align:left;margin:22px 0 20px;padding:18px 18px;background:#fff9;border:1px solid #e8dfd3;border-radius:16px}
.intro-steps li{counter-increment:step;display:flex;align-items:center;gap:12px;font-size:14px;margin:10px 0}
.intro-steps li::before{content:counter(step);display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#f8e3ec;color:#9a345b;font-weight:700}
/* A single stationery sheet: hierarchy and breathing room, not card stacks. */
.sheet{padding:14px 14px 12px 27px;filter:drop-shadow(0 3px 5px #49365019)}
.sheet::before{border-radius:5px 15px 15px 5px}
.sheet-title{margin-bottom:10px;color:var(--accent-ink);font-weight:700;letter-spacing:.07em}
.sheet,.color-lavender{--accent-ink:#745494;--paper-bg:#fffdff;--paper-band:#cbb4e4;--paper-sticker:#efe5f8}
.sheet.color-pink,.color-pink{--accent-ink:#a64a70;--paper-bg:#fffdfd;--paper-band:#edb4c9;--paper-sticker:#fbe5ed}
.sheet.color-mint,.color-mint{--accent-ink:#3d7b6c;--paper-bg:#fdfffe;--paper-band:#a7d7c5;--paper-sticker:#e2f2eb}
.sheet .profile{min-height:120px;padding:9px 6px 10px;gap:10px;border:0;background:var(--paper-sticker);border-radius:5px 24px 45px 24px;margin-bottom:13px}
.sheet .portrait{width:94px;height:104px;background:none;border:0;border-radius:0}
.sheet .profile h2{font-size:23px;line-height:1.35;margin:1px 0 4px}
.sheet .nickname-label{color:var(--accent-ink);font-size:13px}
.sheet .profile p{font-size:12px;line-height:1.5}
.sheet .grid{gap:16px;margin-top:9px}
.sheet .field,.sheet .grid .field:nth-child(2){background:transparent;border:0;border-radius:0;min-height:88px;padding:0 0 10px;border-bottom:1px solid var(--paper-edge)}
.sheet .field label,.sheet .word-area>label{font-family:var(--ui-font);font-size:13px;font-weight:700;line-height:1.5;color:var(--accent-ink);border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:0 0 6px;display:block}
.sheet .answer{font-family:var(--ui-font);font-size:15px;font-weight:400;font-style:normal;line-height:1.55;color:#402b4b}
.sheet .answer.empty-answer{background:none;min-height:38px}
.sheet .answer.placeholder{font-family:var(--ui-font);font-size:13px;color:#75677d}
.sheet .word-area{margin:13px 0 7px;padding:0}
.sheet .word-area>label{text-align:center;margin:0 0 4px}
.sheet .hearts{display:flex;justify-content:space-between;gap:3px;min-height:100px;padding:0;border:0}
.sheet .heart{position:relative;isolation:isolate;background:none;filter:none;clip-path:none;display:flex;align-items:center;justify-content:center;width:32.6%;height:100px;padding:0 0 15px;font:400 14px/1.35 var(--ui-font);color:#402b4b}
.sheet .heart::before{content:'';position:absolute;z-index:-1;inset:0;background:var(--paper-sticker);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 94C38 82 3 59 3 31C3 7 34 0 50 22C66 0 97 7 97 31C97 59 62 82 50 94Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.heart-word{display:block;max-width:72%;overflow-wrap:anywhere;text-align:center;font:inherit}
.sheet .last{margin-top:12px;min-height:80px;padding:8px 10px 10px;border:0;border-radius:0 18px 0 18px;background:var(--paper-sticker)}
.sheet .last label{color:var(--accent-ink)}
.sheet .author{font-family:var(--ui-font);font-size:14px;padding:9px 0 0;min-height:36px;line-height:1.5}
.sheet [data-field]:hover{box-shadow:none;background-color:#ffffff80}
.color-picker{margin:12px 0 15px}
.color-picker legend{font-size:13px;margin-bottom:7px}
.color-picker .color-option{border:0;background:transparent;padding:8px 3px;min-height:42px;gap:5px}
.color-option .swatch{width:20px;height:20px;border:2px solid white;box-shadow:0 0 0 1px var(--paper-band)}
.color-option:has(input:checked){border:0;background:var(--paper-sticker);padding:8px 3px}
.color-option:has(input:checked) .swatch::after{content:'✓';display:block;font-size:12px;line-height:16px;text-align:center;color:#402b4b;font-weight:700}
/* Compact overview, with full-size reading in the accessible sample dialog. */
#app:has(.intro){padding-top:10px}
#app:has(.intro) header.top{margin-bottom:8px}
.intro h1{font-size:23px;line-height:1.45;margin:8px 0}
.intro-description{font-size:13px;line-height:1.6;margin:0 0 9px}
.example-caption{font-size:12px;margin:0}
.profile-fan{height:350px;padding:0;margin:0 -14px;overflow:hidden}
.fan-card,.fan-left,.fan-right,.fan-center{position:absolute;top:20px;left:calc(50% - 86px);width:172px;height:320px;margin:0;padding:0;background:none;border:0;border-radius:6px;transform-origin:50% 80%;pointer-events:auto;cursor:zoom-in}
.fan-left{transform:translateX(-63px) rotate(-10deg);z-index:1}
.fan-right{transform:translateX(63px) rotate(10deg);z-index:2}
.fan-center{transform:rotate(-2deg);z-index:3}
.mini-sheet{width:330px;transform:scale(.52);transform-origin:top left;pointer-events:none}
.mini-sheet .sheet{width:330px}
.fan-card:focus-visible{outline:3px solid #E82D69;outline-offset:3px;z-index:4}
.intro>.btn{margin:3px 0 0;padding:13px 12px}
.return-book{padding:9px;font-size:13px}
.intro-steps{margin-top:12px}
.sample-nav{display:flex;justify-content:space-between;gap:2px}
.sample-nav .text{font-size:13px;padding:10px 6px}
.sample-nav [aria-pressed=true]{font-weight:700;color:#ad315e}
@media(max-height:700px){.profile-fan{height:305px}.fan-card{top:10px}.mini-sheet{transform:scale(.46)}.fan-card{width:152px;height:290px;left:calc(50% - 76px)}.intro h1{font-size:22px;margin:5px 0}.intro-description{margin-bottom:5px}}
.profile-fan{height:390px}
.fan-card{height:360px}
@media(max-height:700px){.profile-fan{height:330px}.fan-card{height:310px}}/* Matched to diagnosis ui-refresh.css (ui-fix-v37), observed 2026-11-01. */

:root{}
html,body,button,input,select,textarea,dialog,h1,h2,h3,.sheet *{font-family:var(--ui-font)}
body{font-size:15px;color:#30232e;background:#fff}
h1{font-size:25px;font-weight:700;line-height:1.55}
input,textarea,select{font-size:16px}
[hidden]{display:none!important}
a,.text,.intro-back,.return-book{text-decoration:none}
.text{display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;border-radius:12px}
.text:hover,.book-top-link:hover{background:#f7eff3}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #E82D69;outline-offset:3px}
header.top{min-height:48px;margin-bottom:16px;gap:16px}
.top .brand{display:inline-flex;align-items:center;min-height:44px;min-width:0}
.top .brand img{display:block;width:160px;height:auto;max-width:100%;object-fit:contain}
.top .badge{background:none;border:0;padding:0;font-size:13px;font-weight:700;color:#5d525c;white-space:nowrap}
.book-top-link,.intro-back{display:inline-flex;align-items:center;min-height:44px;padding:9px 12px;font-size:14px;border-radius:12px;font-weight:700}
.intro-back{border:1px solid #e4dce6;margin:12px 0}
.btn{font-size:15px;font-weight:700;border-radius:24px}
.intro h1{font-family:var(--ui-font);font-size:25px;line-height:1.5;margin:12px 0}
.intro-description{font-size:15px;line-height:1.8;margin-bottom:16px}
.example-caption{font-size:12px;font-weight:700;color:#6c5a69}
.profile-fan{height:410px;width:calc(100% + 28px);margin:0 -14px;overflow:hidden;position:relative}
.profile-fan::after{content:'';position:absolute;inset:auto 0 0;height:175px;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.88) 65%,#fff 100%);z-index:5;pointer-events:none}
.fan-card,.fan-left,.fan-right,.fan-center{width:calc(100% - 64px);height:700px;left:32px;top:34px;transform-origin:50% 65%;pointer-events:auto}
.mini-sheet{width:100%;transform:none;pointer-events:none}
.mini-sheet .sheet{width:100%}
.fan-left{transform:translateX(-24px) rotate(-7deg);z-index:1}
.fan-right{transform:translateX(24px) rotate(7deg);z-index:2}
.fan-center{transform:rotate(-1deg);z-index:3}
.intro>.btn{position:relative;z-index:6;margin:0 0 16px;padding:15px 12px;background:#E82D69;min-height:52px}
.intro-steps{padding:10px 0;margin:20px 0;background:none;border:0;border-radius:0}
.intro-steps li{align-items:flex-start;margin:0;padding:17px 0;gap:12px}
.intro-steps li::before{margin-top:1px;width:26px;height:26px;background:#fde8ef;color:#c8265c;font-size:13px}
.intro-steps h2{font-size:16px;line-height:1.6;font-weight:700;margin:0 0 4px}
.intro-steps p{font-size:14px;line-height:1.8;margin:0;color:#60505c}
.sheet .field label,.sheet .word-area>label{font-size:13px;font-weight:700}
.sheet .answer{font-family:var(--ui-font);font-size:15px;line-height:1.55;font-weight:400}
.sheet .profile h2{font-family:var(--ui-font);font-size:23px;font-weight:700}
.sheet-title{justify-content:flex-end;font-size:10px}
.empty-character{display:flex;width:100%;align-items:center;gap:12px;padding:22px 16px;background:#fff7fa;border:1px solid #e9cbd7;border-radius:18px;text-align:left;min-height:132px}
.empty-character-art{font-size:42px;color:#E82D69}
.empty-character>span:nth-child(2){flex:1;min-width:0}
.empty-character strong{display:block;font-size:17px;line-height:1.7}
.empty-character>span:nth-child(2)>span{display:block;font-size:13px;line-height:1.7;color:#735f6e;margin-top:4px}
.selected-profile{gap:16px;padding:16px;background:#fff7fa;border:1px solid #ead7df;border-radius:18px}
.selected-profile strong{display:block;font-size:20px;line-height:1.6;overflow-wrap:anywhere;font-weight:700}
.selected-profile>div:last-child{min-width:0;flex:1}
.character-option span{font-size:14px;font-weight:700;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.character-option[aria-pressed=true]{border-color:#E82D69;background:#fff1f6;box-shadow:0 0 0 1px #E82D69}
.character-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:12px 0 18px;border-bottom:2px solid #f3bdd0;border-radius:0;padding:0;background:none}
.character-tabs button{display:flex;align-items:center;justify-content:center;min-height:68px;padding:10px 4px;border:0;border-radius:4px 4px 0 0;background:#fff;color:#4D4650;font:700 16px/1.5 var(--ui-font);box-shadow:none}
.character-tabs [data-kind=flowers][aria-pressed=true]{background:#E82D69;color:#fff;font-weight:700}
.character-tabs [data-kind=insects][aria-pressed=true]{background:#70C9E0;color:#302A32;font-weight:700}
.character-tabs[data-active-kind=insects]{border-bottom-color:#70C9E0}
.color-option:has(input:checked) .swatch::after{content:none}
.color-option:has(input:checked){outline:2px solid #8d6d9f;outline-offset:-2px}
.paper-panel{background:#fff}
#app:has(.intro) header.top{margin-bottom:32px}
.character-option .character-number,.character-number{display:block;font-size:12px;font-weight:700;line-height:1.5;color:#756573;text-align:left;letter-spacing:.04em;margin-bottom:5px}
.character-option .character-number{padding:0 3px}
/* Stationery edition: pattern stays outside the single solid sheet. */
:root{}
.book-surround{margin:0 -7px;padding:20px 10px 18px;border-radius:20px;background:repeating-linear-gradient(0deg,#b69bce10 0 10px,transparent 10px 20px),repeating-linear-gradient(90deg,#b69bce10 0 10px,transparent 10px 20px),#f4eef9;text-align:center}
.home-title{display:inline-block;max-width:100%;background:#fff;padding:10px 17px;border-radius:5px 10px 6px 9px;margin:0 0 6px;box-shadow:0 2px 5px #56336912;font-size:21px;line-height:1.5;overflow-wrap:anywhere;transform:rotate(-1deg)}
.book-surround .blank-guide{font-size:12px;font-weight:400;margin:7px 0 15px}
.book-surround .sheet{text-align:left;filter:drop-shadow(0 4px 5px #4b335120)}
.home-actions{text-align:center;padding-top:12px}
.home-actions .invite-copy{font-size:14px;margin:6px 0 12px}
.home-actions #share{margin-bottom:4px;min-height:54px}
.quiet-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;border:0;border-radius:12px;background:transparent;color:#72526e;font:700 13px/1.6 var(--ui-font);cursor:pointer}
.quiet-button:hover,.small-edit:hover{background:#f7edf5}
.inbox-summary{margin-top:14px;padding:0;border:0;background:none}
.inbox-entry{display:flex;align-items:center;gap:7px;width:100%;padding:18px 14px;background:#fff;border:1px solid #e8deea;border-radius:15px;font-size:15px;text-align:left}
.inbox-entry>span{margin-left:auto;font-size:23px;color:#9a809e}
.empty-inbox{color:#76657b;font-size:14px;line-height:1.8;text-align:center;padding:12px;margin:0}
.site-footer{margin:24px 0 5px;text-align:center}
.site-footer .diagnosis-link{display:inline-flex;align-items:center;min-height:44px;width:auto;padding:8px 12px;background:none;border:0;border-radius:8px;color:#837183;font-size:12px;font-weight:400}
.sheet .prose-profile{position:relative;display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:start;padding:12px 9px 13px;background:var(--paper-sticker);border-radius:7px 22px 7px 22px;min-height:0;margin:0 0 12px}
.sheet .profile-character{min-width:0;text-align:center}
.sheet .profile-character .portrait{width:100%;height:112px;margin:0;background:none;border:0}
.sheet .profile-character .diagnosis-name{font:700 13px/1.5 var(--ui-font);overflow-wrap:anywhere;margin:3px 0 0;color:#49304e}
.sheet .profile-sentences{font:400 12px/1.8 var(--ui-font);min-width:0;padding:0}
.sheet .profile-sentences p{font:inherit;color:#4f3658;margin:0 0 6px}
.sheet .profile-sentences p:last-child{margin-bottom:0}
.written-blank{display:inline-block;background:#fff;border-radius:4px;padding:1px 6px;max-width:100%;overflow-wrap:anywhere;vertical-align:middle;font-size:13px;color:#39243f}
.sheet .nickname-value{font-family:var(--ui-font);font-size:21px;font-weight:400;line-height:1.5;margin:3px 0;min-width:65px;padding:0 7px}
.small-edit{position:absolute;right:7px;bottom:-12px;min-width:48px;min-height:32px;padding:5px 9px;background:#fff;border:1px solid var(--paper-edge);border-radius:12px;font:700 12px/1.4 var(--ui-font);color:#755a7c}
.sheet .answer:not(.placeholder),.sheet .heart-word,.sheet .author-name{font-family:var(--ui-font);font-weight:400;font-size:16px;line-height:1.5}
.sheet .heart-word{font-size:14px;line-height:1.35}
.sheet .field label,.sheet .word-area>label{font:700 13px/1.5 var(--ui-font)}
.sheet .grid{margin-top:12px}
.sheet .wide-fields{display:grid;gap:10px;margin-top:8px}
.sheet .wide-fields .field{min-height:58px;padding:0 0 8px;width:100%;margin:0}
.sheet .wide-fields .field.last{min-height:67px;padding:8px 10px;background:var(--paper-sticker)}
.sheet .wide-fields .field label{margin-bottom:5px}
.sheet .answer.empty-answer{min-height:27px}
.sheet .field-joy label{white-space:normal}
.sheet .author{font-family:var(--ui-font);font-size:12px}
.sheet .author-name{font-size:15px}
.profile-entry{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:start;padding:16px 12px;border-radius:8px 24px 8px 24px;background:var(--paper-sticker);margin:18px 0}
.entry-character{min-width:0;text-align:center}
.entry-character .form-label{font-size:12px;margin:0 0 7px;text-align:left}
.entry-character .selected-profile{display:block;background:transparent;border:0;padding:0;min-height:0}
.entry-character .portrait{width:100%;height:120px;background:none;border:0}
.entry-character .selected-profile strong{font-size:14px;line-height:1.6;text-align:center}
.entry-character .character-number{font-size:11px;text-align:center;margin:4px 0}
.entry-character .quiet-button{font-size:12px;padding:6px 2px}
.entry-character .empty-character{display:flex;flex-direction:column;padding:12px 5px;gap:5px;min-height:160px;background:#ffffffb3}
.entry-character .empty-character strong{font-size:13px}
.entry-character .empty-character>span:nth-child(2)>span{font-size:11px}
.entry-character .empty-character-art{font-size:36px}
.entry-sentences{min-width:0;font-size:13px;line-height:1.7}
.form .entry-sentences label{font-size:13px;line-height:1.7;margin:0;font-weight:400}
.form .entry-sentences label[for=owner-nickname]{font-weight:700;font-size:12px}
.entry-line{margin:8px 0!important}
.entry-line small{font-size:10px;color:#7b6881;font-weight:400}
.form .entry-sentences input,.form .entry-sentences select{width:100%;min-width:0;background:#fff;border:1px solid #dccde5;border-radius:5px;padding:8px 5px;font:400 16px/1.5 var(--ui-font);margin:4px 0}
.sentence-selects{display:flex;gap:5px;min-width:0}
.sentence-selects select{flex:1;width:50%!important}
.entry-sentences .nickname-help{font-size:11px;margin:5px 0 12px}
.sticker-title{position:relative;padding:3px 20px 7px;isolation:isolate}
.title-kicker{display:block;font:700 17px/1.6 var(--ui-font);color:#54364e;margin-bottom:7px}
.title-main{display:block;font:700 46px/1.4 var(--ui-font);letter-spacing:.015em;color:#d73370;-webkit-text-stroke:7px #fff;paint-order:stroke fill;text-shadow:0 5px 0 #f6b6cc,2px 7px 0 #f6b6cc;transform:rotate(-2deg)}
.title-heart,.title-star{position:absolute;color:#ec89b0;font-size:23px;font-weight:700;line-height:1;z-index:-1}
.title-heart{left:3px;bottom:24px;transform:rotate(-15deg)}
.title-star{right:4px;top:33px;color:#bd9bcf}

.sheet .grid .field{min-height:80px}
.entry-character .quiet-button{padding-left:0;padding-right:0;font-size:11px;white-space:nowrap}
/* Profile v11: explicit font roles and beige graph-paper exterior. */


:root{}
body{background-color:#faf6ed;background-image:linear-gradient(#dfd3be55 1px,transparent 1px),linear-gradient(90deg,#dfd3be55 1px,transparent 1px);background-size:24px 24px}
#app{max-width:440px}
.book-surround{background:none;padding-top:20px}
.sheet .prose-profile{grid-template-columns:76px minmax(0,1fr);gap:4px 8px;padding:10px 9px 12px}
.sheet .profile-caption,.profile-entry .profile-caption{grid-column:1/-1;font:400 20px/1.3 var(--ui-font);margin:0 0 3px;text-align:left;color:#513659}
.sheet .profile-character .portrait{height:88px}
.sheet .nickname-sentence{align-self:center;font:400 12px/1.8 var(--ui-font);margin:0;min-width:0;overflow-wrap:anywhere}
.sheet .nickname-sentence>span:last-child{display:inline;white-space:nowrap}
.sheet .nickname-value{font:400 19px/1.4 var(--ui-font);min-width:0;padding:0 4px;margin:0 3px 0 0}
.sheet .diagnosis-name{grid-column:1/-1;white-space:nowrap;font:700 14px/1.6 var(--ui-font);margin:1px 0 6px;color:#49304e;overflow:visible;letter-spacing:0}
.sheet .profile-sentences{grid-column:1/-1;font:400 14px/1.7 var(--ui-font)}
.sheet .profile-sentences p{margin:0 0 4px;font:inherit}
.sheet .profile-sentences .written-blank{font:400 17px/1.4 var(--ui-font);padding:0 4px}
.birth-blood{display:flex;align-items:center;gap:10px;white-space:nowrap}
.birth-part,.blood-part{display:inline-flex;align-items:center;gap:2px}
.likes-line .written-blank{white-space:pre-wrap;overflow-wrap:anywhere}
.sheet .owner-profile{padding-bottom:52px}
.small-edit{bottom:8px;right:9px;min-height:36px;min-width:58px;background:#E82D69;color:#fff;border:0;border-radius:10px}
.small-edit:hover{background:#d4235e}
.sheet .field label,.sheet .word-area>label,.sheet .sheet-title,.sheet .author{font-family:var(--ui-font);font-weight:400;font-size:15px}
.sheet .answer:not(.placeholder),.sheet .heart-word,.sheet .author-name{font-family:var(--ui-font);font-weight:400;font-size:18px;line-height:1.45}
.sheet .heart-word{font-size:16px;line-height:1.25}
.form input,.form select,.form textarea,dialog textarea,#custom-word,.selected-word>span{font-family:var(--ui-font);font-weight:400}
.form .entry-sentences input,.form .entry-sentences select{font-family:var(--ui-font);font-size:18px}
.profile-entry{display:block}
.entry-character .selected-profile{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;text-align:left;gap:12px}
.entry-character .portrait{height:100px}
.entry-character .selected-profile strong{white-space:nowrap;font:700 14px/1.6 var(--ui-font)}
.entry-character .character-number{text-align:left}
.entry-sentences{margin-top:14px}
.form .entry-sentences label,.entry-line{font-family:var(--ui-font);font-size:16px}
.form .entry-sentences label[for=owner-nickname]{font:400 16px/1.6 var(--ui-font)}
.form .entry-sentences label .unread,.entry-line small{font-family:var(--ui-font)}
.entry-line>input#owner-nickname{display:inline-block;width:145px;margin-right:5px}
.sentence-selects{align-items:center;justify-content:flex-start;gap:4px}
.sentence-selects select{flex:none;width:75px!important}
.form .entry-sentences select[name=blood],.form .entry-sentences select[name=mbti]{display:inline-block;width:130px;margin-left:5px}
.arrow-action{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding-right:22px}
.btn.arrow-action{display:flex}
.nav-arrow{flex:0 0 18px;width:18px;height:18px;vertical-align:middle}
.arrow-left{transform:rotate(180deg)}
.inbox-entry.arrow-action{justify-content:flex-start;gap:14px}
.inbox-entry>span[aria-hidden=true]:empty{display:none}
.inbox-entry .nav-arrow{margin-left:auto}
.intro-title{font:700 25px/1.65 var(--ui-font);letter-spacing:.01em;margin:0 0 16px;padding:0 12px;text-shadow:none;transform:none;-webkit-text-stroke:0}
.intro{background:#fff;margin:0 -14px;padding:24px 14px}
#app:has(.intro) header.top{margin-bottom:12px}
.character-grid{grid-template-columns:1fr}
.character-option{display:grid;grid-template-columns:80px minmax(0,1fr);text-align:left;column-gap:10px}
.character-option img{grid-row:1/3;width:80px;height:90px}
.character-option .character-number{grid-column:2;grid-row:1;align-self:end}
.character-option>span:last-child{grid-column:2;grid-row:2;align-self:start;white-space:nowrap;font:700 14px/1.5 var(--ui-font)}
.sheet .prose-profile{grid-template-columns:62px minmax(0,1fr);column-gap:6px}
.sheet .nickname-sentence{font-size:12px}
.sheet .nickname-value{font-size:18px}
.edit-birth-blood{display:flex;align-items:center;gap:3px;white-space:nowrap;font:400 13px/1.5 var(--ui-font)}
.form .edit-birth-blood select{width:43px;flex:none;padding:7px 1px;font-size:17px}
.form .edit-birth-blood label{display:flex;align-items:center;font:inherit;gap:2px}
.form .edit-birth-blood select[name=blood]{width:77px;margin-left:0}
/* Restore the preceding character-led profile composition. */
.sheet .restored-profile{grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:start;padding:12px 9px 48px}
.sheet .restored-profile .profile-character{grid-column:1;grid-row:1}
.sheet .restored-profile .profile-character .portrait{width:100%;height:112px}
.sheet .restored-profile .profile-character .diagnosis-name{white-space:normal;font:700 13px/1.5 var(--ui-font);margin:3px 0 0;text-align:center}
.sheet .restored-profile .profile-sentences{grid-column:2;grid-row:1;font:400 14px/1.7 var(--ui-font)}
.sheet .restored-profile .profile-sentences p{margin:0 0 6px}
.sheet .restored-profile .nickname-value{font:400 21px/1.5 var(--ui-font);margin:3px 0;min-width:65px;padding:0 7px}
.sheet .restored-profile{padding-bottom:13px}
.sheet .restored-profile.owner-profile{padding-bottom:48px}

.sheet .sheet-title{justify-content:space-between;align-items:center}
.sheet .sheet-title .paper-profile-title{font:400 20px/1.2 var(--ui-font);color:var(--paper-ink);letter-spacing:.025em}

@font-face{font-family:'Zen Maru Gothic';src:url('fonts/ZenMaruGothic-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Zen Maru Gothic';src:url('fonts/ZenMaruGothic-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--ui-font:'Zen Maru Gothic','Hiragino Maru Gothic ProN','Hiragino Sans','Yu Gothic',Meiryo,sans-serif}
html,body,body *{font-family:var(--ui-font)!important}
body,p,input,textarea,select,.answer,.heart-word,.author-name,.written-blank,.intro-description,.muted,.note{font-weight:400!important}
h1,h2,h3,h4,strong,label,legend,button,.btn,.text,.diagnosis-name,.paper-profile-title,.form-label,.nickname-label{font-weight:700!important}
.sheet .field label,.sheet .word-area>label,.sheet .sheet-title{font-weight:700!important}

.sheet.color-lavender .paper-profile-title{color:#8060a3}
.sheet.color-pink .paper-profile-title{color:#bb527c}
.sheet.color-mint .paper-profile-title{color:#3d8774}
.sheet .restored-profile .profile-sentences .compact-blood-mbti{white-space:nowrap;font-size:11px;line-height:1.8;letter-spacing:-.1px}
.sheet .restored-profile .compact-blood-mbti .written-blank{font-size:12px;padding:0 1px;vertical-align:baseline}

/* Use the actual text-column width, including smaller intro cards and dialogs. */
.sheet .restored-profile .profile-sentences{container-type:inline-size}
.sheet .restored-profile .profile-sentences .compact-blood-mbti{font-size:clamp(11px,calc(5.77cqi + 2.8px),14px);letter-spacing:-.1px}
.sheet .restored-profile .compact-blood-mbti .written-blank{font-size:clamp(12px,calc(9.62cqi - 1.65px),17px)}
.nickname-answer-line{display:block;line-height:1.7;overflow-wrap:anywhere}
.sheet .restored-profile .nickname-answer-line .nickname-value{display:inline;min-width:0;max-width:100%;font-size:clamp(14px,10cqi,21px);padding:0 3px;margin:0 3px 0 0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.nickname-tail{font-size:clamp(11px,7.3cqi,14px);white-space:nowrap}

/* Intro-only answer refinement; match the diagnosis header's 180px wordmark. */
.top .brand img{width:180px;height:auto}
.profile-fan .sheet .answer:not(.placeholder){font-size:15px;line-height:1.55}
.profile-fan .sheet .heart-word,.profile-fan .sheet .author-name{font-size:14px;line-height:1.4}

header.top{position:relative;z-index:30}
.top .menu-toggle{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:none;color:#493546;border-radius:6px;flex:none}
.menu-toggle svg{display:block;width:24px;height:24px}
.top .header-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:31;display:grid;min-width:220px;max-width:calc(100vw - 28px);padding:8px;background:#fff;border:1px solid #efd5df;border-radius:12px;box-shadow:0 4px 16px #302A320C}
.top .header-menu[hidden]{display:none}
.header-menu a{display:flex;align-items:center;min-height:48px;padding:10px 16px;border-radius:6px;color:#493546;font-size:14px;font-weight:700;text-decoration:none}
.header-menu a:hover{background:#FFF3F7}

/* Edit-only grouping and spacious selectors, independent of the paper layout. */
#profile-form .entry-character{background:#fff;border:1px solid #ded1e8;border-radius:16px;padding:16px;margin:12px 0 24px}
#profile-form .entry-character .form-label{margin:0 0 12px}
#profile-form .entry-character .selected-profile{background:none;border:0}
#profile-form #choose-character{margin:12px auto 0;padding:10px 18px;border:1px solid #e5d8ec;background:#faf7fc;border-radius:10px;font-size:13px;min-height:44px}
#profile-form #choose-character[hidden]{display:none}
#profile-form .entry-line{margin:18px 0!important}
#profile-form .birthday-select-row{display:flex;align-items:center;gap:20px;margin-top:8px}
#profile-form .date-part{display:flex;align-items:center;gap:10px}
#profile-form .date-unit{font-size:14px;color:#95839e;font-weight:400}
#profile-form .entry-sentences select{appearance:none;-webkit-appearance:none;min-height:48px;padding:10px 34px 10px 14px;border:1px solid #ded3e5;border-radius:10px;font-size:16px;line-height:1.5;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23B2A1BE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/16px 16px no-repeat;color:#49365f;margin:0}
#profile-form .birthday-select-row select{width:84px}
#profile-form .entry-sentences select:has(option[value=""]:checked){color:#aa99b5}
#profile-form .entry-sentences select option{color:#49365f;background:#fff}
#profile-form .entry-sentences .separate-select select{display:block;width:100%;max-width:220px;margin:8px 0 0}
#profile-form .entry-sentences input::placeholder{color:#aa99b5;opacity:1}
#profile-form .entry-sentences select:focus-visible{outline:2px solid #b894cc;outline-offset:2px}

/* Compact edit card: large art, name and change action beside it. */
#profile-form .entry-character{padding:12px;margin:10px 0 16px}
#profile-form .entry-character .form-label{margin:0 0 6px}
#profile-form .entry-character .selected-profile{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;align-items:center}
#profile-form .entry-character .portrait{width:140px;height:150px;margin:0}
#profile-form .entry-character .selected-profile>div:last-child{min-width:0;text-align:left}
#profile-form .entry-character .selected-profile strong{display:block;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:14px;line-height:1.6}
#profile-form #choose-character{display:flex;margin:10px 0 0;width:100%;padding:8px 5px;font-size:12px;white-space:normal;line-height:1.5}
#profile-form .entry-character .character-number{margin:0 0 4px}
#profile-form .entry-sentences{margin-top:0}
#profile-form .entry-sentences .nickname-help{margin:3px 0 7px;font-size:11px;line-height:1.6}
#profile-form .entry-line{margin:12px 0!important}
#profile-form .nickname-help+.entry-line{margin-top:0!important}
#profile-form .profile-entry{margin:12px 0;padding-top:12px;padding-bottom:12px}
#app:has(#profile-form)>h1{margin-bottom:8px}
#app:has(#profile-form)>p.muted{margin:6px 0 12px}
@media(max-width:360px){#profile-form .entry-character .selected-profile{grid-template-columns:125px minmax(0,1fr);gap:8px}#profile-form .entry-character .portrait{width:125px;height:140px}}

#profile-form .entry-character .selected-profile strong{font-size:21px;line-height:1.45;letter-spacing:.01em}
#profile-form .entry-character .character-number{font-size:12px;margin-bottom:6px}
#profile-form #choose-character{margin-top:14px}

/* Give the owner fields breathing room without changing the paper view. */
#profile-form .entry-sentences{padding:0 12px 4px}
#profile-form .required-pill{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:6px;padding:2px 8px;border:1px solid #dba3ba;border-radius:999px;color:#a34970;font-size:10px;font-weight:700;line-height:1.5;white-space:nowrap;background:#fff9}
#profile-form .nickname-help+.entry-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px}
#profile-form .entry-line>input#owner-nickname{flex:0 1 145px;max-width:100%;margin-right:0}

/* Keep formal names on one line within the existing character column. */
.sheet .restored-profile .profile-character{container-type:inline-size}
.sheet .restored-profile .profile-character .diagnosis-name{white-space:nowrap;overflow-wrap:normal;word-break:normal;letter-spacing:0;font-size:min(13px,var(--name-size));line-height:1.5}

/* Site chrome only: paper themes and answer layouts remain independent. */
:root{--site-ink:#3F3030;--site-border:#D8CCC3;--site-pink:#E82D69;--site-tint:#FFF0F5;--site-beige:#faf7ee}
body,dialog{color:var(--site-ink)}
.top .menu-toggle,.header-menu a{color:var(--site-ink)}
.top .header-menu{border-color:var(--site-border);box-shadow:0 4px 16px #3f303014}
.header-menu a:hover{background:var(--site-tint)}
.btn{background:var(--site-pink);color:#fff}
.btn.secondary,.quiet-button,.text:not(.sheet *),.back-button,.nav button{background:#fff;color:var(--site-ink);border:1px solid var(--site-border)}
.quiet-button:hover,.text:hover,.back-button:hover{background:var(--site-tint)}
.muted:not(.sheet *),.note:not(.sheet *),.eyebrow,.character-number,.list-item time,.site-footer .diagnosis-link,.example-caption,.example-caption span{color:#705e56;font-size:13px}
.card{border-color:var(--site-border);background:#fff}
.inbox-summary{border:0;margin-top:20px;padding:0}
.inbox-entry{border-color:var(--site-border);padding:18px 22px;color:var(--site-ink);min-height:64px}
.inbox-entry .inbox-label{margin:0;font-size:16px;color:var(--site-ink);display:flex;align-items:center;gap:16px}
.inbox-summary strong,.reply-count,.reply-count strong{color:var(--site-ink)}
.inbox-entry strong{font-size:18px}.inbox-entry .nav-arrow{color:var(--site-ink)}
.list-item{border:1px solid var(--site-border);color:var(--site-ink);gap:12px}.unread{color:#a62950}
.empty-list-message{font-size:16px;line-height:1.9;margin:0 0 20px}
.back-button{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:10px 18px;border-radius:12px;margin:0 0 16px;font-size:14px;font-weight:700;text-decoration:none}
.nav button{display:inline-flex;align-items:center;gap:12px}
dialog,.paper-panel{background:#fff;border:1px solid var(--site-border)}
dialog::backdrop{background:#3f303066}
.panel-head{position:sticky;top:-23px;z-index:20;align-items:center;gap:12px;background:#fff;padding:8px 0 12px;margin-bottom:8px}
.panel-head h2{margin:0;flex:1;font-size:18px;line-height:1.5}
.close{display:grid;place-items:center;background:#f3ede4;color:var(--site-ink);min-width:44px;min-height:44px;border:0}
.paper-panel .panel-head{top:-14px}
dialog input,dialog textarea,.form input,.form select{border-color:var(--site-border);color:var(--site-ink)}
.preview-notice,.share-message{background:var(--site-tint);color:var(--site-ink);border-color:var(--site-border)}
.chip{border-color:var(--site-border);color:var(--site-ink)}.chip.selected{background:var(--site-pink);color:#fff}
.color-option:has(input:checked){outline-color:var(--site-ink)}
#toast{background:var(--site-ink)}
.complete .symbol{color:var(--site-pink)}
#profile-form .profile-entry{background:var(--site-tint);color:var(--site-ink)}
#profile-form .entry-character,#profile-form .entry-sentences input,#profile-form .entry-sentences select{border-color:var(--site-border);color:var(--site-ink)}
#profile-form #choose-character{background:#fff;border-color:var(--site-border);color:var(--site-ink)}
#profile-form .date-unit,#profile-form .nickname-help{color:#705e56}
#profile-form .entry-sentences select:has(option[value=""]:checked),#profile-form .entry-sentences input::placeholder{color:#8b7770}
#profile-form .entry-sentences select option{color:var(--site-ink)}
#profile-form .entry-sentences select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23978275' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.character-option,.empty-character{color:var(--site-ink);border-color:var(--site-border)}
.empty-character{background:var(--site-tint)}
.intro{background:transparent}
.profile-fan::after{background:linear-gradient(to bottom,rgba(250,247,238,0),rgba(250,247,238,.88) 65%,var(--site-beige) 100%)}
.intro>.intro-primary{padding:16px 22px;gap:14px;font-size:15px;white-space:nowrap}
.intro-about{background:#fff;border-radius:20px;padding:26px 20px;margin-top:30px;text-align:left}
.intro-about>h2{font-size:22px;margin:0 0 14px;line-height:1.5}
.about-description{font-size:15px;line-height:1.9;margin:0}
.intro-about>h3{font-size:18px;margin:28px 0 8px}
.intro-about .intro-steps{margin:0;padding:0}
.intro-about .intro-steps li{padding:14px 0;gap:12px;align-items:flex-start}
.intro-about .intro-steps li::before{width:28px;height:28px;background:var(--site-tint);color:var(--site-ink);margin-top:1px}
.intro-steps h4{font-size:16px;line-height:1.65;margin:0 0 5px}
.intro-about .intro-steps p{font-size:14px;line-height:1.8;color:var(--site-ink)}
.prototype-note{font-size:12px;line-height:1.8;color:#705e56;margin:22px 0 0;padding-top:16px;border-top:1px solid var(--site-border)}
.example-caption{font-size:14px;margin:16px 0 0}.example-caption span{font-size:13px}
.site-footer .diagnosis-link{font-size:14px;color:#705e56}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,#profile-form .entry-sentences select:focus-visible{outline:3px solid var(--site-pink);outline-offset:3px}
:root{--site-beige:#faf6ed}
.profile-fan::after{background:linear-gradient(to bottom,rgba(250,246,237,0),rgba(250,246,237,.88) 65%,var(--site-beige) 100%)}
#profile-form .profile-caption{color:var(--site-ink)}
.intro-about p{text-wrap:pretty}
.color-picker .color-option{border-color:var(--site-border);color:var(--site-ink)}
.color-picker .color-option:has(input:checked){border-color:var(--site-border)}
.empty-character>span:nth-child(2)>span{color:#705e56}

/* Light site surfaces; the sheet itself remains untouched. */
:root{--site-ink:#39343A;--site-beige:#FAF9F6}
body{background-color:#FAF9F6;background-image:linear-gradient(#bcb4aa14 1px,transparent 1px),linear-gradient(90deg,#bcb4aa14 1px,transparent 1px)}
.intro-description,.home-title,.blank-guide,.invite-copy,.about-description,.intro-title,.intro-about h2,.intro-about h3,.intro-about h4{color:var(--site-ink)}
.intro>.intro-primary,#share{display:flex;align-items:center;justify-content:center;min-height:52px;height:52px;padding:0 20px;border:0;border-radius:15px;background:#E82D69;background-image:none;box-shadow:none;color:#fff;font-size:15px;font-weight:700;line-height:1.4;letter-spacing:0;text-align:center;white-space:nowrap}
.intro>.intro-primary{margin-top:12px}
#friend-preview{display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;min-height:44px;padding:0 12px;margin:2px auto 0;border:0;background:none;box-shadow:none;border-radius:6px;font-size:14px;font-weight:400!important;line-height:20px;color:var(--site-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:#39343a66}
#friend-preview:hover{text-decoration-color:currentColor;background:none}
.inbox-entry{min-height:64px;border:1px solid #e5dfda;border-radius:15px;box-shadow:none;gap:12px;padding:16px 20px}
.inbox-entry .inbox-label{font-size:15px;display:block;margin:0;color:var(--site-ink)}
.inbox-entry .inbox-count{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;padding:4px 10px;border-radius:999px;min-width:44px;font-size:13px;line-height:1.5;color:var(--site-ink);background:#FFF0F5;white-space:nowrap}
.inbox-entry .nav-arrow{margin-left:0}
.nav-arrow{width:18px;height:18px;stroke-width:1.6}
.site-footer .diagnosis-link{color:#68616a;background:none;box-shadow:none;font-size:13px;font-weight:400!important}
.book-surround{padding-bottom:0}
.book-surround>.sheet{margin-bottom:0}
.home-actions{margin:36px 0 0;padding:0}
.home-actions .invite-copy{margin:0 0 14px;line-height:1.7}
.home-actions #share{margin:0}
.inbox-summary{margin-top:30px;padding:0}
.profile-fan::after{height:105px;background:linear-gradient(to bottom,rgba(250,249,246,0),rgba(250,249,246,.35) 40%,rgba(250,249,246,.85) 80%,#FAF9F6)}
.home-actions #share{height:52px;min-height:52px;padding:0 20px}

/* Route-specific exterior backgrounds; no paper styling is overridden. */
body:has(.intro){position:relative;background:#fff;isolation:isolate}
body:has(.intro)::before{content:'';position:absolute;z-index:-2;inset:0 0 auto;height:740px;pointer-events:none;background:radial-gradient(ellipse at 20% 25%,#ffe5ef 0,transparent 60%),radial-gradient(ellipse at 88% 32%,#fff0f6 0,transparent 55%),linear-gradient(#fff9fc,#fff 90%)}
body:has(.intro)::after{content:'';position:absolute;z-index:-1;left:0;right:0;top:78px;height:178px;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2060%2060%22%3E%3Cpath%20d%3D%22M30%204%2037%2021%2056%2023%2042%2036%2046%2055%2030%2045%2014%2055%2018%2036%204%2023%2023%2021Z%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%224%22%20stroke-dasharray%3D%223%202%22%20stroke-linejoin%3D%22miter%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2060%2060%22%3E%3Cpath%20d%3D%22M30%204%2037%2021%2056%2023%2042%2036%2046%2055%2030%2045%2014%2055%2018%2036%204%2023%2023%2021Z%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%224%22%20stroke-dasharray%3D%223%202%22%20stroke-linejoin%3D%22miter%22/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:28px 28px,22px 22px;background-position:left 6px top 0,right 4px bottom 0}
body:has(.book-surround){background:#FAF9F6;background-image:none}
.intro-about{background:#fff;box-shadow:none;border:0}
body:has(.intro) .profile-fan::after{background:linear-gradient(to bottom,#ffffff00,#ffffff59 40%,#ffffffd9 80%,#fff)}
#friend-preview,#friend-preview:hover,#friend-preview:active{color:#625E66;background:none;border:0;box-shadow:none;text-decoration:none;gap:7px;margin:0 auto;min-height:44px;line-height:20px;font-size:14px}
#friend-preview .preview-eye{display:block;flex:none;width:16px;height:16px}
.btn:not(.secondary),.intro>.intro-primary,.home-actions #share{appearance:none;-webkit-appearance:none;background:#E82D69;background-image:none;border:0;box-shadow:none;text-shadow:none;filter:none}
.btn:not(.secondary)::before,.btn:not(.secondary)::after{content:none;display:none}
body:has(.intro)::after{height:200px}

body:has(.book-surround){background-color:#FAF9F6;background-image:linear-gradient(#bcb4aa14 1px,transparent 1px),linear-gradient(90deg,#bcb4aa14 1px,transparent 1px);background-size:24px 24px}
#share{gap:9px}#share .send-icon{display:block;flex:none;width:18px;height:18px}
#friend-preview{white-space:nowrap}

/* Supplied lettering, preserved as a transparent image. */
#app:has(.intro) header.top{margin-bottom:36px}
.intro{padding-top:0}
.intro h1.intro-title{width:100%;padding:0;margin:0 auto 18px;line-height:0}
.intro-heading-image{display:block;width:100%;height:auto;max-width:100%;margin:0 auto;background:none;border:0;box-shadow:none;filter:none}
body:has(.intro)::after{top:64px;height:38px;background-position:left 6px top 0,right 4px top 4px}
#app:has(.intro) header.top{margin-bottom:27px}
.intro h1.intro-title{width:calc(100% + 14px);margin:-17px -7px 0}
body:has(.intro)::after{top:60px;height:25px;background-size:22px 22px,20px 20px}

/* Intro-only hierarchy and explanatory icons. */
body:has(.intro)::after{content:none;display:none}
.intro .intro-title{position:relative}
.intro .title-star{position:absolute;pointer-events:none;fill:#fff8fb;stroke:#efbad0;stroke-width:1.2;width:20px;height:20px}
.intro .title-star-left{left:6%;top:0}
.intro .title-star-right{right:13%;bottom:5%}
.intro .intro-description{position:relative;margin:0 0 20px;padding-bottom:13px;line-height:1.7}
.intro-description-first{display:block;font-size:14px;color:#39343A}
.intro-description-main{display:block;margin-top:2px;font-size:17px;font-weight:700}
.intro-description-main strong{color:#E82D69}
.description-curve{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:94px;height:10px;fill:none;stroke:#efbdd0;stroke-width:1.4;stroke-linecap:round}
.intro .example-caption{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;font-weight:400!important;line-height:1.5}
.intro .example-caption .example-label{font-size:11px;line-height:16px;padding:3px 9px;border:1px solid #efc6d6;border-radius:999px;background:#fff8fb;color:#725d69;white-space:nowrap}
.intro .example-caption .example-hint{font-size:12px;color:#756f77}
.intro .intro-about{background:#FFF4F8;border:0;box-shadow:none;border-radius:20px;padding:22px 20px}
.intro .intro-about>h2{display:flex;align-items:center;gap:9px;font-size:20px;line-height:1.5;margin:0 0 14px}
.intro-line-icon{display:block;flex:none;color:#E82D69;width:24px;height:24px}
.intro .about-description{font-size:14px;line-height:1.8;text-align:left}
.intro .intro-about>h3{font-size:18px;margin:26px 0 12px}
.intro .intro-about .intro-steps{display:grid;gap:12px;padding:0;margin:0}
.intro .intro-about .intro-steps li{display:flex;align-items:flex-start;gap:10px;margin:0;padding:16px 12px;background:#fff;border:0;border-radius:15px;box-shadow:none}
.intro .intro-steps li::before{content:none;display:none}
.intro .step-symbol{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 38px;height:38px;border-radius:50%;background:#FFF0F5;margin-top:3px}
.intro .step-number{position:absolute;top:-9px;left:-3px;font-size:10px;line-height:16px;font-weight:700;color:#a8637e}
.intro .intro-steps li>div{min-width:0;flex:1}
.intro .intro-steps h4{font-size:15px;line-height:1.6;margin:0 0 5px}
.intro .intro-about .intro-steps p{font-size:13px;line-height:1.8;margin:0}
.intro .prototype-note{font-size:12px;color:#756f77;border:0;padding:0;margin-top:20px}
.intro .title-star-left{top:-3px;bottom:auto}
.intro .title-star-right{top:auto;bottom:10%;fill:#ffe4ef}

/* Simplify the intro ornaments and align step numbers with their titles. */
#app:has(.intro) header.top{margin-bottom:43px}
.intro .intro-description{padding-bottom:0}
.intro .example-caption{gap:4px}
.intro .step-number{position:static;display:inline-block;font-size:11px;line-height:1;vertical-align:2px;color:#ad6a83;margin-right:7px}
.intro .step-symbol{margin-top:0}
.site-footer .retake-diagnosis{display:flex;justify-content:center;align-items:center;min-height:48px;width:100%;padding:12px 18px;border:1px solid #e2c7d2;border-radius:15px;background:#fff;color:#62535b;font-size:14px;font-weight:700;text-decoration:none}
.site-footer .retake-diagnosis:hover{background:#fff4f8}
.intro .example-caption>span{margin:0}

/* Clear list hierarchy and numbered instructions. */
.intro-description-main strong{color:inherit}
.intro .step-number{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;margin-right:7px;border-radius:50%;background:#E82D69;color:#fff;font-size:11px;line-height:1;vertical-align:1px;flex:none}
.intro .intro-steps h4{display:flex;align-items:flex-start}
.intro .step-symbol{background:none;border-radius:0;align-self:center;margin:0;flex-basis:30px;height:32px}

/* Reply cards: name/date on the left, status and chevron at the right. */
.list-item{display:flex;justify-content:flex-start;gap:14px;padding:18px 20px}
.list-item .reply-info{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}
.list-item .reply-status{flex:none;white-space:nowrap;font-size:13px}
.list-item>.nav-arrow{flex:none;width:18px;height:18px}

.site-footer .list-return{gap:12px}
