/* Shift Desk - Windows-like SOC trainer */
.desk-app {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  background: #07090f;
  color: #dce6ff;
  font-family: "Segoe UI", Rajdhani, system-ui, sans-serif;
}

.desk-screen {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}

.desk-os.win-like {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0b3d91;
  overflow: hidden;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

/* Pinned To-Do app on the right inside the desktop (cannot close) */
.desk-brief.desk-todo-app {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 60px;
  width: min(320px, 34vw);
  z-index: 18;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #101826 0%, #0a101c 100%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: auto;
}

.desk-todo-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  background: rgba(8, 14, 26, 0.92);
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  color: #e8eefc;
  font-size: 0.82rem;
  user-select: none;
}
.desk-todo-bar strong {
  flex: 1;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.desk-todo-dots {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}
.desk-todo-pin {
  font-family: IBM Plex Mono, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #8490aa;
  border: 1px solid rgba(132, 144, 170, 0.45);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.desk-todo-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 0.95rem 1rem;
}

.desk-brief {
  z-index: 2;
}

.desk-eyebrow {
  margin: 0 0 0.35rem;
  font-family: IBM Plex Mono, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #00e5ff;
}

.desk-brief h1 {
  margin: 0 0 0.75rem;
  font-family: Orbitron, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.desk-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: #b8c4de;
  font-size: 0.95rem;
  line-height: 1.45;
}

.desk-steps li { margin-bottom: 0.55rem; }
.desk-steps li.is-done { color: #5dff8a; text-decoration: line-through; opacity: 0.75; }
.desk-steps li.is-now { color: #ffc857; font-weight: 700; }

.desk-score {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  font-size: 0.9rem;
  color: #8490aa;
}
.desk-score b { color: #dce6ff; }

.desk-feedback {
  min-height: 2.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #8490aa;
}
.desk-feedback.ok { color: #5dff8a; }
.desk-feedback.bad { color: #ff4d6d; }

.tb-todo {
  appearance: none;
  border: 0;
  height: 36px;
  padding: 0 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 229, 255, 0.16);
  color: #dff9ff;
  font: 650 0.78rem "Segoe UI", system-ui, sans-serif;
  cursor: default;
}
.tb-todo.is-on {
  box-shadow: inset 0 -2px 0 #00e5ff;
}
.tb-todo-ico {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #00e5ff;
  color: #071018;
  font-size: 0.72rem;
  font-weight: 800;
}

.desk-brief.desk-todo-app.is-pulse {
  animation: desk-todo-pulse 0.7s ease;
}
@keyframes desk-todo-pulse {
  0% { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(0, 229, 255, 0.55); }
  40% { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 229, 255, 0.45); }
  100% { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
}

.desk-wallpaper {
  flex: 1;
  position: relative;
  min-height: 0;
  /* Windows 11 bloom-ish wallpaper */
  background:
    radial-gradient(ellipse 80% 55% at 18% 88%, rgba(80, 180, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 78% 18%, rgba(180, 120, 255, 0.45), transparent 50%),
    radial-gradient(ellipse 60% 45% at 55% 55%, rgba(40, 90, 220, 0.35), transparent 55%),
    linear-gradient(160deg, #1b4fb8 0%, #0a2f7a 45%, #071a45 100%);
  overflow: hidden;
}

.desk-icons {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: calc(min(320px, 34vw) + 28px);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35rem 1.1rem;
  max-height: calc(100% - 3rem);
}

.desk-hint-float {
  position: absolute;
  right: 1rem;
  bottom: 3.2rem;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  pointer-events: none;
}

.desk-icon {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  width: 78px;
  padding: 0.4rem 0.25rem;
  color: #fff;
  cursor: default;
  border-radius: 4px;
  user-select: none;
}

.desk-icon:hover,
.desk-icon.is-selected {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

.desk-icon .ico-wrap {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.3rem;
}
.desk-icon .ico {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
.desk-icon .ico::before,
.desk-icon .ico::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Mail - envelope */
.desk-icon .ico.mail {
  background: linear-gradient(160deg, #4aa3ef, #1565c0);
}
.desk-icon .ico.mail::before {
  left: 8px; right: 8px; top: 12px; bottom: 11px;
  border: 2px solid #fff;
  border-radius: 2px;
}
.desk-icon .ico.mail::after {
  left: 9px; right: 9px; top: 12px; height: 12px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: perspective(12px) rotateX(180deg);
  transform-origin: top;
  box-sizing: border-box;
}

/* Files - folder */
.desk-icon .ico.files {
  background: linear-gradient(160deg, #ffc94a, #e8910c);
}
.desk-icon .ico.files::before {
  left: 7px; top: 11px; width: 14px; height: 6px;
  background: #fff;
  border-radius: 2px 2px 0 0;
}
.desk-icon .ico.files::after {
  left: 7px; right: 7px; top: 15px; bottom: 9px;
  background: #fff;
  border-radius: 0 3px 3px 3px;
}

/* Authenticator - shield + check */
.desk-icon .ico.auth {
  background: linear-gradient(160deg, #2dd67b, #0d8a45);
}
.desk-icon .ico.auth::before {
  left: 12px; right: 12px; top: 8px; bottom: 8px;
  background: #fff;
  border-radius: 3px 3px 12px 12px;
  clip-path: polygon(50% 0, 100% 18%, 100% 62%, 50% 100%, 0 62%, 0 18%);
}
.desk-icon .ico.auth::after {
  left: 17px; top: 16px; width: 8px; height: 5px;
  border-left: 2px solid #0d8a45;
  border-bottom: 2px solid #0d8a45;
  transform: rotate(-45deg);
}

/* Teams chat - speech bubble */
.desk-icon .ico.chat {
  background: linear-gradient(160deg, #7b83d4, #464775);
}
.desk-icon .ico.chat::before {
  left: 9px; right: 9px; top: 9px; height: 18px;
  background: #fff;
  border-radius: 8px;
}
.desk-icon .ico.chat::after {
  left: 12px; top: 24px;
  border: 6px solid transparent;
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 0 0 0 2px;
}

/* Browser - Chrome-style circle */
.desk-icon .ico.browser {
  background: #fff;
}
.desk-icon .ico.browser::before {
  left: 5px; top: 5px; width: 32px; height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 6px, #4285f4 6.5px 10px, transparent 10.5px),
    conic-gradient(from -30deg, #ea4335 0 120deg, #fbbc05 120deg 240deg, #34a853 240deg 360deg);
}

/* Code Review - braces */
.desk-icon .ico.code {
  background: linear-gradient(160deg, #2f8fd6, #1b1f2a);
}
.desk-icon .ico.code::before {
  content: "{ }";
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 15px/42px "IBM Plex Mono", monospace;
  letter-spacing: -1px;
}

/* Terminal */
.desk-icon .ico.term {
  background: linear-gradient(160deg, #2a2a2e, #0d0d10);
  border: 1px solid rgba(255,255,255,0.12);
}
.desk-icon .ico.term::before {
  content: ">_";
  inset: 0;
  display: grid;
  place-items: center;
  color: #5dff8a;
  font: 700 14px/42px "IBM Plex Mono", monospace;
}

/* Tickets / Service desk */
.desk-icon .ico.tickets {
  background: linear-gradient(160deg, #5ec4a0, #1f7a58);
}
.desk-icon .ico.tickets::before {
  left: 10px; right: 10px; top: 9px; bottom: 9px;
  background: #fff;
  border-radius: 3px;
}
.desk-icon .ico.tickets::after {
  left: 14px; right: 14px; top: 15px; height: 2px;
  background: #1f7a58;
  box-shadow: 0 5px 0 #1f7a58, 0 10px 0 #1f7a58;
}

.desk-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e81123;
  color: #fff;
  font: 700 11px/18px "Segoe UI", system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 2;
}
.desk-badge[hidden] { display: none !important; }
.tb-app { position: relative; }
.tb-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #e81123;
  color: #fff;
  font: 700 9px/14px "Segoe UI", system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}

.desk-icon em {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

.desk-win {
  position: absolute;
  left: 10%;
  top: 8%;
  width: min(720px, calc(100% - min(320px, 34vw) - 48px));
  max-width: calc(100% - min(320px, 34vw) - 36px);
  height: min(460px, 70%);
  display: flex;
  flex-direction: column;
  background: #f3f3f3;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  z-index: 5;
  overflow: hidden;
}

.desk-win[hidden] { display: none !important; }
.desk-win.is-focus { z-index: 12; box-shadow: 0 22px 60px rgba(0,0,0,0.45); }
.desk-win.desk-win-sm {
  left: auto;
  right: calc(min(320px, 34vw) + 28px);
  top: 14%;
  width: min(360px, 42%);
  height: auto;
  min-height: 240px;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0 0 0.75rem;
  height: 36px;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  cursor: move;
  user-select: none;
  font-size: 0.78rem;
  color: #1a1a1a;
}

.win-drag { flex: 1; font-weight: 600; pointer-events: none; }
.win-dots {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #60cdff, #0078d4);
  flex-shrink: 0;
}

.win-controls { display: flex; height: 100%; }
.win-x, .win-min, .win-max {
  appearance: none;
  border: 0;
  background: transparent;
  width: 46px;
  height: 100%;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 0;
  font-size: 0.85rem;
  line-height: 1;
}
.win-min:hover, .win-max:hover { background: #e9e9e9; }
.win-x:hover { background: #e81123; color: #fff; }

.win-split {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  background: #fff;
}

.mail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
}

.mail-list li button {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  color: #222;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font: inherit;
}
.mail-list li button:hover,
.mail-list li.is-on button { background: #e8f2fc; }
.mail-list .from { display: block; font-weight: 700; font-size: 0.85rem; }
.mail-list .sub {
  display: block;
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-list .badge {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #fde7e9;
  color: #a4262c;
}

.mail-read {
  padding: 0.9rem 1rem;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.45;
  background: #fff;
}
.mail-read h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.mail-read .meta {
  color: #666;
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
  font-family: IBM Plex Mono, monospace;
}
.mail-read .body {
  white-space: pre-wrap;
  margin-bottom: 1rem;
  color: #333;
}
.mail-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.files-body,
.auth-body,
.chat-body,
.browser-body,
.code-body,
.term-desk-body,
.tickets-body {
  flex: 1;
  padding: 0.85rem 1rem;
  overflow: auto;
  background: #fff;
  color: #222;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  margin-bottom: 0.45rem;
  background: #fafafa;
}
.file-row strong { flex: 1; font-size: 0.9rem; }
.file-row span {
  font-size: 0.75rem;
  color: #666;
  font-family: IBM Plex Mono, monospace;
}

.auth-card { text-align: center; padding: 0.5rem 0.25rem 0.75rem; }
.auth-card .pulse {
  width: 56px;
  height: 56px;
  margin: 0.4rem auto 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, #00cc6a, #10893e);
  box-shadow: 0 0 24px rgba(16, 137, 62, 0.35);
  animation: authPulse 1.6s ease-in-out infinite;
}
@keyframes authPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
.auth-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.auth-card p { margin: 0 0 1rem; color: #666; font-size: 0.88rem; }

.chat-msg {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
}
.chat-msg .who { font-weight: 700; font-size: 0.85rem; color: #464775; }
.chat-msg .when { float: right; font-size: 0.72rem; color: #888; }
.chat-msg p { margin: 0.35rem 0 0.55rem; font-size: 0.9rem; clear: both; }
.chat-msg textarea {
  width: 100%;
  min-height: 64px;
  margin-bottom: 0.45rem;
  padding: 0.45rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

.browser-chrome {
  padding: 0.4rem 0.75rem;
  background: #e8e8e8;
  border-bottom: 1px solid #ddd;
}
.browser-url {
  display: block;
  padding: 0.35rem 0.65rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ccc;
  font-family: IBM Plex Mono, monospace;
  font-size: 0.75rem;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-body h3 { margin-top: 0; }

.browser-home {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.browser-frame {
  flex: 1;
  width: 100%;
  min-height: 280px;
  border: 0;
  background: #fff;
}

.browser-fallback {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  padding: 0 0.15rem;
}

.code-diff {
  font-family: IBM Plex Mono, monospace;
  font-size: 0.78rem;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 0.75rem;
  white-space: pre-wrap;
  margin: 0.65rem 0 1rem;
  line-height: 1.45;
}
.code-diff .add { color: #89d185; }
.code-diff .bad { color: #f14c4c; background: rgba(241,76,76,0.12); }
.code-meta { font-size: 0.85rem; color: #555; margin: 0 0 0.5rem; }

.term-desk-body {
  background: #0c0c0c !important;
  color: #cccccc;
  font-family: IBM Plex Mono, Consolas, monospace;
  font-size: 0.82rem;
}
.term-desk-body pre {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
  color: #9cdcfe;
}
.term-desk-body .cmd {
  color: #ce9178;
}

.ticket-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  background: #fafafa;
}
.ticket-card h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.ticket-card p { margin: 0 0 0.65rem; font-size: 0.88rem; color: #444; }
.ticket-card .pri {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #fde7e9;
  color: #a4262c;
  margin-bottom: 0.35rem;
}

.desk-toast {
  position: absolute;
  right: 1rem;
  bottom: 3.4rem;
  z-index: 20;
  max-width: 320px;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #1f1f1f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  font-size: 0.88rem;
}
.desk-toast strong { display: block; margin-bottom: 0.35rem; color: #5dff8a; }
.desk-toast[hidden] { display: none !important; }

.desk-taskbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  background: rgba(32, 32, 32, 0.72);
  backdrop-filter: blur(28px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 30;
  color: #fff;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
}
.tb-start {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tb-start:hover { background: rgba(255,255,255,0.12); }
.tb-start .win-logo {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.tb-start .win-logo i {
  display: block;
  background: #fff;
  border-radius: 1px;
}
.tb-apps { display: flex; gap: 0.25rem; flex: 1; overflow: auto; justify-content: center; }
.tb-app {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 0.72rem "Segoe UI", system-ui, sans-serif;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.tb-app:hover { background: rgba(255,255,255,0.1); }
.tb-app.is-on { background: rgba(255,255,255,0.14); }
.tb-app.is-on::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: #60cdff;
}
.tb-tray {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  min-width: 110px;
  justify-content: flex-end;
}
.tb-tray:hover { background: rgba(255,255,255,0.08); }
.tb-user { opacity: 0.85; }

.btn,
.desk-app .ghost,
.mail-actions button,
.file-row button,
.auth-card button,
.chat-msg button,
.browser-body button,
.code-body button,
.term-desk-body button,
.tickets-body button {
  appearance: none;
  border: 1px solid #8a8a8a;
  background: #f9f9f9;
  color: #222;
  font: 600 0.85rem "Segoe UI", Rajdhani, system-ui, sans-serif;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}
.btn:hover,
.mail-actions button:hover,
.file-row button:hover,
.auth-card button:hover,
.chat-msg button:hover,
.code-body button:hover,
.tickets-body button:hover {
  background: #e8f2fc;
  border-color: #0078d4;
}
.btn.danger,
.mail-actions .danger,
.file-row .danger,
.auth-card .danger,
.chat-msg .danger,
.code-body .danger,
.tickets-body .danger {
  border-color: #d13438;
  background: #fde7e9;
  color: #a4262c;
}
.btn.ok,
.mail-actions .ok,
.auth-card .ok,
.chat-msg .ok,
.code-body .ok,
.tickets-body .ok {
  border-color: #107c10;
  background: #dff6dd;
  color: #0b6a0b;
}
.muted { color: #777; }

/* Breach / owned screen */
.breach-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #8b0000;
  color: #fff;
  padding: 1.5rem;
}
.breach-screen[hidden] { display: none !important; }
.breach-noise {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.35) 2px,
    rgba(0,0,0,0.35) 4px
  );
  animation: glitch 0.35s steps(2) infinite;
  pointer-events: none;
}
@keyframes glitch {
  0% { transform: translate(0,0); }
  50% { transform: translate(-2px, 1px); }
  100% { transform: translate(1px, -1px); }
}
.breach-card {
  position: relative;
  max-width: 520px;
  text-align: center;
  z-index: 1;
}
.breach-tag {
  margin: 0 0 0.5rem;
  font-family: IBM Plex Mono, monospace;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #ffb4b4;
}
.breach-card h2 {
  margin: 0 0 0.75rem;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: 0.04em;
}
.breach-reason {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #ffe0e0;
}
.breach-hint {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}
.breach-btn {
  background: #fff !important;
  color: #8b0000 !important;
  border: 0 !important;
  font-family: Orbitron, sans-serif !important;
}

.desk-boot {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(7, 9, 15, 0.92);
  padding: 1.5rem;
}
.desk-boot[hidden] { display: none !important; }
.desk-boot-card {
  max-width: 480px;
  padding: 1.75rem 1.6rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #121a2c, #0c101c);
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  color: #dce6ff;
}
.desk-boot-card .eyebrow {
  margin: 0;
  font-family: IBM Plex Mono, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #00e5ff;
}
.desk-boot-card h1 {
  margin: 0.4rem 0 0.75rem;
  font-family: Orbitron, sans-serif;
  font-size: 1.6rem;
}
.desk-boot-card h1 span { color: #ff3db8; }
.desk-boot-card p {
  margin: 0 0 0.75rem;
  color: #b8c4de;
  line-height: 1.45;
  font-size: 0.98rem;
}
.desk-boot-card .inspired { font-size: 0.88rem; color: #8490aa; }
.desk-boot-card .btn {
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 1rem;
  background: linear-gradient(90deg, #00e5ff, #8b5cff);
  color: #07090f;
  border: 0;
  border-radius: 999px;
  font-family: Orbitron, sans-serif;
}

@media (max-width: 860px) {
  .desk-brief.desk-todo-app {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 56px;
    width: auto;
    max-height: 38vh;
  }
  .desk-icons {
    right: 1rem;
    max-height: calc(100% - 42vh);
  }
  .win-split { grid-template-columns: 1fr; }
  .mail-list {
    max-height: 130px;
    border-right: 0;
    border-bottom: 1px solid #eee;
  }
}

.desk-scenario {
  margin: 0 0 0.85rem;
  color: #b8c4de;
  font-size: 0.92rem;
  line-height: 1.45;
}

.desk-push-head {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8490aa;
  font-family: IBM Plex Mono, monospace;
}

.desk-push-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.desk-push {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.desk-push:hover,
.desk-push.is-live {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.desk-push.is-done {
  opacity: 0.55;
}

.desk-push .push-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #07090f;
  background: linear-gradient(135deg, #00e5ff, #8b5cff);
}

.desk-push .push-app {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8490aa;
}

.desk-push .push-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #dce6ff;
  margin: 0.1rem 0;
}

.desk-push .push-body {
  display: block;
  font-size: 0.82rem;
  color: #a8b4d0;
  line-height: 1.35;
}

.desk-hints {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  background: rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
}

.desk-hints summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #dce6ff;
  padding: 0.35rem 0;
  list-style: none;
}

.desk-hints summary::-webkit-details-marker { display: none; }
.desk-hints summary::before {
  content: "+ ";
  color: #00e5ff;
  font-family: IBM Plex Mono, monospace;
}
.desk-hints[open] summary::before { content: "- "; }
.desk-hints summary span {
  color: #8490aa;
  font-size: 0.75rem;
}
.desk-hints .desk-steps {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.1rem;
}

.mail-list .badge.ok {
  background: #dff6dd;
  color: #0b6a0b;
}
.mail-list li.is-reported button,
.mail-list li.is-verified button {
  opacity: 0.78;
}
.mail-banner {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff4ce;
  color: #6c5713;
  border: 1px solid #f0e0a0;
}
.mail-banner.ok {
  background: #dff6dd;
  color: #0b6a0b;
  border-color: #9fd49f;
}
.desk-win {
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.mail-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.75rem;
  color: #555;
}
.mail-nav span.is-on {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  color: #111;
  font-weight: 600;
}
.desk-push-hint,
.desk-hint-float {
  display: none !important;
}


/* Target app for current notification */
.desk-icon.is-target {
  background: rgba(0, 229, 255, 0.22);
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.45), 0 0 18px rgba(0, 229, 255, 0.35);
  animation: desk-target-pulse 1.4s ease-in-out infinite;
}
.desk-icon.is-target .ico {
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
}
@keyframes desk-target-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.desk-icon .ico.ig {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976 45%, #962fbf 70%, #4f5bd5);
}
.desk-icon .ico.ig::after {
  content: "IG";
  display: grid;
  place-items: center;
  height: 100%;
  font: 700 13px "Segoe UI", system-ui, sans-serif;
  color: #fff;
}
.desk-icon .ico.fb {
  background: linear-gradient(145deg, #4b79e0, #1877f2);
}
.desk-icon .ico.fb::after {
  content: "f";
  display: grid;
  place-items: center;
  height: 100%;
  font: 700 26px Georgia, serif;
  color: #fff;
}
.desk-icon .ico.nflx {
  background: linear-gradient(145deg, #e50914, #b20710);
}
.desk-icon .ico.nflx::after {
  content: "N";
  display: grid;
  place-items: center;
  height: 100%;
  font: 700 22px "Segoe UI", system-ui, sans-serif;
  color: #fff;
}

/* Office-hours policy block */
.policy-screen {
  position: absolute;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  background: rgba(10, 22, 40, 0.82);
  padding: 1.5rem;
}
.policy-screen[hidden] { display: none !important; }
.policy-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 80, 0.45);
  background: linear-gradient(160deg, #1b2a44, #0f1728);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  text-align: center;
}
.policy-tag {
  margin: 0 0 0.5rem;
  font: 700 0.72rem "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  color: #ffc857;
}
.policy-card h2 {
  margin: 0 0 0.65rem;
  font-family: Orbitron, sans-serif;
  font-size: 1.25rem;
}
.policy-reason { margin: 0 0 0.7rem; line-height: 1.45; color: rgba(255,255,255,0.88); }
.policy-hint { margin: 0 0 1.1rem; font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.4; }
.policy-btn { width: 100%; }

/* Shift complete celebration */
.win-screen {
  position: absolute;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0, 229, 255, 0.25), transparent 55%),
    linear-gradient(160deg, #0a2a22, #0c1630 60%, #1a0a2e);
  padding: 1.5rem;
  animation: win-fade 0.45s ease-out;
}
.win-screen[hidden] { display: none !important; }
@keyframes win-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.win-card {
  max-width: 460px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(93, 255, 138, 0.45);
  background: rgba(8, 24, 28, 0.92);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 40px rgba(93, 255, 138, 0.2);
}
.win-tag {
  margin: 0 0 0.45rem;
  font: 700 0.72rem "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  color: #5dff8a;
}
.win-card h2 {
  margin: 0 0 0.5rem;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(90deg, #5dff8a, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.win-sub { margin: 0 0 1rem; color: rgba(255,255,255,0.75); line-height: 1.45; }
.win-score {
  margin: 0 0 1rem;
  font: 700 1.05rem "IBM Plex Mono", monospace;
  color: #5dff8a;
}
.win-checks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
}
.win-checks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.35;
}
.win-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5dff8a;
  font-weight: 700;
}
.win-score b { color: #ffc857; }
.win-btn { width: 100%; }

.desk-push.is-hint {
  cursor: pointer;
}
.desk-push-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #00e5ff;
  letter-spacing: 0.04em;
}


.shift-pick {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(6, 12, 24, 0.82);
  padding: 1.25rem;
}
.shift-pick[hidden] { display: none !important; }
.shift-pick-card {
  width: min(440px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: #121a28;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.shift-pick-tag {
  margin: 0 0 0.35rem;
  font: 700 0.7rem "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  color: #00e5ff;
}
.shift-pick-card h2 { margin: 0 0 0.35rem; font-family: Orbitron, sans-serif; font-size: 1.2rem; }
.shift-pick-sub { margin: 0 0 0.85rem; color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.4; }
.shift-pick-list {
  margin: 0 0 1rem;
  padding: 0 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.shift-pick-list li { color: rgba(255,255,255,0.9); }
.shift-pick-list li span {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
}
.shift-pick-card .btn { width: 100%; }

/* Real-tool colors: Approve = green, Reject/block = red */
.code-body .mail-actions .ok[data-act="approve-arch"],
.code-body .mail-actions .ok[data-act="merge-pr"],
.code-body .mail-actions .ok[data-act="merge-secret-pr"] {
  border-color: #107c10;
  background: #dff6dd;
  color: #0b6a0b;
}
.code-body .mail-actions .danger[data-act="reject-arch"],
.code-body .mail-actions .danger[data-act="block-pr"],
.code-body .mail-actions .danger[data-act="block-secret-pr"] {
  border-color: #a4262c;
  background: #fde7e9;
  color: #a4262c;
}
