/* v0.9 workspace layout. Colors, fonts and bilingual hierarchy use approved tokens. */
:root{--workspace-gap:8px;--workspace-scrollbar:18px;--app-bottom-height:80px}
html,body{margin:0;min-width:320px}
button,input,select,textarea{caret-color:var(--accent)}
::selection{background:var(--soft);color:var(--ink)}
.app-header{display:flex;flex-wrap:nowrap;gap:20px;padding:8px 16px;min-height:64px;position:relative;z-index:40}
.app-header .brand{gap:8px;flex:none;margin:0;width:auto;min-height:40px}
.app-header .brand b{font-size:17px;letter-spacing:.03em}
.local-label{border:1px solid var(--line);border-radius:4px;padding:3px 6px;margin-left:4px;color:var(--muted)}
.local-label .bi-main,.local-label .bi-sub{font-size:11px;line-height:1.35}
.top-navigation{display:flex;align-self:center;align-items:center;gap:4px;flex:1;min-width:0;line-height:1.35}
.top-home,.nav-group>summary{display:flex;align-items:center;gap:6px;color:var(--ink);text-decoration:none;padding:6px 12px;border:1px solid transparent;border-radius:6px;min-height:46px;cursor:pointer;list-style:none;white-space:nowrap}
.top-navigation .bi-main{font-size:var(--meta-size);font-weight:600;line-height:1.35}
.top-navigation .bi-sub{font-size:12px;line-height:1.3}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary svg{width:14px;height:14px}
.nav-group.current>summary,.top-home.current,.nav-group[open]>summary{background:var(--soft);color:var(--accent);border-color:var(--line)}
.top-home:hover,.nav-group>summary:hover{background:var(--soft);color:var(--accent)}
.top-navigation>.nav-group{position:relative;margin:0}
.nav-dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:220px;max-height:70dvh;overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:8px;z-index:50}
.nav-dropdown a{display:block;padding:10px 12px;color:var(--ink);text-decoration:none;border-radius:5px}
.nav-dropdown a:hover,.nav-dropdown a[aria-current]{background:var(--soft);color:var(--accent)}
.header-tools{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
.header-tools>.btn{min-height:46px;padding:5px 12px}
.header-tools>.btn .bi-main{font-size:var(--meta-size)}
.header-tools>.btn .bi-sub{font-size:12px}
.app-header .global-more{display:block;position:relative}
.global-more>summary{display:flex;gap:8px;align-items:center;list-style:none;border:0;border-radius:6px;cursor:pointer;padding:4px;min-height:44px}
.global-more>summary::-webkit-details-marker{display:none}
.global-more>summary:hover{background:var(--soft)}
.account-avatar{display:grid;place-items:center;background:var(--soft);color:var(--accent);width:32px;height:32px;border-radius:50%;font-weight:600}
.app-header .account-label{width:auto;max-width:120px;font-size:var(--meta-size);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;order:0}
.account-label small{display:block;font-size:12px;color:var(--muted)}
.global-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:55;min-width:240px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:8px;display:grid;gap:6px;box-shadow:none}
.global-menu .btn{justify-content:flex-start;min-height:46px;width:100%}
.global-menu p{padding:8px;margin:0;color:var(--muted)}
.global-menu p .bi-main,.global-menu p .bi-sub{font-size:12px}
.workspace-tabs{display:flex;align-items:stretch;gap:4px;overflow:auto;flex-shrink:0;padding:6px 12px 0;background:var(--surface2);border-bottom:1px solid var(--line);scrollbar-width:auto}
.workspace-tab{display:flex;flex:none;align-items:center;border:1px solid transparent;border-bottom:0;border-radius:7px 7px 0 0;position:relative;max-width:280px}
.workspace-tab a{display:flex;align-items:center;gap:8px;padding:7px 14px;color:var(--muted);text-decoration:none;min-height:46px;min-width:80px}
.workspace-tab .bi-main{font-size:var(--meta-size);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-tab .bi-sub{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-tab .bi{min-width:0}
.workspace-tab.active{background:var(--surface);border-color:var(--line)}
.workspace-tab.active a{color:var(--accent)}
.workspace-tab:hover{background:var(--surface)}
.workspace-tab button{width:32px;min-height:36px;margin-right:4px;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer;display:grid;place-items:center}
.workspace-tab button:hover{background:var(--soft);color:var(--accent)}
.workspace-tab button svg{width:15px;height:15px}
.tab-detail-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
.appearance-panel{position:fixed;right:12px;top:76px;z-index:60;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line)}
.sheet-heading h2{margin:0;font-size:var(--base)}
.sheet-heading h2 .bi-main{font-size:var(--base)}
.sheet-heading h2 .bi-sub{font-size:12px}
.appearance-panel .personal{display:grid;grid-template-columns:1fr;padding:16px;gap:20px}
.appearance-panel .personal>div:first-child{grid-column:auto}
.appearance-panel .themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;flex:none;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);cursor:pointer}
.icon-button:hover{background:var(--soft);color:var(--accent)}
.app-shell{display:block!important;min-height:0;border-radius:0}
.app-shell .work{min-width:0}
.app-shell .work-body{padding:8px 12px;min-height:0}
.data-panel{position:relative;min-width:0;border:1px solid var(--line);border-radius:6px;overflow:visible;background:var(--surface)}
.compact-heading{margin:0}
.compact-heading h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.list-toolbar{display:flex;flex-wrap:nowrap;gap:8px;padding:8px;flex-shrink:0;border-bottom:1px solid var(--line)}
.list-toolbar .search-field{flex:1 1 230px;max-width:360px;gap:8px}
.list-toolbar .search-field>.bi{flex-basis:68px;min-width:68px}
.list-toolbar .btn{min-height:46px;padding:5px 10px;flex:none}
.list-toolbar .btn .bi-main{font-size:var(--meta-size);white-space:nowrap}
.list-toolbar .btn .bi-sub{font-size:12px;white-space:nowrap}
.list-actions{display:flex;gap:8px;align-items:center;margin-left:auto;flex:none}
.list-options{position:absolute;z-index:20;inset:64px 8px auto;max-height:calc(100dvh - 240px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #0002}
.list-options[hidden]{display:none}
.list-options .filter-editor{margin:0;border:0;padding:16px}
.list-options .column-options{border:0;margin:0;padding:16px}
.list-options .column-option-actions{position:sticky;top:0;background:var(--surface);padding:4px 0;z-index:1}
.data-panel>.table-scroll{min-height:160px;max-height:none;overflow:auto;scrollbar-width:auto;scrollbar-color:var(--muted) var(--surface2);scrollbar-gutter:stable;overscroll-behavior:contain}
.table-scroll::-webkit-scrollbar{width:var(--workspace-scrollbar);height:var(--workspace-scrollbar)}
.table-scroll::-webkit-scrollbar-track{background:var(--surface2);border:1px solid var(--line)}
.table-scroll::-webkit-scrollbar-thumb{background:var(--muted);border:3px solid var(--surface2);border-radius:8px;min-height:40px}
.table-scroll::-webkit-scrollbar-thumb:hover{background:var(--accent)}
.table-scroll::-webkit-scrollbar-corner{background:var(--surface2)}
@supports (-webkit-appearance:none){.data-panel>.table-scroll{scrollbar-color:auto;scrollbar-width:auto}}
.field-table th{height:60px;padding:6px 10px}
.field-table .column-heading{min-height:46px}
.field-table td{height:52px;padding:6px 10px}
.field-table .action-col .btn .bi-main,.field-table .action-col .btn .bi-sub{white-space:nowrap;overflow-wrap:normal}
.field-table .action-col .btn .bi-main{font-size:var(--meta-size)}
.field-table .action-col .btn .bi-sub{font-size:12px}
.field-table .check-hit{min-height:44px}
.table-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;min-height:64px;padding:6px 10px;border-top:1px solid var(--line);border-radius:0 0 6px 6px}
.selection-tools{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-height:0;border:0;padding:0}
.selection-count{min-width:94px;white-space:nowrap}
.selection-tools .btn{padding:5px 8px;min-height:44px;width:auto}
.selection-tools .bi-main{font-size:var(--meta-size);white-space:nowrap}
.selection-tools .bi-sub{font-size:12px;white-space:nowrap}
.data-footer{display:flex;align-items:center;justify-content:flex-end;gap:20px;min-height:0;border:0;padding:0;flex:none}
.data-footer .results-summary{margin:0;white-space:nowrap}
.data-footer .bi-main{font-size:var(--meta-size)}
.data-footer .bi-sub{font-size:12px}
.page-size{gap:8px;white-space:nowrap}
.page-size select{min-height:38px;min-width:66px}
.pagination{display:flex;align-items:center;gap:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.pagination button{min-width:36px;min-height:38px}
.saved-query-strip,.active-filters{flex-shrink:0;padding:4px 8px;margin:0;gap:8px}
.saved-query-button{min-height:34px;padding:4px 10px}
.mobile-records,.app-bottom-nav,.mobile-view-switch,.module-sheet,.mobile-selection{display:none}
.mobile-all-fields{margin:0}
.mobile-all-fields>div{padding:12px 0;border-bottom:1px solid var(--line)}
.mobile-all-fields dd{margin:6px 0 0;overflow-wrap:anywhere}
.work-body:has(>.compact-heading){padding-top:8px}
@media(min-width:1001px){
 body:has(.app-header){overflow:hidden}
 #app:has(.app-header){height:100dvh;display:flex;flex-direction:column;min-height:0}
 .app-header,.workspace-tabs{flex-shrink:0}
 .app-shell,.app-shell .work{display:flex!important;flex-direction:column;min-height:0;flex:1;overflow:hidden}
 .app-shell .work-body{flex:1;overflow:auto;min-height:0}
 .app-shell .work-body:has(>.data-panel){display:flex;flex-direction:column;overflow:visible}
 .data-panel{flex:1;display:flex;flex-direction:column;min-height:0}
 .data-panel>.table-scroll{flex:1;min-height:0}
 .table-status{overflow-x:auto}
}
@media(min-width:1001px) and (max-width:1200px){.app-header .local-label{display:none}.top-home,.nav-group>summary{padding-inline:6px}.app-header .brand b{font-size:15px}.header-tools{gap:6px}.list-toolbar .search-field>.bi{position:absolute;width:1px;min-width:0;height:1px;overflow:hidden;clip-path:inset(50%)}.list-toolbar .search-field{flex-basis:140px}}
@media(min-width:1001px) and (max-width:1400px){
 .app-header{gap:8px;padding:6px 12px}
 .top-home,.nav-group>summary{padding:6px 9px}
 .app-header .account-label{display:none}
 .table-status{gap:8px;padding-inline:8px}
 .data-footer{gap:10px}
 .selection-tools .btn{padding-inline:6px}
 .selection-count{min-width:86px}
}
@media(max-width:1000px){
 .app-header{padding:8px 12px;gap:8px;position:sticky;top:0;z-index:40;min-height:60px}
 .top-navigation,.workspace-tabs,.app-header .account-label,.header-tools>.btn{display:none}
 .app-header .brand{flex:1;gap:8px}
 .app-header .brand b{font-size:17px}
 .app-header .brand img{width:28px;height:28px}
 .app-header .global-more>summary{padding:0;min-height:44px}
 .app-header .global-more>summary>svg{display:none}
 .local-label{padding:2px 5px}
 .app-shell .work-body{padding:12px 12px calc(var(--app-bottom-height) + 24px)}
 .app-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;border-top:1px solid var(--line);background:var(--surface);padding:6px 8px max(6px,env(safe-area-inset-bottom));gap:4px;justify-content:space-around}
 .app-bottom-nav a,.app-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;gap:4px;min-height:60px;min-width:0;text-decoration:none;color:var(--muted);background:transparent;border:0;border-radius:6px;padding:4px;font:inherit;cursor:pointer}
 .app-bottom-nav .bi{align-items:center;text-align:center}
 .app-bottom-nav .bi-main{font-size:min(var(--meta-size),15px);line-height:1.3;overflow-wrap:normal;word-break:normal}
 .app-bottom-nav .bi-sub{font-size:11px;line-height:1.2}
 .app-bottom-nav a[aria-current],.app-bottom-nav button[aria-expanded=true]{background:var(--soft);color:var(--accent)}
 .app-bottom-nav a:hover,.app-bottom-nav button:hover{background:var(--soft);color:var(--accent)}
 .module-sheet{display:flex;flex-direction:column;position:fixed;inset:60px 0 var(--app-bottom-height);z-index:45;background:var(--surface);overflow:auto;border-top:1px solid var(--line)}
 .module-sheet nav{padding:8px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .module-sheet nav a{display:block;min-height:60px;padding:12px;border-radius:6px;text-decoration:none;color:var(--ink);border:1px solid var(--line)}
 .module-sheet nav a[aria-current],.module-sheet nav a:hover{background:var(--soft);color:var(--accent)}
 .module-sheet nav .bi-main{font-size:var(--base)}
 .module-sheet nav .bi-sub{font-size:12px}
 .appearance-panel{inset:70px 8px auto;width:auto;max-height:calc(100dvh - 168px)}
 .appearance-panel .personal{padding:12px}
 .work-body .compact-heading{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
 .work-body .compact-heading h1{flex:1 1 auto}
 .compact-heading h1{position:static;clip-path:none;white-space:normal;overflow:visible;width:auto;height:auto;flex:1;min-width:0;margin:0;font-size:calc(var(--base) + 3px)}
 .compact-heading h1 .bi-main{font-size:inherit}
 .compact-heading h1 .bi-sub{font-size:12px}
 .mobile-view-switch{display:block;flex:none}
 .mobile-view-switch .btn{min-height:46px;padding:6px 10px}
 .mobile-view-switch .bi-main{font-size:var(--meta-size)}
 .mobile-view-switch .bi-sub{font-size:12px}
 .data-panel{border:0;border-radius:0;background:transparent}
 .list-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 0 12px}
 .list-toolbar .search-field{grid-column:1/-1;max-width:none;width:100%;gap:8px}
 .list-toolbar .search-field>.bi{flex-basis:80px;min-width:80px}
 .list-toolbar .search-field input{min-height:44px;font-size:max(16px,var(--data-size))}
 .list-toolbar>.btn{min-width:0;padding:6px 4px;min-height:48px}
 .list-toolbar .btn .bi-main,.list-toolbar .btn .bi-sub{white-space:normal;overflow-wrap:normal}
 .list-actions{grid-column:1/-1;display:flex;gap:8px;margin:0}
 .list-actions .btn{flex:1;min-width:0;min-height:46px}
 .list-options{position:fixed;inset:70px 8px auto;max-height:calc(100dvh - 170px);z-index:50}
 .list-options .filter-editor,.list-options .column-options{padding:12px}
 .filter-editor .condition{grid-template-columns:1fr!important}
 .mobile-records{display:block}
 .mobile-records[hidden]{display:none}
 .mobile-record-mode>.table-scroll{display:none}
 .mobile-table-mode>.table-scroll{display:block;max-height:58dvh;min-height:260px;border:1px solid var(--line);background:var(--surface);overscroll-behavior:auto}
 .mobile-record{padding:12px 0;border-bottom:1px solid var(--line)}
 .mobile-record-title{display:flex;align-items:center;gap:8px}
 .mobile-record-title .check-hit{width:36px;flex:none;padding:0}
 .mobile-record-open{display:block;text-align:left;flex:1;min-width:0;border:0;background:transparent;color:var(--ink);padding:8px 0;min-height:44px;cursor:pointer;font:inherit}
 .mobile-record-open strong{display:block;font-size:var(--base);font-weight:600;overflow-wrap:anywhere}
 .mobile-record-open>span{display:block;font-size:var(--meta-size);color:var(--muted);margin-top:2px}
 .mobile-record-open:hover{color:var(--accent)}
 .mobile-record dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 8px;padding-left:44px}
 .mobile-record dl>div{min-width:0}
 .mobile-record dt .bi-main{font-size:var(--meta-size);color:var(--muted)}
 .mobile-record dt .bi-sub{font-size:12px}
 .mobile-record dd{margin:4px 0 0;font-size:var(--data-size);overflow-wrap:anywhere}
 .mobile-record dd .cell-edit{min-height:44px;padding:6px 0}
 .record-fields-button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin-left:44px;width:calc(100% - 44px);border:0;background:transparent;color:var(--accent);text-align:left;padding:4px 0;font:inherit;cursor:pointer}
 .record-fields-button .bi-main{font-size:var(--meta-size)}
 .record-fields-button .bi-sub{font-size:12px}
 .record-fields-button>svg{transform:rotate(-90deg);flex:none}
 .mobile-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;bottom:var(--app-bottom-height);left:0;right:0;padding:6px 12px;z-index:39;background:var(--surface);border-top:1px solid var(--line);min-height:56px}
 .mobile-selection .bi-main{font-size:var(--meta-size)}
 .mobile-selection .bi-sub{font-size:12px}
 .mobile-selection details{position:relative}
 .mobile-selection summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:44px;padding:4px 10px;border:1px solid var(--line);border-radius:6px;color:var(--accent)}
 .mobile-selection summary::-webkit-details-marker{display:none}
 .mobile-selection details>div{position:absolute;right:0;bottom:calc(100% + 6px);padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);min-width:240px;display:grid;gap:6px}
 .app-shell:has(~.mobile-selection) .work-body{padding-bottom:calc(var(--app-bottom-height) + 100px)}
 .mobile-selection~*{scroll-margin-bottom:160px}
 .table-status{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:12px 0;border-radius:0}
 .selection-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;padding:0}
 .selection-tools .btn{width:100%;min-height:46px;padding:6px}
 .selection-tools .bi-main,.selection-tools .bi-sub{white-space:normal}
 .data-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:0;min-height:0}
 .data-footer .results-summary{width:100%}
 .data-footer .results-summary .bi{flex-direction:row;gap:10px}
 .page-size select,.pagination button{min-height:44px}
 .pagination button{min-width:44px}
 .saved-query-strip,.active-filters{padding:8px 0}
 .saved-query-button{min-height:44px}
 .detail-heading{margin-top:16px;gap:12px}
 .detail-heading .actions{width:100%;max-width:none;flex-wrap:wrap}
 .detail-heading .actions .btn{flex:1 1 140px;min-height:48px}
 .detail-heading .bi-main{overflow-wrap:normal}
 .definitions{grid-template-columns:1fr}
 dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 16px);margin:auto;padding:0}
 .cell-editor{z-index:100}
 .mobile-record:focus-within{scroll-margin-bottom:180px}
 #message{bottom:calc(90px + env(safe-area-inset-bottom))}
}
@media(min-width:761px) and (max-width:1000px){.mobile-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.mobile-records[hidden]{display:none}.app-shell .work-body{padding-inline:24px}.list-toolbar{grid-template-columns:minmax(220px,1fr) repeat(3,auto)}.list-toolbar .search-field{grid-column:auto}.list-actions{grid-column:1/-1;justify-content:flex-end}.list-actions .btn{flex:none}.selection-tools{display:flex}.data-footer .results-summary{width:auto}.table-status{flex-direction:row;flex-wrap:wrap}}
@media(forced-colors:active){.workspace-tab.active{border:2px solid Highlight}.table-scroll{scrollbar-color:auto}.app-bottom-nav a[aria-current]{outline:2px solid Highlight}}
@media(prefers-reduced-motion:no-preference){.top-home,.nav-group>summary,.workspace-tab,.nav-dropdown a,.app-bottom-nav a,.app-bottom-nav button{transition:background-color 140ms ease-out,color 140ms ease-out}}
/* v0.9.1: scoped navigation alignment and date filtering beside search. */
.top-navigation>.nav-group>summary,.top-navigation>.top-home{align-items:center;box-sizing:border-box}
.list-toolbar{flex-wrap:wrap}
.list-toolbar .search-field{max-width:300px;flex-basis:220px}
.date-filter{position:relative;flex:none;min-width:0;max-width:360px;margin:0;z-index:22}
.date-filter>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}
.date-filter>summary::-webkit-details-marker{display:none}
.date-filter>summary:hover,.date-filter[open]>summary{background:var(--soft);border-color:var(--accent)}
.date-filter>summary .bi-main{font-size:var(--meta-size);white-space:nowrap}
.date-filter>summary .bi-sub{font-size:12px;white-space:nowrap}
.date-filter>summary svg{flex:none;width:14px;height:14px}
.date-range-value{font-size:var(--meta-size);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:180px;font-variant-numeric:tabular-nums}
.date-popover{position:absolute;top:calc(100% + 6px);left:0;width:510px;max-height:calc(100dvh - 210px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px;display:grid;gap:14px;box-shadow:0 8px 24px #0002}
.date-popover .field{display:grid;gap:6px;min-width:0}
.date-popover .field .bi-main{font-size:var(--meta-size)}
.date-popover .field .bi-sub{font-size:12px}
.date-popover input,.date-popover select{min-height:42px;min-width:0;width:100%;padding:6px 8px;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:5px}
.date-scope .bi-main,.date-scope .bi-sub{font-size:12px;color:var(--muted);font-weight:400}
.date-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.date-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.date-presets button{min-height:48px;border:1px solid var(--line);border-radius:5px;padding:5px;background:var(--surface);color:var(--ink);cursor:pointer}
.date-presets button:hover{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.date-presets .bi-main{font-size:var(--meta-size)}
.date-presets .bi-sub{font-size:12px}
.date-actions{display:flex;justify-content:flex-end;gap:8px}
.date-actions .btn{min-height:44px}
@media(min-width:1001px) and (max-width:1600px){.list-toolbar .search-field{flex-basis:180px;max-width:250px}.list-toolbar .search-field>.bi{position:absolute;width:1px;min-width:0;height:1px;overflow:hidden;clip-path:inset(50%)}.date-filter{max-width:290px}.date-range-value{max-width:130px}.date-filter>summary{gap:7px}.list-toolbar .list-actions{flex-wrap:nowrap}}
@media(max-width:1000px){.list-toolbar .date-filter{grid-column:1/-1;max-width:none;width:100%}.date-filter>summary{min-height:48px;justify-content:space-between}.date-range-value{max-width:none}.date-popover{position:fixed;top:70px;left:8px;right:8px;width:auto;max-height:calc(100dvh - var(--app-bottom-height) - 90px);padding:12px}.date-popover input,.date-popover select{min-height:44px;font-size:max(16px,var(--data-size))}.list-toolbar .search-field{max-width:none;width:100%;flex-basis:auto}.date-actions{flex-wrap:wrap}.date-actions .btn{flex:1;min-width:0}.date-presets .bi-sub{overflow-wrap:normal}.date-inputs{gap:8px}}

.queue-bar{display:flex;gap:8px;overflow-x:auto;flex-shrink:0;padding:10px 8px;border-bottom:1px solid var(--border,#ddd)}.queue-bar .btn{flex-shrink:0;gap:10px}.queue-bar [aria-pressed="true"]{outline:2px solid currentColor;outline-offset:-2px}.daily-queues{margin-bottom:24px}.daily-queues h2{font-size:18px}

/* Identifier links sit inside table cells without inheriting full button frames. */
.field-table a.record-button{box-sizing:border-box!important;display:flex!important;align-items:center;min-height:38px!important;width:100%;max-width:100%;margin:0;padding:6px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--accent);text-decoration:none;outline-offset:-2px}
.field-table a.record-button:hover{text-decoration:underline;text-underline-offset:4px}
.field-table a.record-button:focus-visible{outline:2px solid var(--accent);border-radius:4px!important;background:var(--soft)!important}
.field-table .column-heading{container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding-right:4px}
.field-table .column-heading .column-sort{grid-column:1;grid-row:1;width:auto;min-width:0;min-height:44px}
.field-table .column-heading .column-tools{display:flex;align-items:center;gap:9px;grid-column:2;grid-row:1;padding-left:8px;border-left:1px solid var(--line)}
.field-table .column-heading .column-menu-trigger,.field-table .column-heading .column-drag{position:static;display:inline-flex;align-items:center;justify-content:center;width:28px;height:32px;min-height:32px;flex:none;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--muted);line-height:1;box-sizing:border-box}
.field-table .column-heading .column-menu-trigger:hover,.field-table .column-heading .column-drag:hover{border-color:var(--accent);color:var(--accent);background:var(--soft)}
.field-table .column-heading .column-drag{cursor:grab;background:var(--surface2)}
.field-table .column-heading .column-drag:active{cursor:grabbing}
.field-table .column-heading .column-drag:disabled{opacity:.3;cursor:default}
@container (max-width:145px){.field-table .column-heading .column-sort{grid-column:1/-1;grid-row:1}.field-table .column-heading .column-tools{grid-column:1/-1;grid-row:2;border-left:0;padding-left:0;margin-top:2px;gap:9px}}
.field-table.column-preview-active .column-moving{background:var(--soft)!important;box-shadow:inset 2px 0 var(--accent),inset -2px 0 var(--accent)}
.field-table.column-preview-active th.column-moving{border-top:2px solid var(--accent)}
.column-drag-status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:8px;font-size:14px;pointer-events:none;max-width:80vw;box-shadow:0 6px 22px #0002}
.field-table .column-sort .bi-main{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.field-table .column-sort .bi-sub{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;max-height:2.8em}
.field-table .column-heading .column-drag{touch-action:none;user-select:none}
