/* BDPI 1.2 — interface opérationnelle modernisée */
:root {
  --primary: #a91823;
  --primary-hover: #86131b;
  --primary-strong: #761018;
  --primary-soft: #fff1f2;
  --accent: #e53e3e;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #eef2f6;
  --text: #142033;
  --muted: #667386;
  --border: #e2e7ee;
  --border-strong: #cbd4df;
  --sidebar: #0b1321;
  --sidebar-soft: #121e30;
  --sidebar-width: 286px;
  --sidebar-collapsed-width: 82px;
  --radius: 18px;
  --radius-small: 11px;
  --shadow: 0 14px 35px rgba(20, 32, 51, .075);
  --shadow-hover: 0 20px 45px rgba(20, 32, 51, .12);
}
html[data-theme="dark"] {
  --bg: #09101a;
  --surface: #121b28;
  --surface-soft: #0e1723;
  --surface-strong: #1b2736;
  --text: #eef3f8;
  --muted: #a7b3c3;
  --border: #273548;
  --border-strong: #3a4a60;
  --primary: #f2555f;
  --primary-hover: #ff7079;
  --primary-strong: #ff7f87;
  --primary-soft: #35191d;
  --sidebar: #050a11;
  --sidebar-soft: #111b29;
  --shadow: 0 18px 46px rgba(0,0,0,.26);
  --shadow-hover: 0 22px 55px rgba(0,0,0,.36);
}

body { letter-spacing: -.005em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent); outline-offset: 2px; }
.ui-icon { width: 21px; height: 21px; flex: none; }

/* Application shell */
.app-shell { transition: grid-template-columns .2s ease; }
body.sidebar-collapsed .app-shell { grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr); }
.sidebar { padding: 16px 13px; background:
  radial-gradient(circle at 15% 0%, rgba(200,31,44,.18), transparent 26%),
  linear-gradient(180deg, var(--sidebar) 0%, #07101c 100%); scrollbar-width: thin; }
.brand { min-height: 68px; padding: 0 7px 15px; }
.brand-logo { width: 46px; height: 46px; border-radius: 13px; padding: 3px; box-shadow: 0 7px 22px rgba(0,0,0,.25); }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { max-width: 185px; font-size: 10.5px; line-height: 1.3; }
.sidebar-create { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 2px 7px; min-height: 44px; padding: 9px 12px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #d92d3b, #941522); box-shadow: 0 12px 28px rgba(169,24,35,.3); text-decoration: none; font-weight: 800; font-size: 13px; }
.sidebar-create:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-menu { gap: 12px; padding-top: 14px; }
.nav-section { display: grid; gap: 3px; }
.nav-section-label { padding: 4px 12px 5px; color: #6f7f94; font-size: 9.5px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { position: relative; min-height: 42px; border-radius: 11px; color: #b9c4d3; font-size: 13.5px; font-weight: 680; }
.nav-item .ui-icon { width: 19px; height: 19px; color: #8fa0b5; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.is-active { background: linear-gradient(135deg, rgba(218,45,59,.98), rgba(148,21,34,.98)); box-shadow: 0 8px 24px rgba(169,24,35,.3); }
.nav-item.is-active .ui-icon { color: #fff; }
.nav-subitem { margin-left: 15px; min-height: 37px; font-size: 12.5px; }
.nav-subitem::before { content: ""; position: absolute; left: -5px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.09); }
.sidebar-footer { gap: 2px; }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .nav-section-label,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .sidebar-create span { display: none; }
body.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
body.sidebar-collapsed .brand-link { justify-content: center; }
body.sidebar-collapsed .sidebar-create,
body.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 8px; }
body.sidebar-collapsed .nav-subitem { margin-left: 0; }
body.sidebar-collapsed .nav-subitem::before { display: none; }

/* Topbar */
.topbar { min-height: 76px; gap: 12px; padding: 12px clamp(16px,2.5vw,34px); background: color-mix(in srgb, var(--surface) 89%, transparent); border-bottom-color: color-mix(in srgb, var(--border) 82%, transparent); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.topbar-start { display: flex; gap: 7px; }
.icon-button { border-radius: 12px; background: var(--surface-soft); }
.global-search { max-width: 760px; }
.global-search input { height: 46px; padding-left: 45px; padding-right: 68px; border-radius: 14px; background: var(--surface-soft); }
.global-search .search-icon { width: 20px; height: 20px; left: 15px; }
.global-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 3px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 10px; font-family: inherit; }
.user-dropdown { position: relative; }
.user-menu { min-height: 48px; border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; color: var(--text); }
.user-menu:hover, .user-menu[aria-expanded="true"] { border-color: var(--border); background: var(--surface-soft); }
.user-avatar { width: 38px; height: 38px; background: linear-gradient(135deg,var(--primary),#d7444f); color:#fff; }
.user-chevron { color: var(--muted); }
.user-popover { position: absolute; z-index: 100; right: 0; top: calc(100% + 9px); width: 270px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 60px rgba(15,23,42,.2); }
.user-popover-head { display:flex; flex-direction:column; padding: 10px 11px 12px; border-bottom:1px solid var(--border); }
.user-popover-head small { color: var(--muted); }
.user-popover a, .user-popover button { width:100%; min-height:42px; display:flex; align-items:center; gap:10px; padding:8px 10px; border:0; border-radius:10px; color:var(--text); background:transparent; text-decoration:none; cursor:pointer; text-align:left; }
.user-popover a:hover, .user-popover button:hover { background:var(--surface-strong); }
.user-popover form { margin:0; }

/* Page rhythm */
.content { max-width: 1840px; padding: clamp(22px,3vw,40px); }
.page-header { align-items: center; margin-bottom: 22px; }
.page-header h1 { font-size: clamp(27px,2.6vw,39px); }
.page-header p { max-width: 760px; }
.page-header-actions, .page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.page-kicker { display:flex; align-items:center; gap:8px; color:var(--primary); font-size:11px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.page-kicker .ui-icon { width:15px; height:15px; }
.breadcrumbs { display:flex; align-items:center; gap:7px; margin-bottom:10px; color:var(--muted); font-size:12px; }
.breadcrumbs a { text-decoration:none; }
.breadcrumbs a:hover { color:var(--primary); }
.button { min-height:42px; border-radius:11px; padding-inline:16px; }
.button-primary { background:linear-gradient(135deg,#c52937,#941522); box-shadow:0 7px 18px rgba(169,24,35,.18); }
.button-primary:hover { box-shadow:0 10px 24px rgba(169,24,35,.27); }
.button-icon { padding-inline:12px; }
.button .ui-icon { width:18px; height:18px; }

.panel { border-radius: 18px; box-shadow: var(--shadow); }
.panel:hover.panel-interactive { box-shadow:var(--shadow-hover); }
.panel-heading { min-height:72px; padding:17px 20px; }
.panel-heading h2 { font-size:17px; letter-spacing:-.015em; }

/* Dashboard */
.dashboard-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr); gap:26px; align-items:center; margin-bottom:20px; padding:clamp(24px,3vw,38px); border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border)); border-radius:24px; background:
  radial-gradient(circle at 88% 20%, rgba(229,62,62,.18), transparent 25%),
  linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb,var(--primary-soft) 54%,var(--surface)) 100%); box-shadow:var(--shadow); }
.dashboard-hero::after { content:""; position:absolute; right:-70px; bottom:-110px; width:280px; height:280px; border:1px solid color-mix(in srgb,var(--primary) 22%,transparent); border-radius:50%; box-shadow:0 0 0 36px color-mix(in srgb,var(--primary) 6%,transparent),0 0 0 75px color-mix(in srgb,var(--primary) 4%,transparent); }
.dashboard-hero h1 { margin:7px 0 8px; font-size:clamp(31px,4vw,50px); line-height:1.04; letter-spacing:-.045em; }
.dashboard-hero p { max-width:720px; margin:0; color:var(--muted); font-size:15px; }
.hero-actions { position:relative; z-index:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.quick-action { min-height:72px; display:flex; align-items:center; gap:11px; padding:13px 15px; border:1px solid var(--border); border-radius:15px; background:color-mix(in srgb,var(--surface) 88%,transparent); text-decoration:none; font-weight:780; transition:.16s ease; }
.quick-action:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--primary) 45%,var(--border)); box-shadow:var(--shadow); }
.quick-action .icon-box { width:39px; height:39px; display:grid; place-items:center; border-radius:11px; color:var(--primary); background:var(--primary-soft); }
.metric-grid { gap:14px; }
.metric-card { position:relative; overflow:hidden; min-height:135px; border-radius:18px; }
.metric-card::after { content:""; position:absolute; width:82px; height:82px; border-radius:50%; right:-30px; top:-30px; background:color-mix(in srgb,var(--primary) 7%,transparent); }
.metric-card strong { font-size:32px; }
.metric-card .metric-icon { width:34px; height:34px; display:grid; place-items:center; margin-bottom:8px; border-radius:10px; color:var(--primary); background:var(--primary-soft); }
.metric-card.is-warning { background:linear-gradient(145deg,var(--surface),var(--warning-soft)); }
.metric-card.is-danger { background:linear-gradient(145deg,var(--surface),var(--danger-soft)); }
.progress-row { display:grid; grid-template-columns:150px 1fr 48px; gap:12px; align-items:center; padding:8px 0; }
.progress-track { height:8px; overflow:hidden; border-radius:999px; background:var(--surface-strong); }
.progress-track > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--primary),#ef5a64); }

/* Lists and filters */
.filter-panel { overflow:visible; margin-bottom:16px; }
.filter-toolbar { display:grid; grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(150px,.7fr)) auto; gap:10px; align-items:end; padding:16px; }
.filter-toolbar.is-expanded { grid-template-columns:repeat(4,minmax(150px,1fr)); }
.filter-toolbar .filter-search { position:relative; }
.filter-toolbar label > span, .filter-label { display:block; margin-bottom:5px; color:var(--muted); font-size:11px; font-weight:750; }
.filter-toolbar .form-control, .filter-toolbar .form-select { min-height:42px; }
.filter-actions { display:flex; gap:8px; align-items:center; }
.active-filters { display:flex; gap:7px; flex-wrap:wrap; padding:0 16px 15px; }
.filter-chip { display:inline-flex; align-items:center; gap:7px; min-height:29px; padding:4px 9px; border-radius:999px; color:var(--primary); background:var(--primary-soft); font-size:11px; font-weight:750; }
.results-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:13px 18px; border-bottom:1px solid var(--border); color:var(--muted); font-size:12px; }
.results-toolbar strong { color:var(--text); }
.data-table { border-collapse:separate; border-spacing:0; }
.data-table th { position:sticky; top:0; z-index:2; padding:12px 14px; background:var(--surface-soft); color:var(--muted); font-size:10px; letter-spacing:.055em; text-transform:uppercase; }
.data-table td { padding:13px 14px; }
.data-table tbody tr { transition:background .13s ease; }
.data-table tbody tr:hover { background:color-mix(in srgb,var(--primary-soft) 40%,transparent); }
.table-primary { display:flex; align-items:center; gap:11px; }
.table-avatar { width:36px; height:36px; flex:none; display:grid; place-items:center; border-radius:10px; color:var(--primary); background:var(--primary-soft); font-size:11px; font-weight:850; }
.table-primary-copy { display:flex; min-width:0; flex-direction:column; }
.table-primary-copy small, .data-table td small { display:block; color:var(--muted); }
.table-link { font-weight:780; }
.badge { min-height:26px; padding:4px 9px; border-radius:999px; font-size:11px; }
.date-state { display:flex; flex-direction:column; }
.date-state.is-overdue strong { color:var(--danger); }
.date-state.is-due strong { color:var(--warning); }
.mobile-card-list { display:none; }

/* Equipment module */
.equipment-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.equipment-metrics .metric-card { min-height:112px; padding:16px; }
.equipment-metrics .metric-card strong { margin-top:8px; font-size:28px; }
.equipment-page-actions { display:flex; gap:9px; flex-wrap:wrap; }
.equipment-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:11px; padding:17px; }
.equipment-filter-grid .filter-search { grid-column:span 2; }
.equipment-filter-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 17px 17px; }
.equipment-code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; color:var(--muted); }
.equipment-type-pill { display:inline-flex; max-width:100%; align-items:center; gap:6px; }
.equipment-location { display:flex; flex-direction:column; }
.catalog-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-bottom:18px; }
.catalog-stat { padding:18px; border:1px solid var(--border); border-radius:17px; background:var(--surface); box-shadow:var(--shadow); }
.catalog-stat strong { display:block; margin-top:5px; font-size:27px; }
.catalog-categories { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
.catalog-category { flex:none; display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:var(--surface); text-decoration:none; font-size:12px; font-weight:700; }
.catalog-category.is-active, .catalog-category:hover { color:var(--primary); border-color:color-mix(in srgb,var(--primary) 40%,var(--border)); background:var(--primary-soft); }
.catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.catalog-card { display:flex; min-width:0; flex-direction:column; padding:18px; border:1px solid var(--border); border-radius:17px; background:var(--surface); box-shadow:var(--shadow); text-decoration:none; transition:.16s ease; }
.catalog-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--primary) 35%,var(--border)); box-shadow:var(--shadow-hover); }
.catalog-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.catalog-card-code { display:inline-flex; padding:4px 7px; border-radius:7px; color:var(--primary); background:var(--primary-soft); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10px; font-weight:850; }
.catalog-card h3 { margin:12px 0 5px; font-size:16px; line-height:1.3; }
.catalog-card p { margin:0; color:var(--muted); font-size:12px; }
.catalog-card-footer { display:flex; justify-content:space-between; gap:10px; margin-top:auto; padding-top:15px; color:var(--muted); font-size:11px; }
.reference-callout { padding:16px 18px; border-left:4px solid var(--primary); border-radius:12px; background:var(--primary-soft); }
.reference-callout p { margin:4px 0 0; color:var(--muted); }
.schema-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.schema-card { padding:15px; border:1px solid var(--border); border-radius:14px; background:var(--surface-soft); }
.schema-card strong { display:block; margin-bottom:4px; }
.schema-card small { color:var(--muted); }
.control-list { display:grid; gap:8px; }
.control-item { display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; padding:11px 12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-soft); }
.control-index { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; color:var(--primary); background:var(--primary-soft); font-size:10px; font-weight:850; }

/* Structured equipment form */
.form-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:start; }
.form-main { display:grid; gap:16px; }
.form-sidebar { position:sticky; top:96px; display:grid; gap:16px; }
.form-section { overflow:visible; }
.form-section-head { display:flex; align-items:flex-start; gap:12px; padding:18px 20px; border-bottom:1px solid var(--border); }
.form-section-icon { width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:11px; color:var(--primary); background:var(--primary-soft); }
.form-section-head h2 { margin:0; font-size:16px; }
.form-section-head p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.form-section-body { padding:19px 20px; }
.form-grid.is-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.form-grid.is-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-group label { font-size:12px; font-weight:760; }
.form-control, .form-select { min-height:43px; border-radius:11px; background:var(--surface); }
.form-control:focus, .form-select:focus { border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent); }
.help-text, .field-help { line-height:1.45; }
.form-sticky-actions { display:grid; gap:9px; padding:15px; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); }
.form-sticky-actions .button { width:100%; }
.form-tips { padding:15px; border:1px solid var(--border); border-radius:16px; background:var(--surface-soft); }
.form-tips h3 { margin:0 0 8px; font-size:13px; }
.form-tips ul { margin:0; padding-left:18px; color:var(--muted); font-size:12px; }
.type-context { min-height:86px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface-soft); }
.type-context.is-loading { opacity:.65; }
.type-context strong { display:block; }
.type-context p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.dynamic-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.dynamic-empty { grid-column:1/-1; padding:22px; border:1px dashed var(--border-strong); border-radius:14px; color:var(--muted); text-align:center; }
.advanced-json { margin-top:15px; }
.advanced-json summary { cursor:pointer; color:var(--muted); font-size:12px; font-weight:750; }
.advanced-json textarea { margin-top:10px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; }
.code-editor { min-height:240px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; line-height:1.65; }

/* Modern generic forms and empty states */
.form-panel { overflow:visible; }
.empty-state { padding:50px 24px; }
.empty-state-icon { width:54px; height:54px; display:grid; place-items:center; margin:0 auto 14px; border-radius:17px; color:var(--primary); background:var(--primary-soft); }
.alert { border-radius:13px; box-shadow:0 8px 22px rgba(15,23,42,.05); }
.mobile-dock { display:none; }

@media (max-width: 1380px) {
  .equipment-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-toolbar { grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(150px,.7fr)) auto; }
}
@media (max-width: 1120px) {
  .collapse-button { display:none; }
  .dashboard-hero { grid-template-columns:1fr; }
  .hero-actions { max-width:650px; }
  .form-layout { grid-template-columns:1fr; }
  .form-sidebar { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .equipment-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .equipment-filter-grid .filter-search { grid-column:span 2; }
  .dynamic-fields, .form-grid.is-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  body.sidebar-collapsed .app-shell { grid-template-columns:1fr; }
  .global-search kbd { display:none; }
  .mobile-dock { position:fixed; z-index:50; left:10px; right:10px; bottom:10px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:7px; border:1px solid var(--border); border-radius:17px; background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(16px); box-shadow:0 15px 45px rgba(15,23,42,.2); }
  .mobile-dock a, .mobile-dock button { min-height:48px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; border:0; border-radius:11px; color:var(--muted); background:transparent; text-decoration:none; font-size:9px; font-weight:750; }
  .mobile-dock .ui-icon { width:20px; height:20px; }
  .mobile-dock .is-active { color:var(--primary); background:var(--primary-soft); }
  .app-footer { padding-bottom:82px; }
}
@media (max-width: 760px) {
  .topbar { min-height:66px; }
  .global-search input { height:42px; font-size:13px; }
  .page-header { align-items:stretch; }
  .page-header-actions, .equipment-page-actions { display:grid; grid-template-columns:1fr 1fr; }
  .page-header-actions .button, .equipment-page-actions .button { width:100%; }
  .dashboard-hero { padding:22px 18px; border-radius:20px; }
  .dashboard-hero h1 { font-size:32px; }
  .hero-actions { grid-template-columns:1fr; }
  .metric-grid, .equipment-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-summary { grid-template-columns:1fr; }
  .catalog-grid { grid-template-columns:1fr; }
  .equipment-filter-grid { grid-template-columns:1fr; }
  .equipment-filter-grid .filter-search { grid-column:auto; }
  .equipment-filter-footer { align-items:stretch; flex-direction:column; }
  .equipment-filter-footer .filter-actions { display:grid; grid-template-columns:1fr 1fr; }
  .responsive-list .table-wrap { display:none; }
  .mobile-card-list { display:grid; gap:10px; padding:12px; }
  .mobile-data-card { display:grid; gap:10px; padding:15px; border:1px solid var(--border); border-radius:15px; background:var(--surface); text-decoration:none; }
  .mobile-data-card-head { display:flex; justify-content:space-between; gap:10px; }
  .mobile-data-card h3 { margin:0; font-size:15px; }
  .mobile-data-card p { margin:2px 0 0; color:var(--muted); font-size:12px; }
  .mobile-data-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .mobile-data-meta div { padding:9px; border-radius:10px; background:var(--surface-soft); }
  .mobile-data-meta small { display:block; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
  .mobile-data-meta strong { font-size:12px; }
  .form-sidebar { grid-template-columns:1fr; }
  .dynamic-fields, .form-grid.is-2, .form-grid.is-3, .schema-grid { grid-template-columns:1fr; }
  .form-section-body { padding:16px; }
  .progress-row { grid-template-columns:110px 1fr 38px; }
}
@media (max-width: 480px) {
  .content { padding-inline:11px; }
  .metric-grid, .equipment-metrics { grid-template-columns:1fr; }
  .page-header-actions, .equipment-page-actions { grid-template-columns:1fr; }
  .topbar-actions .user-dropdown { display:none; }
  .mobile-data-meta { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
