/* Approved visual system, connected to the original AAC DOM and data. */
@font-face{font-family:Pretendard;src:local("Pretendard Variable"),local("Pretendard");font-weight:100 900;font-display:swap}
:root {
  color-scheme:light; --bg:#E4E4DF; --surface:#fff; --surface-muted:#F1F1ED;
  --text:#23231F; --muted:#595952; --line:#B9B9B1; --primary:#23231F;
  --primary-strong:#383831; --focus:#16161A; --focus-halo:#fff; --danger:#923817;
  --radius:18px; --aac-font-scale:100%; --font-multiplier:1;
  --tile-min:120px; --tile-font:20px; --large-font:30px; --gap:12px; --quick-height:48px;
  font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-width:320px;height:100%;background:var(--bg);color:var(--text)}
body{font:400 16px/1.5 Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;word-break:keep-all;overflow-wrap:anywhere;overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button,summary{min-width:44px;min-height:44px;border:1px solid #85857D;background:var(--surface);border-radius:12px;padding:10px 16px;font-weight:500;cursor:pointer}
button:hover,summary:hover{background:var(--surface-muted)}
button:disabled{opacity:.48;cursor:default}
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px;box-shadow:0 0 0 3px var(--focus-halo)}
input,select,textarea{min-width:0;min-height:44px;border:1px solid #85857D;border-radius:10px;padding:10px 12px;background:var(--surface);width:100%}
input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--primary)}
input[type=range]{padding:0;accent-color:var(--primary)}
input[type=color]{padding:3px;width:100%;min-height:44px}
h1,h2,h3,p{margin:0}h1,h2{font-size:24px;line-height:1.3;font-weight:800}h3{font-size:17px;margin-bottom:12px}
fieldset{min-width:0;border:0;margin:0;padding:0}legend{font-weight:700;margin-bottom:8px}
a{color:inherit}svg{display:block}
[hidden],.hidden,.is-hidden{display:none!important}
.sr-only{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link{position:fixed;top:8px;left:8px;z-index:100;transform:translateY(-200%);background:var(--surface);padding:12px}
.skip-link:focus{transform:none}
.is-managing .skip-link{display:none}
.app-shell{height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden}
.app-header{grid-row:1;display:flex;align-items:center;justify-content:space-between;min-height:56px;gap:12px;background:var(--surface);padding:max(5px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 5px max(20px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center;border:0;background:transparent;padding:0;font-size:24px;white-space:nowrap}
.brand:hover{background:transparent}.brand-mark{width:36px;height:36px;fill:var(--text)}.brand-mark-line{stroke:var(--surface);stroke-width:2.6;fill:none}
.header-tools{display:flex;align-items:center;gap:12px;min-width:0}.profile-control{max-width:240px}.profile-control>label{display:none}.profile-control select{border-radius:99px;font-size:14px}
.management-menu{display:none}
.notice{grid-row:2;background:#FFFCF2;color:#4A3400;padding:4px 12px;font-size:13px}
.workspace{grid-row:3;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0;overflow:hidden}
.sentence-panel{display:flex;gap:12px;padding:8px 20px;background:var(--surface);border-bottom:1px solid var(--line);min-width:0}
.sentence-strip{display:flex;align-items:center;gap:8px;min-width:0;flex:1;height:66px;overflow-x:auto;overflow-y:hidden;padding:5px;border:1px solid var(--line);border-radius:14px;scrollbar-width:thin}
.sentence-placeholder{font-size:15px;color:var(--muted);padding:8px}
.sentence-token{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:63px;max-width:130px;height:54px;border:2px solid var(--tile-line);border-radius:10px;padding:3px 8px;background:var(--tile-bg);color:var(--tile-ink);font-weight:700;font-size:12px}
.sentence-token svg,.sentence-token img{width:30px;height:30px;object-fit:cover}
.sentence-token .token-label{line-height:1.18;text-align:center}
.sentence-actions{display:flex;gap:8px;flex:none}
.sentence-actions button{font-size:14px;font-weight:700;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:92px;min-height:66px;padding:10px 12px}
.sentence-actions button>span:first-child{font-size:21px;line-height:1}.speak-button{min-width:120px!important}
.primary-button{background:var(--primary);border-color:var(--primary);color:var(--surface)}.primary-button:hover{background:var(--primary-strong)}
.secondary-button{background:var(--surface);color:var(--text)}.danger-button{color:var(--danger);border-color:#A45310;background:#FFF5EE}
.board-section{display:flex;flex-direction:column;min-height:0;min-width:0;padding:8px 20px 10px}
.board-heading{display:flex;align-items:center;gap:12px;min-height:32px;margin-bottom:4px}
.board-heading h2{font-size:16px}.board-hint{font-size:12px;color:var(--muted)}
.board-scroll{min-height:0;min-width:0;flex:1;overflow:auto;padding:6px;scrollbar-width:thin;overscroll-behavior:contain}
.board-grid{--grid-rows:3;--grid-columns:4;display:grid;height:100%;min-width:0;grid-template-columns:repeat(var(--grid-columns),minmax(48px,1fr));grid-template-rows:repeat(var(--grid-rows),minmax(var(--tile-min),1fr));gap:var(--gap)}
.aac-tile{position:relative;display:grid;grid-template-rows:62% 38%;width:100%;height:100%;min-height:var(--tile-min);min-width:48px;padding:0;border:3px solid var(--tile-line);border-radius:18px;background:var(--tile-bg);color:var(--tile-ink);font-size:calc(var(--tile-font)*var(--font-multiplier));font-weight:800;line-height:1.2;touch-action:manipulation}
.aac-tile:hover,.aac-tile:active{background:var(--tile-bg);box-shadow:inset 0 0 0 2px var(--tile-line)}
.tile-symbol-area{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;padding:26px 26px 2px;overflow:hidden;container-type:size}
.symbol-square{width:min(100cqw,100cqh,128px);height:min(100cqw,100cqh,128px);aspect-ratio:1;flex:none;display:grid;place-items:center}
.symbol-square svg,.symbol-square img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.tile-symbol{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.tile-label{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;height:100%;padding:0 5px 3px;text-align:center;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
.tile-label>span{line-height:1.05}
.tile-cue{position:absolute;top:7px;left:8px;width:26px;height:24px;display:grid;place-items:center;border-radius:5px;color:var(--tile-line);background:var(--tile-bg);pointer-events:none}
.tile-cue svg{width:24px;height:20px;fill:currentColor}
.tile-category-strip{position:absolute;left:40px;right:13px;top:0;height:5px;background:var(--tile-line);border-radius:0 0 5px 5px;pointer-events:none}
.aac-tile[data-display=symbol] .tile-label{visibility:hidden}
.aac-tile[data-display=text] .tile-symbol-area,.aac-tile[data-display=text_large] .tile-symbol-area{visibility:hidden}
.aac-tile[data-display=text_large] .tile-label{position:absolute;inset:20px 4px 4px;height:auto;font-size:calc(var(--large-font)*var(--font-multiplier))}
.aac-tile.is-selected{outline:3px solid var(--focus);outline-offset:3px;box-shadow:0 0 0 3px var(--focus-halo)}
.aac-tile.is-hidden-editor{opacity:.6}
.tile-badge{position:absolute;top:6px;right:8px;font-size:10px;background:var(--surface);color:var(--text);border:1px solid #85857D;border-radius:4px;padding:1px 3px}
.board-paging{display:flex;align-items:center;gap:4px;margin-left:auto}.board-paging p{font-size:12px;color:var(--muted)}.board-paging button{min-width:44px;padding:4px 8px;font-size:12px}
.category-bar{display:flex;gap:6px;overflow:auto;padding:4px 6px;margin-bottom:4px;flex-shrink:0}.category-bar button{white-space:nowrap;font-size:13px}
.category-bar button[aria-pressed=true]{background:var(--primary);color:var(--surface)}
.quick-panel{padding:4px 20px 5px;border-top:1px solid var(--line);min-width:0}
.quick-panel .panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}.quick-panel h2{font-size:13px}.quick-panel .form-help{font-size:11px}
.quick-grid{display:grid;grid-template-columns:repeat(6,minmax(48px,1fr));grid-template-rows:repeat(2,var(--quick-height));gap:6px;padding:5px 6px}
.quick-tile{position:relative;min-width:48px;min-height:48px;height:var(--quick-height);border:3px solid var(--tile-line);border-radius:12px;background:var(--tile-bg);color:var(--tile-ink);padding:14px 4px 3px;font-size:16px;font-weight:800;line-height:1.2;word-break:keep-all;overflow-wrap:anywhere}
.quick-tile:hover{background:var(--tile-bg)}.quick-tile .tile-cue{width:16px;height:12px;top:3px;left:5px}.quick-tile .tile-cue svg{width:15px;height:11px}
.bottom-nav{grid-row:4;display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;border-top:1px solid var(--line);padding:5px max(20px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:var(--surface)}
.bottom-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-color:transparent;font-size:14px;font-weight:700;padding:8px 16px}.bottom-nav button:last-child{border-color:#85857D;min-width:145px}
.bottom-nav button[data-action=home]{grid-column:1;grid-row:1}.bottom-nav button[data-action=personal]{grid-column:2;grid-row:1}.bottom-nav button[data-action=back]{grid-column:3;grid-row:1}
.nav-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.bottom-nav button:first-child{background:#EDEDE9}
.status-message{position:fixed;z-index:60;bottom:70px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);background:#23231F;color:#fff;border:1px solid #fff;border-radius:10px;padding:8px 12px;font-size:13px;pointer-events:none}
.status-message:empty{display:none}.status-message[data-type=error]{background:#712C19}
.panel-backdrop{display:none}
.side-panel{position:fixed;z-index:21;inset:max(56px,env(safe-area-inset-top)) env(safe-area-inset-right) max(56px,env(safe-area-inset-bottom)) env(safe-area-inset-left);display:grid;grid-template-rows:auto auto minmax(0,1fr);background:var(--bg);overflow:hidden}
.side-panel>.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 30px 8px}
.therapist-panel{background:#2E3A44;color:#fff}.therapist-panel .eyebrow{color:#E5EBEF}.therapist-panel>.panel-heading .icon-button{color:#23231F}
.settings-panel{grid-template-rows:auto minmax(0,1fr)}
.settings-panel .panel-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:start}.settings-panel .editor-section{margin:0}
.panel-scroll{overflow:auto;min-height:0;padding:12px 30px 24px}
.management-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:4px 30px 8px}.management-tabs button{font-size:14px;color:#23231F}
.management-tabs button[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px;background:#E4E4DF}
.editor-section{background:#fff;color:#23231F;border-radius:18px;padding:22px;margin-bottom:18px;min-width:0}
.editor-section .form-help,.editor-section .eyebrow{color:#595952}
.tile-edit-section{background:transparent;padding:0;color:#fff}.tile-edit-section>.form-help{color:#E5EBEF}
.editor-heading-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.editor-heading-row button{color:#23231F}
.editor-layout{display:grid;grid-template-columns:345px minmax(0,1fr);gap:20px;align-items:start;margin-top:16px}
.editor-form-column{padding:22px;background:#fff;color:#23231F;border-radius:18px}
.editor-board{padding:16px;background:var(--bg);color:var(--text);min-width:0;border-radius:18px}
.editor-board .board-grid{height:420px;--tile-font:20px;--large-font:26px;--gap:10px}
.editor-board .board-scroll{overflow:auto}
.editor-board details{margin-top:16px}.editor-board summary{background:var(--surface)}
.form-row,.inline-form{display:grid;gap:6px;margin-bottom:14px}.inline-form>div{display:flex;gap:8px}.inline-form input{min-width:0}
.form-row>label,.inline-form>label{font-size:14px;font-weight:500}
.compact-fields{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}
.form-help,.eyebrow{font-size:13px;color:var(--muted);line-height:1.6}.eyebrow{font-size:12px;letter-spacing:.08em;margin-bottom:6px}
.editor-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.editor-actions button{font-size:13px}
.position-warning,.backup-reminder{background:#FFFCF2;color:#4A3400;border:1px solid #8B6812;border-radius:12px;padding:12px;font-size:13px;margin:10px 0}
.move-controls{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.move-controls>span{width:100%;font-size:14px}.move-controls button{flex:1;min-width:44px;padding:8px}
.modeling-note{border-top:1px solid var(--line);margin-top:18px;padding-top:12px}
.label-warning{color:#923817;background:#FFF5EE;border:1px solid #A45310;border-radius:7px;padding:8px;font-size:12px;line-height:1.5}
.tile-list,.vocab-list{display:grid;gap:8px;margin-top:12px}.tile-list-item{display:grid;grid-template-columns:1fr auto auto;gap:6px}.tile-list-item button:first-child{grid-column:1/-1;text-align:left}.tile-list-item small{display:block;color:var(--muted)}
.vocab-category{border:1px solid #85857D;border-radius:12px;padding:14px}.vocab-category p{font-size:13px;margin-top:6px}
.choice-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.choice-group legend,.choice-group .form-help{grid-column:1/-1}
.choice-group button{text-align:left}.choice-group strong,.choice-group small{display:block}.choice-group small{font-size:12px;margin-top:6px}
.choice-group button[aria-pressed=true]{background:#23231F;color:#fff}
#gridChoices{display:flex;flex-wrap:wrap}#gridChoices button{min-width:80px}
.check-row{display:flex;gap:10px;align-items:center;min-height:44px}.range-row{display:grid;gap:6px;margin-bottom:14px}.range-row label{display:flex;justify-content:space-between}
.profile-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.profile-card{display:grid;gap:8px;text-align:left;min-height:110px;border-radius:16px}.profile-card strong{font-size:20px}.profile-card[aria-pressed=true]{border:3px solid #23231F}
.photo-drop-zone{border:1px solid #85857D;border-radius:12px;padding:12px;text-align:center}.photo-drop-zone p{font-size:12px;color:var(--muted);margin-bottom:8px}
.photo-choice{display:grid;grid-template-columns:1fr 1fr;gap:6px}.photo-choice button{font-size:13px;padding:8px 6px}
.photo-preview{width:72px;height:72px;object-fit:cover;border:1px solid #85857D;border-radius:10px}
.is-image-drop-target{outline:3px solid var(--focus);outline-offset:3px;box-shadow:0 0 0 3px var(--focus-halo)}
.photo-drop-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;background:var(--surface);border-radius:12px;font-size:13px}
.photo-confirm-preview{display:block;max-width:100%;width:200px;max-height:240px;object-fit:contain;margin:12px auto}
.icon-button{width:44px;padding:4px;font-size:24px}.install-list{padding-left:20px}.install-list li{margin-bottom:10px}
dialog{color:var(--text);background:var(--surface);border:1px solid #85857D;border-radius:22px;padding:26px;width:min(490px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
dialog::backdrop{background:#151B20B8}dialog h2{margin-bottom:12px}dialog form{display:grid;gap:10px}
.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}.dialog-actions button{min-height:46px}
.crop-dialog{width:min(770px,calc(100vw - 24px))}.crop-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:24px;align-items:start;margin-top:20px}
#cropCanvas{width:100%;aspect-ratio:1;border:2px solid #23231F;border-radius:12px;background:#E4E4DF;touch-action:none}
.crop-controls{display:grid;gap:12px}.crop-controls label{display:flex;justify-content:space-between}.zoom-row{display:flex;gap:6px;align-items:center}.zoom-row button{width:44px;padding:4px;font-size:20px}.zoom-row input{flex:1;min-width:0}#cropError{color:var(--danger);margin-top:12px}
.large-text{--font-multiplier:1.14;--tile-min:144px}
.high-contrast{--bg:#000;--surface:#000;--surface-muted:#151515;--text:#fff;--muted:#eee;--line:#fff;--primary:#fff;--primary-strong:#eee;--focus:#fff;--focus-halo:#000;color-scheme:dark}
.high-contrast .aac-tile,.high-contrast .quick-tile{outline:2px solid #fff;outline-offset:1px}
.high-contrast .editor-section,.high-contrast .editor-form-column{background:#000;color:#fff}.high-contrast .editor-section .form-help{color:#eee}
.high-contrast .bottom-nav button:first-child{background:#222}.high-contrast .management-tabs button{color:#fff;background:#000}
.high-contrast .profile-card[aria-pressed=true]{border-color:#fff}
@media(min-width:1400px){:root{--large-font:32px}.app-header,.sentence-panel,.board-section,.quick-panel{padding-left:28px;padding-right:28px}}
@media(max-width:899px){
 :root{--tile-min:120px;--tile-font:20px;--large-font:26px;--gap:9px;--quick-height:72px}
 .sentence-panel{flex-direction:column;gap:6px;padding:10px 14px}.sentence-strip{flex:none;min-height:74px;height:74px}
 .sentence-token{height:62px;min-width:62px}.sentence-token svg,.sentence-token img{width:31px;height:31px}
 .sentence-actions button{flex:1;flex-direction:row;min-width:0;min-height:44px;padding:6px 8px;font-size:13px}.speak-button{min-width:0!important}
 .editor-layout{grid-template-columns:300px minmax(0,1fr);gap:14px}.profile-cards{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 :root{--tile-min:100px;--tile-font:16px;--large-font:22px;--gap:6px;--quick-height:76px}
 .app-header{min-height:62px;gap:8px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))}
 .brand{font-size:20px;gap:7px}.brand-mark{width:30px;height:30px}.profile-control{max-width:145px}.profile-control select{font-size:13px;padding:7px 12px}
 .sentence-panel{padding:8px 10px;gap:6px}.sentence-actions{gap:5px}.sentence-actions button{font-size:12px;white-space:nowrap;gap:5px}
 .board-section{padding:4px 6px}.board-heading{padding:0 6px;gap:7px;margin-bottom:2px;min-height:32px}.board-heading h2{font-size:14px}.board-hint{font-size:10px}
 .board-paging button{padding:4px;font-size:11px}.board-paging p{font-size:10px}
 .aac-tile{border-radius:12px}.tile-cue{width:21px;height:17px;top:3px;left:5px}.tile-cue svg{width:19px;height:15px}
 .tile-category-strip{height:4px;left:31px;right:9px}.tile-symbol-area{padding:22px 13px 1px}.tile-label{padding:0 3px 2px}
 .quick-panel{padding:5px 0 6px}.quick-panel .panel-heading{padding:0 12px}.quick-panel h2{font-size:12px}.quick-panel .form-help{font-size:10px}
 .quick-grid{gap:3px;padding:5px 6px}.quick-tile{border-radius:9px;padding:15px 2px 3px;font-size:13px}
 .bottom-nav{gap:2px;padding:5px max(6px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));grid-template-columns:repeat(4,1fr)}
 .bottom-nav button{font-size:12px;min-height:46px;gap:4px;padding:5px}.bottom-nav button:last-child{min-width:0}
 .side-panel{top:62px;bottom:57px}.panel-scroll{padding:12px}.side-panel>.panel-heading{padding:14px 12px 8px}
 .management-tabs{padding:4px 12px;gap:5px}.management-tabs button{font-size:12px;padding:6px}
 .editor-layout{display:flex;flex-direction:column-reverse;gap:14px}.editor-board,.editor-form-column{width:100%}
 .editor-board{padding:12px}.editor-board .board-grid{height:342px;--tile-min:110px;--tile-font:15px;--gap:6px}
 .editor-section,.editor-form-column{padding:17px}.tile-edit-section{padding:0}.choice-group{grid-template-columns:1fr}
 .profile-cards{gap:10px}.profile-card{padding:12px}.profile-card strong{font-size:18px}.status-message{bottom:64px}
 .large-text{--tile-min:118px}
 .settings-panel .panel-scroll{grid-template-columns:1fr}.settings-panel>.panel-heading{flex-wrap:wrap}
 .crop-layout{grid-template-columns:1fr;gap:16px}#cropCanvas{width:min(100%,270px);margin:auto}.crop-controls{gap:8px}.crop-dialog{padding:20px}
}
@media(max-height:540px) and (orientation:landscape){
 :root{--tile-min:100px;--tile-font:16px;--large-font:22px;--gap:7px;--quick-height:76px}
 .app-header{min-height:50px;padding-top:3px;padding-bottom:3px}.brand{font-size:20px}.brand-mark{width:30px;height:30px}
 .sentence-panel{flex-direction:row;padding:5px 12px;gap:7px}.sentence-strip{height:52px;min-height:52px;flex:1}.sentence-token{flex-direction:row;height:40px;min-width:64px}.sentence-token svg,.sentence-token img{width:26px;height:26px}
 .sentence-actions{flex:none}.sentence-actions button{font-size:12px;min-height:44px;min-width:85px;padding:5px}
 .workspace{grid-template-columns:minmax(0,1fr) 336px;grid-template-rows:auto minmax(0,1fr)}
 .sentence-panel{grid-column:1/-1;grid-row:1}.board-section{grid-column:1;grid-row:2;padding:2px 4px 2px 8px}
 .board-heading{min-height:28px;margin:0;padding:0 5px}.board-heading h2{font-size:13px}.board-hint{font-size:10px}
 .quick-panel{grid-column:2;grid-row:2;border-top:0;border-left:1px solid var(--line);padding:6px;min-height:0;overflow:auto}
 .quick-grid{gap:3px;padding:5px 0}.quick-tile{font-size:13px;padding:15px 2px 3px}
 .quick-panel h2{font-size:12px}.quick-panel .form-help{font-size:10px}
 .bottom-nav{padding-top:3px;padding-bottom:max(3px,env(safe-area-inset-bottom))}.bottom-nav button{min-height:44px}
 .side-panel{top:50px;bottom:51px}.large-text{--tile-min:118px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.reduce-motion *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
/* Keep the management view aligned with the same safe-area header and footer tracks. */
.app-header{min-height:calc(56px + env(safe-area-inset-top));padding-top:calc(5px + env(safe-area-inset-top))}
.bottom-nav{padding-bottom:calc(5px + env(safe-area-inset-bottom))}
.side-panel{top:calc(56px + env(safe-area-inset-top));bottom:calc(56px + env(safe-area-inset-bottom))}
@media(max-width:620px){.app-header{min-height:calc(62px + env(safe-area-inset-top));padding-top:calc(8px + env(safe-area-inset-top))}.side-panel{top:calc(62px + env(safe-area-inset-top));bottom:calc(57px + env(safe-area-inset-bottom))}}
@media(max-height:540px) and (orientation:landscape){.app-header{min-height:calc(50px + env(safe-area-inset-top));padding-top:calc(3px + env(safe-area-inset-top))}.bottom-nav{padding-bottom:calc(3px + env(safe-area-inset-bottom))}.side-panel{top:calc(50px + env(safe-area-inset-top));bottom:calc(51px + env(safe-area-inset-bottom))}}
