*{box-sizing:border-box}body{margin:0;background:#f7f8f5;color:#25352b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;font-size:16px}button,input{font:inherit;color:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;min-height:44px;border-radius:12px}button:disabled{opacity:.4;cursor:wait}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #60856b;outline-offset:3px}main{max-width:780px;margin:auto;padding:0 28px 60px}header{display:flex;align-items:center;gap:20px;height:94px;border-bottom:1px solid #e1e6de}header nav{display:flex;gap:22px;flex:1}nav button{border-radius:0;color:#7c877e;padding:0 2px}nav button[aria-current]{color:#25352b;box-shadow:0 2px #42634b}.brand{font-size:36px;color:#42634b;text-decoration:none;line-height:1}.icon{font-size:25px;min-width:42px}.toolbar{display:flex;align-items:center;gap:6px;padding:23px 0 12px}input[type=date]{border:0;background:transparent;font-size:14px;width:143px;padding:8px 0;color:#647569}#status{margin-left:auto;font-size:12px;color:#718075}article{position:relative;border-bottom:1px solid #e1e6de;padding:24px 0;touch-action:pan-y}.question-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.question-text{width:100%;border:0;outline:none;background:transparent;font-size:19px;line-height:1.5;padding:4px 0;border-radius:0;text-overflow:ellipsis}.question-text:focus{box-shadow:0 1px #90a995}.delete{color:#986158;font-size:21px;opacity:0;min-width:40px}.question:hover .delete,.question:focus-within .delete,.question.reveal .delete{opacity:1}.rating{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.rating button{height:51px;background:#edf0e9;border:1px solid transparent;font-size:18px;transition:background .12s,transform .12s}.rating button:hover{background:#e1e8dc}.rating button[aria-pressed=true]{background:#42634b;color:white}.rating button:active{transform:scale(.96)}#add-form{display:flex;gap:12px;margin-top:24px}#new-question{min-width:0;flex:1;border:0;background:transparent;padding:12px 0;outline:none}#new-question::placeholder{color:#8a958c}#add-form button{font-size:26px;width:46px;color:#69806e}#signin{padding:100px 0;text-align:center}h1{font-size:36px;font-weight:450;letter-spacing:-1.5px;margin-bottom:32px}.google{background:#42634b;color:white;padding:0 24px;height:50px}.stat-head{display:flex;justify-content:space-between;gap:20px;align-items:baseline}.stat-head h2{font-size:17px;font-weight:500;margin:0}.average{font-size:24px;font-variant-numeric:tabular-nums}.meta,.note{font-size:12px;color:#859086}.chart{width:100%;height:110px;margin-top:20px;overflow:visible}.distribution{display:flex;gap:10px;margin-top:12px}.distribution span{flex:1;text-align:center;font-size:12px;color:#77857a}.distribution i{display:block;background:#c3d1bf;min-height:2px;border-radius:3px;margin-bottom:4px}details{padding-top:26px}summary{cursor:pointer;color:#65796b;min-height:44px}#choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}#choices button{border:1px solid #dce3d8;padding:6px 14px;max-width:100%;overflow:hidden;text-overflow:ellipsis}#choices button[aria-pressed=true]{background:#42634b;color:white}.pair{padding:14px 0;border-bottom:1px solid #e1e6de;display:flex;justify-content:space-between;gap:20px;font-size:14px}.pair strong{white-space:nowrap;font-weight:500}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#25352b;color:white;border-radius:12px;box-shadow:0 4px 25px #0002;max-width:90%;z-index:5;font-size:14px}#message button{color:#cbe5bb;margin-left:14px;min-height:30px}dialog{border:1px solid #dce3d8;border-radius:18px;padding:30px;max-width:calc(100% - 32px);min-width:280px;background:#f7f8f5}dialog::backdrop{background:#25352b44}dialog>button:not(.close){display:block;text-align:left;width:100%;padding:0 8px}dialog p{font-size:14px;overflow-wrap:anywhere;padding-right:25px}.close{position:absolute;top:6px;right:6px}#archived button{display:block;width:100%;text-align:left;color:#69806e}#stat-list>.note{padding:40px 0}[hidden]{display:none!important}@media(max-width:600px){main{padding:0 20px 50px}header{height:76px;gap:18px}header nav{gap:22px}.toolbar{padding-top:17px}article{padding:20px 0}.question-text{font-size:18px}.rating{gap:8px}.rating button{height:48px}.delete{opacity:.3}.question-head{gap:5px;margin-bottom:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#filters{display:flex;align-items:center;gap:8px;margin-top:20px}#filters>button:first-child{font-size:12px;color:#849187;padding:0 12px}#filters>button:first-child[aria-pressed=true]{color:#25352b;background:#e8ede4}.color-dot{min-width:36px;width:36px;height:40px;min-height:40px;padding:0;position:relative;flex-shrink:0}.color-dot:before{content:'';position:absolute;width:12px;height:12px;background:var(--color);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}.color-dot[aria-pressed=true]:after{content:'';position:absolute;width:22px;height:22px;border:1px solid var(--color);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}.color-picker{display:flex;gap:10px;padding:0 0 12px}.question-head>.color-dot{margin-left:-10px;min-width:30px;width:30px}.toolbar{padding-top:6px}@media(max-width:380px){#filters{gap:3px}}

textarea.question-text{resize:none;overflow:hidden;font-family:inherit;min-width:0}textarea.question-text:disabled{opacity:1}

/* Continuous-time interaction */
header{position:sticky;top:0;z-index:3;background:#f7f8f5f5;backdrop-filter:blur(10px);gap:14px}#add{font-size:28px}#account{font-size:22px}#filters{overflow-x:auto;scrollbar-width:none;margin-top:10px;min-height:40px}#filters>button{flex-shrink:0}.sync-line{height:18px;display:flex;justify-content:flex-end}#status{font-size:11px;min-height:18px;line-height:18px;padding:0;color:#758776}.question{padding:18px 0}.question-head{margin-bottom:10px}.question-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:2px}.scale-label,.last-answer{font-size:10px;color:#849087;min-height:28px;padding:3px 0}.scale-label{text-align:left}.last-answer{white-space:nowrap;font-variant-numeric:tabular-nums}.rating button.just-recorded{background:#42634b;color:#fff}.color-picker{flex-wrap:wrap;gap:3px}.empty-add{color:#849087;text-align:left;margin-top:20px}dialog{width:560px;max-height:85dvh;overflow:auto}dialog h2{font-size:17px;font-weight:500;margin:8px 25px 20px 0}#add-form{margin:10px 20px 8px 0}#new-scale{border:0;background:#edf0e9;border-radius:8px;font:inherit;font-size:12px;color:#647569;padding:10px;width:100%;margin-bottom:12px}.preset{border-top:1px solid #e1e6de;padding:6px 0}.preset-head{display:flex;align-items:flex-start}.preset details{padding:0;flex:1;min-width:0}.preset summary{font-size:14px;padding:14px 0;min-height:44px}.preset ol{padding-left:20px;font-size:13px;line-height:1.7;color:#647569}.preset p{padding-right:0}.preset-add{flex-shrink:0;width:44px;font-size:22px;color:#69806e}.source{font-size:12px;color:#42634b}#scale-options button{display:block;text-align:left;width:100%;padding:12px;font-size:14px}#scale-options button[aria-pressed=true]{background:#e1e8dc}.history-row{display:flex;align-items:center;gap:20px;border-bottom:1px solid #e1e6de;font-size:13px}.history-row span{flex:1}.history-row button{width:35px;color:#986158}.history-link{font-size:12px;color:#849087;padding:0;min-height:30px}.stat-head.meta{font-size:10px;line-height:1.5}.stat-head.meta span:last-child{text-align:right}.pair strong{font-size:12px}.delete{font-size:19px}@media(max-width:600px){header{height:68px;gap:8px}header nav{gap:18px}.brand{font-size:30px}.icon{min-width:34px}main{padding-left:16px;padding-right:16px}.question-head{gap:3px}.question{padding:16px 0}.question-text{font-size:17px}.rating button{height:46px}.scale-label,.last-answer{font-size:9px}dialog{padding:24px 20px}.preset summary{font-size:13px}}

/* Stable question rows and compact patterns */
.question-foot{min-height:24px;justify-content:flex-end}.last-answer{min-height:24px}.scale-label{display:none}#preset-search{font:inherit;width:100%;border:0;border-bottom:1px solid #dce3d8;background:transparent;padding:12px 0;font-size:14px;margin:0 0 10px}#add-dialog{max-height:85dvh;overscroll-behavior:contain}#stats{scroll-margin-top:80px}.patterns-tools{position:sticky;top:94px;z-index:2;display:flex;align-items:center;gap:8px;background:#f7f8f5f5;padding:8px 0;border-bottom:1px solid #e1e6de}.patterns-tools input{flex:1;min-width:40px;width:100px;border:0;background:transparent;padding:10px 0;font-size:13px}.patterns-tools select{font:inherit;border:0;background:transparent;color:#65796b;font-size:12px;max-width:92px}.patterns-tools button{font-size:13px;white-space:nowrap;padding:0 10px;background:#e8ede4}.patterns-tools #compare-clear{padding:0 10px;background:none;font-size:20px}.average-block{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.average-block .average{font-weight:450}.count-link{font-size:12px;color:#7d8a80;min-height:28px;padding:0}.pattern-card{padding:22px 0}.pattern-card .chart{height:auto;margin-top:8px}.time-axis{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#849087}.time-axis span:last-child{text-align:right}.legacy-marker{color:#849087;font-size:12px}.comparison-legend{display:grid;gap:8px;font-size:13px;padding-top:20px}.comparison-legend span,.relationship-names span{padding-left:16px;position:relative}.comparison-legend span:before,.relationship-names span:before{content:'';position:absolute;left:0;top:.45em;width:7px;height:7px;border-radius:50%;background:var(--series)}#comparison-result{border-bottom:1px solid #dce3d8;padding-bottom:16px}#comparison-result>.chart{height:auto}.relationship{display:flex;align-items:center;gap:16px;padding:13px 0;border-top:1px solid #e1e6de}.relationship-names{display:grid;gap:5px;flex:1;font-size:12px}.relationship-value{display:grid;gap:4px;text-align:right;white-space:nowrap}.relationship-value strong{font-size:18px;font-weight:450}.compare-info{padding-top:10px}.compare-info summary{min-height:30px;font-size:11px}.compare-info p{line-height:1.6}#compare-dialog{padding:0;overflow:hidden;max-height:85dvh;width:600px}#compare-dialog[open]{display:flex;flex-direction:column}.picker-head{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid #dce3d8;flex-shrink:0}.picker-head input{flex:1;min-width:0;background:transparent;border:0;font:inherit;font-size:14px;padding:8px 0}.picker-head span{font-size:11px;color:#849087}.picker-head button{font-size:13px;color:#42634b;padding:0 10px}#compare-options{overflow-y:auto;overscroll-behavior:contain;max-height:65dvh;padding:8px 18px 18px}.compare-choice{display:flex;align-items:center;gap:14px;padding:14px 0;font-size:14px;line-height:1.5;border-bottom:1px solid #e1e6de;cursor:pointer}.compare-choice input{width:18px;height:18px;accent-color:#42634b;flex-shrink:0}.compare-choice:has(input:disabled){opacity:.45}@media(max-width:600px){.patterns-tools{top:68px;gap:4px}.patterns-tools button{padding:0 8px}.patterns-tools select{max-width:85px}.stat-head h2{font-size:16px}.pattern-card{padding:18px 0}.time-axis{font-size:9px}}

.question-foot{height:34px;min-height:34px;gap:10px}.question-foot button{min-height:30px;font-size:12px}.save-answer{background:#42634b;color:white;padding:0 12px}.confirm-setting{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 8px;font-size:14px}.confirm-setting input{accent-color:#42634b;width:18px;height:18px}#account svg{vertical-align:middle}.rating button{touch-action:pan-y}

nav .diary-tab{display:flex;align-items:center;color:#7c877e;text-decoration:none;font-size:16px;min-height:44px}header nav{gap:16px}@media(max-width:600px){header nav{gap:12px}.brand{font-size:26px}header{gap:8px}.icon{min-width:30px}}

#new-type{font:inherit;font-size:14px;border:0;border-radius:8px;background:#edf0e9;padding:8px 12px;margin:0 0 4px}.emoji-choices,.emoji-active{display:flex;align-items:center;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;min-height:48px}.emoji-choices button,.emoji-active button{flex:none;font-size:24px;min-width:44px;height:44px;background:#edf0e9}.emoji-active{margin-top:8px}.emoji-active:empty{min-height:0;margin:0}.emoji-active button{position:relative;background:transparent;border:1px solid #dce3d8;padding:4px 14px 4px 6px}.emoji-active button:after{content:'×';position:absolute;right:3px;top:1px;font-size:11px;color:#849087}#emoji-picker{padding:0;overflow:hidden;width:480px}#emoji-picker[open]{display:flex;flex-direction:column}#emoji-picker-active{padding:0 16px;flex-shrink:0}#emoji-scroll{overflow-y:auto;max-height:55dvh;overscroll-behavior:contain;padding:12px}#emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:5px}#emoji-grid button{font-size:26px;min-height:44px;padding:4px}#emoji-grid button:hover{background:#e8ede4}#emoji-more{width:100%;color:#849087;font-size:12px}.emoji-summary{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:18px}.emoji-stat-title{font-size:17px;font-weight:500;margin:0}

/* Compact Diary ribbon, recolored for Look Inwards. */
.mini-slalom{position:relative;height:190px;margin-top:8px;--mini-color:#42634b;overflow:hidden}.mini-scroll{height:190px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;overflow-anchor:none;touch-action:pan-x pan-y pinch-zoom;cursor:grab}.mini-scroll:active{cursor:grabbing}.mini-scroll:focus-visible{outline:2px solid #60856b;outline-offset:-2px}.mini-world{position:relative;height:190px}.mini-world svg{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.mini-edge{stroke:color-mix(in srgb,var(--mini-color) 16%,#f7f8f5);stroke-width:11;fill:none;stroke-linecap:round}.mini-line{stroke:color-mix(in srgb,var(--mini-color) 55%,#f7f8f5);stroke-width:3;fill:none;stroke-linecap:round}.mini-tick{stroke:color-mix(in srgb,var(--mini-color) 40%,#f7f8f5);stroke-width:1}.mini-time{fill:#849087;font-size:9px}.mini-current{fill:#42634b}.mini-world .mini-emoji{position:absolute;width:36px;height:36px;min-height:36px;padding:0;transform:translate(-50%,-50%);border-radius:50%;background:color-mix(in srgb,var(--mini-color) 15%,#f7f8f5);font-size:23px;border:1px solid color-mix(in srgb,var(--mini-color) 20%,#f7f8f5)}.mini-now{position:absolute;right:0;top:0;font-size:11px;padding:0 9px;min-height:32px;background:#f7f8f5ed;color:#647569}.mini-emoji:after{content:none}
button,a,input,select,textarea{touch-action:manipulation}
@media (pointer:coarse),(max-width:900px){input,select,#new-question,#new-type,#emoji-search,#patterns-search,#compare-search{font-size:16px!important}}
.rating button{touch-action:manipulation}

/* Same-button confirmation and distinct color sections. */
.rating button.armed{background:#e4eddf;color:#355740;border:2px solid #42634b;box-shadow:0 0 0 2px #42634b12}.rating button.armed:after{content:'↻';font-size:11px;margin-left:4px;vertical-align:middle}.confirm-hint{font-size:11px;color:#647569}.color-dot:before{width:14px;height:14px}.color-picker{max-width:100%}.delete{display:grid;place-items:center;color:#849087;opacity:.5}.delete:hover{color:#ad4854;background:#f2e8e7}.delete svg{pointer-events:none}#remove-dialog{width:360px;padding:24px}#remove-title{font-size:18px;margin:0 0 16px}#remove-question-text{font-size:15px;line-height:1.5;padding:0;margin:0 0 12px}#remove-dialog .note{font-size:12px;padding:0}.remove-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.remove-actions button{min-width:86px;padding:0 18px;background:#e9eee5}#remove-confirm{background:#ae4955;color:#fff}#signin{padding:18px 0 24px;text-align:left}#signin h1{display:none}#signin .google{height:44px;font-size:14px}.question-text[readonly]{cursor:default}.rating button:disabled{opacity:.75;cursor:default}.color-dot:disabled{opacity:1;cursor:default}
.rating button.armed:after{content:'Save';display:block;line-height:10px;font-size:9px;margin:0;vertical-align:baseline}
.emoji-library-tabs{display:flex;gap:6px;padding:0 16px 6px}.emoji-library-tabs button{font-size:13px;min-height:32px;padding:4px 12px}.emoji-library-tabs [aria-pressed=true]{background:#e4eddf;color:#355740}#emoji-grid button[aria-pressed=true]{background:#e4eddf;box-shadow:inset 0 0 0 2px #60856b;position:relative}#emoji-grid button[aria-pressed=true]:after{content:"✓";position:absolute;right:2px;bottom:0;font-size:11px;color:#355740}.emoji-choices>button:first-child{position:sticky;left:0;z-index:1;background:#edf0e9}#emoji-picker{max-height:calc(100dvh - 24px)}#emoji-scroll{min-height:80px;flex:1}#emoji-picker-active{max-height:52px}

.activity-strip{display:grid;grid-template-rows:repeat(2,44px);grid-auto-flow:column;grid-auto-columns:44px;gap:6px;justify-content:start;padding:4px 0;touch-action:pan-x pinch-zoom}.activity-strip>button:first-child{position:static}.activity-strip button[aria-pressed=true]{background:#dce9d9;box-shadow:inset 0 0 0 2px #42634b}.emoji-placement-hint{height:28px;display:flex;align-items:center;gap:8px;color:#647569;font-size:12px}.emoji-placement-hint button{min-height:24px;height:24px;padding:0 8px}.mini-hour-target{fill:none;stroke:transparent;stroke-width:28;pointer-events:stroke;cursor:pointer;outline:none}.placing .mini-world svg{pointer-events:auto}.mini-hour-target:hover,.mini-hour-target:focus,.mini-hour-target:active{stroke:#6ba57755}.placing .mini-edge{stroke:#81aa7830}.mini-hour-target~.mini-time,.mini-hour-target~.mini-tick{pointer-events:none}



.empty-suggestions{display:block;margin:0 auto 16px;font-size:13px;color:#788379}#question-library{width:540px;padding:0;max-height:calc(100dvh - 24px)}#question-library[open]{display:flex;flex-direction:column}.library-filters{padding:0 16px 10px;display:flex;flex-wrap:wrap;gap:8px}.library-filters select{max-width:100%}.library-filters select{font:inherit;font-size:16px;border:0;background:#edf0e9;border-radius:9px;padding:8px}#library-list{overflow-y:auto;min-height:100px;max-height:55dvh;padding:0 12px;overscroll-behavior:contain}.library-question{display:block;text-align:left;width:100%;height:auto;min-height:48px;padding:12px;line-height:1.5;border-radius:10px;margin-bottom:4px}.library-question[aria-pressed=true]{background:#e4eddf;box-shadow:inset 3px 0 #42634b}.library-question:disabled{opacity:.5}#question-library footer{padding:12px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between}.library-sources{font-size:11px;color:#849087}.library-sources p{max-width:260px;line-height:1.5}.library-sources a{color:inherit}#library-add{background:#42634b;color:white;padding:0 15px;white-space:nowrap}#library-add:disabled{opacity:.5}

.patterns-cue{text-align:center;font-size:12px;color:#849087;margin:4px 0 28px}

.app-policy{text-align:center;font-size:11px;color:#849087;padding:30px 0}.app-policy a,.account-policy{color:inherit}.account-policy{display:block;padding:12px;font-size:13px}#delete-dialog{max-width:400px}#delete-dialog p{font-size:14px;line-height:1.6}#delete-confirm{background:#ae4955;color:white}#delete-error{color:#ae4955}#delete-account{color:#ae4955}

/* Quiet, touch-friendly suggestion sheet. Only intentional text entry opens a keyboard. */
#question-library{border:1px solid #dce3d8;border-radius:22px;background:#f7f8f5;height:min(720px,85dvh);max-height:85dvh;box-shadow:0 20px 80px #25352b18}
#question-library .picker-head{padding:16px 20px 6px;display:flex;align-items:center;gap:12px;flex-shrink:0;background:transparent;border:0}
#library-title{flex:1;margin:0;font-size:18px;font-weight:500;letter-spacing:-.3px}#library-close{font-size:25px;min-width:44px;color:#788379}
.library-filters{padding:0 20px 12px;flex-shrink:0}.library-filters select{background:transparent;color:#647569;padding:8px 24px 8px 0;border-radius:0;font-size:16px;width:100%;border-bottom:1px solid #e1e6de}
#library-list{flex:1;max-height:none;min-height:0;padding:0 20px;scrollbar-width:thin}
.library-question{display:flex;align-items:center;gap:18px;padding:16px 0;margin:0;border-radius:0;border-bottom:1px solid #e1e6de;font-size:16px;line-height:1.5;min-height:60px;touch-action:pan-y}
.library-question>span:first-child{flex:1}.library-check{width:22px;height:22px;border:1px solid #b7c3b5;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-size:13px}
.library-question[aria-pressed=true]{background:transparent;box-shadow:none;color:#42634b}.library-question[aria-pressed=true] .library-check{background:#42634b;border-color:#42634b;color:white}.library-question[aria-pressed=true] .library-check:after{content:'✓'}.library-question:disabled{opacity:.45;cursor:default}
#question-library footer{flex-shrink:0;gap:14px;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e1e6de;background:#f7f8f5}.library-sources{padding-top:0}.library-sources summary{display:flex;align-items:center;font-size:12px}.library-sources p{padding:0;font-size:12px;max-height:130px;overflow:auto;margin:0 0 8px}#library-add{border-radius:22px;min-height:44px;font-size:14px;padding:0 20px}
@media(max-width:600px){#question-library{width:100%;max-width:100%;max-height:88dvh;height:88dvh;margin:auto 0 0;border-radius:22px 22px 0 0;border-bottom:0}.library-question{font-size:16px}#question-library .picker-head{padding-top:12px}}

#add-dialog{width:440px;padding:22px 24px;border-radius:22px}.add-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.add-head h2{margin:0;font-size:18px;font-weight:500}.add-head button{font-size:13px;color:#788379;padding:0 4px}#add-form{display:block;margin:14px 0 0}#new-question{display:block;width:100%;font-size:18px;padding:16px 0;border-bottom:1px solid #dce3d8;border-radius:0}#add-form button{width:auto;font-size:14px}#add-form .question-types{display:flex;gap:4px;background:#edf0e9;border-radius:14px;padding:4px;margin:20px 0 26px}#add-form .question-types button{flex:1;min-height:44px;border-radius:10px;color:#788379}#add-form .question-types button[aria-pressed=true]{background:#f7f8f5;color:#25352b;box-shadow:0 1px 4px #25352b12}.add-actions{display:flex;align-items:center;justify-content:space-between;gap:20px}#add-form #suggestions{color:#647569;padding:0 4px}#add-form #create-question{background:#42634b;color:white;border-radius:24px;padding:0 22px;min-height:46px}

#diary-view{height:calc(100dvh - 95px);margin:0 -28px}#diary-view iframe{display:block;border:0;width:100%;height:100%;background:#f7f8f5}.diary-open main{max-width:none;padding-bottom:0}.diary-open header{max-width:780px;margin:auto}.patterns-refresh{float:right;font-size:24px;min-width:44px;color:#647569}.patterns-refresh:disabled{opacity:.5}@media(max-width:600px){header nav{gap:13px}header nav button{font-size:14px}#diary-view{height:calc(100dvh - 68px);margin:0 -16px}}
@media(max-width:380px){header{gap:6px}header nav{gap:10px}header nav button{font-size:13px}.brand{font-size:28px}.icon{min-width:30px;padding:0 3px}}

.mini-scroll,.mini-world{height:var(--slalom-height,190px)}.emoji-placement-hint:empty{display:none}.emoji-placement-hint img,.history-row img{width:24px;height:24px;object-fit:cover;border-radius:50%}.activity-strip img,.question-emoji-grid img,.mini-emoji img{width:28px;height:28px;object-fit:cover;border-radius:50%;vertical-align:middle}.emoji-tools{display:flex;gap:16px;margin:0 0 3px}.emoji-tools button{font-size:12px;color:#708071;min-height:32px;padding:0 4px;background:transparent}.emoji-detail-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0}.emoji-detail-tools input{font-size:16px;max-width:145px;min-width:0;color:#53644f;background:transparent;border:0}.emoji-detail-tools input[type=range]{width:100px;accent-color:#5e7654}.emoji-zoom{display:flex;align-items:center;gap:4px;font-size:11px;color:#71816c}.emoji-zoom button{padding:0 10px;min-height:36px}.question-emoji-library{padding:4px 0 8px}.emoji-group-tabs{display:flex;gap:5px;overflow-x:auto;padding:3px 0 7px}.emoji-group-tabs button{white-space:nowrap;font-size:12px;min-height:32px;padding:0 9px}.emoji-group-tabs [aria-pressed=true]{background:#e0e8db}.question-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:3px;max-height:240px;overflow:auto;overscroll-behavior:contain}.question-emoji-grid button{font-size:26px;min-height:43px;padding:3px;background:transparent;content-visibility:auto}.question-emoji-grid button[aria-pressed=true]{background:#e0e8db;box-shadow:inset 0 0 0 1px #7e9676}.mini-emoji.planned{border:2px dashed var(--mini-color);background:#fafbf7;opacity:.7}.sticker-dialog,.image-crop{width:min(470px,calc(100vw - 32px));max-height:85dvh;padding:20px;border:0;border-radius:20px;background:#f7f8f5;color:#42634b;overflow:auto}.sticker-dialog::backdrop,.image-crop::backdrop{background:#263b2a55}.panel-top,.import-actions,.image-crop>div{display:flex;gap:12px;align-items:center;justify-content:space-between}.panel-top h2{font-size:18px;font-weight:450}.panel-top button,.import-actions button,.image-crop button{min-height:42px;border-radius:12px}.sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:10px;margin:16px 0;max-height:45dvh;overflow:auto}.sticker-grid button{position:relative;padding:3px;background:transparent;border:2px solid transparent}.sticker-grid button[aria-pressed=true]{border-color:#67845d}.sticker-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}.sticker-choice span{position:absolute;bottom:0;right:0;background:#67845d;color:white;border-radius:50%;width:20px}.sticker-choice[aria-pressed=false] span{display:none}.import-actions .primary{background:#42634b;color:white;padding:0 20px}.image-crop canvas{display:block;width:280px;max-width:100%;aspect-ratio:1;margin:auto;touch-action:none;border-radius:12px}.image-crop input{display:block;width:100%;margin:16px 0;accent-color:#42634b}.import-status{font-size:13px}

.mini-slalom{height:var(--slalom-height,190px)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Compact inputs: one fixed row, no timeline footer or expansion controls. */
.emoji-input{padding-top:16px;padding-bottom:10px}.emoji-input .question-foot{display:none!important}.emoji-input .activity-strip{display:flex;flex-wrap:nowrap;overflow:hidden;gap:3px;padding:0;margin:8px 0 0;grid-template-rows:none}.emoji-input .activity-strip button{flex:1 1 0;min-width:0;max-width:38px;width:auto;height:34px;min-height:34px;padding:0;font-size:23px}.emoji-input .activity-strip img{width:25px;height:25px}.emoji-input .activity-strip button:last-child{flex:0 0 28px;margin-left:auto;background:transparent;font-size:22px;color:#72836e}.emoji-input .mini-slalom{margin-top:0}.emoji-input .emoji-placement-hint{height:23px}.input-emoji-picker{width:min(480px,calc(100vw - 24px));max-height:85dvh;border:0;border-radius:18px;padding:16px;background:#f7f8f5;color:#42634b}.input-picker-head{display:flex;align-items:center;justify-content:space-between;font-size:13px}.input-picker-head button{min-height:40px;padding:0 14px}.input-picker-selected{display:flex;gap:4px;flex-wrap:wrap;padding:8px 0}.input-picker-selected button{height:36px;min-height:36px;padding:0 8px;font-size:24px}.input-picker-selected button img{width:26px;height:26px;object-fit:cover;border-radius:50%}#new-emojis button:last-child{font-size:14px}.input-emoji-picker .question-emoji-grid{max-height:44dvh}.input-emoji-picker button:disabled{opacity:.25}.input-emoji-picker::backdrop{background:#263b2a44}
/* Roomy answer tiles, compact creation, and a single-tap counter. */
.bubble-input{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin:12px 0 6px}
.answer-bubble{position:relative;min-width:0;border-radius:16px;background:#edf0e9;overflow:hidden;min-height:76px}
.bubble-label{position:absolute;inset:28px 10px 20px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:16px;line-height:1.25;overflow-wrap:anywhere;pointer-events:none;z-index:1}
.bubble-halves{display:grid;grid-template-columns:1fr 1fr;min-height:90px;height:100%;gap:0}
.answer-bubble button{position:relative;min-width:0;min-height:90px;border:2px solid transparent;border-radius:16px;background:transparent;color:#355740;transition:background .12s,transform .12s;touch-action:manipulation}
.bubble-mark{position:absolute;top:6px;left:0;right:0;font-size:17px;opacity:.38;line-height:20px}
.answer-bubble button:hover{background:#e8ede4}.answer-bubble button:active{transform:scale(.97)}
.answer-bubble button.armed{background:#e4eddf;color:#355740;border:2px solid #42634b;box-shadow:inset 0 0 0 1px #42634b12}
.answer-bubble button.armed .bubble-mark{opacity:.8}
.answer-bubble button.armed:after{content:'Save';position:absolute;bottom:5px;left:0;right:0;display:block;font-size:9px;line-height:10px}
.bubble-edit{width:46px;height:46px;align-self:center;justify-self:center;color:#647569;background:#edf0e9;border:0;border-radius:14px;font-size:23px}
.bubble-draft-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;max-height:32dvh;overflow:auto}
.bubble-draft{display:inline-flex;max-width:100%;align-items:center;background:#edf0e9;border-radius:14px}
.bubble-draft button{min-height:44px;padding:8px 12px;color:#42634b;text-align:left;overflow-wrap:anywhere;min-width:0;font-size:16px}
.bubble-draft .bubble-draft-remove{padding:8px 10px;font-size:20px;color:#7c877e;flex:none}
.bubble-compose-line{display:flex;align-items:center;gap:8px;margin-bottom:20px}
.bubble-compose-input{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #dce3d8;border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:16px}
.bubble-compose-add{width:48px;height:48px;flex:none;border-radius:12px;background:#edf0e9;color:#42634b;font-size:23px}
.bubble-inline{margin:12px 0;padding:0;border:0}.bubble-inline-composer{display:flex;flex-direction:column}.bubble-inline .bubble-compose-line{order:-1;margin-bottom:8px}.bubble-inline .bubble-draft-list{max-height:96px;margin-bottom:0}.bubble-inline-actions{display:flex;justify-content:flex-end;gap:16px}.bubble-inline-actions button{min-height:40px;color:#647569;font-size:13px}.bubble-inline-actions button[type=submit]{color:#42634b}
.counter-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;margin:14px 0 4px}
.counter-total{min-width:0;text-align:left;font-size:30px;line-height:1.2;letter-spacing:-.5px;font-weight:450;overflow-wrap:anywhere;padding:6px 0;font-variant-numeric:tabular-nums}
.counter-buttons{display:flex;gap:8px}.counter-adjust{min-width:72px;height:48px;padding:0 12px;border:1px solid transparent;border-radius:14px;background:#edf0e9;color:#42634b;font-size:18px;transition:background .12s,transform .12s;touch-action:manipulation}
.counter-adjust:hover{background:#e1e8dc}.counter-adjust:active{background:#d6e2cf;transform:scale(.96)}
.counter-step-toggle{grid-column:2;justify-self:end;color:#647569;min-height:36px;font-size:13px;padding:0 8px;text-decoration:underline;text-decoration-color:#c5cec0;text-underline-offset:4px}
.counter-step-picker{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;padding:4px 0 8px}.counter-presets{display:flex;gap:4px}.counter-presets button{min-width:42px;min-height:42px;padding:0 8px;border-radius:12px;background:#edf0e9;color:#42634b}.counter-presets button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #60856b;background:#e4eddf}.counter-custom{display:flex;gap:6px;align-items:center}.counter-custom button{min-height:42px;padding:0 10px;color:#42634b}
.counter-step{width:90px;min-width:0;min-height:42px;padding:6px 10px;text-align:center;border:1px solid #dce3d8;border-radius:12px;background:transparent;color:#42634b;font-size:16px;appearance:textfield;font-variant-numeric:tabular-nums}.counter-step::-webkit-inner-spin-button{appearance:none}
.bubble-stat{display:flex;gap:12px;align-items:center;padding:8px 0}.bubble-stat>span:first-child{flex:1;overflow-wrap:anywhere}.bubble-stat .yes{color:#42634b}.bubble-stat .no{color:#986158}
.add-actions{justify-content:flex-end}
@media(max-width:360px){.bubble-input{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.counter-adjust{min-width:60px;padding:0 8px}}
#add-dialog{max-height:calc(100dvh - 24px);overflow:auto}.bubble-draft-list{max-height:120px}
.bubble-label{position:relative;inset:auto;display:flex;min-height:90px;padding:27px 10px 23px;line-height:20px;box-sizing:border-box}
.bubble-halves{position:absolute;inset:0}.answer-bubble button{height:100%}
.counter-buttons{min-width:0}.counter-adjust{overflow-wrap:anywhere;max-width:130px;height:auto;min-height:48px}
/* Bubble answers share the low profile of the 1–5 controls. */
.answer-bubble{min-height:46px;border-radius:14px}.bubble-label{min-height:46px;padding:8px 10px 12px;line-height:20px;font-size:16px}.bubble-halves{min-height:46px}.answer-bubble button{min-height:46px;border-radius:14px}
.answer-bubble .bubble-yes{background:linear-gradient(90deg,#dce8dacc,#edf0e940)}.answer-bubble .bubble-no{background:linear-gradient(90deg,#edf0e940,#f0ddddb3)}
.answer-bubble button.armed{background:#e4eddf;border:2px solid #42634b;color:#355740}.answer-bubble .bubble-no.armed{background:#f1e4df;border-color:#986158;color:#85574f;box-shadow:inset 0 0 0 1px #98615812}
.answer-bubble button.armed:after{bottom:2px;font-size:9px;line-height:9px}
.bubble-add-slot{min-width:0;display:contents}.bubble-add-slot .bubble-draft-list{display:none}
.bubble-compose-line{min-width:0;display:flex;align-items:center;gap:0;margin:0;min-height:46px;background:#edf0e980;border:1px dashed #d2dccd;border-radius:14px;overflow:hidden}
.bubble-compose-input{flex:1;min-width:0;width:100%;min-height:44px;height:44px;border:0!important;border-radius:0;background:transparent;font-size:16px;padding:8px 10px;box-sizing:border-box}
.bubble-compose-input::placeholder{color:#859086}.bubble-compose-cancel{flex:none;width:36px;min-height:44px;padding:0;color:#7c877e;font-size:20px;background:transparent}
#new-bubbles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}#new-bubbles .bubble-draft-list{display:contents}#new-bubbles .bubble-draft{border-radius:14px;min-height:46px;justify-content:space-between}#new-bubbles .bubble-draft button{font-size:16px!important;padding:8px 10px;min-height:44px}
/* Direct increment choices: no menu or keyboard. */
.counter-input>.counter-presets{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.counter-input>.counter-presets button{min-width:0;min-height:44px;font-size:14px;background:transparent;color:#7c877e;border:1px solid transparent}
.counter-input>.counter-presets button[aria-pressed=true]{color:#42634b;background:#e4eddf;box-shadow:none;border-color:#bdcdb6}
/* Keep cancellation inside the visible edge of the creation bubble. */
#new-bubbles .bubble-compose-line{position:relative;display:block;min-height:46px}
#add-form #new-bubbles .bubble-compose-input{display:block;width:100%;padding-right:44px}
#add-form #new-bubbles .bubble-compose-cancel{position:absolute;right:2px;top:2px;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;display:grid;place-items:center;font-size:23px;line-height:1;color:#53694f;background:#e4eadf;border-radius:11px;z-index:1}
#new-bubbles .bubble-draft>button:first-child{flex:1;min-width:0}
#add-form #new-bubbles .bubble-draft-remove{flex:0 0 40px;width:40px;min-width:40px;padding:0;font-size:22px!important;color:#53694f}
.counter-chart{min-height:160px}.counter-chart-readout{min-height:24px;margin-top:5px;font-size:12px;color:#647569;text-align:center;font-variant-numeric:tabular-nums}.counter-chart circle:focus-visible{outline:none;stroke:#25352b;stroke-width:3}
/* Compact input spacing, with optional bubble creation and labeled increments. */
.question:has(.bubble-input),.question:has(.counter-input){padding:10px 0}
.question:has(.bubble-input) .question-foot,.question:has(.counter-input) .question-foot{height:auto;min-height:0;margin-top:0}
.question:has(.bubble-input) .question-foot:empty,.question:has(.counter-input) .question-foot:empty{display:none}
.bubble-input{margin:8px 0 0}.bubble-add-slot{display:block;min-width:0;align-self:center}.bubble-add-toggle{width:44px;height:44px;border-radius:14px;background:#edf0e9;color:#718075;font-size:22px}.bubble-add-composer .bubble-draft-list{display:none}
.counter-input{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:8px 0 0}
.counter-buttons{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;gap:10px;align-items:center}
.counter-adjust{width:60px;min-width:60px;max-width:none;height:46px;min-height:46px;padding:0;font-size:23px}
.counter-total{text-align:center;font-size:28px;padding:2px 0}
.counter-steps-row{display:flex;align-items:center;gap:10px}.counter-steps-label{font-size:12px;color:#7c877e;flex:none}
.counter-steps-row .counter-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;gap:4px}
.counter-steps-row .counter-presets button{min-width:0;min-height:40px;font-size:13px;padding:0 5px;background:transparent;color:#7c877e;border:1px solid transparent}
.counter-steps-row .counter-presets button[aria-pressed=true]{color:#42634b;background:#e4eddf;box-shadow:none;border-color:#bdcdb6}
.bubble-flow{margin-top:10px}.bubble-flow-legend{display:flex;justify-content:flex-end;gap:14px;font-size:11px;color:#7c877e}.bubble-flow-legend span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.flow-yes:before{background:#60856b}.flow-no:before{background:#b47c72}.bubble-flow-row{display:grid;grid-template-columns:minmax(70px,24%) minmax(0,1fr);gap:10px;align-items:center;min-height:44px}.bubble-flow-label{font-size:14px;line-height:1.25;overflow-wrap:anywhere}.bubble-flow-track{display:block;width:100%;height:44px;overflow:visible}.bubble-flow-track g{cursor:pointer}.bubble-flow-track g:focus{outline:none}.bubble-flow-track g:focus-visible circle:last-child{stroke:#25352b;stroke-width:2}.bubble-flow-axis{margin-left:calc(24% + 10px)}.bubble-flow-readout{font-size:12px;color:#647569;text-align:center;margin-top:5px}.bubble-flow-readout:empty,.counter-chart-readout:empty{display:none}
.answer-bubble.saved-yes{background:#42634b}.answer-bubble.saved-no{background:#986158}
.answer-bubble.saved-yes .bubble-label,.answer-bubble.saved-no .bubble-label{color:#fff}
.answer-bubble.saved-yes button,.answer-bubble.saved-no button{background:transparent;color:#fff}
.answer-bubble.saved-yes .bubble-yes,.answer-bubble.saved-no .bubble-no{background:#00000012}
.edit-bubbles{display:grid;place-items:center;flex:none;width:36px;min-height:40px;color:#7c877e;background:transparent}
.bubble-edit-panel{margin:10px 0 0}.bubble-edit-composer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bubble-edit-composer .bubble-draft-list{display:contents}.bubble-edit-composer .bubble-draft{min-width:0;justify-content:space-between}.bubble-edit-composer .bubble-draft>button:first-child{flex:1;min-width:0}.bubble-edit-composer .bubble-compose-line{position:relative;display:block}.bubble-edit-composer .bubble-compose-input{padding-right:40px}.bubble-edit-composer .bubble-compose-cancel{position:absolute;right:2px;top:0;width:36px}.bubble-edit-actions{display:flex;gap:16px;justify-content:flex-end;align-items:center}.bubble-edit-actions button{min-height:40px;font-size:13px;color:#647569}.bubble-edit-actions .bubble-trash{margin-right:auto;color:#986158}.bubble-edit-actions button[type=submit]{color:#42634b}
/* Three-level bubbles use the same states and palette as 1–5 inputs. */
.answer-bubble.bubble-rating{background:transparent;overflow:visible;border-radius:0;min-height:0}
.bubble-rating-label{display:block;text-align:center;padding:0 4px 6px;font-size:15px;line-height:20px;overflow-wrap:anywhere;color:#25352b}
.bubble-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.bubble-rating .bubble-value{position:relative;height:46px;min-height:46px;border:1px solid transparent;border-radius:12px;background:#edf0e9;font-size:18px;color:#25352b;transition:background .12s,transform .12s}
.bubble-rating .bubble-value:hover{background:#e1e8dc}.bubble-rating .bubble-value:active{transform:scale(.96)}
.bubble-rating .bubble-value.just-recorded{background:#42634b;color:#fff}
.bubble-rating .bubble-value.armed{background:#e4eddf;color:#355740;border:2px solid #42634b;box-shadow:0 0 0 2px #42634b12}
.bubble-rating .bubble-value.armed:after{content:'Save';position:static;display:block;font-size:9px;line-height:10px;margin:0}
.add-bubble-head{width:30px;min-width:30px;min-height:40px;padding:0;font-size:22px;background:transparent;color:#7c877e}
.bubble-pattern{padding:18px 0 8px;border-top:1px solid #e1e6de}.bubble-pattern h3{font-size:17px;font-weight:450;margin:0}.bubble-pattern .average{font-size:24px}.bubble-pattern .note{font-size:11px;margin:6px 0}
/* Groups are compact ordinary 1–5 rows, not a separate answer system. */
.bubble-input{display:flex;flex-direction:column;gap:14px;margin-top:10px}
.bubble-rating-label{text-align:left;padding:0 0 5px;font-size:16px;line-height:21px}
.bubble-values{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.bubble-rating .bubble-value{border-radius:12px;font-size:18px;height:46px;min-height:46px}
/* Confirmed compact group scale: three choices with the ordinary rating style. */
.bubble-input{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.bubble-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
/* Ratings and counters use compact, direct value rows. */
.bubble-input{grid-template-columns:repeat(auto-fit,minmax(192px,1fr))}
.bubble-values{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.counter-buttons.counter-direct{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.counter-direct .counter-adjust{width:100%;min-width:0;max-width:none;height:46px;min-height:46px;padding:0 2px;font-size:15px;border-radius:12px;white-space:nowrap;overflow-wrap:normal}
.counter-input>.counter-total{font-size:26px;min-height:34px;padding:0 0 4px;text-align:left}

/* Compact grouped ratings and centered counters. */
.bubble-values{grid-template-columns:repeat(5,minmax(0,1fr))}
.bubble-input{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))}
.counter-input{display:grid;gap:12px}.counter-bubble{padding:0;background:none;border:0}
.counter-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(64px,1.5fr) repeat(3,minmax(0,1fr));gap:3px;align-items:stretch}
.counter-line .counter-total{font-size:22px;text-align:center;width:100%;min-width:0;padding:4px 0;margin:0;overflow-wrap:anywhere;background:#edf0e9;border-radius:9px;font-variant-numeric:tabular-nums}
.counter-line .counter-adjust{min-width:0;min-height:46px;padding:3px 0;font-size:12px;font-weight:400;border:2px solid transparent;border-radius:9px;background:#edf0e9;color:#25352b;position:relative}
.counter-line .counter-adjust.armed{background:#e4eddf;border-color:#42634b;padding-bottom:13px}
.counter-line .counter-adjust.armed:after{content:'Save';position:absolute;font-size:9px;bottom:2px;left:0;right:0;text-align:center;color:#42634b}
.compare-choice small{display:block;color:#7c877e;font-size:12px}
.counter-input{grid-template-columns:minmax(0,1fr)}
.counter-line .counter-adjust{width:100%;white-space:nowrap;overflow-wrap:normal}
.pattern-card>h2{font-size:17px;font-weight:500;margin:0 0 10px}.pattern-card>.bubble-pattern:first-of-type{border-top:0;padding-top:4px}

/* Keep full-height tap targets; remove the surrounding empty space. */
#list .question{padding:8px 0}
#list .question-head{margin-bottom:3px;gap:5px}
#list .question-text{padding:2px 0;line-height:1.3}
#list .question-foot{height:auto;min-height:0;margin:0}
#list .question-foot:empty{display:none}
#list .question-foot .last-answer{min-height:22px;padding:1px 0}
#list .bubble-input,#list .counter-input{margin-top:3px;margin-bottom:0}
.bubble-input.word-bubbles{display:flex;flex-direction:row;flex-wrap:wrap;gap:7px}
.word-bubbles .word-bubble{flex:0 1 auto;min-width:60px;min-height:46px;height:auto;padding:10px 16px;border:1px solid transparent;border-radius:12px;background:#edf0e9;color:#25352b;position:relative;font-size:16px;overflow-wrap:anywhere;max-width:100%}
.word-bubbles .word-bubble.just-recorded{background:#42634b;color:#fff}
.word-bubbles .word-bubble.armed{background:#e4eddf;color:#355740;border:2px solid #42634b;padding-top:3px;padding-bottom:15px}
.word-bubbles .word-bubble.armed:after{content:'Save';position:absolute;bottom:2px;left:0;right:0;text-align:center;font-size:9px}
.occurrence-track{width:100%;height:40px;display:block}.occurrence-row{display:grid;grid-template-columns:minmax(80px,25%) minmax(0,1fr);gap:10px;align-items:center}.occurrence-label{font-size:14px;text-align:left;padding:0;overflow-wrap:anywhere}.occurrence-count{color:#7c877e;font-size:11px;margin-left:6px}.occurrence-readout{font-size:12px;color:#647569}.occurrence-readout:empty{display:none}

#inputs-tools{display:flex;align-items:center;gap:16px;margin-top:10px;min-width:0}#input-mode{display:flex;flex-shrink:0;gap:2px}#input-mode button{min-height:44px;padding:0 10px;font-size:13px;color:#78847b;border-radius:8px}#input-mode button[aria-pressed="true"]{background:#e8ede5;color:#25352b}#inputs-tools #filters{margin-top:0;min-width:0;flex:1;justify-content:flex-end}

.answer-preview{display:flex;align-items:center;gap:6px;margin:20px 0 24px}#answer-buttons{display:flex;flex:1;gap:4px;background:#edf0e9;border-radius:14px;padding:4px}#answer-buttons span{flex:1;display:grid;place-items:center;min-height:44px;font-size:15px;color:#617366}.answer-preview>button{min-width:40px;min-height:44px;border-radius:50%;color:#647569;font-size:21px!important}#add-form #suggestions{font-size:12px;color:#788379}
.native-auth-row{container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;max-width:440px;align-items:center}
.native-auth-row[hidden]{display:none!important}
.native-auth-row button{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 6px!important;border:1px solid #747775!important;border-radius:6px!important;background:#fff!important;color:#1f1f1f!important;font:500 clamp(10px,3.5cqw,14px)/1 system-ui,-apple-system,sans-serif!important;white-space:nowrap}
.native-google-login:before{content:'';flex:0 0 16px;width:16px;height:16px;background:url('/google-signin.png') center/contain no-repeat}
.native-auth-row .native-apple-login{font-size:0!important;background:#fff url('/apple-signin.png') center/min(200px,calc(100% - 16px)) auto no-repeat!important}
#account-dialog .native-auth-row{margin:16px 0 4px}



.native-auth-row.native-auth-single{grid-template-columns:minmax(0,1fr)}

.icon-create-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 12px}.icon-create-actions button{min-height:42px;padding:8px 12px;font-size:13px}.library-usage{font-size:12px;color:#637260;margin-left:auto}.library-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:10px;padding:4px}.library-image-card{display:flex;flex-direction:column;gap:4px;min-width:0}.library-image-card>button:first-child{width:100%;height:72px;border-radius:12px}.library-image-card>button:first-child img{width:60px;height:60px}.library-image-card>button:last-child:not(:first-child){font-size:12px;min-height:36px;color:#8a3f38;background:#f3e6e1}.library-empty{grid-column:1/-1;font-size:14px;line-height:1.5;padding:12px 0;color:#637260}.library-status{font-size:13px;line-height:1.45;margin:10px 0 0}.library-status:empty{display:none}.library-confirm{width:min(360px,calc(100vw - 32px));border:0;border-radius:18px;padding:20px;color:#42634b;background:#f7f8f5}.library-confirm::backdrop{background:#263b2a66}.library-confirm img{display:block;width:96px;height:96px;object-fit:cover;border-radius:16px;margin:auto}.library-confirm p{font-size:14px;line-height:1.5}.library-confirm button{min-height:44px;padding:8px 14px}.scan-feedback{display:flex;align-items:center;gap:12px;padding:14px;background:#e9efe4;border-radius:12px;font-size:14px;line-height:1.4}.scan-feedback[hidden],.scan-progress[hidden]{display:none}.scan-spinner{flex:none;width:22px;height:22px;border:3px solid #c5d2bf;border-top-color:#42634b;border-radius:50%;animation:face-scan-spin .85s linear infinite}.scan-progress{display:block;width:100%;height:8px;margin-top:12px;accent-color:#42634b}.sticker-dialog .batch-progress{font-size:12px}.sticker-dialog .import-actions{flex-wrap:wrap;gap:8px;position:sticky;bottom:0;background:#f7f8f5;padding-top:10px}.sticker-dialog .import-actions .primary{flex:1;min-height:44px;font-size:14px}.sticker-dialog .toggle-stickers{font-size:12px;padding:0 10px}@keyframes face-scan-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.scan-spinner{animation:none}}
