:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --line: #d7e1e7;
  --ink: #172026;
  --muted: #60707a;
  --green: #1f7a4d;
  --green-strong: #126338;
  --amber: #a86c16;
  --red: #b3261e;
  --blue: #255e91;
  --shadow: 0 14px 32px rgba(25, 42, 55, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #eaf1f5, var(--bg)); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
button, input, textarea { font: inherit; }
select { font: inherit; }
body.access-active { background: linear-gradient(180deg, #2b5c8f 0%, #0d1f38 42%, #050b14 100%); color: #fff; }
[hidden] { display: none !important; }
.access-shell { width: min(620px, calc(100vw - 28px)); margin: 52px auto 24px; text-align: center; }
.brand h1 { color: #fff; font-size: 30px; letter-spacing: 2px; text-transform: uppercase; }
.brand p { color: rgba(255, 255, 255, 0.76); font-size: 12px; letter-spacing: 1px; margin-top: 6px; text-transform: uppercase; }
.lang-switch { display: inline-flex; gap: 2px; margin-top: 12px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(5, 11, 20, 0.28); }
.lang-switch button { min-width: 34px; min-height: 26px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.72); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.lang-switch button:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.lang-switch button.is-active { color: #113555; background: #fff; }
.access-card { margin-top: 34px; padding: 34px 30px; background: rgba(13, 27, 48, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44); }
.access-quickstart { display: grid; gap: 12px; margin-bottom: 24px; }
.access-quickstart button { width: 100%; margin-top: 0; min-height: 48px; }
.auth-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.tab-btn { min-height: 42px; margin: 0; border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 8px; padding: 0 22px; color: rgba(255, 255, 255, 0.68); background: transparent; font-size: 15px; font-weight: 900; transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.tab-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.tab-btn.active { color: #fff; border-color: #00aeca; background: #00aeca; box-shadow: 0 0 14px rgba(0, 174, 202, 0.34); }
.auth-section { text-align: center; }
.access-heading { margin-bottom: 14px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.access-note { color: rgba(255, 255, 255, 0.78); font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
.access-form { display: grid; gap: 12px; }
.access-form input, .access-form select { height: 44px; border-color: rgba(255, 255, 255, 0.2); background: rgba(5, 11, 20, 0.72); color: #fff; text-align: center; }
.access-form input::placeholder { color: rgba(255, 255, 255, 0.52); }
.access-form select { padding: 0 12px; }
.access-form button { margin: 0; color: #fff; background: #00aeca; border-color: #00aeca; }
.access-form button:hover { background: #0096b0; }
.btn-secondary { background: #23877c !important; border-color: #23877c !important; }
.btn-secondary:hover { background: #1c7168 !important; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, 0.82); font-size: 12px; line-height: 1.45; text-align: left; }
.check-row input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; }
.access-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.access-divider::before, .access-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255, 255, 255, 0.14); }
.success-message { margin-top: 12px; padding: 11px 12px; border: 1px solid rgba(42, 157, 143, 0.65); border-radius: 6px; background: rgba(42, 157, 143, 0.15); color: #d7fff7; font-size: 13px; line-height: 1.45; text-align: left; }
.error-message { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(179, 38, 30, 0.6); border-radius: 6px; background: rgba(179, 38, 30, 0.16); color: #ffd0cc; font-size: 13px; }
.shell { width: min(1540px, calc(100vw - 28px)); margin: 0 auto; padding: 20px 0 28px; }
.topbar, .section-title, .status, .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar { flex-wrap: wrap; }
.customer-brand { min-width: 120px; min-height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.customer-brand img { max-width: 120px; max-height: 52px; object-fit: contain; display: block; }
.customer-brand-meta { max-width: 180px; color: var(--muted); font-size: 12px; line-height: 1.35; text-align: right; }
.logout-btn { margin: 0; min-height: 34px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.lang-switch-topbar { margin: 0; border-color: var(--line); background: #fff; }
.lang-switch-topbar button { color: var(--muted); }
.lang-switch-topbar button:hover { color: var(--ink); background: #eef4fb; }
.lang-switch-topbar button.is-active { color: #fff; background: var(--blue); }
.topbar-tools { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.mobile-mode-bar { display: none; }
.keyword-bar { margin-bottom: 12px; border-color: #c8d9ea; background: linear-gradient(180deg, #ffffff, #f5faff); }
.keyword-search-box { margin-top: 10px; }
.app-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.app-menu-btn { min-height: 46px; margin: 0; color: var(--blue); background: #fff; border-color: #c9d9e8; font-weight: 900; font-size: 14px; }
.app-menu-btn:hover { background: #f6fbff; }
.app-menu-btn.is-active { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 18px rgba(37, 94, 145, 0.22); }
.app-menu-btn[data-tool-mode="shredder"] {
  color: #fff;
  background: #e10600;
  border-color: #b90500;
  box-shadow: 0 8px 18px rgba(225, 6, 0, 0.28);
}
.app-menu-btn[data-tool-mode="shredder"]:hover {
  color: #fff;
  background: #c70500;
  border-color: #9a0400;
}
.app-menu-btn[data-tool-mode="shredder"].is-active {
  color: #fff;
  background: #9a0400;
  border-color: #7a0300;
  box-shadow: 0 10px 22px rgba(154, 4, 0, 0.34);
}
.app-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; align-items: start; }
.app-workspace { display: grid; gap: 12px; min-width: 0; }
.panel-stack { display: grid; gap: 12px; }
.evaluate-panel .workflow-card { margin-top: 12px; }
.watch-panel-inline { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.watch-panel-inline .section-title h2 { font-size: 15px; }
.watch-panel-inline .watch-list { margin-top: 8px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 17px; }
.topbar p, .section-title span, label, .muted { color: var(--muted); }
.status, .panel, .warning { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.status { min-width: 190px; padding: 11px 12px; }
.status span { color: var(--muted); }
.warning { margin: 14px 0 12px; padding: 12px; }
.quick-start-panel { margin-bottom: 0; padding: 16px; border: 1px solid #c8d9ea; border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f3f8fc); }
.quick-start-intro { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.quick-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.quick-start-grid .wide { grid-column: 1 / -1; }
.quick-start-grid label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 800; }
.quick-start-grid input, .quick-start-grid textarea { border-color: #bdd2e0; background: #fff; }
.quick-start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.quick-start-actions button { margin-top: 0; }
.mode-chip { min-height: 42px; margin: 0; color: var(--blue); background: #fff; border-color: #c9d9e8; }
.mode-chip:hover { background: #f6fbff; }
.mode-chip.is-active { color: #fff; background: var(--blue); border-color: var(--blue); }
.mode-chip[data-tool-mode="shredder"] {
  color: #fff;
  background: #e10600;
  border-color: #b90500;
}
.mode-chip[data-tool-mode="shredder"]:hover,
.mode-chip[data-tool-mode="shredder"].is-active {
  color: #fff;
  background: #9a0400;
  border-color: #7a0300;
}
.business-note { margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(42, 157, 143, 0.45); border-radius: 8px; background: rgba(42, 157, 143, 0.1); color: var(--muted); font-size: 13px; line-height: 1.45; }
.bulk-panel { margin-bottom: 0; border-color: #c8d9ea; background: linear-gradient(180deg, #fbfdff, #f2f7fb); }
.bulk-intro { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bulk-upload-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; margin-top: 12px; }
.bulk-drop { min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 2px dashed #93b7d7; border-radius: 8px; padding: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.bulk-drop input { display: none; }
.bulk-drop span { font-weight: 900; }
.bulk-drop small { color: var(--muted); line-height: 1.35; }
.bulk-upload-row button { min-width: 160px; margin: 0; color: #fff; background: var(--green-strong); border-color: #0b4f2b; }
.bulk-summary { display: grid; gap: 12px; margin-top: 12px; }
.bulk-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bulk-summary-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.bulk-summary-card span { display: block; color: var(--muted); font-size: 12px; }
.bulk-summary-card strong { display: block; margin-top: 4px; font-size: 20px; }
.bulk-summary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bulk-summary-actions button { min-height: 38px; margin: 0; color: var(--blue); background: #fff; }
.bulk-summary-actions button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.list-assessment-notice { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(179, 38, 30, 0.28); border-radius: 10px; background: linear-gradient(180deg, rgba(179, 38, 30, 0.1), rgba(179, 38, 30, 0.04)); color: #7b1f1a; font-size: 14px; line-height: 1.45; }
.bulk-form-return-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(0, 82, 147, 0.22); border-radius: 10px; background: linear-gradient(180deg, rgba(0, 82, 147, 0.08), rgba(0, 82, 147, 0.03)); }
.bulk-form-return-bar button { margin: 0; min-height: 38px; }
.bulk-form-return-label { color: var(--muted); font-size: 14px; line-height: 1.4; }
.bulk-empty-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border: 1px dashed rgba(0, 82, 147, 0.28); border-radius: 12px; background: rgba(0, 82, 147, 0.04); }
.bulk-archive-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bulk-archive-headline { display: flex; align-items: center; gap: 10px; }
.bulk-archive-export { margin: 0; min-height: 36px; }
.bulk-mobile-archive-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk-summary-actions .bulk-primary-action { color: #fff; background: var(--blue); border-color: var(--blue); }
.result-bulk-return { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.result-bulk-return button { margin: 0; min-height: 38px; }
.bulk-import-maintenance-notice { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(179, 120, 0, 0.35); border-radius: 10px; background: linear-gradient(180deg, rgba(179, 120, 0, 0.14), rgba(179, 120, 0, 0.05)); color: #6b4a00; font-size: 14px; line-height: 1.45; font-weight: 600; }
.bulk-panel.is-maintenance .bulk-drop,
.bulk-panel.is-maintenance .bulk-upload-row,
.bulk-panel.is-maintenance #bulkImportStatus,
.bulk-panel.is-maintenance #bulkImportSummary,
.bulk-panel.is-maintenance #bulkImportWorkbench,
.bulk-panel.is-maintenance #bulkImportDetails,
.bulk-panel.is-maintenance #bulkErasureUploadBox,
.bulk-panel.is-maintenance .list-assessment-notice,
.bulk-panel.is-maintenance .bulk-import-maintenance-notice,
.bulk-panel.is-maintenance .section-title,
.bulk-panel.is-maintenance .bulk-intro {
  display: none !important;
}
.list-maintenance-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 82, 147, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.12));
  backdrop-filter: blur(2px);
}
.list-maintenance-screen[hidden] { display: none !important; }
.bulk-panel { position: relative; min-height: 420px; }
.list-maintenance-card {
  width: min(560px, 100%);
  padding: 28px 30px;
  border: 1px solid rgba(0, 82, 147, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  text-align: center;
}
.list-maintenance-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 82, 147, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.list-maintenance-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}
.list-maintenance-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
}
.list-maintenance-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bulk-panel.is-maintenance .bulk-drop { opacity: 0.55; pointer-events: none; }
.bulk-provenance { display: block; margin-top: 4px; color: #4f6478; font-size: 12px; line-height: 1.35; }
.list-assessment-dashboard { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid #d7e3ef; border-radius: 10px; background: #fff; }
.list-assessment-dashboard h3 { margin: 0; font-size: 15px; color: var(--blue); }
.list-assessment-dashboard-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.list-assessment-dashboard-grid div { display: grid; gap: 2px; }
.list-assessment-dashboard-grid span { font-size: 12px; color: var(--muted); }
.list-assessment-dashboard-grid strong { font-size: 18px; color: #1f2933; }
.list-assessment-dashboard-grid .dashboard-warn strong { color: #8a5a00; }
.list-assessment-dashboard-grid .dashboard-muted strong { color: #6b7280; }
.list-assessment-result { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #eef4fb; color: #234; font-weight: 600; }
.list-assessment-phase { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.preliminary-value::after { content: " · vorläufig"; color: #8a5a00; font-size: 12px; font-weight: 600; }
.list-assessment-banner { margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(179, 38, 30, 0.28); border-radius: 10px; background: linear-gradient(180deg, rgba(179, 38, 30, 0.1), rgba(179, 38, 30, 0.04)); color: #7b1f1a; font-size: 14px; line-height: 1.45; }
.bulk-status-pill { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #eef4fb; color: #234; font-size: 12px; }
.bulk-portfolio-summary { display: grid; gap: 12px; padding: 12px; border: 1px solid #dbe6ee; border-radius: 8px; background: #fff; }
.bulk-portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bulk-portfolio-meta { color: var(--ink); font-size: 13px; line-height: 1.5; }
.bulk-external-compare { display: grid; gap: 12px; padding: 12px; border: 1px solid #dbe6ee; border-radius: 8px; background: #f9fbfd; }
.bulk-external-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bulk-external-head strong { color: var(--ink); font-size: 14px; }
.bulk-external-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.bulk-external-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bulk-external-inputs label { min-width: 0; font-size: 13px; }
.bulk-external-inputs input { height: 40px; }
.bulk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-pills span, .bulk-pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; color: var(--blue); font-weight: 800; font-size: 12px; }
.bulk-pills-interactive .bulk-pill { cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.bulk-pills-interactive .bulk-pill:hover:not(:disabled) { border-color: var(--blue); background: #eef4fb; }
.bulk-pills-interactive .bulk-pill.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.bulk-pills-interactive .bulk-pill:disabled { opacity: 0.45; cursor: default; }
.bulk-detail-head-link { border: 0; background: transparent; padding: 0; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; text-align: left; }
.bulk-detail-head-link:hover { color: var(--blue); }
.bulk-detail-item.is-clickable { width: 100%; text-align: left; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.bulk-detail-item.is-clickable:hover { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(36, 99, 154, 0.12); }
.bulk-meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
.bulk-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bulk-detail-box { border: 1px solid #dbe6ee; border-radius: 8px; background: #f9fbfd; padding: 12px; display: grid; gap: 10px; }
.bulk-detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bulk-detail-head strong { color: var(--ink); font-size: 14px; }
.bulk-detail-head span { color: var(--muted); font-size: 12px; font-weight: 800; }
.bulk-detail-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; padding-right: 4px; }
.bulk-detail-item { border: 1px solid #e1eaf1; border-radius: 8px; background: #fff; padding: 10px 12px; display: grid; gap: 4px; color: var(--ink); font-size: 13px; line-height: 1.35; width: 100%; text-align: left; cursor: pointer; }
.bulk-detail-item:hover { border-color: var(--blue); background: #f7fbff; }
.bulk-detail-item.bulk-merge-focus { border-color: #d4a017; background: #fff8df; box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2); }
.bulk-detail-item strong { color: var(--ink); }
.bulk-detail-item small { color: var(--muted); }
.bulk-filters { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-top: 0; padding: 12px; border: 1px solid #dbe6ee; border-radius: 8px; background: #fff; }
.bulk-filters .bulk-filter-duplicates { grid-column: 1 / -1; }
.bulk-filters-toolbar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; margin-top: 2px; border-top: 1px solid #e8eef3; flex-wrap: wrap; }
.bulk-filters-toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.bulk-column-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #dbe6ee;
  border-radius: 999px;
  background: #fff;
}
.bulk-column-toggle-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bulk-column-toggle-item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.bulk-keyboard-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  color: #4f6478;
  font-size: 12px;
  font-weight: 700;
}
.bulk-keyboard-hint span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.bulk-keyboard-hint kbd {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid #cfd9e2;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.bulk-import-workbench { display: grid; gap: 0; margin-top: 12px; border: 1px solid #dbe6ee; border-radius: 10px; overflow: hidden; background: #fff; }
.bulk-workspace-scroll {
  max-height: min(78vh, 960px);
  overflow: auto;
  background: #fff;
}
.bulk-import-workbench .bulk-filters { margin-top: 0; border: 0; border-bottom: 1px solid #dbe6ee; border-radius: 0; }
.bulk-import-workbench .bulk-results { margin-top: 0; border: 0; border-radius: 0; }
.bulk-summary-context {
  margin-top: 8px;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  background: #f9fbfd;
  padding: 8px 12px;
}
.bulk-summary-context summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--blue);
}
.bulk-summary-context .bulk-meta,
.bulk-summary-context .bulk-user-guide {
  margin-top: 8px;
}
.bulk-column-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px dashed #e8eef3;
}
.bulk-results-sticky-dock {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  box-shadow: 0 2px 0 #dbe6ee;
}
.bulk-results-sticky-dock .bulk-results-title {
  padding-top: 10px;
}
.bulk-results-sticky-dock .bulk-batch-toolbar {
  border-bottom: 1px solid var(--line);
}
.bulk-results-sticky-dock .bulk-keyboard-hint {
  border-bottom: 1px solid var(--line);
}
.bulk-results-body .bulk-result-bundle:first-of-type .bulk-result-row { border-top: 1px solid var(--line); }
.bulk-results-head { display: grid; grid-template-columns: var(--bulk-grid-cols, minmax(220px, 1.8fr) minmax(52px, 0.45fr) minmax(88px, 0.75fr) minmax(84px, 0.7fr) minmax(120px, 0.8fr) minmax(110px, 0.75fr) minmax(150px, 1fr)); gap: 10px; padding: 10px 12px; background: #edf4fa; color: #2b475d; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.bulk-result-row { display: grid; grid-template-columns: var(--bulk-grid-cols, minmax(220px, 1.8fr) minmax(52px, 0.45fr) minmax(88px, 0.75fr) minmax(84px, 0.7fr) minmax(120px, 0.8fr) minmax(110px, 0.75fr) minmax(150px, 1fr)); gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: center; }
.bulk-result-bundle { border-top: 0; }
.bulk-result-bundle.is-keyboard-focused .bulk-result-row {
  background: linear-gradient(90deg, rgba(36, 99, 154, 0.16), rgba(36, 99, 154, 0.05) 68%);
  box-shadow: inset 4px 0 0 var(--blue);
}
.bulk-result-bundle.is-keyboard-focused {
  outline: none;
  position: relative;
  z-index: 1;
}
.bulk-result-bundle.is-keyboard-focused .bulk-select-row input[type="checkbox"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(36, 99, 154, 0.16);
}
.bulk-col-device { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.bulk-result-row > div:first-child,
.bulk-col-device { display: flex; gap: 8px; align-items: flex-start; }
.bulk-select-row { display: inline-flex; align-items: flex-start; margin: 2px 0 0; }
.bulk-select-row input { margin-top: 3px; }
.bulk-result-main { min-width: 0; flex: 1; }
.bulk-batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fbff;
}
.bulk-batch-toolbar.has-selection {
  background: linear-gradient(180deg, #eef6ff, #f7fbff);
  border-bottom-color: #b8d4ea;
}
.bulk-batch-toolbar button { min-height: 34px; margin: 0; }
.bulk-batch-select-all { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.bulk-result-titleline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}
.bulk-model-name {
  display: inline;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}
.bulk-serial {
  display: inline-block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-family: Consolas, "Courier New", monospace;
}
.bulk-serial.missing {
  color: #a1261d;
  font-family: inherit;
  font-weight: 800;
}
.bulk-result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.bulk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #dbe6ee;
  border-radius: 999px;
  background: #fff;
  color: #4f6478;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.bulk-chip-spec {
  border-color: #7eb8da;
  background: #f2f9fd;
  color: #1f5f82;
  text-decoration: none;
}
.bulk-chip-spec:hover,
.bulk-chip-spec:focus-visible {
  background: #dff1fb;
  color: #124f73;
}
.bulk-chip-merge {
  border-color: #d4a017;
  background: #fff8df;
  color: #7a5d00;
  cursor: pointer;
}
.bulk-chip-wipe {
  border-color: rgba(22, 128, 57, 0.28);
  background: #edf8f0;
  color: #1b6b34;
  cursor: pointer;
}
.bulk-chip-review {
  border-color: rgba(180, 120, 0, 0.28);
  background: #fff8e8;
  color: #8a5a00;
}
.bulk-erasure-upload-box {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(24, 52, 92, 0.12);
  border-radius: 12px;
  background: #f8fbff;
}
.bulk-erasure-upload-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 10px;
}
.bulk-erasure-upload-head span {
  color: #5b6b82;
  font-size: 0.92rem;
}
.bulk-erasure-help {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #415569;
}
.bulk-erasure-help code {
  font-size: 11px;
  background: rgba(17, 34, 53, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
.bulk-erasure-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.bulk-erasure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 12px;
}
.bulk-erasure-hint {
  color: #5b6b82;
  font-size: 0.92rem;
}
.bulk-erasure-drop {
  flex: 1 1 260px;
}
.shredder-panel {
  max-width: 720px;
}
.shredder-intro {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.5;
}
.shredder-steps {
  margin: 0 0 18px 1.1rem;
  color: #5b6b82;
  line-height: 1.55;
}
.shredder-steps li + li {
  margin-top: 6px;
}
.shredder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.shredder-count-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted, #555);
}
.shredder-count-label input {
  width: 4.2rem;
  padding: 6px 8px;
  border: 1px solid rgba(26, 77, 46, 0.25);
  border-radius: 6px;
}
.bulk-secondary-action {
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(26, 77, 46, 0.25);
  font-weight: 700;
}
.bulk-secondary-action:hover {
  background: #f0f7f3;
}
  border-color: rgba(179, 38, 30, 0.28);
  background: #fff4f3;
  color: #a1261d;
}
.bulk-chip-muted {
  background: #f3f6f9;
}
.bulk-chip-status {
  background: #eef4fb;
  color: #2b475d;
}
.bulk-chip-icon-eye {
  display: inline-block;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  position: relative;
}
.bulk-chip-icon-eye::after {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.bulk-trust-compact {
  justify-content: center;
}
.bulk-hint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bulk-hint-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.bulk-hint-tag-warn {
  border: 1px solid rgba(168, 108, 22, 0.28);
  background: #fff8ef;
  color: #8a6b00;
}
.bulk-hint-tag-danger {
  border: 1px solid rgba(179, 38, 30, 0.28);
  background: #fff4f3;
  color: #a1261d;
}
.bulk-hint-tag-eu-af {
  border: 1px solid rgba(26, 79, 138, 0.28);
  background: #eef4ff;
  color: #1a4f8a;
}
.bulk-eu-af-context {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #4b6478;
}
.bulk-eu-prufung-btn {
  border-color: #1a4f8a;
  background: linear-gradient(180deg, #eef4ff 0%, #dbe8fb 100%);
  color: #123f72;
  box-shadow: 0 0 0 1px rgba(26, 79, 138, 0.12);
}
.bulk-eu-checklist-panel .bulk-eu-af-panel-hint,
.bulk-eu-checklist-panel .bulk-eu-af-panel-context,
.bulk-eu-af-merge-note {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #4b6478;
}
.bulk-eu-af-merge-box {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(26, 79, 138, 0.18);
  border-radius: 10px;
  background: #f7fbff;
}
.bulk-hint-ok {
  color: #9aa8b5;
  font-weight: 700;
}
.bulk-market-wrap {
  display: grid;
  gap: 4px;
}
.bulk-price-outlier {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.bulk-price-outlier-high {
  border: 1px solid rgba(179, 38, 30, 0.34);
  background: #fff0ef;
  color: #a1261d;
}
.bulk-price-outlier-medium {
  border: 1px solid rgba(168, 108, 22, 0.28);
  background: #fff8ef;
  color: #8a6b00;
}
.signal-compact {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.bulk-quick-approve {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  margin: 0;
  border: 1px solid #1f8a4c;
  border-radius: 8px;
  background: #e9f8ef;
  color: #0f6a39;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.bulk-quick-approve:hover {
  background: #1f8a4c;
  color: #fff;
}
.bulk-sticky-batch {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 120;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: min(960px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #b8d4ea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 36px rgba(20, 40, 60, 0.18);
}
.bulk-sticky-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 4px;
}
.bulk-sticky-batch button { min-height: 36px; margin: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bulk-inline-panel-wrap { padding: 0 12px 12px 44px; background: #fbfdff; }
.bulk-inline-panel-wrap.is-checklist {
  padding-left: 12px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}
.bulk-result-bundle.is-panel-open {
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}
.bulk-primary-action.bulk-collapse-action {
  color: #4b6478 !important;
  background: #f1f5f9 !important;
  border-color: #cfd9e2 !important;
  box-shadow: none;
  font-weight: 700;
}
.bulk-primary-action.bulk-collapse-action:hover {
  color: #2f4558 !important;
  background: #e8eef4 !important;
  border-color: #b8c7d4 !important;
}
.bulk-inline-panel {
  border: 1px solid #dbe6ee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.bulk-inline-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.bulk-inline-head strong { color: var(--ink); }
.bulk-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-checklist-panel .bulk-checklist-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.bulk-checklist-panel .bulk-checklist-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.bulk-checklist-panel label.bulk-checklist-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}
.bulk-checklist-panel label.bulk-checklist-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}
.bulk-checklist-panel label.bulk-checklist-row span {
  flex: 0 1 auto;
}
.bulk-checklist-panel .bulk-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
}
.bulk-checklist-panel .bulk-inline-actions button {
  margin: 0;
}
.bulk-checklist-ready {
  margin: 0;
  padding: 0;
  color: #1f6a39;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.bulk-checklist-ready kbd {
  display: inline-flex;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid #b8d8c4;
  border-radius: 5px;
  background: #eef8f1;
  font-size: 11px;
}
.bulk-checklist-panel.is-complete {
  border-color: rgba(31, 138, 76, 0.35);
  background: linear-gradient(180deg, rgba(31, 138, 76, 0.05), #fff 42%);
}
.bulk-merge-audit { color: var(--muted); display: block; }
.bulk-workshop-tip {
  margin-top: 8px;
  border: 1px solid #c8d9ea;
  border-radius: 10px;
  background: linear-gradient(180deg, #f3f9ff, #fff 55%);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.bulk-workshop-tip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 14px;
}
.bulk-workshop-tip p {
  margin: 0 0 8px;
}
.bulk-workshop-tip p:last-child {
  margin-bottom: 0;
}
.bulk-workshop-tip kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 1px 5px;
  border: 1px solid #c8d9ea;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.bulk-user-guide {
  margin-top: 8px;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  background: #f9fbfd;
  padding: 10px 12px;
}
.bulk-user-guide summary { cursor: pointer; font-weight: 800; color: var(--blue); }
.bulk-user-guide ol { margin: 10px 0 0 18px; color: var(--ink); line-height: 1.5; }
.bulk-onboarding-reset { margin-top: 10px; }
.bulk-onboarding-banner {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 99, 168, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, #eef5fc 0%, #f8fbff 100%);
  box-shadow: 0 1px 0 rgba(36, 99, 168, 0.06);
  outline: none;
}
.bulk-onboarding-banner:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 99, 168, 0.18);
}
.bulk-onboarding-banner.is-quest-complete {
  animation: bulkQuestComplete 0.9s ease forwards;
}
@keyframes bulkQuestComplete {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 138, 76, 0);
    background: linear-gradient(180deg, #eef5fc 0%, #f8fbff 100%);
    border-color: rgba(36, 99, 168, 0.28);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.28);
    background: linear-gradient(180deg, #e8f8ee 0%, #f4fff7 100%);
    border-color: rgba(31, 138, 76, 0.45);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
    box-shadow: 0 0 0 0 rgba(31, 138, 76, 0);
  }
}
.bulk-onboarding-esc-hint {
  color: #6b7f92;
  font-size: 11px;
  align-self: center;
}
.bulk-onboarding-esc-hint kbd {
  display: inline-flex;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid #cfd9e2;
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
}
.bulk-onboarding-head {
  display: grid;
  gap: 4px;
}
.bulk-onboarding-head strong {
  color: #123f72;
  font-size: 15px;
}
.bulk-onboarding-sub {
  color: #4b6478;
  font-size: 12px;
}
.bulk-onboarding-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.5;
  font-size: 13px;
}
.bulk-onboarding-steps kbd {
  display: inline-flex;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid #b8cfe6;
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
}
.bulk-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bulk-checklist-panel label.bulk-checklist-row {
  justify-content: flex-start;
}
.bulk-checklist-shortcut {
  margin-left: auto;
  display: inline-flex;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid #cfd9e2;
  border-radius: 5px;
  background: #f4f7fa;
  font-size: 11px;
  color: #4b6478;
}
.bulk-trust-label { font-size: 11px; white-space: nowrap; }
.bulk-result-row strong { display: block; color: var(--ink); }
.bulk-result-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.bulk-result-row .signal { min-height: 34px; padding: 6px 12px; font-size: 12px; justify-self: start; }
.bulk-market { font-weight: 900; color: var(--ink); }
.bulk-ref-market { color: #5a4a12; }
.bulk-ref-market small { font-weight: 700; color: #7a6518; }
.restwert-reference-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e8d27a;
  border-radius: 10px;
  background: #fff9df;
  color: #5a4a12;
}
.restwert-reference-box p { margin: 6px 0 4px; font-weight: 800; }
.restwert-reference-box small { color: #7a6518; }
.bulk-warnings { color: var(--muted); font-size: 13px; line-height: 1.4; }
.bulk-result-row button { min-height: 34px; margin: 0; color: var(--blue); white-space: nowrap; }
.bulk-action-group { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; align-items: center; }
.bulk-action-group button { min-height: 34px; margin: 0; }
.bulk-primary-action { color: #fff !important; background: var(--blue); border-color: var(--blue); font-weight: 800; }
.bulk-more-actions { position: relative; }
.bulk-more-actions summary {
  list-style: none;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
.bulk-more-actions summary::-webkit-details-marker { display: none; }
.bulk-more-actions-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 40, 60, 0.08);
}
.bulk-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}
.bulk-trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.bulk-trust-high .bulk-trust-dot { background: #1f8a4c; }
.bulk-trust-medium .bulk-trust-dot { background: #d4a017; }
.bulk-trust-low .bulk-trust-dot { background: #c0392b; }
.bulk-trust-high .bulk-trust-label { color: #1f8a4c; }
.bulk-trust-medium .bulk-trust-label { color: #8a6b00; }
.bulk-trust-low .bulk-trust-label { color: #a1261d; }
.bulk-duplicate-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid #d4a017;
  border-radius: 999px;
  background: #fff8df;
  color: #7a5d00;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.bulk-pipeline-pill {
  display: inline-flex;
  margin-top: 6px;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #2b475d;
  font-size: 11px;
  font-weight: 800;
}
.bulk-audit-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.bulk-audit-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e1eaf1;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}
.bulk-audit-row small { display: block; color: var(--muted); margin-top: 4px; }
.bulk-archive-box { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border-top: 1px solid var(--line); background: #f9fbfd; }
.bulk-archive-list { display: grid; gap: 0; border: 1px solid #e3ebf2; border-radius: 8px; overflow: hidden; background: #fff; }
.bulk-archive-row { display: grid; grid-template-columns: minmax(220px, 1.8fr) minmax(88px, 0.8fr) minmax(84px, 0.7fr) minmax(120px, 0.8fr) minmax(220px, 1.5fr) auto; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: center; background: #f7fbff; }
.bulk-archive-row:first-child { border-top: 0; }
.bulk-empty { padding: 12px; color: var(--muted); font-size: 13px; line-height: 1.45; border-top: 1px solid var(--line); background: #fbfdff; }
.support-panel { margin-top: 14px; padding: 12px; border: 1px solid rgba(212, 122, 0, 0.32); border-radius: 8px; background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 239, 218, 0.88)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84); }
.support-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.support-head strong { color: #7a4200; font-size: 14px; }
.support-head span { color: #a85a00; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.4px; }
.support-panel p { margin-top: 8px; color: #7a5a39; font-size: 13px; line-height: 1.45; }
.support-button { width: 100%; min-height: 48px; margin-top: 10px; color: #fff; background: #d47a00; border-color: #b56600; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14); }
.support-button:hover { background: #bf6d00; }
.support-button:disabled { background: #dfb378; border-color: #dfb378; cursor: progress; }
.support-status { margin-top: 10px; padding: 10px 11px; border: 1px solid rgba(212, 122, 0, 0.22); border-radius: 8px; background: rgba(255, 255, 255, 0.76); color: #7a5a39; font-size: 13px; line-height: 1.45; }
.support-status.is-ok { border-color: rgba(31, 122, 77, 0.28); background: rgba(31, 122, 77, 0.08); color: #185336; font-weight: 700; }
.support-status.is-error { border-color: rgba(179, 38, 30, 0.32); background: rgba(179, 38, 30, 0.08); color: #8e221d; font-weight: 700; }
.support-status.is-note { border-color: rgba(37, 94, 145, 0.26); background: rgba(37, 94, 145, 0.06); color: #204b73; font-weight: 700; }
.admin-monitor { margin-top: 14px; padding: 12px; border: 1px solid rgba(37, 94, 145, 0.24); border-radius: 8px; background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 245, 253, 0.92)); }
.admin-monitor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-monitor-head strong { color: #1d4f7e; font-size: 14px; }
.admin-monitor-head button { min-height: 32px; margin: 0; color: #fff; background: var(--blue); border-color: var(--blue); }
.admin-monitor-sep { height: 1px; margin: 12px 0; background: #d8e5ef; }
.admin-activity-status { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-activity-list { display: grid; gap: 8px; margin-top: 10px; }
.admin-activity-item { border: 1px solid #d8e5ef; border-radius: 8px; padding: 9px 10px; background: #fff; }
.admin-activity-item strong { display: block; color: var(--ink); font-size: 13px; }
.admin-activity-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.quota-card { margin-top: 14px; padding: 12px; border: 1px solid #b9d4e9; border-radius: 8px; background: linear-gradient(180deg, #f8fcff, #eef7fd); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.quota-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #d8e7f1; }
.quota-head span { color: var(--ink); font-size: 13px; font-weight: 900; line-height: 1.25; }
.quota-head strong { color: var(--blue); font-size: 12px; text-align: right; text-transform: uppercase; letter-spacing: 0.4px; }
.quota-label { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.quota-bar { height: 13px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #dbe6ed; border: 1px solid #c9d8e0; }
.quota-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f7a4d, #2da86c); transition: width 220ms ease; }
.quota-count { margin-top: 8px; color: var(--ink); font-size: 14px; font-weight: 900; }
.quota-foot { display: grid; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.api-limit { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfd; color: var(--muted); font-size: 13px; font-weight: 700; }
.api-limit.warning-limit { border-color: var(--amber); color: var(--amber); background: #fff8ed; }
.grid { display: grid; grid-template-columns: 280px minmax(420px, 1.4fr) minmax(360px, 1fr); gap: 12px; align-items: start; }
.panel { padding: 14px; }
.wide { grid-column: 1 / -1; }
.watch-list { display: grid; gap: 8px; margin-top: 12px; }
.watch-item, .metric { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
input, select { height: 42px; padding: 0 10px; }
textarea { min-height: 68px; padding: 9px 10px; resize: vertical; }
button { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; font-weight: 800; padding: 0 12px; margin-top: 8px; }
button:disabled { cursor: progress; opacity: 0.65; }
.primary { color: #fff; background: var(--green-strong); border-color: #0b4f2b; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.primary:hover { background: #0f5a32; }
.small-action { justify-self: start; min-height: 32px; margin-top: 10px; color: var(--blue); }
.save-case { color: #fff; background: var(--blue); border-color: var(--blue); margin-left: 6px; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.full-workflow { grid-column: 1 / -1; }
.workflow-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f8fbfd; }
.scanner-card { background: linear-gradient(180deg, #f5fbff, #eef8fb); border-color: #b9dce8; }
.scanner-media-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.operation-latency, .operation-latency-inline { color: var(--muted); font-size: 12px; font-weight: 700; }
.operation-latency { display: inline-block; margin-left: 8px; }
.operation-latency-inline { margin: 0 0 8px; }
.workflow-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.workflow-title strong { font-size: 15px; }
.workflow-title span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.search-box, .direct-import { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
.search-box label { min-width: 0; }
.search-box button, .direct-import button { min-width: 120px; margin: 0; color: #fff; background: var(--blue); border-color: var(--blue); }
.search-box button { white-space: nowrap; align-self: end; }
.search-box span, .direct-import span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.reverse-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; align-items: end; }
.reverse-box button { width: min(260px, 100%); margin: 0; color: #fff; background: var(--green-strong); border-color: #0b4f2b; }
.reverse-box span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.azure-box { display: grid; gap: 10px; align-items: end; }
.azure-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.azure-actions button { min-width: 160px; margin: 0; }
.azure-actions button.secondary { color: var(--blue); background: #fff; border-color: var(--line); }
.azure-box span { color: var(--muted); font-size: 13px; }
.azure-output { border: 1px solid #dbe6ee; border-radius: 8px; background: #fff; padding: 12px; color: var(--ink); white-space: pre-wrap; line-height: 1.5; }
.scanner-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
.scanner-preview { position: relative; min-height: 196px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0f1720; }
.scanner-preview video { width: 100%; height: 100%; min-height: 196px; display: block; object-fit: cover; }
.camera-guide-banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); width: min(92%, 520px); padding: 10px 14px; border-radius: 999px; background: rgba(15, 23, 32, 0.62); color: #fff; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.35; backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); z-index: 3; }
.camera-guide-banner.is-warning { background: rgba(168, 108, 22, 0.82); }
.camera-guide-banner.is-danger { background: rgba(179, 38, 30, 0.82); }
.camera-guide-banner.is-success { background: rgba(21, 128, 61, 0.84); }
.scanner-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; color: rgba(255, 255, 255, 0.88); text-align: center; font-weight: 700; line-height: 1.45; background: linear-gradient(180deg, rgba(15, 23, 32, 0.88), rgba(15, 23, 32, 0.68)); }
.scanner-preview.active .scanner-empty { display: none; }
.scanner-actions { display: grid; gap: 8px; align-content: start; }
.camera-drop { min-height: 118px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 2px dashed #7cb8c8; border-radius: 8px; padding: 14px; background: rgba(255, 255, 255, 0.72); color: var(--ink); cursor: pointer; text-align: center; }
.camera-drop input { display: none; }
.camera-drop span { font-weight: 900; }
.camera-drop small { color: var(--muted); line-height: 1.35; }
.scanner-serial-input { grid-column: 1 / -1; }
.scanner-serial-input input { margin-top: 2px; }
.scanner-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scanner-upload-actions #scanButton { min-height: 50px; min-width: 180px; margin: 0; color: #fff; background: var(--green-strong); border-color: #0b4f2b; }
.scanner-upload-actions #scanClearButton { min-height: 50px; margin: 0; color: var(--red); background: #fff; border-color: var(--red); }
.scan-preview-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.scan-preview-item { position: relative; min-height: 96px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.scan-preview-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.scan-preview-item button { position: absolute; top: 5px; right: 5px; min-width: 0; min-height: 26px; margin: 0; padding: 0 7px; color: #fff; background: rgba(179, 38, 30, 0.9); border-color: rgba(179, 38, 30, 0.9); }
.scan-preview-item span { position: absolute; left: 5px; bottom: 5px; border-radius: 999px; padding: 3px 7px; color: #fff; background: rgba(23, 32, 38, 0.76); font-size: 12px; font-weight: 900; }
.scanner-box button { align-self: center; min-width: 142px; margin: 0; color: #fff; background: var(--green-strong); border-color: #0b4f2b; }
.scanner-box #torchButton[data-torch='on'] { background: #d47a00; border-color: #d47a00; }
.scanner-box > span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.compact-label input { text-align: center; }
.keyword-results { display: grid; gap: 8px; margin: 12px 0 4px; }
.keyword-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #f8fbfd; }
.keyword-thumb { width: 72px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.keyword-title { font-weight: 900; }
.keyword-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-size: 13px; margin-top: 5px; }
.keyword-meta span { white-space: nowrap; }
.keyword-actions { display: flex; flex-direction: column; gap: 6px; }
.keyword-actions button { min-height: 32px; margin: 0; white-space: nowrap; color: var(--blue); }
.keyword-actions .detail-load { color: #fff; background: var(--blue); border-color: var(--blue); }
.fetch-ok { color: var(--green); font-weight: 800; }
.fetch-error { color: var(--red); font-weight: 800; }
.item-link { display: inline-block; margin-top: 8px; color: var(--blue); font-weight: 800; text-decoration: none; }
.item-link:hover { text-decoration: underline; }
.image-panel { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #f8fbfd; }
.image-panel-title { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 8px; }
.image-panel-title strong { color: var(--ink); }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.image-tile { position: relative; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.image-tile img, .watch-images img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-tile span { position: absolute; left: 6px; bottom: 6px; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; background: rgba(23, 32, 38, 0.78); font-size: 12px; font-weight: 800; }
.watch-images { display: grid; grid-template-columns: repeat(6, 58px); gap: 6px; margin-top: 8px; }
.watch-images a { display: block; width: 58px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.parts-box { margin-top: 12px; display: grid; gap: 8px; }
.parts-box h3 { margin: 0; font-size: 15px; }
.parts-box-pending,
.part-item-pending { opacity: 0.92; }
.live-pending-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.live-pending-value {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 88px;
}
.live-pending-value em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.live-skeleton-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 45%, #e8e8e8 90%);
  background-size: 200% 100%;
  animation: liveSkeletonSweep 1.2s ease-in-out infinite;
}
.live-skeleton-bar.inline {
  height: 14px;
  width: 72px;
  margin-top: 2px;
}
@keyframes liveSkeletonSweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.detected-defect-box { margin-top: 12px; display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(179, 38, 30, 0.28); border-radius: 10px; background: linear-gradient(180deg, rgba(179, 38, 30, 0.1), rgba(179, 38, 30, 0.04)); }
.detected-defect-box h3 { margin: 0; font-size: 15px; color: #7b1f1a; }
.detected-defect-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.detected-defect-grid div { display: grid; gap: 2px; }
.detected-defect-grid span { font-size: 12px; color: #5b6670; }
.detected-defect-grid strong { font-size: 14px; color: #1f2933; }
.part-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #f8fbfd; }
.part-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.part-head span { color: var(--blue); font-weight: 900; white-space: nowrap; }
.part-item p { margin: 8px 0 0; color: var(--muted); }
.part-queries { display: grid; gap: 5px; margin-top: 8px; }
.part-queries code { display: block; padding: 6px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.part-links, .watch-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.part-links a, .watch-parts span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; background: #fff; color: var(--blue); font-weight: 800; text-decoration: none; }
.market-button { width: 100%; margin-top: 12px; color: #fff; background: var(--blue); border-color: var(--blue); }
.market-button:hover { background: #1d4f7e; }
.market-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #f8fbfd; }
.market-box h3 { margin: 0 0 8px; font-size: 15px; }
.market-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.market-stat { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fff; }
.market-stat span { display: block; color: var(--muted); font-size: 12px; }
.market-stat strong { display: block; margin-top: 4px; font-size: 18px; }
.market-list { display: grid; gap: 6px; margin-top: 10px; }
.market-list a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; color: var(--blue); font-weight: 800; text-decoration: none; }
.market-list small { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; }
.market-tws { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.market-tws h4 { margin: 0 0 6px; font-size: 14px; color: var(--blue); }
.market-tws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.market-tws-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; font-weight: 600; }
.market-tws-status { margin-bottom: 4px; }
.market-tws-live { border-color: rgba(31, 138, 76, 0.28); background: #f7fcf9; }
.market-tws-pending { border-color: rgba(168, 108, 22, 0.22); background: #fffaf3; }

.terapeak-upload-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(31, 78, 138, 0.28);
  border-radius: 10px;
  background: #f8fbff;
}
.terapeak-upload-box > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--blue);
}
.terapeak-upload-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.terapeak-upload-row label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.terapeak-upload-row input[type="text"],
.terapeak-upload-row input[type="file"],
.terapeak-upload-row textarea {
  font: inherit;
}
.terapeak-upload-row textarea {
  min-height: 110px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}
.terapeak-upload-row button {
  justify-self: start;
}
.terapeak-file-label input[type="file"] {
  max-width: 100%;
}
@media (min-width: 720px) {
  .terapeak-upload-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
  }
  .terapeak-upload-row button,
  .terapeak-file-label {
    grid-column: 1 / -1;
  }
}
.tws-open { color: var(--muted); font-style: normal; font-weight: 700; }
.list-assessment-model-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(168, 108, 22, 0.35);
  border-radius: 8px;
  background: #fff8ef;
  color: #6b4a00;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.list-assessment-dashboard-grid small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
@media (min-width: 900px) {
  .market-tws-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.empty, .error { border: 1px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--muted); margin-top: 12px; }
.error { color: var(--red); border-color: var(--red); }
.result-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; box-shadow: var(--shadow); }
.result-card.signal-gruen { border-color: rgba(31, 122, 77, 0.34); background: linear-gradient(180deg, rgba(31, 122, 77, 0.11), #fff 58%); }
.result-card.signal-rot { border-color: rgba(179, 38, 30, 0.32); background: linear-gradient(180deg, rgba(179, 38, 30, 0.11), #fff 58%); }
.result-card.signal-gelb { border-color: rgba(168, 108, 22, 0.32); background: linear-gradient(180deg, rgba(168, 108, 22, 0.1), #fff 58%); }
.result-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; margin-bottom: 12px; }
.result-signal-wrap { display: flex; justify-content: flex-end; }
.result-price span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.result-price strong { display: block; margin-top: 3px; font-size: 24px; font-weight: 900; line-height: 1.1; }
.result-body { display: grid; gap: 12px; }
.result-main { display: grid; gap: 12px; }
.result-core { display: grid; gap: 12px; }
.result-notes { display: grid; gap: 12px; }
.result-side { display: grid; gap: 12px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.metric { display: grid; gap: 6px; min-height: 72px; align-content: center; }
.metric span { color: var(--muted); }
.metric strong { font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.metric:first-child { grid-column: 1 / -1; min-height: 92px; }
.metric:first-child span { font-size: 15px; }
.metric:first-child strong { font-size: 28px; }
.result-card .metric:first-child { grid-column: auto; min-height: 72px; }
.result-card .metric:first-child span { font-size: inherit; }
.result-card .metric:first-child strong { font-size: 18px; }
.result-section { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #f8fbfd; display: grid; gap: 10px; }
.result-section h3 { margin: 0; font-size: 15px; }
.section-title-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.section-title-row span { color: var(--muted); font-size: 13px; }
.valuation-warnings { border-color: rgba(168, 108, 22, 0.35); background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(255, 243, 218, 0.92)); }
.warning-list { display: grid; gap: 8px; }
.warning-item { border: 1px solid rgba(168, 108, 22, 0.24); border-radius: 8px; padding: 10px 11px; background: #fff; color: #764b11; font-size: 13px; line-height: 1.45; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meta-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-grid > div, .breakdown-list > div, .scenario-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; display: grid; gap: 6px; }
.meta-grid span, .breakdown-list span, .scenario-card span { color: var(--muted); font-size: 12px; }
.meta-grid strong, .breakdown-list strong, .scenario-card strong { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.breakdown-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.source-links a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; color: var(--blue); text-decoration: none; font-weight: 700; }
.decision-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--line); }
.decision-line span { color: var(--muted); }
.decision-buy { color: var(--green-strong); font-weight: 800; }
.decision-stop { color: var(--red); font-weight: 800; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scenario-card { min-height: 96px; align-content: start; }
.signal { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 999px; color: #fff; padding: 8px 16px; font-weight: 900; }
.gruen { background: var(--green); }
.gelb { background: var(--amber); }
.rot { background: var(--red); }
ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.verdict { margin-top: 10px; color: var(--ink); font-weight: 800; }
.defect-banner { margin-top: 10px; display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(179, 38, 30, 0.34); border-radius: 8px; background: linear-gradient(180deg, rgba(179, 38, 30, 0.12), rgba(179, 38, 30, 0.06)); color: #7b1f1a; font-weight: 700; }
.defect-line { display: grid; gap: 6px; }
.defect-line strong { color: #8e221d; }
.defect-line a { color: var(--blue); font-weight: 900; text-decoration: none; }
.defect-line a:hover { text-decoration: underline; }
.watch-item strong, .watch-item span { display: block; }
.watch-item span { color: var(--muted); }
.watch-item summary { cursor: pointer; list-style: none; }
.watch-item summary::-webkit-details-marker { display: none; }
.watch-summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.watch-summary span { grid-column: 1 / -1; }
.watch-signal { justify-self: end; border-radius: 999px; color: #fff; font-weight: 900; padding: 5px 9px; font-size: 12px; }
.watch-details { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.wide-doc { grid-column: 1 / -1; }
.legal-footer { background: #050b14; color: rgba(255, 255, 255, 0.78); padding: 28px 20px 34px; text-align: center; font-size: 12px; line-height: 1.55; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.footer-links a { color: #fff; font-weight: 800; text-decoration: underline; }
.copyright { margin-top: 12px; color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.modal-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 8, 18, 0.82); z-index: 1000; }
.modal-overlay.is-open { display: flex; }
.modal-window { width: min(780px, 100%); max-height: min(80vh, 720px); overflow-y: scroll; background: #fff; color: #102033; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); text-align: left; }
.modal-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #0d1b30; color: #fff; }
.modal-header h2 { font-size: 20px; margin: 0; }
.modal-close { min-height: 0; margin: 0; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; color: #fff; font-size: 18px; line-height: 1; }
.modal-body { padding: 22px; font-size: 15px; line-height: 1.65; }
.modal-body p { margin: 0 0 14px; }
.trial-modal { width: min(520px, 100%); }
.trial-modal input[type="email"] {
  width: 100%;
  margin: 0.35rem 0 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c5d0da;
  border-radius: 8px;
  font: inherit;
}
.trial-modal .hint {
  color: #0f6b78;
  margin: 0.4rem 0 0.8rem;
}
.trial-modal .field-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.6rem;
}
.breakdown-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (min-width: 1060px) {
  .result-summary {
    grid-template-columns: minmax(280px, 1.12fr) minmax(260px, 1.12fr) auto;
    gap: 14px;
    align-items: center;
  }
  .result-body { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); align-items: start; }
  .result-main { grid-template-columns: minmax(320px, 1.03fr) minmax(0, 0.97fr); align-items: start; }
  .result-main { min-width: 0; }
  .result-core, .result-notes { min-width: 0; }
  .result-side { min-width: 0; }
  .result-side .result-section:first-child { margin-top: 0; }
}

@media (max-width: 1059px) {
  .result-summary { grid-template-columns: 1fr; }
  .result-signal-wrap { justify-content: flex-start; }
  .result-main { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  body.camera-live {
    overflow: hidden;
  }
  body.access-active .mobile-mode-bar {
    display: none;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    margin: 0 -14px 12px;
    padding: 12px 14px;
    border-radius: 0 0 12px 12px;
    background: rgba(243, 246, 248, 0.96);
    backdrop-filter: blur(12px);
  }
  .customer-brand { justify-content: flex-start; min-height: 0; }
  .lang-switch-topbar { margin-right: auto; }
  .status { width: 100%; min-width: 0; }
  .app-menu { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .account-panel { order: 2; }
  .app-workspace { order: 1; }
  .grid, .form-grid, .metrics, .workflow-grid, .search-box, .direct-import, .reverse-box, .scanner-box, .meta-grid, .breakdown-list, .scenario-grid { grid-template-columns: 1fr; }
  .quick-start-grid { grid-template-columns: 1fr; }
  .azure-actions { flex-direction: column; }
  .quick-start-panel {
    padding: 14px;
  }
  .quick-start-intro {
    font-size: 13px;
  }
  .bulk-upload-row, .bulk-summary-grid, .bulk-portfolio-grid, .bulk-external-inputs, .bulk-results-head, .bulk-result-row, .bulk-detail-grid, .bulk-archive-row { grid-template-columns: 1fr; }
  .bulk-filters { grid-template-columns: 1fr; }
  .bulk-results-head { display: none; }
  .bulk-result-row { gap: 6px; }
  .bulk-archive-row { gap: 6px; }
  .bulk-action-group { width: 100%; }
  .wide, .full-workflow { grid-column: auto; }
  .mobile-mode-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(25, 42, 55, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(25, 42, 55, 0.12);
    backdrop-filter: blur(12px);
  }
  .mobile-mode-bar .mode-chip {
    min-height: 48px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 900;
  }
  .mobile-mode-bar .mode-chip.is-active {
    box-shadow: 0 10px 20px rgba(37, 94, 145, 0.26);
  }
  .shell {
    padding-bottom: 104px;
  }
  body.camera-live .topbar,
  body.camera-live .warning,
  body.camera-live .keyword-bar,
  body.camera-live .app-menu,
  body.camera-live .account-panel,
  body.camera-live .tool-panel:not(#scannerCard),
  body.camera-live .result-panel {
    display: none !important;
  }
  .scanner-preview {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .scanner-preview video {
    min-height: 0;
  }
  .scanner-actions {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "capture scan"
      "start torch"
      "cancel clear";
    padding: 10px;
    border: 1px solid rgba(23, 32, 38, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(25, 42, 55, 0.08);
    backdrop-filter: blur(6px);
  }
  .scanner-actions #capturePhotoButton { grid-area: capture; }
  .scanner-actions #scanButton { grid-area: scan; }
  .scanner-actions #cameraStartButton { grid-area: start; }
  .scanner-actions #torchButton { grid-area: torch; }
  .scanner-actions #cameraCancelButton { grid-area: cancel; }
  .scanner-actions #scanClearButton { grid-area: clear; }
  .scanner-box button {
    width: 100%;
    min-width: 0;
  }
  .scanner-box #capturePhotoButton,
  .scanner-box #scanButton {
    min-height: 56px;
    font-size: 17px;
  }
  .camera-drop {
    order: 5;
    min-height: 92px;
    padding: 12px;
  }
  .scanner-box > span {
    order: 3;
  }
  .scan-preview-list {
    order: 4;
  }
  body.camera-live .scanner-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: #000;
    box-shadow: none;
  }
  body.camera-live .shell > :not(.app-layout),
  body.camera-live .app-layout > :not(.app-workspace),
  body.camera-live .app-workspace > :not(#scannerCard),
  body.camera-live #scannerCard .section-title,
  body.camera-live #scannerCard .camera-drop,
  body.camera-live #scannerCard #scanStatus,
  body.camera-live #scannerCard #scanButton,
  body.camera-live #scannerCard #cameraStartButton,
  body.camera-live #scannerCard #scanClearButton {
    display: none !important;
  }
  body.camera-live #scannerCard .scanner-box {
    position: relative;
    display: block;
    width: 100vw;
    height: 100vh;
    padding: 0;
    background: #000;
  }
  body.camera-live #scannerCard .scanner-preview {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #000;
  }
  body.camera-live .scanner-card .scanner-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.camera-live .scanner-card .camera-guide-banner {
    top: 24%;
    width: min(82%, 560px);
    font-size: 15px;
    z-index: 10001;
  }
  body.camera-live .scanner-card .scanner-actions {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 100%;
    z-index: 10002;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 8px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.camera-live .scanner-card .scanner-actions #torchButton,
  body.camera-live .scanner-card .scanner-actions #cameraCancelButton,
  body.camera-live .scanner-card .scanner-actions #capturePhotoButton {
    position: relative;
    margin: 0;
  }
  body.camera-live .scanner-card .scanner-actions #torchButton {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 999px;
    background: rgba(212, 122, 0, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0;
  }
  body.camera-live .scanner-card .scanner-actions #torchButton::before {
    content: "LED";
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
  }
  body.camera-live .scanner-card .scanner-actions #cameraCancelButton {
    width: 72px;
    min-width: 72px;
    height: 48px;
    min-height: 48px;
    border-radius: 999px;
    color: #fff;
    background: rgba(111, 118, 128, 0.76);
    border-color: rgba(255, 255, 255, 0.18);
    font-size: 12px;
  }
  body.camera-live .scanner-card .scanner-actions #capturePhotoButton {
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 6px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: transparent;
    font-size: 0;
  }
  body.camera-live .scanner-card .scanner-actions #capturePhotoButton::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(8, 17, 27, 0.08);
  }
  body.camera-live .scanner-card .scanner-actions #capturePhotoButton:disabled::before {
    background: rgba(255, 255, 255, 0.56);
  }
  body.camera-live .scanner-card .scan-preview-list {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px) + 16px);
    left: 12px;
    z-index: 10001;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    width: auto;
  }
  body.camera-live .scanner-card .scan-preview-item {
    width: 42px;
    min-height: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.74;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  }
  body.camera-live .scanner-card .scan-preview-item img {
    aspect-ratio: 1;
  }
  body.camera-live .scanner-card .scan-preview-item button {
    display: none;
  }
  body.camera-live .scanner-card .scan-preview-item span {
    inset: auto 0 0 0;
    min-width: 0;
    height: 16px;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: rgba(8, 17, 27, 0.76);
  }
  .keyword-item { grid-template-columns: 64px 1fr; }
  .keyword-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .scanner-card {
    padding: 10px;
  }
  .scanner-preview {
    aspect-ratio: 4 / 3;
    max-height: 34vh;
  }
  .scanner-empty {
    padding: 14px;
    font-size: 13px;
  }
  .camera-drop small {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  body.bulk-mobile-mode {
    overflow-x: hidden;
  }
  body.bulk-mobile-mode .shell {
    padding-bottom: var(--bulk-mobile-inset-bottom, calc(96px + env(safe-area-inset-bottom, 0px)));
  }
  body.bulk-mobile-mode .topbar,
  body.bulk-mobile-mode .warning,
  body.bulk-mobile-mode .keyword-bar {
    display: none;
  }
  body.bulk-mobile-mode .app-layout {
    grid-template-columns: 1fr;
  }
  body.bulk-mobile-mode .account-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 220;
    order: unset;
    width: min(88vw, 320px);
    max-width: 320px;
    margin: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 12px 0 32px rgba(20, 40, 60, 0.18);
  }
  body.bulk-mobile-mode.is-mobile-drawer-open .account-panel {
    transform: translateX(0);
  }
  body.bulk-mobile-mode .bulk-mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(12, 24, 36, 0.42);
  }
  body.bulk-mobile-mode.is-mobile-drawer-open .bulk-mobile-drawer-backdrop {
    display: block;
  }
  body.bulk-mobile-mode .app-workspace {
    order: 1;
    width: 100%;
    min-width: 0;
  }
  body.bulk-mobile-mode .bulk-panel {
    margin: 0 -14px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  body.bulk-mobile-mode .bulk-import-workbench {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  body.bulk-mobile-mode .bulk-summary {
    gap: 10px;
    margin-top: 0;
  }
  .bulk-mobile-header {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -12px 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #dbe6ee;
    background: rgba(251, 253, 255, 0.96);
    backdrop-filter: blur(10px);
  }
  .bulk-mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 1px solid #c8d9ea;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
  }
  .bulk-mobile-header-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .bulk-mobile-header-copy strong {
    font-size: 16px;
    color: var(--ink);
  }
  .bulk-mobile-header-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .bulk-mobile-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bulk-kpi-priority strong {
    font-size: 22px;
  }
  .bulk-mobile-summary-more,
  .bulk-mobile-summary-actions,
  .bulk-onboarding-compact {
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
  }
  .bulk-mobile-summary-more summary,
  .bulk-mobile-summary-actions summary,
  .bulk-onboarding-compact summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
  }
  .bulk-mobile-summary-more-body,
  .bulk-onboarding-compact-body {
    padding-bottom: 12px;
  }
  body.bulk-mobile-mode .bulk-onboarding-banner {
    display: none;
  }
  .bulk-mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #e8eef3;
    background: #f9fbfd;
  }
  .bulk-mobile-filter-btn {
    position: relative;
    min-height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #b8d4ea;
    border-radius: 10px;
    background: #fff;
    color: var(--blue);
    font-weight: 900;
  }
  .bulk-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
  }
  .bulk-mobile-filter-stats {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .bulk-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 240;
    pointer-events: none;
    visibility: hidden;
  }
  body.is-bulk-filter-open .bulk-filter-sheet {
    pointer-events: auto;
    visibility: visible;
  }
  .bulk-filter-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 36, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  body.is-bulk-filter-open .bulk-filter-sheet-backdrop {
    opacity: 1;
  }
  .bulk-filter-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(82vh, 640px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -12px 36px rgba(20, 40, 60, 0.18);
    transform: translateY(105%);
    transition: transform 0.24s ease;
  }
  body.is-bulk-filter-open .bulk-filter-sheet-panel {
    transform: translateY(0);
  }
  .bulk-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8eef3;
  }
  .bulk-filter-sheet-body {
    overflow: auto;
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .bulk-filters-sheet {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .bulk-results-mobile {
    border: 0;
    background: transparent;
  }
  .bulk-mobile-results-head {
    position: sticky;
    top: 58px;
    z-index: 40;
    padding: 10px 12px;
    border-bottom: 1px solid #e8eef3;
    background: rgba(255, 255, 255, 0.96);
  }
  .bulk-mobile-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 800;
    color: var(--ink);
  }
  .bulk-mobile-select-all input {
    width: 22px;
    height: 22px;
  }
  .bulk-mobile-results-body {
    display: grid;
    gap: 10px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .bulk-mobile-card {
    border: 1px solid #dbe6ee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .bulk-mobile-card.is-keyboard-focused {
    box-shadow: 0 0 0 2px rgba(36, 99, 154, 0.22);
  }
  .bulk-mobile-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px 12px 0;
  }
  .bulk-mobile-select {
    display: flex;
    align-items: flex-start;
    min-width: 44px;
    min-height: 44px;
    padding-top: 2px;
  }
  .bulk-mobile-select input {
    width: 22px;
    height: 22px;
  }
  .bulk-mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .bulk-mobile-index {
    color: var(--blue);
  }
  .bulk-mobile-title {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ink);
  }
  .bulk-mobile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .bulk-mobile-fact {
    border: 1px solid #e1eaf1;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f7fbff;
    color: #2b475d;
    font-size: 11px;
    font-weight: 800;
  }
  .bulk-mobile-fact.is-missing {
    border-color: rgba(179, 38, 30, 0.28);
    background: #fff0ef;
    color: #a1261d;
  }
  .bulk-mobile-fact.is-ok {
    border-color: rgba(31, 138, 76, 0.28);
    background: #e9f8ef;
    color: #0f6a39;
  }
  .bulk-mobile-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }
  .bulk-mobile-primary {
    flex: 1 1 auto;
    min-height: 44px;
    margin: 0;
  }
  .bulk-mobile-secondary {
    flex: 0 0 auto;
  }
  .bulk-mobile-secondary .bulk-more-actions summary {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    font-weight: 900;
    list-style: none;
  }
  .bulk-mobile-details summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-top: 1px solid #eef3f7;
    background: #fbfdff;
    font-weight: 800;
    color: var(--blue);
    cursor: pointer;
  }
  .bulk-mobile-details-body {
    padding: 0 12px 12px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
  }
  .bulk-mobile-card .bulk-inline-panel-wrap {
    padding: 0 12px 12px;
  }
  .bulk-mobile-archive-box {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed #c8d9ea;
  }
  .bulk-mobile-archive-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
    color: var(--ink);
  }
  .bulk-mobile-archive-headline strong {
    font-size: 15px;
  }
  .bulk-mobile-archive-headline span {
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf4fa;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
  }
  .bulk-mobile-archive-list {
    display: grid;
    gap: 10px;
  }
  .bulk-mobile-archive-card {
    background: #f9fbfd;
  }
  .bulk-mobile-archive-head {
    padding: 12px 12px 0;
  }
  .bulk-mobile-archive-state {
    border: 1px solid #dbe6ee;
    border-radius: 999px;
    padding: 2px 8px;
    background: #fff;
    color: #2b475d;
    font-size: 11px;
    font-weight: 800;
  }
  .bulk-mobile-archive-actions {
    padding-top: 0;
  }
  .bulk-mobile-archive-secondary {
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    white-space: nowrap;
  }
  body.bulk-mobile-mode .bulk-sticky-batch-mobile {
    left: 0;
    right: 0;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    transform: none;
    max-width: none;
    border-radius: 14px 14px 0 0;
    padding: 12px 14px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  body.bulk-mobile-mode.has-bulk-selection .bulk-sticky-batch-mobile {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .bulk-mobile-batch-more summary {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
  }
  .bulk-mobile-batch-menu {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 8px);
    display: grid;
    gap: 6px;
    min-width: 200px;
    padding: 8px;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 40, 60, 0.14);
  }
  .bulk-mobile-batch-more {
    position: relative;
  }
  .bulk-mobile-batch-menu button {
    min-height: 44px;
    margin: 0;
    text-align: left;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121212;
    --surface: #1a1a1a;
    --line: #333;
    --ink: #e0e0e0;
    --muted: #aaa;
    --green: #20c36b;
    --green-strong: #16a75a;
    --amber: #ffb020;
    --red: #ff4d4d;
    --blue: #64b5f6;
    --shadow: none;
  }

  body { background: #121212; color: #e0e0e0; }
  .status, .panel, .warning { background: #1a1a1a; border-color: #333; box-shadow: none; }
  .workflow-card, .image-panel, .keyword-item, .market-box, .part-item, .api-limit { background: #2a2a2a; border-color: #333; }
  .result-section, .meta-grid > div, .breakdown-list > div, .scenario-card { background: #2a2a2a; border-color: #333; }
  .valuation-warnings { background: linear-gradient(180deg, #2f2414, #241a0e); border-color: #5e481f; }
  .warning-item { background: #2a2a2a; border-color: #5e481f; color: #f2d39b; }
  .watch-item, .metric, .market-stat, .market-list a, .part-queries code, .part-links a, .watch-parts span { background: #2a2a2a; border-color: #333; }
  .source-links a { background: #2a2a2a; border-color: #333; }
  input, textarea, select { background: #1e1e1e; border-color: #333; color: #fff; }
  input::placeholder, textarea::placeholder { color: #777; }
  button { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
  .quota-card { background: #2a2a2a; border-color: #333; box-shadow: none; }
  .quota-head { border-bottom-color: #333; }
  .quota-head span, .quota-count, .image-panel-title strong, .verdict { color: #e0e0e0; }
  .quota-bar { background: #1e1e1e; border-color: #333; }
  .camera-drop, .scan-preview-item, .keyword-thumb, .image-tile, .watch-images a { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
  .modal-window { background: #1e1e1e; color: #e0e0e0; }
  .modal-header { background: #121212; border-bottom: 1px solid #333; }
  .empty, .error { border-color: #333; }
  .gruen { background: #00c853; color: #06130b; }
  .gelb { background: #ffd54f; color: #231800; }
  .rot { background: #ff5252; color: #1f0505; }
}
