/* ==========================================================================
   Windows 7 Minesweeper (Aero Glass + Oberon Blue / Flower Garden / Win98 Classic)
   100% Standalone Stylesheet for minesweeper.chaosmen.gg & chaosmen.gg/minesweeper
   ========================================================================== */

:root {
  --ms-font-ui: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --ms-font-mono: "Consolas", "Lucida Console", monospace;
  --ms-bg-desktop: radial-gradient(circle at 25% 20%, #2a6db5 0%, #164478 52%, #0b2442 100%);
  --ms-window-bg: rgba(212, 231, 249, 0.86);
  --ms-window-border: rgba(255, 255, 255, 0.72);
  --ms-window-outer-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --ms-titlebar-bg: linear-gradient(180deg, rgba(235, 245, 255, 0.72) 0%, rgba(176, 209, 242, 0.55) 100%);
  --ms-title-color: #0f253e;
  --ms-title-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  --ms-menubar-bg: linear-gradient(180deg, #f5f9fd 0%, #e1ebf5 100%);
  --ms-pane-bg: #eef4fa;
  --ms-pane-border: #8ea9c4;
  --ms-well-bg: #24384d;
  --ms-well-border: #172636;
  --ms-tile-covered-bg: linear-gradient(180deg, #68aef9 0%, #357fe0 52%, #1d60bd 100%);
  --ms-tile-covered-hover: linear-gradient(180deg, #8ac2ff 0%, #4f95ef 52%, #2c72d2 100%);
  --ms-tile-covered-border-top: #b3d8ff;
  --ms-tile-covered-border-bottom: #113b78;
  --ms-tile-revealed-a: #dde7f2;
  --ms-tile-revealed-b: #d1deec;
  --ms-tile-revealed-border: #9eb3c9;
  --ms-pod-bg: linear-gradient(180deg, #2b4a6f 0%, #182e49 100%);
  --ms-pod-border: #76a7df;
  --ms-pod-text: #ffffff;
  --ms-text-main: #142638;
  --ms-text-muted: #4b627a;
}

/* Theme 2: Windows 7 Flower Garden */
body[data-theme="flower_garden"] {
  --ms-bg-desktop: radial-gradient(circle at 25% 20%, #3d7d3b 0%, #245724 55%, #133314 100%);
  --ms-well-bg: #2e4a21;
  --ms-well-border: #1c3012;
  --ms-tile-covered-bg: linear-gradient(180deg, #7ed152 0%, #4ea82a 54%, #378319 100%);
  --ms-tile-covered-hover: linear-gradient(180deg, #98e46d 0%, #64be3d 54%, #459823 100%);
  --ms-tile-covered-border-top: #bef59e;
  --ms-tile-covered-border-bottom: #22560d;
  --ms-tile-revealed-a: #ece5d1;
  --ms-tile-revealed-b: #e1d8c0;
  --ms-tile-revealed-border: #b5a98d;
  --ms-pod-bg: linear-gradient(180deg, #3c6928 0%, #224115 100%);
  --ms-pod-border: #8fd16a;
}

/* Theme 3: Windows 98 Classic Gray (WINMINE.EXE) */
body[data-theme="win98_classic"] {
  --ms-font-ui: "Tahoma", "MS Sans Serif", Arial, sans-serif;
  --ms-bg-desktop: #008080;
  --ms-window-bg: #c0c0c0;
  --ms-window-border: #ffffff;
  --ms-window-outer-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000, inset 2px 2px 0 #ffffff, inset -2px -2px 0 #808080;
  --ms-titlebar-bg: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  --ms-title-color: #ffffff;
  --ms-title-shadow: none;
  --ms-menubar-bg: #c0c0c0;
  --ms-pane-bg: #c0c0c0;
  --ms-pane-border: #808080;
  --ms-well-bg: #808080;
  --ms-well-border: #404040;
  --ms-tile-covered-bg: #c0c0c0;
  --ms-tile-covered-hover: #cccccc;
  --ms-tile-covered-border-top: #ffffff;
  --ms-tile-covered-border-bottom: #808080;
  --ms-tile-revealed-a: #c0c0c0;
  --ms-tile-revealed-b: #c0c0c0;
  --ms-tile-revealed-border: #808080;
  --ms-pod-bg: #000000;
  --ms-pod-border: #808080;
  --ms-pod-text: #ff1e1e;
  --ms-text-main: #000000;
  --ms-text-muted: #404040;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--ms-font-ui);
  font-size: 12px;
  color: var(--ms-text-main);
  background: var(--ms-bg-desktop);
  user-select: none;
}

.ms-viewport {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  padding: 6px 6px 0 6px;
}

body[data-theme="win98_classic"] .ms-viewport {
  padding: 0;
}

.ms-app-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ms-window-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ms-window-border);
  border-radius: 7px 7px 0 0;
  box-shadow: var(--ms-window-outer-shadow);
  min-height: 0;
  overflow: hidden;
}

body[data-theme="win98_classic"] .ms-app-window {
  border-radius: 0;
  padding: 3px;
}

/* Title Bar */
.ms-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 8px 0 10px;
  background: var(--ms-titlebar-bg);
  color: var(--ms-title-color);
  text-shadow: var(--ms-title-shadow);
  font-weight: 600;
  font-size: 12.5px;
  flex-shrink: 0;
}

body[data-theme="win98_classic"] .ms-titlebar {
  height: 22px;
  padding: 0 3px 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.ms-titlebar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.ms-app-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ms-caption-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ms-caption-btn {
  min-width: 28px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(200, 220, 240, 0.45) 100%);
  color: #10243a;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ms-caption-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #cbe3fc 100%);
}

.ms-caption-btn-close {
  background: linear-gradient(180deg, #f3867b 0%, #d23222 55%, #a51609 100%);
  color: #ffffff;
  border-color: #7c140a;
}

.ms-caption-btn-close:hover {
  background: linear-gradient(180deg, #ff9f96 0%, #e83c2b 55%, #be1a0b 100%);
}

body[data-theme="win98_classic"] .ms-caption-btn {
  min-width: 18px;
  height: 16px;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

/* Menu Bar */
.ms-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 2px 8px;
  background: var(--ms-menubar-bg);
  border-bottom: 1px solid var(--ms-pane-border);
  flex-shrink: 0;
  gap: 8px;
}

.ms-menu-items {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ms-menu-dropdown {
  position: relative;
}

.ms-menu-trigger {
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ms-text-main);
  border-radius: 3px;
  cursor: pointer;
}

.ms-menu-trigger:hover,
.ms-menu-dropdown.open .ms-menu-trigger {
  background: rgba(98, 168, 248, 0.22);
  border-color: rgba(53, 127, 224, 0.45);
}

.ms-menu-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #f7fbff;
  border: 1px solid #7d9bb8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  padding: 3px;
  z-index: 200;
}

body[data-theme="win98_classic"] .ms-menu-popup {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  box-shadow: none;
}

.ms-menu-dropdown.open .ms-menu-popup {
  display: block;
}

.ms-menu-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--ms-text-main);
  text-align: left;
  cursor: pointer;
  border-radius: 2px;
}

.ms-menu-option:hover {
  background: #2f7ce0;
  color: #ffffff;
}

.ms-menu-sep {
  height: 1px;
  background: #ccd9e8;
  margin: 3px 4px;
}

.ms-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 10px;
  min-height: 24px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ms-text-main);
  background: linear-gradient(180deg, #ffffff 0%, #e3edf7 50%, #cfdfef 100%);
  border: 1px solid #7d9bb8;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.ms-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 50%, #d8ebff 100%);
  border-color: #357fe0;
}

.ms-btn.active,
.ms-btn-primary {
  background: linear-gradient(180deg, #4f9cf7 0%, #246fd0 55%, #1857ad 100%);
  color: #ffffff;
  border-color: #104288;
}

.ms-btn-primary:hover {
  background: linear-gradient(180deg, #67adf9 0%, #317de0 55%, #2063be 100%);
}

body[data-theme="win98_classic"] .ms-btn {
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

body[data-theme="win98_classic"] .ms-btn.active,
body[data-theme="win98_classic"] .ms-btn-primary {
  background: #000080;
  color: #ffffff;
}

.ms-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #8ea9c4;
  border-radius: 3px;
}

.ms-role-badge {
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10.5px;
  font-weight: 700;
  background: #1f5fb8;
  color: #ffffff;
}

.ms-role-badge[data-role="Chaos Commanders"] {
  background: #7c1f89;
  color: #ffffff;
}

.ms-role-badge[data-role="Chaos Raiders"] {
  background: #0c7b59;
  color: #ffffff;
}

/* Split Workspace */
.ms-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(480px, 1.25fr) minmax(380px, 0.95fr);
  gap: 8px;
  padding: 8px;
  background: var(--ms-pane-bg);
  min-height: 0;
  overflow: hidden;
}

/* Left Minesweeper Playfield Pane */
.ms-board-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  min-width: 0;
}

.ms-top-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ms-pane-border);
  border-radius: 4px;
  flex-wrap: wrap;
}

body[data-theme="win98_classic"] .ms-top-controls-bar {
  background: #c0c0c0;
  border-radius: 0;
  border: 2px inset #ffffff;
}

.ms-difficulty-group,
.ms-theme-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ms-smiley-btn {
  width: 34px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.ms-board-well {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ms-well-bg);
  border: 3px solid var(--ms-well-border);
  border-radius: 6px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.45);
  overflow: auto;
  padding: 10px;
  min-height: 0;
}

body[data-theme="win98_classic"] .ms-board-well {
  border-radius: 0;
  border-top: 3px solid #808080;
  border-left: 3px solid #808080;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  box-shadow: none;
}

/* Minesweeper Grid & Tiles */
.ms-grid {
  display: grid;
  gap: 1px;
  background: rgba(12, 24, 38, 0.65);
  padding: 3px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

body[data-theme="win98_classic"] .ms-grid {
  gap: 0;
  background: #808080;
  padding: 0;
  border-radius: 0;
}

.ms-cell {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ms-font-ui);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  transition: filter 0.06s ease;
}

body[data-theme="win98_classic"] .ms-cell {
  border-radius: 0;
}

.ms-cell.covered {
  background: var(--ms-tile-covered-bg);
  border-top: 2px solid var(--ms-tile-covered-border-top);
  border-left: 2px solid var(--ms-tile-covered-border-top);
  border-right: 2px solid var(--ms-tile-covered-border-bottom);
  border-bottom: 2px solid var(--ms-tile-covered-border-bottom);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ms-cell.covered:hover {
  background: var(--ms-tile-covered-hover);
  filter: brightness(1.06);
}

.ms-cell.covered.chord-preview {
  background: var(--ms-tile-revealed-a) !important;
  border: 1px solid var(--ms-tile-revealed-border) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(47, 124, 224, 0.45) !important;
  filter: none !important;
}

body[data-theme="win98_classic"] .ms-cell.covered.chord-preview {
  background: #c0c0c0 !important;
  border-top: 1px solid #808080 !important;
  border-left: 1px solid #808080 !important;
  border-right: 1px solid #c0c0c0 !important;
  border-bottom: 1px solid #c0c0c0 !important;
  box-shadow: none !important;
}

.ms-cell.revealed.chord-center {
  box-shadow: inset 0 0 0 2px #2f7ce0;
  background: #cbe2fc;
}

body[data-theme="win98_classic"] .ms-cell.revealed.chord-center {
  box-shadow: inset 0 0 0 1px #000080;
}

.ms-cell.covered.chord-flag-neighbor {
  box-shadow: inset 0 0 0 2px #f59e0b, 0 0 4px rgba(245, 158, 11, 0.45);
}

.ms-cell.wrong-flag {
  background: #ffd6d6 !important;
  border: 1px solid #c81912 !important;
  color: #c81912 !important;
}

.ms-cell.revealed {
  background: var(--ms-tile-revealed-a);
  border: 1px solid var(--ms-tile-revealed-border);
  cursor: pointer;
}

.ms-cell.revealed.alt-checker {
  background: var(--ms-tile-revealed-b);
}

.ms-cell.exploded {
  background: linear-gradient(180deg, #ff5f52 0%, #c81912 100%) !important;
  color: #ffffff;
}

/* Canonical Windows 7 Minesweeper Number Palette */
.ms-cell[data-num="1"] { color: #0033cc; }
.ms-cell[data-num="2"] { color: #107c10; }
.ms-cell[data-num="3"] { color: #c50f1f; }
.ms-cell[data-num="4"] { color: #5c1891; }
.ms-cell[data-num="5"] { color: #800000; }
.ms-cell[data-num="6"] { color: #008080; }
.ms-cell[data-num="7"] { color: #1a1a1a; }
.ms-cell[data-num="8"] { color: #595959; }

/* Lower Windows 7 Aero HUD Pods */
.ms-hud-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ms-hud-pod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: var(--ms-pod-bg);
  border: 1px solid var(--ms-pod-border);
  border-radius: 6px;
  color: var(--ms-pod-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body[data-theme="win98_classic"] .ms-hud-pod {
  border-radius: 0;
  border: 2px inset #808080;
}

.ms-hud-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.88;
}

.ms-hud-value {
  font-family: var(--ms-font-mono);
  font-size: 15px;
  font-weight: 700;
}

.ms-touch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

/* Right Docked Leaderboard Pane */
.ms-leaderboard-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  min-width: 0;
}

.ms-tabs-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.ms-tab {
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ms-text-main);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--ms-pane-border);
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}

.ms-tab[aria-selected="true"] {
  background: #1f5fb8;
  color: #ffffff;
  border-color: #113b78;
}

.ms-groupbox {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--ms-pane-border);
  border-radius: 0 4px 4px 4px;
  padding: 8px;
  gap: 6px;
  min-height: 0;
}

body[data-theme="win98_classic"] .ms-groupbox {
  background: #c0c0c0;
  border-radius: 0;
  border: 2px outset #ffffff;
}

.ms-groupbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ms-groupbox-title {
  font-weight: 700;
  font-size: 12.5px;
}

.ms-listview-wrapper {
  flex: 1;
  background: #ffffff;
  border: 1px solid #7d9bb8;
  overflow-y: auto;
  min-height: 0;
}

body[data-theme="win98_classic"] .ms-listview-wrapper {
  border: 2px inset #808080;
}

.ms-listview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.ms-listview-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #f3f8fd 0%, #dde8f4 100%);
  border-bottom: 1px solid #8ea9c4;
  border-right: 1px solid #cfdbe8;
  padding: 5px 6px;
  text-align: left;
  font-weight: 700;
  color: #142638;
  z-index: 2;
}

body[data-theme="win98_classic"] .ms-listview-table thead th {
  background: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.ms-listview-table tbody tr {
  border-bottom: 1px solid #edf2f8;
  cursor: pointer;
}

.ms-listview-table tbody tr:hover {
  background: #e1f0ff;
}

.ms-listview-table td {
  padding: 5px 6px;
  white-space: nowrap;
}

.ms-listview-table th.num,
.ms-listview-table td.num {
  text-align: right;
  font-family: var(--ms-font-mono);
}

.ms-channel-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(225, 237, 250, 0.85);
  border: 1px solid #aac2dc;
  border-radius: 3px;
  font-size: 11px;
}

/* Status Bar & Taskbar */
.ms-statusbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4px;
  padding: 3px 8px;
  background: var(--ms-menubar-bg);
  border-top: 1px solid var(--ms-pane-border);
  font-size: 11px;
  flex-shrink: 0;
}

.ms-status-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-taskbar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(22, 46, 75, 0.86) 0%, rgba(10, 23, 40, 0.94) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  flex-shrink: 0;
}

body[data-theme="win98_classic"] .ms-taskbar {
  height: 28px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  color: #000000;
}

.ms-taskbar-left,
.ms-systray {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-win7-orb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #57b5ff 0%, #1659a8 70%, #0b2f5e 100%);
  border: 1px solid #8ad0ff;
  color: #ffffff;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
}

.ms-task-pill {
  padding: 3px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 600;
}

/* Modals */
.ms-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

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

.ms-dialog-box {
  width: min(520px, 94vw);
  background: #f2f7fc;
  border: 1px solid #6c92b8;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  color: #142638;
}

body[data-theme="win98_classic"] .ms-dialog-box {
  background: #c0c0c0;
  border-radius: 0;
  border: 2px outset #ffffff;
}

.ms-dialog-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.ms-input {
  width: 100%;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 12px;
  border: 1px solid #7d9bb8;
  border-radius: 3px;
  background: #ffffff;
}

.ms-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ms-stat-card {
  background: #ffffff;
  border: 1px solid #abc0d6;
  border-radius: 4px;
  padding: 8px;
  font-size: 11.5px;
}

.ms-theme-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ms-theme-card {
  padding: 10px;
  border: 2px solid #9ab4ce;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-theme-card.selected {
  border-color: #1f5fb8;
  background: #e6f2ff;
}

@media (max-width: 980px) {
  .ms-workspace {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}
