/* Lexend (SIL Open Font License), vendored locally like KaTeX's fonts - no CDN.
   Used only in the Notes panel: chosen for readability/dyslexia-friendliness,
   per user request, rather than applied to the whole app's UI chrome. */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/lexend/lexend-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/lexend/lexend-600.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/lexend/lexend-700.woff2") format("woff2");
}

/* Atkinson Hyperlegible (SIL OFL) - Braille Institute, vendored the same way. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/atkinson/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/atkinson/atkinson-700.woff2") format("woff2");
}

/* OpenDyslexic (SIL OFL), vendored the same way. */
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/opendyslexic/opendyslexic-400.woff") format("woff");
}
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/opendyslexic/opendyslexic-700.woff") format("woff");
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #1c1c1e;
  color: #eee;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #2b2b2e;
  border-bottom: 1px solid #3a3a3d;
  flex-wrap: wrap;
}

#toolbar button, #toolbar select {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

#toolbar button.active {
  background: #5b7cfa;
  border-color: #5b7cfa;
}

#toolbar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Language switcher — pushed to the far right via margin-left: auto */
#lang-switcher {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 6px;
}

/* Color pickers styled as little apples (playfulness request) instead of plain
   circles - a slightly-flattened body via asymmetric border-radius, plus a stem
   and a leaf via pseudo-elements. Still filled with whatever color is selected,
   exactly as before (JS still just sets .style.background on the element itself). */
.color-swatch,
.calc-row-swatch {
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  position: relative;
}
.color-swatch::before,
.calc-row-swatch::before {
  /* stem */
  content: "";
  position: absolute;
  top: -28%;
  left: 50%;
  width: 14%;
  height: 32%;
  background: #7a4a2b;
  border-radius: 2px;
  transform: translateX(-50%) rotate(-12deg);
}
.color-swatch::after,
.calc-row-swatch::after {
  /* leaf */
  content: "";
  position: absolute;
  top: -18%;
  left: 58%;
  width: 42%;
  height: 28%;
  background: #4caf50;
  border-radius: 0 100% 0 100%;
  transform: rotate(20deg);
}

.color-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid transparent;
  cursor: pointer;
}
.color-swatch.active {
  border-color: #fff;
}

#page-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
}

.page-context-menu {
  position: fixed;
  z-index: 1000;
  background: #2b2b2e;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #eee;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}
.page-context-menu button:hover:not(:disabled) {
  background: #6b2b2b;
  color: #ffb3b3;
}
.page-context-menu button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#main-area {
  flex: 1;
  display: flex;
  min-height: 0;
}

#canvas-pane {
  position: relative;
  flex: 0 0 70%;
  min-width: 200px;
  border-right: 4px solid #444;
}

#board-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

#shape-tools-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

#shape-tools-overlay button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 43, 46, 0.85);
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  cursor: pointer;
}

#shape-tools-overlay button.active {
  background: #5b7cfa;
  border-color: #5b7cfa;
}

.text-label-input {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 90px;
  padding: 2px 4px;
  font: bold 16px system-ui, sans-serif;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #5b7cfa;
  border-radius: 3px;
  outline: none;
  z-index: 20;
}

.resizer {
  flex: 0 0 6px;
  background: #444;
  cursor: col-resize;
}
.resizer:hover {
  background: #5b7cfa;
}
.resizer.resizer-horizontal {
  cursor: row-resize;
}

#right-column {
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#calc-pane {
  flex: 1 1 50%;
  min-height: 100px;
  background: #232326;
  overflow-y: auto;
  padding: 8px;
}

#notes-pane {
  flex: 1 1 50%;
  min-height: 100px;
  background: #202023;
  padding: 8px;
  display: flex;
  flex-direction: column;
  --notes-font-size: 14px;
  font-family: var(--notes-font-family, "Lexend"), system-ui, -apple-system, "Segoe UI", sans-serif;
}

.notes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.notes-header-row .panel-title {
  margin-bottom: 0;
}

#notes-font-settings {
  display: flex;
  gap: 4px;
}
.notes-icon-btn {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  width: 28px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.notes-icon-btn:hover {
  background: #4a4a4d;
}
.notes-font-popup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 220px;
}
.notes-font-popup button {
  text-align: left;
  white-space: nowrap;
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.notes-font-popup button:hover {
  background: #4a4a4d;
}
.notes-font-popup button.highlighted {
  background: #5b7cfa;
  border-color: #5b7cfa;
}

#notes-library-filter {
  margin-bottom: 8px;
}
.library-filter-select {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: var(--notes-font-size);
  width: 100%;
}

#notes-mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
#notes-mode-tabs button {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: var(--notes-font-size);
}
#notes-mode-tabs button.active {
  background: #5b7cfa;
  border-color: #5b7cfa;
}

#notes-introduction-view,
#notes-properties-view,
#notes-exercises-view,
#notes-resources-view {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.notes-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.notes-tabs button {
  background: #2b2b2e;
  color: #ccc;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: calc(var(--notes-font-size) - 1px);
}
.notes-tabs button.active {
  background: #5b7cfa;
  border-color: #5b7cfa;
  color: #fff;
}

.property-card,
.resource-card {
  background: #17171a;
  border: 1px solid #3a3a3d;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: var(--notes-font-size);
  line-height: 1.5;
}
.property-card a,
.resource-card a,
.exercise-card a {
  color: #9db2ff;
}

.property-card h3,
.resource-card h3 {
  margin: 0 0 6px;
  font-size: var(--notes-font-size);
  color: #9db2ff;
}
.property-card ul,
.resource-card ul {
  margin: 6px 0;
  padding-left: 20px;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0;
}
.table-wrap table {
  border-collapse: collapse;
  width: max-content;
  max-width: 100%;
}
.table-wrap th,
.table-wrap td {
  border: 1px solid #3a3a3d;
  padding: 4px 10px;
  white-space: nowrap;
  text-align: left;
  font-size: var(--notes-font-size);
}
.table-wrap th {
  background: #232326;
  color: #9db2ff;
}

.exercise-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.exercise-controls button {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: calc(var(--notes-font-size) - 1px);
}
.exercise-timer {
  margin-left: auto;
  font-size: var(--notes-font-size);
  color: #9db2ff;
}
.exercise-filters select {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: calc(var(--notes-font-size) - 1px);
}
.exercise-empty {
  color: #888;
  font-size: var(--notes-font-size);
}

.exercise-card {
  background: #17171a;
  border: 1px solid #3a3a3d;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: var(--notes-font-size);
  line-height: 1.5;
}
.exercise-card-header {
  font-size: calc(var(--notes-font-size) - 2px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 6px;
}
.exercise-card h4 {
  margin: 0 0 6px;
  font-size: var(--notes-font-size);
  color: #eee;
}
.exercise-instruction {
  font-style: italic;
  color: #b8c4e0;
  background: #1e2333;
  border-left: 3px solid #5b7cfa;
  border-radius: 0 4px 4px 0;
  padding: 6px 10px;
  margin: 0 0 8px;
  font-size: var(--notes-font-size);
}
.boss-prompt {
  background: #232326;
  border-left: 3px solid #5b7cfa;
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  margin: 8px 0;
}

/* Formulas in an exercise card that can be clicked to load into the Calculator. */
.notes-clickable-formula {
  cursor: pointer;
  border-radius: 3px;
  padding: 0 2px;
  transition: background 0.1s;
}
.notes-clickable-formula:hover {
  background: rgba(91, 124, 250, 0.25);
}
.boss-prompt p {
  margin: 4px 0;
}
.exercise-solution-toggle {
  background: none;
  border: 1px solid #4a4a4d;
  color: #9db2ff;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: calc(var(--notes-font-size) - 1px);
  cursor: pointer;
  margin-top: 6px;
}
.exercise-solution-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #3a3a3d;
}

.resources-print-btn {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: calc(var(--notes-font-size) - 1px);
  margin-bottom: 10px;
}
.resource-solution {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #3a3a3d;
}
.resource-load-btn {
  background: #5b7cfa;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: calc(var(--notes-font-size) - 1px);
  cursor: pointer;
  margin-top: 6px;
}

@media print {
  #toolbar, #main-area, #resizer-1, #resizer-2, #calc-pane,
  #notes-library-filter, #notes-font-settings, #notes-mode-tabs,
  #notes-introduction-view, #notes-properties-view, #notes-exercises-view,
  .no-print {
    display: none !important;
  }
  #notes-resources-view {
    display: block !important;
  }
  body, #app, #right-column, #notes-pane {
    display: block;
    height: auto;
    background: #fff;
    color: #000;
  }
  .property-card, .resource-card {
    background: #fff;
    color: #000;
    border-color: #ccc;
    break-inside: avoid;
  }
}

.panel-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 8px;
}
/* Scoped override (higher specificity) so the size toggle only affects the Notes
   panel's title, not the Calculator's shared .panel-title class. */
#notes-pane .panel-title {
  font-size: calc(var(--notes-font-size) - 1px);
}

.calc-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-pane-header .panel-title {
  margin-bottom: 8px;
}
#calc-help-btn {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

.help-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-modal {
  background: #232326;
  border: 1px solid #4a4a4d;
  border-radius: 8px;
  padding: 20px;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.property-video-btn {
  background: #5b7cfa;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: calc(var(--notes-font-size) - 1px);
  cursor: pointer;
  margin-top: 6px;
}
.property-video-modal {
  background: #232326;
  border: 1px solid #4a4a4d;
  border-radius: 8px;
  padding: 28px 24px 20px;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.property-video-modal .help-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}
.property-video-formula {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.property-video-caption {
  color: #ccc;
  font-size: 14px;
  min-height: 40px;
  margin: 0 0 12px;
}
.property-video-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.property-video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4a4d;
  cursor: pointer;
}
.property-video-dot.active {
  background: #5b7cfa;
}
.property-video-controls {
  display: flex;
  gap: 8px;
}
.property-video-controls button {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  width: 36px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
}
.property-video-controls button:hover {
  background: #4a4a4d;
}

.help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.help-modal-header h2 {
  margin: 0;
  font-size: 18px;
}
.help-modal-close {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: bold;
}
.help-modal-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8bb2ff;
  margin: 16px 0 8px;
}
.help-modal-section-title:first-of-type {
  margin-top: 0;
}
.help-modal-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #2e2e31;
}
.help-modal-item-symbol {
  flex-shrink: 0;
  width: 48px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #3a3a3d;
  border-radius: 4px;
  text-align: center;
  padding: 3px 0;
}
.help-modal-item-text strong {
  color: #eee;
}
.help-modal-item-text {
  font-size: 13px;
  color: #bbb;
}
.help-modal-starter {
  font-family: monospace;
  background: #17171a;
  border-radius: 4px;
  padding: 2px 6px;
  color: #8bd18b;
}

.calc-row {
  position: relative;
  border-bottom: 1px solid #2e2e31;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.calc-row-top {
  display: flex;
  gap: 6px;
  align-items: center;
}
.calc-row input[type="text"] {
  flex: 1;
  background: #17171a;
  color: #eee;
  border: 1px solid #3a3a3d;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 13px;
}
.calc-row-swatch {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.calc-row-top button {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
}
.calc-row-top input[type="checkbox"] {
  flex-shrink: 0;
}
.calc-row-symbol-btn {
  flex-shrink: 0;
  font-size: 11px !important;
}

.symbol-popup {
  position: fixed;
  z-index: 30;
  background: #2b2b2e;
  border: 1px solid #4a4a4d;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  width: 260px;
  max-height: 70vh;
  overflow-y: auto;
}
.symbol-popup-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 6px 0 3px 2px;
}
.symbol-popup-category:first-child {
  margin-top: 0;
}
.symbol-popup-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.symbol-popup-group button {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}
.symbol-popup-group button:hover {
  background: #5b7cfa;
  border-color: #5b7cfa;
}
.symbol-popup-group button.highlighted {
  background: #5b7cfa;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.5);
}
.calc-row-result {
  font-size: 11px;
  color: #8bd18b;
  margin: 4px 0 4px 24px;
  white-space: pre-line;
}
.calc-row-error {
  font-size: 11px;
  color: #e07a7a;
  margin: 4px 0 4px 24px;
}
.calc-row-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 2px;
}

#calc-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#calc-actions button {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}
#calc-send-btn {
  background: #5b7cfa;
  border-color: #5b7cfa;
}

/* ── Session panel ────────────────────────────────────────────────────────── */
.session-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.session-btn {
  background: #3a3a3d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}
.session-btn:hover { background: #4a4a4d; }
.session-btn-secondary { opacity: 0.7; }
.session-btn-accept  { background: #2a7a4a; border-color: #2a7a4a; }
.session-btn-accept:hover  { background: #3a9a5a; }
.session-btn-decline { background: #7a2a2a; border-color: #7a2a2a; }
.session-btn-decline:hover { background: #9a3a3a; }
.session-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
  color: #a0d8a0;
  letter-spacing: 0.05em;
  user-select: all;
}
.session-status { font-size: 12px; color: #bbb; white-space: nowrap; }
.session-live   { color: #6dbf6d; }
.session-error  { color: #e07a7a; }
.session-join-form { display: flex; gap: 4px; align-items: center; }
.session-code-input {
  width: 90px;
  background: #2a2a2d;
  color: #eee;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
  font-family: monospace;
  text-transform: uppercase;
}
.session-cap-toggles { display: flex; gap: 3px; align-items: center; }
.session-cap-toggle {
  background: #3a3a3d;
  color: #bbb;
  border: 1px solid #4a4a4d;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.55;
}
.session-cap-toggle.active { opacity: 1; color: #6dbf6d; border-color: #6dbf6d; }

/* -------------------------------------------------------------------------
   Clear board button
   Sits in the toolbar; styled to signal destructive action without being
   garish. The red tint disappears unless hovered so it doesn't distract.
   ------------------------------------------------------------------------- */
#clear-board-btn {
  opacity: 0.55;
  color: #e63946;
  border-color: currentColor;
}
#clear-board-btn:hover {
  opacity: 1;
  background: rgba(230, 57, 70, 0.12);
}

/* -------------------------------------------------------------------------
   Restore banner
   Non-blocking: floats above the canvas and lets the user choose. Appended
   to #canvas-pane (position: relative) by main.js if saved state is found.
   ------------------------------------------------------------------------- */
#restore-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  color: #f1f5f9;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
#restore-banner button {
  padding: 4px 12px;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #334155;
  color: #f1f5f9;
  cursor: pointer;
  font-size: 12px;
}
#restore-banner button:hover { background: #475569; }
.session-cap-toggle:hover { background: #4a4a4d; }
