/* ============================================================
   CHROME — Dock, boot, launcher, shortcuts, start menu
   ============================================================ */

/* ---- BOOT SCREEN — Windows minimal ---- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 600ms ease, visibility 600ms ease;
  pointer-events: all;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Logo block */
.boot-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 52px;
}

.boot-monogram {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  letter-spacing: -0.02em;
  line-height: 1;
}

.boot-tagline {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* Windows XP-style scrolling dots */
.boot-dots {
  display: flex;
  gap: 5px;
}

.boot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: boot-dot 1.2s ease-in-out infinite;
}

.boot-dot:nth-child(1) { animation-delay: 0.00s; }
.boot-dot:nth-child(2) { animation-delay: 0.18s; }
.boot-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes boot-dot {
  0%, 60%, 100% { opacity: 0.12; transform: scale(0.85); }
  30%           { opacity: 1.00; transform: scale(1.00); }
}

/* ---- SHUTDOWN SCREEN ---- */
.shutdown {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.shutdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.shutdown-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 52px;
}

.shutdown-monogram {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  letter-spacing: -0.02em;
  line-height: 1;
}

.shutdown-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.shutdown-dots {
  display: flex;
  gap: 5px;
}

.shutdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: boot-dot 1.2s ease-in-out infinite;
}

.shutdown-dot:nth-child(1) { animation-delay: 0.00s; }
.shutdown-dot:nth-child(2) { animation-delay: 0.18s; }
.shutdown-dot:nth-child(3) { animation-delay: 0.36s; }

/* ---- DESK SHELL ---- */
.desk-shell {
  min-height: 100svh;
}

/* Header is removed — hide if accidentally in DOM */
.system-bar { display: none !important; }

/* ---- SYSTEM BAR ---- */
.system-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  /* Windows Aero: cool blue translucent glass */
  background: linear-gradient(
    180deg,
    rgba(200,225,255,0.82) 0%,
    rgba(166,204,248,0.75) 100%
  );
  border-bottom: 1px solid rgba(28,80,160,0.28);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 2px 8px rgba(20,60,120,0.18);
}

.system-left,
.system-center,
.system-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.system-center {
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #2a4e80;
  gap: 6px;
}

.system-right { justify-content: flex-end; }

/* Brand mark */
.brand {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(28,80,160,0.30);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #cce0fb);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 3px 8px rgba(20,60,120,0.18);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 150ms ease;
}
.brand:hover {
  background: linear-gradient(180deg, #ffffff, #b8d4f8);
}

/* Status chips */
.route-chip,
.status-chip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(28,80,160,0.22);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.68);
  padding: 3px 10px;
  font-size: 0.7rem;
  color: #1c3f78;
}

.status-chip { color: #1a7a5a; }

/* Switches */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: #2a4870;
}

.switch input {
  appearance: none;
  width: 32px;
  height: 18px;
  border: 1px solid rgba(28,80,160,0.32);
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.14);
  position: relative;
  cursor: pointer;
  transition: background 150ms ease;
}

.switch input::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #8ab0d8;
  transition: transform 150ms ease, background 150ms ease;
}

.switch input:checked { background: rgba(30,93,191,0.18); }
.switch input:checked::after {
  transform: translateX(14px);
  background: var(--accent);
}

/* System buttons (bar + icon + snap) */
.bar-button,
.icon-button,
.snap-button {
  border: 1px solid rgba(28,80,160,0.28);
  border-radius: var(--radius-btn);
  background: linear-gradient(180deg, #ffffff, #d4e8fb);
  color: #1c3f6a;
  min-height: 28px;
  padding: 0 11px;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset;
  transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.bar-button:hover,
.icon-button:hover,
.snap-button:hover {
  background: linear-gradient(180deg, #ffffff, #bdd6f8);
  border-color: rgba(28,80,160,0.44);
  color: #1c3f6a;
}

.bar-button:active,
.icon-button:active,
.snap-button:active { transform: translateY(1px); }

.bar-button.ghost { color: #3a5a88; background: transparent; border-color: rgba(28,80,160,0.18); box-shadow: none; }
.bar-button.ghost:hover { background: rgba(255,255,255,0.52); }
.bar-button.danger { color: #8b1a14; }
.bar-button.danger:hover { background: linear-gradient(180deg, #fff0ee, #f5c2bd); border-color: rgba(180,50,40,0.36); }

/* ---- DOCK ---- */
.dock {
  position: fixed;
  z-index: 70;
  top: 0;           /* No header — dock fills full height */
  bottom: 0;
  left: 0;
  width: var(--dock-w);
  padding: 24px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(28,80,160,0.22);
  background: linear-gradient(
    180deg,
    rgba(196,220,252,0.82) 0%,
    rgba(164,200,246,0.76) 100%
  );
  backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 2px 0 6px rgba(20,60,120,0.14);
}

/* ---- DOCK LOGO / START BUTTON — at BOTTOM of dock ---- */
.dock-logo-wrap {
  margin-top: auto;  /* pushes logo to the very bottom */
  padding: 8px 0 10px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(28,80,160,0.18);
  flex-shrink: 0;
}

.dock-logo-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(28,80,160,0.40);
  background: linear-gradient(145deg, #1a3d78, #2a5caa, #1a3d78);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 3px 10px rgba(20,60,140,0.40);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 140ms ease, box-shadow 140ms ease, transform 100ms ease;
  position: relative;
}

.dock-logo-btn:hover {
  background: linear-gradient(145deg, #2248a0, #3670cc, #2248a0);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 4px 16px rgba(20,60,140,0.55);
  transform: scale(1.04);
}

.dock-logo-btn:active { transform: scale(0.97); }

.dock-logo-btn.active {
  background: linear-gradient(145deg, #0f2a60, #1a4690, #0f2a60);
  box-shadow:
    0 0 0 2px rgba(120,180,255,0.50) inset,
    0 2px 8px rgba(20,60,140,0.40);
}

.dock-logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.dock-item-wrap { position: relative; }

.dock-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(28,80,160,0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #cfe5ff);
  box-shadow: 0 2px 0 rgba(255,255,255,0.7) inset, var(--shadow-dock);
  color: #1c3f6a;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

/* Per-app icon color overrides — vivid, saturated macOS-style */
[data-app="console"]   { --dock-icon: #00c853; }
[data-app="files"]     { --dock-icon: #ff9500; }
[data-app="browser"]   { --dock-icon: #007aff; }
[data-app="projects"]  { --dock-icon: #ff3b30; }
[data-app="metrics"]   { --dock-icon: #5856d6; }
[data-app="network"]   { --dock-icon: #af52de; }
[data-app="search"]    { --dock-icon: #ff9f0a; }
[data-app="resume"]    { --dock-icon: #0a84ff; }
[data-app="notes"]     { --dock-icon: #ffd60a; }
[data-app="contact"]   { --dock-icon: #ff2d55; }

.dock-button .dock-glyph svg {
  stroke: var(--dock-icon, #1c3f6a);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-button span {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1c3f6a;
}

.dock-glyph { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.dock-glyph svg { width: 26px; height: 26px; }

.dock-button:hover,
.dock-button.active {
  border-color: rgba(30,93,191,0.52);
  background: linear-gradient(180deg, #ffffff, #b8d8ff);
  transform: translateY(-1px);
}

/* Open-window indicator dot */
.dock-button::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(28,80,160,0.22);
  background: transparent;
  opacity: 0;
  transition: opacity 130ms ease, background 130ms ease;
}

.dock-button.state-open::after {
  opacity: 1;
  background: var(--accent);
  border-color: rgba(30,93,191,0.6);
}

.dock-button.state-min::after {
  opacity: 1;
  background: rgba(30,93,191,0.28);
  border-color: rgba(30,93,191,0.48);
}

/* Dock tooltip */
.dock-button small {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,36,62,0.94);
  border: 1px solid rgba(100,150,220,0.32);
  border-radius: 8px;
  padding: 5px 9px;
  white-space: nowrap;
  color: #d8ecff;
  font-size: 0.7rem;
  font-family: var(--mono);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.30);
  transition: opacity 120ms ease;
}

.dock-button:hover small { opacity: 1; }

/* Dock preview popover */
.dock-preview {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  min-width: 210px;
  border: 1px solid rgba(28,80,160,0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(230,244,255,0.97), rgba(210,232,255,0.96));
  box-shadow: var(--shadow-dialog);
  padding: 5px;
  display: grid;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
  z-index: 110;
}

.dock-item-wrap:hover .dock-preview,
.dock-item-wrap:focus-within .dock-preview {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.dock-preview-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 7px 9px;
  display: grid;
  gap: 2px;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease;
}

.dock-preview-item:hover,
.dock-preview-item:focus-visible {
  border-color: rgba(30,93,191,0.32);
  background: rgba(255,255,255,0.72);
}

.dock-preview-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #0f2a4e;
}

.dock-preview-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* ---- WORKSPACE ---- */
.workspace {
  position: fixed;
  inset: var(--bar-h) 0 0 var(--dock-w);
  overflow: hidden;
  z-index: 1;
}

/* Snap zones */
.snap-zone {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  border: 2px solid rgba(30,93,191,0.5);
  background: rgba(30,93,191,0.10);
  border-radius: 6px;
  transition: opacity 120ms ease;
}

.snap-zone.show { opacity: 1; }
.snap-left  { inset: 10px auto 10px 10px; width: calc(50% - 15px); }
.snap-right { inset: 10px 10px 10px auto; width: calc(50% - 15px); }
.snap-full  { inset: 10px; }

/* ---- LAUNCHER ---- */
.launcher,
.shortcuts {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding-top: 68px;
  background: rgba(10,24,50,0.38);
  backdrop-filter: blur(6px);
}

.launcher[hidden],
.shortcuts[hidden] { display: none; }

.launcher-panel,
.shortcuts-panel {
  width: min(580px, calc(100vw - 28px));
  border: 1px solid rgba(28,80,160,0.36);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240,248,255,0.97), rgba(224,238,255,0.96));
  box-shadow: var(--shadow-dialog);
  padding: 12px;
}

.launcher input {
  width: 100%;
  border: 1px solid rgba(28,80,160,0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  color: var(--text);
  padding: 9px 12px;
}

.launcher input:focus {
  outline: none;
  border-color: rgba(30,93,191,0.56);
  box-shadow: 0 0 0 3px rgba(30,93,191,0.14);
}

.launcher-results {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  max-height: 380px;
  overflow: auto;
}

.result-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.result-button strong { display: block; color: var(--text); }
.result-button span   { display: block; color: var(--muted); font-size: 0.78rem; }

.result-button:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(28,80,160,0.24);
  color: var(--text);
}

/* ---- SHORTCUTS MODAL ---- */
.shortcuts-panel .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

#shortcuts-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: background 100ms ease, color 100ms ease;
}

#shortcuts-close:hover {
  background: rgba(30,93,191,0.1);
  color: var(--text);
}

#shortcuts-close svg {
  width: 16px;
  height: 16px;
}

.shortcuts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}

.shortcuts dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.shortcuts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- CONFIRM MODAL ---- */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(10,24,50,0.44);
  display: grid;
  place-items: center;
  backdrop-filter: blur(5px);
}

.confirm-modal[hidden] { display: none !important; }

.confirm-dialog {
  width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(28,80,160,0.36);
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f9ff, #e8f2ff);
  box-shadow: var(--shadow-dialog);
  padding: 18px;
}

.confirm-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
}

.confirm-message {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- CONTEXT MENU ---- */
.context-menu {
  position: fixed;
  z-index: 190;
  min-width: 200px;
  border: 1px solid rgba(28,80,160,0.32);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(240,248,255,0.97), rgba(224,238,255,0.96));
  box-shadow: 0 18px 42px rgba(10,30,80,0.38);
  padding: 5px;
}

.context-menu[hidden] { display: none !important; }

.context-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font-size: 0.86rem;
  transition: background 100ms ease;
}

.context-item:hover { background: rgba(30,93,191,0.12); }
.context-item.danger { color: var(--danger); }
.context-item.danger:hover { background: rgba(180,40,30,0.08); }

/* ---- MOBILE TABS ---- */
.mobile-tabs { display: none; }

/* ============================================================
   START MENU
   ============================================================ */
.start-menu {
  position: fixed;
  z-index: 200;
  bottom: 62px;       /* sits above the dock logo button */
  left: var(--dock-w);
  width: 320px;
  max-height: calc(100svh - 80px); /* never taller than viewport minus dock logo + gap */
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(28,80,160,0.30);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(220,235,255,0.97) 0%, rgba(200,220,255,0.96) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 4px -4px 32px rgba(10,30,90,0.28);
  overflow: hidden;
  transform: translateY(0);
  transform-origin: bottom left;
  transition: opacity 140ms ease, transform 140ms ease;
}

.start-menu[hidden] {
  display: block !important; /* override hidden attr so we can animate */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.sm-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: calc(100svh - 80px);
  overflow: hidden;
}

/* Search row */
.sm-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(28,80,160,0.14);
  flex-shrink: 0;
  background: rgba(255,255,255,0.50);
}

.sm-search-icon {
  width: 16px;
  height: 16px;
  color: rgba(30,70,160,0.50);
  flex-shrink: 0;
}

#sm-search {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: #0e2540;
  outline: none;
}

#sm-search::placeholder { color: rgba(30,70,160,0.45); }

/* Results (when searching) */
.sm-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.sm-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: #0e2540;
  transition: background 90ms ease;
  text-align: left;
}

.sm-result-item:hover {
  background: rgba(30,93,191,0.10);
}

.sm-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(28,80,160,0.22);
  background: linear-gradient(180deg, #fff, #d8eaff);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sm-result-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--dock-icon, #1c3f6a);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* Body (default, non-search view) */
.sm-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,80,160,0.22) transparent;
}

.sm-section-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20,50,120,0.55);
  margin: 0 0 8px 2px;
}

/* App grid — 4 columns */
.sm-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sm-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 8px 4px;
  cursor: pointer;
  transition: background 90ms ease, border-color 90ms ease;
}

.sm-app-btn:hover {
  background: rgba(30,93,191,0.09);
  border-color: rgba(30,93,191,0.18);
}

.sm-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(28,80,160,0.22);
  background: linear-gradient(180deg, #ffffff, #cfe5ff);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(20,60,120,0.14);
}

.sm-app-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--dock-icon, #1c3f6a);
}

.sm-app-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: #0e2540;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sm-divider {
  height: 1px;
  background: rgba(28,80,160,0.14);
  margin: 8px 0 12px;
}

/* System action buttons */
.sm-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.sm-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: #0e2540;
  transition: background 90ms ease;
  text-align: left;
}

.sm-action-btn:hover { background: rgba(30,93,191,0.09); }

.sm-action-btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(30,70,160,0.70);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  flex-shrink: 0;
}

.sm-action-btn.danger { color: var(--danger); }
.sm-action-btn.danger svg { stroke: var(--danger); }
.sm-action-btn.danger:hover { background: rgba(180,40,30,0.07); }

/* Footer */
.sm-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(28,80,160,0.14);
  background: rgba(255,255,255,0.40);
  flex-shrink: 0;
}

.sm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a3d78, #2a5caa);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.30);
}

.sm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.sm-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sm-user-name {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #0e2540;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-user-role {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.sm-exit-btn {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(28,80,160,0.22);
  background: linear-gradient(180deg, #fff, #d8e8ff);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #1c3f6a;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 100ms ease;
  flex-shrink: 0;
}

.sm-exit-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.sm-exit-btn:hover { 
  background: linear-gradient(180deg, #fff0f0, #ffdbdb);
  color: #a01010;
  border-color: rgba(220,50,50,0.4);
}
