/*
  COMPUTER MODULE
  ===============
  Two layers, both driven every frame by ComputerSystem rather than by CSS
  transitions, so they stay perfectly in step with the camera's sit-down
  easing:

    #computer-vignette   a soft, full-viewport blur/dim behind the panel —
                          the room stays visible and rendered, this just
                          pulls focus toward the monitor.
    #computer-root        holds .workstation-panel, whose left/top/width/
                          height/opacity are set in JS every frame to match
                          the monitor screen's projected position — see
                          ScreenProjector.js. It is never full-screen.

  Generic list/form styling (.wide-list, .empty-state, .field-row,
  .panel-row, .track-list) is defined once in overlays.css and reused here
  on purpose — the computer's apps should feel like they're made of the same
  material language as the rest of the workshop's interfaces.
*/

#computer-vignette {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(5, 7, 10, 0.35), rgba(5, 7, 10, 0.75));
  /* Reduced from an earlier 5px — enough to still nudge focus toward the
     monitor without making the room behind it feel indistinct for
     however long a person is sitting at the desk. */
  backdrop-filter: blur(2px) brightness(0.75);
  -webkit-backdrop-filter: blur(2px) brightness(0.75);
}

.workstation-panel {
  position: fixed;
  z-index: 58;
  display: flex;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-radius: 10px;
  background: var(--screen-bg);
  box-shadow: 0 0 40px rgba(127, 216, 196, 0.18), inset 0 0 60px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body);
  color: var(--paper);
}
.workstation-panel.interactive {
  pointer-events: auto;
}
.workstation-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

.workstation-rail {
  display: flex;
  flex-direction: column;
  width: 60px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(127, 216, 196, 0.15);
  padding: var(--space-2) 0;
  gap: 2px;
  overflow-y: auto;
  min-height: 0; /* lets this actually scroll within the flex row above, rather than just growing past .workstation-panel's own bounds */
  scrollbar-width: none; /* Firefox — scrolling still works via wheel/touch/drag, only the visible track disappears */
  -ms-overflow-style: none; /* legacy Edge/IE */
}
.workstation-rail::-webkit-scrollbar {
  display: none; /* Chrome/Safari/modern Edge */
}
.workstation-rail button {
  background: transparent;
  border: none;
  color: var(--paper-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.workstation-rail button .rail-glyph {
  font-size: 17px;
  line-height: 1;
}
.workstation-rail button:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}
.workstation-rail button.active {
  color: var(--screen-glow);
  border-left-color: var(--screen-glow);
  background: rgba(127, 216, 196, 0.08);
}

.workstation-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workstation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 18px 8px;
  border-bottom: 1px solid rgba(127, 216, 196, 0.12);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dark);
  flex-shrink: 0;
}
.workstation-header .clock {
  color: var(--screen-glow);
  opacity: 0.85;
}
.workstation-header .stand-up-hint {
  opacity: 0.55;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 4px 8px;
  margin: -4px -8px;
  cursor: pointer;
}
.workstation-header .stand-up-hint:hover,
.workstation-header .stand-up-hint:active {
  opacity: 1;
}

.workstation-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  scrollbar-width: none; /* Firefox — scrolling still works via wheel/touchpad/touch, only the visible track disappears */
  -ms-overflow-style: none; /* legacy Edge/IE */
}
.workstation-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari/modern Edge */
}
.workstation-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--screen-glow);
  margin: 0 0 4px;
}
.workstation-content .app-subtitle {
  color: var(--paper-dark);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

/* ---------- Browser app ---------- */
.browser-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Cancels .workstation-content's own padding — a browser should fill
     the available space edge-to-edge, not sit in a text-article margin
     the way most other apps' content correctly does. */
  margin: -18px -22px;
}

.browser-tab-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 10px 0;
  background: rgba(0, 0, 0, 0.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.browser-tab-bar::-webkit-scrollbar { display: none; }

.browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  min-width: 110px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: var(--paper-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}
.browser-tab.active {
  background: var(--screen-bg);
  color: var(--paper);
  border-color: rgba(127, 216, 196, 0.3);
}
.browser-tab-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-tab-close {
  flex-shrink: 0;
  opacity: 0.6;
  border-radius: 4px;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
}
.browser-tab-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

.browser-new-tab-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper-dark);
  font-size: 1rem;
  cursor: pointer;
}
.browser-new-tab-btn:hover { color: var(--paper); border-color: var(--brass); }

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--screen-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-toolbar-button {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-size: 0.95rem;
  cursor: pointer;
}
.browser-toolbar-button:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-bright); }
.browser-toolbar-button:disabled { opacity: 0.35; cursor: default; }
.browser-toolbar-button-active { color: var(--brass-bright); border-color: var(--brass); }

.browser-address-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper);
}
.browser-address-input:focus { outline: none; border-color: var(--screen-glow); }

.browser-content {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper);
}

.browser-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.browser-frame.active { display: block; }

/* Media app: now-playing strip, reflecting the stereo's real state */
.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.now-playing .glyph {
  font-size: 20px;
}
.now-playing button {
  margin-left: auto;
  background: rgba(127, 216, 196, 0.15);
  border: 1px solid rgba(127, 216, 196, 0.4);
  color: var(--screen-glow);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.now-playing .media-now-playing-title {
  margin-left: 0;
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now-playing .media-now-playing-title:hover {
  text-decoration: underline;
}
.media-open-library {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--screen-glow);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.media-open-library:hover {
  border-color: var(--screen-glow);
}

/* ---------- Journal app (One contribution — see docs/CONTRIBUTIONS.md) ----------
   A list/detail split, reusing .wide-list (overlays.css) for the entry rail
   rather than inventing a second list styling — the same "made of the same
   material language" instinct this file's own top comment already names. */
.journal-app {
  display: flex;
  gap: 18px;
  min-height: 55vh;
}
.journal-rail {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.journal-new-entry {
  background: rgba(127, 216, 196, 0.15);
  border: 1px solid rgba(127, 216, 196, 0.4);
  color: var(--screen-glow);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}
.journal-new-entry:hover { background: rgba(127, 216, 196, 0.25); }

.journal-entry-list {
  overflow-y: auto;
  min-height: 0;
}
.journal-entry-list li {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.journal-entry-list li.active { background: rgba(184, 134, 59, 0.22); }
.journal-entry-select {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  padding: var(--space-3);
  cursor: pointer;
  font-family: inherit;
}
.journal-entry-select .item-title { color: var(--paper); }
.journal-entry-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journal-entry-delete {
  flex-shrink: 0;
  align-self: center;
  margin-right: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper-dark);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.journal-entry-list li:hover .journal-entry-delete,
.journal-entry-list li:focus-within .journal-entry-delete {
  opacity: 1;
}
.journal-entry-delete:hover { border-color: #d9887a; color: #d9887a; }

.journal-editor {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.journal-editor-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--paper-dark);
  margin-bottom: 8px;
}
.journal-entry-textarea {
  flex: 1;
  min-height: 46vh;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
}
.journal-entry-textarea:focus { outline: none; border-color: var(--screen-glow); }

@media (max-width: 700px) {
  .journal-app { flex-direction: column; min-height: 0; }
  .journal-rail { width: 100%; }
  .journal-entry-list { max-height: 30vh; }
}

/* Settings app */
.settings-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}
.settings-tab-bar button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.settings-tab-bar button:hover {
  border-color: var(--screen-glow);
  color: var(--screen-glow);
}
.settings-tab-bar button.active {
  background: rgba(127, 216, 196, 0.15);
  border-color: var(--screen-glow);
  color: var(--screen-glow);
}
.settings-tab-body h3 {
  font-size: 0.85rem;
  color: var(--screen-glow);
  margin: 18px 0 10px 0;
}
.settings-range-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--screen-glow);
  width: 46px;
  text-align: right;
  flex-shrink: 0;
}
.settings-info-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper);
  text-align: right;
  margin-left: auto;
}
.settings-action-button {
  background: rgba(127, 216, 196, 0.15);
  border: 1px solid rgba(127, 216, 196, 0.4);
  color: var(--screen-glow);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  margin-bottom: 6px;
}
.settings-action-button:hover {
  background: rgba(127, 216, 196, 0.25);
}
.settings-performance-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 16px;
}
.settings-feedback-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.settings-feedback-value {
  font-family: var(--font-mono);
  color: var(--screen-glow);
}

.danger-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.danger-zone-info strong {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}
.danger-zone-info p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 46ch;
}
.danger-zone-button {
  flex-shrink: 0;
  background: rgba(184, 92, 74, 0.12);
  border: 1px solid rgba(184, 92, 74, 0.4);
  color: #d9887a;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
}
.danger-zone-button:hover { background: rgba(184, 92, 74, 0.22); }
.danger-zone-button:disabled { opacity: 0.5; cursor: default; }
.danger-zone-button-severe {
  background: rgba(184, 74, 58, 0.22);
  border-color: rgba(184, 74, 58, 0.7);
  color: #ff9c87;
  font-weight: 600;
}
.danger-zone-button-severe:hover { background: rgba(184, 74, 58, 0.32); }

/* ---------- Atmosphere Profiles ---------- */
.atmosphere-profile-grid {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.atmosphere-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.atmosphere-profile-info strong {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}
.atmosphere-profile-info p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 46ch;
}
.atmosphere-profile-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.atmosphere-profile-actions .settings-action-button,
.atmosphere-profile-actions .danger-zone-button {
  margin-bottom: 0;
  white-space: nowrap;
}

/* ---------- AI Mission Control ---------- */
.ai-status-card {
  background: rgba(127, 216, 196, 0.06);
  border-color: rgba(127, 216, 196, 0.25);
}
.ai-status-card h3 { margin-top: 0; }
.ai-status-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 4px 0 0;
}
.ai-status-dot { font-size: 0.7em; margin-right: 4px; }
.ai-status-connected .ai-status-dot { color: #7fd8a0; }
.ai-status-connecting .ai-status-dot { color: var(--brass-bright); }
.ai-status-disconnected .ai-status-dot { color: var(--paper-dark); }

.ai-future-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

/* ---------- Expression Creator (Workshop Personality phase) ---------- */
.ai-expression-canvas {
  display: block;
  width: 256px;
  height: 256px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: crosshair;
  touch-action: none; /* the canvas owns pointer drag itself — the page shouldn't also try to scroll/zoom under a finger mid-stroke */
  margin: 8px 0;
}
.ai-expression-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}
.ai-expression-swatch:hover { border-color: var(--paper); }

.ai-expression-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}
.ai-expression-tabs button {
  flex: 1;
  min-width: 64px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper-dark);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
}
.ai-expression-tabs button:hover { color: var(--paper); border-color: rgba(255, 255, 255, 0.25); }
.ai-expression-tabs button.active {
  background: rgba(127, 216, 196, 0.16);
  border-color: #7fd8c4;
  color: var(--paper);
  font-weight: 600;
}

.ai-textarea-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.ai-textarea-row label { font-size: 0.8rem; color: var(--paper-dark); }
.ai-textarea-row textarea {
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--paper);
  resize: vertical;
}
.ai-textarea-row textarea:focus { outline: none; border-color: var(--screen-glow); }

.ai-trait-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-trait-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.ai-trait-row:hover { background: rgba(255, 255, 255, 0.04); }
.ai-trait-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.ai-trait-row span { font-size: 0.85rem; line-height: 1.4; }
.ai-trait-row input:disabled { opacity: 0.4; }
.ai-trait-row input:disabled ~ span { opacity: 0.5; }

.ai-generated-prompt {
  margin-top: 10px;
  background: var(--wood-dark);
  color: var(--paper);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  max-height: 240px;
  overflow-y: auto;
}

.ai-test-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.ai-test-result p { margin: 4px 0 0; }
.ai-test-success { background: rgba(127, 216, 160, 0.12); border: 1px solid rgba(127, 216, 160, 0.35); color: #bdeccf; }
.ai-test-failure { background: rgba(184, 92, 74, 0.12); border: 1px solid rgba(184, 92, 74, 0.35); color: #f0b3a4; }

/* ---- Resident Health (AI Intelligence phase) ---- */
.ai-health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.ai-health-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}
.ai-health-label { color: var(--paper-dark); }
.ai-health-value { color: var(--paper); font-family: var(--font-mono); text-align: right; }
@media (max-width: 700px) {
  .ai-health-grid { grid-template-columns: 1fr; }
}

/* ---- Behaviour Dials (AI Intelligence phase) ---- */
.ai-dial-row {
  margin-bottom: 12px;
}
.ai-dial-row label {
  display: block;
  font-size: 0.8rem;
  color: var(--paper-dark);
  margin-bottom: 3px;
}
.ai-dial-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-dial-slider-wrap input[type="range"] { flex: 1; }
.ai-dial-endpoint {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--paper-dark);
  white-space: nowrap;
  min-width: 62px;
}
.ai-dial-endpoint:last-child { text-align: right; }

/* ---- Memory categories (AI Intelligence phase) ---- */
.ai-memory-categories {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ai-memory-categories h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--paper);
}

/* ---- Profile list summaries (AI Intelligence phase) ---- */
.ai-profile-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ai-profile-summary {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--paper-dark);
}

/* ---- Resident Sandbox (AI Intelligence phase) ---- */
.ai-sandbox-memory {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 12px;
}
.ai-sandbox-memory h4 { margin: 0 0 6px; font-size: 0.8rem; color: var(--paper); }
.ai-sandbox-memory-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--paper-dark);
}
.ai-sandbox-memory-list li { margin-bottom: 3px; }
.ai-sandbox-messages {
  max-height: 220px;
}

@media (max-width: 700px) {
  .workstation-rail { width: 48px; }
  .workstation-rail button .rail-glyph { font-size: 15px; }
  .workstation-rail button { font-size: 0; padding: 8px 0; }
}
