:root {
  color-scheme: dark;
  --bg: #081018;
  --panel: #101b26;
  --panel-2: #152536;
  --line: rgba(178, 199, 219, .16);
  --text: #edf5fb;
  --muted: #94a8ba;
  --accent: #58d6c9;
  --accent-2: #f1c76a;
  --danger: #ff8073;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #050a10, #0d1721 54%, #101a24);
  color: var(--text);
}
a { color: inherit; }
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(7, 15, 22, .82);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 30px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, var(--accent), #70a7ff);
  color: #031016; font-weight: 950;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
.nav { display: grid; gap: 8px; }
.nav a, .logout-form button, .button, button.primary {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.logout-form { margin-top: 18px; }
.logout-form button { width: 100%; }
.primary, button.primary { border: 0; background: linear-gradient(135deg, var(--accent), #7db7ff); color: #021018; }
.main { padding: 34px; width: min(1180px, 100%); }
.topbar, .auth-panel { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 24px; }
.auth-panel { min-height: calc(100vh - 68px); align-items: center; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; }
h1 { margin: 8px 0; font-size: clamp(34px, 5vw, 66px); line-height: .95; letter-spacing: 0; }
h2 { margin: 0 0 16px; font-size: 22px; }
.muted { color: var(--muted); line-height: 1.55; max-width: 680px; }
.form-card, .panel, .table-card, .empty-state, .form-grid {
  border: 1px solid var(--line);
  background: rgba(16, 27, 38, .86);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
.form-card { width: min(440px, 100%); padding: 22px; display: grid; gap: 14px; }
.login-overview-panel {
  align-items: flex-start;
}
.login-overview-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}
.login-overview-copy h1 {
  max-width: 760px;
}
.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
}
.login-feature-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  display: grid;
  gap: 9px;
}
.login-feature-grid strong {
  display: block;
  font-size: 16px;
}
.login-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
label { display: grid; gap: 8px; color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(178,199,219,.2);
  border-radius: 10px;
  background: rgba(3, 9, 14, .74);
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}
textarea { resize: vertical; }
.alert { padding: 12px; border: 1px solid rgba(255,128,115,.35); border-radius: 10px; color: #ffd8d4; background: rgba(255,128,115,.08); }
.text-link { color: var(--accent); font-weight: 850; text-decoration: none; }
.table-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.table-link-button:hover { color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metrics div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.metrics span { display: block; font-size: 34px; font-weight: 950; color: var(--accent); }
.metrics small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.table-card, .empty-state, .panel, .form-grid { padding: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: rgba(102, 216, 196, .06); }
.clickable-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--accent); font-weight: 850; }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.embedded-empty {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 36px 16px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide, .actions { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; }
.checkbox-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}
.checkbox-row input {
  width: auto;
}
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; margin-bottom: 18px; }
dl { display: grid; grid-template-columns: 160px 1fr; gap: 12px; margin: 0; }
dt { color: var(--accent-2); font-weight: 900; }
dd { margin: 0; color: var(--text); }
.compact-form { display: grid; gap: 12px; }
.timeline { display: grid; gap: 12px; }
.timeline article { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.timeline time { display: block; color: var(--accent); font-weight: 900; margin-bottom: 6px; }
.timeline p { margin: 7px 0; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 38, .86);
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 10px;
}
.module-card strong { font-size: 22px; }
.module-card span { color: var(--muted); line-height: 1.45; }
.module-card:hover { border-color: rgba(88, 214, 201, .55); background: rgba(21, 37, 54, .9); }
.module-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(88, 214, 201, .24);
  background: rgba(88, 214, 201, .1);
  color: var(--accent);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}
.module-card .module-icon { color: var(--accent); }
.home-systems-panel { margin-bottom: 18px; }
.home-system-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.home-system-icon-card {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  text-decoration: none;
}
.home-system-icon-card:hover {
  border-color: rgba(88, 214, 201, .55);
  background: rgba(21, 37, 54, .9);
}
.home-system-icon-card strong,
.home-system-icon-card small {
  display: block;
}
.home-system-icon-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}
.systems-showcase { display: grid; gap: 14px; }
.systems-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.system-card {
  min-width: 0;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(21, 37, 54, .92), rgba(12, 22, 32, .94)),
    rgba(16, 27, 38, .86);
  color: var(--text);
  text-decoration: none;
  display: grid;
  gap: 14px;
  align-content: start;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.system-card:hover {
  border-color: rgba(88, 214, 201, .55);
  background:
    linear-gradient(145deg, rgba(28, 48, 69, .94), rgba(12, 22, 32, .96)),
    rgba(21, 37, 54, .9);
  transform: translateY(-1px);
}
.system-showcase-top,
.system-card-tags,
.system-card-footer,
.system-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.system-showcase-top,
.system-card-footer {
  justify-content: space-between;
}
.system-icon-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(88, 214, 201, .24);
  background: rgba(88, 214, 201, .1);
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}
.system-kicker,
.system-card-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.system-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}
.system-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}
.system-card-tags {
  flex-wrap: wrap;
  align-self: end;
}
.system-card-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}
.system-detail-title {
  align-items: flex-start;
}
.system-detail-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  font-size: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 24px;
  font-weight: 900;
}
.section-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.section-action-button {
  min-height: 34px;
  min-width: 0;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13px;
}
.small-muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.button.secondary, button.secondary {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.button.danger, button.danger {
  background: rgba(255,128,115,.12);
  border-color: rgba(255,128,115,.45);
  color: #ffd4cf;
}
.hero-button-inline, .spares-filter-submit { width: auto; min-width: 110px; }
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.spares-filterbar { margin: 12px 0; }
.spares-filterbar input[type="search"] { flex: 1.5 1 280px; }
.spares-filterbar select { flex: 1 1 180px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 800;
}
.spares-toolbar,
.spares-toolbar-main,
.spares-modal-actions,
.spares-modal-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.spares-toolbar {
  justify-content: space-between;
  margin-top: 12px;
}
.table-wrap { overflow-x: auto; }
.spares-table-wrap { overflow-x: visible; }
.spares-table-wrap table {
  table-layout: fixed;
}
.spares-table-wrap table td,
.spares-table-wrap table th {
  padding: 10px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.spares-table-wrap table th:nth-child(1) { width: 34%; }
.spares-table-wrap table th:nth-child(2) { width: 22%; }
.spares-table-wrap table th:nth-child(3) { width: 13%; }
.spares-table-wrap table th:nth-child(4) { width: 12%; }
.spares-table-wrap table th:nth-child(5) { width: 19%; }
.low-stock td { background: rgba(241, 199, 106, .045); }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--line);
}
.status-badge.ok { background: rgba(34,197,94,.14); color: #bbf7d0; border-color: rgba(34,197,94,.24); }
.status-badge.warn { background: rgba(241,199,106,.14); color: #ffe8a3; border-color: rgba(241,199,106,.28); }
.status-badge.neutral { background: rgba(148,163,184,.12); color: #dbe8f4; border-color: rgba(148,163,184,.22); }
.service-bucket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.service-bucket-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 16px;
}
.service-bucket-card.warning {
  border-color: rgba(241,199,106,.35);
  background: rgba(241,199,106,.08);
}
.service-bucket-card span {
  display: block;
  margin-top: 6px;
  font-size: 32px;
  font-weight: 950;
}
.service-bucket-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.page-guide-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.page-guide-card.compact {
  display: grid;
  gap: 8px;
}
.page-guide-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.page-guide-title {
  font-size: 18px;
  font-weight: 900;
}
.page-guide-text,
.service-inline-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.service-summary-chips {
  margin-bottom: 12px;
}
.service-inline-tip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 12px;
  margin-bottom: 14px;
}
.service-table-wrap {
  overflow-x: auto;
}
.service-table-wrap table {
  min-width: 1080px;
}
.service-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(148,163,184,.12);
  color: #dbe8f4;
}
.service-status-pill.horizon-due-now,
.service-status-pill.horizon-needs-baseline,
.service-status-pill.horizon-needs-reading {
  background: rgba(241,199,106,.14);
  color: #ffe8a3;
  border-color: rgba(241,199,106,.28);
}
.service-status-pill.horizon-later {
  background: rgba(34,197,94,.14);
  color: #bbf7d0;
  border-color: rgba(34,197,94,.24);
}
.spares-state-cell { display: grid; gap: 6px; }
.spares-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.spares-row-action-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 8px;
}
.spares-row-action-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 950;
}
.inventory-row-retired td { opacity: .72; }
.task-title-button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.task-title-button strong {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(88, 214, 201, .35);
  text-underline-offset: 3px;
}
.task-title-button:hover strong,
.task-title-button:focus-visible strong {
  color: var(--accent-2);
  text-decoration-color: currentColor;
}
.task-title-button:focus-visible {
  outline: 2px solid rgba(88, 214, 201, .7);
  outline-offset: 4px;
  border-radius: 8px;
}
.inventory-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.inventory-modal.is-open { display: block; }
.inventory-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 18, .72);
  backdrop-filter: blur(6px);
}
.inventory-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  border: 1px solid rgba(178,199,219,.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,27,38,.98), rgba(8,16,24,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}
.inventory-modal-dialog-wide { width: min(960px, calc(100vw - 32px)); }
body.modal-open { overflow: hidden; }
.guided-service-form {
  padding: 18px;
  color: var(--text);
}
.maintenance-wizard-modal-card {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(88, 214, 201, .14), transparent 34%),
    linear-gradient(180deg, rgba(16,27,38,.98), rgba(7,14,21,.99));
}
.task-detail-modal-card {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(88, 214, 201, .12), transparent 34%),
    linear-gradient(180deg, rgba(16,27,38,.98), rgba(7,14,21,.99));
}
.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.task-detail-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.task-detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.task-detail-part-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.task-detail-history article {
  background: rgba(3, 9, 14, .28);
}
.task-detail-actions {
  margin-top: 16px;
}
.current-hours-modal-card {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(88, 214, 201, .12), transparent 34%),
    linear-gradient(180deg, rgba(16,27,38,.98), rgba(7,14,21,.99));
}
.current-hours-grid {
  display: grid;
  gap: 10px;
}
.current-hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.current-hours-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.current-hours-row small {
  color: var(--muted);
  font-size: 12px;
}
.settings-hours-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.wizard-title { margin: 0 0 6px; font-size: 24px; }
.form-stack { display: grid; gap: 14px; }
.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-split.three, .spares-modal-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow-card-head {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.workflow-chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.workflow-columns {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(320px, 1.1fr);
  gap: 18px;
}
.workflow-column {
  min-width: 0;
}
.workflow-form-column {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
}
.workflow-subhead {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.workflow-step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}
.workflow-step-list li {
  line-height: 1.55;
  margin-bottom: 10px;
}
.workflow-note-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
}
.workflow-note-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.workflow-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.workflow-note-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
}
.workflow-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.workflow-parts-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.workflow-part-list {
  display: grid;
  gap: 10px;
}
.workflow-part-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.workflow-part-row strong,
.workflow-part-row small {
  display: block;
}
.workflow-part-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.workflow-part-row input:disabled,
.workflow-form-grid input:disabled {
  opacity: 1;
  color: var(--muted);
  background: rgba(3, 9, 14, .45);
}
.workflow-empty-parts {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  line-height: 1.5;
}
.movement-ledger {
  display: grid;
  gap: 10px;
}
.movement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.032);
}
.movement-row strong,
.movement-row small {
  display: block;
}
.movement-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.movement-row p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.45;
}
.movement-qty {
  text-align: right;
}
.movement-qty strong {
  color: var(--accent);
  font-size: 20px;
}
.workflow-submit-row {
  justify-content: flex-end;
}
.equipment-detail-modal {
  padding: 22px;
}
.equipment-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  gap: 18px;
}
.equipment-modal-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.equipment-modal-dl {
  grid-template-columns: 140px 1fr;
  gap: 10px 12px;
}
.equipment-notes-block {
  margin-top: 16px;
  background: rgba(3, 9, 14, .24);
}
.equipment-modal-timeline {
  max-height: 430px;
  overflow: auto;
}
.equipment-modal-more {
  margin-top: 12px;
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .main { padding: 20px; }
  .topbar, .auth-panel, .detail-grid { display: grid; }
  .form-grid, .metrics, .module-grid, .systems-showcase-grid, .home-system-icon-grid, .login-feature-grid, .service-bucket-grid, .page-guide-rail { grid-template-columns: 1fr; }
  .section-head, .wizard-header { display: grid; }
  .form-split, .form-split.three, .spares-modal-three, .task-detail-grid, .workflow-columns, .workflow-form-grid, .workflow-part-row, .equipment-modal-grid, .movement-row, .current-hours-row, .settings-hours-grid { grid-template-columns: 1fr; }
  .equipment-modal-dl { grid-template-columns: 1fr; }
  .movement-qty { text-align: left; }
  .spares-toolbar, .spares-toolbar-main, .spares-modal-actions, .spares-modal-chip-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-button-inline, .spares-filter-submit { width: 100%; }
  .spares-row-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
  .spares-row-action-button {
    width: 28px;
    min-width: 28px;
  }
}
