/* Responsive presentation only; desktop tables and data workflows stay shared. */
.mobile-nav-backdrop,.mobile-nav-close,.mobile-category-toggle{display:none}
#mobile-screen,.mobile-tabs,.mobile-page-title,.mobile-back{display:none}
.workspace,.science-records,#record-table,.panel,.field{min-width:0}
@media(max-width:760px){
 :root{--mobile-height:100dvh}
 body{overflow-wrap:break-word}
 body.mobile-nav-open{overflow:hidden}
 button{touch-action:manipulation;min-height:40px}
 input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:16px;min-height:44px}
 input[type=checkbox],input[type=radio]{flex-shrink:0}
 #sidebar{width:min(300px,86vw);height:100dvh;z-index:1100;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
 #sidebar.open{box-shadow:6px 0 24px #00000020}
 .mobile-nav-backdrop{position:fixed;inset:0;z-index:1090;background:#00000045;border:0;border-radius:0;padding:0}
 body.mobile-nav-open .mobile-nav-backdrop{display:block}
 .mobile-nav-close{display:block;position:absolute;right:8px;top:calc(8px + env(safe-area-inset-top));border:0;background:transparent;color:var(--nav-text);font-size:25px;width:40px}
 .brand{padding:22px 48px 20px 16px;font-size:16px;gap:8px}.brand svg{width:24px;height:24px}
 #sidebar .nav-item{min-height:44px;font-size:14px}.nav-section{min-height:32px}
 .project-switch select{font-size:16px}.sidebar-filing{padding:12px 16px}
 .workspace{margin-left:0;width:100%}
 .workspace>header{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px 10px;position:relative;height:auto;min-height:0;padding:calc(8px + env(safe-area-inset-top)) 12px 10px}
 #mobile-menu{display:block;width:40px;min-height:40px;padding:0;font-size:21px;border-color:transparent}
 #breadcrumb{max-width:none;width:100%;font-size:13px}
 .header-right{grid-column:1/-1;display:flex;width:100%;margin:0;gap:6px;justify-content:stretch}
 .global-search-wrap{flex:1;width:auto;min-width:0}
 #global-search{min-height:42px;padding:8px 10px;font-size:16px}
 .header-right button{min-height:42px;padding:7px 9px;font-size:13px}
 #account-button{gap:5px}.header-menu-wrap{flex-shrink:0}
 #account-button .avatar-default,#account-button .avatar-photo{width:24px;height:24px}
 .header-popover{position:fixed;top:calc(110px + env(safe-area-inset-top));left:12px;right:12px;width:auto;max-width:none;max-height:calc(var(--mobile-height) - 130px);overscroll-behavior:contain}
 .my-popover{left:auto;width:min(290px,calc(100vw - 24px))}
 .my-menu-items button{min-height:44px;font-size:14px}
 .global-results{position:absolute;top:calc(100% + 6px);left:0;right:auto;width:calc(100vw - 24px);max-height:calc(var(--mobile-height) - 130px)}
 main{padding:18px 12px calc(20px + env(safe-area-inset-bottom));width:100%}
 h1{font-size:22px}h2{font-size:17px}
 .page-heading{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
 .page-heading>div,.page-heading>h1{min-width:0;overflow-wrap:anywhere}
 .heading-actions{display:flex;flex-wrap:wrap;gap:6px}
 .science-switch{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:2px 2px 8px;gap:6px;overscroll-behavior-x:contain;scrollbar-width:thin}
 .science-switch button{flex:0 0 auto;white-space:nowrap;font-size:13px;min-height:42px;padding:7px 11px}
 .science-add-group{margin-left:0}
 .science-layout{display:flex;flex-direction:column;align-items:stretch;gap:10px}.science-records{width:100%;max-width:100%}
 .mobile-category-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:10px 12px;background:var(--white);border:1px solid var(--line);font-size:14px}
 .mobile-category-toggle::after{content:'▾';color:var(--muted)}
 .mobile-category-toggle[aria-expanded=true]::after{content:'▴'}
 .science-tree{display:none;position:static;width:100%;max-height:min(45dvh,360px);overflow-y:auto;padding:8px;overscroll-behavior:contain}
 .science-layout.mobile-categories-open .science-tree{display:block}
 .science-tree .science-project-item,.science-node-select,.science-preview-item{min-height:42px;font-size:14px}
 .science-expand{min-width:40px;min-height:42px}
 .science-context{padding:14px 12px;flex-wrap:wrap;align-items:flex-start}.science-context h2{overflow-wrap:anywhere}
 .science-context .heading-actions{width:100%}
 .toolbar{padding:10px;display:flex;flex-wrap:wrap;gap:8px}
 .toolbar button{min-height:42px;font-size:13px;padding:7px 10px}
 .toolbar .search,.science-records .toolbar .search{flex:1 1 180px;min-width:120px;max-width:none;margin-left:0}
 .table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 table{font-size:13px}th{padding:8px 10px}td{padding:10px;max-width:200px}
 #record-table th:first-child,#record-table td:first-child{display:none}
 .sort-heading{gap:5px}.sort-arrows{gap:0}.sort-arrow{width:30px;min-height:24px;font-size:10px;padding:2px 6px}
 .row-actions{gap:4px}.row-actions button,td .record-title{min-height:40px}
 .record-scrollbar{bottom:env(safe-area-inset-bottom);min-height:16px;z-index:3}
 .table-footer{padding:10px;gap:10px;flex-wrap:wrap}.pagination{margin-left:auto;gap:8px}.pagination button{min-height:40px;padding:5px 10px}
 .overview-grid{grid-template-columns:minmax(0,1fr)}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats .stat{padding:12px}.stat strong{font-size:21px}.quick-item{overflow-wrap:anywhere}.quick-item button{min-height:40px}
 .meta-list,.detail-fields{grid-template-columns:85px minmax(0,1fr);gap:10px;font-size:14px}.meta-list dd,.detail-fields dd{min-width:0;overflow-wrap:anywhere}
 dialog,dialog.drawer,dialog.preview-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(var(--mobile-height) - 16px);height:auto;margin:auto;border-radius:6px;overscroll-behavior:contain}
 .dialog-header{padding:10px 14px;gap:10px}.dialog-header h2{font-size:17px;overflow-wrap:anywhere;min-width:0}.dialog-header .close{min-width:40px;min-height:40px;padding:0;flex-shrink:0}
 .dialog-body{padding:16px 14px}.dialog-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap}.dialog-footer button{min-height:44px}
 .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.field.full{grid-column:auto}label{font-size:14px}
 .check-options{grid-template-columns:minmax(0,1fr)}.check-options label{min-height:44px;align-items:center}
 .upload-zone{flex-direction:row;flex-wrap:wrap;padding:12px}.upload-zone button{min-height:44px}
 .pending-file{grid-template-columns:minmax(0,1fr) 40px;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
 .pending-file>span,.pending-file>select,.pending-file>input{grid-column:1}.pending-file>button{grid-column:2;grid-row:1;min-height:40px}
 .attachment-grid{grid-template-columns:minmax(0,1fr)}.attachment-image{height:180px}
 .preview-dialog .dialog-header{flex-wrap:wrap}.preview-dialog h2{max-width:100%}.preview-dialog .dialog-header>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%}
 .preview-content{height:calc(var(--mobile-height) - 160px);min-height:180px}
 .map-toolbar button{min-height:42px}.map-surface{height:55dvh;min-height:300px}.map-panel{max-height:none}.map-layout{height:auto;display:flex;flex-direction:column}
 .welcome{margin:12px auto;padding:22px 18px;width:100%}.welcome h1{font-size:23px}.auth-welcome form>button{margin-bottom:8px;min-height:44px}
 .theme-options{gap:5px;overscroll-behavior-x:contain}.theme-options .theme-choice{min-height:40px;flex-basis:36px}
 #toast{left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:none;transform:none;width:auto;overflow-wrap:anywhere}
 .account-needed #mobile-menu{display:none}.account-needed .workspace>header{display:none}
}
@media(max-width:360px){.header-right button{padding:7px}.header-right .avatar-default,.header-right .avatar-photo{display:none!important}.toolbar .search{flex-basis:100%}.pagination{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){#sidebar{transition:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Phone shell. Desktop keeps its original navigation. */
@media(max-width:760px){
 body.mobile-bottom-layout{--tab-height:60px}
 #sidebar,.mobile-nav-backdrop,#mobile-menu{display:none!important}
 .mobile-bottom-layout .workspace>header{grid-template-columns:36px minmax(0,1fr);padding:calc(8px + env(safe-area-inset-top)) 12px 10px;gap:6px}
 .mobile-bottom-layout #breadcrumb,.mobile-bottom-layout .header-menu-wrap{display:none}
 .mobile-page-title{display:block;grid-column:1/-1;min-height:38px;line-height:38px;font-size:18px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-page-title.with-back{grid-column:2}
 .mobile-back:not([hidden]){display:block;grid-column:1;grid-row:1;min-height:38px;width:36px;padding:0;border:0;background:transparent;font-size:31px;line-height:1}
 .mobile-bottom-layout .header-right{grid-column:1/-1}
 .mobile-bottom-layout .global-search-wrap{width:100%}
 .mobile-bottom-layout .global-results{width:calc(100vw - 24px)}
 .mobile-bottom-layout main,#mobile-screen{padding-bottom:calc(var(--tab-height) + 24px + env(safe-area-inset-bottom))}
 .mobile-bottom-layout.mobile-hub main{display:none}
 .mobile-bottom-layout.mobile-hub #mobile-screen{display:block}
 #mobile-screen{padding:18px 12px calc(var(--tab-height) + 24px + env(safe-area-inset-bottom));min-height:calc(100dvh - 115px);outline:none}
 .mobile-tabs{position:fixed;bottom:0;left:0;right:0;z-index:800;display:none;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(var(--tab-height) + env(safe-area-inset-bottom));padding:4px 4px calc(4px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line)}
 .mobile-bottom-layout .mobile-tabs{display:grid}
 .mobile-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:0;background:transparent;padding:4px;min-height:48px;font-size:11px;color:var(--muted);line-height:1.25}
 .mobile-tabs svg{width:23px;height:23px}.mobile-tabs button.active{color:var(--accent-ink);font-weight:600}
 .mobile-tabs button.active svg{fill:var(--accent-soft)}
 .mobile-tabs .avatar-default{width:24px;height:24px;background:transparent}.mobile-tabs .avatar-default svg{width:23px;height:23px;margin:0;fill:currentColor}
 .mobile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
 .mobile-page-heading h1{font-size:21px}.mobile-page-heading button{font-size:13px;min-height:40px}
 #mobile-screen .mobile-page-heading{justify-content:flex-end;margin-bottom:14px}
 #mobile-screen .mobile-page-heading h1{display:none}
 #mobile-screen .mobile-page-heading:not(:has(button)){display:none}
 .mobile-bottom-layout main>.page-heading>h1{display:none}
 .mobile-bottom-layout main>.page-heading:not(:has(button)){display:none}
 .mobile-current-project{font-size:13px;color:var(--muted);margin:-6px 0 24px;overflow-wrap:anywhere}
 .mobile-project-list{display:flex;flex-direction:column;gap:12px}
 .mobile-project{background:var(--white);border:1px solid var(--line);border-radius:5px;overflow:hidden}
 .mobile-project.is-current{border-left:3px solid var(--accent-ink)}
 .mobile-project-open{display:block;width:100%;text-align:left;padding:17px 16px;border:0;border-radius:0;background:transparent}
 .mobile-project-name{display:block;font-size:16px;font-weight:600;overflow-wrap:anywhere}
 .mobile-project-meta{display:block;color:var(--muted);font-size:12px;margin-top:6px}
 .mobile-project-count{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-top:14px}
 .mobile-project-count>span{font-size:20px;line-height:1}
 .mobile-project-actions{display:flex;border-top:1px solid var(--line)}
 .mobile-project-actions button{flex:1;border:0;background:transparent;border-radius:0;font-size:13px;min-height:44px}
 .mobile-project-actions button+button{border-left:1px solid var(--line)}
 .mobile-filing{font-size:11px;margin-top:30px;text-align:center}.mobile-filing a{color:var(--muted)}
 .mobile-library-section{margin:0 0 24px}.mobile-library-section h2{font-size:13px;color:var(--muted);font-weight:400;margin:0 2px 8px}
 .mobile-library-list{background:var(--white);border:1px solid var(--line);border-radius:5px;overflow:hidden}
 .mobile-library-list button{display:flex;align-items:center;gap:13px;width:100%;min-height:62px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 16px;text-align:left;font-size:15px;background:transparent}
 .mobile-library-list button:last-child{border-bottom:0}.mobile-library-list svg{color:var(--accent-ink);width:23px;height:23px}
 .mobile-library-list small{margin-left:auto;font-size:13px}.mobile-library-list button>span:last-child{color:var(--muted);font-size:20px}
 .mobile-profile .my-profile{padding:22px 18px;gap:14px}.mobile-profile .my-profile strong{font-size:18px}.mobile-profile .my-profile small{font-size:12px;margin-top:5px}
 .mobile-profile .my-profile>.avatar-default,.mobile-profile .my-profile>.avatar-photo{width:48px;height:48px}.mobile-profile .my-profile>.avatar-default svg{width:42px;height:42px;margin-top:8px}
 .mobile-profile .my-menu-items{padding:0}.mobile-profile .my-menu-items>button{min-height:50px;padding:13px 18px;border-bottom:1px solid var(--line);font-size:14px;border-radius:0}
 .mobile-profile .my-menu-items>button::after{content:'›';float:right;color:var(--muted);font-size:18px;line-height:1.1}
 .mobile-profile .menu-separator{margin:0;height:8px;background:var(--bg);border-top:0}
 .mobile-bottom-layout .record-scrollbar{bottom:calc(var(--tab-height) + env(safe-area-inset-bottom))}
 .mobile-bottom-layout #toast{bottom:calc(var(--tab-height) + 12px + env(safe-area-inset-bottom))}
 body:has(dialog[open]) .mobile-tabs,.mobile-keyboard .mobile-tabs{display:none}
 .mobile-keyboard .record-scrollbar{bottom:0}
}
/* Search / Projects / Create / Map / Profile. */
@media(max-width:760px){
 .mobile-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
 .mobile-tabs .mobile-new-tab{font-weight:400;color:var(--accent-ink)}
 .mobile-plus{font-size:37px;line-height:1;display:block;font-weight:300}
 .mobile-tabs button.active .mobile-plus{font-weight:400}
 .mobile-search-icon{display:block;width:18px;height:18px;border:1.8px solid currentColor;border-radius:50%;position:relative;margin:1px 4px 5px 0}
 .mobile-search-icon::after{content:'';position:absolute;width:8px;height:1.8px;background:currentColor;right:-6px;bottom:-3px;transform:rotate(45deg);border-radius:1px}
 .mobile-bottom-layout .header-right{display:none}
 .mobile-bottom-layout .workspace>header{padding-bottom:8px;border-bottom:1px solid var(--line)}
 .mobile-project-top{margin:0 0 12px;max-width:100%}
 .mobile-project-top select{width:auto;max-width:100%;font-size:17px;font-weight:600;background:transparent;border:0;padding:6px 30px 6px 0;text-overflow:ellipsis;min-height:44px}
 .mobile-project-utilities{display:flex;gap:8px;justify-content:flex-start;margin-bottom:24px}
 .mobile-project-utilities button{font-size:13px;background:var(--white)}
 .mobile-search-page .workspace>header{display:none}
 .mobile-bottom-layout.mobile-hub.mobile-search-page #mobile-screen{min-height:calc(100dvh - var(--tab-height) - env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;padding:24px 24px calc(var(--tab-height) + 24px + env(safe-area-inset-bottom))}
 .mobile-search-panel{width:100%;max-width:560px;margin:auto}
 .mobile-search-panel .global-search-wrap{display:block;width:100%;min-width:0}
 .mobile-search-panel #global-search{min-height:48px;background:var(--white);border-radius:6px;font-size:16px;padding:12px 15px}
 .mobile-search-panel .global-results{position:relative;left:auto;right:auto;top:auto;width:100%;margin-top:10px;max-height:45dvh;border-radius:5px}
 #editor.mobile-account-page[open]{position:fixed;inset:0;width:100%;height:var(--mobile-height);max-width:100%;max-height:var(--mobile-height);margin:0;border:0;border-radius:0;box-shadow:none}
 #editor.mobile-account-page::backdrop{background:var(--white)}
 #editor.mobile-account-page .dialog-header{justify-content:flex-start;min-height:58px;padding:calc(8px + env(safe-area-inset-top)) 14px 8px 54px}
 #editor.mobile-account-page .dialog-header .close{position:absolute;left:8px;top:calc(8px + env(safe-area-inset-top));font-size:0}
 #editor.mobile-account-page .dialog-header .close::before{content:'‹';font-size:31px;line-height:1}
 #editor.mobile-account-page .dialog-body{padding-bottom:24px}
 #editor.mobile-account-page .dialog-footer{bottom:0}
}
/* Compact phone density, with room left for touch targets and readable inputs. */
@media(max-width:760px){
 :root{font-size:13px;line-height:1.45}
 body.mobile-bottom-layout{--tab-height:52px}
 main,#mobile-screen{padding-left:10px;padding-right:10px}
 .mobile-bottom-layout .workspace>header{padding:calc(5px + env(safe-area-inset-top)) 10px 5px;gap:4px}
 .mobile-page-title{font-size:16px;line-height:32px;min-height:32px}
 .mobile-back:not([hidden]){min-height:32px;font-size:27px}
 h1{font-size:19px}h2{font-size:15px}h3{font-size:14px}
 button{min-height:36px;padding:6px 9px}
 label{font-size:12px;margin-bottom:4px}
 input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{min-height:38px;padding:7px 9px;font-size:16px}
 .field textarea,textarea{min-height:76px}
 .form-grid{gap:11px}.dialog-body{padding:12px}.dialog-header{padding:8px 12px}.dialog-header h2{font-size:15px}.dialog-header .close{min-height:36px;min-width:36px}
 .dialog-footer{padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:6px}.dialog-footer button{min-height:38px;font-size:13px}
 .dialog-body .section-title{margin:15px 0 9px;padding-top:12px}
 .check-options label{min-height:36px;padding:6px;font-size:12px}
 .page-heading{margin-bottom:10px;gap:8px}.heading-actions{gap:5px}
 .mobile-project-top{margin-bottom:8px}.mobile-project-top select{font-size:15px;min-height:36px;padding:4px 26px 4px 0}
 .mobile-project-utilities{gap:6px;margin-bottom:16px}.mobile-project-utilities button{font-size:12px;min-height:34px;padding:5px 9px}
 .mobile-library-section{margin-bottom:16px}.mobile-library-section h2{font-size:12px;margin-bottom:6px}
 .mobile-library-list button{min-height:44px;padding:9px 12px;gap:10px;font-size:13px}
 .mobile-library-list svg{width:20px;height:20px}.mobile-library-list small{font-size:12px}.mobile-library-list button>span:last-child{font-size:17px}
 .mobile-profile .my-profile{padding:14px 12px;gap:11px}.mobile-profile .my-profile strong{font-size:16px}.mobile-profile .my-profile small{font-size:11px;margin-top:3px}
 .mobile-profile .my-profile>.avatar-default,.mobile-profile .my-profile>.avatar-photo{width:40px;height:40px}.mobile-profile .my-profile>.avatar-default svg{width:35px;height:35px;margin-top:6px}
 .mobile-profile .my-menu-items>button{min-height:40px;padding:9px 12px;font-size:13px}.mobile-profile .my-menu-items>button::after{font-size:16px}.mobile-profile .menu-separator{height:6px}
 .mobile-filing{margin-top:18px;padding:4px 0;font-size:10px}
 .mobile-tabs{padding-top:2px}.mobile-tabs button{min-height:44px;gap:2px;font-size:10px;padding:3px}.mobile-tabs svg{width:21px;height:21px}.mobile-plus{font-size:32px}.mobile-search-icon{width:17px;height:17px}
 .mobile-tabs .avatar-default,.mobile-tabs .avatar-default svg{width:22px;height:22px}
 .mobile-bottom-layout.mobile-hub.mobile-search-page #mobile-screen{padding:20px;min-height:calc(100dvh - var(--tab-height) - env(safe-area-inset-bottom))}
 .mobile-greeting{font-size:16px;font-weight:500;margin:0 0 12px;color:var(--ink);overflow-wrap:anywhere}
 .mobile-search-panel #global-search{min-height:40px;padding:9px 12px;font-size:16px;border-radius:4px}
 .global-result{padding:9px 12px}.global-result strong{font-size:13px}.global-result small,.global-result span{font-size:11px}
 .science-switch{gap:5px;margin-bottom:8px;padding-bottom:5px}.science-switch button{font-size:12px;min-height:36px;padding:5px 9px}
 .science-layout{gap:8px}.mobile-category-toggle{min-height:36px;padding:7px 10px;font-size:12px}
 .science-tree .science-project-item,.science-node-select,.science-preview-item{min-height:35px;font-size:12px}.science-expand{min-height:35px;min-width:32px}
 .science-context{padding:10px}.science-context h2{font-size:15px}.science-context button{font-size:12px}
 .toolbar{padding:8px;gap:6px}.toolbar button{font-size:12px;min-height:35px;padding:5px 8px}
 table{font-size:12px}th{font-size:11px;padding:6px 8px}td{padding:7px 8px}.sort-arrow{min-height:21px;width:26px;padding:1px 5px;font-size:9px}
 .row-actions button,td .record-title{min-height:32px;font-size:12px}.table-footer{padding:8px;font-size:11px}.pagination{gap:6px}.pagination button{min-height:34px;padding:4px 8px;font-size:11px}
 .stats .stat{padding:9px}.stat span{font-size:12px}.stat strong{font-size:19px}.panel-heading,.info-body{padding:12px}.quick-item{padding:7px 0}.quick-item button{font-size:12px;min-height:34px}
 .detail-fields,.meta-list{font-size:12px;gap:8px;grid-template-columns:78px minmax(0,1fr)}.detail-meta{font-size:11px;margin-bottom:12px}
 .attachment-grid{gap:9px}.attachment-body{padding:9px}.attachment-name{font-size:12px}.attachment-body p{font-size:11px}.attachment-image{height:145px}
 .upload-zone{padding:10px;gap:8px}.upload-zone button{min-height:36px;font-size:12px}.compression-option{font-size:12px}.pending-file{padding:9px 0;gap:6px}
 .map-toolbar{gap:6px;margin-bottom:10px}.map-toolbar button{font-size:12px;min-height:35px}.map-surface{min-height:260px}.map-panel{font-size:12px}
 .welcome{padding:18px 14px}.welcome h1{font-size:21px}.auth-welcome form>button{min-height:38px;font-size:13px}
 #editor.mobile-account-page .dialog-header{min-height:46px;padding:calc(5px + env(safe-area-inset-top)) 12px 5px 46px}
 #editor.mobile-account-page .dialog-header .close{left:5px;top:calc(5px + env(safe-area-inset-top));min-height:36px;min-width:36px}
 #editor.mobile-account-page .dialog-header .close::before{font-size:27px}
 #mobile-create-sheet[open]{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;height:auto;max-height:min(72dvh,calc(var(--mobile-height) - 40px));padding:0 0 env(safe-area-inset-bottom);border-radius:12px 12px 0 0;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -4px 24px #00000015}
 #mobile-create-sheet::backdrop{background:#00000038}
 .mobile-sheet-heading{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--white);padding:9px 12px;border-bottom:1px solid var(--line);z-index:1}
 .mobile-sheet-heading h2{font-size:15px}.mobile-sheet-heading button{min-height:34px;width:34px;padding:0;border:0;font-size:23px;background:transparent}
 .mobile-sheet-body{padding:12px}.mobile-sheet-body .mobile-current-project{font-size:11px;margin:0 0 10px}
 .mobile-sheet-body .mobile-library-list button>span:last-child{margin-left:auto}
 body:has(#mobile-create-sheet[open]){overflow:hidden}
}
@media(max-width:360px){.mobile-project-top select{font-size:14px}.mobile-library-list button{padding:8px 10px;font-size:12px}.mobile-profile .my-menu-items>button{font-size:12px}.mobile-greeting{font-size:15px}}
