:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;color:#192d28;background:#f6f8f6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--page: #f6f8f6;--surface: #fff;--ink: #192d28;--muted: #465e55;--teal: #176d63;--teal-dark: #10594f;--teal-soft: #e6f2ed;--line: #dbe5df;--focus: #146a60;--pad: clamp(14px, 3vw, 40px);--gap: clamp(8px, 1.05vw, 13px)}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:280px}button,input,select{font:inherit}button{color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:enabled{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:disabled{cursor:default}img{display:block;object-fit:contain}h1,h2,p{margin:0}svg{flex:none}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link:focus{position:fixed;top:12px;left:12px;z-index:20;background:var(--surface);padding:12px}.app-header{background:var(--surface);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}.header-inner,.workspace{width:100%;max-width:1376px;margin-inline:auto;padding-inline:max(var(--pad),env(safe-area-inset-left)) max(var(--pad),env(safe-area-inset-right))}.header-inner{min-height:70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand img{width:38px;height:38px;border-radius:10px}.brand h1{font-size:1.28rem;font-weight:740;letter-spacing:-.04em;line-height:1.12}.main-nav{display:flex;align-items:center;gap:5px}.nav-button,.utility-button,.tool-button,.back-button,.all-categories{min-height:44px;border:0;background:transparent;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-weight:650;border-radius:8px}.nav-button{padding-inline:13px;color:var(--muted)}.nav-button[aria-current=page]{background:var(--teal-soft);color:var(--teal-dark)}.utility-button{min-width:44px;padding:0 8px}.display-toggle{justify-self:end;border:1px solid var(--line);color:var(--muted)}.workspace{padding-bottom:calc(28px + env(safe-area-inset-bottom))}.communication-dock{position:sticky;top:env(safe-area-inset-top);z-index:2;padding-top:16px;padding-bottom:14px;background:var(--page)}.sentence{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:5px 13px 12px}.sentence-top,.sentence-body{display:flex;align-items:center;gap:12px}.sentence-top{justify-content:space-between;margin-bottom:1px}.sentence-top h2{display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:720;padding-left:2px}.sentence-top h2 svg{color:var(--teal)}.sentence-tools{display:flex;gap:3px;align-items:center}.tool-button{color:var(--muted);padding-inline:9px;font-size:.875rem;white-space:nowrap}.tool-button:disabled,.utility-button:disabled{color:#6b7b75}.sentence-track{background:#f2f6f3;border:1px solid #e5ede7;border-radius:9px;height:85px;min-width:0;flex:1;display:flex;align-items:center;gap:5px;padding:3px 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.sentence-empty{color:var(--muted);font-size:1rem;padding:0 8px}.sentence-token{position:relative;flex:0 0 auto;width:75px;height:74px}.token-image{width:100%;height:100%;padding:3px 7px 3px 2px;background:transparent;border:2px solid transparent;border-radius:9px}.token-image img{width:100%;height:100%}.sentence-token.selected .token-image{border-color:var(--teal)}.token-remove{position:absolute;top:0;right:-1px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent}.token-remove svg{width:20px;height:20px;padding:2px;border-radius:50%;background:var(--surface);border:1px solid #bacbc2}.voice-buttons{display:flex;align-items:stretch;align-self:stretch;gap:7px;flex:none}.speak,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 17px;color:#fff;background:var(--teal);border:1px solid transparent;border-radius:9px;font-weight:700}.speak{min-width:clamp(105px,16vw,179px);font-size:1.16rem}.speak:disabled{color:#34554d;background:#d9e9e2;opacity:1}.stop-speech{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;min-width:45px;color:var(--ink);border-radius:9px;background:var(--surface);border:1px solid var(--line);font-weight:650}.sentence-selection{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:3px 0 0}.sentence-selection>span{max-width:8em;overflow:hidden;text-overflow:ellipsis;padding-left:5px;font-weight:650}.selection-close{min-width:44px;margin-left:auto}.sentence-message{margin-top:9px;font-size:.9rem;color:#673f22}.quick{display:flex;align-items:center;gap:15px;background:#eaf1ed;border:1px solid #dce7df;border-radius:12px;padding:6px 11px;margin-top:11px}.quick h2{font-size:.9rem;font-weight:730;line-height:1.18;color:#315247;max-width:107px}.quick-symbols{display:grid;gap:7px;grid-template-columns:repeat(6,minmax(0,1fr));flex:1;max-width:515px;min-width:0}.quick .symbol-tile{min-height:48px;padding:3px}.quick .symbol-tile img{width:100%;height:49px}.board-area{display:grid;grid-template-columns:minmax(0,1fr);gap:21px}.board,.shortcuts{min-width:0;scroll-margin-top:240px}.board-heading,.shortcuts-heading{min-height:57px;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:3px}.board-heading h2{width:fit-content;font-size:clamp(1.36rem,2.5vw,1.72rem);line-height:1.15;font-weight:740;letter-spacing:-.045em}.board-heading h2:focus{outline:none}.back-button{color:var(--teal-dark);padding-inline:2px 11px;font-size:.88rem;margin-top:-4px}.pagination{display:flex;align-items:center;flex:none;gap:4px;font-variant-numeric:tabular-nums;color:var(--muted);font-size:.88rem;font-weight:650}.pagination .utility-button{border:1px solid var(--line);background:var(--surface)}.pagination span{min-width:43px;text-align:center}.board-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:var(--gap)}.symbol-tile,.category-tile,.category-shortcut{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.symbol-tile{display:grid;place-items:center;padding:clamp(4px,.6vw,9px)}.board-grid .symbol-tile img{width:100%;height:auto;max-width:clamp(86px,calc(620px / var(--columns)),226px);aspect-ratio:1}.category-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:8px 4px;overflow-wrap:anywhere;font-size:.94rem;line-height:1.15;font-weight:690}.category-tile img{width:min(100%,110px);height:auto;aspect-ratio:1}.shortcut-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shortcuts-heading h2{font-size:1.08rem;font-weight:720}.all-categories{color:var(--teal-dark);padding:0 5px;font-size:.88rem;white-space:nowrap}.category-shortcut{display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;padding:6px 8px;font-weight:670;line-height:1.15}.category-shortcut img{width:43px;height:43px}.category-shortcut svg{color:var(--muted)}.board-message{color:var(--muted);margin-top:12px;line-height:1.5}.board-message .primary-button{margin-top:12px}.search-field{display:flex;align-items:center;gap:9px;padding:3px 9px 3px 12px;margin-bottom:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);max-width:36rem}.search-field input{min-width:0;width:100%;border:0;border-radius:4px;min-height:44px;color:var(--ink);background:var(--surface)}.search-field input::-webkit-search-cancel-button{appearance:none}.display-dialog{width:min(calc(100% - 32px),405px);padding:19px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--surface)}.display-dialog::backdrop{background:#13261f70}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:14px}.dialog-heading h2{font-size:1.35rem}.display-dialog label{display:block;font-weight:650;margin-bottom:7px}.display-dialog select{width:100%;min-height:48px;padding:0 10px;border:1px solid #aabeb3;border-radius:8px;color:var(--ink);background:var(--surface)}.display-dialog p{margin-top:12px;color:var(--muted);line-height:1.45}.display-dialog .dialog-note{border-top:1px solid var(--line);padding-top:12px;font-size:.9rem}.display-dialog .primary-button{margin-top:16px;width:100%}@media(hover:hover){.nav-button:enabled:hover,.utility-button:enabled:hover,.tool-button:enabled:hover,.back-button:enabled:hover,.all-categories:enabled:hover,.stop-speech:hover{background:#eaf2ee}.symbol-tile:enabled:hover,.category-shortcut:enabled:hover,.category-tile:enabled:hover{border-color:#82aa9a}.speak:enabled:hover,.primary-button:hover{background:var(--teal-dark)}.token-remove:hover svg{background:#e6f2ed}}.symbol-tile:active,.category-tile:active,.category-shortcut:active{background:var(--teal-soft);border-color:var(--teal)}@media(min-width:960px){.board-area.with-shortcuts{grid-template-columns:minmax(0,1fr) minmax(183px,21%);gap:26px}.shortcuts{padding-left:18px;border-left:1px solid var(--line)}.shortcut-list{grid-template-columns:minmax(0,1fr)}}@media(max-width:640px){.header-inner{grid-template-columns:1fr auto;gap:0 8px;padding-block:10px 6px}.brand img{width:33px;height:33px;border-radius:8px}.brand h1{font-size:1.16rem}.main-nav{grid-column:1 / -1;grid-row:2;justify-content:space-between;margin-top:6px}.nav-button{flex:1;padding-inline:5px;font-size:.9rem}.display-toggle{grid-column:2;grid-row:1}.communication-dock{padding-top:8px;padding-bottom:8px}.sentence{padding:3px 7px 7px}.sentence-top,.sentence-body{gap:5px}.sentence-top h2{font-size:.9rem;gap:5px}.sentence-tools{gap:0}.tool-button{gap:4px;padding-inline:5px;font-size:.8rem}.voice-buttons{flex-direction:column;gap:3px}.speak{width:82px;min-width:0;padding-inline:4px;gap:3px;font-size:.95rem;flex:1}.speak svg{width:19px}.stop-speech{min-height:36px;font-size:.8rem}.sentence-track{height:71px;padding-inline:4px}.sentence-token{width:62px;height:61px}.quick{display:block;padding:6px;margin-top:6px}.quick h2{max-width:none;margin:0 0 5px 1px;font-size:.83rem}.quick-symbols{gap:4px;max-width:none}.quick .symbol-tile{padding:2px}.quick .symbol-tile img{height:auto;max-height:49px;aspect-ratio:1}.board-grid{grid-template-columns:repeat(var(--phone-columns),minmax(0,1fr))}.category-shortcut{gap:6px}.category-shortcut svg{display:none}.category-shortcut img{width:32px;height:32px}.category-shortcut{grid-template-columns:32px minmax(0,1fr);font-size:.86rem;padding-inline:4px}}@media(max-width:360px){.sentence-top h2 svg{display:none}.sentence-tools svg{width:14px}.shortcut-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-height:500px)and (orientation:landscape){.communication-dock{position:relative;top:auto}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}.symbol-fallback{display:grid;place-items:center;min-height:44px;padding-inline:2px;font-size:.88rem;line-height:1.15;font-weight:700;overflow-wrap:anywhere;text-align:center}.board-grid .symbol-fallback{min-height:68px}.token-image .symbol-fallback{font-size:.75rem}.category-shortcut span{grid-column:2}.category-shortcut svg{grid-column:3}@media(min-width:960px)and (max-height:840px)and (orientation:landscape){.header-inner{min-height:61px}.communication-dock{padding-top:11px;padding-bottom:10px}.sentence{padding-bottom:9px}.sentence-track{height:74px}.sentence-token{height:68px}.quick{margin-top:8px}.board-heading,.shortcuts-heading{min-height:48px}.board-grid[data-layout="6x4"] .symbol-tile{padding:6px}.board-grid[data-layout="6x4"] .symbol-tile img{max-width:clamp(78px,calc((100dvh - 440px)/4),103px)}}@media(max-width:640px){.stop-speech{min-height:44px}.quick .symbol-fallback{font-size:.72rem}}
