/* Glyph's cream, slate, peach and sage interface. No remote assets. */
:root{--g-paper:#fffcf7;--g-bg:#faf6ef;--g-ink:#263f4b;--g-muted:#647780;--g-line:#dcded6;--g-wash:#eceee7;--g-rail:#35596b;--g-on-rail:#fffcf7;--g-sky:#aac5cf;--g-peach:#f1b797;--g-sage:#c7d5bb;--g-ai:#35596b}
:root[data-theme=dark]{--g-paper:#203640;--g-bg:#192e38;--g-ink:#f7f0e6;--g-muted:#afc1c9;--g-line:#3b535d;--g-wash:#2c444e;--g-rail:#264b5d;--g-on-rail:#f7f0e6;--g-sky:#87afbf;--g-peach:#eeb795;--g-sage:#a5b992;--g-ai:#aac5cf}
body.glyph-modern{--ink:var(--g-paper);--surface:var(--g-bg);--panel:var(--g-bg);--text:var(--g-ink);--dim:var(--g-muted);--line:var(--g-line);--blue:var(--g-ai);--sel-bg:var(--g-wash);--green:var(--g-sage);--yellow:var(--g-peach);--ui:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--mono:ui-monospace,Consolas,monospace;background:var(--g-paper);color:var(--g-ink);font-family:var(--ui)}
.glyph-modern .app{--g-nav-width:210px;margin-left:54px;width:calc(100% - 54px);max-width:none;border:0;height:var(--visible-height,100dvh);display:grid;grid-template-columns:var(--g-nav-width) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
.glyph-modern .body{min-height:0;position:relative;display:flex;flex:1;overflow:hidden;background:var(--g-paper)}
.glyph-modern #side{display:none!important}.glyph-modern #bar{display:block;min-height:90px;height:auto;padding:0;background:var(--g-paper);border-bottom:1px solid var(--g-line);grid-column:2;grid-row:1;min-width:0}.glyph-modern .body{grid-column:2;grid-row:2}.glyph-modern #status{grid-column:2;grid-row:3}
.g-rail{position:fixed;inset:0 auto 0 0;width:54px;z-index:140;background:var(--g-rail);color:var(--g-on-rail);display:flex;align-items:center;flex-direction:column;gap:10px;padding:14px 7px}
.g-rail button{width:38px;min-height:38px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:inherit;padding:9px;cursor:pointer;transition:background .22s,transform .22s}.g-rail button:hover{background:#ffffff16;transform:translateY(-1px)}.g-rail button[aria-pressed=true]{background:#ffffff26}.g-rail hr{width:22px;border:0;border-top:1px solid #ffffff30;margin:5px 0}.g-rail-bottom{margin-top:auto;display:grid;justify-items:center;gap:10px}
.g-icon{width:16px;height:16px;display:inline-block;flex:none;vertical-align:middle}.g-icon svg{width:100%;height:100%}.g-avatar{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--g-sage);color:#263f4b;font-size:11px;flex:none}
.g-nav{width:var(--g-nav-width);grid-column:1;grid-row:1/4;min-height:0;flex:none;background:var(--g-bg);border-right:1px solid var(--g-line);display:flex;flex-direction:column;padding:18px 12px;gap:18px;overflow:auto;transition:opacity .22s}
.g-brand{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:700;letter-spacing:-.8px;padding:0 8px}.g-mark{display:grid;place-items:center;background:var(--g-rail);color:var(--g-on-rail);width:27px;height:27px;border-radius:8px}
.g-nav-section{display:grid;gap:4px}.g-nav-label{font-size:10px;letter-spacing:.05em;color:var(--g-muted);padding:5px 9px;text-transform:uppercase}.g-nav-head{padding:11px 8px;border-block:1px solid var(--g-line);font-size:13px}.g-nav-head small{display:block;font-size:11px;color:var(--g-muted);margin-top:6px}.g-nav button,.g-nav select{font:inherit;color:var(--g-ink)}
.g-nav-button{display:flex;align-items:center;gap:9px;background:transparent;border:0;border-radius:5px;padding:8px 9px;min-height:34px;width:100%;text-align:left;cursor:pointer;font-size:12px}.g-nav-button:hover,.g-nav-button[aria-current=page]{background:var(--g-wash)}.g-nav-button[aria-current=page]{font-weight:600}.g-nav-button span.g-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.g-note-row{display:flex;align-items:center;min-width:0}.g-note-row>.g-nav-button{min-width:0}.g-note-menu{background:transparent;color:var(--g-muted);border:0;padding:6px;cursor:pointer;border-radius:4px}.g-note-menu:hover{background:var(--g-wash)}
.g-workspace-picker{display:flex;gap:6px}.g-workspace-picker select{width:100%;min-width:0;padding:9px 8px;border:1px solid var(--g-line);border-radius:7px;background:var(--g-paper);font-size:12px}.g-nav-footer{margin-top:auto;border-top:1px solid var(--g-line);padding-top:12px;display:grid;gap:5px}.g-user{display:flex;align-items:center;gap:8px;padding:8px;font-size:12px}.g-user small{font-size:10px;color:var(--g-muted)}
.g-nav select{width:100%;min-width:0;padding:9px 8px;border:1px solid var(--g-line);border-radius:7px;background:var(--g-paper);color:var(--g-ink);font-size:12px}
.g-search{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid var(--g-line);border-radius:5px;background:var(--g-paper);color:var(--g-muted);min-width:0;margin:5px 0}.g-search svg{flex:none;width:15px}.g-search input{min-width:0;width:100%;border:0;background:transparent;color:var(--g-ink);font:12px var(--ui);padding:0}.g-search input::placeholder{color:var(--g-muted)}
.g-tabs{display:flex;min-height:38px;gap:3px;align-items:stretch;padding:0 12px;background:var(--g-bg);border-bottom:1px solid var(--g-line);overflow:auto;scrollbar-width:thin}.g-tabs button{display:flex;gap:7px;align-items:center;max-width:210px;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px 12px;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--g-muted);font:11px var(--ui);cursor:pointer}.g-tabs button[aria-current=page]{border-bottom-color:var(--g-rail);color:var(--g-ink);background:var(--g-paper)}
.g-topbar{display:flex;align-items:center;gap:14px;padding:9px 20px;min-height:52px}.g-breadcrumb{display:flex;gap:9px;align-items:center;font:11px var(--ui);min-width:0;flex:1}.g-breadcrumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumb small{color:var(--g-muted);font-size:11px}.g-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.g-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:32px;padding:6px 9px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--g-ink);font:12px var(--ui);cursor:pointer;transition:background .2s,transform .2s}.g-button:hover,.g-button[aria-pressed=true]{background:var(--g-wash)}.g-button:active{transform:scale(.96)}.g-button:disabled{opacity:.5;cursor:wait}.g-button.g-outline{border-color:var(--g-line)}.g-button.g-primary{background:var(--g-rail);color:var(--g-on-rail)}.g-modes{display:flex;border:1px solid var(--g-line);padding:2px;border-radius:6px}.g-modes .g-button{min-height:26px;padding:3px 8px;font-size:11px}.g-modes .g-button[aria-pressed=true]{background:var(--g-wash)}
.glyph-modern .main{background:var(--g-paper);min-width:0;flex:1;overflow:hidden}.glyph-modern .note-scroll{background:var(--g-paper);padding:0}.glyph-modern .note-surface{max-width:880px;min-height:100%;margin:0 auto;padding:24px 54px 200px;box-sizing:border-box;background:transparent}.glyph-modern .page-title-row{padding:22px 0 30px;max-width:none;margin:0;gap:10px}.glyph-modern .page-title{font:650 34px/1.3 var(--ui);letter-spacing:-1px;color:var(--g-ink)}.glyph-modern .page-icon-btn{font-size:24px;min-width:24px}.glyph-modern .page-quick-actions{display:none}.glyph-modern #blockEditor{max-width:none;margin:0;padding:0;font:16px/1.9 var(--ui);color:var(--g-ink);min-height:380px}.glyph-modern #blockEditor [contenteditable]:focus,.glyph-modern .page-title:focus{outline:none;box-shadow:none}.glyph-modern #blockEditor .block{margin:0 0 15px}.glyph-modern #blockEditor .block-h1,.glyph-modern #blockEditor .block-h2,.glyph-modern #blockEditor .block-h3{font-family:var(--ui);margin-top:27px;color:var(--g-ink);letter-spacing:-.3px}.glyph-modern #blockEditor .block-h2{font-size:22px}.glyph-modern #blockEditor .block-h3{font-size:19px}.glyph-modern .kbar{background:var(--g-bg);border-color:var(--g-line);padding:7px 16px;box-shadow:none;flex-wrap:wrap;max-height:none}.glyph-modern .kbar[hidden]{display:none!important}.glyph-modern .kbar button{color:var(--g-ink);border-radius:4px;min-width:31px}.glyph-modern .drawbar{background:var(--g-bg);border-color:var(--g-line);font-family:var(--ui)}
.g-note-meta{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;color:var(--g-muted);font-size:11px;margin-bottom:4px}.g-ai-toggle{font:11px var(--ui);display:inline-flex;align-items:center;gap:6px;border:1px solid var(--g-line);border-radius:18px;background:var(--g-bg);color:var(--g-ink);padding:5px 9px;cursor:pointer}.g-ai-toggle[aria-pressed=true]{background:var(--g-wash)}.g-ai-dot{width:5px;height:5px;border-radius:50%;background:var(--g-muted)}.g-ai-toggle[aria-pressed=true] .g-ai-dot{background:var(--g-ai)}.g-ink-hint{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:var(--g-muted);font-size:11px;padding:4px 0 0;position:relative;z-index:5}.g-ink-hint .g-button{font-size:11px;padding:3px 0;min-height:24px}
.g-context{width:250px;flex:none;overflow:auto;border-left:1px solid var(--g-line);background:var(--g-bg);padding:24px 17px;font:12px/1.8 var(--ui);color:var(--g-ink)}.g-context[hidden]{display:none}.g-context-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px}.g-context h2{font-size:13px;margin:0;font-weight:600}.g-context h3{font-size:11px;font-weight:500;color:var(--g-muted);margin:24px 0 12px;text-transform:uppercase;letter-spacing:.04em}.g-context p{margin:8px 0 14px;overflow-wrap:anywhere}.g-context select,.g-context input{font:12px var(--ui);width:100%;min-width:0;background:var(--g-paper);color:var(--g-ink);border:1px solid var(--g-line);border-radius:5px;padding:8px;margin:5px 0}.g-context label{font-size:11px;color:var(--g-muted)}.g-context details{padding:12px 0;border-top:1px solid var(--g-line);overflow-wrap:anywhere}.g-context summary{cursor:pointer}.g-context small,.g-muted{color:var(--g-muted);font-size:11px}.g-member,.g-event{display:flex;gap:9px;align-items:flex-start;margin-bottom:18px}.g-event small{display:block;margin-top:4px}.g-detail{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--g-line)}.g-sources a{display:block;color:var(--g-ai);overflow-wrap:anywhere;font-size:11px;margin:8px 0}.g-job{padding:13px 0;border-top:1px solid var(--g-line)}
.glyph-modern .ws-root{position:static;inset:auto;z-index:auto;display:block;min-width:0;flex:1;overflow:hidden;background:var(--g-paper);font-family:var(--ui)}.glyph-modern .ws-sidebar,.glyph-modern .ws-header{display:none}.glyph-modern .ws-content{height:100%}.glyph-modern .ws-main{padding:35px clamp(20px,4vw,60px);background:var(--g-paper)}.glyph-modern .ws-main h1{font-size:32px;font-weight:650}.glyph-modern .ws-eyebrow{font-family:var(--ui);font-size:10px;color:var(--g-muted);letter-spacing:1px}.glyph-modern .ws-card{border-radius:9px;background:var(--g-bg);box-shadow:none}.glyph-modern .ws-stat{color:var(--g-ai);font-size:30px}.glyph-modern .ws-button{border-radius:5px;font-size:12px;background:var(--g-bg)}.glyph-modern .ws-primary{background:var(--g-rail);color:var(--g-on-rail)}.glyph-modern .ws-table th{background:var(--g-bg);font-family:var(--ui);letter-spacing:.02em}.glyph-modern .ws-column{border:0;background:var(--g-bg);border-radius:8px}.glyph-modern .ws-task-card{background:var(--g-paper);border-radius:7px}.glyph-modern #workspaceDocNavigation{display:none}.glyph-modern .status{background:var(--g-bg);color:var(--g-muted);border-top:1px solid var(--g-line);font:10px var(--ui);padding:6px 18px;min-height:27px}.glyph-modern .modal,.glyph-modern .ws-modal{font-family:var(--ui);background:var(--g-paper);color:var(--g-ink);border-color:var(--g-line);border-radius:12px}.glyph-modern .modal h2{font-family:var(--ui)}
.glyph-modern:is([data-g-screen=workspace],[data-g-screen=planner]) #main{display:none}.glyph-modern[data-g-focus=true] .g-nav,.glyph-modern[data-g-focus=true] .g-context{display:none}.glyph-modern[data-g-nav=false] .g-nav{display:none}
.g-ink-letter{display:inline-block}.g-ink-word{animation:g-ink-arrive .25s ease-out both}.g-ink-pending{color:var(--g-ai)!important;min-height:1.9em}.g-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.g-status-error{color:var(--red,#b24a48)}
.glyph-modern #blockEditor a{color:var(--g-ai)}
@media(max-width:600px){.g-actions .g-modes .g-button-label{display:inline}}
@keyframes g-ink-arrive{from{opacity:0;filter:blur(2px)}to{opacity:1;filter:blur(0)}}
@media(max-width:1100px){.glyph-modern .app{--g-nav-width:190px}.g-context{width:230px;padding:20px 14px}.glyph-modern .note-surface{padding-inline:30px}.g-topbar{padding-inline:12px;gap:8px}}
@media(max-width:900px){.g-context{position:absolute;z-index:60;right:0;top:0;bottom:0;width:min(310px,calc(100% - 24px));box-shadow:-12px 0 35px #0002}.glyph-modern .app{--g-nav-width:180px}.g-breadcrumb small{display:none}.g-topbar{flex-wrap:wrap}.g-actions{margin-left:auto}.glyph-modern .ws-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
@media(max-width:600px){.g-rail{width:46px;padding:12px 4px}.g-rail button{width:36px;min-height:40px}.glyph-modern .app{--g-nav-width:0px;margin-left:46px;width:calc(100% - 46px)}.g-nav{position:absolute;z-index:70;left:0;top:0;bottom:0;width:min(260px,100%);box-shadow:12px 0 35px #0002}.glyph-modern #bar{min-height:92px}.g-topbar{padding:7px 9px;gap:6px}.g-tabs{padding-inline:2px}.g-tabs button{padding:9px 8px;max-width:150px}.g-breadcrumb{font-size:11px;gap:6px}.g-actions{gap:1px}.g-actions>.g-button{padding:5px 7px}.g-topbar .g-actions>.g-button>.g-button-label{display:none}.g-modes .g-button{padding:5px 7px}.glyph-modern .note-surface{padding:20px 20px 160px}.glyph-modern .page-title{font-size:28px}.glyph-modern .page-title-row{padding-block:24px}.glyph-modern #blockEditor{font-size:16px;line-height:1.85}.glyph-modern .kbar{max-height:140px;overflow:auto;padding:5px}.glyph-modern .ws-main{padding:25px 18px}.glyph-modern .ws-grid{grid-template-columns:1fr}.glyph-modern .ws-table-scroll{max-width:100%}.g-context{width:min(300px,100%)}.glyph-modern .status{font-size:10px}.glyph-modern .ws-main h1{font-size:27px}.g-note-meta{font-size:10px}}
@media(pointer:coarse){.g-button,.g-nav-button,.g-note-menu,.g-ai-toggle{min-height:44px}.g-rail button{min-height:44px}.g-context input,.g-context select{font-size:16px}}
@media(prefers-reduced-motion:reduce){.glyph-modern *{animation:none!important;transition:none!important}}
@media print{.g-rail,.g-nav,.g-context,.g-note-meta,.g-ink-hint{display:none!important}.glyph-modern .app{margin:0;width:100%;height:auto}.glyph-modern .note-surface{padding:0}}
/* The sidebar spans the whole shell; page tabs and tools share one content edge. */
.glyph-modern[data-g-nav=false] .app,.glyph-modern[data-g-focus=true] .app{--g-nav-width:0px}
.g-tabs .g-button-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-rail .g-account-button{position:relative;padding:3px;isolation:isolate}
.g-account-button>.g-avatar{width:31px;height:31px;font-size:12px}
.g-account-button>.g-icon{position:absolute;right:-1px;bottom:1px;width:15px;height:15px;padding:2px;border-radius:50%;background:var(--g-rail);color:var(--g-on-rail)}
#glyphHeaderAI{position:relative}#glyphHeaderAI[aria-pressed=true]{color:var(--g-ai);background:var(--g-wash)}#glyphHeaderAI[aria-pressed=true]::after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.glyph-modern .kbar{flex-direction:column;align-items:stretch;gap:0;padding:6px 20px;border-top:0;border-bottom:1px solid var(--g-line);overflow:auto;max-height:min(280px,35dvh);scrollbar-width:thin}
.g-format-row{display:flex;gap:3px;align-items:center;flex-wrap:wrap;min-height:36px}.g-format-more[hidden]{display:none}.g-format-more{border-top:1px solid var(--g-line);margin-top:5px;padding-top:5px}
.glyph-modern .kbar .g-button{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-width:30px;height:30px;padding:5px 7px;font-size:12px}.glyph-modern .kbar svg{width:17px;height:17px}.glyph-modern .kbar .g-button:hover{background:var(--g-wash)}
.g-format-caption{font-size:11px;white-space:nowrap}.g-format-label{font-size:10px;color:var(--g-muted);width:50px;flex:none}.g-style-label{display:flex;align-items:center;gap:8px;margin-right:8px;color:var(--g-muted);font-size:11px}.g-style-label select{font:12px var(--ui);color:var(--g-ink);background:var(--g-paper);border:1px solid var(--g-line);border-radius:5px;padding:5px 24px 5px 8px;max-width:135px;min-height:30px}
.g-note-meta{justify-content:flex-start;margin:0;font-size:11px;line-height:20px}.g-ink-hint[hidden]{display:none}.g-ink-hint{justify-content:flex-start;gap:12px;line-height:20px}.glyph-modern .page-title-row{align-items:center;gap:12px}.glyph-modern .page-icon-btn{padding:0;display:grid;place-items:center;align-self:center}.glyph-modern .page-title{min-width:0}
.glyph-modern #blockEditor .block-todo,.glyph-modern #blockEditor .block-ul,.glyph-modern #blockEditor .block-ol{align-items:flex-start;gap:11px;line-height:1.9;padding-block:0}
.glyph-modern #blockEditor .block-todo input{width:16px;height:16px;flex:0 0 16px;margin:7px 0 0;accent-color:var(--g-ai)}
.glyph-modern #blockEditor .block-text{line-height:inherit;margin:0;padding:0;min-width:0}.glyph-modern #blockEditor .marker{width:17px;flex:0 0 17px;text-align:center;line-height:inherit}
.glyph-modern .g-settings{width:min(880px,100%);padding:0;overflow:auto;box-shadow:0 25px 100px #0004;animation:g-settings-in .25s cubic-bezier(.2,.8,.2,1)}
.g-settings .ws-modal-head{margin:0;padding:20px 24px;border-bottom:1px solid var(--g-line)}.g-settings .ws-modal-head h2{font-size:20px;letter-spacing:-.4px}.g-settings .ws-modal-head button{border:0;background:var(--g-wash);padding:7px 14px}
.g-settings .ws-modal-body{display:grid;grid-template-columns:190px minmax(0,1fr);gap:0;min-height:405px}.g-settings .ws-modal-actions{display:none}.g-settings-nav{background:var(--g-bg);padding:20px 12px;border-right:1px solid var(--g-line)}.g-settings-nav .g-nav-button{font-size:12px;margin-bottom:5px}.g-settings-profile{display:grid;grid-template-columns:32px 1fr;column-gap:9px;align-items:center;padding:4px 8px 22px;margin-bottom:12px;border-bottom:1px solid var(--g-line)}.g-settings-profile .g-avatar{grid-row:1/3;width:32px;height:32px}.g-settings-profile strong{font-size:12px;overflow-wrap:anywhere}.g-settings-profile small{font-size:10px;color:var(--g-muted)}
.g-settings-content{padding:28px 30px;min-width:0}.g-settings-content h3{font-size:21px;letter-spacing:-.5px;margin:0 0 7px}.g-settings-intro{font-size:12px;color:var(--g-muted);margin:0 0 25px;line-height:1.7}.g-setting-row{display:flex;align-items:center;gap:12px;padding:19px 0;border-bottom:1px solid var(--g-line)}.g-setting-row>.g-icon{align-self:flex-start;margin-top:4px;color:var(--g-muted)}.g-setting-copy{flex:1;min-width:0}.g-setting-copy strong{font-size:12px;font-weight:600}.g-setting-copy p{color:var(--g-muted);font-size:11px;line-height:1.65;margin:5px 0 0}.g-setting-row>.g-button{flex:none;font-size:11px}.g-settings-note{padding:13px 15px;border-radius:7px;background:var(--g-wash);font-size:11px;line-height:1.8;color:var(--g-muted);margin-top:24px}
.g-theme-options{display:flex;gap:16px;margin-bottom:16px}.g-theme-choice{display:grid;gap:12px;padding:10px 10px 12px;border:1px solid var(--g-line);border-radius:9px;background:var(--g-paper);color:var(--g-ink);width:160px;max-width:50%;cursor:pointer;text-align:left;transition:transform .2s,border-color .2s}.g-theme-choice:hover{transform:translateY(-3px)}.g-theme-choice[aria-pressed=true]{border:2px solid var(--g-ai);padding:9px 9px 11px}.g-theme-choice strong{font-size:12px;padding-left:3px}.g-theme-preview{display:grid;grid-template-columns:26px 1fr;grid-template-rows:18px 1fr;gap:0;border:1px solid #dcded6;border-radius:5px;height:82px;overflow:hidden;background:#fffcf7}.g-theme-preview i:first-child{grid-row:1/3;background:#35596b}.g-theme-preview i:nth-child(2){background:#faf6ef;border-bottom:1px solid #dcded6}.g-theme-preview i:nth-child(3){margin:13px;border-top:3px solid #aac5cf;border-bottom:3px solid #eceee7}.g-theme-choice[data-theme-preview=dark] .g-theme-preview{background:#203640;border-color:#3b535d}.g-theme-choice[data-theme-preview=dark] .g-theme-preview i:first-child{background:#264b5d}.g-theme-choice[data-theme-preview=dark] .g-theme-preview i:nth-child(2){background:#192e38;border-color:#3b535d}.g-theme-choice[data-theme-preview=dark] .g-theme-preview i:nth-child(3){border-color:#aac5cf #3b535d #3b535d}
@keyframes g-settings-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.glyph-modern .wiki-popup{z-index:180;background:var(--g-paper);color:var(--g-ink);border-color:var(--g-line);box-shadow:0 12px 35px #0002;padding:7px;font:12px var(--ui)}.glyph-modern .wiki-popup li{font:12px/1.6 var(--ui);padding:9px 11px}.glyph-modern .wiki-popup .popup-grip{position:sticky;top:-7px;background:var(--g-paper);color:var(--g-muted);letter-spacing:.08em;font-size:10px;min-height:24px}
.g-setting-danger .g-setting-copy strong,.g-setting-danger>.g-button{color:var(--red,#b24a48)}
.glyph-modern .callout-tip .callout-head,.glyph-modern .callout-warning .callout-head{color:var(--g-ink)}
.glyph-modern .g-search:focus-within{border-color:var(--g-muted);box-shadow:none}.glyph-modern .g-search input:focus,.glyph-modern .g-search input:focus-visible{outline:none;box-shadow:none;border:0}.glyph-modern .palette-dropdown{z-index:180;background:var(--g-paper);color:var(--g-ink);border-color:var(--g-line);border-radius:9px;box-shadow:0 12px 36px #0002}.glyph-modern .palette-section{font-size:10px;color:var(--g-muted);letter-spacing:.04em}.glyph-modern .palette-list{padding:7px}.glyph-modern .palette-list li{padding:11px 10px;font-size:12px;border-radius:5px}.glyph-modern .palette-list li.sel{background:var(--g-wash);color:var(--g-ink)}.glyph-modern .palette-list .kind{font-size:10px;color:var(--g-muted)}
@media(max-width:600px){.g-topbar{display:grid;grid-template-columns:28px minmax(0,1fr);padding:7px 10px;gap:4px}.g-topbar>.g-actions{grid-column:1/-1;width:100%;justify-content:flex-end;gap:2px}.g-topbar .g-modes{margin-right:auto}.g-nav{width:min(260px,100%)}.glyph-modern .kbar{padding:5px 10px;max-height:30dvh}.g-format-row{gap:2px}.g-style-label{margin-right:4px}.g-style-label select{max-width:115px}.glyph-modern .kbar .g-button{min-width:30px;height:32px}.g-settings .ws-modal-head{padding:16px 18px}.g-settings .ws-modal-body{grid-template-columns:minmax(0,1fr);min-height:0}.g-settings-nav{display:flex;gap:4px;overflow-x:auto;padding:10px;border-right:0;border-bottom:1px solid var(--g-line)}.g-settings-profile{display:none}.g-settings-nav .g-nav-button{width:auto;flex:none;padding:8px;min-height:36px;margin:0;gap:6px;font-size:11px}.g-settings-content{padding:22px 18px;min-height:310px}.g-setting-row{gap:9px}.g-theme-options{gap:12px}.g-settings-content h3{font-size:20px}}
@media print{.glyph-modern .app,.glyph-modern .body{display:block;height:auto;overflow:visible}.glyph-modern .main{overflow:visible}.glyph-modern .note-surface{max-width:none}}
.g-header-diary{display:flex;align-items:center;gap:4px;margin-inline:3px}.g-header-diary .g-button{font-size:11px;white-space:nowrap;padding-inline:5px}.g-header-diary .g-button-label{display:inline}.g-ink-preview-surface{font:18px/1.9 var(--ui);padding:36px 24px;min-height:180px;color:var(--g-ink)}.g-ink-preview-modal .ws-modal-actions{display:none}.g-ink-preview-modal .g-button{justify-self:start}
@media(max-width:1200px){.g-topbar{flex-wrap:wrap}.g-topbar .g-actions{max-width:100%}}
@media(max-width:600px){.g-header-diary{order:2;flex:1 1 100%;margin:4px 0 0;justify-content:flex-end}.g-header-diary .g-button{min-height:30px}.g-ink-preview-surface{padding:24px 8px;min-height:160px}}

@media print{.g-header-diary{display:none!important}}

.g-nav{min-width:0;overflow-x:hidden}.g-nav-section,.g-nav-footer{min-width:0}
.g-nav-close,.g-nav-backdrop{display:none}
@media(max-width:600px){.g-nav .g-nav-close{display:inline-flex;margin-left:auto;min-width:44px;min-height:44px;padding:10px;flex:none}.g-nav-backdrop:not([hidden]){display:block;position:fixed;inset:0 0 0 46px;z-index:65;border:0;border-radius:0;padding:0;background:#152c3740;cursor:pointer;-webkit-tap-highlight-color:transparent}.g-nav{padding-top:max(12px,env(safe-area-inset-top));overscroll-behavior:contain}}
@media print{.g-nav-backdrop,.g-nav-close{display:none!important}}

.g-rail-label,.g-mobile-actions,.g-phone-caption{display:none}
#glyphAlerts{position:relative}
.g-push-settings{margin-top:28px;padding-top:22px;border-top:1px solid var(--g-line)}
.g-push-controls{display:flex;gap:10px;flex-wrap:wrap}
.g-alert-badge{position:absolute;top:4px;right:7px;min-width:17px;height:17px;border-radius:9px;padding:1px 4px;background:var(--g-peach);color:#263f4b;font:600 10px/15px var(--ui)}
.g-notifications{width:min(680px,100%)}
.g-notifications-intro{font-size:15px;line-height:1.7;color:var(--g-muted);margin:4px 0 18px}
.g-notification-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.g-notification-controls .g-button{min-height:44px;font-size:14px}
.g-notification-item{width:100%;display:flex;align-items:flex-start;gap:12px;padding:18px 2px;border:0;border-bottom:1px solid var(--g-line);border-radius:0;background:none;color:var(--g-ink);text-align:left;font-family:var(--ui);cursor:pointer;min-height:78px}
.g-notification-item:hover{background:var(--g-wash)}
.g-notification-copy{display:grid;gap:7px;flex:1;min-width:0}
.g-notification-copy strong{font-size:15px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
.g-notification-copy small{font-size:12px;line-height:1.5;color:var(--g-muted)}
.g-notification-item[data-unread=true] strong{font-weight:650}
.g-unread-dot{width:7px;height:7px;background:var(--g-ai);border-radius:50%;margin:8px 0;flex:none}
.g-page-actions .ws-modal-actions{display:none}
.glyph-modern .modal-scrim{z-index:220}
.ws-task-filters{margin:0 0 20px}
.ws-task-filters>summary{cursor:pointer;color:var(--g-muted);min-height:44px;padding:12px 0;font-size:13px}
/* Phone layout: one notes list, labelled tools, and a complete settings directory. */
@media(max-width:760px), (max-width:950px) and (max-height:500px){
  body.glyph-modern{--g-mobile-nav:calc(72px + env(safe-area-inset-bottom));overflow:hidden}
  .glyph-modern .app{--g-nav-width:0px;margin-left:0;width:100%;padding-bottom:var(--g-mobile-nav)}
  .g-rail{inset:auto 0 0;width:100%;height:var(--g-mobile-nav);padding:4px max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));flex-direction:row;gap:4px;justify-content:space-around;box-shadow:0 -1px 0 #ffffff14}
  .g-rail hr,.g-rail .g-theme-shortcut{display:none}
  .g-rail-bottom{display:contents}
  .g-rail button{display:flex;flex-direction:column;width:auto;min-width:48px;min-height:62px;flex:1;padding:7px 2px;gap:6px;border-radius:12px;justify-content:center;transform:none}
  .g-rail-label{display:block;font:11px/1.2 var(--ui);white-space:nowrap}
  .g-rail .g-account-button>.g-avatar{display:none}
  .g-rail .g-account-button>.g-icon{position:static;width:22px;height:22px}
  .g-rail .g-icon{width:22px;height:22px}
  .glyph-modern #bar{min-height:0;padding-top:env(safe-area-inset-top)}
  .g-tabs{display:none}
  .g-phone-top{display:flex;align-items:center;gap:8px;min-height:66px;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));background:var(--g-paper);border-bottom:1px solid var(--g-line)}
  .g-phone-top>.g-button{min-height:48px;padding:8px 6px;gap:5px;font-size:13px;flex:none}
  .g-phone-top .g-icon{width:18px;height:18px}
  .g-phone-page{flex:1;min-width:0;display:grid;gap:4px}
  .g-phone-page strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .g-phone-page small{font-size:11px;color:var(--g-muted);line-height:1.4}
  .g-phone-page .g-save-action{justify-self:start;justify-content:flex-start;color:var(--red,#b24a48);min-height:44px;padding:4px 0;font-size:12px;text-align:left}
  .g-phone-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 10px;background:var(--g-bg)}
  .g-phone-tools>.g-button{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:55px;padding:7px 2px;font-size:12px;border-radius:9px}
  .g-phone-tools .g-icon{width:20px;height:20px}
  .g-phone-tools #glyphHeaderAI{position:relative}
  .g-phone-tools #glyphHeaderAI[aria-pressed=true]{box-shadow:inset 0 -2px 0 var(--g-ai)}
  .g-nav{position:absolute;grid-area:auto;z-index:150;inset:0 auto var(--g-mobile-nav) 0;width:min(320px,calc(100% - 44px));padding:12px 14px max(16px,env(safe-area-inset-bottom));gap:18px;box-shadow:16px 0 50px #0002;overscroll-behavior:contain}
  .g-brand{position:sticky;top:-12px;z-index:1;background:var(--g-bg);margin:-12px -14px 0;padding:12px 14px;border-bottom:1px solid var(--g-line);flex:none}
  .g-nav .g-nav-close{display:inline-flex;margin-left:auto;min-width:44px;min-height:44px;padding:10px}
  .g-nav-backdrop:not([hidden]){display:block;position:fixed;inset:0 0 var(--g-mobile-nav);z-index:145;border:0;border-radius:0;padding:0;background:#152c3759}
  .glyph-modern[data-g-screen=notes] #main,.glyph-modern[data-g-screen=notes] #status{display:none}
  .glyph-modern[data-g-screen=notes] .g-nav{inset:0 0 var(--g-mobile-nav);width:100%;padding:20px max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left));background:var(--g-paper);box-shadow:none;gap:22px}
  .glyph-modern[data-g-screen=notes] .g-brand{position:static;margin:0;padding:0;border:0;background:none;font-size:23px}
  .glyph-modern[data-g-screen=notes] .g-nav-close{display:none}
  .glyph-modern[data-g-screen=notes] .g-nav-head{padding:0;border:0;font-size:29px;font-weight:650;letter-spacing:-.7px}
  .glyph-modern[data-g-screen=notes] .g-nav-head small{font-size:14px;font-weight:400;letter-spacing:0;line-height:1.6;margin-top:7px}
  .g-new-note{width:100%;min-height:50px;font-size:16px;font-weight:600;border-radius:12px;margin-top:12px}
  .glyph-modern[data-g-screen=notes] .g-nav-section:has(.g-search){flex:none}
  .glyph-modern[data-g-screen=notes] .g-nav-section:has(.g-note-row){flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start}
  .glyph-modern[data-g-screen=notes] .g-note-row{min-height:65px;align-items:center}
  .glyph-modern[data-g-screen=notes] .g-note-row+.g-note-row{border-top:1px solid var(--g-line)}
  .glyph-modern[data-g-screen=notes] .g-note-row .g-label{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
  .glyph-modern[data-g-screen=notes] .g-note-row>.g-nav-button{font-size:16px;min-height:64px;padding-left:6px}
  .glyph-modern[data-g-screen=notes] .g-note-menu{opacity:1}
  .glyph-modern[data-g-screen=notes] .g-nav-footer{display:flex;gap:12px;border-top:1px solid var(--g-line);padding-top:12px;flex:none}
  .glyph-modern[data-g-screen=notes] .g-nav-footer .g-nav-button{font-size:13px;padding-inline:5px}
  .g-notes-empty{font-size:16px;line-height:1.7;color:var(--g-muted);padding:14px 0}
  .glyph-modern .ws-main.g-team-home{padding:20px max(20px,env(safe-area-inset-right)) 30px max(20px,env(safe-area-inset-left));background:var(--g-paper)}
  .g-team-home .g-brand{position:static;margin:0 0 24px;padding:0;background:none;border:0;font-size:23px}
  .glyph-modern .g-team-home h1{font-size:29px;letter-spacing:-.7px;margin:0 0 7px;line-height:1.25}
  .g-team-caption{font-size:14px;line-height:1.6;color:var(--g-muted);margin:0 0 22px}
  .g-team-switcher{display:grid;gap:7px;font-size:11px;color:var(--g-muted)}
  .g-team-switcher select{width:100%;min-width:0;font:16px var(--ui);min-height:48px;padding:10px 12px;background:var(--g-paper);color:var(--g-ink);border:1px solid var(--g-line);border-radius:9px}
  .g-team-workspaces{display:flex;gap:12px;justify-content:space-between;margin:2px 0 12px}
  .g-team-workspaces .g-button{min-height:44px;padding:6px 0;font-size:12px}
  .g-team-search{margin:0 0 12px}
  .g-team-home .g-team-new,.g-team-home .g-team-join{width:100%;min-height:50px;font-size:16px;border-radius:12px}
  .g-team-home .g-team-join{margin-top:12px}
  .g-team-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 22px}
  .g-team-shortcuts .g-button{min-width:0;min-height:64px;flex-direction:column;gap:8px;border:1px solid var(--g-line);border-radius:9px;font-size:13px}
  .g-team-shortcuts .g-icon{width:21px;height:21px}
  .g-team-assigned{width:100%;justify-content:flex-start;font-size:14px;min-height:48px;background:var(--g-wash);margin:0 0 18px;padding:12px}
  .glyph-modern .g-team-pages-title{font-size:12px;color:var(--g-muted);font-weight:500;margin:18px 0 8px}
  .g-team-page{display:flex;justify-content:flex-start;width:100%;min-height:70px;padding:12px 4px;gap:12px;border-radius:0;text-align:left}
  .g-team-page+.g-team-page{border-top:1px solid var(--g-line)}
  .g-team-page>.g-icon{width:20px;height:20px;color:var(--g-muted)}
  .g-team-page-copy{flex:1;min-width:0;display:grid;gap:5px}
  .g-team-page-copy strong{font-size:16px;line-height:1.45;font-weight:500;overflow-wrap:anywhere}
  .g-team-page-copy small{font-size:12px;color:var(--g-muted)}
  .g-team-chevron{font-size:23px;color:var(--g-muted)}
  .g-team-empty{font-size:15px;color:var(--g-muted);line-height:1.7;margin:14px 0 24px}
  .g-team-footer{border-top:1px solid var(--g-line);margin-top:22px;padding-top:10px}
  .g-team-footer .g-button{min-height:48px;font-size:14px;padding-left:0}
  .g-team-archived{margin-top:18px;font-size:14px}
  .g-team-archived summary{min-height:44px;padding-block:12px}
  .g-team-archived .g-button{display:flex;min-height:48px;text-align:left}
  .glyph-modern .ws-member-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;border:1px solid var(--g-line);border-radius:10px;background:var(--g-paper);padding:16px;margin-bottom:12px}
  .ws-member-row>strong{overflow-wrap:anywhere;font-size:16px}
  .ws-member-row>.ws-inline{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
  .ws-member-row .ws-button{font-size:14px;min-height:44px}
  .g-nav-button{min-height:48px;padding:11px 10px;font-size:14px}
  .g-note-menu{min-width:44px;min-height:44px;display:grid;place-items:center}
  .g-nav-label{font-size:11px}
  .g-search{min-height:46px;padding:10px}
  .g-search input,.g-nav select{font-size:16px;min-height:24px}
  .g-search input{width:100%}
  .g-nav select{min-height:46px}
  .glyph-modern .note-surface{width:100%;max-width:760px;padding:22px max(20px,env(safe-area-inset-right)) 90px max(20px,env(safe-area-inset-left))}
  .glyph-modern .page-title-row{padding:16px 0 24px;gap:10px;align-items:flex-start}
  .glyph-modern .page-title{font-size:30px;line-height:1.25;letter-spacing:-.7px;overflow-wrap:anywhere}
  .glyph-modern .page-icon-btn{min-width:28px;align-self:flex-start;padding-top:4px}
  .glyph-modern #blockEditor{font-size:16px;line-height:1.75;min-height:240px;overflow-wrap:anywhere}
  .glyph-modern #blockEditor .block{margin-bottom:14px}
  .glyph-modern #blockEditor .block-h2{font-size:22px}
  .glyph-modern .kbar{display:block;padding:10px 12px;max-height:min(360px,42dvh);flex:none;overflow:auto;border-top:1px solid var(--g-line);border-bottom:1px solid var(--g-line)}
  .g-format-row{width:100%;min-width:0;flex-shrink:0;flex-wrap:wrap;overflow:visible;min-height:44px;gap:6px;padding-block:6px}
  .g-format-row>*{flex:none}
  .glyph-modern .kbar .g-button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:55px;min-height:52px;height:auto;font-size:16px;border:1px solid var(--g-line);border-radius:8px;padding:8px;background:var(--g-paper)}
  .g-phone-caption{display:block}
  .glyph-modern .kbar .g-format-caption{font-size:11px;line-height:1.2}
  .g-format-row>.g-format-label{width:100%;font-size:12px;color:var(--g-muted);padding:8px 0 2px}
  .g-style-label{width:100%;font-size:13px;gap:10px;margin:0;display:flex}
  .g-style-label select{flex:1;font-size:16px;max-width:none;min-height:48px;background:var(--g-paper)}
  .g-format-more{margin:0;padding:0}
  .glyph-modern .drawbar{min-height:54px;max-height:min(250px,34dvh);overflow:auto;flex-wrap:wrap;gap:6px;padding:8px 12px}
  .glyph-modern .drawbar button{min-width:44px;min-height:44px;font-size:14px}
  .glyph-modern .status{display:none}
  .g-context{position:absolute;inset:0;z-index:160;width:100%;padding:0 20px 28px;border:0;box-shadow:none;font-size:14px}
  .g-context-head{position:sticky;top:0;background:var(--g-bg);padding:12px 0;margin-bottom:16px;z-index:1;border-bottom:1px solid var(--g-line)}
  .g-context h2{font-size:16px}.g-context h3{font-size:12px}
  .g-context-head .g-button{min-width:44px;min-height:44px}
  .g-context input,.g-context select,.g-context textarea{font-size:16px;min-height:44px}
  .g-context .g-button{min-height:44px}
  .glyph-modern .ws-main{padding:24px max(18px,env(safe-area-inset-right)) 40px max(18px,env(safe-area-inset-left));min-width:0}
  .glyph-modern .ws-main h1{font-size:28px;line-height:1.2;margin:8px 0 22px;overflow-wrap:anywhere}
  .glyph-modern .ws-main h2{font-size:19px}
  .glyph-modern .ws-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .glyph-modern .ws-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .glyph-modern .ws-stats .ws-card{padding:15px;min-height:104px}
  .glyph-modern .ws-stat{font-size:30px;line-height:1.3;margin-top:6px}
  .ws-stats .ws-muted{font-size:12px;line-height:1.4}
  .glyph-modern .ws-button{min-height:44px;font-size:14px;padding:10px 12px}
  .ws-toolbar{gap:8px;margin:12px 0 18px}
  .ws-create-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-toolbar input,.ws-toolbar select{min-width:0;min-height:44px;font-size:16px}
  .ws-task-controls>select{flex:1 1 100%;width:100%}
  .ws-task-controls>.ws-button{flex:1 0 auto}
  .ws-task-filters{border:1px solid var(--g-line);border-radius:8px;padding:0 12px;margin-bottom:18px}
  .ws-task-filters>summary{font-size:14px;color:var(--g-ink)}
  .ws-task-filters .ws-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:4px}
  .ws-task-filters input{grid-column:1/-1;width:100%}
  .ws-task-filters select{width:100%}
  .ws-table-scroll,.ws-board,.ws-calendar{overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%}
  .ws-task-list{border:0;border-radius:0}
  .ws-task-list .ws-table{display:block}
  .ws-task-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ws-task-list tbody{display:grid;gap:12px}
  .ws-task-list tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid var(--g-line);border-radius:10px;padding:16px;background:var(--g-bg)}
  .ws-task-list .ws-table td{display:block;min-width:0;max-width:none;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:13px}
  .ws-task-list td:first-child{grid-column:1/-1;font-size:16px;font-weight:600}
  .ws-task-list td:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;color:var(--g-muted);margin-bottom:4px}
  .ws-task-list .ws-table button{min-height:44px;width:100%;font-size:16px;padding:0}
  .ws-board{scroll-snap-type:x proximity;gap:12px}
  .ws-board .ws-column{flex:0 0 min(280px,88%);scroll-snap-align:start;padding:12px}
  .ws-task-card select{min-height:44px;font-size:16px}
  .ws-calendar{grid-template-columns:repeat(7,minmax(72px,1fr))}
  .ws-calendar button{min-height:44px}
  .ws-chat-layout{grid-template-columns:minmax(0,1fr);gap:14px}
  .ws-channel-list{flex-direction:row;overflow-x:auto;max-width:100%}
  .ws-channel-list button{white-space:nowrap}
  .ws-compose{gap:8px}.ws-compose textarea{min-width:0;font-size:16px}
  .ws-settings-row{flex-wrap:wrap;overflow-wrap:anywhere}
  .glyph-modern .ws-modal-backdrop{top:var(--visible-top,0px);bottom:auto;height:var(--visible-height,100dvh);padding:env(safe-area-inset-top) 0 0;align-items:flex-end}
  .glyph-modern .modal-scrim{top:var(--visible-top,0px);bottom:auto;height:var(--visible-height,100dvh);padding:0;align-items:flex-end}
  .glyph-modern .modal-scrim .modal{width:100%;max-width:100%;max-height:85%;overflow:auto;border-radius:16px 16px 0 0;padding:20px 18px max(20px,env(safe-area-inset-bottom))}
  .g-legacy-modal-head{position:sticky;top:-20px;z-index:2;display:flex;gap:14px;align-items:center;background:var(--g-paper);padding:4px 0 10px;margin-bottom:8px;border-bottom:1px solid var(--g-line)}
  .g-legacy-modal-head h2{flex:1;min-width:0;font-size:18px!important;overflow-wrap:anywhere;margin:0!important}
  .g-legacy-modal-head .g-button{min-height:48px;flex:none;font-size:14px}
  .glyph-modern .modal .pick-list{max-height:60dvh}
  .glyph-modern .modal .pick-list li{min-height:48px;font-size:15px}
  .glyph-modern .modal input,.glyph-modern .modal select,.glyph-modern .modal textarea{font-size:16px;min-height:44px}
  .glyph-modern .ws-modal{width:100%;max-height:100%;padding:20px max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));border-radius:16px 16px 0 0;overscroll-behavior:contain}
  .ws-modal-head{position:sticky;top:-20px;background:var(--g-paper);padding:10px 0;z-index:2;margin-bottom:16px}
  .ws-modal-head h2{font-size:20px;min-width:0;overflow-wrap:anywhere}
  .ws-modal-head .ws-button{min-height:44px}
  .ws-modal-actions{bottom:-20px;background:var(--g-paper);padding-bottom:max(15px,env(safe-area-inset-bottom));flex-wrap:wrap}
  .ws-two{grid-template-columns:minmax(0,1fr)}
  .ws-field input,.ws-field select,.ws-field textarea{font-size:16px;min-width:0;max-width:100%;min-height:46px}
  .glyph-modern .ws-modal-backdrop:has(.g-settings){padding:0;align-items:stretch}
  .glyph-modern .g-settings{display:flex;flex-direction:column;padding:0;height:100%;max-height:100%;border-radius:0;border:0}
  .g-settings .ws-modal-head{flex:none;top:0;padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top));margin:0;border-bottom:1px solid var(--g-line)}
  .g-settings .ws-modal-head h2{font-size:25px;letter-spacing:-.7px}
  .g-settings .ws-modal-head button{min-height:48px;font-size:15px;color:var(--g-ai)}
  .g-settings .ws-modal-body{display:block;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
  .g-settings-nav{display:block;overflow:visible;padding:16px 20px;border:0;background:var(--g-paper)}
  .g-settings-profile{display:grid;padding:12px 0 22px;margin:0 0 10px;grid-template-columns:40px 1fr}
  .g-settings-profile .g-avatar{width:40px;height:40px}
  .g-settings-profile strong{font-size:16px}.g-settings-profile small{font-size:13px}
  .g-settings-nav .g-nav-button{display:flex;align-items:center;width:100%;min-height:82px;margin:0;padding:14px 0;gap:14px;font-size:16px;white-space:normal;text-align:left;border-radius:0;border-bottom:1px solid var(--g-line)}
  .g-settings-category{display:grid;gap:6px;flex:1;min-width:0}
  .g-settings-category strong{font-size:16px;font-weight:600}
  .g-settings-category small{font-size:13px;font-weight:400;line-height:1.5;color:var(--g-muted)}
  .g-settings-chevron{font-size:26px;color:var(--g-muted)}
  .g-settings-content{padding:20px 20px max(24px,env(safe-area-inset-bottom));min-height:0}
  .g-settings-content .g-button{min-height:48px;font-size:14px}
  .g-settings-content h3{font-size:26px;margin-top:12px}
  .g-settings-back{min-height:48px;padding-left:0;color:var(--g-ai);font-size:14px}
  .g-settings-intro{font-size:15px;line-height:1.6;margin-bottom:20px}
  .g-setting-copy strong{font-size:16px}.g-setting-copy p{font-size:14px;line-height:1.6}
  .g-setting-row{flex-wrap:nowrap;gap:12px;padding:20px 0}
  .g-setting-link{width:100%;background:none;color:inherit;border:0;border-bottom:1px solid var(--g-line);font-family:var(--ui);text-align:left;cursor:pointer}
  .g-setting-link:active{background:var(--g-wash)}
  .g-setting-action{font-size:13px;color:var(--g-ai);flex:none}
  .g-quick-guide section{padding:12px 0;border-bottom:1px solid var(--g-line)}
  .g-quick-guide h3{font-size:19px;margin:8px 0}.g-quick-guide p{font-size:16px;line-height:1.7;color:var(--g-muted)}
  .g-quick-guide>.g-button{min-height:48px;font-size:15px;margin-top:18px}
  .glyph-modern .ws-modal-backdrop:has(.g-notifications){padding:0;align-items:stretch}
  .glyph-modern .g-notifications{display:flex;flex-direction:column;padding:0;height:100%;max-height:100%;border:0;border-radius:0}
  .g-notifications .ws-modal-head{flex:none;margin:0;top:0;padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top));border-bottom:1px solid var(--g-line)}
  .g-notifications .ws-modal-head h2{font-size:25px;letter-spacing:-.7px}
  .g-notifications .ws-modal-head button{min-height:48px;font-size:15px}
  .g-notifications .ws-modal-body{display:block;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px}
  .g-notifications .ws-modal-actions{display:none}
  .glyph-modern.kb-open{--g-mobile-nav:0px}
  .glyph-modern.kb-open .g-rail,.glyph-modern.kb-open .status{display:none}
}
@media(max-width:950px) and (max-height:500px){
  body.glyph-modern{--g-mobile-nav:calc(56px + env(safe-area-inset-bottom))}
  .g-rail button{min-height:48px;padding:3px;gap:3px}
  .g-rail .g-icon{width:18px;height:18px}
  .g-phone-top{min-height:54px;padding-block:3px}
  .g-phone-top>.g-button{min-height:44px}
  .g-phone-tools{padding-block:3px}
  .g-phone-tools>.g-button{min-height:44px;flex-direction:row;gap:7px;padding:4px}
  .glyph-modern[data-g-screen=notes] .g-nav{gap:10px;padding-top:12px}
  .glyph-modern[data-g-screen=notes] .g-brand{display:none}
  .glyph-modern[data-g-screen=notes] .g-nav-head{font-size:23px}
  .glyph-modern[data-g-screen=notes] .g-nav-head small{display:none}
}
