/* Fixed phone shell, with separate scroll areas for reading and questions. */
.phone.join-mode{height:var(--app-height,100dvh);min-height:0;overflow:hidden}.join-mode #app{height:100%;max-width:600px;margin:auto;display:flex;flex-direction:column}.join-mode .phone-header{width:100%;flex-shrink:0;padding:16px 22px}.gallery-join{width:100%;max-width:460px;display:flex;flex-direction:column;flex:1;min-height:0;padding:22px 23px 20px;text-align:left;overflow:hidden}.join-book-row{display:flex;align-items:center;gap:20px;flex-shrink:0}.join-book-row>img{width:50px;height:74px;object-fit:cover;box-shadow:0 5px 15px #203b2920;border-radius:3px;transform:rotate(-3deg)}.join-book-row h1{font:27px/1.15 Georgia,serif;letter-spacing:-.5px;margin:6px 0 8px}.join-book-row .eyebrow{font-size:8px;color:#869276}.join-book-row .author{font-size:11px}.gallery-join .people-card{flex:1;min-height:0;display:flex;flex-direction:column;padding:20px;margin-top:22px;overflow:hidden}.people-card h2{font-size:23px;margin-bottom:10px;flex-shrink:0}.people-card form{flex-shrink:0}.new-reader-row{display:flex;gap:9px;align-items:stretch}.new-reader-row input{flex:1;min-width:0;font-size:16px;padding:12px}.new-reader-row .primary{margin:0;flex-shrink:0;min-height:48px;padding:10px 16px;font-size:12px}.returning-section{display:flex;flex-direction:column;flex:1;min-height:0;margin-top:22px;border-top:1px solid #e4e7db;padding-top:18px}.returning-label{font-size:11px;color:#819371;flex-shrink:0;margin-bottom:15px}.returning-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;align-content:start;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 0 14px}.person-tile{display:flex;flex-direction:column;align-items:center;gap:9px;min-height:91px;padding:8px 3px;border:1px solid transparent;border-radius:10px}.person-tile:hover,.person-tile:focus-visible{background:#f0f3e6;border-color:#c5d4b5}.person-initials{display:flex;align-items:center;justify-content:center;width:49px;height:49px;border-radius:50%;background:#d8e3c7;color:#4b663e;font:19px Georgia,serif;flex-shrink:0}.person-initials.color-1{background:#e8d9c3;color:#806044}.person-initials.color-2{background:#d2e1df;color:#426d68}.person-initials.color-3{background:#e9d7d6;color:#815d5d}.person-name{font-size:11px;line-height:1.35;text-align:center;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.gallery-join .join-note{font-size:10px;text-align:center;margin-top:14px;flex-shrink:0}
.phone.reader-mode{height:var(--app-height,100dvh);min-height:0;overflow:hidden;overscroll-behavior:none}
.reader-mode #app{height:100%;max-width:600px;margin:auto;display:flex;flex-direction:column;overflow:hidden}
.reader-mode .compact-header{width:100%;padding:10px 16px;min-height:58px;flex-shrink:0;gap:10px}
.reader-mode .compact-header .brand-icon{width:31px;height:31px}.reader-mode .compact-header .brand-icon svg{width:20px;height:20px}
.reader-mode .compact-header .brand{font-size:21px;letter-spacing:-.5px}.reader-mode .compact-header .brand>span{font-size:6px;letter-spacing:1.5px}
.reader-name{margin-left:auto;max-width:76px;min-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#6c8060}
.reader-mode .compact-header .language{margin-left:0;font-size:10px;padding:5px 10px;min-height:30px}
.reader-mode .reader-shell{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding:0 16px calc(8px + env(safe-area-inset-bottom));overflow:hidden}
.reader-title{display:flex;align-items:center;gap:10px;padding:12px 1px 5px;flex-shrink:0}.reader-title h1{font:21px/1.2 Georgia,serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}
.reader-title #connection{font-size:0;flex-shrink:0}.reader-title #connection .status-dot{margin:0;width:6px;height:6px}
.reader-mode .reader-tabs{display:flex;margin:8px 0 10px;gap:18px;flex-shrink:0;min-height:36px}.reader-tabs button{padding:5px 8px;min-height:36px;font-size:11px;flex:1}
.question-count{font-size:9px;background:#dce6d1;padding:1px 6px;border-radius:12px;color:#416a3e}
.reader-panel,.shared-panel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.reader-location{display:flex;align-items:center;gap:10px;min-height:38px;flex-shrink:0;margin-bottom:7px;padding:0 2px}
.reader-location select{font-size:11px;font-weight:600;max-width:45%;flex:1;min-width:0;background:transparent;border:0;color:#527044;padding:8px 0;text-overflow:ellipsis}
.reader-location #phone-position{font-size:9px;color:#8b977d;white-space:nowrap}.reading-language{font-size:10px;min-height:32px;border:1px solid #cbd7bd;border-radius:18px;padding:5px 11px;white-space:nowrap}
.reader-mode .fixed-reader{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 23px 30px;border-radius:12px;scrollbar-width:thin;scrollbar-color:#c0ceb0 transparent;box-shadow:0 3px 15px #183a2307}
.reader-mode .fixed-reader .mobile-original{font-size:23px;line-height:1.7}.reader-mode .fixed-reader .mobile-original[lang=ja]{font-family:'Hiragino Mincho ProN','Yu Mincho',serif;font-size:20px;line-height:1.95}
.reader-mode .fixed-reader .reading-meta{font-size:8px;margin-bottom:15px}
.reader-dock{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:6px 0 0}
.reader-navigation{display:flex;align-items:center;justify-content:space-between;min-height:34px;gap:8px}
.reader-navigation>button:first-child,.reader-navigation>button:last-child{font-size:20px;border:1px solid #d8e0cf;border-radius:50%;width:32px;min-height:32px;flex-shrink:0}
.follow-control{font-size:10px;color:#7b8c6b;min-height:30px;text-align:center}
.reader-voice{display:flex;gap:8px;min-height:48px}
.reader-mode .compact-record{display:flex;flex-direction:row;gap:10px;min-height:48px;border-radius:10px;padding:10px 13px;box-shadow:none;flex:1;animation:none}
.reader-mode .compact-record svg{width:20px;height:20px;margin:0}.reader-mode .compact-record strong{font-size:13px;font-weight:500;line-height:1.3}.reader-mode .compact-record>span{font-size:10px;margin-left:auto;white-space:nowrap;letter-spacing:0}
.reader-mode .compact-record.recording{background:#864944}
.type-quote{width:48px;min-height:48px;flex-shrink:0;border:1px solid #cfd9c3;border-radius:10px;background:#e9ede0;font-size:23px;color:#69845a}
.reader-actions{display:flex;gap:8px;min-height:44px}.reader-actions>button{flex:1;min-width:0;min-height:44px;padding:9px 8px;border-radius:9px;font-size:11px;white-space:nowrap;justify-content:center}
.reader-actions svg{width:16px;height:16px}.reader-actions .primary>span{font-size:15px;margin-left:3px}
.reader-mode .room-warning{padding:7px 10px;font-size:10px;margin:0 0 7px;flex-shrink:0}
.reader-mode #toast,.reader-mode .selection-tools{bottom:calc(173px + env(safe-area-inset-bottom))}
.reader-mode #toast{font-size:12px;max-width:90vw;padding:10px 15px}.reader-mode .selection-tools{left:24px;right:24px;max-width:550px;padding:8px 13px}
.reader-mode .selection-tools>span{font-size:12px}.reader-mode .selection-tools button{min-height:34px}
.shared-heading{display:flex;align-items:center;justify-content:space-between;min-height:34px;gap:12px;flex-shrink:0;margin-bottom:7px;padding:0 2px}
.shared-heading p{font-size:10px;color:#839471}.shared-heading a{font-size:20px;padding:3px 9px}
.question-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1px 1px 20px;scrollbar-width:thin}
.question-card{padding:17px 18px;background:#fffdf7;border:1px solid #e0e5d6;border-radius:11px;margin-bottom:12px;cursor:pointer}
.question-card.chosen{border-color:#879f73;box-shadow:0 0 0 1px #9eb48a38}.question-card:focus-visible{outline:2px solid #6c8c51;outline-offset:1px}
.question-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:9px;color:#8a967e;margin-bottom:12px}.question-meta strong{color:#58744b;font-size:10px;font-weight:500}
.question-card h3{font:20px/1.35 Georgia,serif;overflow-wrap:anywhere;margin-bottom:12px}.question-prompt{font-size:11px;line-height:1.6;color:#8b977f;margin-bottom:14px}
.queued-answer>span{display:block;color:#8c9a7e;letter-spacing:1px;font-size:8px;font-weight:600;margin:18px 0 8px}
.queued-answer>p{font:16px/1.7 Georgia,serif;overflow-wrap:anywhere}.queued-answer>p[lang=ja]{font-family:'Hiragino Mincho ProN','Yu Mincho',serif;font-size:15px;line-height:1.85}
.queue-status{font-size:11px;color:#8e9c7b;padding:7px 0;line-height:1.6}.queue-status .spinner{width:13px;height:13px}.queue-error{color:#a57256}
.queue-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;height:100%;min-height:180px;text-align:center;padding:35px;color:#819575}
.queue-empty>svg{width:33px;height:33px;color:#b79559}.queue-empty h2{font:26px/1.2 Georgia,serif;color:#47633c}.queue-empty p{font-size:13px;line-height:1.8;max-width:275px}
.question-dock{flex-shrink:0;padding:12px 0 0;border-top:1px solid #dfe5d4}.question-dock>div:first-child{font-size:10px;color:#839472;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:10px;padding:0 2px;min-height:17px}
.tool-sheet{width:min(600px,calc(100vw - 24px));height:min(660px,calc(var(--app-height,100dvh) - 40px));max-height:calc(var(--app-height,100dvh) - 24px);margin:auto auto 12px;padding:0;border:1px solid #d7dfca;border-radius:18px;background:#f7f5ee;color:#34442f;box-shadow:0 25px 80px #18342240;overflow:hidden}
.tool-sheet::backdrop{background:#152b2470;backdrop-filter:blur(2px)}.sheet-shell{height:100%;display:flex;flex-direction:column}
.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:19px 22px 14px;border-bottom:1px solid #dfe4d3;gap:15px;flex-shrink:0}.sheet-header h2{font:25px/1.2 Georgia,serif}
.sheet-header button{font-size:27px;width:32px;min-height:32px;border:1px solid #d8e2ca;border-radius:50%;line-height:1}
.sheet-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:20px 22px}.sheet-footer{padding:14px 22px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #dfe5d3;flex-shrink:0}
.sheet-body textarea{font-size:16px;line-height:1.6}.sheet-body .upload-audio{font-size:10px;margin-top:12px}.sheet-context-label{font-size:10px;color:#8a9a79;margin-bottom:13px}
.visible-context{font:17px/1.7 Georgia,serif;color:#7b8c6a;margin:0 0 22px;padding-left:15px;border-left:2px solid #b7975b;max-height:120px;overflow:auto}
.sheet-body #search-status{margin:16px 0}.sheet-body .candidate{padding:15px}.sheet-body .candidate p{font-size:15px}.sheet-body #candidates h3{font-size:12px}
.projector.projecting-question .column-labels,.projector.projecting-question .projector-reading{visibility:hidden}
.projector.projecting-question .display-answer{left:55px;right:55px;top:270px;bottom:105px;width:auto;max-height:none;max-width:none;padding:28px 38px;border-radius:14px;box-shadow:0 5px 24px #183a2310;background:#fffdf5}
.projecting-question .answer-heading h3{font-size:33px;max-height:130px;overflow:auto}.projecting-question .answer-question{font-size:17px;margin:15px 0}
.projected-context{font-size:11px;letter-spacing:.5px;color:#8d9b78;margin:16px 0}.answer-columns{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:18px 0}
.answer-columns>section+section{border-left:1px solid #dfe4d2;padding-left:48px}.answer-columns h4{font-size:10px;letter-spacing:1.5px;color:#899875;margin:0 0 18px}
.answer-columns p{font:27px/1.7 Georgia,serif;overflow-wrap:anywhere;white-space:pre-wrap}.answer-columns section[lang=ja] p{font-family:'Hiragino Mincho ProN','Yu Mincho',serif;font-size:25px;line-height:1.9}
.projecting-question .display-answer>small{display:block;color:#93a07e;font-size:10px;margin-top:12px}
@media(max-width:1050px){.projector.projecting-question .display-answer{left:24px;right:24px;top:220px;bottom:84px;padding:24px}.projecting-question .answer-heading h3{font-size:27px}.answer-columns{gap:25px}.answer-columns>section+section{padding-left:25px}.answer-columns p{font-size:22px}.answer-columns section[lang=ja] p{font-size:20px}}
@media(max-width:650px){.projector.projecting-question .display-answer{left:15px;right:15px;top:200px;bottom:76px;padding:18px}.answer-columns{grid-template-columns:1fr;gap:22px}.answer-columns>section+section{padding-left:0;border-left:0;border-top:1px solid #dfe4d2;padding-top:20px}.answer-columns p{font-size:18px}.answer-columns section[lang=ja] p{font-size:17px}.projecting-question .answer-heading h3{font-size:23px}}
@media(max-height:650px){.reader-mode .compact-header{min-height:46px;padding-top:6px;padding-bottom:6px}.reader-title{padding-top:8px}.reader-title h1{font-size:18px}.reader-mode .reader-tabs{margin:3px 0 3px;min-height:31px}.reader-tabs button{min-height:31px;font-size:10px}.reader-location{min-height:32px;margin-bottom:5px}.reader-mode .fixed-reader{padding:16px 18px}.reader-mode .fixed-reader .mobile-original{font-size:20px}.reader-mode .fixed-reader .mobile-original[lang=ja]{font-size:18px}.reader-dock{gap:6px}.reader-navigation{min-height:30px}.reader-mode .compact-record,.type-quote{min-height:44px}.reader-actions>button{min-height:40px;font-size:10px}.reader-mode .selection-tools,.reader-mode #toast{bottom:160px}.sheet-header{padding-top:14px;padding-bottom:10px}.sheet-header h2{font-size:22px}.sheet-body{padding:14px 18px}.sheet-footer{padding:10px 18px}.visible-context{max-height:75px;margin-bottom:15px}.tool-sheet{margin-bottom:8px}}
