/* Shared touch ergonomics. Desktop layout remains owned by its existing styles. */
.giorgio-mobile-nav{display:none}
@media(max-width:760px){
 html,html body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
 html body #app-shell{display:block!important;width:100vw!important;max-width:100vw!important;min-width:0!important;grid-template-columns:none!important;padding:0!important;margin:0!important}
 html body #app-shell>.main-area{display:block!important;width:100vw!important;max-width:100vw!important;min-width:0!important;flex:0 0 100vw!important;margin:0!important;inset:auto!important}
 html body #app-shell>.main-area>.app-view{width:100%!important;max-width:100vw!important;min-width:0!important;margin:0!important}
 html body #app-shell:not(.sidebar-hidden)>#sidebar,html body #sidebar{position:fixed!important;z-index:500!important;inset:0 auto 0 0!important;width:min(88vw,318px)!important;max-width:min(88vw,318px)!important;min-width:0!important;flex:0 0 auto!important;transform:translateX(-105%)!important;transition:transform .2s ease!important}
 html body #app-shell:not(.sidebar-hidden)>#sidebar.mobile-open,html body #sidebar.mobile-open{transform:translateX(0)!important}
 html body :is(#sidebar-resizer,.g897-sidebar-resizer,.g898-sidebar-resizer,.g899-sidebar-resizer){display:none!important;pointer-events:none!important}
 html{scroll-padding-top:20px;-webkit-text-size-adjust:100%}
 html body{overscroll-behavior-x:none}
 html body input:not([type=checkbox]):not([type=radio]),html body textarea,html body select{font-size:16px!important}
 html body button,html body a,html body summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 html body :is(button,a,summary,input,textarea,select):focus-visible{outline:2px solid #d97757;outline-offset:3px}
 html body #sidebar{max-width:min(88vw,340px)!important;padding-bottom:env(safe-area-inset-bottom,0px)}
 html body #sidebar .primary-nav .nav-item,html body #sidebar .recent-item{min-height:44px!important;height:auto!important;padding:10px 12px!important;font-size:14px!important;line-height:1.4!important}
 html body #sidebar .account-button{min-height:54px!important}
 html body .new-chat-page.new-chat-composition{padding-top:32px!important}
 html body .new-chat-page.new-chat-composition .new-chat-center{width:calc(100% - 32px)!important;max-width:640px!important}
 html body .new-chat-page.new-chat-composition .greeting h1{font-size:clamp(26px,7.5vw,36px)!important;line-height:1.2!important;overflow-wrap:break-word}
 html body #composer-form textarea{min-height:72px!important;line-height:1.5!important}
 html body #composer-form .composer-tools{min-width:0;flex-wrap:wrap!important;gap:6px!important}
 html body #composer-form .composer-tools .composer-icon,html body #composer-form .composer-send,html body #composer-form #voice-input-button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
 html body .composer-mode-trigger{min-height:44px!important;font-size:13px!important;padding-inline:8px!important}
 html body .chat-composer-wrap{padding-inline:12px!important;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))!important}
 html body .message-content{font-size:16px!important;line-height:1.75!important;overflow-wrap:anywhere;min-width:0}
 html body .message-content pre{max-width:100%;overflow-x:auto;overflow-wrap:normal}
 html body .dialog,html body .settings-dialog,html body .modal-card{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto;overscroll-behavior:contain}
 html body #file-preview-panel{max-width:100vw!important;padding-bottom:env(safe-area-inset-bottom,0px)}
 html body #file-preview-panel :is(#file-preview-close,#file-preview-expand,#file-preview-copy,#file-preview-more){min-width:44px!important;min-height:44px!important}
 html body #file-preview-panel .g81-code-view{font-size:13px!important;line-height:1.8!important}
 html body .g759-site-shell{width:calc(100% - 32px)!important;max-width:100%!important;margin-inline:auto!important}
 html body .g759-site-header{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;padding:18px 0!important;height:auto!important;min-width:0}
 html body .g759-brand{margin-right:auto!important;min-height:44px}
 html body .g777-site-nav{display:none!important}
 html body .giorgio-mobile-nav{display:block;position:relative;font-size:14px}
 .giorgio-mobile-nav summary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;min-width:76px;padding:10px 14px;border:1px solid var(--gp-line,#555);border-radius:8px;cursor:pointer;list-style:none}
 .giorgio-mobile-nav summary::-webkit-details-marker{display:none}
 .giorgio-mobile-nav summary:after{content:'☰';font-size:17px}
 .giorgio-mobile-nav[open] summary:after{content:'×';font-size:23px}
 .giorgio-mobile-nav nav{position:absolute;right:0;top:calc(100% + 8px);z-index:300;width:min(280px,calc(100vw - 32px));max-height:65dvh;overflow:auto;background:var(--gp-bg,#151515);border:1px solid var(--gp-line,#555);box-shadow:0 14px 36px #0004;border-radius:12px;padding:8px;display:grid}
 .giorgio-mobile-nav nav a{display:flex;align-items:center;min-height:46px;padding:11px 14px;color:inherit;text-decoration:none;border-radius:6px}
 .giorgio-mobile-nav nav a:hover{background:#8882}
 html body .g759-site-actions{width:auto!important;display:flex!important;align-items:center;gap:8px!important;margin:0!important}
 html body .g759-site-actions :is(a,select){min-height:44px!important;font-size:13px!important;padding:10px 12px!important}
 html body .g759-site-actions select{font-size:16px!important;min-width:104px;max-width:118px}
 html body .g759-site-actions :is(.g777-login-link,.g759-cta-link){display:none!important}
 html body .g759-subnav{min-height:52px!important;gap:12px;font-size:13px!important}
 html body .g777-explore summary{min-height:44px;display:flex;align-items:center}
 html body .g777-blog-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:28px!important;padding:34px 0!important;min-height:0!important}
 html body .g777-blog-intro{display:block!important}
 html body .g777-blog-intro p{font-size:16px!important;line-height:1.7!important;margin-block:18px!important}
 html body .g777-topic-list a{font-size:clamp(27px,8vw,40px)!important;line-height:1.2!important;min-height:48px;white-space:normal!important;overflow-wrap:anywhere}
 html body :is(.g777-headlines,.g777-latest-grid,.g777-archive-grid,.g759-feature-grid,.g759-latest-grid,.g759-article-layout,.g759-docs-layout){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 html body .g777-headlines>*{width:100%!important;min-width:0!important;border-left:0!important}
 html body :is(.g777-card-copy,.g777-feature-copy,.g759-latest-feature-copy){padding:22px!important}
 html body :is(.g777-article-main,.g759-docs-main,.g759-docs-article,.g759-article-body){min-width:0!important;padding-inline:0!important;overflow-wrap:anywhere}
 html body :is(.g777-article-main,.g759-docs-article,.g759-article-body) :is(p,li){font-size:16px!important;line-height:1.8!important}
 html body .g759-docs-top{height:auto!important;flex-wrap:wrap!important;gap:12px!important;padding:16px!important}
 html body .g759-docs-search{width:100%!important;min-width:0!important}
 html body .g759-docs-search input{min-height:44px!important}
 html body .g759-docs-tabs{max-width:100%;overflow-x:auto;white-space:nowrap;gap:12px!important}
 html body .g759-docs-tabs a{display:inline-flex;align-items:center;min-height:44px;padding-inline:10px}
 html body :is(.learn-page,.learn-course-page,.learn-quiz-page){width:calc(100% - 32px)!important}
 html body :is(.learn-quiz-option-v83,.learn-lesson-link-v83,.learn-primary-v83,.learn-breadcrumb-v83){min-height:44px!important;font-size:14px!important}
 html body .learn-reading-v83 p{font-size:16px!important;line-height:1.8!important}
 html body .learn-academy-header{height:auto!important;min-height:64px!important;gap:10px!important;padding:12px 16px!important;flex-wrap:wrap}
 html body .course-filters :is(input,select),html body .button{min-height:46px;font-size:16px}
 html body .site-header nav a{min-height:44px;display:inline-flex;align-items:center}
 html body .outline nav a{min-height:44px;font-size:14px}
 html body .learn-practice summary{min-height:44px;display:flex;align-items:center;font-size:14px}
 html body :is(.app-view,.main-area,.new-chat-page,.chat-page,.messages,.message,.message-content){max-width:100vw;min-width:0}
 html body .main-area{overflow-x:hidden!important}
 html body .mobile-topbar{padding-inline:12px!important;min-height:54px!important}
 html body .mobile-topbar :is(button,a){min-width:44px!important;min-height:44px!important}
 html body footer{padding-bottom:max(28px,env(safe-area-inset-bottom,0px))}
}
