/* Advanced console visual layer */
button {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #246bfd2e;
  outline-offset: 2px;
}
.primary:hover {
  background: #1756d9;
  border-color: #1756d9;
  box-shadow: 0 7px 18px #246bfd3b;
}
.secondary:hover,
.icon-button:hover {
  border-color: #aebed1;
  background: #f8fafd;
}
.danger:hover {
  background: #bd2e2e;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #445165;
  font-size: 18px;
}
.notify i {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e04444;
  color: #fff;
  font: 700 9px/17px Arial;
  font-style: normal;
  border: 2px solid #fff;
}
.ops-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr) auto;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(110deg, #142640, #1c3556);
  color: #fff;
  box-shadow: 0 8px 22px #10233d22;
}
.ops-strip > div {
  min-height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  border-right: 1px solid #ffffff1d;
}
.ops-strip > div:first-child {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding-left: 0;
}
.ops-strip p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.ops-strip span,
.ops-strip small {
  font-size: 10px;
  color: #9fb1c9;
}
.ops-strip b {
  margin: 4px 0;
  font-size: 14px;
}
.ops-strip .secondary {
  margin-left: 17px;
  background: #ffffff0d;
  border-color: #ffffff28;
  color: #fff;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #31d493 !important;
  box-shadow: 0 0 0 6px #31d4931e;
}
.drawer-backdrop {
  position: fixed;
  z-index: 120;
  inset: 34px 0 0;
  background: #11223c66;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  background: #f6f8fb;
  box-shadow: -16px 0 40px #0c1c342b;
  transform: translateX(30px);
  transition: 0.22s;
}
.drawer-backdrop.open .drawer {
  transform: none;
}
.drawer > header {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.drawer > header span {
  display: flex;
  flex-direction: column;
}
.drawer > header small {
  font-size: 10px;
  color: var(--blue);
  font-weight: 750;
  letter-spacing: 0.08em;
}
.drawer > header h2 {
  font-size: 18px;
  margin: 4px 0 0;
}
.drawer-body {
  padding: 18px;
  overflow: auto;
}
.drawer-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr 1fr;
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--line);
}
.drawer-summary > span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 13px;
  background: #fff;
}
.drawer-summary small,
.tech-card span {
  color: var(--muted);
  font-size: 10px;
}
.trace,
.tech-card,
.drawer-events {
  margin-top: 14px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.trace h3,
.tech-card h3,
.drawer-events h3 {
  font-size: 13px;
  margin: 0 0 14px;
}
.trace-step {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 0 0 20px;
}
.trace-step:last-child {
  padding-bottom: 0;
}
.trace-step:after {
  content: '';
  position: absolute;
  left: 13px;
  top: 29px;
  bottom: 3px;
  width: 1px;
  background: #d7dee8;
}
.trace-step:last-child:after {
  display: none;
}
.trace-step > i {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf1f6;
  color: #7c8998;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.trace-step.done > i {
  background: #e5f7ef;
  color: var(--green);
}
.trace-step.active > i {
  background: #e8f0ff;
  color: var(--blue);
  box-shadow: 0 0 0 4px #edf3ff;
}
.trace-step span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trace-step small,
.drawer-events small {
  color: var(--muted);
  font-size: 10px;
}
.tech-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}
.tech-card p:last-child {
  border: 0;
}
.tech-card code {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2859a8;
  background: #edf3ff;
  padding: 4px 6px;
  border-radius: 5px;
}
.drawer-events p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 0;
}
.drawer-events p span {
  display: flex;
  flex: 1;
  justify-content: space-between;
}
.good-dot,
.neutral-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.neutral-dot {
  background: #8b98a8;
}
.drawer > footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (max-width: 1180px) {
  .ops-strip {
    grid-template-columns: 1.2fr repeat(2, 1fr) auto;
  }
  .ops-strip > div:nth-child(4) {
    display: none;
  }
}
@media (max-width: 780px) {
  .header-actions .icon-button {
    display: none;
  }
  .ops-strip {
    grid-template-columns: 1fr auto;
  }
  .ops-strip > div:not(:first-child) {
    display: none;
  }
  .drawer-backdrop {
    inset: 34px 0 0;
  }
  .drawer-summary {
    grid-template-columns: 1fr;
  }
  .drawer-summary > span {
    min-height: 58px;
  }
  .drawer-events p span {
    flex-direction: column;
    gap: 3px;
  }
}
