:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #dbe4f0;
  --line-strong: #c8d4e5;
  --text: #1f3147;
  --muted: #6e7f96;
  --primary: #1c63f2;
  --primary-dark: #1449c8;
  --primary-soft: #e8f0ff;
  --success: #1f9d67;
  --success-soft: #e8fbf2;
  --warning: #d38a1f;
  --warning-soft: #fff5e5;
  --danger: #d84d3a;
  --danger-soft: #fff0eb;
  --ink-strong: #112136;
  --shadow-lg: 0 28px 72px rgba(21, 39, 70, 0.14);
  --shadow-md: 0 16px 40px rgba(21, 39, 70, 0.1);
  --shadow-sm: 0 8px 24px rgba(21, 39, 70, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: 0.18s ease;
  --client-topbar-height: 56px;
  --client-sidebar-width: 132px;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(28, 99, 242, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(18, 140, 120, 0.08), transparent 24%),
    linear-gradient(180deg, #edf3fa 0%, #f5f7fb 18%, #f7f9fc 100%);
}

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

button {
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), border-color var(--transition), background var(--transition);
}

button:not([disabled]) {
  cursor: pointer;
}

button:not([disabled]):hover {
  transform: translateY(-1px);
}

button[disabled] {
  opacity: 0.42;
  filter: grayscale(0.35);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: auto;
}

input,
select {
  height: 44px;
  padding: 0 14px;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 15px 14px;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
}

thead th {
  color: var(--muted);
  background: #f7faff;
  font-size: 13px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.client-body,
.platform-body {
  height: 100vh;
  overflow: hidden;
}

.muted,
.helper-text,
.page-desc,
.hero-desc {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.76);
}

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

.brand-logo {
  font-size: 30px;
  font-style: italic;
  font-weight: 800;
  color: var(--primary);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-strong);
}

.brand-light .brand-logo,
.brand-light .brand-name {
  color: #fff;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.demo-btn,
.danger-btn,
.status-pill,
.top-nav-item,
.nav-item,
.sub-tab,
.settings-tab,
.wizard-step,
.tool-action-btn,
.table-btn {
  border: none;
  border-radius: var(--radius-sm);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.demo-btn,
.danger-btn,
.status-pill {
  padding: 11px 18px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3f8bff 100%);
  box-shadow: 0 12px 28px rgba(28, 99, 242, 0.24);
}

.secondary-btn {
  color: var(--primary);
  background: var(--primary-soft);
}

.ghost-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.text-btn {
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.text-btn:hover {
  color: var(--primary);
}

.demo-btn {
  color: #8a5400;
  background: rgba(255, 205, 92, 0.14);
  border: 1px dashed rgba(186, 126, 16, 0.58);
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
}

.ghost-btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.danger-btn {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-pill {
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.primary-btn[disabled],
.secondary-btn[disabled],
.ghost-btn[disabled],
.demo-btn[disabled],
.danger-btn[disabled],
.status-pill[disabled],
.tool-action-btn[disabled],
.table-btn[disabled] {
  opacity: 0.48;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

.app-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.workspace-layout {
  display: grid;
  grid-template-columns: var(--client-sidebar-width) minmax(0, 1fr);
  height: calc(100vh - var(--client-topbar-height));
  min-height: 0;
  overflow: hidden;
}

.client-shell.is-runtime-focus .workspace-layout {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.client-sidebar {
  background: linear-gradient(180deg, #064abf 0%, #155bd4 42%, #5a16d8 100%);
}

.client-shell.is-runtime-focus .client-sidebar {
  display: none;
}

.sidebar-demo-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.sidebar-demo-panel .demo-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 10px 8px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(126, 99, 255, 0.72), rgba(62, 93, 236, 0.36));
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(16, 49, 151, 0.18);
}

.nav-item.is-active {
  border-color: rgba(151, 126, 255, 0.9);
  background: linear-gradient(180deg, #7f5bff 0%, #326df2 100%);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(154, 142, 255, 0.46), 0 16px 32px rgba(24, 52, 156, 0.28);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: currentColor;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell {
  padding: 22px 24px 28px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.client-shell.is-runtime-focus .page-shell {
  padding: 18px 24px 24px;
}

.page {
  display: none;
  min-height: 0;
  height: 100%;
}

.page.is-active {
  display: flex;
  flex-direction: column;
}

.page-header,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-header {
  flex: 0 0 auto;
  margin-bottom: 22px;
}

.page-title-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.runtime-page-title {
  gap: 14px;
  min-width: 0;
}

.runtime-page-title h1 {
  margin: 0;
}

.runtime-mode-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9e4f1;
  border-radius: 6px;
  color: #5e7088;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.runtime-mode-text strong {
  color: #263a52;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.runtime-page-header {
  align-items: center;
  margin-bottom: 16px;
}

.runtime-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.runtime-back-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid #ccd8e6;
  border-radius: 6px;
  color: #33465e;
  background: #fff;
  cursor: pointer;
}

.runtime-back-btn:hover {
  border-color: #94afd0;
  color: var(--primary);
  background: #f6f9fd;
}

.runtime-back-btn svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runtime-end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 88px;
  padding: 0 22px;
  border-radius: 6px;
  color: #fff;
  background: #e54848;
  box-shadow: 0 10px 20px rgba(229, 72, 72, 0.22);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.runtime-end-btn:hover {
  background: #d83b3b;
}

.section-head {
  margin-bottom: 18px;
}

.section-head-tight {
  margin-bottom: 14px;
}

.toolbar-row,
.toolbar-left,
.toolbar-right,
.topbar-actions,
.wizard-footer,
.wizard-footer-right,
.login-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toolbar-row {
  flex: 0 0 auto;
  justify-content: space-between;
  margin-bottom: 18px;
}

.login-actions {
  width: 100%;
}

.login-actions .primary-btn {
  flex: 1 1 auto;
}

.toolbar-row-wrap {
  flex-wrap: wrap;
}

.toolbar-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
}

.toolbar-range span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.toolbar-left,
.toolbar-right {
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar-left {
  flex: 1 1 auto;
}

.toolbar-right {
  flex: 0 0 auto;
}

.toolbar-left input,
.toolbar-left select {
  min-width: 0;
  flex: 0 1 152px;
}

.toolbar-right button {
  white-space: nowrap;
}

#platformKeywordInput,
#cameraKeywordInput,
#recordKeywordInput,
#recordStartTimeInput,
#recordEndTimeInput,
#cameraDiscoveryKeyword,
#localModelKeywordFilter,
#selectorModelKeywordFilter,
#cloudModelKeywordFilter {
  flex: 1 1 220px;
  min-width: 180px;
}

#recordStartTimeInput,
#recordEndTimeInput {
  flex: 0 1 196px;
  min-width: 196px;
}

#platformStatusFilter,
#recordRunModeFilter,
#recordBusinessFilter,
#recordSuspiciousFilter,
#localSceneFilter,
#cloudSceneFilter {
  flex: 0 1 148px;
}

.card {
  padding: 22px;
  border: 1px solid rgba(219, 228, 240, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.page > .card {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.page > .card thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.capture-config-card {
  max-width: 860px;
}

.capture-action-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.capture-runtime-card {
  min-height: 420px;
}

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

.summary-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 156px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
  border: 1px solid #d9e4f5;
  box-shadow: var(--shadow-sm);
}

.summary-card-body {
  display: flex;
  flex-direction: column;
}

.summary-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.summary-value {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink-strong);
}

.summary-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.summary-card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.summary-action-btn {
  padding: 10px 16px;
}

.banner {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  line-height: 1.7;
}

.banner + .banner {
  margin-top: 10px;
}

.banner-neutral {
  color: var(--text);
  background: #f3f6fb;
  border-color: #dde5f0;
}

.banner-warning {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #f4dab2;
}

.banner-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f4cfc7;
}

.banner-success {
  color: var(--success);
  background: var(--success-soft);
  border-color: #bfe8d4;
}

.banner-primary {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #c8dafc;
}

.meta-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 12px;
  column-gap: 16px;
}

.compact-meta {
  margin-top: 22px;
  grid-template-columns: 100px 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span {
  font-size: 14px;
  font-weight: 700;
}

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

.single-column {
  grid-template-columns: 1fr;
}

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

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: rgba(208, 70, 53, 0.48);
  box-shadow: 0 0 0 3px rgba(208, 70, 53, 0.12);
}

.error-text {
  color: var(--danger);
  line-height: 1.6;
}

.field-error {
  margin: -2px 0 0;
  font-size: 13px;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: #edf2f8;
}

.empty-state {
  padding: 40px 18px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.table-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, #fff 42%);
}

.pagination-summary {
  color: var(--muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.page-btn {
  appearance: none;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: #b8cceb;
  background: #f6f9ff;
}

.page-btn.is-active {
  border-color: rgba(28, 99, 242, 0.28);
  background: #edf4ff;
  color: var(--primary);
}

.page-btn:disabled {
  color: #9aacbf;
  background: #f5f7fb;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef3fb;
  color: var(--text);
}

.result-with-exception {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.exception-hint {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 999px;
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.reference-status {
  font-size: 13px;
  font-weight: 700;
}

.reference-status.is-referenced {
  color: var(--primary);
}

.reference-status.is-idle {
  color: var(--muted);
}

.status-online {
  color: var(--success);
  background: var(--success-soft);
}

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.result-pill.is-ok {
  background: #20a66a;
}

.result-pill.is-ng {
  background: #e44a4a;
}

.result-pill.is-neutral {
  background: #708097;
}

.status-offline {
  color: #708097;
  background: #eef2f7;
}

.status-pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-primary {
  color: var(--primary);
  background: var(--primary-soft);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 460px;
  height: 100vh;
  min-height: 0;
  overflow: auto;
}

.login-hero {
  padding: 54px 56px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at 78% 28%, rgba(80, 196, 168, 0.22), transparent 24%),
    linear-gradient(135deg, #132f72 0%, #1951bb 48%, #1f74f0 100%);
}

.login-copy {
  max-width: 720px;
  margin-top: 0;
}

.demo-floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 46;
}

.demo-floating-trigger {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  color: #66788f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(21, 39, 66, 0.14);
}

.demo-floating-trigger svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-floating.is-open .demo-floating-trigger,
.demo-floating-trigger:hover {
  color: var(--primary);
  border-color: #b9cff2;
  background: #fff;
}

.demo-floating-panel {
  position: absolute;
  left: 0;
  bottom: 76px;
  width: 330px;
  padding: 22px 22px 20px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  color: #263a52;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 54px rgba(18, 36, 63, 0.18);
  backdrop-filter: blur(10px);
}

.demo-floating-panel[hidden] {
  display: none;
}

.demo-floating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.demo-floating-head strong {
  color: #4b5d72;
  font-size: 22px;
  font-weight: 900;
}

.demo-floating-head .icon-btn {
  width: 34px;
  height: 34px;
  color: #718196;
  background: transparent;
}

.demo-floating-head .icon-btn svg {
  width: 22px;
  height: 22px;
}

.demo-floating-panel p {
  margin: 0 0 16px;
  color: #6d7f94;
  font-size: 13px;
  line-height: 1.6;
}

.demo-floating-reset {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e4f5;
  background: #f5f9ff;
}

.demo-floating-feedback {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: #1c8a55;
  font-size: 13px;
  font-weight: 900;
}

.demo-panel-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.demo-panel-label-light {
  color: rgba(255, 255, 255, 0.76);
}

.login-demo-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 220px;
}

.demo-btn.is-active {
  color: #fff0cf;
  background: rgba(255, 205, 92, 0.24);
  border-color: rgba(255, 218, 144, 0.76);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  font-size: 36px;
}

.login-text-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-text-hint.is-success {
  color: var(--success);
  font-weight: 800;
}

.client-topbar,
.platform-topbar {
  height: var(--client-topbar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.client-topbar {
  color: #fff;
  background: linear-gradient(90deg, #0f3e96 0%, #1851c6 42%, #1f74f0 100%);
  box-shadow: 0 12px 30px rgba(15, 61, 149, 0.22);
}

.client-topbar .brand {
  gap: 10px;
}

.client-topbar .brand-logo {
  font-size: 24px;
}

.client-topbar .brand-name {
  font-size: 18px;
}

.platform-topbar {
  height: 84px;
  padding: 0 28px;
}

.client-topbar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
}

.client-topbar-alerts {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.client-topbar-alerts:empty {
  display: none;
}

.topbar-company {
  min-width: 0;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.topbar-inline-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.topbar-inline-alert-action {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.92;
}

.topbar-inline-alert-warning {
  color: #ffe2a8;
  background: rgba(255, 191, 93, 0.18);
}

.topbar-inline-alert-danger {
  color: #ffd1c8;
  background: rgba(216, 77, 58, 0.2);
}

.topbar-inline-alert-neutral {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.client-network-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.client-network-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.client-network-status.is-online {
  color: #c9ffe2;
  background: transparent;
}

.client-network-status.is-offline {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.topbar-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.client-topbar .demo-btn {
  color: #ffe5ab;
  background: rgba(255, 205, 92, 0.1);
  border-color: rgba(255, 205, 92, 0.46);
}

.platform-shell {
  background: transparent;
}

.platform-topbar {
  border-bottom: 1px solid rgba(215, 225, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.platform-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.platform-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #1f67f5 0%, #154ac9 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.platform-main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-item {
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
}

.top-nav-item.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.platform-main {
  padding: 28px 30px 36px;
}

.inline-metric {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 14px;
  font-weight: 700;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-card-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding-right: 6px;
  overscroll-behavior: contain;
}

#toolOverviewPanel,
#toolBuilderPanel,
#toolRuntimePanel,
#toolIoConfigPanel {
  min-height: 0;
  height: 100%;
}

#toolOverviewPanel:not([hidden]),
#toolBuilderPanel:not([hidden]),
#toolRuntimePanel:not([hidden]),
#toolIoConfigPanel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.tool-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 176px;
  padding: 18px;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  cursor: pointer;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -30px auto;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.tone-blue {
  background: linear-gradient(135deg, #2b84ff 0%, #63aaff 100%);
}

.tone-green {
  background: linear-gradient(135deg, #28a869 0%, #56cb8c 100%);
}

.tone-orange {
  background: linear-gradient(135deg, #ff9832 0%, #ffbf63 100%);
}

.tone-gray {
  color: #fff;
  background: linear-gradient(135deg, #5d7089 0%, #8498b2 100%);
}

.tone-cyan {
  color: #fff;
  background: linear-gradient(135deg, #0580aa 0%, #31afc3 100%);
}

.tool-card-top,
.tool-card-actions,
.subresult-item,
.builder-item,
.cloud-model-card,
.cloud-version-row,
.record-sub-card,
.camera-row-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-card-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
}

.tool-card-top {
  align-items: center;
}

.tool-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: 21px;
}

.tool-card-actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
  justify-content: flex-end;
}

.tool-card-runtime-row {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
}

.tool-card-runtime-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.tool-card-runtime-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.tone-gray .tool-card-runtime-state {
  color: #d8ffea;
}

.tool-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.18);
}

.tool-card-status.is-invalid {
  color: #d84d3a;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(216, 77, 58, 0.18);
}

.tool-card-status-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 12px;
  line-height: 1;
}

.tool-card-action-group {
  display: inline-flex;
  gap: 8px;
}

.tool-action-btn,
.table-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
}

.tone-gray .tool-action-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tool-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  border-radius: 12px;
}

.tool-icon-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-btn {
  background: #eff4fb;
}

.table-btn-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.table-btn-primary {
  color: var(--primary);
  background: var(--primary-soft);
}

.table-btn-neutral {
  color: var(--text);
  background: #f1f4f8;
}

.row-selected td {
  background: #edf4ff;
}

.io-config-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.io-config-tabs {
  display: flex;
  gap: 10px;
}

.io-config-toolbar,
.io-config-row,
.io-config-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.io-config-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

.io-module-select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
}

.io-module-select span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.readonly-field {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #f6f9fd;
  font-weight: 700;
}

.tool-io-module-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tool-io-module-switcher {
  display: flex;
  flex: 1;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  overflow: auto;
  padding: 4px;
  border: 1px solid #dbe6f2;
  border-radius: 18px;
  background: #f6f9fd;
}

.tool-io-module-actions,
.tool-io-module-empty-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-io-module-empty-top {
  justify-content: flex-end;
  margin-bottom: 18px;
}

.tool-io-module-tab {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 150px;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}

.tool-io-module-tab.is-active {
  border-color: #dbe6f2;
  background: #fff;
  box-shadow: inset 0 3px 0 var(--primary);
}

.tool-io-module-tab span {
  color: var(--ink-strong);
  font-weight: 800;
}

.tool-io-module-tab small {
  color: var(--muted);
  font-size: 12px;
}

.tool-io-module-add {
  min-width: 124px;
  padding: 0 16px;
  border: 0;
  color: var(--primary);
  background: #fff;
  font-weight: 800;
}

.danger-btn-soft {
  color: var(--danger);
  background: var(--danger-soft);
}

.platform-system-body {
  min-width: 1180px;
  color: #2f3338;
  background: #fff;
}

.platform-system-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.platform-system-topbar {
  flex: 0 0 78px;
  display: flex;
  align-items: stretch;
  border: 1px solid #d2d8e2;
  border-bottom: 1px solid #d7e0eb;
  border-radius: 10px 10px 0 0;
  background: #fff;
  overflow: hidden;
}

.platform-system-brand {
  flex: 0 0 294px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.platform-system-logo {
  width: 68px;
  height: 68px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(180deg, #0d74ff 0%, #571dff 100%);
}

.platform-system-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #0b55d9;
  white-space: nowrap;
}

.platform-system-wordmark strong {
  font-size: 24px;
  font-style: italic;
  letter-spacing: 0;
}

.platform-system-wordmark span {
  font-size: 21px;
  font-weight: 900;
}

.platform-system-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.platform-system-nav-item {
  min-width: 108px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: #1e2329;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
}

.platform-system-nav-item.is-active {
  color: #0053d6;
  background: #edf4ff;
  box-shadow: inset 0 -3px 0 #0057d8;
}

.platform-system-user {
  flex: 0 0 auto;
  margin: 0 30px 0 20px;
  align-self: center;
  border: 0;
  color: #0053d6;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.platform-system-layout {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  border: 1px solid #d2d8e2;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.platform-system-sidebar {
  flex: 0 0 294px;
  padding: 24px 22px;
  border-right: 1px solid #dce4ef;
  background: #fafcff;
}

.platform-system-sidebar h2 {
  margin: 0 0 18px;
  font-size: 21px;
}

.platform-side-list {
  display: grid;
  gap: 10px;
}

.platform-side-item {
  height: 56px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 14px;
  border-radius: 6px;
  color: #0060df;
  background: #dbe9ff;
  font-size: 16px;
  font-weight: 800;
}

.side-dot {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: #0060df;
}

.platform-system-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0 22px 24px;
  overflow: auto;
  background: #fff;
}

.platform-hero {
  min-height: 374px;
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr minmax(480px, 0.72fr);
  align-items: center;
  gap: 60px;
  padding: 34px 66px;
  border-radius: 10px;
  background: linear-gradient(100deg, #eaf6ff 0%, #eef2ff 50%, #fde8fb 100%);
}

.platform-hero h1 {
  margin: 0 0 12px;
  color: #0051cf;
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: 0;
}

.platform-hero p {
  margin: 0;
  color: #5f8ee8;
  font-size: 24px;
  font-weight: 800;
}

.platform-hero-card {
  min-height: 320px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 76px;
  padding: 44px 56px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #93d8ff 0%, #6281f7 100%);
}

.platform-hero-card strong {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
}

.platform-hero-card span {
  font-size: 25px;
  font-weight: 900;
}

.platform-hero-card b {
  position: absolute;
  right: 52px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 108px;
  line-height: 1;
}

.platform-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #dce4ef;
}

.platform-home-panel {
  padding: 18px 22px;
  min-width: 0;
}

.platform-home-panel + .platform-home-panel {
  border-left: 1px solid #dce4ef;
}

.platform-home-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.platform-count-strip {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  background: linear-gradient(90deg, #e9fbfb 0%, #f4f5ff 100%);
}

.platform-count-strip strong {
  color: #1479ff;
  font-size: 42px;
  line-height: 1;
}

.platform-count-strip span {
  color: #0a51c6;
  font-size: 18px;
  font-weight: 900;
}

.platform-count-strip i {
  width: 1px;
  height: 20px;
  background: #bec9d8;
}

.terminal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.terminal-mini-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px;
  border-radius: 8px;
  background: #f3f7fe;
}

.terminal-mini-card div {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.terminal-mini-card strong {
  font-size: 20px;
}

.terminal-mini-card span {
  color: #60666d;
  font-size: 16px;
}

.plain-status {
  flex: 0 0 auto;
  min-width: 82px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dce4;
  border-radius: 5px;
  color: #525860;
  background: #fff;
}

.library-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  padding: 22px 0;
}

.home-library-grid {
  padding-top: 12px;
}

.library-folder-card {
  min-height: 186px;
  display: grid;
  grid-template-rows: auto auto 1px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 26px 26px;
  border-radius: 8px;
  background: #f2f7ff;
  cursor: pointer;
}

.library-folder-card strong {
  font-size: 20px;
}

.library-folder-card span {
  color: #8a8f96;
  font-size: 16px;
}

.library-folder-card div {
  margin: 6px 0 10px;
  background: #d3d9e3;
}

.library-folder-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  align-self: end;
}

.platform-breadcrumb {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dce4ef;
  color: #90969e;
  font-size: 16px;
  font-weight: 700;
}

.platform-breadcrumb span:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: #b2b9c2;
}

.platform-table-page,
.platform-library-page,
.folder-detail-page {
  min-height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 14px;
}

.platform-toolbar,
.folder-toolbar,
.library-title-row,
.folder-title-row,
.client-title-row,
.training-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.toolbar-left,
.toolbar-right,
.folder-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.platform-toolbar select,
.platform-toolbar input,
.folder-toolbar select {
  height: 46px;
  min-width: 320px;
  padding: 0 16px;
  border: 1px solid #d9e2ee;
  border-radius: 5px;
  color: #5b626b;
  background: #fff;
  font-size: 16px;
}

.platform-toolbar input {
  width: 320px;
}

.platform-table-wrap {
  min-height: 0;
  overflow: auto;
}

.platform-data-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
}

.platform-data-table th,
.platform-data-table td {
  min-height: 58px;
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
  color: #646a72;
  font-size: 16px;
}

.platform-data-table th {
  color: #2f3338;
  background: #eef3fb;
  font-weight: 900;
}

.platform-data-table tbody tr:nth-child(even) td {
  background: #f5f8fe;
}

.platform-data-table tbody tr:hover td {
  background: #eef5ff;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.table-actions button {
  padding: 0;
  border: 0;
  color: #005bd8;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.table-actions .danger-link,
.danger-link {
  color: #ff2b35;
}

.platform-table-footer {
  min-height: 58px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid #dce4ef;
  color: #30343a;
  font-size: 16px;
}

.pager-current {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  background: #005bd8;
  font-weight: 900;
}

.training-status {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  font-weight: 800;
}

.training-status.is-done {
  color: #43c41e;
  border: 1px solid #c7f4a8;
  background: #f0ffe7;
}

.training-status.is-pending {
  color: #999;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
}

.training-meta {
  margin-left: 18px;
  color: #9b9b9b;
}

.training-workspace {
  min-height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 14px;
}

.training-top-actions {
  justify-content: flex-start;
}

.training-tip {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 1px solid #a8d8ff;
  border-radius: 5px;
  color: #3997ff;
  background: #e9f6ff;
  font-weight: 900;
}

.training-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 492px minmax(0, 1fr);
  gap: 22px;
}

.training-image-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce4ef;
  overflow: hidden;
}

.training-tabs {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.training-tabs button {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #dce4ef;
  color: #545b64;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}

.training-tabs button.is-active {
  color: #ffb000;
  box-shadow: inset 0 2px 0 #005bd8;
}

.training-list-header,
.training-image-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 28px;
}

.training-list-header {
  color: #30343a;
  background: #eef3fb;
  font-weight: 900;
}

.training-group {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  color: #5f6670;
  font-weight: 900;
}

.training-image-row {
  color: #333940;
  border-top: 1px solid #eef1f5;
  font-size: 17px;
}

.training-image-row.is-active {
  background: #edf4ff;
}

.training-image-row button {
  padding: 0;
  border: 0;
  background: transparent;
}

.training-batch-btn {
  height: 54px;
  margin-top: auto;
  border-radius: 0;
  border: 0;
  border-top: 1px solid #dce4ef;
  color: #005bd8;
  background: #fff;
  font-size: 16px;
  font-weight: 900;
}

.annotation-stage {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 62px 30px;
  background: #e9eaec;
  overflow: auto;
}

.annotation-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cfd6df;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 4px 0;
  background: #fff;
  color: #67707a;
  font-weight: 800;
}

.annotation-toolbar span {
  min-width: 24px;
  text-align: center;
}

.annotation-toolbar .active-tool {
  color: #ff5060;
  border: 1px solid #ffb7c1;
  border-radius: 4px;
  background: #fff0f3;
}

.annotation-canvas {
  position: relative;
  width: min(100%, 1070px);
  min-height: 520px;
  display: grid;
  place-items: center;
}

.annotation-canvas img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.annotation-label {
  position: absolute;
  top: 12px;
  left: 0;
  width: 336px;
  padding: 16px 10px 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18, 31, 48, 0.15);
}

.annotation-label div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 14px;
  border-bottom: 1px solid #e5e8ed;
}

.annotation-label strong {
  flex: 1;
  color: #005bd8;
}

.annotation-label button {
  border: 0;
  color: #ff2b35;
  background: transparent;
}

.annotation-label > button {
  width: 100%;
  height: 42px;
  color: #626973;
}

.red-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff2533;
}

.annotation-finish-btn {
  width: 330px;
  height: 118px;
  margin-top: 16px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0754d7;
  box-shadow: 0 8px 22px rgba(0, 82, 210, 0.22);
}

.annotation-finish-btn strong {
  font-size: 28px;
}

.annotation-finish-btn span {
  font-size: 14px;
  font-weight: 800;
}

.library-title-row,
.folder-title-row,
.client-title-row {
  min-height: 70px;
  border-bottom: 1px solid #dce4ef;
}

.library-title-row h1,
.folder-title-row h1,
.client-title-row h1 {
  margin: 0;
  font-size: 24px;
}

.library-toolbar,
.folder-toolbar {
  min-height: 56px;
  border-bottom: 1px solid #dce4ef;
}

.segmented-control {
  display: inline-flex;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #edf2fa;
}

.segmented-control button {
  min-width: 64px;
  height: 44px;
  border: 0;
  border-radius: 0;
  color: #939aa3;
  background: transparent;
  font-weight: 900;
}

.segmented-control button.is-active {
  color: #1677ff;
  background: #eaf2ff;
}

.folder-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  border: 0;
  color: #5f6670;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.folder-icon {
  width: 43px;
  height: 31px;
  position: relative;
  display: inline-block;
  border-radius: 3px;
  background: linear-gradient(180deg, #83c9ff 0%, #4b93e6 100%);
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 20px;
  height: 8px;
  border-radius: 3px 3px 0 0;
  background: #4b93e6;
}

.folder-title-row {
  justify-content: flex-start;
  gap: 42px;
}

.back-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  color: #222831;
  background: transparent;
  font-size: 38px;
  line-height: 1;
}

.image-file-cell {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  color: #005bd8;
  font-weight: 800;
}

.image-file-cell img {
  width: 44px;
  height: 28px;
  object-fit: cover;
}

.folder-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0;
}

.folder-image-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f2;
  border-radius: 6px;
  background: #fff;
}

.folder-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f4f7fb;
}

.folder-image-card strong {
  min-width: 0;
  color: #005bd8;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-image-card span {
  color: #7c848e;
  font-size: 13px;
}

.platform-status-badge {
  min-width: 80px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d8dce3;
  color: #515861;
  background: #fff;
  font-weight: 800;
}

.platform-status-badge.is-online {
  color: #20a15a;
  border-color: #b8efcf;
  background: #f1fff6;
}

.hardware-code {
  word-break: break-all;
  line-height: 1.5;
}

.inline-metric {
  font-size: 15px;
}

.tool-io-module-detail {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(280px, 0.65fr) minmax(280px, 0.65fr);
  gap: 18px;
  height: 560px;
  min-height: 560px;
  align-items: stretch;
}

.tool-io-module-image-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  border: 1px solid #dce7f3;
  border-radius: 20px;
  background: #fbfdff;
  overflow: hidden;
}

.tool-io-module-head,
.tool-io-stat-row,
.tool-io-section-head,
.io-point-bind-state {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-io-module-head {
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #dce7f3;
  border-radius: 18px;
  background: #fbfdff;
}

.tool-io-module-head div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-io-module-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.tool-io-module-head strong {
  color: var(--ink-strong);
  font-size: 20px;
}

.tool-io-stat-row {
  align-items: stretch;
}

.tool-io-stat-card {
  flex: 1;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dce7f3;
  border-radius: 18px;
  background: #fff;
}

.tool-io-stat-card span,
.tool-io-stat-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.tool-io-stat-card strong {
  color: var(--ink-strong);
  font-size: 28px;
}

.tool-io-point-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px;
  border: 1px solid #dce7f3;
  border-radius: 20px;
  background: #fbfdff;
  overflow: hidden;
}

.tool-io-section-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-io-section-head h4 {
  color: var(--ink-strong);
}

.tool-io-point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.io-config-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.io-config-row {
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #dde7f2;
  border-radius: 18px;
  background: #fbfdff;
}

.io-config-row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.io-config-row-main strong {
  color: var(--ink-strong);
}

.io-config-row-main span,
.io-config-row-meta span {
  color: var(--muted);
  font-size: 13px;
}

.io-config-row-meta {
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.io-config-row-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4fb;
}

.io-point-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.io-point-config-grid h3 {
  margin-bottom: 12px;
}

.io-point-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.io-point-field {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
}

.io-preset-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.io-preset-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 16px;
  background: #fbfdff;
}

.io-preset-option span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.io-preset-option em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.io-module-modal-layout {
  display: grid;
  grid-template-columns: 360px minmax(440px, 1fr);
  gap: 26px;
  align-items: start;
}

.io-module-schematic {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d8e4f2;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(28, 99, 242, 0.1), transparent 32%),
    #f8fbff;
}

.io-device-topline {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #183b74 0%, #2f6de2 100%);
}

.io-device-topline span {
  font-size: 18px;
  font-weight: 900;
}

.io-device-topline strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.io-device-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: 16px;
  background: #fff;
}

.io-device-body {
  display: grid;
  grid-template-columns: 108px 176px 108px;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}

.io-terminal-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.io-terminal-column > strong {
  color: var(--ink-strong);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.io-schematic-point {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 34px;
  padding: 7px;
  border: 1px solid #dce7f3;
  border-radius: 12px;
  background: #fff;
}

.io-schematic-point span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22px;
  border-radius: 8px;
  color: #fff;
  background: #28466f;
  font-size: 12px;
  font-weight: 900;
}

.io-terminal-input .io-schematic-point span {
  background: #1f6fbb;
}

.io-terminal-output .io-schematic-point span {
  background: #158464;
}

.io-schematic-point em {
  display: none;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.io-device-core {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 294px;
  padding: 16px 14px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    #20314a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.io-device-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.io-device-screen {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 12px;
  color: #d9f7ff;
  background: #071525;
  font-size: 13px;
  font-weight: 800;
}

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

.io-device-ports span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 11px;
  font-weight: 800;
}

.io-device-note {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.io-visual-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.io-module-visual {
  overflow: hidden;
  border: 1px solid #d9e4f3;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(28, 99, 242, 0.08), transparent 42%),
    #fbfdff;
}

.io-module-visual-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #dde7f2;
}

.io-module-visual-head span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.io-module-visual-head strong {
  flex: 1;
  color: var(--ink-strong);
}

.io-module-board {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.io-module-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(180deg, #183b74 0%, #2f6de2 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.io-module-rail span {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.io-module-rail em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
}

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

.io-point-cell {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #dce7f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.io-point-cell::before {
  content: none;
}

.io-point-cell.is-configured {
  border-color: rgba(28, 99, 242, 0.34);
  background: #f1f6ff;
  box-shadow: 0 10px 24px rgba(28, 99, 242, 0.08);
}

.io-point-cell.is-configured::before {
  border-color: var(--primary);
  background: var(--primary);
}

.io-point-cell strong {
  color: var(--ink-strong);
}

.io-point-cell > span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.io-point-bind-state {
  justify-self: end;
  justify-content: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.io-point-bind-state.is-bound {
  color: var(--primary);
  background: var(--primary-soft);
}

.io-point-bind-state.is-empty {
  color: var(--muted);
  background: #eef3f8;
}

.io-point-event-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.io-point-event-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.io-point-event-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.io-point-event-row {
  background: #fbfdff;
}

.io-point-event-row td,
.io-point-event-table th,
.io-event-empty-row td {
  border-top: 1px solid #dce7f3;
  border-bottom: 1px solid #dce7f3;
  background: #fbfdff;
}

.io-point-event-row td {
  display: table-cell;
  padding: 10px 12px;
  vertical-align: middle;
}

.io-point-event-row td:first-child,
.io-event-empty-row td:first-child {
  border-left: 1px solid #dce7f3;
  border-radius: 14px 0 0 14px;
}

.io-point-event-table.is-input .io-point-event-row td:first-child,
.io-point-event-table.is-input th:first-child {
  width: 64px;
  text-align: center;
}

.io-point-event-row td:last-child,
.io-event-empty-row td:last-child {
  border-right: 1px solid #dce7f3;
  border-radius: 0 14px 14px 0;
}

.io-point-event-table th {
  padding: 0 12px 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.io-point-event-row.is-dragging {
  opacity: 0.48;
}

.io-point-event-row select,
.io-point-event-row input {
  width: 100%;
  min-width: 0;
  height: 38px;
}

.io-point-event-row input {
  width: 96px;
}

.io-drag-handle {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 18px;
  font-weight: 800;
  cursor: grab;
}

.io-visual-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce7f3;
  border-radius: 20px;
  background: #fff;
}

.io-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.io-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f7fc;
}

.io-summary-row span {
  color: var(--muted);
  font-weight: 800;
}

.io-summary-row strong {
  text-align: right;
}

.tool-create-card {
  display: grid;
  place-items: center;
  min-height: 176px;
  border-radius: 20px;
  color: var(--primary);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 2px dashed #d2deef;
  box-shadow: none;
  font-size: 20px;
  font-weight: 800;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.wizard-step {
  padding: 14px 16px;
  color: var(--muted);
  background: #f2f5fa;
  font-weight: 800;
}

.wizard-step.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(28, 99, 242, 0.12);
}

.wizard-step.is-invalid {
  position: relative;
  color: var(--danger);
  background: #fff2ef;
  box-shadow: inset 0 0 0 1px rgba(208, 70, 53, 0.22);
}

.wizard-step.is-invalid::after {
  content: "!";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--danger);
}

.wizard-step.is-active.is-invalid {
  color: var(--danger);
  background: #ffe9e4;
  box-shadow: inset 0 0 0 1px rgba(208, 70, 53, 0.28);
}

.builder-body {
  min-height: 360px;
  flex: 1 1 auto;
  height: auto;
  overflow: hidden;
}

#builderStepBody {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.builder-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.builder-item {
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.builder-thumb {
  flex: 0 0 160px;
}

.builder-thumb-sample {
  display: flex;
  align-items: stretch;
}

.sample-preview-frame {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #d9e4f1;
  background: #f7fbff;
}

.sample-preview-frame.is-compact {
  min-height: 120px;
  width: 100%;
}

.sample-preview-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sample-preview-frame.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #101a28 0%, #19273d 100%);
}

.sample-preview-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 255, 188, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 255, 188, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.sample-preview-frame span {
  position: relative;
  z-index: 1;
}

.builder-item-main {
  min-width: 0;
  flex: 1;
}

.builder-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.builder-item-title strong {
  font-size: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.builder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  line-height: 1.7;
}

.builder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-error-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--danger);
}

.selection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
  cursor: pointer;
}

.selection-item-copy {
  min-width: 0;
  flex: 1;
}

.selection-item-copy strong {
  display: block;
  margin-bottom: 6px;
}

.selection-item-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.selection-item-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.model-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: center;
}

.model-picker-value {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #fbfdff;
}

.builder-sample-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.builder-sample-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.judgment-builder-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.judgment-global-expression-panel {
  border: 1px solid #dde7f2;
  border-radius: 20px;
  background: #fbfdff;
  padding: 16px;
}

.judgment-builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.judgment-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.judgment-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.judgment-builder-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  height: 100%;
}

.judgment-tree-panel,
.judgment-editor-panel {
  border: 1px solid #dde7f2;
  border-radius: 20px;
  background: #fbfdff;
  padding: 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.judgment-tree,
.judgment-editor-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.judgment-tree {
  overflow: auto;
  padding-right: 4px;
}

.judgment-editor-scroll {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.judgment-tree-node {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.judgment-tree-children {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px dashed #d6e2f0;
}

.judgment-tree-node-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.judgment-tree-node-main.is-active {
  border-color: rgba(28, 99, 242, 0.3);
  background: #edf4ff;
  box-shadow: 0 10px 24px rgba(28, 99, 242, 0.08);
}

.judgment-tree-node-main.is-configurable {
  cursor: pointer;
}

.judgment-tree-node-main.is-readonly {
  background: #f4f7fb;
  border-style: dashed;
  color: #5f728b;
  cursor: pointer;
}

.judgment-tree-node-main strong {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.judgment-tree-node-main span {
  flex: 0 0 auto;
  color: #6f8197;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
}

.judgment-selection-card,
.judgment-dimension-card,
.judgment-expression-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 18px;
  background: #fff;
}

.judgment-expression-card textarea {
  min-height: 180px;
}

.judgment-global-expression-panel textarea.has-error {
  border-color: rgba(216, 77, 58, 0.55);
  background: #fff8f6;
  box-shadow: inset 0 0 0 1px rgba(216, 77, 58, 0.08);
}

.judgment-expression-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.judgment-expression-status.is-ok {
  color: var(--success);
  background: var(--success-soft);
}

.judgment-expression-status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.judgment-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.judgment-summary-line {
  margin: 0;
  color: #44556b;
  line-height: 1.7;
}

.judgment-summary-copy {
  color: #44556b;
  line-height: 1.8;
  font-size: 15px;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  padding-top: 2px;
}

.judgment-copy-key {
  color: var(--primary);
  font-weight: 700;
}

.judgment-copy-name {
  color: var(--ink-strong);
  font-weight: 700;
}

.judgment-copy-value {
  color: var(--warning);
  font-weight: 700;
}

.judgment-copy-ok {
  color: var(--success);
  font-weight: 700;
  margin-left: 4px;
}

.judgment-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.judgment-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #f8fbff;
}

.judgment-display-list .judgment-checkbox-item strong {
  color: var(--success);
}

.judgment-condition-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.judgment-condition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px 84px;
  gap: 12px;
  align-items: end;
}

.judgment-condition-row select,
.judgment-condition-row input,
.judgment-fixed-field {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.judgment-fixed-field {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
  background: #f8fbff;
  font-weight: 700;
}

.judgment-condition-remove {
  min-height: 44px;
}

.judgment-inline-select {
  min-width: 140px;
}

.judgment-inline-select span {
  display: none;
}

.judgment-structure-alert {
  padding: 12px 16px;
  border: 1px solid rgba(216, 77, 58, 0.28);
  border-radius: 16px;
  background: #fff5f2;
  color: var(--danger);
  font-weight: 700;
}

.judgment-dimension-table {
  width: 100%;
  border-collapse: collapse;
}

.judgment-dimension-table th,
.judgment-dimension-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e7eef7;
  text-align: left;
  vertical-align: middle;
}

.judgment-dimension-table th {
  color: var(--muted);
  font-size: 12px;
}

.judgment-dimension-table input,
.judgment-dimension-table select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.judgment-dimension-table input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
}

.roi-editor-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roi-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roi-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roi-editor-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.roi-stage-card,
.roi-region-card {
  height: 100%;
}

.roi-stage-shell {
  min-height: 420px;
}

.roi-stage {
  position: relative;
  min-height: 420px;
  height: 100%;
  border-radius: 18px;
  border: 1px solid #d9e4f1;
  background: #f7fbff;
  overflow: hidden;
}

.roi-stage-surface {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  user-select: none;
  cursor: crosshair;
}

.roi-stage-surface img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f1724;
}

.roi-stage-surface.is-placeholder {
  cursor: default;
}

.roi-stage-surface.is-placeholder .sample-preview-frame {
  height: 100%;
}

.roi-overlay-layer {
  position: absolute;
  inset: 0;
}

.roi-box {
  position: absolute;
  border: 2px solid #62ffbc;
  background: rgba(98, 255, 188, 0.12);
  border-radius: 12px;
}

.roi-box.is-ignore {
  border-color: #ff8b5c;
  background: rgba(255, 139, 92, 0.14);
}

.roi-box.is-draft {
  border-style: dashed;
}

.roi-box span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 36, 0.84);
}

.roi-region-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roi-region-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.roi-region-item p {
  margin-top: 4px;
  color: var(--muted);
}

.modal-detect-instance {
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  overflow: hidden;
}

.modal-detect-params {
  width: min(620px, calc(100vw - 28px));
}

.modal-detect-instance .modal-header {
  border-bottom: 1px solid #e5edf7;
}

.modal-detect-instance .modal-header h3 {
  position: relative;
  padding-left: 12px;
  font-size: 17px;
}

.modal-detect-instance .modal-header h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-50%);
}

.modal-body-detect-instance {
  flex: 1;
  min-height: 0;
  gap: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
}

.modal-detect-instance .modal-header,
.modal-detect-instance .modal-footer {
  flex: 0 0 auto;
}

.detect-instance-form {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  gap: 14px;
}

.detect-instance-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detect-instance-field-grow {
  flex: 1;
  min-height: 0;
}

.detect-instance-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.detect-process-group-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detect-process-group {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e1e8f2;
  background: #fff;
}

.detect-process-group-title {
  padding: 10px 18px;
  background: #f1f5fa;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.builder-empty-compact {
  min-height: 0;
  padding: 14px 16px;
}

.detect-selection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px;
}

.detect-selection-list-nested {
  padding: 8px 14px 12px;
}

.detect-target-subgroup {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 4px;
  background: #fbfdff;
}

.detect-target-subtitle {
  padding: 8px 16px;
  background: #f1f5fa;
  color: var(--primary);
  text-align: center;
  font-weight: 700;
}

.detect-selection-item {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(28, 99, 242, 0.42);
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.detect-selection-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.detect-selection-item.is-selected {
  border-color: rgba(28, 99, 242, 0.55);
  background: #d9eaff;
  box-shadow: inset 0 0 0 1px rgba(28, 99, 242, 0.08);
}

.detect-model-picker-row {
  grid-template-columns: minmax(0, 1fr) 108px;
}

.detect-param-empty {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  color: var(--muted);
  background: #f8fbff;
}

.detect-param-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detect-param-summary {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 32px;
}

.detect-param-summary span {
  color: var(--muted);
  font-weight: 700;
}

.detect-param-summary strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-param-table {
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #fff;
}

.detect-param-table-head,
.detect-param-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
}

.detect-param-table-head {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: #f1f5fa;
}

.detect-param-row {
  padding: 10px 14px;
  border-top: 1px solid #edf2f8;
  font-weight: 700;
}

.detect-param-row input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.builder-empty {
  padding: 28px 20px;
  border: 1px dashed #d8e2ef;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: #fbfdff;
}

.wizard-footer {
  justify-content: space-between;
  margin-top: 18px;
}

.runtime-grid,
.grid-two,
.settings-layout,
.records-layout {
  display: grid;
  gap: 18px;
}

.runtime-grid {
  grid-template-columns: minmax(0, 1fr) 150px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  align-items: stretch;
}

.runtime-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
}

.runtime-session-overview {
  height: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #fff;
}

.runtime-batch-summary {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
}

.runtime-title-summary {
  flex: 0 0 760px;
  grid-template-columns: 152px repeat(5, minmax(82px, 1fr));
  grid-template-rows: 1fr;
  align-items: center;
  gap: 0;
  width: 760px;
  height: 52px;
  min-width: 760px;
  margin-left: 4px;
  padding: 0 12px;
  border: 1px solid #d9e4f1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.runtime-title-summary .runtime-session-metric {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 32px;
  padding: 0 12px;
  gap: 9px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.runtime-title-summary .runtime-session-metric span {
  font-size: 12px;
  line-height: 1;
}

.runtime-title-summary .runtime-session-metric strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.runtime-title-summary .runtime-session-metric.is-yield strong {
  font-size: 22px;
}

.runtime-title-summary .runtime-session-metric.is-duration strong {
  color: #263a52;
  min-width: 74px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.runtime-title-summary .runtime-session-metric.is-error {
  border-color: transparent;
  background: transparent;
}

.runtime-title-summary .runtime-session-metric + .runtime-session-metric {
  border-left: 1px solid #e0e8f2;
}

.runtime-session-metric {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  padding: 9px 6px;
  border: 1px solid #e6edf5;
  border-radius: 4px;
  background: #f8fbff;
  text-align: center;
}

.runtime-session-metric span {
  color: #718197;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.runtime-session-metric strong {
  color: #24364c;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.runtime-session-metric.is-duration {
  justify-content: flex-start;
}

.runtime-session-metric.is-duration strong {
  color: #5f7085;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.runtime-session-metric.is-ok strong {
  color: #168552;
}

.runtime-session-metric.is-yield strong {
  color: #1d66d1;
  font-size: 26px;
}

.runtime-session-metric.is-ng strong {
  color: #d14343;
}

.runtime-session-metric.is-error {
  border-color: #f0d98c;
  background: #fff9e7;
}

.runtime-session-metric.is-error strong {
  color: #d99a00;
}

.runtime-title-summary .runtime-session-metric.is-error {
  border-color: transparent;
  background: transparent;
}

.runtime-camera-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.runtime-header-camera-toolbar {
  flex: 0 1 430px;
  max-width: 430px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior: contain;
}

.runtime-camera-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 180px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-color: #cfe0f5;
  border-radius: 6px;
  color: #225eb8;
  background: #f7fbff;
  font-size: 13px;
  font-weight: 800;
}

.runtime-camera-entry svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runtime-camera-entry.is-offline {
  border-color: #f1c4bd;
  color: #b74339;
  background: #fff7f6;
}

.runtime-camera-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #25b36b;
}

.runtime-camera-entry.is-offline .runtime-camera-status-dot {
  background: #d14343;
}

.runtime-camera-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.runtime-camera-copy strong,
.runtime-camera-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-camera-copy strong {
  max-width: 102px;
  font-size: 13px;
  line-height: 1.1;
}

#toolRuntimePanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#toolRuntimePanel.is-capture-runtime > .page-header {
  display: none;
}

#toolRuntimePanel .runtime-grid {
  flex: 1;
}

#captureRuntimePanel:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
}

.modal.modal-capture-setup {
  width: min(760px, calc(100vw - 48px));
}

.capture-setup-table {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}

.capture-setup-head,
.capture-setup-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.4fr) 110px;
  gap: 12px;
  align-items: center;
  min-width: 560px;
  padding: 11px 14px;
}

.capture-setup-head {
  color: var(--muted);
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 800;
}

.capture-setup-row + .capture-setup-row {
  border-top: 1px solid var(--line);
}

.capture-setup-row select,
.capture-setup-row input[type="number"] {
  width: 100%;
  min-height: 36px;
}

.capture-enable-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  cursor: pointer;
}

.capture-enable-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.capture-enable-switch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #c8d0dc;
  transition: background 0.15s ease;
}

.capture-enable-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(29, 43, 65, 0.25);
  content: "";
  transition: transform 0.15s ease;
}

.capture-enable-switch input:checked + i {
  background: var(--primary);
}

.capture-enable-switch input:checked + i::after {
  transform: translateX(16px);
}

.capture-enable-switch span {
  color: var(--muted);
  font-size: 12px;
}

.inline-switch-field {
  align-items: start;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  cursor: pointer;
}

.switch-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-line i {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c8d0dc;
  transition: background 0.15s ease;
}

.switch-line i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(29, 43, 65, 0.25);
  content: "";
  transition: transform 0.15s ease;
}

.switch-line input:checked + i {
  background: var(--primary);
}

.switch-line input:checked + i::after {
  transform: translateX(16px);
}

.switch-line strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.capture-auto-switch-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text);
  font-size: 13px;
}

.capture-workbench {
  flex: 1 1 auto;
  min-height: 0;
}

.capture-runtime-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(520px, 1fr) auto;
  gap: 10px;
  min-height: 630px;
  height: 100%;
}

.capture-source-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.capture-source-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.capture-source-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.capture-source-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.icon-btn.capture-source-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8e1ef;
  border-radius: 4px;
  color: #5f718a;
  background: #fff;
  line-height: 0;
}

.icon-btn.capture-source-back:hover,
.icon-btn.capture-config-btn:hover {
  transform: none;
}

.icon-btn.capture-source-back svg,
.icon-btn.capture-config-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-source-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.capture-source-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.capture-finish-btn {
  width: 100%;
}

.capture-source-item {
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.capture-source-item.is-active {
  border-color: #8cb2f5;
  background: #f4f8ff;
}

.capture-source-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 2px 0 8px;
  border: 0;
  text-align: left;
  background: transparent;
}

.capture-source-title > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.capture-source-title small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn.capture-config-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8e1ef;
  border-radius: 4px;
  color: #5f718a;
  background: #fff;
  line-height: 0;
}

.capture-source-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-height: 100px;
  padding: 7px 0;
}

.capture-source-thumbs button {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #e9eef5;
}

.capture-source-thumbs button.is-fresh-capture {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(36, 109, 242, 0.22);
}

.capture-source-thumbs button.is-fresh-capture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  animation: captureFreshMask 900ms ease-out forwards;
  pointer-events: none;
}

.capture-thumb-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  color: #6b7788;
  background: rgba(255, 255, 255, 0.74);
  animation: captureFreshMark 900ms ease-out forwards;
  pointer-events: none;
}

.capture-thumb-loading svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-source-thumbs button.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.capture-source-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.capture-source-thumb-tags {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}

.capture-source-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f5f7fa;
  font-size: 12px;
}

.capture-view-all-btn {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--primary);
  background: #fff;
  font-size: 12px;
}

.capture-main-preview {
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.capture-main-stage {
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  background: #111720;
}

.capture-main-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.capture-multi-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(420px, calc((100% - 10px) / 2));
  gap: 10px;
  min-height: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.capture-multi-live-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
}

.capture-multi-live-grid.is-pair {
  grid-auto-rows: minmax(0, 1fr);
}

.capture-multi-live-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3a4657;
  border-radius: 4px;
  background: #fff;
}

.capture-multi-live-item.is-active {
  border-color: #6ea2ff;
  box-shadow: 0 0 0 2px rgba(36, 109, 242, 0.32);
}

.capture-multi-live-item.is-active .capture-camera-preview {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.capture-camera-preview {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #fff;
  cursor: grab;
}

.capture-camera-preview.is-dragging,
.capture-record-preview-stage.is-dragging {
  cursor: grabbing;
}

.capture-camera-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(var(--capture-camera-pan-x, 0), var(--capture-camera-pan-y, 0)) scale(var(--capture-camera-zoom, 1));
  transition: transform 160ms ease;
  user-select: none;
  pointer-events: none;
}

.capture-camera-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 8px;
  border-top: 1px solid #344052;
  color: #aab6c7;
  background: #141c27;
  font-size: 12px;
}

.capture-camera-zoom button {
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  color: #aab6c7;
  background: transparent;
  opacity: 0.62;
}

.capture-camera-zoom:hover button {
  opacity: 1;
}

.capture-multi-live-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.28fr);
  align-items: center;
  gap: 12px;
  min-height: 106px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.capture-camera-controls {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--text);
}

.capture-camera-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}

.capture-camera-title .capture-camera-file {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-camera-title .capture-camera-file > span {
  display: inline-block;
  max-width: calc(100% - 22px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.capture-camera-title .capture-camera-file i {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #6b7788;
  vertical-align: -3px;
  animation: captureFreshMark 900ms ease-out forwards;
}

.capture-camera-title .capture-camera-file i svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-camera-title strong {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-camera-title.is-editing .capture-camera-file {
  color: var(--primary);
}

.capture-camera-title .capture-camera-file.is-fresh-capture {
  animation: captureFreshText 720ms ease-out;
}

.capture-item-tag-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.capture-item-tag-options {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.capture-item-tag-options button {
  min-width: 48px;
  padding: 6px 10px;
  border: 1px solid #c9d3e1;
  border-radius: 3px;
  color: #41516a;
  background: #fff;
}

.capture-item-tag-options button.is-active {
  border-color: #2475ee;
  color: #fff;
  background: #2475ee;
}

.capture-tag-settings-btn {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid #c9d3e1;
  border-radius: 3px;
  color: #53647b;
  background: #fff;
}

.capture-tag-settings-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.capture-item-shutter-btn {
  width: 100%;
  min-width: 122px;
  min-height: 54px;
  font-size: 15px;
}

.capture-tag-settings {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

@keyframes captureFreshMask {
  0% {
    opacity: 1;
  }
  55% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

@keyframes captureFreshMark {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.82);
  }
  16% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(360deg) scale(1);
  }
}

@keyframes captureFreshText {
  0% {
    opacity: 0.46;
    color: var(--primary);
  }
  50% {
    opacity: 1;
    color: #0f58d6;
  }
  100% {
    opacity: 1;
  }
}

.capture-tag-mode-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.capture-tag-mode-row > span {
  color: var(--muted);
  font-size: 13px;
}

.capture-tag-mode-toggle {
  justify-self: start;
}

.capture-tag-settings-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capture-tag-settings-list > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #b8c9e7;
  border-radius: 4px;
  color: #174f9f;
  background: #eef5ff;
}

.capture-tag-settings-list button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  color: #60718a;
  background: transparent;
  font-size: 18px;
}

.capture-tag-settings-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.capture-tag-settings-add input {
  min-width: 0;
}

.capture-tag-settings-add button {
  min-width: 76px;
  padding: 0 14px;
  white-space: nowrap;
}

.capture-tag-limit {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.capture-record-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.capture-record-tag-input {
  width: 112px;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.capture-batch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 1px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}

.capture-batch-summary > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 9px 14px;
  background: #fff;
}

.capture-batch-summary span,
.capture-panel-head span,
.capture-item-progress span,
.capture-selected-preview span,
.capture-record-toolbar span,
.capture-record-item small {
  color: var(--muted);
  font-size: 12px;
}

.capture-batch-summary .capture-batch-summary-actions {
  align-items: flex-end;
}

.capture-workbench-grid {
  display: grid;
  grid-template-columns: 270px minmax(420px, 1fr) 330px;
  gap: 12px;
  min-height: 610px;
  height: calc(100% - 72px);
}

.capture-group-panel,
.capture-live-panel,
.capture-images-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.capture-group-panel,
.capture-images-panel {
  display: flex;
  flex-direction: column;
}

.capture-live-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.capture-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.capture-panel-head h3,
.capture-record-toolbar h3 {
  margin: 0;
  font-size: 15px;
}

.capture-group-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}

.capture-group-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 62px;
  padding: 10px 10px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
  background: #f6f8fb;
}

.capture-group-item.is-active {
  border-color: #83acf7;
  background: #edf4ff;
}

.capture-group-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.capture-group-item span {
  color: var(--muted);
  font-size: 11px;
}

.capture-group-item i {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) var(--capture-progress), #dfe6ef var(--capture-progress));
}

.capture-item-progress-list {
  display: grid;
  gap: 2px;
  padding: 10px;
  overflow: auto;
}

.capture-item-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
}

.capture-item-progress > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.capture-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  background: #151a22;
}

.capture-live-grid.is-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capture-live-frame {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #384252;
  border-radius: 4px;
  background: #0c1016;
}

.capture-live-frame img,
.capture-record-preview-stage img,
.capture-record-image img,
.capture-selected-preview img,
.capture-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.capture-live-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(9, 14, 22, 0.78);
  font-size: 12px;
}

.capture-live-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  color: #9aa7b8;
  background: #111720;
}

.capture-live-actions,
.capture-image-batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.capture-live-actions label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.capture-shutter-btn {
  min-width: 150px;
}

.capture-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  padding: 10px;
  overflow: auto;
}

.capture-image-card {
  position: relative;
  display: grid;
  grid-template-rows: 86px auto auto;
  gap: 3px;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 11px;
}

.capture-image-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.capture-image-card > input {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
}

.capture-image-card img {
  background: #eef2f7;
}

.capture-image-card span,
.capture-image-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-image-card small {
  color: var(--muted);
}

.capture-image-editor {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
  overflow: auto;
}

.capture-selected-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.capture-selected-preview img {
  height: 62px;
  background: #eef2f7;
}

.capture-selected-preview > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.capture-selected-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-quick-tags,
.capture-custom-tag {
  display: flex;
  gap: 6px;
}

.capture-quick-tags button {
  min-width: 50px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.capture-quick-tags button.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: #edf4ff;
}

.capture-custom-tag input {
  min-width: 0;
  flex: 1;
}

.record-capture-result {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.record-capture-result > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.modal-capture-record {
  width: min(1440px, calc(100vw - 36px));
}

.modal-body.modal-body-capture-record {
  padding: 0;
  overflow: hidden;
}

.capture-record-detail {
  display: grid;
  grid-template-columns: 230px minmax(420px, 1fr) 330px;
  min-height: 620px;
  max-height: calc(100vh - 190px);
}

.capture-library-detail {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 390px;
  height: 100%;
  min-height: 0;
}

.capture-library-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.capture-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.capture-library-tag-filter {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: #fff;
}

.capture-library-toolbar-left > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.capture-library-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.capture-library-toolbar-left label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.capture-library-toolbar .capture-record-toolbar-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.capture-library-toolbar .capture-record-toolbar-actions button {
  white-space: nowrap;
}

.capture-library-batches {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  background: #f6f8fb;
}

.capture-library-batch {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.capture-library-batch-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}

.capture-library-batch-head > label {
  display: grid;
  place-items: center;
}

.capture-library-batch-head > button {
  display: grid;
  grid-template-columns: 24px minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.capture-library-batch-head > button > span:not(.capture-batch-chevron) {
  color: var(--muted);
  font-size: 12px;
}

.capture-library-batch-head .capture-batch-chevron {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  color: #66758c;
  background: #edf2f8;
  transition: transform 120ms ease, color 120ms ease, background 120ms ease;
}

.capture-library-batch-head .capture-batch-chevron.is-expanded {
  transform: rotate(90deg);
  color: var(--primary);
  background: #eaf2ff;
}

.capture-library-batch-head .capture-batch-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-record-image-grid.capture-library-image-grid {
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 8px;
  padding: 10px;
  max-height: none;
  overflow: visible;
}

.capture-library-image-grid .capture-record-image {
  padding: 0;
  overflow: hidden;
  background: #eef2f7;
}

.capture-library-image-select {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.capture-library-image-select img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-image-check {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 3px;
  color: transparent;
  background: rgba(20, 31, 46, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.capture-image-check.is-checked {
  color: #fff;
  background: var(--primary);
}

.capture-image-tags {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}

.capture-source-thumb-tags i,
.capture-image-tags i,
.capture-preview-tags i {
  max-width: 86px;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 2px;
  color: #fff;
  background: rgba(21, 31, 44, 0.82);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-source-thumb-tags i {
  max-width: calc(100% - 2px);
  padding: 1px 3px;
  font-size: 9px;
}

.capture-record-items,
.capture-record-gallery,
.capture-record-preview {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.capture-record-items {
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #f7f9fc;
}

.capture-record-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px 12px;
}

.capture-record-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left;
  background: transparent;
}

.capture-record-item.is-active {
  border-color: #9bbcf5;
  background: #eaf2ff;
}

.capture-record-item strong {
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-record-item b {
  color: var(--muted);
  font-size: 11px;
}

.capture-record-gallery {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
}

.capture-record-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.capture-record-toolbar > div {
  display: grid;
  gap: 3px;
}

.capture-record-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.capture-record-image {
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.capture-record-image.is-active {
  border-color: var(--primary);
}

.capture-record-image > button {
  width: 100%;
  height: 110px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eef2f7;
}

.capture-record-image > label {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 6px;
  font-size: 11px;
}

.capture-record-image > label span,
.capture-record-image > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-record-image > small {
  padding: 3px 0 0 22px;
  color: var(--muted);
}

.capture-record-preview {
  padding: 12px;
}

.capture-record-preview-stage {
  display: grid;
  place-items: center;
  height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #eef2f7;
  cursor: grab;
}

.capture-record-preview-stage img {
  transform: translate(var(--capture-library-pan-x, 0), var(--capture-library-pan-y, 0)) scale(var(--capture-library-zoom, 1));
  transition: transform 160ms ease;
  user-select: none;
  pointer-events: none;
}

.capture-record-preview-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 5px;
  color: var(--muted);
  opacity: 0.62;
  transition: opacity 120ms ease;
}

.capture-record-preview:hover .capture-record-preview-zoom-toolbar {
  opacity: 1;
}

.capture-record-preview-zoom-toolbar button {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: #f2f5f9;
}

.capture-record-preview-zoom-toolbar span {
  min-width: 44px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.capture-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.capture-preview-tag-row dd {
  display: flex;
  align-items: center;
  gap: 6px;
}

.capture-preview-tags i {
  max-width: none;
  overflow: visible;
  white-space: normal;
}

.capture-preview-tag-edit {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 4px;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.capture-preview-tag-edit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-tag-popover {
  position: fixed;
  z-index: 1200;
  display: grid;
  width: 330px;
  gap: 10px;
  padding: 14px;
  border: 1px solid #cbd5e3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 42, 70, 0.22);
}

.capture-tag-popover > strong {
  font-size: 13px;
}

.capture-tag-popover > input {
  width: 100%;
}

.capture-tag-popover > span {
  color: var(--muted);
  font-size: 11px;
}

.capture-tag-popover > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.capture-cloud-sync {
  display: grid;
  gap: 12px;
}

.capture-cloud-sync-summary {
  padding: 12px;
  border: 1px solid #bcd1f5;
  border-radius: 4px;
  color: #174f9f;
  background: #eef5ff;
}

.capture-cloud-sync-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.capture-record-preview dl {
  margin: 12px 0 0;
}

.capture-record-preview dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.capture-record-preview dt {
  color: var(--muted);
}

.capture-record-preview dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.capture-export-summary,
.record-export-mixed-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

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

.capture-export-summary > div,
.record-export-mixed-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f9fc;
}

.capture-export-summary span,
.record-export-mixed-summary span {
  color: var(--muted);
  font-size: 12px;
}

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

.settings-layout {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 220px minmax(0, 1fr);
}

.settings-tabs,
.settings-panels,
.settings-panel.is-active {
  min-height: 0;
}

.settings-panels {
  overflow: auto;
  overscroll-behavior: contain;
}

.records-layout {
  grid-template-columns: 1.2fr 1fr;
}

.runtime-left-stack,
.runtime-side-stack {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.runtime-left-stack {
  grid-template-rows: minmax(0, 1fr);
}

.runtime-side-stack {
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.runtime-image-card,
.runtime-image-list-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.runtime-image-main-card {
  min-height: 0;
}

.runtime-side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 214px;
  align-content: stretch;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.runtime-primary-card,
.runtime-current-detail-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.runtime-tag-card,
.runtime-camera-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.runtime-stage-shell {
  position: relative;
  flex: 1;
  min-height: 0;
}

.runtime-result-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.runtime-result-value .exception-hint {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 14px;
}

.runtime-cycle-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2f8;
}

.runtime-cycle-line span {
  color: var(--muted);
}

.runtime-cycle-line strong {
  white-space: nowrap;
  font-size: 20px;
}

.runtime-primary-actions {
  display: grid;
  grid-template-rows: 82px 122px;
  gap: 10px;
  min-height: 0;
}

.runtime-primary-actions .primary-btn,
.runtime-primary-actions .secondary-btn {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
}

.runtime-primary-actions .primary-btn {
  min-height: 0;
  font-size: 18px;
}

.runtime-primary-actions .secondary-btn {
  min-height: 0;
  color: #1d5da8;
  border: 1px solid #bed4f0;
  background: #f3f8ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.runtime-primary-actions .secondary-btn[disabled] {
  color: #66809d;
  background: #f6f9fd;
  border-color: #d7e2ef;
  opacity: 0.72;
  filter: none;
}

.runtime-recent-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8e3f0;
  border-radius: 6px;
  background: #fff;
}

.runtime-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.runtime-recent-head strong {
  color: #24364c;
  font-size: 13px;
  font-weight: 900;
}

.runtime-recent-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.runtime-record-more-btn {
  width: 100%;
  min-height: 34px;
  margin-top: auto;
  border-radius: 6px;
}

.runtime-recent-empty {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: #8a98aa;
  font-size: 12px;
  font-weight: 800;
}

.runtime-record-item {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e1e9f4;
  border-radius: 6px;
  color: #263a52;
  background: #f8fbff;
  cursor: pointer;
}

.runtime-record-item.is-compact {
  flex: 0 0 38px;
  min-height: 38px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 8px;
}

.runtime-record-item.is-compact .runtime-record-main {
  display: flex;
  align-items: center;
}

.runtime-record-thumb {
  width: 42px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid #dce6f2;
  background: #edf3fa;
}

.runtime-record-thumb.has-image {
  background-image: var(--runtime-record-image);
  background-size: cover;
  background-position: center;
}

.runtime-record-item:hover {
  border-color: #aecaef;
  background: #eff6ff;
}

.runtime-record-main {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}

.runtime-record-main strong,
.runtime-record-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-record-breakdown {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7b8ca2;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.runtime-record-item.is-compact .runtime-record-breakdown {
  flex-wrap: wrap;
  row-gap: 2px;
  white-space: normal;
}

.runtime-record-breakdown b {
  font-weight: 800;
}

.runtime-record-main strong {
  font-size: 13px;
  font-weight: 900;
}

.runtime-record-main small {
  color: #7b8ca2;
  font-size: 11px;
  font-weight: 800;
}

.runtime-record-result {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: #7b8ca2;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.runtime-record-result.is-ok {
  background: #28a96b;
}

.runtime-record-result.is-ng {
  background: #df4b4b;
}

.runtime-record-result.is-error {
  background: #d99a00;
}

.runtime-record-result.is-pending {
  color: #5f7085;
  background: #e9eff6;
}

.record-session-breakdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  color: #6f8096;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.record-session-breakdown .is-ok,
.record-session-summary .is-ok,
.runtime-record-session-summary .is-ok {
  color: #16875a;
}

.record-session-breakdown .is-ng,
.record-session-summary .is-ng,
.runtime-record-session-summary .is-ng {
  color: #cf3030;
}

.record-session-breakdown .is-error,
.record-session-summary .is-error,
.runtime-record-session-summary .is-error {
  color: #d89200;
}

.runtime-record-session-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe9f5;
  border-radius: 6px;
  background: #f8fbff;
}

.runtime-record-session-summary div {
  display: grid;
  gap: 3px;
}

.runtime-record-session-summary span {
  color: #7d8fa5;
  font-size: 11px;
  font-weight: 800;
}

.runtime-record-session-summary strong {
  color: #263a52;
  font-size: 18px;
  font-weight: 900;
}

.runtime-cycle-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 0;
  height: 74px;
  padding: 10px 8px;
  border: 1px solid #d8e3f0;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.runtime-cycle-card span {
  color: #718197;
  font-size: 11px;
  font-weight: 800;
}

.runtime-cycle-card strong {
  color: #24364c;
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.runtime-cycle-result-card strong.is-ok {
  color: #168552;
}

.runtime-cycle-result-card strong.is-ng {
  color: #d14343;
}

.runtime-cycle-result-card strong.is-error {
  color: #d99a00;
}

.runtime-cycle-result-card strong.is-pending {
  color: #24364c;
}

.runtime-camera-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.runtime-camera-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.runtime-tag-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.runtime-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
  align-content: flex-start;
  overflow: auto;
}

.runtime-tag-list.is-empty {
  align-items: center;
}

.runtime-tag-empty {
  color: var(--muted);
}

.runtime-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-weight: 700;
}

.runtime-tag-remove {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(63, 126, 255, 0.14);
}

.runtime-tag-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.runtime-tag-editor input {
  min-width: 0;
}

#runtimeTagInfo,
#runtimeCameraInfo {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.runtime-camera-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runtime-camera-main strong {
  font-size: 18px;
}

.runtime-camera-meta {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 14px;
}

.runtime-camera-empty {
  padding: 16px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px dashed #d8e2ef;
  color: var(--muted);
}

.runtime-image-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subresult-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subresult-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.subresult-item.is-active {
  border-color: rgba(28, 99, 242, 0.28);
  background: #edf4ff;
}

.subresult-main {
  min-width: 0;
  flex: 1;
}

.subresult-main strong {
  display: block;
  margin-bottom: 6px;
}

.subresult-main p {
  color: var(--muted);
  line-height: 1.6;
}

.subresult-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inspection-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, #101a28 0%, #19273d 100%);
}

.inspection-stage-compact {
  min-height: 240px;
  margin-top: 12px;
}

.runtime-image-stage {
  min-height: min(62vh, 620px);
}

.runtime-image-stage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.runtime-image-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.runtime-image-result-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 0 10px 0 0;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: #fbfdff;
  overflow: hidden;
}

.runtime-image-result-item.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
  box-shadow: 0 0 0 3px rgba(63, 126, 255, 0.08);
}

.runtime-image-result-item > .table-btn {
  grid-column: 2;
  justify-self: start;
  margin: 0 0 8px;
}

.runtime-image-result-main {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.runtime-image-status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 8px 4px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.runtime-image-status-strip .exception-hint {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.runtime-image-status-strip.is-ok {
  background: #69d23d;
}

.runtime-image-status-strip.is-ng,
.runtime-image-status-strip.is-error {
  background: #ff4d57;
}

.runtime-image-status-strip.is-running {
  background: #2f7df6;
}

.runtime-image-status-strip.is-pending {
  background: #91a4bd;
}

.runtime-image-result-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.runtime-image-result-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-image-result-meta,
.runtime-image-result-stats,
.runtime-image-result-issue {
  display: block;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-image-result-meta {
  color: #66788f;
}

.runtime-image-result-stats {
  color: #8797aa;
}

.runtime-image-result-issue {
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff1ef;
  color: #c05342;
  font-weight: 800;
}

.runtime-tile-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(var(--runtime-tile-columns, 2), minmax(0, 1fr));
  grid-template-rows: repeat(var(--runtime-tile-rows, 1), minmax(0, 1fr));
  grid-auto-rows: minmax(190px, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.runtime-tile-grid[data-count="0"] {
  display: block;
  height: auto;
}

.runtime-result-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde7f2;
  border-radius: 6px;
  background: #fff;
}

.runtime-result-tile.is-active {
  border-color: rgba(28, 99, 242, 0.34);
  box-shadow: 0 0 0 3px rgba(63, 126, 255, 0.08);
}

.runtime-result-tile-hit {
  appearance: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.runtime-result-tile-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f3f7fc;
}

.runtime-result-tile-canvas {
  position: absolute;
  inset: 0;
  background: #f5f8fc;
}

.runtime-result-tile-canvas.has-source {
  background-image: var(--runtime-source-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.runtime-tile-surface-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.runtime-tile-surface-box {
  position: absolute;
  display: block;
  border: 2px solid rgba(31, 168, 108, 0.96);
  border-radius: 4px;
  background: rgba(31, 168, 108, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 4px 12px rgba(15, 24, 39, 0.16);
}

.runtime-tile-surface-box.is-ng {
  border-color: rgba(231, 76, 76, 0.98);
  background: rgba(231, 76, 76, 0.1);
}

.runtime-tile-surface-box.is-neutral {
  border-color: rgba(112, 128, 150, 0.92);
  background: rgba(112, 128, 150, 0.08);
}

.runtime-tile-surface-box em {
  position: absolute;
  left: -2px;
  top: -24px;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px 4px 0 0;
  background: rgba(31, 168, 108, 0.96);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.runtime-tile-surface-box.is-ng em {
  background: rgba(231, 76, 76, 0.98);
}

.runtime-tile-surface-box.is-neutral em {
  background: rgba(112, 128, 150, 0.92);
}

.runtime-tile-detection-box {
  position: absolute;
  z-index: 4;
  display: block;
  border: 2px solid rgba(231, 76, 76, 0.98);
  border-radius: 3px;
  background: rgba(231, 76, 76, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 5px 14px rgba(20, 35, 58, 0.22);
}

.runtime-tile-detection-box.is-ok {
  border-color: rgba(31, 168, 108, 0.98);
  background: rgba(31, 168, 108, 0.08);
}

.runtime-tile-detection-box.is-neutral {
  border-color: rgba(112, 128, 150, 0.92);
  background: rgba(112, 128, 150, 0.08);
}

.runtime-tile-detection-box em {
  position: absolute;
  right: -2px;
  bottom: calc(100% + 2px);
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(231, 76, 76, 0.98);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.runtime-tile-detection-box.is-ok em {
  background: rgba(31, 168, 108, 0.98);
}

.runtime-tile-detection-box.is-neutral em {
  background: rgba(112, 128, 150, 0.92);
}

.runtime-result-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8090a6;
  font-size: 13px;
  font-weight: 800;
}

.mini-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d6dfeb;
  border-top-color: #75869d;
  border-radius: 999px;
  animation: runtime-spin 0.9s linear infinite;
}

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

.runtime-result-tile-status {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(21, 37, 58, 0.2);
}

.runtime-result-tile-status .exception-hint {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.runtime-result-tile-status.is-ok {
  background: #36b26b;
}

.runtime-result-tile-status.is-ng,
.runtime-result-tile-status.is-error {
  background: #e84d4d;
}

.runtime-result-tile-status.is-running {
  background: #2f7df6;
  font-size: 17px;
}

.runtime-result-tile-status.is-pending {
  background: #75879c;
  font-size: 17px;
}

.runtime-result-tile-body {
  display: grid;
  gap: 6px;
  min-height: 52px;
  padding: 10px 12px;
}

.runtime-result-tile-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.runtime-result-tile-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-result-tile-issue {
  overflow: hidden;
  color: #c74141;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-result-tile-meta {
  overflow: hidden;
  color: #66788f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-result-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  color: #8797aa;
  font-size: 12px;
  font-weight: 700;
}

.runtime-result-tile > .table-btn {
  align-self: flex-start;
  margin: 0 12px 12px;
}

.runtime-current-detail {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

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

.runtime-current-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-current-meta {
  display: grid;
  gap: 8px;
}

.runtime-current-meta div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  background: #fbfdff;
}

.runtime-current-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.runtime-current-meta dd {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-source-stage {
  min-height: min(62vh, 620px);
}

.runtime-source-stage-shell {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.runtime-source-canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--runtime-source-aspect, 4 / 3);
  border-radius: 14px;
  overflow: hidden;
  background-color: #111b29;
}

.runtime-source-canvas.has-source {
  background-image: var(--runtime-source-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.runtime-source-canvas.is-fallback {
  background:
    radial-gradient(circle at 22% 32%, rgba(244, 247, 252, 0.9) 0 10%, rgba(166, 175, 187, 0.88) 11% 18%, rgba(48, 55, 67, 0.92) 19% 27%, transparent 28%),
    radial-gradient(circle at 68% 48%, rgba(244, 247, 252, 0.92) 0 12%, rgba(166, 175, 187, 0.9) 13% 20%, rgba(48, 55, 67, 0.94) 21% 31%, transparent 32%),
    linear-gradient(180deg, #101a28 0%, #1a2942 100%);
}

.runtime-source-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(104, 198, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(104, 198, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.runtime-mapped-layer {
  position: absolute;
  inset: 0;
}

.runtime-mapped-result {
  position: absolute;
  border: 2px solid rgba(124, 233, 198, 0.96);
  background: rgba(72, 214, 180, 0.12);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(152, 255, 221, 0.14);
}

.runtime-mapped-result.is-ng {
  border-color: rgba(255, 132, 132, 0.96);
  background: rgba(255, 132, 132, 0.12);
}

.runtime-mapped-result.is-neutral {
  border-color: rgba(171, 185, 204, 0.92);
  background: rgba(122, 138, 160, 0.1);
  box-shadow: inset 0 0 0 1px rgba(230, 235, 242, 0.16);
}

.runtime-mapped-result.is-full-image {
  border: none;
  background: transparent;
  box-shadow: none;
}

.runtime-mapped-index,
.runtime-mapped-result-badge,
.runtime-vector-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.runtime-mapped-index {
  top: 10px;
  left: 10px;
  min-width: 44px;
  height: 28px;
  justify-content: center;
  color: #fff;
  background: rgba(14, 24, 39, 0.84);
}

.runtime-mapped-result-badge {
  top: 10px;
  right: 10px;
  color: #fff;
  background: rgba(15, 24, 39, 0.84);
}

.runtime-mapped-result-badge.is-ng {
  background: rgba(173, 54, 54, 0.88);
}

.runtime-mapped-result-badge.is-neutral {
  background: rgba(89, 104, 124, 0.88);
}

.runtime-mapped-inner {
  position: absolute;
  inset: 14px;
}

.runtime-mapped-result.is-full-image .runtime-mapped-inner {
  inset: 18px;
}

.runtime-vector-box {
  position: absolute;
  left: 12%;
  top: 18%;
  width: 68%;
  height: 46%;
  border-radius: 12px;
  border: 2px dashed rgba(124, 233, 198, 0.94);
  background: rgba(72, 214, 180, 0.08);
}

.runtime-vector-box.is-ng {
  border-color: rgba(255, 132, 132, 0.96);
  background: rgba(255, 132, 132, 0.1);
}

.runtime-vector-box.is-neutral {
  border-color: rgba(171, 185, 204, 0.92);
  background: rgba(122, 138, 160, 0.08);
}

.runtime-vector-tag {
  left: 14px;
  top: calc(18% + 8px);
  max-width: calc(100% - 28px);
  color: #fff;
  background: rgba(15, 24, 39, 0.84);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-vector-tag.is-ng {
  background: rgba(173, 54, 54, 0.88);
}

.runtime-vector-tag.is-neutral {
  background: rgba(89, 104, 124, 0.88);
}

.vector-measure-shell {
  position: absolute;
}

.vector-measure-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid rgba(124, 233, 198, 0.96);
  transform: translateY(-50%);
}

.vector-measure-point {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(124, 233, 198, 1);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(124, 233, 198, 0.16);
}

.vector-measure-point.is-start {
  left: 0;
}

.vector-measure-point.is-end {
  left: 100%;
}

.vector-measure-label {
  position: absolute;
  left: 50%;
  top: calc(50% - 12px);
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 24, 39, 0.84);
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, -100%);
  white-space: nowrap;
}

.vector-measure-shell.is-ng .vector-measure-line {
  border-top-color: rgba(255, 132, 132, 0.96);
}

.vector-measure-shell.is-neutral .vector-measure-line {
  border-top-color: rgba(171, 185, 204, 0.92);
}

.vector-measure-shell.is-ng .vector-measure-point {
  background: rgba(255, 132, 132, 1);
  box-shadow: 0 0 0 4px rgba(255, 132, 132, 0.16);
}

.vector-measure-shell.is-neutral .vector-measure-point {
  background: rgba(171, 185, 204, 1);
  box-shadow: 0 0 0 4px rgba(171, 185, 204, 0.18);
}

.vector-measure-label.is-ng {
  background: rgba(173, 54, 54, 0.88);
}

.vector-measure-label.is-neutral {
  background: rgba(89, 104, 124, 0.88);
}

.runtime-camera-preview-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.runtime-camera-preview-frame {
  min-height: 360px;
}

.runtime-camera-preview-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.runtime-camera-preview-summary,
.runtime-camera-preview-meta-card {
  padding: 16px 18px;
  border: 1px solid #dde7f2;
  border-radius: 18px;
  background: #fbfdff;
}

.runtime-camera-preview-summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 14px;
  align-content: start;
}

.runtime-camera-preview-summary strong {
  font-size: 15px;
}

.runtime-camera-preview-meta-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.runtime-camera-preview-meta-card h4 {
  font-size: 16px;
}

.runtime-camera-preview-meta {
  grid-template-columns: 92px 1fr;
  row-gap: 10px;
}

.runtime-subresult-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.runtime-subresult-root {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.runtime-subresult-viewer {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.runtime-subresult-sidebar,
.runtime-subresult-source-panel,
.runtime-subresult-preview {
  border: 1px solid #dde7f2;
  border-radius: 20px;
  background: #fbfdff;
}

.runtime-subresult-source-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.runtime-subresult-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #23324a;
}

.runtime-subresult-panel-head strong {
  font-size: 15px;
}

.runtime-subresult-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.runtime-subresult-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.runtime-subresult-sidebar-title {
  padding: 18px 18px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #23324a;
}

.runtime-subresult-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px 12px;
  min-height: 0;
  overflow: auto;
}

.runtime-subresult-list-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #dde7f2;
  border-radius: 16px;
  color: #1f2b3d;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.runtime-subresult-list-item:hover {
  border-color: rgba(63, 126, 255, 0.26);
  background: #f7fbff;
}

.runtime-subresult-list-item.is-active {
  border-color: rgba(49, 114, 255, 0.42);
  background: rgba(49, 114, 255, 0.08);
  box-shadow: 0 10px 24px rgba(49, 114, 255, 0.12);
}

.runtime-subresult-list-thumb {
  min-height: 128px;
  border: 1px solid #dfe8f3;
}

.runtime-subresult-list-thumb .record-sub-image-grid,
.runtime-subresult-list-thumb .record-overlay-layer {
  inset: 14px;
}

.runtime-subresult-list-item.is-active .runtime-subresult-list-thumb {
  border-color: #3f7eff;
  box-shadow: 0 0 0 3px rgba(63, 126, 255, 0.16);
}

.runtime-subresult-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.runtime-subresult-list-copy {
  min-width: 0;
}

.runtime-subresult-list-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.runtime-subresult-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.runtime-subresult-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runtime-subresult-source-stage {
  flex: 1 1 auto;
  min-height: 0;
}

.runtime-subresult-source-box {
  border-width: 2px;
  border-style: solid;
  border-color: rgba(31, 168, 108, 0.96);
  background: rgba(31, 168, 108, 0.08);
}

.runtime-subresult-source-box.is-ng {
  border-color: rgba(231, 76, 76, 0.98);
  background: rgba(231, 76, 76, 0.1);
}

.runtime-subresult-source-box.is-active {
  box-shadow: 0 0 0 3px rgba(49, 114, 255, 0.3), 0 10px 24px rgba(49, 114, 255, 0.2);
}

.runtime-subresult-unified-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dde7f2;
  border-radius: 20px;
  background: #fbfdff;
}

.runtime-subresult-unified-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: #23324a;
}

.runtime-subresult-unified-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.runtime-subresult-unified-head strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-subresult-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.runtime-subresult-summary-item {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #dce7f5;
  border-radius: 6px;
  color: #4e6077;
  background: #f7faff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.runtime-subresult-summary-item.is-detect {
  border-color: #ffd7d7;
  color: #c93636;
  background: #fff5f5;
}

.runtime-subresult-zoom-tools {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce7f4;
  border-radius: 6px;
  background: #fff;
}

.runtime-subresult-zoom-tools button,
.runtime-subresult-zoom-tools span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  border: 0;
  border-left: 1px solid #e5edf7;
  color: #53657c;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
}

.runtime-subresult-zoom-tools button:first-child {
  border-left: 0;
}

.runtime-subresult-zoom-tools button {
  cursor: pointer;
}

.runtime-subresult-zoom-tools button:hover {
  color: var(--primary);
  background: #f3f7ff;
}

.runtime-subresult-unified-stage {
  flex: 1 1 auto;
  min-height: 0;
}

.runtime-subresult-unified-stage .runtime-source-stage-shell {
  overflow: hidden;
}

.runtime-subresult-unified-viewport {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.runtime-subresult-unified-canvas-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  transform: translate(var(--subresult-pan-x, 0%), var(--subresult-pan-y, 0%)) scale(var(--subresult-zoom, 1));
  transform-origin: center center;
  transition: transform 120ms ease;
}

.runtime-subresult-unified-canvas-inner .runtime-source-canvas {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.runtime-subresult-unified-box {
  border-width: 2px;
  border-style: solid;
  border-color: rgba(31, 168, 108, 0.96);
  background: rgba(31, 168, 108, 0.05);
  cursor: zoom-in;
}

.runtime-subresult-unified-box.is-ng {
  border-color: rgba(231, 76, 76, 0.98);
  background: rgba(231, 76, 76, 0.07);
}

.runtime-subresult-unified-box:hover {
  box-shadow: 0 10px 22px rgba(20, 35, 58, 0.22);
}

.runtime-subresult-unified-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#fff, #fff) 50% 50% / 9px 2px no-repeat,
    linear-gradient(#fff, #fff) 50% 50% / 2px 9px no-repeat,
    rgba(16, 33, 55, 0.62);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.26);
  transition: opacity 120ms ease;
}

.runtime-subresult-unified-box:hover::after {
  opacity: 1;
}

.runtime-subresult-full-defect {
  z-index: 3;
  border-width: 3px;
  border-style: solid;
  border-color: rgba(231, 76, 76, 0.98);
  background: rgba(231, 76, 76, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 6px 18px rgba(20, 35, 58, 0.2);
}

.runtime-subresult-region-label {
  position: absolute;
  top: -22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(20, 138, 95, 0.95);
}

.runtime-subresult-region-label {
  left: 0;
}

.runtime-subresult-region-label.is-ng {
  background: rgba(231, 76, 76, 0.96);
}

.runtime-subresult-defect-box {
  position: absolute;
  z-index: 3;
  border: 2px solid rgba(231, 76, 76, 0.98);
  border-radius: 3px;
  background: rgba(231, 76, 76, 0.1);
  pointer-events: none;
}

.runtime-subresult-defect-box.is-ok {
  border-color: rgba(31, 168, 108, 0.96);
  background: rgba(31, 168, 108, 0.08);
}

.runtime-subresult-defect-box em {
  position: absolute;
  right: -2px;
  bottom: calc(100% + 2px);
  max-width: 120px;
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(231, 76, 76, 0.96);
}

.runtime-subresult-defect-box.is-ok em {
  background: rgba(31, 168, 108, 0.95);
}

.runtime-subresult-stage-lg {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

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

.runtime-subresult-card {
  padding: 16px;
  border: 1px solid #dde7f2;
  border-radius: 18px;
  background: #fbfdff;
}

.runtime-subresult-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.runtime-subresult-stage {
  min-height: 220px;
  margin-top: 0;
}

.runtime-subresult-stage-lg {
  flex: 1;
  min-height: 460px;
}

.stage-overlay,
.stage-overlay-xl {
  position: absolute;
  inset: 18px;
  border-radius: 14px;
}

.stage-overlay {
  background:
    linear-gradient(90deg, transparent 0, transparent 48%, rgba(92, 255, 188, 0.5) 48.5%, rgba(92, 255, 188, 0.5) 49.5%, transparent 50%, transparent 100%),
    linear-gradient(0deg, transparent 0, transparent 48%, rgba(92, 255, 188, 0.5) 48.5%, rgba(92, 255, 188, 0.5) 49.5%, transparent 50%, transparent 100%),
    radial-gradient(circle at 50% 50%, rgba(241, 245, 252, 0.96) 0 18%, rgba(166, 175, 187, 0.9) 19% 34%, rgba(44, 51, 61, 0.92) 35% 45%, transparent 46%),
    radial-gradient(circle at 50% 50%, transparent 0 49%, rgba(200, 208, 218, 0.9) 50% 64%, transparent 65%);
}

.stage-overlay-xl {
  inset: 20px;
  background:
    linear-gradient(90deg, transparent 0, transparent 25%, rgba(92, 255, 188, 0.35) 25.3%, rgba(92, 255, 188, 0.35) 26%, transparent 26.2%, transparent 100%),
    radial-gradient(circle at 55% 52%, rgba(244, 247, 252, 0.96) 0 14%, rgba(170, 178, 189, 0.9) 15% 27%, rgba(48, 55, 67, 0.94) 28% 38%, transparent 39%),
    radial-gradient(circle at 55% 52%, transparent 0 41%, rgba(205, 211, 218, 0.9) 42% 57%, transparent 58%);
}

.stage-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(11, 19, 31, 0.44);
  backdrop-filter: blur(6px);
}

.storage-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  max-width: 980px;
}

.storage-panel .summary-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storage-card {
  border-radius: 24px;
}

.storage-card .threshold-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 320px) auto;
  gap: 16px;
  align-items: end;
}

.threshold-submit {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.cleanup-custom-range {
  margin-top: 4px;
}

.cleanup-preview-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.cleanup-preview-meta {
  grid-template-columns: 128px 1fr;
}

.record-export-note {
  color: var(--muted);
  line-height: 1.6;
}

.selection-count {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-tab {
  padding: 14px 16px;
  text-align: left;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(219, 228, 240, 0.92);
}

.settings-tab.is-active {
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
}

.settings-panel.storage-panel.is-active {
  display: flex;
}

.settings-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.record-export-section + .record-export-section {
  margin-top: 12px;
}

.table-select-col {
  width: 48px;
  text-align: center;
}

.table-select-col input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.reference-confirm-list {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

.modal-prompt {
  color: var(--text);
  line-height: 1.8;
  font-weight: 700;
}

.modal-prompt-danger {
  color: var(--text);
}

.modal .banner {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modal .banner-danger {
  color: var(--danger);
}

.modal .banner-warning {
  color: var(--warning);
}

.modal .banner-success {
  color: var(--success);
}

.modal .banner-primary {
  color: var(--primary);
}

.selection-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.selection-item-compact {
  flex: 0 0 auto;
  min-width: 220px;
  padding: 12px 14px;
}

.selection-item-compact .selection-item-copy {
  flex: 0 1 auto;
}

.selection-item-compact .selection-item-copy strong {
  margin-bottom: 0;
}

.record-sub-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.record-sub-card.is-active {
  background: #edf4ff;
  border-color: rgba(28, 99, 242, 0.28);
}

.record-sub-card-copy {
  min-width: 0;
  flex: 1;
}

.record-sub-card-copy strong {
  display: block;
  margin-bottom: 6px;
}

.record-sub-badges,
.record-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.record-sub-card-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.record-sub-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.record-result-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.record-tag-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.record-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.record-tag-empty {
  color: var(--muted);
}

.record-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-detail-meta {
  align-items: start;
}

.record-detail-meta-value {
  min-width: 0;
}

.record-detail-meta-value strong {
  display: block;
}

.record-detail-meta-value .record-tag-summary {
  min-height: 32px;
  align-items: center;
}

.record-detail-actions .table-btn {
  white-space: nowrap;
}

.review-flag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.camera-row-actions {
  display: inline-flex;
  width: auto;
  max-width: max-content;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-body.param-layout {
  display: grid;
  grid-template-columns: 260px 330px minmax(460px, 1fr);
  gap: 20px;
  height: min(78vh, 820px);
  max-height: none;
  overflow: hidden;
  align-items: stretch;
}

.param-sidebar,
.param-detail-panel,
.param-preview-panel {
  min-width: 0;
  min-height: 0;
}

.param-group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.param-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.param-sidebar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.param-sidebar-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-strong);
}

.param-sidebar-title p {
  margin-top: 4px;
  color: var(--muted);
}

.param-sidebar-toolbar .secondary-btn {
  margin-left: auto;
}

.param-sidebar .secondary-btn {
  white-space: nowrap;
}

.param-preview-panel,
.param-detail-panel {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.param-group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.param-group-item.is-active {
  background: #edf4ff;
  border-color: rgba(28, 99, 242, 0.28);
}

.param-group-main {
  min-width: 0;
  flex: 1;
  padding: 0;
  color: var(--ink-strong);
  text-align: left;
  background: transparent;
  border: none;
}

.param-group-main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.param-group-delete {
  flex: 0 0 auto;
}

.param-preview-panel {
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.param-preview-stage {
  width: min(100%, 720px);
  min-height: 0;
  height: auto;
  aspect-ratio: 2448 / 2048;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  cursor: zoom-in;
}

.zoomable-preview {
  overscroll-behavior: contain;
  cursor: zoom-in;
}

.zoomable-preview img,
.zoomable-preview .stage-overlay,
.zoomable-preview .sample-preview-grid {
  transform: scale(var(--preview-zoom, 1));
  transform-origin: center center;
  transition: transform 0.08s ease;
}

.param-detail-panel {
  display: flex;
  flex-direction: column;
}

.param-form-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
  padding-top: 2px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.param-form-grid {
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 14px;
}

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

.param-form-grid .field input,
.param-form-grid .field select {
  width: 100%;
  max-width: none;
}

.number-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}

.number-stepper input {
  height: 42px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}

.number-stepper button {
  height: 42px;
  border: 0;
  color: var(--muted);
  background: #f5f7fb;
  font-size: 20px;
}

.param-form-grid .field-span-full input {
  max-width: 520px;
}

.sub-tabs {
  display: flex;
  gap: 10px;
}

.sub-tab {
  padding: 10px 16px;
  color: var(--muted);
  background: #f2f5fa;
  font-weight: 800;
}

.sub-tab.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(860px, calc(100vw - 28px));
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -24px 0 56px rgba(15, 29, 49, 0.16);
  border-left: 1px solid rgba(219, 228, 240, 0.92);
  z-index: 42;
}

.drawer-header,
.drawer-footer {
  padding: 20px 24px;
  border-bottom: 1px solid #edf2f8;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-header > div {
  min-width: 0;
}

.drawer-header .icon-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid #edf2f8;
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.drawer-body {
  flex: 1 1 auto;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
}

.runtime-record-drawer {
  width: min(1420px, calc(100vw - 120px));
}

.runtime-record-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.runtime-record-drawer-list .runtime-record-item {
  min-height: 58px;
  background: #fff;
}

.runtime-record-drawer .drawer-body {
  overflow: hidden;
}

.runtime-record-drawer .record-session-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.runtime-record-drawer .record-session-summary {
  flex: 0 0 auto;
}

.runtime-record-drawer .record-session-layout {
  flex: 1 1 auto;
  grid-template-columns: 320px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.runtime-record-drawer .record-session-image-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 auto;
  align-content: start;
  grid-auto-rows: 178px;
}

.drawer-panel {
  display: none;
}

.drawer-panel.is-active {
  display: block;
}

.cloud-model-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 18px;
}

.cloud-model-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.cloud-model-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cloud-model-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cloud-model-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cloud-model-card-title-row h4 {
  margin: 0;
}

.cloud-model-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cloud-version-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #edf2f8;
}

.cloud-version-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6eef8;
}

.cloud-version-code {
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-strong);
}

.cloud-version-time {
  color: var(--muted);
  line-height: 1.6;
  min-width: 0;
}

.cloud-version-action {
  display: flex;
  justify-content: flex-end;
}

.cloud-version-action .table-btn {
  white-space: nowrap;
}

.drawer-record {
  width: min(780px, calc(100vw - 28px));
}

.record-detail-runtime-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.record-detail-runtime-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.record-detail-section {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fbfdff;
}

.record-detail-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.record-detail-summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.record-detail-summary-item span {
  color: var(--muted);
  font-size: 13px;
}

.record-detail-summary-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
}

.record-detail-summary-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
}

.record-detail-image-list-panel,
.record-detail-image-view-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.record-detail-image-list-head,
.record-detail-image-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-detail-image-list-head h4,
.record-detail-image-view-head h4 {
  margin: 0;
}

.record-detail-image-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.record-detail-image-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.record-detail-image-item.is-active {
  border-color: rgba(49, 114, 255, 0.42);
  background: rgba(49, 114, 255, 0.08);
  box-shadow: 0 10px 24px rgba(49, 114, 255, 0.12);
}

.record-detail-image-main {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.record-detail-image-copy {
  min-width: 0;
}

.record-detail-image-copy strong {
  display: block;
}

.record-detail-image-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.record-detail-image-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.record-detail-image-stage-shell {
  flex: 1 1 auto;
  min-height: 0;
}

.record-session-detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: min(720px, 72vh);
  min-height: 0;
}

.record-session-detail.is-drawer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.record-session-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe9f5;
  border-radius: 8px;
  background: #f8fbff;
}

.record-session-summary div {
  display: grid;
  gap: 5px;
}

.record-session-summary span {
  color: #7d8fa5;
  font-size: 12px;
  font-weight: 800;
}

.record-session-summary strong {
  color: #263a52;
  font-size: 22px;
  font-weight: 900;
}

.record-session-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.record-session-detail.is-drawer .record-session-layout {
  flex: 1 1 auto;
  height: 100%;
}

.record-session-cycle-list,
.record-session-image-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  border: 1px solid #dfe9f5;
  border-radius: 8px;
  background: #fff;
}

.record-session-detail.is-drawer .record-session-cycle-list,
.record-session-detail.is-drawer .record-session-image-panel {
  height: 100%;
}

.record-session-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.record-session-panel-head h4 {
  margin: 0;
  font-size: 15px;
}

.record-session-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.record-session-filter-tabs {
  display: flex;
  align-items: stretch;
  margin: -2px 0 10px;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 6px;
  background: #f7faff;
}

.record-session-filter-tabs button {
  appearance: none;
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 32px;
  padding: 0 6px;
  border: none;
  border-radius: 0;
  color: #5f7188;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.record-session-filter-tabs button + button {
  border-left: 1px solid #dce7f5;
}

.record-session-filter-tabs button:hover,
.record-session-filter-tabs button.is-active {
  color: #1465e8;
  background: #edf5ff;
}

.record-session-filter-tabs em {
  color: inherit;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.record-session-cycles {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.record-session-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #edf2f8;
}

.record-session-pagination button {
  appearance: none;
  min-width: 56px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dce7f5;
  border-radius: 6px;
  color: #246ff2;
  background: #f4f8ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.record-session-pagination button:disabled {
  color: #a7b4c4;
  background: #f7f9fc;
  cursor: not-allowed;
}

.record-session-pagination span {
  color: #6f8198;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.record-session-cycle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #e1e9f4;
  border-radius: 6px;
  color: #263a52;
  background: #f8fbff;
  cursor: pointer;
}

.record-session-cycle.is-active {
  border-color: #6ea2ff;
  background: #eef5ff;
}

.record-session-cycle-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.record-session-cycle-main strong,
.record-session-cycle-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-session-cycle-main small {
  display: grid;
  gap: 2px;
  color: #7d8fa5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.record-session-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.record-session-detail.is-drawer .record-session-image-grid {
  align-content: start;
  grid-auto-rows: 178px;
}

.record-session-image-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dfe9f5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.record-session-image-card:hover {
  border-color: #9fc0f3;
}

.record-session-image-visual {
  position: relative;
  flex: 0 0 150px;
  height: 150px;
  background: #f1f5fa;
}

.runtime-record-drawer .record-session-image-visual {
  flex-basis: 124px;
  height: 124px;
}

.record-session-image-visual .runtime-source-canvas {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.record-session-image-visual .runtime-result-tile-status {
  position: absolute;
  top: 10px;
  right: 10px;
}

.record-session-image-body {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-height: 40px;
  padding: 10px;
  background: #fff;
}

.record-session-image-body strong,
.record-session-image-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-session-image-body small {
  color: #7d8fa5;
  font-size: 12px;
  font-weight: 800;
}

.record-inline-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.record-image-viewer {
  min-height: 0;
}

.record-image-viewer-split {
  min-height: min(74vh, 760px);
}

.record-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.record-result-main-panel,
.record-result-side-panel {
  min-height: 0;
}

.record-result-main-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-result-main-toolbar,
.record-result-toolbar-group,
.record-result-side-head {
  display: flex;
  align-items: center;
}

.record-result-main-toolbar {
  justify-content: space-between;
  gap: 12px;
}

.record-result-toolbar-group {
  gap: 10px;
  flex-wrap: wrap;
}

.record-result-side-head {
  justify-content: space-between;
  margin-bottom: 2px;
}

.record-result-side-head h4 {
  margin: 0;
}

.modal-body.modal-body-record-detail {
  height: min(76vh, 820px);
  max-height: min(76vh, 820px);
  overflow: hidden;
}

.record-source-stage,
.record-sub-stage {
  min-height: 240px;
  margin-top: 0;
  background:
    radial-gradient(circle at 22% 32%, rgba(244, 247, 252, 0.9) 0 10%, rgba(166, 175, 187, 0.88) 11% 18%, rgba(48, 55, 67, 0.92) 19% 27%, transparent 28%),
    radial-gradient(circle at 68% 48%, rgba(244, 247, 252, 0.92) 0 12%, rgba(166, 175, 187, 0.9) 13% 20%, rgba(48, 55, 67, 0.94) 21% 31%, transparent 32%),
    linear-gradient(180deg, #101a28 0%, #1a2942 100%);
  background-size: var(--record-background-size, auto);
  background-position: var(--record-background-position, center);
}

.record-stage-grid,
.record-sub-image-grid {
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(104, 198, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(104, 198, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.record-result-main-stage {
  min-height: min(62vh, 620px);
}

.record-result-side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(62vh, 620px);
  overflow: hidden;
}

.record-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.record-thumb-item {
  appearance: none;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.record-thumb-stage {
  min-height: 138px;
  border: 1px solid #dfe8f3;
}

.record-thumb-item.is-active .record-thumb-stage {
  border-color: #3f7eff;
  box-shadow: 0 0 0 3px rgba(63, 126, 255, 0.16);
}

.record-thumb-index {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(13, 23, 39, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.record-roi-layer,
.record-overlay-layer {
  position: absolute;
  inset: 18px;
}

.record-roi-button {
  appearance: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.record-roi-box,
.record-vector-box {
  position: absolute;
  border-radius: 14px;
}

.record-roi-box {
  appearance: none;
  padding: 0;
  border: 2px solid rgba(124, 233, 198, 0.92);
  background: rgba(72, 214, 180, 0.08);
  box-shadow: inset 0 0 0 1px rgba(152, 255, 221, 0.14);
  cursor: zoom-in;
}

.record-thumb-stage .record-sub-image-grid,
.record-thumb-stage .record-overlay-layer {
  inset: 14px;
}

.record-roi-box.is-ng {
  border-color: rgba(255, 132, 132, 0.96);
  background: rgba(255, 132, 132, 0.1);
}

.record-roi-box.is-neutral {
  border-color: rgba(171, 185, 204, 0.92);
  background: rgba(122, 138, 160, 0.08);
}

.record-roi-box span,
.record-vector-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.record-roi-box span {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 28px;
  height: 28px;
  justify-content: center;
  color: #fff;
  background: rgba(14, 24, 39, 0.84);
}

.record-vector-box {
  border: 2px dashed rgba(124, 233, 198, 0.94);
  background: rgba(72, 214, 180, 0.08);
}

.record-vector-box.is-ng {
  border-color: rgba(255, 132, 132, 0.96);
  background: rgba(255, 132, 132, 0.1);
}

.record-vector-box.is-neutral {
  border-color: rgba(171, 185, 204, 0.92);
  background: rgba(122, 138, 160, 0.08);
}

.record-vector-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  max-width: calc(100% - 36px);
  color: #fff;
  background: rgba(15, 24, 39, 0.84);
}

.record-vector-tag.is-ng {
  background: rgba(173, 54, 54, 0.88);
}

.record-vector-tag.is-neutral {
  background: rgba(89, 104, 124, 0.88);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 23, 37, 0.42);
  backdrop-filter: blur(4px);
  z-index: 40;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(219, 228, 240, 0.92);
  z-index: 44;
}

.modal-xl {
  width: min(1080px, calc(100vw - 28px));
}

.modal-record-result {
  width: min(1220px, calc(100vw - 28px));
}

.modal-param {
  width: min(1240px, calc(100vw - 28px));
}

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

.modal-data-return {
  width: min(820px, calc(100vw - 28px));
}

.data-return-modal {
  display: grid;
  gap: 10px;
}

.data-return-group-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.data-return-model-row {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fff;
}

.data-return-operator-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.data-return-operator-main strong,
.data-return-operator-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-return-operator-main strong {
  color: #263a52;
  font-size: 14px;
  font-weight: 900;
}

.data-return-operator-main small {
  margin-top: 5px;
  color: #7d8fa5;
  font-size: 12px;
  font-weight: 800;
}

.data-return-operator-total {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  align-items: center;
}

.data-return-operator-total span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: #5f7188;
  background: #f0f6ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.data-return-operator-total b {
  color: #1465e8;
  font-size: 16px;
  font-weight: 950;
}

.data-return-instance-detail {
  border-top: 1px solid #edf2f8;
  padding-top: 8px;
}

.data-return-instance-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: #52667f;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.data-return-instance-detail summary::-webkit-details-marker {
  display: none;
}

.data-return-instance-detail summary::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #7d8fa5;
  transition: transform 0.16s ease;
}

.data-return-instance-detail[open] summary::before {
  transform: rotate(90deg);
}

.data-return-instance-detail summary span {
  margin-right: auto;
}

.data-return-instance-detail summary em {
  color: #7d8fa5;
  font-style: normal;
}

.data-return-source-list {
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.data-return-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #f5f8fc;
}

.data-return-source-row span {
  overflow: hidden;
  color: #263a52;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-return-source-row em {
  color: #7d8fa5;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
}

.modal-io-point-config {
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 64px));
}

.modal-io-point-config .modal-body {
  flex: 1;
  height: 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.modal-io-point-config .modal-footer {
  flex: 0 0 auto;
}

.modal-io-module {
  width: min(940px, calc(100vw - 28px));
}

.modal-launch {
  width: min(940px, calc(100vw - 28px));
}

.modal.modal-capture-record {
  display: flex;
  flex-direction: column;
  width: min(1320px, calc(100vw - 36px));
  height: min(820px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  border-radius: 14px;
  overflow: hidden;
}

.modal.modal-capture-record .modal-header,
.modal.modal-capture-record .modal-footer {
  flex: 0 0 auto;
}

.modal.modal-capture-record .modal-body.modal-body-capture-record {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.modal.modal-capture-record .capture-record-detail {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.modal.modal-capture-record .capture-library-detail {
  height: 100%;
  min-height: 0;
}

.modal-header,
.modal-footer {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#sharedModalFooter {
  justify-content: flex-start;
  gap: 8px;
}

#sharedModalConfirm {
  margin-left: auto;
}

.modal-body {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(76vh, 820px);
  overflow: auto;
}

.modal-body.modal-body-subresult {
  height: min(72vh, 720px);
  max-height: min(72vh, 720px);
  overflow: hidden;
}

.modal-body.modal-body-launch {
  gap: 10px;
}

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

.launch-mode-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  min-height: 184px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #d6e2f0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.launch-mode-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.launch-mode-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.launch-mode-card strong {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.launch-mode-card p {
  margin-top: 0;
  color: rgba(23, 42, 68, 0.78);
  line-height: 1.65;
  font-size: 15px;
  min-height: 74px;
}

.launch-mode-state {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: #6d7d92;
  font-size: 12px;
  font-weight: 700;
}

.launch-mode-card-acquire {
  color: #194d9f;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.launch-mode-card-process {
  color: #8a4c15;
  background: linear-gradient(180deg, #fffaf3 0%, #fff0db 100%);
}

.launch-mode-card-detect {
  color: #126044;
  background: linear-gradient(180deg, #f5fcf8 0%, #e8f5ee 100%);
}

.launch-mode-card.is-disabled {
  color: #8191a6;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.toast-stack {
  position: fixed;
  top: 94px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100vw - 32px));
  z-index: 90;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  color: #32445a;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(35, 54, 79, 0.16);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.toast.is-warning {
  border-color: #e8d39c;
  color: #7a5812;
  background: #fffaf0;
}

.toast.is-error {
  border-color: #efb8b4;
  color: #a53b34;
  background: #fff5f4;
}

.toast.is-success {
  border-color: #a9d9bd;
  color: #236f48;
  background: #f2fbf6;
}

@media (max-width: 1240px) {
  .summary-grid,
  .tool-card-grid,
  .hero-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runtime-grid,
  .runtime-subresult-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .runtime-record-drawer {
    width: min(1180px, calc(100vw - 28px));
  }

  .runtime-record-drawer .record-session-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .runtime-record-drawer .record-session-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .runtime-control-row {
    grid-template-columns: 1fr;
  }

  .runtime-primary-actions {
    grid-template-rows: 96px 72px;
  }

  .capture-workbench-grid {
    grid-template-columns: 230px minmax(360px, 1fr);
    height: auto;
  }

  .capture-runtime-layout {
    grid-template-columns: 320px minmax(360px, 1fr);
  }

  .capture-images-panel {
    grid-column: 1 / -1;
  }

  .capture-record-detail {
    grid-template-columns: 200px minmax(380px, 1fr);
  }

  .capture-record-preview {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .runtime-subresult-viewer {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .record-detail-summary-strip,
  .record-detail-runtime-split,
  .record-result-layout {
    grid-template-columns: 1fr;
  }

  .runtime-left-stack,
  .runtime-side-stack {
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, auto));
  }

  .runtime-camera-preview-dialog {
    grid-template-columns: 1fr;
  }

  .grid-two,
  .records-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 1040px) {
  .modal-body.param-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: min(76vh, 820px);
    overflow: auto;
  }

  .param-group-list,
  .param-form-scroll {
    overflow: visible;
    padding-right: 0;
  }

  .param-form-grid,
  .storage-card .threshold-grid {
    grid-template-columns: 1fr;
  }

  .param-form-grid .field input,
  .param-form-grid .field select,
  .param-form-grid .field-span-full input {
    max-width: none;
  }

  .storage-panel .summary-grid {
    grid-template-columns: 1fr;
  }

  .roi-editor-content {
    grid-template-columns: 1fr;
  }

  .builder-thumb {
    flex-basis: 100%;
  }
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero,
  .page-shell,
  .platform-main {
    padding: 24px;
  }

  .client-topbar,
  .platform-topbar {
    height: auto;
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .client-topbar-main {
    width: 100%;
    flex-wrap: wrap;
  }

  .client-topbar-alerts {
    width: 100%;
  }

  .topbar-company {
    margin-left: 0;
    text-align: left;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    overflow: auto;
  }

  .client-sidebar {
    padding: 14px;
  }

  .sidebar-demo-panel {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    padding-left: 4px;
    border-top: none;
    border-left: 1px dashed rgba(255, 255, 255, 0.18);
  }

  .sidebar-demo-panel .demo-btn {
    width: auto;
    white-space: nowrap;
  }

  .nav-item {
    min-width: 118px;
    min-height: 96px;
    gap: 8px;
    font-size: 15px;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
  }

  .summary-grid,
  .tool-card-grid,
  .runtime-grid,
  .hero-info-grid,
  .judgment-builder-shell,
  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .judgment-builder-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .judgment-condition-row {
    grid-template-columns: 1fr;
  }

  .platform-main-nav {
    width: 100%;
    overflow: auto;
  }
}

@media (max-width: 720px) {
  .runtime-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .runtime-camera-toolbar {
    justify-content: flex-start;
  }

  .runtime-title-summary {
    flex-basis: 100%;
    order: 3;
    width: 100%;
    height: auto;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(32px, auto));
    padding: 6px 8px;
  }

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

  .runtime-title-summary.runtime-batch-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .runtime-session-metric {
    justify-content: space-between;
    border-bottom: 1px solid #e3e9f0;
  }

  .runtime-session-metric + .runtime-session-metric {
    border-left: none;
  }

  .runtime-primary-actions .primary-btn,
  .runtime-primary-actions .secondary-btn {
    flex: 1 1 0;
    width: auto;
  }

  .capture-setup-head {
    display: none;
  }

  .capture-setup-row,
  .capture-batch-summary,
  .capture-workbench-grid,
  .capture-runtime-layout,
  .capture-record-detail,
  .capture-library-detail {
    grid-template-columns: 1fr;
  }

  .capture-live-grid.is-multi,
  .capture-multi-live-grid,
  .capture-record-image-grid {
    grid-template-columns: 1fr;
  }

  .capture-images-panel,
  .capture-record-preview {
    grid-column: auto;
  }

  .capture-live-actions,
  .capture-image-batch-actions,
  .capture-record-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-mode-grid {
    grid-template-columns: 1fr;
  }

  .page-header,
  .section-head,
  .toolbar-row,
  .toolbar-left,
  .toolbar-right,
  .wizard-footer,
  .wizard-footer-right,
  .tool-card-top,
  .tool-card-actions,
  .builder-item,
  .selection-item,
  .subresult-item,
  .cloud-version-row,
  .record-sub-card,
  .camera-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left input,
  .toolbar-left select {
    min-width: 0;
  }

  .cloud-model-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cloud-model-card-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cloud-version-row {
    grid-template-columns: 1fr;
  }

  .cloud-version-time {
    text-align: left;
  }

  .cloud-version-action {
    justify-content: flex-start;
  }

  .record-result-layout {
    grid-template-columns: 1fr;
  }

  .record-result-side-panel {
    max-height: none;
  }

  .record-thumb-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 4px;
  }

  .record-thumb-item {
    flex: 0 0 180px;
  }

  .cleanup-preview-meta {
    grid-template-columns: 1fr;
  }

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

  .double-column {
    grid-template-columns: 1fr;
  }

  .meta-list,
  .compact-meta {
    grid-template-columns: 1fr;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .runtime-result-value {
    font-size: 48px;
  }

  .modal,
  .modal-xl,
.drawer {
    width: calc(100vw - 20px);
  }
}

/* Dimension tool: local desktop workbench */
.dimension-tool-body {
  min-height: 100vh;
  margin: 0;
  color: #203247;
  font-family: "DIN Alternate", "Bahnschrift", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(28, 99, 242, 0.08), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(31, 157, 103, 0.06), transparent 24%),
    linear-gradient(180deg, #eef4fb 0%, #f5f8fc 42%, #f8fafc 100%);
}

.dt-app {
  min-height: 100vh;
  padding: 14px;
  box-sizing: border-box;
}

.dt-window {
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: 44px 42px 74px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(207, 220, 234, 0.98);
  background: rgba(248, 251, 255, 0.98);
  box-shadow:
    0 22px 52px rgba(31, 51, 79, 0.12),
    0 3px 10px rgba(31, 51, 79, 0.08);
}

.dt-window-chrome,
.dt-menu-row,
.dt-toolbar,
.dt-sidebar,
.dt-main,
.dt-inspector {
  min-width: 0;
}

.dt-window-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 253, 0.96) 100%);
  border-bottom: 1px solid rgba(216, 226, 238, 0.9);
}

.dt-window-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.dt-window-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(18, 31, 48, 0.08);
}

.dt-window-dot.is-close {
  background: #ff5f57;
}

.dt-window-dot.is-minimize {
  background: #febb2f;
}

.dt-window-dot.is-maximize {
  background: #28c840;
}

.dt-window-title {
  flex: 1 1 auto;
  text-align: center;
  color: #22364e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dt-window-meta {
  flex: 0 0 auto;
  min-width: 180px;
  color: #7a8ea6;
  font-size: 12px;
  text-align: right;
}

.dt-menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(248, 251, 255, 0.96);
  border-bottom: 1px solid rgba(221, 230, 240, 0.92);
}

.dt-menu-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dt-menu-item,
.dt-icon-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #50667f;
  font-size: 12px;
  font-weight: 700;
}

.dt-menu-item:hover,
.dt-icon-btn:hover {
  border-color: #d7e2ef;
  background: rgba(255, 255, 255, 0.88);
}

.dt-menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(250, 252, 255, 0.98);
  border-bottom: 1px solid rgba(220, 229, 239, 0.92);
}

.dt-toolbar-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.dt-toolbar-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.dt-toolbar-label {
  color: #7a8ea6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt-project-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dt-project-switch-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d9e4f1;
  border-radius: 10px;
  background: #fff;
  color: #58708b;
  font-size: 12px;
  font-weight: 800;
}

.dt-project-switch-btn.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
  color: #1c63f2;
}

.dt-sidebar,
.dt-main,
.dt-inspector {
  border: 1px solid rgba(214, 226, 239, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(26, 43, 66, 0.06);
}

.dt-overline {
  margin: 0;
  color: #6f8298;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dt-project-name,
.dt-project-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d8e4f1;
  background: #f6f9fd;
  color: #6f8298;
  font-size: 12px;
}

.dt-project-name {
  color: #1f3147;
  font-weight: 700;
}

.dt-topbar-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.dt-action-btn,
.dt-tool-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d3dfed;
  border-radius: 9px;
  background: #fff;
  color: #35506f;
  font-weight: 700;
}

.dt-action-btn.is-primary {
  border-color: rgba(28, 99, 242, 0.22);
  background: linear-gradient(135deg, #1c63f2 0%, #4a8eff 100%);
  color: #fff;
}

.dt-workbench {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 12px;
}

.dt-sidebar,
.dt-main,
.dt-inspector {
  min-height: 0;
  border-radius: 14px;
}

.dt-sidebar,
.dt-inspector {
  padding: 14px;
  overflow: auto;
}

.dt-pane-head {
  margin-bottom: 12px;
}

.dt-sidebar-block + .dt-sidebar-block,
.dt-inspector-block + .dt-inspector-block {
  margin-top: 16px;
}

.dt-pane-head h2,
.dt-block-head h3 {
  margin: 0;
  font-size: 13px;
  color: #6f8298;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dt-project-card {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dde7f2;
  background: #f9fbfe;
}

.dt-project-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dt-project-card-row + .dt-project-card-row {
  margin-top: 8px;
}

.dt-project-card-row span {
  color: #6f8298;
  font-size: 12px;
}

.dt-project-card-row strong {
  color: #203247;
  font-size: 13px;
  text-align: right;
}

.dt-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dt-tree-node {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 calc(12px + var(--tree-depth) * 20px);
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #5f738c;
  text-align: left;
  font-weight: 700;
}

.dt-tree-node.is-branch {
  color: #203247;
}

.dt-tree-node.is-leaf {
  font-size: 13px;
  color: #71849b;
}

.dt-tree-node.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
  color: #1c63f2;
}

.dt-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
}

.dt-wizard-head {
  min-height: 0;
}

.dt-wizard-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-wizard-actions-bottom {
  justify-content: flex-end;
  padding-top: 4px;
}

.dt-editor-main > .dt-wizard-actions-bottom {
  display: none;
}

.dt-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dt-workspace {
  min-height: 0;
}

.dt-workspace.is-calibration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: stretch;
}

.dt-workspace.is-template-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: stretch;
}

.dt-workspace.is-measure-config {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) 256px;
  gap: 12px;
  align-items: stretch;
}

.dt-workspace.is-validate-config {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.dt-workspace.is-release-config {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.dt-workspace.is-workbench,
.dt-workspace.is-workbench.is-calibration,
.dt-workspace.is-workbench.is-template-config,
.dt-workspace.is-workbench.is-measure-config,
.dt-workspace.is-workbench.is-validate-config,
.dt-workspace.is-workbench.is-release-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  align-items: stretch;
  min-height: 0;
}

.dt-workspace.is-workbench.has-element-sidebar,
.dt-workspace.is-workbench.has-element-sidebar.is-calibration,
.dt-workspace.is-workbench.has-element-sidebar.is-measure-config {
  grid-template-columns: 300px minmax(0, 1fr) 340px;
}

.dt-side-panel {
  min-height: 420px;
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: #fbfdff;
  overflow: auto;
}

.dt-side-panel-left {
  display: grid;
  align-content: start;
  gap: 12px;
}

.dt-workspace.is-workbench.has-element-sidebar .dt-side-panel-left {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.dt-side-panel-right {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dt-workspace.is-workbench .dt-side-panel-right {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  grid-template-rows: 1.05fr 1fr 0.9fr;
  align-content: stretch;
}

.dt-workspace.is-workbench.is-release-config .dt-side-panel-right {
  grid-template-rows: minmax(0, 1fr) 220px;
}

.dt-workspace.is-workbench.is-validate-config .dt-side-panel-right {
  grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.dt-workspace.is-workbench.is-measure-config .dt-side-panel-right {
  grid-template-rows: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.dt-workspace.is-workbench.is-calibration-manual .dt-side-panel-right {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.dt-workspace.is-workbench.is-calibration-manual .dt-workbench-panel {
  min-height: auto;
}

.dt-workspace.is-workbench.is-calibration-manual .dt-toolbox-panel {
  max-height: 190px;
}

.dt-workspace.is-workbench.has-element-sidebar .dt-side-panel-left .dt-toolbox-panel {
  min-height: 190px;
  max-height: 220px;
}

.dt-workspace.is-workbench.is-calibration-auto .dt-side-panel-right {
  grid-template-rows: 104px minmax(0, 1fr);
}

.dt-workspace.is-workbench.is-calibration:not(.is-calibration-manual):not(.is-calibration-auto) .dt-side-panel-right {
  grid-template-rows: 104px minmax(0, 1fr);
}

.dt-workbench-panel {
  min-height: 0;
  padding: 12px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dt-workbench-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 10px;
}

.dt-workbench-panel-head strong {
  color: #20354e;
  font-size: 14px;
  font-weight: 900;
}

.dt-toolbox-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
}

.dt-config-panel {
  gap: 0;
}

.dt-panel-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 2px;
}

.dt-calibration-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dt-calibration-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.dt-calibration-mode-tabs.is-compact {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(42px, 1fr));
  gap: 4px;
  min-width: 104px;
  width: fit-content;
  padding: 3px;
  border: 1px solid #d9e4f1;
  border-radius: 10px;
  background: #f3f7fc;
}

.dt-calibration-mode-tabs button {
  min-height: 32px;
  border: 1px solid #d4dfec;
  border-radius: 9px;
  background: #fff;
  color: #304a69;
  font-size: 12px;
  font-weight: 800;
}

.dt-calibration-mode-tabs.is-compact button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
}

.dt-calibration-mode-tabs button.is-active {
  border-color: rgba(28, 99, 242, 0.28);
  background: #edf4ff;
  color: #1c63f2;
}

.dt-calibration-mode-tabs.is-compact button.is-active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(25, 55, 92, 0.12);
}

.dt-value-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.dt-workbench-value-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.dt-measure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 44px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #dbe5f0;
  border-radius: 9px;
  background: #fff;
}

.dt-measure-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dt-measure-row strong {
  color: #203247;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-measure-row span {
  color: #7388a0;
  font-size: 10px;
  font-weight: 800;
}

.dt-measure-row em {
  color: #203247;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.dt-measure-row b {
  min-height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

.dt-measure-row b.is-ok {
  background: #eef9f2;
  color: #217d4f;
}

.dt-measure-row b.is-ng {
  background: #fff1ef;
  color: #c05342;
}

.dt-measure-row b.is-error {
  background: #f2f5fa;
  color: #66788f;
}

.dt-image-state-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef3f8;
  color: #6f849b;
  font-size: 11px;
  font-weight: 800;
}

.dt-image-state-row strong {
  color: #20354e;
}

.dt-empty-mini {
  display: grid;
  place-items: center;
  min-height: 64px;
  color: #7388a0;
  font-size: 11px;
  font-weight: 800;
}

.dt-element-list-panel {
  min-height: 0;
}

.dt-element-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.dt-element-row {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #fff;
}

.dt-element-row.is-active {
  border-color: rgba(28, 99, 242, 0.42);
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(28, 99, 242, 0.08);
}

.dt-element-row.is-error {
  border-color: #ffd2cc;
  background: #fff8f7;
}

.dt-element-row.is-active.is-error {
  border-color: #ff9b8f;
  background: #fff3f1;
}

.dt-element-row-main {
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.dt-element-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #21a367;
}

.dt-element-row.is-error .dt-element-status-dot {
  background: #e95d4f;
}

.dt-element-row-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dt-element-row-copy strong {
  overflow: hidden;
  color: #203247;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-element-row-copy em {
  overflow: hidden;
  color: #7388a0;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-element-row-main b {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef9f2;
  color: #217d4f;
  font-size: 10px;
  font-weight: 900;
  line-height: 22px;
}

.dt-element-row.is-error .dt-element-row-main b {
  background: #fff1ef;
  color: #c05342;
}

.dt-element-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.dt-element-row-actions button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d7e3f0;
  border-radius: 7px;
  background: #fff;
  color: #365673;
  font-size: 10px;
  font-weight: 900;
}

.dt-element-row-actions button.is-danger {
  border-color: #ffd2cc;
  color: #c05342;
  background: #fff8f7;
}

.dt-element-alert {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #f8fbff;
}

.dt-element-alert.is-error {
  border-color: #ffd2cc;
  background: #fff8f7;
}

.dt-element-alert strong {
  color: #203247;
  font-size: 12px;
  font-weight: 900;
}

.dt-element-alert.is-error strong {
  color: #c05342;
}

.dt-element-alert span {
  color: #6f849b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.dt-toolbox-hint {
  display: none;
  position: static;
  max-width: none;
  box-shadow: none;
}

.dt-toolbox-head {
  display: grid;
  gap: 4px;
}

.dt-toolbox-head strong {
  color: #1f3147;
  font-size: 15px;
}

.dt-toolbox-head span {
  color: #7388a0;
  font-size: 12px;
  line-height: 1.5;
}

.dt-toolbox-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e4ebf4;
}

.dt-toolbox-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.dt-toolbox-tab {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a8ea5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.dt-toolbox-tab.is-active {
  color: #1c63f2;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.dt-toolbox-tab:hover {
  color: #1c63f2;
}

.dt-toolbox-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.dt-toolbox-icon-btn {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 6px;
  border: 1px solid #d8e4f1;
  border-radius: 9px;
  background: #fff;
  color: #294567;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  text-align: center;
}

.dt-toolbox-icon-btn.is-active {
  border-color: rgba(28, 99, 242, 0.28);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  box-shadow: inset 0 0 0 1px rgba(28, 99, 242, 0.08);
}

.dt-toolbox-icon-btn:disabled {
  border-color: #dde7f2;
  background: #f5f8fc;
  color: #91a3b7;
}

.dt-toolbox-icon-btn:disabled .dt-toolbox-icon-mark {
  background: #edf2f7;
  color: #99a9bb;
}

.dt-toolbox-icon-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5fb;
  color: #4a6685;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dt-toolbox-icon-btn strong {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.dt-toolbox-icon-btn.is-active strong {
  color: #1c63f2;
}

.dt-toolbox-icon-btn.is-active .dt-toolbox-icon-mark {
  background: #1c63f2;
  color: #fff;
}

.dt-step-tool-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d4dfec;
  border-radius: 10px;
  background: #fff;
  color: #304a69;
  font-size: 12px;
  font-weight: 800;
}

.dt-step-tool-btn.is-primary {
  border-color: rgba(28, 99, 242, 0.24);
  background: linear-gradient(135deg, #1c63f2 0%, #4a8eff 100%);
  color: #fff;
}

.dt-side-action {
  width: 100%;
}

.dt-side-field {
  padding: 10px;
  border: 1px solid #dde7f2;
  border-radius: 10px;
  background: #fbfdff;
}

.dt-side-field:has(.dt-side-input),
.dt-side-field:has(.dt-side-select) {
  display: grid;
  grid-template-columns: minmax(94px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dt-side-field-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: #7388a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-side-field:has(.dt-side-input) .dt-side-field-label,
.dt-side-field:has(.dt-side-select) .dt-side-field-label {
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  color: #526982;
  font-size: 12px;
  white-space: nowrap;
}

.dt-field-hint {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3fb;
  color: #6c8198;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.dt-side-field-value {
  display: block;
  color: #1f3147;
  font-size: 12px;
  line-height: 1.4;
}

.dt-side-field-value.is-tone-ok {
  color: #1f9d67;
}

.dt-side-field-value.is-tone-warn {
  color: #d38a1f;
}

.dt-side-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  background: #fff;
  color: #304a69;
  font-size: 12px;
  font-weight: 700;
}

.dt-side-select {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  background: #fff;
  color: #304a69;
  font-size: 12px;
  font-weight: 700;
}

.dt-side-metric {
  color: #1f3147;
  font-size: 18px;
  line-height: 1.1;
}

.dt-side-file {
  display: block;
  color: #20354e;
  font-size: 15px;
  line-height: 1.4;
}

.dt-side-subtext {
  display: block;
  margin-top: 6px;
  color: #7388a0;
  font-size: 12px;
}

.dt-side-field.is-compact {
  padding-top: 12px;
  padding-bottom: 12px;
}

.dt-side-status {
  color: #23734c;
  font-size: 15px;
  line-height: 1.4;
}

.dt-tab-btn {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d8e4f1;
  border-radius: 14px;
  background: #f8fbff;
  color: #627790;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  justify-items: start;
  gap: 8px;
  text-align: left;
}

.dt-tab-btn-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6edf7;
  color: #5e7791;
  font-size: 12px;
  font-weight: 800;
}

.dt-tab-btn-label {
  line-height: 1;
}

.dt-tab-btn.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
  color: #1c63f2;
  box-shadow: inset 0 0 0 1px rgba(28, 99, 242, 0.08);
}

.dt-tab-btn.is-active .dt-tab-btn-index {
  background: #1c63f2;
  color: #fff;
}

.dt-tab-btn.is-done {
  background: #eef8f2;
  border-color: #d3eadb;
  color: #23734c;
}

.dt-tab-btn.is-done .dt-tab-btn-index {
  background: #1f9d67;
  color: #fff;
}

.dt-stage-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dbe5f0;
  background: #f4f7fb;
}

.dt-stage-upload {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.dt-stage-content {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
}

.dt-stage-floating {
  max-width: 260px;
  padding: 8px 12px;
  border: 1px solid rgba(28, 99, 242, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(21, 39, 70, 0.08);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 4px;
}

.dt-stage-floating strong {
  display: block;
  color: #1f3147;
  font-size: 12px;
  font-weight: 800;
}

.dt-stage-floating span {
  display: block;
  color: #6f8298;
  font-size: 11px;
  line-height: 1.45;
}

.dt-stage-upload-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(28, 99, 242, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #2453a8;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.dt-template-empty-card {
  width: min(380px, 76%);
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  border: 2px dashed rgba(28, 99, 242, 0.42);
  border-radius: 18px;
  background: #eef5ff;
  color: #1c63f2;
  text-align: center;
}

.dt-template-empty-card strong {
  font-size: 20px;
  font-weight: 900;
}

.dt-template-empty-card span {
  max-width: 280px;
  color: #5f7896;
  font-size: 13px;
  line-height: 1.6;
}

.dt-validate-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 32px;
}

.dt-validate-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.dt-validate-panel-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.dt-validate-card {
  padding: 8px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.dt-validate-card.is-active {
  border-color: rgba(28, 99, 242, 0.28);
  background: #edf4ff;
}

.dt-validate-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe5f0;
}

.dt-validate-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dt-validate-card-copy strong {
  color: #203247;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.dt-validate-card-copy span {
  color: #7388a0;
  font-size: 11px;
  line-height: 1.4;
}

.dt-validate-card-copy em {
  color: #1f3147;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.dt-validate-card-result {
  min-width: 38px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.dt-validate-card-result.is-ok {
  background: #eef9f2;
  color: #217d4f;
}

.dt-validate-card-result.is-warn {
  background: #fef5e8;
  color: #a56c12;
}

.dt-validate-card-result.is-error {
  background: #fff1ef;
  color: #c05342;
}

.dt-release-list {
  display: grid;
  gap: 10px;
}

.dt-release-check-row {
  padding: 12px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dt-release-check-copy {
  display: grid;
  gap: 6px;
}

.dt-release-check-copy strong {
  color: #203247;
  font-size: 13px;
  font-weight: 800;
}

.dt-release-check-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.dt-release-check-state.is-done {
  background: #eef9f2;
  color: #217d4f;
}

.dt-release-check-state.is-skip {
  background: #f2f5fa;
  color: #708097;
}

.dt-release-check-state.is-missing {
  background: #fff1ef;
  color: #c05342;
}

.dt-release-card {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid #dde7f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(21, 39, 70, 0.08);
  display: grid;
  gap: 18px;
}

.dt-release-card-head {
  display: grid;
  gap: 6px;
}

.dt-release-card-head strong {
  color: #1f3147;
  font-size: 22px;
  font-weight: 800;
}

.dt-release-card-head span {
  font-size: 13px;
  font-weight: 800;
}

.dt-release-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dt-release-meta-item {
  padding: 12px;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.dt-release-meta-item span {
  color: #7388a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-release-meta-item strong {
  color: #203247;
  font-size: 15px;
  line-height: 1.4;
}

.dt-release-btn {
  min-height: 52px;
  font-size: 15px;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(28, 99, 242, 0.2);
}

.dt-stage-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease;
}

.dt-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 92%;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 0.12s ease;
}

.dt-stage-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(204, 218, 235, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(22, 44, 74, 0.1);
}

.dt-stage-zoom button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: #1c63f2;
  font-size: 16px;
  font-weight: 900;
}

.dt-stage-zoom span {
  min-width: 46px;
  color: #304a69;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.dt-bottom-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
}

.dt-bottom-block {
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dde7f2;
  background: #f9fbfe;
}

.dt-block-head {
  margin-bottom: 10px;
}

.dt-sample-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.dt-sample-card {
  flex: 0 0 120px;
  padding: 8px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #fff;
  color: #223347;
}

.dt-sample-card.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
}

.dt-sample-card img {
  width: 100%;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dbe5f0;
}

.dt-sample-copy {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.dt-sample-copy strong {
  color: #203247;
  font-size: 13px;
}

.dt-sample-copy span {
  color: #6f8298;
  font-size: 12px;
  text-align: left;
}

.dt-sample-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.dt-sample-status.is-ok {
  color: #a8f0cf;
  background: rgba(22, 123, 86, 0.32);
}

.dt-sample-status.is-warn {
  color: #ffd48e;
  background: rgba(174, 112, 23, 0.28);
}

.dt-result-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.dt-result-card,
.dt-field-item {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #dde7f2;
  background: #fff;
}

.dt-result-card span,
.dt-field-item span {
  display: block;
  color: #708097;
  font-size: 10px;
}

.dt-result-card strong,
.dt-field-item strong {
  display: block;
  margin-top: 4px;
  color: #203247;
  font-size: 12px;
}

.dt-field-list {
  display: grid;
  gap: 8px;
}

.dt-status-head {
  margin-top: 16px;
}

.dt-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dt-status-item {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dde7f2;
  background: #fff;
  color: #5f738c;
  font-size: 12px;
  font-weight: 700;
}

.dt-status-item.is-ok {
  color: #a8f0cf;
}

.dt-status-item.is-warn {
  color: #ffd48e;
}

.dt-status-item.is-neutral {
  color: #b7d0e0;
}

.dt-note-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dde7f2;
  background: #f9fbfe;
  color: #5f738c;
  font-size: 13px;
  line-height: 1.7;
}

.dt-shape {
  position: absolute;
  border: 2px solid #5fd9ff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(38, 187, 235, 0.2);
  animation: dt-fade-in 0.2s ease;
}

.dt-roi {
  border-style: dashed;
  border-color: #49e6aa;
}

.dt-roi-range {
  border-style: solid;
  border-color: #48a1ff;
  background: rgba(72, 161, 255, 0.04);
}

.dt-roi-target {
  border-style: solid;
  border-color: #43d68d;
  background: rgba(67, 214, 141, 0.06);
}

.dt-line {
  height: 0;
  border: none;
  border-top: 3px solid #73e9ff;
  border-radius: 0;
  transform-origin: left center;
}

.dt-circle {
  border-radius: 999px;
  border-color: #8fff84;
}

.dt-diamond {
  border-color: #81cfff;
  border-radius: 2px;
}

.dt-tag {
  position: absolute;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(121, 172, 202, 0.58);
  background: rgba(5, 25, 39, 0.88);
  color: #dcecf8;
  font-size: 12px;
  font-weight: 700;
  animation: dt-fade-in 0.2s ease;
}

.dt-shape-label {
  position: absolute;
  left: 0;
  top: -24px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(22, 38, 56, 0.82);
  border: 1px solid rgba(95, 130, 159, 0.36);
  color: #eef5ff;
  font-size: 12px;
}

@keyframes dt-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .dt-inspector {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .dt-app {
    padding: 10px;
  }

  .dt-window {
    grid-template-rows: 44px auto auto minmax(0, 1fr);
  }

  .dt-window-chrome,
  .dt-menu-row,
  .dt-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dt-window-title,
  .dt-window-meta {
    text-align: left;
    min-width: 0;
  }

  .dt-workbench,
  .dt-bottom-panel {
    grid-template-columns: 1fr;
  }

  .dt-stage-panel {
    min-height: 300px;
  }
}

/* Dimension tool: Windows desktop */
.dimension-tool-body {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(140deg, #d8ebff 0%, #c9dfff 20%, #d6e5fb 44%, #dce4f2 100%);
}

.dt-app {
  min-height: 100vh;
  padding: 12px;
  box-sizing: border-box;
}

.dt-desktop {
  min-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr) 34px;
  gap: 10px;
}

.dt-startup-window {
  width: min(440px, 100%);
  min-width: 0;
  min-height: 0;
  align-self: center;
}

.dt-startup-window-body {
  padding: 22px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(28, 99, 242, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.96) 0%, rgba(246, 250, 255, 0.94) 100%);
}

.dt-startup-window-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dt-startup-window-brand .brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  background: linear-gradient(135deg, #1c63f2 0%, #4a8eff 100%);
  box-shadow: 0 12px 28px rgba(28, 99, 242, 0.24);
}

.dt-startup-window-copy {
  display: grid;
  gap: 4px;
}

.dt-startup-window-copy strong {
  color: #1f3147;
  font-size: 22px;
  font-weight: 800;
}

.dt-startup-window-copy span {
  color: #7388a0;
  font-size: 13px;
}

.dt-startup-window-hint {
  margin: 0;
  color: #7388a0;
  font-size: 13px;
  line-height: 1.6;
}

.dt-startup-window-actions {
  display: flex;
  justify-content: flex-end;
}

.dt-startup-enter-btn {
  min-width: 132px;
}

.dt-desktop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  color: #365577;
  opacity: 0.78;
}

.dt-desktop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.dt-windows-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.dt-desktop-text,
.dt-desktop-session {
  color: #305178;
  font-size: 11px;
  font-weight: 700;
}

.dt-desktop-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
}

.dt-shell-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 211, 228, 0.96);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.93);
  box-shadow:
    0 22px 60px rgba(25, 43, 67, 0.12),
    0 4px 16px rgba(25, 43, 67, 0.08);
  backdrop-filter: blur(12px);
  transform-origin: top left;
  animation: dt-window-in 0.18s ease;
}

.dt-shell-window.is-active {
  z-index: 2;
  box-shadow:
    0 26px 68px rgba(25, 43, 67, 0.14),
    0 8px 18px rgba(25, 43, 67, 0.1);
}

.dt-manager-window {
  width: min(1280px, calc(100vw - 48px));
  min-width: 0;
  height: min(840px, calc(100vh - 96px));
  max-height: none;
}

.dt-editor-window {
  width: min(1680px, calc(100vw - 48px));
  min-width: 0;
  height: min(900px, calc(100vh - 96px));
  max-height: none;
}

.dt-shell-titlebar {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 252, 0.92) 100%);
  border-bottom: 1px solid rgba(220, 230, 240, 0.96);
}

.dt-shell-title-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-shell-appicon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3484ff 0%, #175bdd 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.dt-shell-title-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dt-shell-title-copy strong {
  color: #20354e;
  font-size: 12px;
  font-weight: 800;
}

.dt-shell-title-copy span {
  color: #7388a0;
  font-size: 11px;
}

.dt-title-menu {
  position: relative;
  height: 40px;
  display: inline-flex;
  align-items: center;
}

.dt-title-menu-trigger {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #304a69;
  font-size: 12px;
  font-weight: 800;
}

.dt-title-menu-trigger:hover,
.dt-title-menu:focus-within .dt-title-menu-trigger,
.dt-title-menu:hover .dt-title-menu-trigger {
  background: #edf4ff;
  color: #1c63f2;
}

.dt-title-menu-popover {
  position: absolute;
  left: 0;
  top: 34px;
  z-index: 20;
  display: none;
  min-width: 170px;
  padding: 6px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(25, 48, 82, 0.18);
}

.dt-title-menu:hover .dt-title-menu-popover,
.dt-title-menu:focus-within .dt-title-menu-popover {
  display: grid;
}

.dt-title-menu-popover button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #304a69;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.dt-title-menu-popover button:hover {
  background: #edf4ff;
  color: #1c63f2;
}

.dt-shell-controls {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.dt-shell-settings-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #51677f;
  font-size: 15px;
}

.dt-shell-settings-btn:hover {
  background: rgba(33, 92, 189, 0.08);
  color: #1c63f2;
}

.dt-shell-control {
  width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #51677f;
  font-size: 13px;
}

.dt-shell-control:hover {
  background: rgba(33, 92, 189, 0.08);
}

.dt-shell-control.is-close:hover {
  background: #e81123;
  color: #fff;
}

.dt-shell-toolbar {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(224, 232, 241, 0.96);
  background: rgba(249, 252, 255, 0.92);
}

.dt-shell-toolbar-left,
.dt-shell-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dt-toolbar-btn,
.dt-row-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d4dfec;
  border-radius: 8px;
  background: #fff;
  color: #304a69;
  font-size: 12px;
  font-weight: 800;
}

.dt-icon-toolbar-btn {
  width: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
}

.dt-toolbar-btn.is-primary,
.dt-toolbar-btn.is-active,
.dt-row-btn.is-primary {
  border-color: rgba(28, 99, 242, 0.24);
  background: linear-gradient(135deg, #1c63f2 0%, #4a8eff 100%);
  color: #fff;
}

.dt-toolbar-btn.is-danger {
  border-color: rgba(218, 72, 57, 0.28);
  background: #fff2ef;
  color: #d44735;
}

.dt-shell-search,
.dt-toolbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d8e4f1;
  background: #fff;
  color: #5a718b;
  font-size: 12px;
  font-weight: 700;
}

.dt-toolbar-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d8e4f1;
  border-radius: 10px;
  background: #fff;
}

.dt-toolbar-search span {
  color: #7388a0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.dt-toolbar-search input {
  width: 180px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #294567;
  font-size: 12px;
  outline: none;
}

.dt-manager-layout {
  height: calc(100% - 84px);
  padding: 12px;
}

.dt-manager-list-panel,
.dt-editor-main {
  min-height: 0;
  border: 1px solid rgba(215, 225, 237, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.dt-manager-list-panel {
  padding: 12px;
  overflow: auto;
}

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

.dt-panel-head h2 {
  margin: 0;
  color: #22364e;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-panel-head span {
  color: #7990a7;
  font-size: 11px;
}

.dt-panel-head-spaced {
  margin-top: 18px;
}

.dt-project-list {
  display: grid;
  gap: 6px;
}

.dt-project-table {
  position: relative;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
}

.dt-project-table-head,
.dt-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 132px 112px 44px;
  gap: 12px;
  align-items: center;
}

.dt-project-table-head {
  min-height: 38px;
  padding: 0 12px;
  background: #f5f8fc;
  border-bottom: 1px solid #e0e8f2;
}

.dt-project-table-head span {
  color: #7388a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-project-row {
  position: relative;
  padding: 12px;
  border-top: 1px solid #eef3f8;
  background: #fff;
  transition: background var(--transition), box-shadow var(--transition);
}

.dt-project-row:has(.dt-project-menu) {
  z-index: 12;
}

.dt-project-row:first-child {
  border-top: 0;
}

.dt-project-row:hover {
  background: #f8fbff;
}

.dt-project-row.is-active {
  background: #edf4ff;
}

.dt-project-row-name strong {
  color: #20354e;
  font-size: 15px;
}

.dt-project-row-note {
  color: #6f849b;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-project-row-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4f8fc;
  border: 1px solid #d8e4f1;
  color: #607690;
  font-size: 11px;
  font-weight: 700;
}

.dt-project-row-tag.is-draft {
  background: #fef5e8;
  border-color: #f4dbad;
  color: #a56c12;
}

.dt-project-row-tag.is-published {
  background: #eef9f2;
  border-color: #cfead8;
  color: #217d4f;
}

.dt-project-row-time {
  color: #6f849b;
  font-size: 13px;
}

.dt-project-row-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.dt-row-btn.is-quiet {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: #d8e4f1;
  background: #f8fbff;
  color: #4f6785;
}

.dt-inline-message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e4f1;
  border-radius: 10px;
  background: #f6faff;
  color: #3a587b;
  font-size: 12px;
  font-weight: 700;
}

.dt-empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  text-align: center;
  border-top: 1px solid #eef3f8;
  background:
    radial-gradient(circle at top, rgba(28, 99, 242, 0.08), transparent 42%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.dt-empty-state strong {
  color: #20354e;
  font-size: 22px;
}

.dt-empty-state p {
  max-width: 320px;
  color: #7388a0;
  font-size: 13px;
  line-height: 1.7;
}

.dt-empty-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-project-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 6px);
  right: 8px;
  min-width: 156px;
  padding: 6px;
  border: 1px solid #d8e4f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(21, 39, 70, 0.16);
}

.dt-project-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #304a69;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.dt-project-menu button:hover {
  background: #edf4ff;
}

.dt-project-menu button.is-danger {
  color: #d44735;
}

.dt-project-menu button.is-danger:hover {
  background: #fff2ef;
  color: #c44735;
}

.dt-project-menu-separator {
  display: block;
  height: 1px;
  margin: 5px 4px;
  background: #e7edf5;
}

.dt-editor-layout {
  height: calc(100% - 40px);
  display: block;
  padding: 12px;
}

.dt-editor-main {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.dt-editor-action-row,
.dt-editor-action-left,
.dt-editor-action-right {
  display: flex;
  align-items: center;
}

.dt-editor-menu-back {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #304a69;
  font-size: 12px;
  font-weight: 800;
}

.dt-editor-menu-back {
  min-width: 30px;
  font-size: 16px;
}

.dt-editor-menu-back:hover {
  background: #edf4ff;
  color: #1c63f2;
}

.dt-editor-project-title {
  min-width: 0;
  max-width: 260px;
  color: #20354e;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-editor-action-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}

.dt-editor-action-left,
.dt-editor-action-right {
  gap: 8px;
  flex-wrap: wrap;
}

.dt-editor-action-right {
  justify-content: flex-end;
}

#dtTabList {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-work-tab-group {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #f3f7fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dt-work-tab {
  min-height: 30px;
  min-width: 74px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5b718a;
  font-size: 12px;
  font-weight: 900;
}

.dt-work-tab.is-active {
  background: #fff;
  color: #1c63f2;
  box-shadow: 0 4px 12px rgba(25, 55, 92, 0.12);
}

.dt-work-tab:hover {
  color: #1c63f2;
  transform: none;
}

.dt-roi-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dt-roi-toggle-btn.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
  color: #1c63f2;
}

.dt-roi-toggle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dt-roi-eye {
  position: relative;
  width: 15px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 50% / 58%;
  display: inline-block;
  line-height: 1;
}

.dt-roi-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.dt-roi-toggle-btn.is-hidden-roi .dt-roi-eye::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 4px;
  width: 19px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.dt-work-action {
  min-height: 32px;
  min-width: 66px;
  padding: 0 14px;
  border: 1px solid #d4dfec;
  border-radius: 8px;
  background: #fff;
  color: #304a69;
  font-size: 12px;
  font-weight: 900;
}

.dt-work-action.is-active {
  border-color: rgba(28, 99, 242, 0.28);
  background: #edf4ff;
  color: #1c63f2;
}

.dt-work-action.is-primary {
  border-color: rgba(28, 99, 242, 0.24);
  background: linear-gradient(135deg, #1c63f2 0%, #4a8eff 100%);
  color: #fff;
}

.dt-work-action.is-primary.is-active {
  box-shadow: 0 0 0 2px rgba(28, 99, 242, 0.12);
}

.dt-taskbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(244, 248, 255, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  opacity: 0.82;
}

.dt-start-btn,
.dt-taskbar-app {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(211, 223, 236, 0.98);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #2e4c73;
  font-size: 11px;
  font-weight: 800;
}

.dt-taskbar-apps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-taskbar-app.is-active {
  border-color: rgba(28, 99, 242, 0.24);
  background: #edf4ff;
}

.dt-taskbar-clock {
  color: #294767;
  font-size: 11px;
  font-weight: 800;
}

@keyframes dt-window-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.dt-modal-card {
  width: min(520px, 100%);
  border: 1px solid rgba(211, 223, 236, 0.98);
  border-radius: 18px;
  background: rgba(252, 254, 255, 0.98);
  box-shadow: 0 24px 60px rgba(21, 39, 70, 0.22);
  pointer-events: auto;
}

.dt-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.dt-modal-head strong {
  display: block;
  margin-bottom: 6px;
  color: #20354e;
  font-size: 18px;
}

.dt-modal-head p {
  color: #7388a0;
  font-size: 13px;
  line-height: 1.6;
}

.dt-modal-head p:empty {
  display: none;
}

.dt-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8e4f1;
  border-radius: 10px;
  background: #fff;
  color: #4f6785;
  font-size: 18px;
}

.dt-modal-form {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.dt-modal-field {
  display: grid;
  gap: 8px;
}

.dt-modal-field span {
  color: #4d6787;
  font-size: 12px;
  font-weight: 800;
}

.dt-modal-error {
  padding: 10px 12px;
  border: 1px solid #f0c4bc;
  border-radius: 10px;
  background: #fff4f1;
  color: #b24a3b;
  font-size: 12px;
  font-weight: 700;
}

.dt-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.dt-settings-modal-card {
  width: min(600px, 100%);
}

.dt-release-modal-card {
  width: min(460px, 100%);
}

.dt-release-modal-body {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.dt-release-confirm-list {
  display: grid;
  gap: 10px;
}

.dt-release-confirm-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.dt-release-confirm-row span {
  color: #60768e;
  font-size: 12px;
  font-weight: 800;
}

.dt-release-confirm-row strong {
  min-width: 0;
  color: #20354e;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-release-success {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  border-radius: 14px;
  background: #eef9f2;
  color: #217d4f;
  text-align: center;
}

.dt-release-success strong {
  font-size: 20px;
  font-weight: 900;
}

.dt-release-success span {
  color: #3d6f56;
  font-size: 13px;
  font-weight: 800;
}

.dt-settings-modal-body {
  display: grid;
  gap: 18px;
  padding: 0 18px 18px;
}

.dt-settings-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f7f9fc;
}

.dt-settings-form-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.dt-settings-form-row span {
  color: #20354e;
  font-size: 13px;
  font-weight: 700;
}

.dt-settings-form-row input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d7e3f0;
  border-radius: 4px;
  background: #fff;
  color: #20354e;
  font-size: 13px;
}

.dt-settings-form-row input[readonly] {
  color: #8794a5;
  background: #eef2f7;
}

.dt-param-modal-card {
  width: min(400px, 100%);
}

#dtShapeMatchModal,
#dtPreprocessModal {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

#dtShapeMatchModal .dt-param-modal-card,
#dtPreprocessModal .dt-param-modal-card {
  pointer-events: auto;
  border-radius: 4px;
  background: #f7f8fb;
  box-shadow: 0 18px 44px rgba(18, 33, 54, 0.22);
}

.dt-param-modal-card.is-small {
  width: min(320px, 100%);
}

.dt-param-modal-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.dt-param-fieldset {
  display: grid;
  gap: 8px;
  padding: 12px 10px 8px;
  border: 1px solid #c9d1dc;
  border-radius: 4px;
}

.dt-param-fieldset legend {
  padding: 0 6px;
  color: #20354e;
  font-size: 13px;
}

.dt-param-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.dt-param-inline-row label,
.dt-param-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dt-param-row span,
.dt-param-inline-row span {
  color: #20354e;
  font-size: 13px;
}

.dt-param-row input,
.dt-param-inline-row input {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #fff;
  color: #20354e;
  font-size: 13px;
}

.dt-param-reset-btn {
  height: 30px;
  border: 1px solid #d6dde7;
  border-radius: 4px;
  background: #fff;
  color: #6f7f92;
  font-size: 13px;
}

.dt-settings-section {
  display: grid;
  gap: 10px;
}

.dt-settings-section-title {
  color: #4d6787;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-settings-list {
  display: grid;
  gap: 10px;
}

.dt-settings-path-row {
  padding: 12px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  background: #fbfdff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dt-settings-path-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dt-settings-path-copy strong {
  color: #20354e;
  font-size: 13px;
  font-weight: 800;
}

.dt-settings-path-copy span {
  color: #6f849b;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.dt-settings-path-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dt-settings-toggle {
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  background: #fbfdff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dt-settings-toggle-copy {
  display: grid;
  gap: 4px;
}

.dt-settings-toggle-copy strong {
  color: #20354e;
  font-size: 13px;
  font-weight: 800;
}

.dt-settings-toggle-copy span {
  color: #6f849b;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1400px) {
  .dt-desktop-stage {
    justify-content: stretch;
  }

  .dt-project-table-head,
  .dt-project-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) 116px 100px 40px;
  }
}

@media (max-width: 1080px) {
  .dt-desktop {
    grid-template-rows: auto minmax(0, 1fr) 48px;
  }

  .dt-desktop-stage {
    display: block;
  }

  .dt-shell-window {
    min-height: 480px;
    height: auto;
    max-height: none;
  }

  .dt-bottom-panel {
    grid-template-columns: 1fr;
  }

  .dt-wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dt-workspace.is-calibration {
    grid-template-columns: 1fr;
  }

  .dt-workspace.is-template-config {
    grid-template-columns: 1fr;
  }

  .dt-workspace.is-measure-config {
    grid-template-columns: 1fr;
  }

  .dt-workspace.is-validate-config {
    grid-template-columns: 1fr;
  }

  .dt-workspace.is-release-config {
    grid-template-columns: 1fr;
  }

  .dt-shell-toolbar {
    align-items: flex-start;
  }

  .dt-toolbar-search {
    width: 100%;
  }

  .dt-toolbar-search input {
    width: 100%;
  }

  .dt-project-table-head,
  .dt-project-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) 112px 96px 40px;
  }
}
