.empty-cell { padding: 28px 10px; }
.info-placeholder,
.empty-state,
td.empty-cell,
.content-point-empty,
.content-audio-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.empty-state strong { color: inherit; font-size: inherit; font-weight: inherit; }
.op-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.op-side-menu {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 22px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(13, 24, 33, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}
.op-menu-group { display: grid; gap: 10px; }
.op-menu-group h3 {
  display: grid;
  grid-template-columns: auto minmax(18px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  color: rgba(229, 240, 246, 0.56);
  font-size: 11px;
  font-weight: 700;
}
.op-menu-group h3::after { content: ""; height: 1px; background: rgba(255, 255, 255, 0.08); }
.op-menu-items { display: grid; gap: 6px; }
.op-menu-items button {
  width: 100%;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.op-menu-items button:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}
.op-menu-items button.active {
  border-left-color: var(--cyan);
  color: var(--text);
  background: rgba(34, 211, 238, 0.11);
}
.notification-setting-tabs { margin: 0 18px; }
.notification-recipient-form { display: flex; align-items: end; gap: 8px; max-width: 620px; }
.notification-recipient-form input { flex: 1; }
.notification-recipient-list { display: grid; gap: 0; max-width: 620px; margin-top: 16px; border-top: 1px solid var(--line); }
.notification-recipient-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.notification-recipient-row .icon-button { width: 30px; min-height: 30px; padding: 0; }
.notification-event-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; max-width: 640px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.03); }
.notification-event-option span { display: grid; gap: 4px; }
.notification-event-option strong { color: var(--text); font-size: 13px; }
.notification-event-option small { color: var(--muted); font-size: 11px; }
.op-main { min-width: 0; display: grid; gap: 14px; }
.op-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.op-toolbar label { min-width: 180px; }
.asset-model-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.asset-model-fieldset legend {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}
.asset-model-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.asset-model-choice {
  position: relative;
  display: inline-flex;
  min-width: 84px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.asset-model-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.asset-model-choice span {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.asset-model-choice input:checked + span {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
}
.asset-model-choice input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.asset-deviceuuid-editor {
  display: grid;
  gap: 7px;
}
.record-value.asset-deviceuuid-value {
  align-self: start;
  white-space: normal;
}
.asset-deviceuuid-list {
  display: grid;
  gap: 4px;
}
.asset-deviceuuid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.asset-deviceuuid-row code {
  color: var(--text);
  overflow-wrap: anywhere;
}
.asset-deviceuuid-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.asset-deviceuuid-form input {
  min-height: 32px;
  padding: 6px 9px;
}
.asset-deviceuuid-icon {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.asset-deviceuuid-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.asset-deviceuuid-icon:hover:not(:disabled) {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}
.asset-deviceuuid-icon.danger {
  border-color: transparent;
  background: transparent;
  color: var(--bad);
}
.asset-deviceuuid-icon.danger:hover:not(:disabled) {
  border-color: transparent;
  background: rgba(249, 115, 91, 0.12);
  color: #ffb3a4;
}
@media (max-width: 640px) {
  .asset-deviceuuid-form { grid-template-columns: 1fr; }
  .asset-deviceuuid-form button { justify-self: end; }
}
.api-card-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.api-card-tabs button {
  min-height: 34px;
  padding: 0 16px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.api-card-tabs button.active {
  color: #061219;
  background: #dffbff;
  border-color: transparent;
}
.api-list { display: grid; gap: 12px; }
.api-list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.api-list-card-head {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  transition: background 0.16s ease;
}
.api-list-card-head:hover { background: rgba(255, 255, 255, 0.055); }
.api-list-card-text { display: grid; gap: 5px; min-width: 0; }
.api-list-card-text strong { color: var(--text); font-size: 14px; }
.api-list-card-desc { color: var(--muted); font-size: 12px; line-height: 1.35; }
.api-list-card-path {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.api-method-tag {
  min-width: 38px;
  padding: 2px 7px;
  border-radius: 5px;
  color: #031017;
  background: #8df2ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.api-method-tag.post { background: #a7f3d0; }
.api-list-card-path code { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.api-list-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--muted);
  transition: transform 0.16s ease, color 0.16s ease;
}
.api-list-arrow svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.api-list-card-head:hover .api-list-arrow { color: var(--text); }
.api-list-card.open .api-list-arrow { transform: rotate(180deg); }
.api-list-card-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.api-tab-body { margin-top: 18px; }
.api-tab-body h3 { margin: 0 0 14px; font-size: 16px; }
.api-test-card {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0000001f;
}
.api-test-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.api-test-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.api-test-field span {
  min-width: 76px;
  color: var(--muted);
  white-space: nowrap;
}
.api-test-form button {
  width: auto;
  min-width: 96px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .api-test-form { grid-template-columns: 1fr; }
  .api-test-form button { justify-self: start; }
}
.api-test-card pre {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  overflow: auto;
}
.status-ok { color: var(--green); }
.status-bad { color: var(--bad); }
.status-warn { color: var(--amber); }
.map-speed-setting { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.map-speed-setting legend { padding: 0 6px; font-weight: 700; }
.log-message { max-width: 360px; white-space: normal; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: rgba(255, 255, 255, 0.055); }
.clickable-row:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.7);
  outline-offset: -2px;
}

/* Operations log: keep the event stream readable before exposing low-level fields. */
.operation-page { display: grid; gap: 18px; min-width: 0; }
.operation-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 2px 2px; }
.operation-eyebrow { margin-bottom: 7px; color: var(--cyan); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.operation-page-head h1 { font-size: 25px; line-height: 1.15; }
.operation-page-actions { display: flex; align-items: center; gap: 12px; }
.operation-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.operation-refresh { min-width: 72px; }
.operation-refresh span { color: var(--cyan); font-size: 17px; line-height: 0; }
.op-log-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .045); overflow: hidden; }
.op-log-summary > div { min-width: 0; display: grid; gap: 5px; padding: 15px 18px; border-right: 1px solid var(--line); }
.op-log-summary > div:last-child { border-right: 0; }
.op-log-summary span, .op-log-summary small { color: var(--muted); font-size: 12px; }
.op-log-summary strong { overflow: hidden; color: var(--text); font-size: 24px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.op-log-summary strong.is-success-text { color: var(--green); }
.op-log-summary strong.is-failed-text { color: var(--bad); }
.op-log-summary-latest strong { font-size: 15px; }
.op-log-panel { overflow: hidden; }
.op-log-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 17px 18px 15px; border-bottom: 1px solid var(--line); }
.op-log-toolbar > div:first-child { display: grid; gap: 4px; min-width: 112px; }
.op-log-toolbar h2 { font-size: 16px; }
.op-log-toolbar > div:first-child span { color: var(--muted); font-size: 12px; }
.op-log-filters { display: flex; align-items: flex-end; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.op-log-filters label { min-width: 130px; gap: 5px; }
.op-log-filters label.op-log-search { min-width: 200px; }
.op-log-filters select, .op-log-filters input { min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
.op-log-list { padding: 0 18px; }
.op-log-item { display: grid; grid-template-columns: 82px 14px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.op-log-item:last-child { border-bottom: 0; }
.op-log-time { display: grid; align-content: start; gap: 4px; padding-top: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.op-log-time time { color: var(--text); font-size: 12px; font-weight: 650; }
.op-log-time span { font-size: 12px; }
.op-log-rail { position: relative; display: flex; justify-content: center; padding-top: 4px; }
.op-log-rail::after { content: ""; position: absolute; top: 12px; bottom: -14px; width: 1px; background: rgba(255, 255, 255, .12); }
.op-log-item:last-child .op-log-rail::after { display: none; }
.op-log-rail i { position: relative; z-index: 1; width: 9px; height: 9px; border: 2px solid var(--muted); border-radius: 50%; background: var(--surface); }
.op-log-item.is-success .op-log-rail i { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.op-log-item.is-failed .op-log-rail i { border-color: var(--bad); background: var(--bad); box-shadow: 0 0 0 4px rgba(249, 115, 91, .12); }
.op-log-item.is-pending .op-log-rail i { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
.op-log-content { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto); column-gap: 18px; row-gap: 4px; align-items: center; }
.op-log-primary { grid-column: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.op-log-heading { min-width: 0; display: flex; align-items: center; gap: 8px; }
.op-log-kicker { display: flex; align-items: center; gap: 7px; min-height: 18px; color: var(--cyan); font-size: 12px; font-weight: 700; white-space: nowrap; }
.op-log-kicker::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.op-log-kicker code { padding: 2px 5px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; color: var(--muted); background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 600; }
.op-log-item.type-auth .op-log-kicker { color: #60a5fa; }
.op-log-item.type-robot .op-log-kicker { color: #f59e0b; }
.op-log-item.type-scene .op-log-kicker { color: #c084fc; }
.op-log-item.type-content .op-log-kicker { color: #f472b6; }
.op-log-item.type-api .op-log-kicker { color: #22d3ee; }
.op-log-item.type-notification .op-log-kicker { color: #fb7185; }
.op-log-item.type-system .op-log-kicker { color: #94a3b8; }
.op-log-heading h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.op-log-status { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; min-height: 21px; padding: 0 7px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px; color: var(--muted); background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 700; }
.op-log-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.op-log-status.is-success { border-color: rgba(16, 185, 129, .35); color: var(--green); background: rgba(16, 185, 129, .08); }
.op-log-status.is-failed { border-color: rgba(249, 115, 91, .4); color: var(--bad); background: rgba(249, 115, 91, .08); }
.op-log-status.is-pending { border-color: rgba(245, 158, 11, .35); color: var(--amber); background: rgba(245, 158, 11, .08); }
.op-log-message { grid-column: 1; display: -webkit-box; max-width: 100%; max-height: 33px; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.op-log-message.has-error { color: #ffb3a5; }
.op-log-meta { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; max-width: 320px; flex-wrap: wrap; color: var(--muted); font-size: 12px; line-height: 1.25; }
.op-log-meta span { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; max-width: 100%; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; background: rgba(255, 255, 255, .035); }
.op-log-meta b { color: rgba(229, 240, 246, .58); font-size: 12px; font-weight: 500; }
.op-log-meta em { overflow: hidden; color: var(--text); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.op-log-details { grid-column: 1; display: inline; margin: 0; }
.op-log-details summary { display: inline-block; width: max-content; color: var(--cyan); cursor: pointer; font-size: 12px; list-style: none; }
.op-log-details summary::-webkit-details-marker { display: none; }
.op-log-details summary::before { content: "+"; display: inline-block; width: 14px; color: var(--muted); }
.op-log-details[open] summary::before { content: "-"; }
.op-log-details[open] { display: block; margin: 3px 0 0; }
.op-log-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 12px 0 0; padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: rgba(0, 0, 0, .12); }
.op-log-details dl > div { min-width: 0; display: grid; gap: 4px; }
.op-log-details dt { color: var(--muted); font-size: 12px; }
.op-log-details dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.op-log-empty { display: grid; justify-items: center; gap: 8px; padding: 58px 20px; color: var(--muted); text-align: center; }
.op-log-empty strong { color: var(--text); font-size: 13px; }
.op-log-empty-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); font-size: 18px; }
.op-log-empty .link-button { margin-top: 3px; }
@media (max-width: 760px) {
  .operation-page-head { align-items: flex-start; flex-direction: column; }
  .operation-page-actions { width: 100%; justify-content: space-between; }
  .op-log-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-log-summary > div:nth-child(2) { border-right: 0; }
  .op-log-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .op-log-toolbar { align-items: stretch; flex-direction: column; }
  .op-log-filters { justify-content: stretch; }
  .op-log-filters label, .op-log-filters label.op-log-search { flex: 1 1 140px; min-width: 0; }
  .op-log-content { grid-template-columns: 1fr; }
  .op-log-meta { grid-column: 1; grid-row: auto; justify-content: flex-start; max-width: none; }
  .op-log-details { grid-column: 1; }
}
@media (max-width: 540px) {
  .op-log-list { padding: 0 13px; }
  .op-log-item { grid-template-columns: 64px 14px minmax(0, 1fr); gap: 9px; }
  .op-log-time time { font-size: 12px; }
  .op-log-primary { display: grid; gap: 8px; }
  .op-log-status { width: max-content; }
  .op-log-message { white-space: normal; }
  .op-log-details dl { grid-template-columns: 1fr; }
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}
.dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1821;
  box-shadow: var(--shadow);
}
.dialog.wide { width: min(760px, 100%); }
.guided-group-fields { display: grid; gap: 10px; margin: 4px 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.guided-group-fields legend { padding: 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.dialog-scroll { max-height: calc(100vh - 116px); overflow: auto; overscroll-behavior: contain; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 14px; }
.event-trigger-editor { max-height: min(840px, calc(100vh - 32px)); }
.event-trigger-form { display: grid; gap: 12px; max-height: calc(100vh - 116px); overflow: auto; }
.event-trigger-section { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.event-trigger-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-trigger-section-head > div:first-child { display: grid; gap: 3px; }
.event-trigger-section-head strong { font-size: 13px; }
.event-trigger-section-head small { color: var(--muted); font-size: 11px; }
.event-trigger-generated-name { min-height: 38px; display: flex; align-items: center; padding: 8px 10px; border: 1px solid rgba(34,211,238,.25); border-radius: 6px; color: var(--cyan); background: rgba(34,211,238,.06); font-size: 12px; line-height: 1.45; }
.event-trigger-time-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 9px; }
.event-trigger-time-row label, .event-trigger-advanced label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.event-trigger-weekdays { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.event-trigger-weekdays > div { display: flex; flex-wrap: wrap; gap: 6px; }
.event-trigger-choice, .event-trigger-toggle button, .event-trigger-action-tag, .event-trigger-picker-toolbar button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 11px; cursor: pointer; }
.event-trigger-choice:hover, .event-trigger-toggle button:hover, .event-trigger-action-tag:hover, .event-trigger-picker-toolbar button:hover { border-color: rgba(34,211,238,.55); color: var(--text); }
.event-trigger-choice.selected, .event-trigger-toggle button.selected, .event-trigger-action-tag.selected, .event-trigger-picker-toolbar button.active { border-color: rgba(34,211,238,.75); color: #071016; background: var(--cyan); font-weight: 700; }
.event-trigger-advanced { border-top: 1px solid var(--line); padding-top: 8px; }
.event-trigger-advanced summary { color: var(--muted); font-size: 11px; cursor: pointer; }
.event-trigger-advanced[open] summary { margin-bottom: 9px; color: var(--text); }
.event-trigger-condition-list { display: grid; gap: 8px; }
.event-trigger-condition-empty { padding: 18px 12px; border: 1px dashed rgba(148,163,184,.34); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.018); text-align: center; font-size: 12px; }
.event-trigger-condition-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(100px, .9fr) minmax(100px, 1fr) 30px; gap: 7px; align-items: center; }
.event-trigger-condition-row .icon-button { width: 30px; min-height: 30px; padding: 0; }
.event-trigger-toggle, .event-trigger-action-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.event-trigger-add-condition { justify-self: start; }
.event-trigger-selected-robots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.event-trigger-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 8px; border: 1px solid rgba(34,211,238,.5); border-radius: 999px; color: var(--cyan); background: rgba(34,211,238,.08); font-size: 11px; }
.event-trigger-chip button { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
.event-trigger-chip button:hover { color: var(--bad); background: rgba(249,115,91,.15); }
.event-trigger-robot-dialog { width: min(680px, 100%); }
.event-trigger-picker-toolbar { display: flex; gap: 8px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.event-trigger-picker-toolbar input { flex: 1 1 auto; min-width: 0; }
.event-trigger-robot-list { display: grid; gap: 7px; max-height: min(52vh, 460px); padding: 12px 14px; overflow: auto; }
.event-trigger-robot-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.event-trigger-robot-option:hover, .event-trigger-robot-option.selected { border-color: rgba(34,211,238,.72); background: rgba(34,211,238,.12); }
.event-trigger-robot-option-info { min-width: 0; display: grid; gap: 4px; }
.event-trigger-robot-option strong, .event-trigger-robot-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-trigger-robot-option strong { font-size: 13px; }
.event-trigger-robot-option small { color: var(--muted); font-size: 10px; }
.event-trigger-robot-check { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid var(--line); border-radius: 50%; color: #071016; background: transparent; font-size: 14px; font-weight: 800; }
.event-trigger-robot-option.selected .event-trigger-robot-check { border-color: var(--cyan); background: var(--cyan); }
.event-trigger-picker-count { margin-right: auto; }
.event-trigger-status-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid rgba(16,185,129,.34); border-radius: 999px; color: var(--green); background: rgba(16,185,129,.1); font-size: 11px; font-weight: 700; }
.event-trigger-status-badge.disabled { border-color: rgba(148,163,184,.35); color: var(--muted); background: rgba(148,163,184,.1); }
@media (max-width: 620px) {
  .event-trigger-time-row, .event-trigger-condition-row { grid-template-columns: 1fr 1fr; }
  .event-trigger-condition-row > :nth-child(3) { grid-column: 1 / 2; }
  .event-trigger-condition-row > :last-child { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .event-trigger-section-head { align-items: flex-start; flex-direction: column; }
  .event-trigger-section-head > button { align-self: flex-start; }
}
.map-advanced-menu { position: relative; margin-left: auto; }
.map-advanced-menu > summary { width: 34px; min-height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(255,255,255,0.035); font-size: 18px; line-height: 1; list-style: none; cursor: pointer; }
.map-advanced-menu > summary::-webkit-details-marker { display: none; }
.map-advanced-menu[open] > summary, .map-advanced-menu > summary:hover { border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.1); }
.map-advanced-menu-popover { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 176px; display: grid; gap: 3px; padding: 5px; border: 1px solid rgba(148, 163, 184, 0.5); border-radius: 8px; background: rgba(13, 24, 33, 0.98); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42); }
.map-advanced-menu-popover button { width: 100%; min-height: 32px; display: flex; align-items: center; gap: 8px; justify-content: flex-start; padding: 6px 9px; border: 0; color: var(--text); background: transparent; font-size: 12px; text-align: left; }
.map-action-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.map-icon-text-button { display: inline-flex; align-items: center; gap: 5px; }
.map-icon-text-button .map-action-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.map-advanced-menu-popover button:hover:not(:disabled) { border: 0; background: rgba(34, 211, 238, 0.12); }
.map-edit-tools {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 13;
  width: 48px;
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 8px;
  background: rgba(13, 24, 33, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.map-edit-tool-button {
  position: relative;
  width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 6px;
  color: #e8f1f5;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}
.map-edit-tool-button .map-action-icon { width: 18px; height: 18px; }
.map-edit-tool-button:hover:not(:disabled),
.map-edit-tool-button:focus-visible { border-color: rgba(103, 232, 249, 0.82); color: #effdff; background: rgba(34, 211, 238, 0.2); outline: none; }
.map-edit-tool-button.active { border-color: rgba(245, 158, 11, 0.9); color: #fff7ed; background: rgba(245, 158, 11, 0.34); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28); }
.map-edit-tool-button[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: 50%; right: calc(100% + 8px); display: none; width: max-content; max-width: 140px; padding: 5px 8px; border: 1px solid rgba(148, 163, 184, 0.5); border-radius: 5px; color: #e8f1f5; background: rgba(13, 24, 33, 0.96); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); transform: translateY(-50%); font-size: 11px; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.map-edit-tool-button[data-tooltip]:hover::after,
.map-edit-tool-button[data-tooltip]:focus-visible::after { display: block; }
.map-edit-tools-divider { width: 30px; height: 1px; margin: 1px auto; background: rgba(148, 163, 184, 0.32); }
.map-edit-tools-close { color: #b9cbd2; background: transparent; }
.map-virtual-restriction:not(.preview) { pointer-events: visiblePainted; cursor: pointer; }
.map-virtual-restriction.line { stroke-width: 3; }
.map-restriction-live-preview { pointer-events: none; }
.map-virtual-restriction.selected { fill: rgba(245, 158, 11, 0.22); stroke: #f59e0b; filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.75)); }
.map-narrow-passage { color: #22d3ee; }
.map-narrow-passage.disabled { opacity: 0.45; }
.map-narrow-passage-line {
  stroke: currentColor;
  stroke-width: 0.55;
  stroke-dasharray: 1.6 0.8;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.map-narrow-passage-hit {
  stroke: transparent;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  pointer-events: stroke;
}
.map-narrow-passage-marker {
  position: absolute;
  z-index: 6;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #f3f8fa;
  border-radius: 50%;
  color: #f8fdff;
  background: #0891b2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  pointer-events: auto;
  user-select: none;
}
.map-narrow-passage-marker.side-b {
  color: #211406;
  background: #f59e0b;
}
.map-narrow-passage-marker.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22), 0 2px 5px rgba(0, 0, 0, 0.55);
  cursor: grab;
  touch-action: none;
}
.map-narrow-passage-marker.dragging { cursor: grabbing; }
.map-narrow-passage-marker.preview { pointer-events: none; }
.map-narrow-passage-marker.disabled,
.map-narrow-passage-label.disabled { opacity: 0.45; }
.map-narrow-passage-label {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: 112px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: rgba(229, 240, 246, 0.82);
  background: rgba(13, 24, 33, 0.78);
  box-shadow: none;
  transform: translate(-50%, calc(-100% - 10px));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  user-select: none;
}
.map-narrow-passage.selected { color: #fbbf24; }
.map-narrow-passage-label.active {
  border-color: rgba(34, 211, 238, 0.72);
  color: #e8fbff;
  background: rgba(13, 54, 64, 0.94);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.map-narrow-passage.preview { color: #fbbf24; }
.map-restriction-hit { fill: none; stroke: transparent; stroke-width: 10px; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.map-restriction-handle { fill: #fff; stroke: #0891b2; stroke-width: .32; vector-effect: non-scaling-stroke; pointer-events: all; cursor: move; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.map-layer-item[data-map-select-restriction] > span { cursor: pointer; }
.map-layer-item.active { border-color: rgba(245, 158, 11, .72); background: rgba(245, 158, 11, .1); }
.map-initialization-actions { justify-content: flex-end; }
.confirm-dialog { padding: 0; }
.confirm-dialog-head { padding: 16px 16px 0; }
.confirm-dialog-head h2 { margin: 0; font-size: 17px; }
.confirm-dialog-body { padding: 8px 16px 16px; color: var(--text); line-height: 1.6; }
.confirm-dialog-body p { margin: 0; }
.execution-confirm-dialog { width: min(620px, 100%); }
.execution-confirm-dialog .confirm-dialog-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.execution-confirm-dialog .confirm-dialog-head h2 { font-size: 18px; }
.execution-confirm-dialog .confirm-dialog-body { display: grid; gap: 12px; max-height: calc(100vh - 180px); padding: 16px 20px; overflow: auto; overscroll-behavior: contain; }
.execution-confirm-dialog .dialog-actions { padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.execution-confirm-intro { display: grid; gap: 3px; }
.execution-confirm-intro strong { color: #f1f5f9; font-size: 14px; }
.execution-confirm-intro span { color: var(--muted); font-size: 12px; }
.execution-confirm-section { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, 0.018); }
.execution-confirm-section h3, .execution-confirm-safety h3 { margin: 0; font-size: 12px; font-weight: 700; }
.execution-confirm-section h3 { padding: 9px 12px; border-bottom: 1px solid var(--line); color: #dbe7ee; background: rgba(255, 255, 255, 0.03); }
.execution-confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.execution-confirm-grid > div { min-width: 0; padding: 10px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.execution-confirm-grid > div:nth-child(odd):not(.wide) { border-right: 1px solid rgba(148, 163, 184, 0.12); }
.execution-confirm-grid > div.wide { grid-column: 1 / -1; border-right: 0; }
.execution-confirm-grid > div.wide:last-child { border-bottom: 0; }
.execution-confirm-grid dt { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.execution-confirm-grid dd { min-width: 0; margin: 0; color: var(--text); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.execution-confirm-mono { color: #b9ccd8 !important; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
.execution-confirm-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; }
.execution-confirm-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.execution-confirm-status.online { color: var(--green); }
.execution-confirm-status.offline { color: var(--bad); }
.execution-confirm-safety { padding: 11px 13px; border: 1px solid rgba(245, 158, 11, 0.36); border-radius: 7px; background: rgba(245, 158, 11, 0.07); }
.execution-confirm-safety h3 { color: #fbbf24; }
.execution-confirm-safety ul { margin: 7px 0 0; padding-left: 18px; color: #d8e1e7; font-size: 12px; line-height: 1.65; }
@media (max-width: 560px) {
  .execution-confirm-dialog .confirm-dialog-body { padding: 14px; }
  .execution-confirm-grid { grid-template-columns: 1fr; }
  .execution-confirm-grid > div { border-bottom: 1px solid rgba(148, 163, 184, 0.12); border-right: 0 !important; }
  .execution-confirm-grid > div:last-child { border-bottom: 0; }
}
.scene-robots-table th, .scene-robots-table td { vertical-align: middle; }
.operation-failure-backdrop { z-index: 60; background: rgba(3, 8, 13, 0.78); backdrop-filter: blur(4px); }
.operation-failure-dialog { width: min(880px, 100%); max-height: calc(100vh - 36px); border: 1px solid #33414b; border-top: 3px solid #f9735b; border-radius: 10px; background: #0d161d; box-shadow: 0 28px 84px rgba(0, 0, 0, 0.58); }
.operation-failure-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #26343d; background: #111c24; }
.operation-failure-title { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.operation-failure-title > div { min-width: 0; display: grid; gap: 4px; }
.operation-failure-head h2 { margin: 0; color: #f4f8fa; font-size: 18px; line-height: 1.3; }
.operation-failure-head p { margin: 0; color: #e8aaa0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.operation-failure-badge { flex: 0 0 auto; display: inline-flex; min-height: 24px; align-items: center; padding: 0 7px; border-radius: 4px; color: #fff3f0; background: #a83f31; font-size: 12px; font-weight: 700; }
.operation-failure-body { display: grid; gap: 11px; padding: 14px 18px 16px; }
.operation-failure-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #2c3942; border-radius: 7px; overflow: hidden; background: #101a21; }
.operation-failure-context > div { min-width: 0; display: grid; gap: 3px; padding: 9px 11px; border-right: 1px solid #26343d; border-bottom: 1px solid #26343d; }
.operation-failure-context > div:nth-child(3n) { border-right: 0; }
.operation-failure-context > div:nth-last-child(-n + 3) { border-bottom: 0; }
.operation-failure-context span { color: #82939d; font-size: 12px; }
.operation-failure-context strong { min-width: 0; color: #e1eaee; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.operation-failure-main { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 10px; }
.operation-failure-overview,
.operation-failure-resolution { padding: 11px 13px; border: 1px solid #293740; border-radius: 7px; background: #101920; }
.operation-failure-main h3 { margin: 0 0 7px; color: #dfe8ec; font-size: 12px; font-weight: 700; }
.operation-failure-overview p { margin: 0; color: #bdcbd2; font-size: 12px; line-height: 1.55; }
.operation-failure-resolution ol { margin: 0; padding-left: 18px; color: #cbd7dc; font-size: 12px; line-height: 1.55; }
.operation-failure-resolution li + li { margin-top: 3px; }
.operation-failure-identity { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 0 2px; color: #788b96; font-size: 12px; }
.operation-failure-identity span { min-width: 0; }
.operation-failure-identity code { color: #9eafb8; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.operation-failure-raw { border: 1px solid #293740; border-radius: 7px; background: #0b1319; overflow: hidden; }
.operation-failure-raw summary { padding: 9px 11px; color: #9eb1bb; font-size: 12px; cursor: pointer; list-style-position: inside; }
.operation-failure-raw[open] summary { border-bottom: 1px solid #26343d; background: #101920; color: #d7e2e7; }
.operation-failure-raw p { margin: 0; padding: 9px 11px 0; color: #899ca6; font-size: 12px; line-height: 1.45; }
.operation-failure-raw pre { max-height: 170px; margin: 9px 10px 10px; padding: 9px 10px; overflow: auto; border: 0; border-radius: 5px; color: #9eb0ba; background: #071016; font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.operation-failure-actions { align-items: center; padding: 11px 18px 14px; border-top: 1px solid #26343d; background: #101920; }
.run-result-cell { display: grid; justify-items: start; gap: 6px; }
.run-time-cell { display: grid; gap: 2px; min-width: 150px; }
.run-time-cell > span { color: var(--text); }
.run-id-mini { color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.run-status-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.run-id-cell { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.run-tag.ok { color: var(--green); border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }
.run-tag.bad { color: var(--bad); border-color: rgba(249, 115, 91, 0.4); background: rgba(249, 115, 91, 0.1); }
.run-tag.warn { color: var(--amber); border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.run-tag.info { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.1); }
.run-tag.neutral { color: var(--muted); }
.run-detail-backdrop { z-index: 50; }
.run-detail-dialog { width: min(920px, 100%); display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.run-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.run-detail-title { min-width: 0; }
.run-detail-title h2 { margin: 0 0 8px; font-size: 18px; }
.run-detail-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.run-detail-body { padding: 16px 18px; display: grid; gap: 14px; overflow: auto; }
.run-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.run-detail-facts div { min-width: 0; }
.run-detail-facts dt { color: var(--muted); font-size: 11px; margin: 0 0 3px; }
.run-detail-facts dd { margin: 0; color: var(--text); word-break: break-all; }
.run-detail-mono { color: #b9ccd8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.run-detail-error { padding: 12px 14px; border: 1px solid rgba(249, 115, 91, 0.4); border-radius: 9px; background: rgba(127, 29, 29, 0.18); }
.run-detail-error span { display: block; color: #fca5a5; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.run-detail-error p { margin: 0; color: #f1c4bb; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.run-detail-table th { white-space: nowrap; }
.run-detail-name { font-weight: 650; color: var(--text); }
.run-detail-result { color: #cdd9e1; }
.run-detail-loading { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .run-detail-facts { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .operation-failure-context { grid-template-columns: 1fr; }
  .operation-failure-context > div { border-right: 0; border-bottom: 1px solid #26343d; }
  .operation-failure-context > div:nth-last-child(-n + 3) { border-bottom: 1px solid #26343d; }
  .operation-failure-context > div:last-child { border-bottom: 0; }
  .operation-failure-main { grid-template-columns: 1fr; }
  .operation-failure-actions { flex-wrap: wrap; }
}
.scene-dialog .dialog-actions button { font-size: 14px; }
.icon-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.icon-close:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.record-detail { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 14px; }
.record-label { color: var(--muted); font-size: 12px; }
.record-label.block { grid-column: 1 / -1; }
.record-value {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.record-value.block {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}
.toast-host { position: fixed; right: 18px; top: 78px; z-index: 40; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast-host { top: 128px; }
.toast { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #0d1821; }
.toast.error { color: var(--bad); border-color: rgba(249, 115, 91, 0.5); }
.toast.success { color: var(--green); border-color: rgba(16, 185, 129, 0.5); }
