:root {
  color-scheme: light;
  --navy-950: #071b2d;
  --navy-900: #0b2438;
  --navy-800: #12344d;
  --navy-700: #1d4d68;
  --blue-600: #126aa3;
  --blue-500: #1784c7;
  --blue-100: #dff1fb;
  --ink: #102a43;
  --muted: #627d98;
  --line: #d9e2ec;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --danger: #c73535;
  --danger-strong: #a62121;
  --danger-bg: #fff3f2;
  --warning: #bd6f14;
  --warning-bg: #fff8e8;
  --success: #167b62;
  --success-bg: #eaf8f3;
  --shadow: 0 18px 48px rgba(18, 52, 77, 0.12);
  font-family:
    "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.muted,
.page-description {
  color: var(--muted);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(430px, 0.95fr);
}

.login-brand {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(60px, 8vw, 120px);
  color: white;
  background:
    radial-gradient(circle at 90% 12%, rgba(23, 132, 199, 0.52), transparent 32%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.login-brand::before {
  width: 520px;
  height: 520px;
  right: -290px;
  bottom: -90px;
}

.login-brand::after {
  width: 330px;
  height: 330px;
  right: -180px;
  bottom: 5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: white;
  background: var(--blue-500);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-mark.large {
  width: 52px;
  height: 52px;
  margin-bottom: 64px;
  font-size: 16px;
}

.login-brand .eyebrow {
  color: #62c2f3;
}

.login-brand h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.login-lead {
  max-width: 560px;
  margin: 32px 0 0;
  color: #c8d9e8;
  font-size: 16px;
  line-height: 2;
}

.login-signal {
  height: 40px;
  margin-top: 70px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.login-signal span {
  width: 3px;
  background: #55b9e9;
  border-radius: 3px;
  animation: signal 2.5s ease-in-out infinite;
}

.login-signal span:nth-child(1) { height: 15px; animation-delay: -0.4s; }
.login-signal span:nth-child(2) { height: 32px; animation-delay: -0.2s; }
.login-signal span:nth-child(3) { height: 22px; }
.login-signal span:nth-child(4) { height: 38px; animation-delay: 0.2s; }
.login-signal span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes signal {
  50% { opacity: 0.35; transform: scaleY(0.55); }
}

.login-form-side {
  min-height: 100vh;
  padding: 48px;
  background: #f7f9fb;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 430px);
}

.login-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.login-card form {
  margin-top: 42px;
}

label {
  display: grid;
  gap: 8px;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid #bcccdc;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

input,
select {
  min-height: 44px;
  padding: 9px 12px;
}

textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(23, 132, 199, 0.13);
}

input:disabled {
  color: #9fb3c8;
  background: #f5f7fa;
}

.login-card label + label {
  margin-top: 19px;
}

.button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition: transform 0.14s, background 0.14s, border-color 0.14s;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.button.primary {
  color: white;
  background: var(--blue-600);
  box-shadow: 0 7px 20px rgba(18, 106, 163, 0.2);
}

.button.primary:hover {
  background: #0c5c90;
}

.button.secondary {
  color: var(--navy-800);
  background: white;
  border-color: var(--line);
}

.button.ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.button.danger {
  color: var(--danger);
  background: white;
  border-color: #efb6b2;
}

.button.wide {
  width: 100%;
  min-height: 48px;
  margin-top: 25px;
  justify-content: space-between;
  padding-inline: 18px;
}

.form-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-footnote {
  margin: 28px 0 0;
  color: #829ab1;
  font-size: 12px;
  text-align: center;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 18px 22px;
  color: #d8e5ef;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 0 9px 31px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand div:last-child {
  display: grid;
  line-height: 1.25;
}

.sidebar-brand strong {
  color: white;
  font-size: 15px;
}

.sidebar-brand span {
  color: #8aa6bb;
  font-size: 12px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.nav-button,
.logout-button {
  width: 100%;
  color: #9fb3c8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
}

.nav-button {
  min-height: 45px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.active {
  box-shadow: inset 3px 0 0 #49aee2;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #62c2f3;
  font-size: 15px;
  font-weight: 900;
}

.nav-count {
  min-width: 24px;
  height: 21px;
  margin-left: auto;
  padding-inline: 6px;
  color: white;
  background: var(--danger);
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.sidebar-status {
  margin-top: auto;
  padding: 15px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-status div {
  display: grid;
}

.sidebar-status strong {
  color: #d9eaf5;
  font-size: 12px;
}

.sidebar-status span {
  color: #7696ad;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #43d39e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(67, 211, 158, 0.12);
}

.logout-button {
  margin-top: 11px;
  padding: 10px 11px;
  font-size: 12px;
}

.logout-button:hover {
  color: white;
}

.main {
  min-width: 0;
  padding: 34px clamp(24px, 4vw, 58px) 60px;
}

.topbar {
  min-height: 88px;
  margin-bottom: 31px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.page-description {
  margin: 6px 0 0;
}

.topbar-actions {
  padding-top: 9px;
  display: flex;
  gap: 9px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 0.18s ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
}

.loading {
  position: fixed;
  z-index: 20;
  right: 28px;
  bottom: 28px;
  padding: 12px 16px;
  color: white;
  background: var(--navy-800);
  border-radius: 7px;
  box-shadow: var(--shadow);
  align-items: center;
  gap: 10px;
}

.loading span {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 13px;
}

.summary-card {
  min-height: 130px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500);
  border-radius: 7px;
  box-shadow: 0 7px 24px rgba(18, 52, 77, 0.04);
}

.summary-card.danger {
  border-top-color: var(--danger);
}

.summary-card.success {
  border-top-color: var(--success);
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-value {
  margin-top: 8px;
  color: var(--navy-900);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.1;
}

.summary-card.danger .summary-value {
  color: var(--danger);
}

.summary-meta {
  margin-top: 8px;
  color: #829ab1;
  font-size: 11px;
}

.section-heading {
  margin: 36px 0 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sync-label {
  color: var(--muted);
  font-size: 11px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 13px;
}

.risk-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.risk-card.at-risk {
  background: linear-gradient(145deg, white, var(--danger-bg));
  border-color: #e8aaa5;
  box-shadow: inset 4px 0 0 var(--danger);
}

.risk-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.risk-card h3 {
  margin: 0;
  font-size: 16px;
}

.fqdn {
  margin: 3px 0 0;
  color: var(--blue-600);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.risk-badge {
  padding: 4px 8px;
  color: var(--success);
  background: var(--success-bg);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.risk-badge.danger {
  color: var(--danger-strong);
  background: #fbd9d6;
}

.risk-products {
  min-height: 48px;
  margin: 17px 0;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}

.product-chip {
  padding: 3px 7px;
  color: #486581;
  background: #edf2f7;
  border-radius: 3px;
  font-size: 10px;
}

.risk-footer {
  padding-top: 12px;
  border-top: 1px solid #e8edf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.link-button {
  padding: 0;
  color: var(--blue-600);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.empty-state {
  min-height: 220px;
  padding: 42px 24px;
  background: white;
  border: 1px dashed #b9c9d7;
  border-radius: 7px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-symbol {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.empty-state h3 {
  margin: 0;
}

.empty-state p {
  max-width: 480px;
  margin: 5px 0 18px;
  color: var(--muted);
}

.section-toolbar {
  min-height: 62px;
  margin-bottom: 13px;
  padding: 11px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-toolbar.filters {
  justify-content: flex-start;
}

.search-box {
  width: min(100%, 430px);
  position: relative;
}

.search-box > span {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 50%;
  color: #829ab1;
  font-size: 20px;
  transform: translateY(-50%);
}

.search-box input {
  padding-left: 39px;
  border-color: transparent;
  background: #f3f6f8;
}

.select-label {
  grid-template-columns: auto 170px;
  align-items: center;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
}

.systems-list {
  display: grid;
  gap: 9px;
}

.system-row {
  padding: 17px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(170px, 1fr) minmax(220px, 1.7fr) auto;
  align-items: center;
  gap: 18px;
}

.system-row.risk {
  border-left: 4px solid var(--danger);
}

.system-row h3 {
  margin: 0;
  font-size: 14px;
}

.system-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.cell-label {
  display: block;
  margin-bottom: 3px;
  color: #829ab1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.system-products {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.row-actions {
  display: flex;
  gap: 5px;
}

.small-button {
  min-height: 34px;
  padding: 5px 10px;
  color: var(--blue-600);
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.small-button.delete {
  color: var(--danger);
}

.findings-list {
  display: grid;
  gap: 9px;
}

.finding-row {
  padding: 17px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 120px minmax(180px, 0.9fr) minmax(280px, 2fr) 150px 28px;
  align-items: center;
  gap: 15px;
  text-align: left;
}

button.finding-row {
  width: 100%;
  color: inherit;
  font: inherit;
}

.finding-row:hover {
  border-color: #9fb3c8;
  box-shadow: 0 6px 18px rgba(18, 52, 77, 0.06);
}

.status-pill,
.confidence-pill {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.status-UNASSESSED {
  color: var(--danger-strong);
  background: #fbd9d6;
}

.status-INVESTIGATING {
  color: #8a5512;
  background: #ffe9b8;
}

.status-IN_PROGRESS {
  color: #0d5c8c;
  background: #dbeffa;
}

.status-MITIGATED {
  color: var(--success);
  background: var(--success-bg);
}

.status-ACCEPTED_RISK,
.status-NOT_APPLICABLE {
  color: #52677b;
  background: #e7edf2;
}

.confidence-pill {
  color: var(--warning);
  background: var(--warning-bg);
}

.confidence-pill.likely {
  color: var(--danger);
  background: var(--danger-bg);
}

.finding-system strong,
.finding-title strong {
  display: block;
  font-size: 13px;
}

.finding-system span,
.finding-title span {
  color: var(--muted);
  font-size: 10px;
}

.finding-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-arrow {
  color: #829ab1;
  font-size: 18px;
}

.modal {
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  color: var(--ink);
  background: white;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 28px 90px rgba(7, 27, 45, 0.35);
}

.modal::backdrop {
  background: rgba(7, 27, 45, 0.64);
  backdrop-filter: blur(2px);
}

.modal > form {
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.modal-header,
.modal-footer {
  flex: 0 0 auto;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 21px;
}

.modal-footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
}

.modal-body {
  overflow-y: auto;
  padding: 3px 25px 24px;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #f1f5f8;
  border: 0;
  border-radius: 50%;
  font-size: 21px;
}

.form-section {
  padding: 25px 0;
  border-bottom: 1px solid #e8edf2;
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section-title {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-title > span {
  width: 31px;
  height: 31px;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}

.form-section-title h3,
.form-section-title p {
  margin: 0;
}

.form-section-title h3 {
  font-size: 15px;
}

.form-section-title p {
  color: var(--muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.required {
  margin-left: 4px;
  color: var(--danger);
  font-size: 9px;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-option {
  min-width: 0;
  padding: 10px;
  background: #f7f9fb;
  border: 1px solid transparent;
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.product-option:has(input[type="checkbox"]:checked) {
  background: #f0f8fc;
  border-color: #9acde8;
}

.product-option input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--blue-600);
}

.product-option-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(60px, auto) minmax(70px, 1fr);
  align-items: center;
  gap: 7px;
}

.product-option-name {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.product-option input[type="text"] {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 11px;
}

.finding-modal {
  width: min(760px, calc(100vw - 36px));
}

.finding-detail-head {
  margin: 18px 0;
  padding: 18px;
  background: #f7f9fb;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
}

.finding-detail-head h3 {
  margin: 7px 0 5px;
  font-size: 17px;
}

.finding-detail-head a {
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 700;
}

.detail-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-panel h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.detail-panel p {
  margin: 0;
}

.matched-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finding-fields {
  display: grid;
  gap: 15px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 18px;
  color: white;
  background: var(--navy-800);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: var(--danger-strong);
}

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-row { grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr) auto; }
  .system-row > div:nth-child(3) { display: none; }
  .finding-row { grid-template-columns: 105px minmax(150px, 0.8fr) minmax(250px, 2fr) 24px; }
  .finding-row > div:nth-child(4) { display: none; }
}

@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-side { padding: 32px 22px; }
  .app-shell { display: block; }
  .sidebar {
    position: sticky;
    z-index: 10;
    width: 100%;
    height: auto;
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .sidebar-brand { padding: 0 8px 0 0; }
  .sidebar-brand div:last-child,
  .sidebar-status,
  .logout-button { display: none; }
  .sidebar nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .nav-button {
    width: auto;
    min-height: 40px;
  }
  .nav-button.active { box-shadow: inset 0 -3px 0 #49aee2; }
  .nav-icon { display: none; }
  .main { padding: 24px 18px 50px; }
  .topbar { display: block; }
  .topbar-actions { margin-top: 18px; }
  .risk-grid { grid-template-columns: 1fr; }
  .finding-row {
    grid-template-columns: 98px minmax(150px, 0.8fr) minmax(190px, 1.6fr) 20px;
  }
}

@media (max-width: 620px) {
  .sidebar-brand { display: none; }
  .sidebar nav { justify-content: stretch; }
  .nav-button { flex: 1; justify-content: center; font-size: 11px; }
  .nav-count { display: none; }
  .topbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-card { min-height: 110px; padding: 15px; }
  .summary-value { font-size: 26px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .select-label { grid-template-columns: 1fr; }
  .system-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .system-row > div:nth-child(2) { display: none; }
  .finding-row {
    grid-template-columns: 95px minmax(0, 1fr) 20px;
  }
  .finding-row > div:nth-child(2) { display: none; }
  .finding-title strong { white-space: normal; }
  .form-grid.two,
  .detail-grid { grid-template-columns: 1fr; }
  .product-options { grid-template-columns: 1fr; }
  .modal-header,
  .modal-footer { padding: 17px; }
  .modal-body { padding-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
