/* The replay opens as a city overview. Operational details remain a separate view. */
#yk-command[data-mode=replay] {
  --yk-reference-ice: #dfe8f8;
  --yk-reference-dim: #a8b5ca;
  --yk-reference-glass: linear-gradient(145deg, #222733c9, #171e2bb2 75%);
  --yk-reference-line: #a6b4d74a;
  --yk-reference-edge: clamp(20px, 3.1vw, 60px);
  --yk-reference-header: clamp(62px, 8.1svh, 79px);
  font-family: "Segoe UI", system-ui, sans-serif;
}

#yk-command[data-mode=replay]::before {
  inset: 46px 19px 12px;
  z-index: 4;
  border: 0;
  background: linear-gradient(145deg, #64789f91, #3c4d7691 26%, #53678ba8 74%, #2533499c);
  clip-path: polygon(evenodd,
    0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px,
    100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px,
    2px 16px, 2px calc(100% - 16px), 16px calc(100% - 2px),
    calc(100% - 16px) calc(100% - 2px), calc(100% - 2px) calc(100% - 16px),
    calc(100% - 2px) 16px, calc(100% - 16px) 2px, 16px 2px, 2px 16px);
}

#yk-command[data-mode=replay] > header {
  min-height: var(--yk-reference-header);
  padding: 6px var(--yk-reference-edge) 19px;
  background: linear-gradient(180deg, #111319e8, #131620a8 65%, transparent);
}

#yk-command[data-mode=replay] > header::after {
  inset: auto 22px 0;
  height: 27px;
  background: linear-gradient(90deg, #62718e72 28%, #98a8cb 36%, #bed2ff 50%, #98a8cb 64%, #62718e72 72%);
  clip-path: polygon(0 7%, 30.5% 7%, 34.2% 90%, 65.8% 90%, 69.5% 7%, 100% 7%, 100% 13%, 69.5% 13%, 65.8% 97%, 34.2% 97%, 30.5% 13%, 0 13%);
  filter: drop-shadow(0 2px 8px #7398edaa);
}

#yk-command[data-mode=replay] > header::before {
  position: absolute;
  inset: auto 23px 22px;
  height: 3px;
  background: linear-gradient(90deg, transparent 25.8%, #e5edff 25.8% 27.2%, transparent 27.2% 72.8%, #e5edff 72.8% 74.2%, transparent 74.2%);
  filter: drop-shadow(0 0 6px #c8daffcf);
  content: "";
  pointer-events: none;
}

#yk-command[data-mode=replay] .yk-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#yk-command[data-mode=replay] .yk-heading .yk-eyebrow { display: none; }

#yk-command[data-mode=replay] .yk-heading h2 {
  font-size: clamp(19px, 2vw, 34px);
  font-weight: 680;
  letter-spacing: -.03em;
  text-shadow: 0 2px 7px #060910;
}

#yk-command[data-mode=replay] .yk-reference-brand-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #f2f5fe;
}

#yk-command[data-mode=replay] .yk-reference-brand-icon svg { width: 100%; height: 100%; }

#yk-command[data-mode=replay] .yk-header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: clamp(5px, 1vw, 14px);
  min-width: 0;
}

#yk-command[data-mode=replay] .yk-clock {
  color: #dbe3f2;
  font-size: 13px;
  white-space: nowrap;
}

#yk-command[data-mode=replay] .yk-clock::before {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, currentColor 2deg, transparent 2deg) no-repeat center / 7px 7px;
  content: "";
  vertical-align: -.15em;
}

#yk-command[data-mode=replay] .yk-status {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5cede;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  white-space: nowrap;
}

#yk-command[data-mode=replay] .yk-header-actions button {
  min-height: 27px;
  padding: 3px 8px;
  border-color: #8399c14c;
  background: #20283a9c;
  font-size: 11px;
  white-space: nowrap;
}

#yk-command[data-mode=replay] .yk-map {
  background: radial-gradient(ellipse at 52% 39%, #30364a 0%, #171c28 60%, #101218 100%);
}

#yk-command[data-mode=replay] .yk-map::after {
  background:
    linear-gradient(180deg, #0c0f1888, transparent 22%, transparent 58%, #10131b8f 84%, #0c0e14e6),
    radial-gradient(ellipse at 52% 44%, transparent 28%, #10121a22 62%, #090d15bb 100%),
    repeating-linear-gradient(90deg, #adbbef0a 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, #adbbef0a 0 1px, transparent 1px 48px);
}

#yk-command[data-mode=replay][data-reference-ready=true] .yk-legacy-queue,
#yk-command[data-mode=replay][data-reference-ready=true]:not([data-reference-detail=true]) .yk-operator-detail,
#yk-command[data-mode=replay][data-reference-detail=true] [data-reference-right],
#yk-command[data-mode=replay][data-pilot-map=true] :is([data-reference-right], .yk-operator-detail) {
  display: none;
}

#yk-command[data-mode=replay][data-reference-ready=true] .yk-pane {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#yk-command[data-mode=replay] .yk-operator-detail,
#yk-command[data-mode=replay] .yk-operator > [data-pilot-map-card] {
  padding: 12px;
  background: #171c27d9;
  border: 1px solid var(--yk-reference-line);
}

#yk-command .yk-reference-left,
#yk-command .yk-reference-right {
  display: grid;
  gap: clamp(7px, 1.05svh, 12px);
}

#yk-command .yk-reference-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--yk-reference-glass, #1b2230c9);
  border: 1px solid #c0ccf013;
  box-shadow: 0 5px 22px #050a131c;
  backdrop-filter: blur(.75px);
}

#yk-command .yk-reference-card-title {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  min-height: clamp(30px, 4.2svh, 40px);
  gap: clamp(6px, .75vw, 13px);
  padding: 4px 11px;
  background: linear-gradient(90deg, #d2dcf117, #9eafd207 80%);
  border-bottom: 1px solid var(--yk-reference-line);
  white-space: nowrap;
}

#yk-command .yk-reference-card-title::before {
  width: 12px;
  height: 13px;
  flex: 0 0 12px;
  background: linear-gradient(90deg, #bceaff, #208fc7);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 0 6px #2db4ff);
  content: "";
}

#yk-command .yk-reference-card-title::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, #dbe8ff 0 5px, transparent 5px calc(100% - 5px), #dbe8ff calc(100% - 5px));
  content: "";
}

#yk-command .yk-reference-card-title h3 {
  overflow: hidden;
  color: #f0f3fa;
  font-size: clamp(13px, 1.08vw, 18px);
  font-weight: 690;
  text-overflow: ellipsis;
}

#yk-command .yk-reference-card-title small {
  overflow: hidden;
  color: #adb8ce;
  font-size: clamp(9px, .71vw, 12px);
  text-overflow: ellipsis;
}

#yk-command .yk-reference-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 8px 10px 7px;
}

#yk-command .yk-reference-card-body:has(.yk-reference-table) { padding: 0; }

#yk-command .yk-reference-rings,
#yk-command .yk-reference-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  gap: clamp(7px, 1.2svh, 15px) clamp(8px, 1.1vw, 18px);
  padding-inline: clamp(9px, 1.3vw, 22px);
}

#yk-command .yk-reference-ring,
#yk-command .yk-reference-resource {
  display: flex;
  align-items: center;
  gap: clamp(7px, .78vw, 13px);
  min-width: 0;
}

#yk-command .yk-reference-ring-gauge {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: clamp(38px, 4.25vw, 72px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--yk-ring-color, #66caff) var(--yk-ring-value, 0%), #b1bad02c 0);
  isolation: isolate;
}

#yk-command .yk-reference-ring-gauge::before {
  position: absolute;
  z-index: -1;
  inset: 10%;
  border-radius: 50%;
  background: #242a37;
  content: "";
}

#yk-command .yk-reference-ring-gauge b {
  color: #f6f8ff;
  font-size: clamp(12px, 1.34vw, 22px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

#yk-command .yk-reference-ring-copy,
#yk-command .yk-reference-resource > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
  line-height: 1.12;
}

#yk-command .yk-reference-ring-copy small,
#yk-command .yk-reference-resource > span:last-child > small {
  color: #d5deee;
  font-size: clamp(9px, .78vw, 13px);
  overflow-wrap: anywhere;
}

#yk-command .yk-reference-ring-copy strong,
#yk-command .yk-reference-resource strong {
  color: #f5f7fe;
  font-size: clamp(17px, 1.76vw, 29px);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#yk-command .yk-reference-resource strong { color: #7aa9ff; }
#yk-command .yk-reference-resource strong small { color: #98b9ff; font-size: .63em; }

#yk-command .yk-reference-resource-icon {
  display: grid;
  width: clamp(29px, 3.1vw, 53px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #9faecc28;
  color: #e9f1ff;
}

#yk-command .yk-reference-resource-icon svg { width: 51%; height: 51%; }

#yk-command .yk-reference-chart-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px 12px;
  flex: 0 0 auto;
  color: #d7e0ef;
  font-size: clamp(8px, .69vw, 11px);
}

#yk-command .yk-reference-chart-legend span { white-space: nowrap; }

#yk-command .yk-reference-chart-legend span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  background: var(--yk-series-color, #66caff);
  content: "";
}

#yk-command .yk-reference-chart {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

#yk-command .yk-reference-chart text { font-family: "Segoe UI", system-ui, sans-serif; }

#yk-command .yk-reference-table {
  width: 100%;
  height: auto;
  table-layout: auto;
  border-collapse: collapse;
  color: #e0e7f5;
  font-size: clamp(10px, .76vw, 13px);
  font-variant-numeric: tabular-nums;
}

#yk-command .yk-reference-table :is(th, td) { padding: 7px 8px; text-align: left; vertical-align: top; }
#yk-command .yk-reference-table th { height: 30px; }
#yk-command .yk-reference-table td { height: 37px; }
#yk-command .yk-reference-table thead { background: #bdcbe02b; color: #f0f4fa; }
#yk-command .yk-reference-table th { font-weight: 650; white-space: nowrap; }
#yk-command .yk-reference-table tbody tr { border-bottom: 1px solid #a4b6d81b; }
#yk-command .yk-reference-table tbody tr:nth-child(even) { background: #aabbd91c; }

#yk-command .yk-reference-table button {
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9e8ff;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
}

#yk-command .yk-reference-table button:hover { color: #a2dbff; text-decoration: underline; }

#yk-command .yk-reference-badge {
  display: inline-block;
  min-width: 46px;
  padding: 2px 5px;
  background: #476eaa;
  color: #fff;
  border-radius: 2px;
  font-size: .87em;
  text-align: center;
  white-space: nowrap;
}

#yk-command .yk-reference-badge[data-tone=ok] { background: #137967; }
#yk-command .yk-reference-badge[data-tone=critical] { background: #c9515c; }
#yk-command .yk-reference-badge[data-tone=warn] { background: #986832; }

#yk-command[data-mode=replay] .yk-stage-tools {
  position: relative;
  display: flex;
  align-self: flex-end;
  align-items: start;
  justify-content: end;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#yk-command[data-mode=replay] .yk-map-controls { position: relative; }

#yk-command[data-mode=replay] .yk-map-controls summary,
#yk-command[data-mode=replay] .yk-zoom-rail button {
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid #8697bc4c;
  border-radius: 3px;
  background: #171d2b99;
  color: #dce7fa;
  font-size: 11px;
  line-height: 1.35;
}

#yk-command[data-mode=replay] .yk-map-controls summary { cursor: pointer; white-space: nowrap; }

#yk-command[data-mode=replay] .yk-map-options {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 5px) 0 auto auto;
  width: min(340px, 76vw);
  padding: 10px;
  background: #161c28f4;
  border: 1px solid #8297bd80;
  box-shadow: 0 8px 24px #050812a8;
}

#yk-command[data-mode=replay] .yk-zoom-rail { display: flex; gap: 3px; }
#yk-command[data-mode=replay] .yk-zoom-rail button { min-width: 29px; }
#yk-command[data-mode=replay] .yk-zoom-rail .yk-district-shortcut { min-width: 65px; }

#yk-command[data-mode=replay] .yk-stage-summary {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

#yk-command[data-mode=replay] .yk-reference-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto 9px;
  padding: 0;
  color: #dce5f7;
  text-shadow: 0 2px 9px #070b13;
}

#yk-command[data-mode=replay] .yk-reference-kpis > span {
  position: relative;
  isolation: isolate;
  align-content: start;
  gap: 1px;
  padding-bottom: 4px;
}

#yk-command[data-mode=replay] .yk-reference-kpis > span > small {
  grid-row: 1;
  color: #dce4f6;
  font-size: clamp(10px, 1vw, 16px);
  white-space: nowrap;
}

#yk-command[data-mode=replay] .yk-reference-kpis strong {
  grid-row: 2;
  font-size: clamp(24px, 2.1vw, 36px);
  font-weight: 740;
}

#yk-command[data-mode=replay] .yk-reference-kpis > span::before {
  position: absolute;
  z-index: -1;
  inset: auto 12% 14px;
  height: 53px;
  clip-path: polygon(0 0, 100% 0, 77% 100%, 23% 100%);
  background: linear-gradient(0deg, #5bb7e025, transparent 90%);
  content: "";
}

#yk-command[data-mode=replay] .yk-reference-kpis > span::after {
  width: clamp(49px, 5.9vw, 98px);
  height: clamp(20px, 2.5vw, 42px);
  margin-top: clamp(8px, 1.6svh, 18px);
  border: 1px solid #45b9ff8c;
  background:
    radial-gradient(ellipse closest-side, #101c2b 69%, transparent 73%),
    repeating-conic-gradient(from 45deg, #4fcdff91 0 6deg, #235688 7deg 12deg, #0d253c 13deg 17deg),
    #102234;
  box-shadow: 0 3px 0 #122840, 0 5px 0 #3e93c7a8, 0 7px 0 #0e2844, 0 10px 18px #1b8ded34;
}

#yk-command[data-mode=replay] .yk-map-captions { color: #9aa9c3; line-height: 1.18; }
#yk-command[data-mode=replay] .yk-map-captions small { color: inherit; font-size: 9px; }
#yk-command[data-mode=replay] .yk-map-captions :is([data-ground-legend], [data-signal-legend], .yk-line) { display: none; }

#yk-command[data-mode=replay] .yk-reference-pin {
  --yk-pin-color: #71b7ff;
  position: absolute;
  display: grid;
  width: clamp(32px, 2.8vw, 45px);
  min-width: 0;
  height: clamp(32px, 2.8vw, 45px);
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 1px solid var(--yk-pin-color);
  border-radius: 10px;
  background: #091629eb;
  color: #f6fbff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--yk-pin-color) 32%, transparent), 0 0 13px var(--yk-pin-color), inset 0 0 11px color-mix(in srgb, var(--yk-pin-color) 34%, transparent);
}

#yk-command[data-mode=replay] .yk-reference-pin:is(.critical, .high, .closed, .down) { --yk-pin-color: #ff9a64; }
#yk-command[data-mode=replay] .yk-reference-pin:is(.open, .ready, .stock-track) { --yk-pin-color: #68efb3; }
#yk-command[data-mode=replay] .yk-reference-pin:is(.signal, .drone-track) { --yk-pin-color: #bea0ff; }
#yk-command[data-mode=replay] .yk-reference-pin:is(.unknown, .unverified) { --yk-pin-color: #ffcb7d; }
#yk-command[data-mode=replay] .yk-reference-pin[data-pin-kind=camera] { --yk-pin-color: #68efb3; }

#yk-command[data-mode=replay] .yk-reference-pin::after {
  position: absolute;
  inset: auto auto -11px 50%;
  width: 15px;
  height: 9px;
  transform: translateX(-50%);
  background: var(--yk-pin-color);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 0 5px var(--yk-pin-color));
  content: "";
}

#yk-command[data-mode=replay] .yk-reference-pin :is(svg, .yk-pin-symbol) { width: 56%; height: 56%; }

#yk-command[data-mode=replay] .yk-reference-pin-count {
  position: absolute;
  inset: -7px -7px auto auto;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  place-items: center;
  border: 1px solid var(--yk-pin-color);
  border-radius: 50%;
  background: #111b2bf5;
  color: #f3f8ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 8px #081223;
  pointer-events: none;
}

#yk-command[data-mode=replay] .yk-reference-pin :is(.yk-reference-pin-label, .yk-pin-code) {
  position: absolute;
  inset: auto auto calc(100% + 5px) 50%;
  transform: translateX(-50%);
  padding: 3px 6px;
  border: 1px solid #7e96b45e;
  border-radius: 2px;
  background: #111a28ee;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

#yk-command[data-mode=replay] .yk-reference-pin:is(:hover, :focus-visible) :is(.yk-reference-pin-label, .yk-pin-code) { opacity: 1; }

#yk-command[data-mode=replay] > footer {
  min-width: 0;
  padding: 4px var(--yk-reference-edge) 11px;
  border-top: 1px solid #879ac350;
  background: linear-gradient(180deg, #11172580, #0e121bef 84%);
  box-shadow: none;
}

#yk-command[data-mode=replay] .yk-drill-controls { gap: 5px 8px; }
#yk-command[data-mode=replay] .yk-drill-mode { color: #c1d1ee; font-size: 10px; white-space: nowrap; }

#yk-command[data-mode=replay] .yk-drill-controls :is(button, select, input) {
  min-height: 24px;
  padding-block: 2px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.3;
}

#yk-command[data-mode=replay] .yk-drill-controls :is(label, output) { font-size: 11px; }

#yk-command[data-mode=replay] .yk-drill-events {
  grid-auto-columns: minmax(106px, 1fr);
  gap: 5px;
  margin: 2px 0 0;
  padding: 2px 1px;
}

#yk-command[data-mode=replay] .yk-drill-event {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 5px;
  border: 1px solid #8297bc35;
  border-top: 1px solid #8297bc60;
  border-radius: 2px;
  background: #252e3e8a;
}

#yk-command[data-mode=replay] .yk-drill-event :is(small, strong) {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#yk-command[data-mode=replay] .yk-drill-event small { flex: 0 0 auto; }
#yk-command[data-mode=replay] .yk-drill-event[aria-current=step] { border-color: #79b9e6; background: #2d4b6d9c; }

@media (min-width: 1001px) {
  #yk-command[data-mode=replay] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100svh;
    min-height: 660px;
  }

  #yk-command[data-mode=replay] .yk-grid {
    grid-template-columns: minmax(230px, 1fr) minmax(0, 1.96fr) minmax(230px, 1fr);
    gap: clamp(9px, 1.05vw, 20px);
    min-height: 0;
    padding: 3px var(--yk-reference-edge) 10px;
  }

  #yk-command[data-mode=replay] .yk-pane {
    align-self: stretch;
    max-height: none;
    min-height: 0;
  }

  #yk-command[data-mode=replay] :is(.yk-reference-left, .yk-reference-right) {
    height: 100%;
    grid-template-rows: minmax(0, 1.01fr) minmax(0, 1.02fr) minmax(0, .97fr);
  }

  #yk-command[data-mode=replay] .yk-stage { min-height: 0; }
  #yk-command[data-mode=replay] .yk-map-space { min-height: 0; }
}

@media (max-width: 1000px) {
  #yk-command[data-mode=replay] .yk-grid { padding-inline: 14px; }
  #yk-command[data-mode=replay] .yk-map { height: 610px; }
  #yk-command[data-mode=replay] .yk-stage { min-height: 480px; }
  #yk-command[data-mode=replay] .yk-map-space { min-height: 290px; }
  #yk-command[data-mode=replay] :is(.yk-reference-left, .yk-reference-right) { grid-template-rows: repeat(3, minmax(145px, auto)); }
  #yk-command[data-mode=replay] .yk-reference-chart { min-height: 120px; }
}

@media (max-width: 540px) {
  #yk-command[data-mode=replay]::before { inset-inline: 6px; }
  #yk-command[data-mode=replay] > header { padding: 8px 12px 18px; row-gap: 4px; }
  #yk-command[data-mode=replay] .yk-reference-brand-icon { width: 27px; height: 27px; }
  #yk-command[data-mode=replay] .yk-header-actions { grid-column: 2; }
  #yk-command[data-mode=replay] .yk-clock { font-size: 10px; }
  #yk-command[data-mode=replay] .yk-status { display: none; }
  #yk-command[data-mode=replay] .yk-map { height: 580px; }
  #yk-command[data-mode=replay] .yk-stage { min-height: 435px; }
  #yk-command[data-mode=replay] .yk-map-space { min-height: 255px; }
  #yk-command[data-mode=replay] .yk-reference-ring-gauge { width: 53px; }
  #yk-command[data-mode=replay] .yk-reference-resource-icon { width: 41px; }
  #yk-command[data-mode=replay] .yk-reference-kpis > span > small { white-space: normal; }
  #yk-command[data-mode=replay] > footer { padding-inline: 12px; }
}
#yk-command .yk-reference-rings button.yk-reference-ring {
  padding: 0;
  color: inherit;
  background: transparent;
  border-color: transparent;
  text-align: left;
}

#yk-command .yk-reference-rings button.yk-reference-ring:is(:hover, :focus-visible) {
  border-color: #9bc8ee80;
}

.yk-annotation-form {
  display: grid;
  gap: .5rem;
  margin-top: .55rem;
}

.yk-annotation-form label {
  display: grid;
  gap: .25rem;
}

.yk-annotation-form textarea,
.yk-annotation-form select {
  width: 100%;
  padding: .45rem;
  color: inherit;
  font: inherit;
  background: #111c2b;
  border: 1px solid #405b76;
  border-radius: .25rem;
}

.yk-annotation-form textarea {
  resize: vertical;
}

.yk-annotation-form fieldset {
  margin: 0;
  border: 1px solid #405b76;
}

.yk-annotation-form .yk-notice-channel {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.yk-live-vision-dialog {
  width: min(680px, 90vw);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  background: #101d2f;
  color: #e2ecfa;
  border: 1px solid #557b9d;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.yk-live-vision-dialog::backdrop { background: #040913a8; }
.yk-live-vision-dialog section { padding: 12px 0; border-bottom: 1px solid #40566b; }
.yk-live-vision-dialog img { display: block; width: 100%; max-height: 260px; object-fit: contain; margin: 10px 0; }
.yk-live-vision-dialog button { padding: 8px 12px; color: inherit; background: #19334b; border: 1px solid #557b9d; border-radius: 4px; cursor: pointer; }
.yk-live-vision-dialog details { margin: 10px 0; }
