:root {
  --bg: #0a192f;
  --bg-2: #08111f;
  --panel: rgba(12, 29, 52, 0.84);
  --panel-strong: rgba(15, 35, 62, 0.96);
  --text: #f4f8ff;
  --muted: #8892b0;
  --line: rgba(136, 146, 176, 0.22);
  --line-strong: rgba(0, 240, 255, 0.34);
  --accent: #00f0ff;
  --accent-dark: #00a7c8;
  --green: #00ff94;
  --amber: #ffd166;
  --danger: #ff5c7a;
  --navy: #071426;
  --navy-2: #0d213a;
  --shadow: 0 20px 60px rgba(0, 8, 20, 0.48);
  --glow-cyan: 0 0 22px rgba(0, 240, 255, 0.25);
  --glow-green: 0 0 20px rgba(0, 255, 148, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 240, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 2%, rgba(0, 255, 148, 0.12), transparent 24%),
    linear-gradient(135deg, #0a192f 0%, #08111f 58%, #06101d 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 255, 148, 0.035) 49% 51%, transparent 52%);
  background-size: 44px 44px, 44px 44px, 220px 220px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.4));
}

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

button {
  border: 1px solid rgba(0, 240, 255, 0.42);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.18), rgba(0, 167, 200, 0.18));
  color: #fff;
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  white-space: normal;
}

button:hover {
  border-color: rgba(0, 240, 255, 0.75);
  box-shadow: var(--glow-cyan);
  filter: none;
  transform: translateY(-1px);
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(136, 146, 176, 0.24);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(4, 16, 30, 0.78);
  color: var(--text);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 167, 200, 0.14);
  outline: none;
}

textarea {
  min-height: 68px;
  resize: vertical;
}

code {
  color: var(--accent);
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(7, 20, 38, 0.98), rgba(13, 33, 58, 0.94));
  color: #fff;
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 240, 255, 0.58);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(0, 240, 255, 0.28), rgba(0, 240, 255, 0.08));
  box-shadow: inset 0 0 22px rgba(0, 240, 255, 0.24), var(--glow-cyan);
  color: #d8fcff;
  font-weight: 800;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.topbar p {
  margin: 5px 0 0;
  color: #9fb3cf;
  font-size: 13px;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand {
  min-width: 0;
}

.brand > div:last-child {
  min-width: 0;
}

.actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.nav-row,
.export-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links {
  display: none;
}

.export-row {
  padding: 4px 6px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 14, 26, 0.28);
}

.export-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.export-control select {
  width: 78px;
  min-height: 30px;
  padding: 4px 8px;
}

.actions button,
.qa-action-row button {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.28);
  color: #e9feff;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.actions .nav-action {
  border-color: rgba(128, 224, 239, 0.48);
  background: rgba(255, 255, 255, 0.14);
  color: #effcff;
}

.actions .nav-action.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.92), rgba(0, 167, 200, 0.82));
  color: #06101d;
  box-shadow: var(--glow-cyan);
}

.action-group-label {
  color: #8fdde7;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 4px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9fd6e2;
  font-size: 12px;
  white-space: nowrap;
}

.language-switch select {
  width: 104px;
  min-height: 30px;
  padding: 4px 8px;
  border-color: rgba(0, 240, 255, 0.28);
  background: rgba(4, 16, 30, 0.72);
  color: #e9feff;
}

.layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 360px;
  gap: 12px;
  padding: 12px;
  min-height: calc(100vh - 84px);
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.guide-view {
  padding: 14px;
  min-height: calc(100vh - 84px);
}

.qa-tools-view {
  padding: 14px;
  min-height: calc(100vh - 84px);
}

.guide-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.qa-tools-shell {
  max-width: 1540px;
  margin: 0 auto;
}

.guide-hero {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(0, 240, 255, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(15, 35, 62, 0.96), rgba(9, 24, 43, 0.92));
  box-shadow: var(--shadow);
}

.guide-hero h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 24px;
}

.guide-hero p {
  max-width: 980px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guide-toc h2 {
  margin-bottom: 4px;
}

.guide-toc a {
  display: block;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #aab6cf;
  font-size: 13px;
  text-decoration: none;
}

.guide-toc a:hover {
  border-color: rgba(0, 240, 255, 0.32);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
}

.guide-content {
  padding: 22px;
}

.guide-content section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.guide-content section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.guide-content h2 {
  margin: 0 0 10px;
  color: #f4f8ff;
  font-size: 19px;
}

.guide-content h3 {
  margin: 16px 0 8px;
  color: #cfe8ff;
  font-size: 15px;
}

.guide-content p,
.guide-content li {
  color: #aeb9d0;
  font-size: 14px;
  line-height: 1.75;
}

.guide-content ul,
.guide-content ol {
  padding-left: 22px;
}

.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.guide-content th,
.guide-content td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.guide-content th {
  width: 160px;
  background: rgba(0, 240, 255, 0.08);
  color: #d7f8ff;
}

.guide-content code {
  padding: 2px 5px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.06);
  overflow-wrap: anywhere;
}

.developer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(15, 35, 62, 0.9), rgba(9, 24, 43, 0.82));
}

.developer-card h3 {
  margin-top: 0;
}

.developer-card a {
  color: var(--accent-dark);
  text-decoration: none;
}

.developer-card a:hover {
  text-decoration: underline;
}

.developer-tags {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.developer-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(0, 255, 148, 0.3);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(0, 255, 148, 0.08);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}


.sidebar,
.inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.sidebar {
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 2px;
}

.inspector {
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 2px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(173, 194, 208, 0.85);
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.inspector-task-panel {
  position: sticky;
  top: 0;
  z-index: 8;
  border-color: rgba(0, 240, 255, 0.42);
  background: linear-gradient(180deg, rgba(12, 40, 66, 0.98), rgba(8, 24, 43, 0.96));
}

.inspector-task-summary {
  color: #d8f7ff;
  font-size: 13px;
  line-height: 1.55;
}

.inspector-required-fields {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.inspector-required-fields div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 7px;
  background: rgba(0, 240, 255, 0.08);
}

.inspector-required-fields strong {
  color: var(--accent);
  font-size: 13px;
}

.inspector-required-fields span {
  color: #aeb9d0;
  font-size: 12px;
  line-height: 1.35;
}

.task-guide-card {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.36);
}

.task-guide-card summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #e4f7ff;
  font-size: 13px;
  font-weight: 700;
}

.task-guide-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.task-guide-body div {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 8px;
}

.task-guide-body strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 3px;
}

.task-guide-body p {
  margin: 0;
  color: #b9c7dc;
  font-size: 12px;
  line-height: 1.45;
}

.review-sticky-bar {
  position: sticky;
  top: 118px;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin: -2px 0 10px;
  padding: 9px;
  border: 1px solid rgba(0, 255, 148, 0.22);
  border-radius: 8px;
  background: rgba(5, 18, 32, 0.94);
  box-shadow: 0 10px 30px rgba(0, 8, 20, 0.34);
}

.review-sticky-bar label {
  margin: 0;
}

.review-sticky-bar button {
  min-width: 88px;
  min-height: 37px;
  border-color: rgba(0, 255, 148, 0.4);
  background: linear-gradient(180deg, rgba(0, 255, 148, 0.22), rgba(0, 167, 200, 0.16));
}

#confirmAndNext {
  min-width: 112px;
  border-color: rgba(0, 240, 255, 0.48);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.22), rgba(0, 167, 200, 0.2));
}

.task-hidden {
  display: none !important;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

summary.panel-head {
  cursor: pointer;
  list-style: none;
}

summary.panel-head::-webkit-details-marker {
  display: none;
}

summary.panel-head::after {
  content: "+";
  color: var(--muted);
  font-weight: 800;
}

details[open] > summary.panel-head::after {
  content: "-";
}

.metadata-panel:not([open]) {
  padding-bottom: 8px;
}

.utility-panel:not([open]) {
  padding-bottom: 8px;
}

.utility-panel > .hint {
  margin-top: 0;
}

.panel h2,
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  color: #f4f8ff;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel h3 {
  margin: 12px 0 8px;
  font-size: 13px;
  color: #cfe8ff;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel label {
  display: block;
  margin: 9px 0;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.hint {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.import-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: rgba(4, 16, 30, 0.68);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.tab-button {
  border: 0;
  background: transparent;
  color: #aab6cf;
  padding: 7px 8px;
}

.tab-button.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.34);
  box-shadow: var(--glow-cyan);
}

.import-pane {
  display: none;
}

.import-pane.active {
  display: block;
}

.metadata-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.input-action {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 6px;
  min-width: 0;
}

.input-action input,
.qa-source-block input,
.qa-local-upload input,
.qa-selected input,
.qa-editor input,
.qa-editor textarea {
  min-width: 0;
  max-width: 100%;
}

.folder-browser {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 16, 30, 0.58);
  max-height: 188px;
  overflow: hidden;
}

.browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.browser-head button {
  padding: 5px 8px;
  font-size: 12px;
}

.folder-rows {
  max-height: 138px;
  overflow: auto;
  padding: 6px;
}

.folder-row {
  width: 100%;
  display: block;
  margin-bottom: 5px;
  border: 1px solid rgba(136, 146, 176, 0.22);
  background: rgba(8, 24, 43, 0.88);
  color: #d7e8ff;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-row.parent {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent);
}

.empty-row,
.upload-summary,
.filter-help {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(4, 16, 30, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.filter-help {
  margin: 0;
  border-color: rgba(0, 255, 148, 0.16);
  background: rgba(0, 255, 148, 0.06);
  color: #a7c5db;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.filter-actions .danger-button {
  grid-column: 1 / -1;
}

.danger-button {
  background: linear-gradient(180deg, rgba(255, 92, 122, 0.2), rgba(217, 45, 32, 0.24));
  border-color: rgba(255, 92, 122, 0.56);
}

.danger-button:hover {
  border-color: rgba(255, 92, 122, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 92, 122, 0.12);
}

.advanced-filter {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(4, 16, 30, 0.36);
}

.advanced-filter summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.advanced-filter .row {
  margin-top: 8px;
}

.checkline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--text) !important;
}

.checkline input {
  width: auto;
}

.danger-check {
  color: #ffd7a8 !important;
}

.danger-check input {
  accent-color: #f59f00;
}

.shortcut-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 8px;
}

.scene-shortcuts {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.shortcut-details {
  margin-top: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #f9fafb;
}

.shortcut-details summary {
  cursor: pointer;
  padding: 7px 9px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.shortcut-details .shortcut-panel {
  margin: 0;
  padding: 0 8px 8px;
}

.shortcut-chip {
  appearance: none;
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  padding: 5px 7px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.shortcut-chip:hover {
  border-color: #98a2b3;
  color: #1d2939;
  background: #f9fafb;
}

.shortcut-chip kbd {
  display: inline-block;
  min-width: 20px;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #eef2f6;
  color: #344054;
  font-weight: 800;
  text-align: center;
}

.import-panel {
  order: 4;
  border-color: rgba(0, 167, 200, 0.28);
}

.task-domain-panel {
  order: 1;
  border-color: rgba(0, 255, 148, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 255, 148, 0.08), transparent 42%),
    var(--panel);
}

.filter-panel {
  order: 3;
  position: relative;
  top: 0;
  z-index: 9;
  border-color: rgba(0, 240, 255, 0.38);
  background: linear-gradient(180deg, rgba(12, 40, 66, 0.98), rgba(8, 24, 43, 0.96));
}

.primary-filter {
  margin-top: 0 !important;
}

.quick-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-filter-grid label {
  margin: 0;
}

.risk-queue-box {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.risk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.risk-queue-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.risk-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 35, 62, 0.72);
  color: var(--text);
  text-align: left;
  padding: 8px;
}

.risk-row strong,
.risk-row span {
  display: block;
  overflow-wrap: anywhere;
}

.risk-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.advanced-filter,
.admin-actions {
  margin-top: 8px;
}

.admin-actions:not(details) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.advanced-filter summary,
.admin-actions summary {
  cursor: pointer;
  color: #9fd6e2;
  font-size: 12px;
}

.admin-actions .danger-button {
  width: 100%;
  margin-top: 8px;
}

.admin-import-panel:not([open]) {
  padding-bottom: 8px;
}

.domain-hidden {
  display: none !important;
}

.list-panel {
  order: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
}

.image-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-entry-panel {
  order: 0;
  display: grid;
  gap: 8px;
  border-color: #b2ddff;
  background: #eff8ff;
}

.admin-entry-panel .panel-head {
  margin-bottom: 0;
}

.admin-entry-panel h2 {
  color: #175cd3;
}

.admin-entry-panel p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.admin-entry-panel button {
  width: 100%;
  border-color: #175cd3;
  background: #175cd3;
  color: #ffffff;
  font-weight: 800;
}

.mode-switch-panel {
  display: grid;
  gap: 8px;
}

.mode-switch-panel p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-switch button {
  width: 100%;
  height: 34px;
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.mode-switch button.active {
  border-color: #175cd3;
  background: #175cd3;
  color: #ffffff;
}

.mode-operator [data-admin-only] {
  display: none !important;
}

.mode-operator [data-operator-lowfreq] {
  display: none !important;
}

.list-nav {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(7, 20, 38, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.list-nav button {
  padding: 5px 7px;
  font-size: 12px;
}

.image-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  background: rgba(10, 29, 52, 0.78);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.image-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.image-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 167, 200, 0.16);
  border-left: 4px solid #00a7c8;
  padding-left: 8px;
}

.image-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 5px;
}

.image-title span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(136, 146, 176, 0.28);
  background: rgba(136, 146, 176, 0.12);
  color: #aeb9d0;
  font-size: 11px;
  font-weight: 700;
}

.source-badge.actual {
  border-color: rgba(0, 240, 255, 0.42);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent);
}

.source-badge.demo {
  border-color: rgba(255, 209, 102, 0.46);
  background: rgba(255, 209, 102, 0.1);
  color: var(--amber);
}

.image-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.image-meta span {
  display: inline-block;
  margin-right: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin-top: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(136, 146, 176, 0.12);
  color: #c7d2e8;
}

.status-pill.pending,
.status-pill.predicted {
  background: rgba(255, 209, 102, 0.12);
  color: var(--amber);
}

.status-pill.labeled {
  background: rgba(47, 128, 237, 0.12);
  color: #2f80ed;
}

.status-pill.reviewed,
.status-pill.verified {
  background: rgba(0, 255, 148, 0.12);
  color: var(--green);
}

.status-pill.rejected {
  background: rgba(255, 92, 122, 0.12);
  color: var(--danger);
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-assist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.task-assist-main strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.task-assist-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.task-assist-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.task-assist-steps span {
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--text);
  background: rgba(0, 167, 200, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.mode-operator .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
  background: linear-gradient(180deg, rgba(15, 35, 62, 0.92), rgba(9, 24, 43, 0.86));
  border: 1px solid rgba(173, 194, 208, 0.85);
  border-radius: 8px;
  padding: 9px 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.summary-card span {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-card strong {
  display: inline-block;
  margin-top: 0;
  color: #f4f8ff;
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}

.operator-summary-card strong {
  font-size: 16px;
}

.canvas-shell {
  position: relative;
  width: min(100%, 1024px);
  max-width: 1024px;
  align-self: center;
  background:
    linear-gradient(135deg, rgba(0, 167, 200, 0.1), transparent 34%),
    #0c151c;
  border-radius: 10px;
  border: 1px solid #0d2f3b;
  overflow: auto;
  min-height: 600px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

#imageCanvas {
  display: block;
  max-width: 100%;
}

.selected-object-toolbar {
  position: absolute;
  z-index: 12;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
  transform: translate(-50%, -120%);
}

.selected-object-toolbar button {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.model-center {
  padding: 12px;
}

.model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.model-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(15, 35, 62, 0.92), rgba(9, 24, 43, 0.84));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.model-card.ready {
  border-color: rgba(0, 167, 200, 0.46);
}

.model-card strong,
.model-card span {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.model-card strong {
  font-size: 13px;
  color: #f4f8ff;
  overflow-wrap: anywhere;
}

.model-card span {
  margin-top: 3px;
  color: var(--accent-dark);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.model-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.model-card ul {
  margin: 7px 0 0;
  padding-left: 16px;
  color: #91a2bd;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.model-card button:disabled {
  cursor: not-allowed;
  border-color: rgba(136, 146, 176, 0.2);
  background: rgba(136, 146, 176, 0.12);
  color: #7f8ba5;
}

.model-card button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  white-space: normal;
}

.batch-model-box,
.custom-model-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.batch-model-grid,
.custom-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-width: 0;
  max-width: 100%;
}

.batch-model-grid label,
.custom-model-grid label {
  margin: 0;
  min-width: 0;
}

.batch-model-grid button,
.custom-model-grid button {
  min-height: 35px;
  min-width: 0;
  white-space: normal;
}

.batch-stage-toggle,
.batch-model-actions,
.custom-model-grid label:nth-child(3),
.custom-model-grid button {
  grid-column: 1 / -1;
}

.batch-stage-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.batch-model-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#imageCanvas {
  width: min(100%, 1024px);
  height: auto;
  display: block;
  background: #202a32;
  touch-action: none;
}

.toolbar {
  width: min(100%, 1024px);
  max-width: 1024px;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.toolbar-main-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.65fr) minmax(0, 0.72fr) 72px;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.toolbar-group {
  display: grid;
  grid-template-rows: auto minmax(30px, 1fr);
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #f9fafb;
}

.tool-group-label {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tool-controls {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.two-actions {
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  grid-auto-flow: initial;
}

.three-actions {
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  grid-auto-flow: initial;
}

.target-actions {
  grid-template-columns: minmax(0, 1fr) minmax(62px, 0.5fr) 50px minmax(62px, 0.5fr);
  grid-auto-flow: initial;
}

.recent-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.recent-label-chips button {
  width: auto;
  max-width: 120px;
  height: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  border-color: #d0d5dd;
  background: #ffffff;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.recent-label-chips span {
  color: #98a2b3;
  font-size: 11px;
  line-height: 24px;
}

.angle-actions {
  grid-template-columns: 64px minmax(58px, 1fr);
  grid-auto-flow: initial;
}

.edit-actions {
  grid-template-columns: repeat(4, minmax(52px, 1fr));
  grid-auto-flow: initial;
}

.wide-edit-actions {
  grid-template-columns: minmax(120px, 1.2fr) repeat(5, minmax(52px, 0.7fr));
}

.toolbar button {
  width: 100%;
  white-space: nowrap;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #ffffff;
  border-color: #cfd6e2;
  color: #344054;
  box-shadow: none;
}

.toolbar button.unavailable-tool {
  color: #98a2b3;
  background: #f9fafb;
  border-style: dashed;
}

.toolbar input {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  background: #ffffff;
  border-color: #d0d5dd;
  color: #1f2937;
}

.ocr-popover {
  position: fixed;
  z-index: 80;
  width: min(280px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.ocr-popover label {
  gap: 5px;
  margin: 0;
}

.ocr-popover input {
  height: 34px;
}

.ocr-popover-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 8px;
}

.ocr-popover-actions button {
  height: 32px;
  padding: 0 10px;
}

.save-tools {
  grid-template-rows: minmax(32px, 1fr);
  border-color: #d9dee7;
  background: #f9fafb;
}

.save-tools .tool-controls {
  grid-auto-columns: minmax(0, 1fr);
}

.inline-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.inline-toggle input {
  width: 16px;
  height: 16px;
}

.current-list-progress {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.current-list-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.current-list-progress-head strong {
  color: #101828;
}

.current-list-progress-head span {
  color: #667085;
}

.current-list-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e4e7ec;
  overflow: hidden;
}

.current-list-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #175cd3, #53b1fd);
}

.label-helpers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}

.secondary-chip-button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar .primary-save {
  width: 100%;
  max-width: none;
  height: 32px;
  min-height: 32px;
  border-color: #344054;
  background: #344054;
  color: #ffffff;
  font-weight: 800;
}

.advanced-tools {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.advanced-tools-title {
  padding: 8px 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

#statusText {
  padding: 8px 10px;
  border-radius: 8px;
  color: #344054;
  background: #f9fafb;
}

#statusText[data-tone="success"] {
  color: #0f5132;
  background: #ecfdf3;
}

#statusText[data-tone="warning"] {
  color: #7a2e0e;
  background: #fff7ed;
}

#statusText[data-tone="error"] {
  color: #b42318;
  background: #fef3f2;
  font-weight: 700;
}

.advanced-tools-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(230px, 1.25fr);
  gap: 8px;
  padding: 0 8px 8px;
}

.hidden-tool-button {
  display: none !important;
}

.qa-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
}

.qa-file-panel {
  grid-row: span 2;
  align-self: start;
  position: sticky;
  top: 96px;
}

.qa-selected {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.qa-local-upload {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 18, 32, 0.48);
  min-width: 0;
}

.qa-source-block,
.annotation-module {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 18, 32, 0.42);
  min-width: 0;
  overflow-wrap: anywhere;
}

.qa-source-block h3,
.annotation-module h3 {
  margin: 0;
  color: #e9feff;
  font-size: 14px;
}

.qa-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qa-advanced-paths summary {
  cursor: pointer;
  color: #dffcff;
  font-weight: 700;
  font-size: 13px;
}

.qa-advanced-paths[open] {
  border-color: rgba(255, 209, 102, 0.34);
}

.panel-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 255, 148, 0.16);
  border-radius: 8px;
  background: rgba(0, 255, 148, 0.06);
  color: #a7c5db;
  font-size: 12px;
  line-height: 1.5;
}

.qa-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 48%) minmax(420px, 1fr);
  gap: 12px;
  align-items: start;
}

.qa-image-box {
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 16, 30, 0.74);
  overflow: hidden;
}

.qa-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qa-editor {
  display: grid;
  gap: 10px;
}

.compact-toolbar {
  box-shadow: none;
  margin-bottom: 0;
}

.compact-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.compact-toolbar input {
  width: 78px;
}

.qa-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.answer-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 18, 32, 0.54);
}

.answer-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f4f8ff;
  font-weight: 700;
}

.answer-checks input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.qa-result-card {
  display: grid;
  gap: 10px;
}

.qa-result-card h3 {
  margin: 0;
  color: #f4f8ff;
  line-height: 1.45;
}

.qa-result-options {
  display: grid;
  gap: 7px;
}

.qa-result-option {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(136, 146, 176, 0.24);
  border-radius: 8px;
  background: rgba(4, 16, 30, 0.54);
}

.qa-result-option.answer {
  border-color: rgba(0, 255, 148, 0.48);
  background: rgba(0, 255, 148, 0.1);
}

.qa-result-option.pred {
  border-color: rgba(0, 240, 255, 0.48);
  background: rgba(0, 240, 255, 0.1);
}

.qa-result-option b {
  color: var(--accent);
}

.qa-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.qa-answer-grid div {
  padding: 10px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 18, 32, 0.54);
}

.qa-answer-grid span,
.qa-result-card > span {
  color: var(--muted);
  font-size: 12px;
}

.qa-answer-grid strong {
  display: block;
  margin-top: 4px;
  color: #f4f8ff;
}

.qa-result-card pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(136, 146, 176, 0.24);
  border-radius: 8px;
  background: rgba(4, 16, 30, 0.74);
  color: #dffcff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.active-tool {
  border-color: #00e5ff;
  background: linear-gradient(180deg, #163f4d, #082b36);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}

#statusText {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 7px 10px;
  margin: 0;
  font-size: 13px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.object-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.bulk-label-tools {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) repeat(3, minmax(0, auto));
  gap: 6px;
  margin: 10px 0;
}

.bulk-label-tools input {
  min-width: 0;
}

.bulk-label-tools button {
  padding: 7px 8px;
  white-space: nowrap;
}

.object-row {
  display: grid;
  grid-template-columns: 34px minmax(70px, 1fr) 38px 38px 38px 38px 42px 28px 28px 28px;
  gap: 4px;
  align-items: center;
}

.obj-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.object-row input {
  padding: 5px 4px;
  min-width: 0;
}

.object-row.selected,
.segment-row.selected {
  outline: 2px solid #344054;
  outline-offset: 1px;
  background: #eff6ff;
}

.object-row.hidden-object {
  opacity: 0.58;
}

.object-row.locked-object {
  border-left: 3px solid #667085;
  padding-left: 3px;
}

.visibility-btn,
.lock-btn {
  padding: 6px 0;
  font-size: 12px;
  min-width: 0;
}

.segment-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 58px 30px;
  gap: 5px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.segment-row span {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.ocr-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.ocr-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto 30px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.ocr-row input {
  min-width: 0;
  padding: 5px 6px;
}

.ocr-row span {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.delete-btn {
  background: var(--danger);
  border-color: var(--danger);
  padding: 6px 0;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  color: #c7d2e8;
  max-height: 220px;
  overflow: auto;
}

.toast-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 1000;
  display: flex;
  width: min(380px, calc(100vw - 28px));
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  position: relative;
  border: 1px solid rgba(173, 194, 208, 0.92);
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  background: rgba(10, 29, 52, 0.98);
  box-shadow: 0 14px 34px rgba(14, 38, 54, 0.18);
  padding: 11px 56px 11px 12px;
  pointer-events: auto;
}

.toast strong {
  display: block;
  color: #f4f8ff;
  font-size: 13px;
  line-height: 1.25;
}

.toast p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.toast button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  border-color: rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.08);
  color: #cfe8ff;
  font-size: 11px;
}

.toast.success {
  border-left-color: var(--green);
}

.toast.warning {
  border-left-color: var(--amber);
}

.toast.error {
  border-left-color: var(--danger);
}

.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 12, 24, 0.42);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.processing-card {
  width: min(420px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(0, 240, 255, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.16), transparent 42%),
    rgba(9, 24, 43, 0.96);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.processing-card strong {
  display: block;
  color: #f4f8ff;
  font-size: 15px;
}

.processing-card p {
  margin: 7px 0 12px;
  color: #a7c5db;
  font-size: 13px;
  line-height: 1.5;
}

.processing-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(136, 146, 176, 0.18);
}

.processing-bar span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  animation: processing-slide 1.05s ease-in-out infinite;
}

@keyframes processing-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (max-width: 1180px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar p {
    white-space: normal;
  }

  .actions,
  .nav-row,
  .export-row {
    width: 100%;
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .model-list {
    grid-template-columns: 1fr;
  }

  .inspector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .inspector {
    display: flex;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-main-row,
  .advanced-tools-grid {
    grid-template-columns: 1fr;
  }

  .custom-model-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero,
  .guide-grid,
  .developer-card {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  #statusText {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Light enterprise workspace theme, inspired by Label Studio's clean project UI. */
:root {
  --bg: #f6f7f9;
  --bg-2: #eef1f5;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d9dee7;
  --line-strong: #9db7d5;
  --accent: #2f80ed;
  --accent-dark: #1f66c2;
  --green: #12b76a;
  --amber: #f79009;
  --danger: #d92d20;
  --navy: #273142;
  --navy-2: #344054;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --glow-cyan: 0 0 0 3px rgba(47, 128, 237, 0.12);
  --glow-green: 0 0 0 3px rgba(18, 183, 106, 0.12);
}

body {
  padding-left: 176px;
  background: #f6f7f9;
  color: var(--text);
}

body::before {
  display: none;
}

.project-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 900;
  width: 176px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px;
  background: #302b3c;
  color: #fff;
  box-shadow: 2px 0 18px rgba(15, 23, 42, 0.16);
}

.rail-brand {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rail-item {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  text-align: left;
  font-size: 13px;
  min-height: 34px;
  padding: 7px 9px;
  white-space: nowrap;
}

.rail-item:hover,
.rail-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.rail-footer {
  margin-top: auto;
  padding: 10px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  line-height: 1.45;
}

.rail-footer a {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.rail-footer a:hover {
  text-decoration: underline;
}

button {
  border: 1px solid #cfd6e2;
  background: #fff;
  color: #344054;
  box-shadow: none;
}

button:hover {
  border-color: #98a2b3;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  transform: none;
}

select,
input,
textarea {
  border-color: #d0d5dd;
  background: #fff;
  color: var(--text);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
}

code {
  color: #175cd3;
}

.topbar {
  min-height: 66px;
  padding: 11px 20px;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid #e4e7ec;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  backdrop-filter: none;
}

.brand {
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-color: #d0d5dd;
  background: #f9fafb;
  box-shadow: none;
  color: #302b3c;
}

.topbar h1 {
  color: #1d2939;
}

.topbar p,
.language-switch,
.action-group-label {
  color: #667085;
}

.export-row {
  border-color: #e4e7ec;
  background: #f9fafb;
}

.nav-row {
  gap: 10px;
}

.language-switch {
  gap: 7px;
}

.language-switch select {
  width: 96px;
  min-height: 30px;
  padding: 4px 8px;
}

.actions {
  flex: 1;
  min-width: 0;
}

.actions #refreshStats {
  white-space: nowrap;
}

.export-row {
  flex: 0 0 auto;
  min-width: 0;
}

.export-control {
  white-space: nowrap;
  min-width: 0;
}

.export-control button {
  min-width: 48px;
}

.export-control select {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
}

.actions button,
.qa-action-row button {
  background: #fff;
  border-color: #d0d5dd;
  color: #344054;
}

.actions .nav-action {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
}

.actions .nav-action.active,
.tab-button.active,
.active-tool {
  border-color: #344054;
  background: #eef2f6;
  color: #1d2939;
  box-shadow: none;
}

.language-switch select {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
}

.layout,
.guide-view,
.qa-tools-view,
.home-view {
  background: #f6f7f9;
}

.panel,
.guide-hero,
.canvas-shell,
.qa-image-box,
.qa-result-card,
.qa-local-upload,
.qa-source-block,
.annotation-module,
.custom-model-box,
.model-card,
.summary-card,
.developer-card {
  border-color: #e4e7ec;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.task-domain-panel,
.import-panel,
.guide-hero {
  border-color: #e4e7ec;
  background: #fff;
}

.panel-head h2,
.guide-hero h2,
.qa-source-block h3,
.annotation-module h3,
.model-card strong,
.qa-result-card h3 {
  color: #1d2939;
}

.panel-head span,
.hint,
.guide-hero p,
.empty-row,
.upload-summary,
.filter-help,
.panel-note,
dt,
pre,
#statusText {
  color: #667085;
}

.guide-toc h2,
.guide-content h2 {
  color: #1d2939;
}

.guide-content h3 {
  color: #344054;
}

.guide-content p,
.guide-content li,
.guide-content td {
  color: #475467;
}

.guide-toc a {
  color: #475467;
}

.guide-toc a:hover {
  color: #175cd3;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.guide-content th {
  background: #f9fafb;
  color: #344054;
}

.guide-content code {
  color: #175cd3;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.guide-content pre {
  color: #344054;
  background: #f9fafb;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
}

.empty-row,
.upload-summary,
.filter-help,
.advanced-filter,
.panel-note {
  border-color: #e4e7ec;
  background: #f9fafb;
}

.advanced-filter summary {
  color: #475467;
}

.folder-browser,
.folder-row,
.qa-result-card pre,
.object-row,
.segment-row {
  border-color: #e4e7ec;
  background: #fff;
  color: #344054;
}

.folder-row.parent {
  background: #eff6ff;
  color: #175cd3;
}

.summary-card strong {
  color: #1d2939;
}

.summary-card {
  background: #fff;
}

.summary-card span {
  color: #667085;
}

.source-badge,
.status-pill {
  border-color: #d0d5dd;
  background: #f9fafb;
  color: #344054;
}

.image-item {
  border-color: #e4e7ec;
  background: #fff;
}

.image-item:hover,
.image-item.active {
  border-color: #2f80ed;
  background: #eff6ff;
  box-shadow: none;
}

.toolbar {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.toast {
  border-color: #e4e7ec;
  background: #fff;
  box-shadow: var(--shadow);
}

.toast strong {
  color: #1d2939;
}

.toast p,
.toast button {
  color: #667085;
}

.processing-overlay {
  background: rgba(246, 247, 249, 0.68);
}

.processing-card {
  border-color: #d0d5dd;
  background: #fff;
  box-shadow: var(--shadow);
}

.processing-card strong {
  color: #1d2939;
}

.processing-card p {
  color: #667085;
}

.processing-bar {
  background: #e4e7ec;
}

.processing-bar span {
  background: linear-gradient(90deg, #2f80ed, #12b76a);
}

.home-view {
  min-height: calc(100vh - 74px);
  padding: 24px;
}

.home-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.home-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #175cd3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-hero h2 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 1.25;
}

.home-hero p,
.home-section-head p,
.home-flow p,
.home-task-card p {
  color: #667085;
}

.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.home-primary {
  border-color: #2f80ed;
  background: #2f80ed;
  color: #fff;
}

.home-primary:hover {
  border-color: #1f66c2;
  background: #1f66c2;
  color: #fff;
}

.home-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-link-button:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.home-metrics {
  display: grid;
  gap: 10px;
}

.home-metrics div {
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}

.home-metrics span,
.home-task-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  margin-bottom: 4px;
}

.home-metrics strong {
  color: #101828;
  font-size: 16px;
}

.home-section {
  display: grid;
  gap: 12px;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.home-section h3,
.home-section-head h3 {
  margin: 0;
  color: #101828;
  font-size: 18px;
}

.home-section-head p {
  margin: 0;
}

.home-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-task-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-align: left;
  border-color: #e4e7ec;
  background: #fff;
}

.home-task-card strong {
  color: #101828;
  font-size: 18px;
}

.home-task-card:hover {
  border-color: #2f80ed;
  background: #eff6ff;
}

.home-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  padding: 20px;
}

.home-advantages {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 20px;
  padding: 22px;
  align-items: start;
}

.home-advantages p {
  margin: 8px 0 0;
  color: #475467;
  line-height: 1.75;
}

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

.advantage-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}

.advantage-grid strong,
.advantage-grid span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.advantage-grid strong {
  color: #101828;
  font-size: 13px;
  margin-bottom: 6px;
}

.advantage-grid span {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.uaiv-dataset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 22px;
  align-items: center;
}

.uaiv-dataset h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
}

.uaiv-dataset p {
  color: #667085;
  line-height: 1.65;
}

.dataset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dataset-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.dataset-links a:hover {
  border-color: #2f80ed;
  background: #eff6ff;
}

.dataset-highlights {
  display: grid;
  gap: 10px;
}

.dataset-highlights div {
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}

.dataset-highlights span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
}

.dataset-highlights strong {
  color: #101828;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.home-flow ol {
  margin: 0;
  display: grid;
  gap: 8px;
  color: #344054;
}

.public-ready {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.public-ready p {
  margin: 8px 0 0;
  color: #475467;
  line-height: 1.75;
}

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

.public-ready-grid div {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
  min-width: 0;
}

.public-ready-grid strong,
.public-ready-grid span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.public-ready-grid strong {
  color: #101828;
  font-size: 13px;
  margin-bottom: 6px;
}

.public-ready-grid span {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.offline-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 18px;
  padding: 20px;
}

.offline-flow p {
  margin: 8px 0 0;
  color: #475467;
  line-height: 1.75;
}

.offline-flow ol {
  margin: 0;
  display: grid;
  gap: 8px;
  color: #344054;
}

.offline-flow code {
  color: #175cd3;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* Workbench polish for production annotation. Keep the app calm, readable, and dense. */
.summary-grid {
  grid-template-columns: repeat(5, minmax(118px, 1fr));
}

.summary-card {
  min-height: 64px;
  padding: 10px 12px;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  border-color: #d0d5dd;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.summary-card span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.summary-card strong {
  color: #101828;
  font-size: 22px;
  line-height: 1;
}

.list-panel .panel-head h2,
.list-panel > h2 {
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}

.image-list {
  gap: 10px;
}

.image-item {
  padding: 12px;
  border-color: #d0d5dd;
  background: #ffffff;
}

.image-item:hover,
.image-item.active {
  border-color: #175cd3;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(23, 92, 211, 0.08);
}

.image-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  color: #101828;
  font-size: 13px;
  line-height: 1.35;
}

.image-title span:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.image-meta {
  color: #475467;
  line-height: 1.55;
}

.image-meta span {
  margin-right: 10px;
}

.source-badge.actual {
  border-color: #b2ddff;
  background: #eff8ff;
  color: #175cd3;
}

.task-assist,
.inspector-task-panel,
.task-guide-card {
  border-color: #d0d5dd;
  background: #ffffff;
}

.task-assist-main strong,
.task-guide-card summary,
.inspector-task-summary {
  color: #101828;
}

.task-assist-main p,
.task-guide-body,
.inspector-required-fields,
.inspector-required-fields span {
  color: #475467;
}

.task-assist-steps span,
.inspector-required-fields div,
.task-guide-body div {
  border-color: #d0d5dd;
  background: #f9fafb;
  color: #344054;
}

.toolbar-main-row {
  grid-template-columns: minmax(0, 0.72fr) minmax(270px, 1.28fr) minmax(0, 0.72fr) 82px;
  align-items: stretch;
}

.toolbar-group {
  border-color: #d0d5dd;
  background: #f9fafb;
}

.target-actions {
  grid-template-columns: minmax(92px, 0.9fr) 48px 72px;
}

.three-actions {
  grid-template-columns: repeat(3, minmax(58px, 1fr));
}

.target-actions #drawBoxMode,
.target-actions #addBox {
  display: none;
}

.toolbar #newBoxLabel {
  min-width: 92px;
}

.toolbar #rotationAngle {
  padding: 0 6px;
  text-align: center;
}

.toolbar button {
  color: #344054;
  border-color: #cfd6e2;
  background: #ffffff;
}

.toolbar button:hover {
  border-color: #175cd3;
  background: #eff6ff;
  color: #175cd3;
  box-shadow: none;
}

.toolbar .primary-save {
  height: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #175cd3;
  background: #175cd3;
  color: #ffffff;
}

.save-tools,
.save-tools .tool-controls {
  align-items: stretch;
}

.edit-actions {
  grid-template-columns: minmax(90px, 1fr) repeat(4, minmax(52px, 0.62fr));
}

.wide-edit-actions {
  grid-template-columns: minmax(110px, 1.08fr) repeat(5, minmax(52px, 0.62fr));
}

.mode-operator .panel-note,
.mode-operator .annotation-module .hint {
  display: none;
}

.mode-operator .advanced-tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  grid-auto-rows: minmax(76px, auto);
}

.mode-operator.task-object-detection-only .ocr-tools,
.mode-operator.task-object-detection-only .region-tools,
.mode-operator.task-object-detection-only .sam-tools {
  display: none !important;
}

.mode-operator.task-object-detection-only .advanced-tools {
  display: grid;
  gap: 0;
}

.mode-operator.task-object-detection-only .advanced-tools-grid {
  grid-template-columns: minmax(0, 1fr);
}

.mode-operator.task-object-detection-only [data-task-panel]:not([data-task-panel="object_detection"]) {
  display: none !important;
}

.mode-operator.task-object-detection-only .inspector .annotation-module:not([data-task-field*="object_detection"]) {
  display: none !important;
}

.mode-operator .annotation-module {
  padding: 8px;
  gap: 6px;
}

.mode-operator .review-sticky-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-operator .layout {
  grid-template-columns: minmax(320px, 370px) minmax(560px, 1fr) minmax(300px, 350px);
}

.mode-operator .sidebar,
.mode-operator .inspector {
  min-width: 0;
}

.mode-operator .toolbar-main-row {
  grid-template-columns: minmax(0, 0.7fr) minmax(240px, 1.2fr) minmax(0, 0.72fr) 82px;
}

.admin-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-dashboard-meta {
  margin-bottom: 10px;
  color: #475467;
  font-size: 12px;
}

.admin-group-table {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.admin-group-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
}

.admin-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-group-head strong {
  color: #101828;
  font-size: 13px;
}

.admin-group-head span {
  color: #475467;
  font-size: 12px;
}

.admin-group-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e4e7ec;
}

.admin-group-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #175cd3, #53b1fd);
}

.admin-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #475467;
  font-size: 12px;
}

.edit-actions #selectedObjectLabel:disabled {
  color: #98a2b3;
  background: #f2f4f7;
}

.edit-actions button {
  min-width: 0;
}

.object-row {
  grid-template-columns: 34px minmax(92px, 1.4fr) repeat(4, minmax(36px, 0.48fr)) minmax(42px, 0.55fr) 28px 28px 28px;
  gap: 5px;
}

.object-row input {
  min-height: 30px;
  border-color: #d0d5dd;
  color: #344054;
  background: #ffffff;
}

.object-row .obj-label {
  min-width: 92px;
}

@media (max-width: 1520px) {
  .mode-operator .layout {
    grid-template-columns: minmax(300px, 340px) minmax(480px, 1fr) minmax(280px, 320px);
  }

  .mode-operator .advanced-tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.qa-result-card {
  color: #344054;
}

.qa-result-card h3 {
  color: #101828;
}

.qa-result-option {
  border-color: #d0d5dd;
  background: #ffffff;
  color: #344054;
}

.qa-result-option b {
  color: #175cd3;
}

.qa-result-option.answer {
  border-color: #abefc6;
  background: #ecfdf3;
}

.qa-result-option.pred {
  border-color: #b2ddff;
  background: #eff8ff;
}

.qa-answer-grid div {
  border-color: #d0d5dd;
  background: #f9fafb;
}

.qa-answer-grid span,
.qa-result-card > span {
  color: #475467;
  font-weight: 700;
}

.qa-answer-grid strong {
  color: #101828;
  font-size: 18px;
}

.qa-result-card pre {
  border-color: #d0d5dd;
  background: #f9fafb;
  color: #344054;
}

.upload-summary,
.filter-help,
.empty-row {
  color: #475467;
  border-color: #d0d5dd;
  background: #f9fafb;
}

.layout {
  grid-template-columns: 390px minmax(0, 1fr) 370px;
}

.sidebar {
  max-height: calc(100vh - 100px);
}

.list-panel {
  min-height: 560px;
  height: min(62vh, 720px);
}

.image-list {
  min-height: 480px;
}

.admin-import-panel:not([open]) {
  order: 4;
  border-color: #b2ddff;
  background: #eff8ff;
  padding: 8px 10px;
}

.admin-import-panel[open] {
  order: 4;
}

.admin-import-panel:not([open]) summary.panel-head h2 {
  color: #175cd3;
}

.admin-import-panel summary.panel-head {
  min-height: 34px;
}

.project-page-link {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
}

.project-page-link span {
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-page-link strong {
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.project-page-link a {
  color: #175cd3;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.review-sticky-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  padding: 8px;
  border-color: #d0d5dd;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.review-sticky-bar label {
  display: grid;
  grid-template-rows: auto 34px;
  grid-column: 1 / -1;
  gap: 4px;
  margin: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.review-sticky-bar select {
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  color: #101828;
  background: #ffffff;
  border-color: #d0d5dd;
}

.review-sticky-bar button,
#confirmAndNext {
  min-width: 0;
  min-height: 38px;
  height: 38px;
  align-self: stretch;
  padding: 0 8px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
  border-color: #175cd3;
  background: #175cd3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

#confirmAndNext {
  border-color: #1570ef;
  background: #1570ef;
}

#nextUnlabeledSticky {
  border-color: #344054;
  background: #344054;
}

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: 350px minmax(0, 1fr);
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(118px, 1fr));
  }
}

@media (max-width: 980px) {
  body {
    padding-left: 0;
  }

  .project-rail {
    position: static;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    padding: 10px;
  }

  .rail-brand {
    width: auto;
    border-bottom: 0;
    padding: 0 10px;
  }

  .rail-item {
    width: auto;
    min-height: 32px;
  }

  .rail-footer {
    display: none;
  }

  .home-hero,
  .home-flow,
  .home-advantages,
  .uaiv-dataset,
  .public-ready,
  .offline-flow,
  .home-task-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
  }

.toolbar-main-row,
.target-actions,
.edit-actions {
    grid-template-columns: 1fr;
  }
}

.mode-operator .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .mode-operator .summary-grid {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
  }

  .mode-operator .layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .mode-operator .inspector {
    grid-column: 1 / -1;
  }

  .admin-dashboard-actions,
  .admin-dashboard-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .mode-operator .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
