/* ORTEX system-wide interface audit v1
 * Shared containment, responsive tables, mobile navigation, RTL/LTR,
 * dark-mode and accessibility corrections for every application page.
 */

:root{
    --audit-content-max:1680px;
    --audit-mobile-gap:12px;
    --audit-focus:0 0 0 3px color-mix(in srgb,var(--accent) 24%,transparent);
}

html,body{max-width:100%}
html{overflow-x:clip}
body{overflow-x:hidden}
body.sidebar-open{overflow:hidden;touch-action:none}
[hidden]{display:none!important}
img,video,canvas,svg{max-width:100%}

.enterprise-main,
.enterprise-content,
.enterprise-content>*,
.enterprise-content :where(section,article,aside,form,nav,header,footer,div,dl){
    min-width:0;
    max-width:100%;
}
.enterprise-content{
    width:100%;
    margin-inline:auto;
}
.enterprise-content> :where(.enterprise-page-heading,.page-toolbar,.dashboard-page-head,.page-head,.panel,.enterprise-kpi-grid,.customer-master-layout,.reservation-builder,.reservation-details-layout,.pricing-management-grid,.price-calculator-layout,.settings-grid,.vehicle-overview-enterprise-grid,.vehicle-operation-grid){
    width:min(100%,var(--audit-content-max));
    margin-inline:auto;
}

/* Page headings and action bars */
.enterprise-page-heading,
.page-toolbar,
.dashboard-page-head,
.page-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px 20px;
}
.enterprise-page-heading>div:first-child,
.page-toolbar>div:first-child,
.dashboard-page-head>div:first-child,
.page-head>div:first-child{min-width:0;flex:1 1 360px}
.enterprise-page-heading h1,
.page-toolbar h2,
.dashboard-page-head h1,
.page-head h1,
.panel-head h2,
.panel-head h3{
    max-width:100%;
    overflow-wrap:anywhere;
}
.enterprise-page-heading p,
.page-toolbar p,
.dashboard-page-head p,
.page-head p{max-width:850px;overflow-wrap:anywhere}
.heading-actions,
.page-head-actions,
.profile-hero-actions,
.form-actions,
.filter-actions,
.row-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    min-width:0;
}
.heading-actions{justify-content:flex-end;flex:0 1 auto}
.heading-actions .btn,.page-head-actions .btn{white-space:nowrap}

/* Panels, cards and long content */
.panel{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
.panel-head{
    min-width:0;
    max-width:100%;
    flex-wrap:wrap;
    gap:10px 14px;
}
.panel-head>div{min-width:0;max-width:100%}
.panel :where(p,li,dd,strong,small,code),
.detail-grid :where(dd,strong,small),
.profile-details :where(dd,strong),
.summary-section :where(dd,strong){overflow-wrap:anywhere}
.entity-cell,.entity-cell>div,.cell-main,.cell-sub{min-width:0;max-width:100%}
.entity-cell strong,.entity-cell small,.cell-main,.cell-sub{overflow-wrap:anywhere}
.empty-state{min-width:0;text-align:center}

/* Forms and controls */
.form-grid,
.form-grid-2,
.form-grid-3,
.inline-form,
.upload-form,
.document-upload-form,
.enterprise-filter-bar,
.filter-panel{
    width:100%;
    min-width:0;
    max-width:100%;
}
.form-grid>*,.form-grid-2>*,.form-grid-3>*,
.inline-form>*,.upload-form>*,.document-upload-form>*,
.enterprise-filter-bar>*,.filter-panel>*{
    min-width:0;
    max-width:100%;
}
.enterprise-content :where(input,select,textarea,button){max-width:100%}
.enterprise-content :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%;min-width:0}
.enterprise-content textarea{resize:vertical}
.enterprise-content input[type="file"]{overflow:hidden}
.enterprise-content :where(input,select,textarea):focus-visible,
.enterprise-content :where(button,a,[tabindex]):focus-visible,
.topbar :where(button,a,input,select):focus-visible,
.sidebar :where(button,a):focus-visible{
    outline:2px solid var(--accent);
    outline-offset:2px;
    box-shadow:var(--audit-focus);
}
button:disabled,.btn[disabled],[aria-disabled="true"]{cursor:not-allowed!important;opacity:.58}
input[type="email"],input[type="tel"],input[type="url"],
input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],
.enterprise-content code,[dir="ltr"]{
    direction:ltr;
    unicode-bidi:plaintext;
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"]{text-align:right}
html[dir="ltr"] input[type="email"],
html[dir="ltr"] input[type="tel"],
html[dir="ltr"] input[type="url"],
html[dir="ltr"] input[type="number"]{text-align:left}

/* Desktop tables remain scroll-safe inside the real content width. */
.table-wrap{
    width:100%;
    min-width:0;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scrollbar-gutter:stable;
    -webkit-overflow-scrolling:touch;
}
.table-wrap>table{width:100%;max-width:none}
.enterprise-table th,.enterprise-table td,
.table-panel table th,.table-panel table td{vertical-align:middle}
.enterprise-table td,.table-panel table td{overflow-wrap:anywhere}
.enterprise-table :where(a,button),.table-panel table :where(a,button){max-width:100%}
.icon-row-action,.icon-action,.table-action{
    min-width:36px;
    min-height:36px;
    align-items:center;
    justify-content:center;
}

/* Keep dashboards and detail pages from becoming cramped beside the sidebar. */
@media(max-width:1380px){
    .enterprise-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .customer-master-layout,
    .reservation-details-layout,
    .reservation-builder,
    .price-calculator-layout,
    .pricing-management-grid,
    .vehicle-overview-enterprise-grid,
    .vehicle-operation-grid{
        grid-template-columns:1fr;
    }
    .customer-summary-drawer,
    .reservation-details-side,
    .reservation-price-sidebar,
    .price-result-card,
    .inspection-side{
        position:relative!important;
        inset-block-start:auto!important;
        top:auto!important;
    }
}

/* Tablet */
@media(max-width:980px){
    .enterprise-content{padding-inline:14px;padding-bottom:calc(34px + env(safe-area-inset-bottom))}
    .enterprise-topbar{width:100%;max-width:100%;padding-inline:12px;gap:8px}
    .app-shell.enterprise-shell>.enterprise-sidebar{
        width:min(320px,88vw)!important;
        min-width:min(320px,88vw)!important;
        max-width:min(320px,88vw)!important;
        padding-bottom:calc(14px + env(safe-area-inset-bottom));
    }
    .sidebar-backdrop.open{display:block;backdrop-filter:blur(2px)}
    .enterprise-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .settings-grid,.enterprise-dashboard-grid,.enterprise-bottom-grid{grid-template-columns:1fr}
    .profile-kpi-strip,.reservation-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .enterprise-filter-bar,.vehicle-enterprise-filter,.reservation-filter,.filter-panel{grid-template-columns:1fr 1fr!important}
    .enterprise-filter-search,.filter-search,.filter-actions{grid-column:1/-1}
    .customer-summary-drawer{display:none}
}

/* Mobile navigation and touch targets */
@media(max-width:760px){
    :root{--audit-mobile-gap:10px}
    .enterprise-topbar{height:62px;min-height:62px}
    .enterprise-search{display:none!important}
    .topbar-spacer{display:block;flex:1}
    .topbar-language-form,.quick-create-wrap,.user-menu-wrap{flex:0 0 auto}
    .language-select{position:relative;min-width:54px!important;max-width:68px!important;padding-inline:7px!important}
    .language-select select{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-width:0!important;opacity:0;cursor:pointer;pointer-events:auto}
    .language-select>svg{display:none}
    .quick-create-button,.notification-button,.enterprise-user-button,.menu-toggle,.icon-topbar-button{
        width:40px!important;
        min-width:40px!important;
        height:40px!important;
        min-height:40px!important;
        padding:0!important;
        justify-content:center;
    }
    .quick-create-menu,.user-dropdown{
        width:min(320px,calc(100vw - 24px));
        max-width:calc(100vw - 24px);
        inset-inline-end:0;
        inset-inline-start:auto;
    }
    .enterprise-page-heading,
    .page-toolbar,
    .dashboard-page-head,
    .page-head{gap:10px;margin-bottom:14px}
    .enterprise-page-heading>div:first-child,
    .page-toolbar>div:first-child,
    .dashboard-page-head>div:first-child,
    .page-head>div:first-child{flex-basis:100%}
    .enterprise-page-heading h1,.dashboard-page-head h1{font-size:clamp(22px,7vw,28px)}
    .page-toolbar h2,.page-head h1{font-size:clamp(20px,6.4vw,26px)}
    .heading-actions,.page-head-actions{width:100%;justify-content:stretch}
    .heading-actions .btn,.page-head-actions .btn{flex:1 1 140px;min-height:44px}
    .panel{border-radius:14px}
    .panel-head{align-items:flex-start}
    .form-grid,.form-grid.two,.form-grid.three,.form-grid-2,.form-grid-3,
    .enterprise-filter-bar,.vehicle-enterprise-filter,.reservation-filter,.filter-panel,
    .detail-grid,.profile-details,.reservation-info-grid,.customer-policy-grid{
        grid-template-columns:1fr!important;
    }
    .enterprise-filter-search,.filter-search,.filter-actions,.full{grid-column:auto!important}
    .filter-actions{align-items:stretch}
    .filter-actions .btn{flex:1;min-height:44px}
    .enterprise-kpi-grid,.profile-kpi-strip,.reservation-detail-kpis{grid-template-columns:1fr}
    .enterprise-kpi{min-height:96px}
    .form-actions{align-items:stretch;flex-direction:column-reverse}
    .form-actions .btn,.form-actions>button,.form-actions>a{width:100%;min-height:46px;justify-content:center}
    .row-actions{justify-content:flex-start}
    .toast-stack{inset-inline:12px!important;bottom:calc(12px + env(safe-area-inset-bottom));left:auto!important;right:auto!important}
    .toast{width:100%;max-width:none}
}

/* Phase 4: incidents, violations and evidence previews. */
@media(min-width:981px){
    .app-shell.sidebar-collapsed .enterprise-sidebar .brand-copy,
    .app-shell.sidebar-collapsed .enterprise-sidebar .nav-label,
    .app-shell.sidebar-collapsed .enterprise-sidebar .sidebar-user-copy,
    .app-shell.sidebar-collapsed .enterprise-sidebar .sidebar-foot,
    .app-shell.sidebar-collapsed .enterprise-sidebar .nav-section-label{display:none!important}
    .app-shell.sidebar-collapsed .enterprise-sidebar .enterprise-brand,
    .app-shell.sidebar-collapsed .enterprise-sidebar .nav-link,
    .app-shell.sidebar-collapsed .enterprise-sidebar .sidebar-footer-actions button{justify-content:center;padding-inline:0}
}
.maintenance-profile-grid{align-items:start}
.maintenance-profile-grid>aside.panel{align-self:start}
.renter-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.violation-status-form{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(260px,1fr) auto;align-items:end;gap:12px}
.violation-status-form .btn{min-height:46px}
.risk-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.risk-stats .stat-card{min-height:112px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.risk-stats .stat-card>span{margin:0;color:var(--muted);font-size:.82rem;font-weight:650}
.risk-stats .stat-card>strong{font-size:clamp(1.35rem,2vw,1.85rem);overflow-wrap:anywhere}
.risk-list-panel{padding:0;overflow:hidden}
.risk-filter-bar{grid-template-columns:minmax(260px,1fr) minmax(180px,230px) auto;margin:0;padding:14px;border:0;border-bottom:1px solid var(--line);border-radius:0}
.risk-filter-bar .filter-actions{align-self:end}
.risk-filter-bar .btn{min-height:43px}
.risk-table{min-width:980px}
.risk-table th,.risk-table td{vertical-align:middle}
.risk-table .cell-main,.risk-table .cell-sub{display:block}
.risk-table .cell-sub{margin-top:4px;color:var(--muted);font-size:.78rem}
.risk-attachment-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
    gap:12px;
    margin-top:16px;
}
.risk-attachment-gallery>.empty-state{grid-column:1/-1}
.risk-attachment-card{
    position:relative;
    min-width:0;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
}
.risk-attachment-card>a{display:grid;gap:6px;padding:10px;color:var(--text);text-decoration:none}
.risk-attachment-card>a:hover .risk-attachment-preview{border-color:var(--accent)}
.risk-attachment-card strong,.risk-attachment-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.risk-attachment-card small{color:var(--muted)}
.risk-attachment-card form{padding:0 10px 10px}
.risk-attachment-preview{
    display:grid;
    place-items:center;
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--surface-2);
    color:var(--muted);
}
.risk-attachment-preview img{width:100%;height:100%;object-fit:cover;transition:transform .18s ease}
.risk-attachment-card>a:hover img{transform:scale(1.025)}
@media(max-width:720px){
    .renter-profile-grid,.violation-status-form{grid-template-columns:1fr}
    .violation-status-form .btn{width:100%}
    .risk-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .risk-filter-bar{grid-template-columns:1fr!important}
    .risk-filter-bar .enterprise-filter-search,.risk-filter-bar .filter-actions{grid-column:auto!important}
    .risk-filter-bar .filter-actions .btn{width:100%}
    .risk-renter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .risk-attachment-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:460px){
    .risk-stats{grid-template-columns:1fr}
    .risk-renter-grid,.risk-attachment-gallery{grid-template-columns:1fr}
}

.customer-profile-hero{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
.customer-profile-hero .profile-assessment-block{flex-wrap:wrap;justify-content:center}
.customer-profile-hero .profile-hero-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1180px){.customer-profile-hero{grid-template-columns:1fr auto}.customer-profile-hero .profile-identity-block{grid-column:1/-1}}
@media(max-width:720px){.customer-profile-hero{grid-template-columns:1fr}.customer-profile-hero .profile-assessment-block,.customer-profile-hero .profile-hero-actions{width:100%;justify-content:stretch}.customer-profile-hero .assessment-card,.customer-profile-hero .profile-hero-actions .btn{flex:1 1 150px}}

/* Phase 3: vehicle profile and maintenance refinements. */
.vehicle-hero-gallery.is-empty .vehicle-main-image{height:auto;min-height:190px}
.vehicle-hero-gallery.is-empty .vehicle-detail-placeholder{min-height:190px;padding:24px;text-align:center}
.vehicle-detail-placeholder strong{color:var(--text);font-size:14px}
.vehicle-detail-placeholder span{max-width:280px;line-height:1.6}
.vehicle-thumb-strip button{height:62px;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:var(--surface-2);cursor:pointer}
.vehicle-thumb-strip button.active{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 16%,transparent)}
.vehicle-thumb-strip button img{width:100%;height:100%;object-fit:cover}
.vehicle-tabs .tab-count{display:grid;place-items:center;min-width:21px;height:21px;padding-inline:5px;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:10px}
.vehicle-tabs button.active .tab-count{background:var(--accent-soft);color:var(--accent)}
.vehicle-maintenance-item{min-height:72px}
.vehicle-maintenance-item-copy small{line-height:1.55}
.vehicle-maintenance-item-side{min-width:110px;text-align:end}
@media(max-width:600px){.vehicle-hero-gallery.is-empty .vehicle-main-image,.vehicle-hero-gallery.is-empty .vehicle-detail-placeholder{min-height:160px}.vehicle-thumb-strip button{height:54px}.vehicle-maintenance-item{align-items:flex-start}.vehicle-maintenance-item-side{min-width:0}}

/* Mobile card tables. Labels are added by system-ui-audit.v1.js. */
@media(max-width:760px){
    .table-wrap:has(>.ui-responsive-table){overflow:visible}
    .ui-responsive-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
    .ui-responsive-table thead{display:none!important}
    .ui-responsive-table tbody{display:grid!important;gap:12px;width:100%}
    .ui-responsive-table tbody tr{
        display:grid!important;
        width:100%;
        min-width:0;
        padding:5px 13px;
        border:1px solid var(--line)!important;
        border-radius:13px;
        background:var(--surface);
        box-shadow:var(--shadow-xs,0 2px 8px rgba(15,23,42,.05));
    }
    .ui-responsive-table tbody tr:hover{background:var(--surface)!important}
    .ui-responsive-table tbody td{
        display:grid!important;
        grid-template-columns:minmax(92px,.38fr) minmax(0,1fr);
        align-items:start;
        gap:10px;
        width:100%!important;
        min-width:0!important;
        min-height:43px;
        padding:10px 0!important;
        border:0!important;
        border-bottom:1px solid var(--line)!important;
        background:transparent!important;
        text-align:start!important;
        white-space:normal!important;
    }
    .ui-responsive-table tbody td:last-child{border-bottom:0!important}
    .ui-responsive-table tbody td::before{
        content:attr(data-label);
        color:var(--muted);
        font-size:10px;
        font-weight:750;
        line-height:1.6;
    }
    .ui-responsive-table tbody td>*{min-width:0;max-width:100%;justify-self:start}
    .ui-responsive-table tbody tr.ui-table-empty-row{padding:0}
    .ui-responsive-table tbody tr.ui-table-empty-row td{
        display:block!important;
        padding:22px 12px!important;
        border:0!important;
    }
    .ui-responsive-table tbody tr.ui-table-empty-row td::before,
    .ui-responsive-table tbody td[data-label=""]::before{display:none}
    .ui-responsive-table tbody td[data-label=""]{grid-template-columns:1fr}
}

@media(max-width:430px){
    .enterprise-content{padding-inline:10px}
    .enterprise-topbar{padding-inline:8px;gap:6px}
    .heading-actions .btn,.page-head-actions .btn{flex-basis:100%}
    .ui-responsive-table tbody td{grid-template-columns:82px minmax(0,1fr);gap:8px}
    .contract-operation-path{grid-template-columns:1fr!important}
}

/* Dark-mode normalization for controls, cards and mobile table rows. */
html.dark-theme .ui-responsive-table tbody tr,
html.dark-theme .quick-create-menu,
html.dark-theme .user-dropdown{
    background:var(--surface)!important;
    border-color:var(--line)!important;
    color:var(--text)!important;
}
html.dark-theme :where(input,select,textarea){color-scheme:dark}
html.dark-theme :where(input,select,textarea):-webkit-autofill,
html.dark-theme :where(input,select,textarea):-webkit-autofill:hover,
html.dark-theme :where(input,select,textarea):-webkit-autofill:focus{
    -webkit-text-fill-color:var(--text);
    box-shadow:0 0 0 1000px var(--surface) inset!important;
}
html.dark-theme .ui-responsive-table tbody td::before{color:var(--muted)!important}
html.dark-theme .sidebar-backdrop{background:rgba(1,7,15,.72)}

@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media print{
    .ui-responsive-table{display:table!important}
    .ui-responsive-table thead{display:table-header-group!important}
    .ui-responsive-table tbody{display:table-row-group!important}
    .ui-responsive-table tbody tr{display:table-row!important}
    .ui-responsive-table tbody td{display:table-cell!important}
    .ui-responsive-table tbody td::before{display:none!important}
}

/* Phase 1: critical navigation and native-control corrections. */
@media(min-width:981px){
    :root{--sidebar-width:286px}
    .app-shell.sidebar-collapsed{--sidebar-width:84px}
    .enterprise-sidebar{overflow:hidden}
    .enterprise-brand{min-width:0;padding-inline:12px;gap:11px}
    .enterprise-brand .brand-logo{flex:0 0 43px;overflow:visible}
    .enterprise-brand .brand-copy{min-width:0;overflow:visible}
    .enterprise-brand .brand-copy strong,
    .enterprise-brand .brand-copy small{white-space:normal;overflow-wrap:anywhere}
    .enterprise-nav .nav-link{height:auto;min-height:48px;align-items:center}
    .enterprise-nav .nav-label{display:block;min-width:0;white-space:normal;line-height:1.4;overflow-wrap:anywhere}
}

.enterprise-content input[type="file"]{
    min-height:48px;
    padding:5px;
    border:1px solid var(--line-strong,var(--line));
    border-radius:10px;
    background:var(--surface);
    color:var(--text);
}
.enterprise-content input[type="file"]::file-selector-button{
    min-height:36px;
    margin-inline-end:10px;
    padding:7px 13px;
    border:0;
    border-radius:8px;
    background:var(--accent);
    color:#fff;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
.enterprise-content input[type="file"]:hover::file-selector-button{filter:brightness(.94)}
.risk-attachment-form{grid-template-columns:minmax(260px,1fr) auto;align-items:end}
@media(max-width:620px){.risk-attachment-form{grid-template-columns:1fr}.risk-attachment-form .btn{width:100%}}

/* Phase 2: compact operation pages and persistent actions. */
.operation-tabs{
    position:sticky;
    z-index:35;
    top:calc(var(--topbar-height,64px) + 8px);
    display:flex;
    align-items:center;
    gap:6px;
    width:100%;
    margin:0 0 16px;
    padding:7px;
    overflow-x:auto;
    border:1px solid var(--line);
    border-radius:13px;
    background:color-mix(in srgb,var(--surface) 94%,transparent);
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    backdrop-filter:blur(12px);
}
.operation-tabs button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:40px;
    padding:8px 14px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:var(--muted);
    font:inherit;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
}
.operation-tabs button:hover{background:var(--surface-2);color:var(--text)}
.operation-tabs button.active{background:var(--accent);color:#fff;box-shadow:0 5px 15px color-mix(in srgb,var(--accent) 28%,transparent)}
.operation-tabs button>span{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:color-mix(in srgb,currentColor 13%,transparent);font-size:10px}
.operation-tab-layout [data-tab-panel][hidden]{display:none!important}
.operation-tab-layout .reservation-details-side{align-self:start}
.reservation-details-main>.panel[data-tab-panel]{animation:operationPanelIn .18s ease both}
@keyframes operationPanelIn{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}

.form-panel>.form-actions{
    position:sticky;
    z-index:20;
    bottom:10px;
    margin:18px -10px -10px;
    padding:10px;
    border:1px solid var(--line);
    border-radius:12px;
    background:color-mix(in srgb,var(--surface) 94%,transparent);
    box-shadow:0 10px 30px rgba(15,23,42,.1);
    backdrop-filter:blur(10px);
}
.empty-state.compact{display:grid;place-items:center;gap:6px;min-height:110px;text-align:center;color:var(--muted)}
.empty-state.compact strong{color:var(--text)}
@media(max-width:760px){
    .operation-tabs{top:70px;margin-inline:0;border-radius:11px}
    .operation-tabs button{flex:1 0 auto;min-height:44px}
    .form-panel>.form-actions{bottom:6px;margin-inline:-6px}
}
