:root {
  color-scheme: light;
  --font: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text: #1b1b1f;
  --muted: #62626a;
  --subtle: #85858d;
  --surface: rgba(251, 251, 253, 0.96);
  --surface-alt: #f3f3f6;
  --border: rgba(28, 28, 31, 0.12);
  --border-strong: rgba(28, 28, 31, 0.2);
  --shadow: 0 24px 70px rgba(10, 13, 24, 0.28), 0 2px 12px rgba(10, 13, 24, 0.16);
  --blue: #0067c0;
  --blue-hover: #005da9;
  --blue-soft: #e6f2fb;
  --orange: #d83b01;
  --orange-soft: #fff1e8;
  --yellow: #8a6100;
  --yellow-soft: #fff7d6;
  --green: #0f7b0f;
  --green-soft: #e9f6e9;
  --nav-width: 186px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 1024px;
  height: 100%;
  min-height: 700px;
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: #182143;
}

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

button {
  color: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(0, 103, 192, 0.35);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 25%, rgba(125, 181, 255, 0.4), transparent 23%),
    radial-gradient(circle at 22% 64%, rgba(109, 86, 207, 0.4), transparent 28%),
    linear-gradient(138deg, #101b3f 0%, #1d315f 42%, #17224b 68%, #171f42 100%);
}

.desktop::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.46;
  background-image:
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.08) 43.2% 43.5%, transparent 43.7%),
    linear-gradient(25deg, transparent 0 58%, rgba(255,255,255,.05) 58.2% 58.5%, transparent 58.7%);
}

.wallpaper-glow {
  position: absolute;
  z-index: -1;
  width: 52vw;
  aspect-ratio: 1;
  filter: blur(8px);
  border-radius: 42% 58% 55% 45%;
  background: linear-gradient(135deg, rgba(103, 164, 255, .45), rgba(120, 71, 201, .18));
  transform: rotate(24deg);
}

.wallpaper-glow-one {
  top: -27vw;
  left: 34vw;
}

.wallpaper-glow-two {
  right: -19vw;
  bottom: -35vw;
  opacity: 0.64;
  transform: rotate(-18deg);
}

.desktop-shortcuts {
  position: absolute;
  top: 24px;
  left: 18px;
  display: grid;
  gap: 20px;
}

.desktop-shortcut {
  display: grid;
  width: 86px;
  padding: 5px;
  gap: 6px;
  color: white;
  font-size: 12px;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}

.desktop-shortcut:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
}

.shortcut-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: auto;
  font-size: 33px;
}

.folder-icon {
  position: relative;
  width: 46px;
  height: 35px;
  margin-top: 6px;
  border-radius: 4px 4px 5px 5px;
  background: linear-gradient(#ffd86d, #f2aa2c);
  box-shadow: inset 0 0 0 1px rgba(104, 61, 0, .18);
}

.folder-icon::before {
  position: absolute;
  top: -6px;
  left: 3px;
  width: 20px;
  height: 9px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: #efb43e;
}

.recycle-icon {
  color: #edf8ff;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.call-window {
  position: absolute;
  top: 5.5vh;
  left: 50%;
  display: grid;
  grid-template-rows: 37px 74px 1fr 72px;
  width: min(920px, 72vw);
  height: calc(100vh - 118px);
  min-height: 580px;
  overflow: hidden;
  transform: translateX(-50%);
  background: #191922;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 37px;
  padding-left: 12px;
  font-size: 12px;
  user-select: none;
}

.call-titlebar {
  color: #e7e7ec;
  background: #24242e;
}

.window-app {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.app-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.call-app-mark {
  color: white;
  background: linear-gradient(145deg, #7964da, #4e3faf);
}

.task-app-mark {
  color: white;
  background: linear-gradient(145deg, #1677cb, #0058a3);
}

.task-app-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
}

.window-controls {
  display: flex;
  align-self: stretch;
}

.window-controls span,
.window-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 100%;
  padding: 0;
  color: inherit;
  font-size: 13px;
  background: transparent;
  border: 0;
}

.window-controls button:hover,
.window-controls span:hover {
  background: rgba(128,128,128,.18);
}

.window-controls button:last-child:hover,
.window-controls span:last-child:hover {
  color: white;
  background: #c42b1c;
}

.call-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: white;
  background: #20202a;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.call-label {
  margin: 0 0 3px;
  color: #b5b5c4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.call-toolbar h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.call-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9c9d3;
  font-size: 13px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ec4b42;
  box-shadow: 0 0 0 4px rgba(236,75,66,.12);
}

.call-stage {
  display: grid;
  min-height: 0;
  padding: 12px;
  gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: #15151c;
}

.participant {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.07), transparent 28%),
    linear-gradient(145deg, #292934, #202029);
}

.participant-main {
  grid-row: 1 / 3;
}

.avatar {
  display: grid;
  place-items: center;
  width: clamp(66px, 7vw, 104px);
  aspect-ratio: 1;
  color: white;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
}

.avatar-fatma { background: linear-gradient(145deg, #d16883, #923b67); }
.avatar-rebecca { background: linear-gradient(145deg, #4fa2bd, #336b97); }
.avatar-mark { background: linear-gradient(145deg, #a183d7, #654aa4); }
.avatar-lee { background: linear-gradient(145deg, #ca9842, #9b6434); }
.avatar-priya { background: linear-gradient(145deg, #5eaa83, #33785a); }

.participant-name {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 5px 8px;
  color: white;
  font-size: 12px;
  background: rgba(0,0,0,.56);
  border-radius: 5px;
  backdrop-filter: blur(8px);
}

.mic-wave {
  display: inline-block;
  width: 5px;
  height: 10px;
  margin-right: 4px;
  vertical-align: -1px;
  border-radius: 3px;
  background: #7bdd77;
  box-shadow: 3px 2px 0 -1px #7bdd77, 6px -1px 0 -1px #7bdd77;
}

.video-glitch {
  opacity: 0;
  pointer-events: none;
}

.is-stuttering .participant-main .video-glitch {
  position: absolute;
  inset: 0;
  opacity: .52;
  background:
    linear-gradient(transparent 0 42%, rgba(121,173,255,.2) 42% 45%, transparent 45% 71%, rgba(237,81,128,.12) 71% 73%, transparent 73%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.025) 5px 6px);
  animation: glitch 1.7s steps(2, end) infinite;
}

@keyframes glitch {
  0%, 62%, 100% { transform: translateX(0); clip-path: inset(0 0 0 0); }
  65% { transform: translateX(7px); clip-path: inset(15% 0 54% 0); }
  69% { transform: translateX(-5px); clip-path: inset(60% 0 14% 0); }
  74% { transform: translateX(0); clip-path: inset(0); }
}

.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #20202a;
  border-top: 1px solid rgba(255,255,255,.06);
}

.call-control {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #efeff4;
  font-size: 17px;
  background: #343440;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.call-control:hover {
  background: #424250;
}

.end-call {
  width: 58px;
  color: white;
  background: #c42b1c;
  border-radius: 22px;
}

.end-call svg {
  width: 23px;
  height: 23px;
}

.system-toast {
  position: absolute;
  right: 22px;
  bottom: 76px;
  z-index: 10;
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  width: 390px;
  padding: 16px;
  gap: 12px;
  color: var(--text);
  background: rgba(252,252,254,.92);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(3,8,26,.28);
  backdrop-filter: blur(22px) saturate(1.2);
  animation: toast-in .42s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 9px;
}

.toast-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
}

.toast-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.toast-heading strong {
  font-size: 14px;
}

.toast-heading span {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 11px;
}

.toast-copy p {
  margin: 7px 0 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.toast-action {
  display: inline-flex;
  align-items: center;
  padding: 0;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
}

.toast-action:hover {
  text-decoration: underline;
}

.toast-action svg {
  width: 14px;
  height: 14px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.icon-button:hover {
  background: rgba(0,0,0,.06);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.toast-dismiss {
  width: 28px;
  height: 28px;
  align-self: start;
}

.resolution-toast {
  grid-template-columns: 40px 1fr;
}

.success-icon {
  color: var(--green);
  background: var(--green-soft);
}

.task-manager-window {
  position: absolute;
  top: 3.2vh;
  left: 50%;
  z-index: 30;
  width: min(1280px, 94vw);
  height: calc(100vh - 90px);
  min-height: 650px;
  overflow: hidden;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 10px;
  box-shadow: 0 32px 90px rgba(3,8,25,.43), 0 4px 16px rgba(3,8,25,.2);
  backdrop-filter: blur(35px) saturate(1.2);
  animation: app-open .28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes app-open {
  from { opacity: 0; transform: translateX(-50%) scale(.975) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

.task-titlebar {
  color: #24242a;
  background: rgba(248,248,251,.92);
  border-bottom: 1px solid var(--border);
}

.task-shell {
  display: grid;
  height: calc(100% - 37px);
  grid-template-columns: var(--nav-width) 1fr;
}

.task-navigation {
  display: flex;
  min-width: 0;
  padding: 10px 9px 12px;
  flex-direction: column;
  background: rgba(240,240,244,.86);
  border-right: 1px solid var(--border);
}

.nav-brand {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 0 12px 4px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
}

.nav-brand svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  gap: 12px;
  color: #3a3a40;
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.nav-item:hover {
  background: rgba(0,0,0,.045);
}

.nav-item.is-active {
  position: relative;
  font-weight: 600;
  background: rgba(255,255,255,.8);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.nav-item.is-active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  content: "";
  background: var(--blue);
  border-radius: 2px;
}

.nav-item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.nav-item:not(:first-of-type) svg {
  fill: none;
}

.nav-glyph {
  width: 18px;
  font-size: 17px;
  text-align: center;
}

.nav-spacer {
  flex: 1;
}

.task-content {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.task-screen {
  min-height: 100%;
  padding: 26px 30px 30px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.centered-screen h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 650;
  letter-spacing: -.025em;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.step-indicator span {
  position: relative;
  padding: 7px 11px 7px 25px;
  color: var(--subtle);
  font-size: 12px;
  background: var(--surface-alt);
  border-radius: 999px;
}

.step-indicator span::before {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 7px;
  height: 7px;
  content: "";
  transform: translateY(-50%);
  background: #b5b5bd;
  border-radius: 50%;
}

.step-indicator .is-complete {
  color: var(--green);
  background: var(--green-soft);
}

.step-indicator .is-complete::before {
  background: var(--green);
}

.step-indicator .is-current {
  color: var(--blue);
  background: var(--blue-soft);
}

.step-indicator .is-current::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,103,192,.12);
}

.overview-screen {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
}

.screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.screen-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.022em;
}

.heading-support {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}

.warning-dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(216,59,1,.1);
}

.caution-dot {
  background: #d18f00;
  box-shadow: 0 0 0 4px rgba(209,143,0,.1);
}

.resource-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.baseline-note {
  margin: 7px 2px 0;
  color: var(--subtle);
  font-size: 11px;
}

.resource-card {
  display: grid;
  min-width: 0;
  padding: 12px 14px;
  grid-template-columns: 1fr auto;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.resource-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.resource-card strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 22px;
  font-weight: 650;
}

.resource-card small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 11px;
}

.resource-card.resource-alert {
  background: var(--orange-soft);
  border-color: rgba(216,59,1,.25);
}

.resource-alert strong,
.resource-alert small {
  color: var(--orange);
}

.diagnosis-workspace {
  display: grid;
  min-height: 0;
  gap: 12px;
  grid-template-columns: minmax(410px, .95fr) minmax(390px, 1.05fr);
}

.cause-list-panel,
.process-detail-panel,
.fallback-main-card,
.fallback-side-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255,255,255,.79);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h3,
.process-detail-panel h3,
.fallback-main-card h3,
.fallback-side-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.process-list {
  padding: 4px 0;
}

.normal-processes {
  border-top: 1px solid rgba(28,28,31,.07);
}

.normal-processes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.normal-processes-toggle::-webkit-details-marker {
  display: none;
}

.normal-processes-toggle::marker {
  content: "";
}

.normal-processes-toggle:hover {
  background: rgba(0,0,0,.025);
}

.normal-processes-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--subtle);
  fill: none;
  transition: transform .16s ease;
}

.normal-processes[open] .normal-processes-toggle svg {
  transform: rotate(90deg);
}

.normal-process-list {
  max-height: 210px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-top: 1px solid rgba(28,28,31,.07);
}

.normal-process-list:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.neutral-process {
  color: #506579;
  background: #eaf0f5;
}

.process-row {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 10px 13px 10px 15px;
  gap: 11px;
  grid-template-columns: 38px minmax(145px, 1fr) minmax(112px, auto) 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(28,28,31,.07);
}

.process-row:last-child {
  border-bottom: 0;
}

.process-row:hover {
  background: rgba(0,0,0,.025);
}

.process-row.is-selected {
  background: #eef6fc;
}

.process-row.is-selected::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--blue);
  border-radius: 0 2px 2px 0;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 700;
}

.search-process {
  color: #27639b;
  background: #e2f0fb;
}

.chrome-process {
  color: #3465a8;
  background:
    radial-gradient(circle, #e8f1ff 0 30%, transparent 31%),
    conic-gradient(#e55245 0 33%, #e8bf3d 0 66%, #43a45c 0);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.call-process {
  color: white;
  background: linear-gradient(145deg, #7964da, #4e3faf);
}

.shield-process {
  color: #3578a8;
  background: #e7f3fa;
}

.process-icon svg {
  width: 21px;
  height: 21px;
}

.search-process svg,
.shield-process svg {
  fill: none;
}

.process-copy,
.process-state {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.process-copy strong,
.process-state strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-copy small,
.process-state small {
  overflow: hidden;
  color: var(--subtle);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-state {
  text-align: right;
}

.danger-state strong { color: var(--orange); }
.caution-state strong { color: var(--yellow); }
.normal-state strong { color: var(--green); }

.row-chevron {
  width: 14px;
  height: 14px;
  color: var(--subtle);
  fill: none;
}

.process-detail-panel {
  padding: 20px;
  overflow-y: auto;
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.large-process-icon {
  width: 46px;
  height: 46px;
}

.detail-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.confidence-badge {
  padding: 4px 7px;
  color: #8c3300;
  font-size: 10px;
  font-weight: 700;
  background: var(--orange-soft);
  border-radius: 999px;
}

.confidence-badge.medium {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.confidence-badge.normal {
  color: var(--green);
  background: var(--green-soft);
}

.detail-description {
  margin: 17px 0;
  color: #45454d;
  font-size: 13px;
  line-height: 1.5;
}

.reason-card {
  background: var(--surface-alt);
  border: 1px solid rgba(28,28,31,.07);
  border-radius: 8px;
}

.reason-toggle {
  display: grid;
  width: 100%;
  padding: 11px 13px;
  gap: 11px;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  color: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.reason-toggle::-webkit-details-marker {
  display: none;
}

.reason-toggle::marker {
  content: "";
}

.reason-toggle:hover {
  background: rgba(28,28,31,.025);
}

.reason-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 7px;
}

.reason-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
}

.reason-chevron {
  width: 16px;
  height: 16px;
  color: var(--subtle);
  fill: none;
  transition: transform .16s ease;
}

.reason-card[open] .reason-chevron {
  transform: rotate(90deg);
}

.reason-body {
  padding: 0 13px 13px 54px;
}

.reason-card strong {
  font-size: 12px;
}

.reason-card p {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.text-button {
  padding: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: 0;
}

.text-button:hover {
  text-decoration: underline;
}

.recommended-action {
  margin-top: 14px;
  padding: 15px;
  background: linear-gradient(135deg, #f0f7fc, #e7f3fb);
  border: 1px solid rgba(0,103,192,.18);
  border-radius: 9px;
}

.safe-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.safe-label svg {
  width: 15px;
  height: 15px;
  fill: none;
}

.safe-label.caution {
  color: var(--orange);
}

.recommended-action h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.recommended-action p {
  margin: 6px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recommended-action .primary-button {
  display: flex;
  min-width: 190px;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 24px;
  font-size: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 17px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 5px;
}

.primary-button {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: inset 0 1px rgba(255,255,255,.14);
}

.primary-button:hover {
  background: var(--blue-hover);
}

.primary-button svg {
  width: 16px;
  height: 16px;
}

.secondary-button {
  color: #25252a;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border-strong);
}

.secondary-button:hover {
  background: #f5f5f7;
}

.compact-button {
  min-height: 34px;
  padding: 6px 13px;
}

.normal-state-card {
  display: grid;
  margin-top: 15px;
  padding: 16px;
  gap: 11px;
  grid-template-columns: 30px 1fr;
  background: var(--green-soft);
  border: 1px solid rgba(15,123,15,.16);
  border-radius: 9px;
}

.normal-state-card > svg {
  width: 25px;
  height: 25px;
  color: var(--green);
  fill: none;
}

.normal-state-card strong {
  font-size: 13px;
}

.normal-state-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.centered-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  flex-direction: column;
  text-align: center;
}

.centered-copy {
  max-width: 580px;
  margin: 11px auto 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.step-indicator {
  margin-bottom: 30px;
}

.verification-icon,
.support-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 16px;
}

.verification-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
}

.before-after-card {
  display: grid;
  align-items: center;
  width: min(600px, 82%);
  margin-bottom: 27px;
  padding: 20px 26px;
  grid-template-columns: 1fr 60px 1fr;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.before-after-card > div:not(.metric-arrow) {
  display: grid;
  gap: 3px;
}

.before-after-card span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.before-after-card strong {
  font-size: 34px;
  font-weight: 650;
}

.before-after-card div:first-child strong {
  color: var(--orange);
}

.before-after-card div:last-child strong {
  color: var(--green);
}

.before-after-card small {
  color: var(--muted);
  font-size: 12px;
}

.metric-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: auto;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
}

.metric-arrow svg {
  width: 19px;
  height: 19px;
}

.centered-screen > h3 {
  margin: 0 0 13px;
  font-size: 16px;
}

.verification-actions {
  display: grid;
  width: min(700px, 92%);
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.choice-card {
  display: grid;
  align-items: center;
  min-height: 82px;
  padding: 15px;
  gap: 12px;
  grid-template-columns: 42px 1fr;
  text-align: left;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
}

.choice-card:hover {
  border-color: rgba(0,103,192,.5);
  box-shadow: 0 3px 12px rgba(0,103,192,.08);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  font-size: 22px;
  background: var(--surface-alt);
  border-radius: 9px;
}

.choice-icon svg {
  fill: none;
}

.positive-choice .choice-icon {
  color: var(--green);
  background: var(--green-soft);
}

.choice-card > span:last-child {
  display: grid;
  gap: 5px;
}

.choice-card strong {
  font-size: 13px;
}

.choice-card small {
  color: var(--muted);
  font-size: 11px;
}

.success-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  color: white;
  background: var(--green);
  border: 10px solid #dff1df;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #eef8ee;
}

.success-orbit svg {
  width: 34px;
  height: 34px;
  fill: none;
}

.success-eyebrow {
  color: var(--green);
}

.success-summary {
  display: grid;
  width: min(680px, 90%);
  margin-bottom: 24px;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.success-summary div {
  display: grid;
  padding: 17px;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.success-summary div:last-child {
  border-right: 0;
}

.success-summary span,
.support-report span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.success-summary strong {
  font-size: 12px;
  line-height: 1.4;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.fallback-screen {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}

.fallback-layout {
  display: grid;
  min-height: 0;
  gap: 14px;
  grid-template-columns: 1.4fr .85fr;
}

.fallback-main-card,
.fallback-side-card {
  padding: 23px;
}

.fallback-main-card {
  display: flex;
  flex-direction: column;
}

.impact-grid {
  display: grid;
  margin: 28px 0;
  gap: 11px;
}

.impact-grid > div {
  display: grid;
  align-items: center;
  padding: 12px;
  gap: 11px;
  grid-template-columns: 27px 1fr;
  background: var(--surface-alt);
  border-radius: 8px;
}

.impact-grid svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  fill: none;
}

.impact-grid .impact-warning svg {
  color: var(--orange);
}

.impact-grid span {
  display: grid;
  gap: 3px;
}

.impact-grid strong {
  font-size: 12px;
}

.impact-grid small {
  color: var(--muted);
  font-size: 11px;
}

.fallback-main-card .primary-button {
  align-self: flex-start;
}

.fallback-side-card {
  display: flex;
  flex-direction: column;
}

.fallback-side-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.fallback-side-card .text-button {
  margin-top: auto;
}

.mini-chart {
  display: flex;
  align-items: end;
  height: 130px;
  margin: 24px 0 14px;
  padding: 12px;
  gap: 10px;
  border-bottom: 1px solid var(--border-strong);
  background:
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 100% 25%;
}

.mini-chart span {
  flex: 1;
  min-height: 8px;
  background: #74abd2;
  border-radius: 4px 4px 0 0;
}

.mini-chart .is-high {
  background: #e6a100;
}

.support-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
}

.support-report {
  width: min(700px, 90%);
  margin-bottom: 22px;
  overflow: hidden;
  text-align: left;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.support-report div {
  display: grid;
  padding: 11px 16px;
  gap: 10px;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid var(--border);
}

.support-report div:last-child {
  border-bottom: 0;
}

.support-report strong {
  font-size: 12px;
}

.copy-confirmation {
  margin: 15px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.technical-drawer {
  position: absolute;
  inset: 37px 0 0;
  z-index: 60;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18,18,24,.28);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(610px, 54%);
  padding: 25px;
  overflow-y: auto;
  background: #fbfbfd;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 55px rgba(0,0,0,.16);
  animation: drawer-in .25s ease-out both;
}

@keyframes drawer-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.drawer-heading h2 {
  max-width: 480px;
  margin: 0;
  font-size: 24px;
  letter-spacing: -.015em;
}

.confidence-explanation {
  display: grid;
  align-items: center;
  padding: 15px;
  gap: 13px;
  grid-template-columns: 54px 1fr;
  background: var(--orange-soft);
  border: 1px solid rgba(216,59,1,.18);
  border-radius: 9px;
}

.confidence-score {
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  color: #8c3300;
  font-size: 12px;
  font-weight: 700;
  background: white;
  border-radius: 8px;
}

.confidence-explanation strong {
  font-size: 13px;
}

.confidence-explanation p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.timeline-card,
.raw-breakdown {
  margin-top: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.timeline-heading,
.raw-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.timeline-heading span,
.raw-heading span {
  color: var(--subtle);
  font-size: 11px;
}

.timeline-chart {
  position: relative;
  height: 190px;
  margin-top: 14px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px) 0 0 / 100% 25%;
  border-bottom: 1px solid var(--border-strong);
}

.timeline-chart svg {
  position: absolute;
  inset: 10px 0 20px;
  width: 100%;
  height: calc(100% - 30px);
}

.area-path {
  fill: url(#areaFill);
}

.line-path {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.event-line {
  stroke: rgba(216,59,1,.5);
  stroke-dasharray: 4 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.usual-band {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 46px;
  background: rgba(15,123,15,.07);
  border-top: 1px dashed rgba(15,123,15,.32);
}

.usual-band span {
  position: absolute;
  top: 4px;
  left: 7px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.event-label {
  position: absolute;
  top: 5px;
  left: 53%;
  padding: 4px 7px;
  color: #8c3300;
  font-size: 9px;
  font-weight: 700;
  background: var(--orange-soft);
  border-radius: 4px;
}

.raw-bar {
  display: flex;
  height: 14px;
  margin: 15px 0 12px;
  overflow: hidden;
  background: #ddd;
  border-radius: 7px;
}

.bar-search,
.legend-search { background: #377bb6; }
.bar-security,
.legend-security { background: #69a4c8; }
.bar-chrome,
.legend-chrome { background: #e4a11b; }
.bar-other,
.legend-other { background: #b8b8c0; }

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

.raw-legend span {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  grid-template-columns: 9px 1fr auto;
  gap: 7px;
}

.raw-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.raw-legend strong {
  color: var(--text);
}

.modal-layer {
  position: absolute;
  inset: 37px 0 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,18,25,.38);
  backdrop-filter: blur(3px);
}

.action-dialog,
.applying-card {
  position: relative;
  z-index: 1;
  width: min(520px, 70%);
  max-height: calc(100% - 32px);
  padding: 22px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 12px;
  box-shadow: 0 28px 75px rgba(0,0,0,.28);
  animation: dialog-in .2s ease-out both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.dialog-description {
  margin: 10px 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.selected-tabs-card {
  margin-bottom: 12px;
  padding: 12px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.selected-tabs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.selected-tabs-heading strong {
  font-size: 12px;
}

.selected-tabs-heading span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 600;
}

.selected-tabs-list {
  display: grid;
  height: 108px;
  margin: 0;
  padding: 2px 5px 2px 0;
  overflow-y: auto;
  gap: 4px;
  grid-template-columns: 1fr;
  scrollbar-gutter: stable;
  list-style: none;
}

.selected-tabs-list li {
  display: flex;
  align-items: center;
  min-height: 24px;
  overflow: hidden;
  gap: 8px;
  color: #45454d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-tabs-list img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 3px;
}

.selected-tabs-list:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.consequence-list {
  display: grid;
  gap: 8px;
}

.consequence-list article {
  display: grid;
  align-items: center;
  padding: 11px;
  gap: 11px;
  grid-template-columns: 35px 1fr;
  background: var(--surface-alt);
  border-radius: 8px;
}

.consequence-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
}

.safe-consequence {
  color: var(--green);
  background: var(--green-soft);
}

.caution-consequence {
  color: var(--orange);
  background: var(--orange-soft);
}

.consequence-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.clock-glyph {
  font-size: 21px;
}

.consequence-list strong {
  font-size: 12px;
}

.consequence-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.risk-banner {
  display: flex;
  align-items: center;
  margin-top: 13px;
  padding: 11px 12px;
  gap: 10px;
  background: var(--green-soft);
  border: 1px solid rgba(15,123,15,.16);
  border-radius: 8px;
}

.risk-banner svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  fill: none;
}

.risk-banner span {
  display: grid;
  gap: 2px;
}

.risk-banner strong {
  font-size: 12px;
}

.risk-banner small {
  color: var(--muted);
  font-size: 10px;
}

.risk-banner.caution {
  background: var(--orange-soft);
  border-color: rgba(216,59,1,.2);
}

.risk-banner.caution svg {
  color: var(--orange);
}

.dialog-actions {
  display: flex;
  margin-top: 18px;
  gap: 9px;
}

.applying-card {
  display: grid;
  place-items: center;
  width: min(430px, 64%);
  padding: 32px;
  text-align: center;
}

.applying-spinner {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border: 5px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.applying-card h2 {
  margin: 0;
  font-size: 22px;
}

.applying-card > p:last-of-type {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #e8e8ed;
  border-radius: 2px;
}

.progress-track span {
  display: block;
  width: 55%;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(190%); }
}

.taskbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  color: #1b1b1f;
  background: rgba(242,246,252,.82);
  border-top: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 -3px 18px rgba(3,8,25,.13);
  backdrop-filter: blur(25px) saturate(1.35);
}

.taskbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskbar-button,
.taskbar-search {
  position: relative;
  display: grid;
  place-items: center;
  height: 39px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.taskbar-button {
  width: 43px;
}

.taskbar-button:hover,
.taskbar-search:hover {
  background: rgba(255,255,255,.62);
}

.taskbar-button.is-running::after,
.taskbar-button.is-active::after {
  position: absolute;
  bottom: 1px;
  width: 15px;
  height: 3px;
  content: "";
  background: var(--blue);
  border-radius: 2px;
}

.taskbar-button.is-active {
  background: rgba(255,255,255,.7);
}

.windows-button svg {
  width: 21px;
  height: 21px;
  color: #166fc0;
}

.taskbar-search {
  display: flex;
  width: 144px;
  margin: 0 2px;
  padding: 0 13px;
  justify-content: flex-start;
  gap: 9px;
  color: #4d4d53;
  font-size: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
}

.taskbar-search svg {
  width: 16px;
  height: 16px;
  fill: none;
}

.taskbar-button .app-mark {
  width: 25px;
  height: 25px;
}

.mini-folder {
  width: 25px;
  height: 18px;
  margin-top: 4px;
  background: #e7b447;
  border-radius: 2px 2px 3px 3px;
  box-shadow: inset 0 -3px rgba(142,90,0,.12);
}

.mini-folder::before {
  display: block;
  width: 12px;
  height: 5px;
  margin-top: -3px;
  content: "";
  background: #efc55e;
  border-radius: 2px 2px 0 0;
}

.taskbar-tray {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.clock {
  display: grid;
  gap: 1px;
  font-size: 10px;
  text-align: right;
}

.clock strong {
  font-size: 11px;
  font-weight: 400;
}

.prototype-reset {
  position: absolute;
  bottom: 58px;
  left: 14px;
  z-index: 110;
  padding: 7px 10px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  background: rgba(10,15,35,.46);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.prototype-reset:hover {
  background: rgba(10,15,35,.68);
}

@media (max-width: 1160px) {
  :root {
    --nav-width: 154px;
  }

  .task-screen {
    padding-right: 22px;
    padding-left: 22px;
  }

  .nav-item {
    gap: 9px;
  }

  .diagnosis-workspace {
    grid-template-columns: minmax(360px, .95fr) minmax(340px, 1.05fr);
  }

  .process-row {
    grid-template-columns: 35px minmax(125px, 1fr) minmax(98px, auto) 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
