:root {
  color-scheme: dark;
  --ink: #eef8fb;
  --muted: #8da6b0;
  --bg: #061019;
  --panel: #0b1a25;
  --panel-2: #0f2431;
  --line: #1d3945;
  --cyan: #35d7df;
  --cyan-2: #1199a5;
  --danger: #ff757d;
  --warning: #f3c95d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 9px; padding: .76rem 1rem; background: var(--cyan); color: #031217; font-weight: 750; cursor: pointer; }
.button-link { display: inline-flex; align-items: center; border-radius: 9px; padding: .76rem 1rem; background: var(--cyan); color: #031217; font-weight: 750; text-decoration: none; }
.danger-button { background: var(--danger); color: #240307; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: wait; }
input, select, textarea { width: 100%; margin-top: .45rem; padding: .78rem .82rem; border: 1px solid var(--line); border-radius: 9px; background: #07141d; color: var(--ink); outline: none; }
textarea { resize: vertical; min-height: 7rem; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53,215,223,.12); }
label { display: block; font-size: .9rem; font-weight: 650; color: #c5d9df; }
label small, td small { display: block; color: var(--muted); font-weight: 400; margin-top: .28rem; }
.eyebrow { margin: 0 0 .5rem; color: var(--cyan); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.error { margin: 0; color: var(--danger); font-size: .9rem; }
.login-body { overflow: hidden; }
.login-shell { display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(380px, .95fr); min-height: 100vh; }
.brand-panel { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: clamp(2rem, 7vw, 7rem); overflow: hidden; background: radial-gradient(circle at 20% 18%, rgba(53,215,223,.2), transparent 31%), linear-gradient(145deg, #07141e, #092433 72%, #0a3440); }
.brand-panel::after { content: ""; position: absolute; inset: auto -14% -22% 18%; height: 48%; border: 1px solid rgba(53,215,223,.2); transform: skewY(-8deg); background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(53,215,223,.06) 61px); }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 900; font-size: 1.35rem; letter-spacing: -.08em; }
.brand-panel h1 { margin: 0; max-width: 10ch; font-size: clamp(3rem, 8vw, 7rem); line-height: .9; letter-spacing: -.065em; }
.brand-copy { max-width: 33rem; color: #aac1ca; font-size: 1.12rem; line-height: 1.65; }
.system-status { position: relative; z-index: 1; display: flex; align-items: center; gap: .6rem; color: #b7ccd3; font-size: .85rem; }
.system-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.login-panel { display: grid; place-items: center; padding: 2rem; background: #050c12; }
.login-card { width: min(100%, 410px); display: grid; gap: 1.25rem; }
.login-card h2, .dialog-card h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.login-card .muted { margin: .4rem 0 0; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.5rem 1rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #07131d; }
.logo { display: flex; align-items: center; gap: .75rem; padding: .3rem .55rem 2rem; }
.logo span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--cyan); color: var(--cyan); font-weight: 900; }
.sidebar nav { display: grid; gap: .35rem; }
.nav-item { text-align: left; background: transparent; color: #9fb5be; font-weight: 650; }
.nav-item.active { color: var(--ink); background: #102632; box-shadow: inset 3px 0 var(--cyan); }
.sidebar-user { margin-top: auto; padding: 1rem .55rem 0; border-top: 1px solid var(--line); display: grid; gap: .3rem; }
.sidebar-user span { color: var(--muted); font-size: .82rem; }
.text-button { width: fit-content; padding: .45rem 0; background: none; color: var(--cyan); }
.workspace { padding: clamp(1.25rem, 4vw, 3.25rem); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.topbar h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.05em; }
.environment { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .78rem; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem 1.2rem; border: 1px solid #735f29; background: rgba(243,201,93,.08); border-radius: 12px; }
.notice p { margin: .2rem 0 0; color: #c9b978; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.report-grid { grid-template-columns: repeat(3, 1fr); }
.metric, .empty-state, .table-card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(15,36,49,.9), rgba(8,22,31,.9)); }
.metric { padding: 1.25rem; display: grid; gap: .45rem; }
.metric span, .metric small { color: var(--muted); }
.metric strong { font-size: 2.5rem; color: var(--cyan); }
.empty-state { margin-top: 1rem; min-height: 360px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 2rem; }
.empty-state h2 { margin: 1rem 0 .25rem; }
.empty-state p { max-width: 34rem; color: var(--muted); line-height: 1.55; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--cyan-2); color: var(--cyan); font-weight: 800; transform: rotate(45deg); }
.empty-icon::first-line { transform: rotate(-45deg); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.section-heading p { margin: .35rem 0 0; color: var(--muted); }
.heading-actions { display: flex; align-items: center; gap: .7rem; }
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 790px; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; padding: .28rem .55rem; border-radius: 99px; font-size: .78rem; background: #17303d; }
.pill.good { color: #72e0b1; background: rgba(42,160,110,.13); }
.pill.off { color: #b2bec3; }
.warning-pill, .state-unverified, .state-pending_inspection { color: var(--warning); background: rgba(243,201,93,.12); }
.state-maintenance, .state-lost { color: var(--danger); background: rgba(255,117,125,.12); }
.state-available { color: #72e0b1; background: rgba(42,160,110,.13); }
.state-in_use, .state-ready, .state-checked_out { color: #76c9ff; background: rgba(70,158,220,.14); }
.filter-bar { display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.import-checks { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; color: var(--muted); font-size: .85rem; }
.import-checks span { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #081722; }
.import-checks strong { color: var(--ink); }
.inventory-table { min-width: 1060px; }
.allocation-cell { min-width: 250px; }
.allocation-cell small { margin-top: .35rem; }
.allocation-active { color: #f0c8ff; background: rgba(184, 93, 219, .14); text-transform: capitalize; }
.no-results { padding: 3rem; text-align: center; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--muted); }
.pager div { display: flex; gap: .5rem; }
.asset-detail { max-height: 80vh; overflow-y: auto; }
.asset-detail dl { display: grid; gap: 0; margin: 0; }
.asset-detail dl div { display: grid; grid-template-columns: 145px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.asset-detail dt { color: var(--muted); font-size: .82rem; }
.asset-detail dd { margin: 0; overflow-wrap: anywhere; }
.asset-detail h3 { margin: 1.2rem 0 .5rem; }
.component-heading { align-items: center; margin-top: 1.2rem; }
.component-heading h3 { margin: 0; }
.component-list { display: grid; gap: .6rem; }
.component-row { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.4fr) minmax(120px,.7fr) auto; gap: .8rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #081722; }
.component-row strong, .component-row span, .component-row small { display: block; }
.component-row span, .component-row small { color: var(--muted); }
.component-row .relationship { color: var(--cyan); text-transform: capitalize; }
.component-row button { padding: .5rem .7rem; }
.history-list { display: grid; gap: .6rem; }
.history-list article { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr); gap: .25rem .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; background: #081722; }
.history-list article strong { text-transform: capitalize; }
.history-list article span { color: var(--cyan); }
.history-list article small { grid-column: 1 / -1; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.top-gap { margin-top: 1rem; }
.warning-text { color: var(--warning); font-weight: 800; }
.secondary { background: transparent; color: #c5d9df; border: 1px solid var(--line); }
.operation-card { margin-bottom: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(15,36,49,.9), rgba(8,22,31,.9)); }
.operation-card h3 { margin: 0; }
.return-session-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.return-session-heading h3 { font-size: 1.35rem; }
.return-session-heading span { color: var(--muted); }
.scan-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.scan-metrics div { display: grid; gap: .25rem; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #07141d; }
.scan-metrics span { color: var(--muted); font-size: .78rem; }
.scan-metrics strong { color: var(--cyan); font-size: 1.45rem; }
.return-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.return-columns h4 { margin: 0 0 .55rem; }
.scan-match { color: #72e0b1; }
.scan-exception { color: var(--danger); }
.received-item { opacity: .62; }
.received-item strong::after { content: "  ✓"; color: #72e0b1; }
.scan-bar { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: end; }
.scan-bar input { margin: 0; }
.scan-result { display: grid; grid-template-columns: minmax(220px,1fr) auto minmax(220px,auto); align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #07141d; }
.scan-result strong, .scan-result span, .scan-result small { display: block; }
.scan-result > div > span { margin-top: .2rem; }
.scan-result small { margin-top: .25rem; color: var(--muted); }
.compact-list, .selection-list { display: grid; gap: .55rem; max-height: 320px; overflow-y: auto; }
.compact-list article, .selection-row { display: grid; gap: .2rem; padding: .7rem; border: 1px solid var(--line); border-radius: 9px; background: #081722; }
.compact-list article span, .compact-list article small, .selection-row small { color: var(--muted); }
.selection-row { grid-template-columns: auto 1fr; align-items: center; cursor: pointer; }
.selection-row input, .check-label input { width: auto; margin: 0; }
.check-label { display: flex; gap: .55rem; align-items: center; margin: .45rem 0; }
fieldset { border: 1px solid var(--line); border-radius: 9px; }
legend { color: var(--muted); }
code { overflow-wrap: anywhere; color: var(--cyan); }
dialog { width: min(92vw, 480px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.wide-dialog { width: min(94vw, 780px); }
dialog::backdrop { background: rgba(0,6,10,.75); backdrop-filter: blur(4px); }
.dialog-card { display: grid; gap: 1rem; padding: 1.4rem; }
.wide-dialog .dialog-card { max-height: 88vh; overflow-y: auto; }
.form-note { margin: 0; padding: .75rem; border: 1px solid #735f29; border-radius: 9px; color: #d9c98b; background: rgba(243,201,93,.07); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.full-width { grid-column: 1 / -1; }
.dialog-card header, .dialog-card footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.dialog-card footer { justify-content: flex-end; padding-top: .4rem; }
.icon-button { padding: .25rem .55rem; background: transparent; color: var(--muted); font-size: 1.6rem; }
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; padding: .85rem 1rem; border: 1px solid var(--cyan-2); border-radius: 10px; background: #0c2933; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .login-body { overflow: auto; }
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 38vh; padding: 2rem; }
  .brand-panel h1 { font-size: 3.5rem; }
  .brand-copy { display: none; }
  .login-panel { padding: 2.4rem 1.3rem; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: .6rem; padding: .75rem; overflow-x: auto; }
  .logo strong, .sidebar-user span { display: none; }
  .logo { padding: 0; }
  .sidebar nav { display: flex; }
  .sidebar-user { margin: 0 0 0 auto; padding: 0; border: 0; min-width: max-content; }
  .workspace { padding: 1.1rem; }
  .environment { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .pager { align-items: flex-start; flex-direction: column; }
  .empty-state { min-height: 260px; }
  .notice, .section-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .scan-bar, .scan-result { grid-template-columns: 1fr; }
  .scan-metrics { grid-template-columns: repeat(2, 1fr); }
  .return-columns { grid-template-columns: 1fr; }
  .return-session-heading { align-items: flex-start; flex-direction: column; }
  .component-row { grid-template-columns: 1fr; }
}


/* IO mobile layout 1.0: presentation only; existing actions and permissions remain authoritative. */
.workspace, .view, .topbar > div, .table-card { min-width: 0; }
.mobile-menu-toggle { display: none; }
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; }
  button, .button-link, select, input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  input[type=checkbox], input[type=radio] { min-width: 22px; min-height: 22px; flex: 0 0 auto; }
  .app-shell { display: block; min-width: 0; }
  .sidebar.mobile-enhanced { position: sticky; top: 0; z-index: 35; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; height: auto; max-height: 82dvh; overflow-y: auto; overflow-x: hidden; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px #0003; }
  .mobile-enhanced .logo { gap: 9px; min-width: 0; }
  .mobile-enhanced .logo strong { display: block; font-size: 16px; }
  .mobile-enhanced .logo span { width: 30px; height: 30px; flex: 0 0 auto; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 9px 12px; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
  .sidebar.mobile-enhanced nav, .sidebar.mobile-enhanced .sidebar-user { display: none; }
  .sidebar.mobile-menu-open nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column: 1/-1; gap: 6px; }
  .sidebar.mobile-menu-open .nav-item { white-space: normal; min-width: 0; padding: 12px 10px; font-size: 14px; }
  .sidebar.mobile-menu-open .sidebar-user { display: grid; grid-column: 1/-1; grid-template-columns: minmax(0,1fr) auto; gap: 3px 12px; min-width: 0; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .sidebar.mobile-menu-open .sidebar-user strong { overflow-wrap: anywhere; }
  .sidebar.mobile-menu-open .sidebar-user span { display: block; grid-column: 1; }
  .sidebar.mobile-menu-open #logout { grid-column: 2; grid-row: 1/3; align-self: center; padding: 10px; }
  .workspace { padding: 20px 16px calc(94px + env(safe-area-inset-bottom)); }
  .topbar { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .topbar h1 { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
  .topbar .eyebrow { font-size: 10px; margin-bottom: 6px; }
  .topbar #android-app-download { min-height: 40px; }
  .metric-grid, .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #overview-view .metric:first-child { grid-column: 1/-1; }
  .metric { padding: 15px; gap: 6px; min-width: 0; }
  .metric strong { font-size: 32px; }
  .metric span { font-size: 14px; }
  .metric small { font-size: 12px; line-height: 1.4; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p, .notice p { line-height: 1.45; overflow-wrap: anywhere; }
  .heading-actions, .actions { flex-wrap: wrap; gap: 8px; }
  .heading-actions > button { flex: 1 1 130px; }
  .filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .filter-bar > label:first-child { grid-column: 1/-1; }
  .filter-bar > label { min-width: 0; }
  .filter-bar label { font-size: 13px; }
  .filter-bar input, .filter-bar select { padding: 11px 9px; }
  .import-checks { gap: 6px; font-size: 12px; }
  .import-checks span { padding: 7px; }
  .table-card:has(.mobile-card-table) { overflow: visible; border: 0; background: none; border-radius: 0; }
  table.mobile-card-table { display: block; width: 100%; min-width: 0; }
  .mobile-card-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-card-table tbody { display: grid; gap: 12px; }
  .mobile-card-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; padding: 4px 14px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
  .mobile-card-table tbody td { display: block; min-width: 0; padding: 10px 0; border: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
  .mobile-card-table td::before { content: attr(data-mobile-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
  .mobile-card-table td:first-child { grid-column: 1/-1; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mobile-card-table td:last-child, .mobile-card-table td[colspan], .mobile-card-table .allocation-cell { grid-column: 1/-1; min-width: 0; }
  .mobile-card-table td:last-child:has(button) { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-card-table td:last-child:has(button)::before { display: none; }
  .mobile-card-table td:last-child button { flex: 1 1 120px; }
  .mobile-card-table .no-results { text-align: center; padding: 24px 0; }
  .mobile-card-table .no-results::before { display: none; }
  .inventory-table td:nth-child(3) { grid-column: 1/-1; }
  .pager { gap: 10px; padding: 16px 0; font-size: 14px; }
  .pager > div { width: 100%; }
  .pager button { flex: 1; }
  .operation-card { padding: 14px; }
  .selection-list, .compact-list { max-height: min(420px,55dvh); }
  .selection-row { gap: 12px; padding: 12px; }
  .selection-row > *, .warehouse-selection label > * { min-width: 0; overflow-wrap: anywhere; }
  .history-list article { grid-template-columns: 1fr; }
  .asset-detail dl div { grid-template-columns: 1fr; gap: 4px; }
  .asset-detail { max-height: none; }
  dialog:not(.vera-drawer) { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); margin: auto; border-radius: 14px; }
  .dialog-card { padding: 16px; gap: 16px; }
  .dialog-card h2 { font-size: 24px; }
  .wide-dialog .dialog-card { max-height: calc(100dvh - 24px); }
  .dialog-card header { align-items: flex-start; }
  .dialog-card footer { flex-wrap: wrap; }
  .dialog-card footer button { flex: 1 1 100px; }
  .dialog-card .icon-button { min-width: 44px; flex-shrink: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > *, fieldset { min-width: 0; }
  .warehouse-workflow { padding: 16px; }
  .warehouse-workflow header { gap: 10px; }
  .warehouse-workflow header button { flex-shrink: 0; }
  .warehouse-selection label { align-items: flex-start; padding: 12px; }
  .warehouse-workflow input[type=checkbox] { margin-top: 2px; }
  .warehouse-workflow .actions button { flex: 1 1 120px; }
  .empty-state { min-height: 210px; padding: 24px 16px; }
  .login-shell { min-height: 100dvh; display: flex; flex-direction: column; }
  .brand-panel { min-height: 0; padding: 24px; gap: 16px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .brand-panel::after, .brand-panel .system-status { display: none; }
  .brand-mark { width: 48px; height: 48px; flex: 0 0 auto; }
  .brand-panel .eyebrow { font-size: 10px; }
  .brand-panel h1 { font-size: 34px; }
  .login-panel { padding: 28px 24px; flex: 1; align-items: start; }
  .login-card { gap: 20px; }
  #vera-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 13px 18px; font-size: 14px; }
  .vera-drawer { width: 100vw; max-width: 100vw; padding: 14px; height: 100dvh; max-height: 100dvh; gap: 10px; }
  .vera-drawer[open] { gap: 10px; }
  .vera-drawer h2 { font-size: 24px; }
  .vera-drawer header { gap: 10px; }
  .vera-drawer header button { padding: 10px 14px; }
  .vera-drawer .vera-messages { min-height: 0; }
  .vera-message { padding: 12px; font-size: 15px; line-height: 1.5; }
  .vera-message.user { margin-left: 16px; }
  .vera-drawer > form { flex: 0 0 auto; }
  .vera-drawer form textarea { min-height: 48px; max-height: 100px; height: 64px; padding: 10px; margin-top: 0; }
  .vera-suggestions button { min-height: 40px; font-size: 12px; padding: 10px; }
  .vera-controls { margin-top: 6px; }
  .vera-controls button { padding: 10px 18px; }
  .toast { left: 16px; right: 16px; bottom: 84px; z-index: 50; font-size: 14px; }
}
@media (max-width: 360px) {
  .workspace { padding-left: 12px; padding-right: 12px; }
  .filter-bar { grid-template-columns: 1fr; }
  .mobile-card-table tbody tr { gap: 0 8px; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 760px) and (max-height: 550px) {
  .vera-identity, .vera-drawer header small, .vera-suggestions { display: none; }
  .vera-drawer form textarea { height: 48px; }
}
@media (max-width: 760px) {
  .inventory-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .inventory-table td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .dialog-card > header { position: sticky; top: -16px; z-index: 2; padding-top: 8px; padding-bottom: 8px; background: var(--panel); }
}
