:root{--bg:#f7f4ec;--surface:#fffdf8;--ink:#29372f;--muted:#657066;--green:#42674f;--sage:#dfe7d6;--peach:#f4dfcf;--lavender:#e7e0ee;--sand:#eee6d2;--line:#dddeda;--soft:#eeeee5;--shadow:0 10px 38px #263a2c08}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#e9ece5;color:var(--ink);font:17px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0}a{color:var(--green)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #537c5a;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #537c5a}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#app{max-width:740px;margin:auto;min-height:100dvh;background:var(--bg);padding-bottom:100px}.top{display:flex;align-items:center;gap:9px;padding:22px 26px 14px}.brand{font-weight:750;letter-spacing:-1px;font-size:27px;display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;white-space:nowrap}.brandDot{color:#8caa79;margin-left:-8px}.brandMark{background:var(--sage);color:var(--green);border-radius:12px;font-size:21px;padding:3px 9px;letter-spacing:-3px;font-weight:650}.brandMark span{font-size:17px}.voiceChip{margin-left:auto;border:1px solid var(--line);background:var(--surface);border-radius:24px;padding:9px 12px;min-height:44px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}.statusDot{width:7px;height:7px;border-radius:50%;background:#949c8a}.voiceChip.ready .statusDot{background:#4a7c54}.voiceChip.busy .statusDot{background:#b08e42}.iconButton{min-height:44px;min-width:44px;border-radius:12px;background:transparent;display:inline-flex;align-items:center;justify-content:center;font-size:27px;flex-shrink:0}main{padding:8px 26px 25px}h1{font-size:31px;font-weight:650;line-height:1.2;letter-spacing:-.9px;margin:8px 0 10px}h2{font-size:19px;letter-spacing:-.3px;margin:22px 0 12px;font-weight:700}h3{font-size:17px;margin:0 0 7px}p{margin:7px 0 16px}.muted{color:var(--muted)}.small{font-size:13px}.intro{color:var(--muted);margin-bottom:22px}.button{border-radius:15px;min-height:55px;padding:14px 18px;display:inline-flex;align-items:center;justify-content:center;gap:11px;background:var(--sage);font-weight:650;line-height:1.35;text-align:center;text-decoration:none}.primary{background:var(--green);color:white}.sage{background:var(--sage)}.peach{background:var(--peach)}.lavender{background:var(--lavender)}.sand{background:var(--sand)}.outline{background:transparent;border:1px solid var(--line)}.wide{width:100%}.writeButton{min-height:67px;font-size:20px;justify-content:flex-start;border-radius:18px}.writeButton .arrow{margin-left:auto;font-size:26px;font-weight:400}.sectionHeading{display:flex;align-items:center;justify-content:space-between;gap:8px}.sectionHeading h2{flex:1}.textButton{color:var(--green);background:transparent;font-size:13px;font-weight:600;min-height:44px;padding:8px 10px;border-radius:10px;text-decoration:underline;text-underline-offset:3px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick .button{font-size:17px;min-height:62px;padding:12px 10px}.phraseList{display:flex;flex-direction:column;gap:9px}.phrase{justify-content:flex-start;min-height:68px;padding:15px 17px;text-align:left;font-weight:550;font-size:18px;border:1px solid transparent;width:100%;overflow-wrap:anywhere}.phrase>span{flex:1}.phrase.active{border-color:var(--green);box-shadow:0 0 0 2px #42674f30}.phrase.active svg{color:var(--green)}.phrase small{display:block;font-size:12px;font-weight:500;color:var(--muted);margin-top:5px}.category{min-height:96px;justify-content:flex-start;text-align:left;border:1px solid #ffffff60;gap:13px;padding:17px 15px}.category svg{width:28px;height:28px}.category span{flex:1}.category small{display:block;font-size:12px;font-weight:400;margin-top:3px;color:var(--muted)}.search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin:20px 0 12px}.search:focus-within{outline:2px solid var(--green)}.search input{min-height:29px;width:100%;border:0;background:transparent;padding:0;outline:0}.search input:focus{outline:0}.card{background:var(--surface);padding:20px;border:1px solid var(--line);border-radius:18px;margin:16px 0;box-shadow:var(--shadow)}.card h2{margin-top:0}.voiceWelcome{display:flex;gap:12px;align-items:flex-start;padding:15px 17px;background:#edf0e4;border:1px solid #dce3cd;border-radius:15px;margin:20px 0}.voiceWelcome svg{margin-top:3px}.voiceWelcome p{margin:0 0 7px;font-size:13px;color:var(--muted)}.voiceWelcome strong{display:block;font-size:14px;margin-bottom:4px}.voiceWelcome .textButton{padding:4px 0;min-height:35px;font-size:13px}.empty{color:var(--muted);padding:20px 5px;text-align:center;font-size:15px}.footnote{font-size:12px;color:var(--muted);text-align:center;margin:23px 0 4px}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:10;width:min(100%,740px);background:var(--bg);border-top:1px solid var(--line);display:flex;padding:7px 10px max(8px,env(safe-area-inset-bottom));gap:7px}nav button{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:58px;background:transparent;border-radius:12px;font-size:12px;color:var(--muted)}nav .selected{background:var(--sage);color:var(--green);font-weight:700}.player{position:fixed;bottom:82px;left:50%;transform:translateX(-50%);z-index:20;width:min(calc(100% - 24px),690px);padding:13px 17px;background:#fffdf8fa;border:1px solid #d1d9c8;border-radius:17px;box-shadow:0 6px 28px #23342a1f}.playerTop{display:flex;align-items:center;gap:9px}.playerTop strong{flex:1;font-size:14px;overflow-wrap:anywhere}.player p{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0 7px}.player canvas{display:block;width:100%;height:23px}.player progress{display:block;width:100%;height:4px;border:0;accent-color:var(--green);margin:6px 0 0}.playerMeta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:4px}.stopButton,.miniButton{border-radius:10px;padding:9px 12px;min-height:42px;font-size:13px;background:var(--peach);font-weight:700}.miniButton{background:var(--sage)}.player .iconButton{min-width:32px;min-height:34px;font-size:24px}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid #d7dfcf;border-top-color:var(--green);animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}body.hasPlayer #app{padding-bottom:260px}label.fieldLabel{display:block;font-size:15px;font-weight:650;margin:18px 0 8px}textarea,input.field,select{width:100%;border-radius:13px;border:1px solid var(--line);background:var(--surface);padding:13px}textarea{resize:vertical;min-height:140px;font-size:22px;line-height:1.45}.field{font-size:24px;min-height:62px}.actions{display:flex;gap:10px;margin:14px 0}.actions>*{flex:1}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.chips button{background:var(--lavender);border-radius:22px;padding:10px 15px;min-height:44px;font-size:14px}.preview{background:var(--surface);border:1px solid var(--line);border-radius:17px;margin-top:18px;padding:17px;overflow-wrap:anywhere}.preview p{font-size:25px;margin:7px 0 0}.composerActions{position:sticky;bottom:0;background:var(--bg);z-index:4;padding:10px 0;margin:10px 0 0}.composerActions .button{font-size:19px}.composeHint{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.composeQuick{margin-top:16px}.bubble{padding:15px 17px;border-radius:17px;background:var(--sage);margin:11px 0;overflow-wrap:anywhere}.bubble.other{background:var(--lavender)}.bubble small{color:var(--muted);font-size:11px}.bubble p{font-size:19px;margin:5px 0 9px;white-space:pre-wrap}.bubble button{border-radius:9px;padding:8px 12px;min-height:40px;font-size:13px;background:#ffffff90;margin-right:5px}.checkbox{display:flex;gap:12px;align-items:flex-start;font-size:15px;margin:18px 0}.checkbox input{width:21px;height:21px;flex-shrink:0;accent-color:var(--green);margin-top:2px}.checkbox span{flex:1}.checkbox small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.manageRow{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px;display:flex;gap:12px;align-items:center}.manageRow>span{flex:1;font-size:16px;overflow-wrap:anywhere}.manageActions{display:flex;flex-wrap:wrap;gap:4px;max-width:145px;justify-content:flex-end}.manageActions button{min-height:39px;min-width:39px;background:var(--lavender);border-radius:8px;padding:7px;font-size:12px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{font-size:12px;padding:5px 9px;background:var(--soft);border-radius:7px}.notice{background:var(--peach);padding:14px;border-radius:13px;font-size:14px}.settingsRow{margin:18px 0}.settingsRow label{display:block;font-weight:600;font-size:14px;margin-bottom:7px}.infoList{padding-left:20px;font-size:15px}.infoList li{margin:10px 0}details summary{cursor:pointer;min-height:40px;font-weight:600;padding:6px 0}.diagnostic{white-space:pre-wrap;font:12px/1.7 ui-monospace,monospace;overflow-wrap:anywhere;max-height:260px;overflow:auto;background:var(--soft);border-radius:10px;padding:12px}.aboutTitle{font-size:25px;font-weight:650;line-height:1.3;letter-spacing:-.5px}dialog{width:min(calc(100% - 28px),520px);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:21px;padding:23px;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#20362870}dialog h2{margin:0}#saveDialog textarea{font-size:19px}#showDialog{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:0;overflow:hidden}.displayBar{display:flex;gap:8px;padding:10px;background:var(--bg);border-bottom:1px solid var(--line);height:77px}.displayBar .button{min-height:48px;font-size:14px;padding:10px}.displayBar .button:first-child{margin-right:auto}#showArea{height:calc(100dvh - 77px);padding:25px;display:flex;flex-direction:column;overflow:auto}#largeText{margin:auto 0;white-space:pre-wrap;text-align:center;overflow-wrap:anywhere;font-weight:650;line-height:1.3}#showArea.flipped{transform:rotate(180deg)}body.displayOpen .player{z-index:30}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;z-index:100;padding:12px 18px;border-radius:12px;background:#294b35;color:white;width:max-content;max-width:90%;font-size:14px;box-shadow:0 6px 20px #0002}body.hasPlayer #toast{bottom:245px}.largeText{font-size:19px}.largeText .phrase{font-size:21px}.largeText .category{font-size:19px}.largeText .quick .button{font-size:19px}[hidden]{display:none!important}@media(min-width:850px){#app{margin:24px auto;min-height:calc(100dvh - 48px);border-radius:24px;box-shadow:0 10px 50px #25372c13}main{padding:8px 32px 30px}.top{padding:25px 32px 17px}nav{bottom:0;border-radius:16px 16px 0 0}.category{min-height:106px}.grid.quick{grid-template-columns:repeat(4,1fr)}h1{font-size:35px}}@media(max-width:390px){main{padding:5px 16px 24px}.top{padding:17px 16px 12px}.brand{font-size:25px}.voiceChip{font-size:11px;padding:8px}.brandMark{display:none}.category{padding:14px 11px;gap:9px;font-size:15px}.category small{font-size:11px}.quick .button{font-size:15px;gap:7px}.phrase{font-size:17px}.player{padding:11px 13px}.displayBar .button{font-size:12px;padding:8px}h1{font-size:28px}.actions .button{padding:12px}.manageActions{max-width:110px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.spinner{animation:none}}

#showState{height:30px;text-align:center;font-size:13px;color:var(--muted);margin:0;background:var(--bg)}#showDialog #showArea{height:calc(100dvh - 107px)}
.grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.category>span{min-width:0;overflow-wrap:anywhere}
@media(min-width:850px){.grid.quick{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:520px){.largeText .grid:not(.quick){grid-template-columns:1fr}}
body.composePage .player{bottom:max(12px,env(safe-area-inset-bottom))}
body.composePage.hasPlayer .composerActions{bottom:170px}
.button.active{outline:2px solid var(--green);outline-offset:2px}

#offlineProgress{display:block;width:100%;height:12px;accent-color:var(--green);margin:12px 0}#offlineState{font-size:15px}#offlineCard h3{margin-top:22px}#offlineStorage{margin-top:12px}
