/* ==========================================================================
   TheDisk Cloud — Unslopped Graphite Design System
   Direction: calm, exact, tactile (archival media cloud & distributed nodes)
   Tokens & discipline following unslop by Damir Sokolovsky (@heydamir, CC BY 4.0)
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-sidebar: #f4f4f5;
  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --bg-raised: #f4f4f5;
  --bg-hover: #efefef;
  --bg-selected: #e8eefc;

  --border-hairline: rgba(23, 23, 23, 0.08);
  --border-strong: rgba(23, 23, 23, 0.14);

  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #737373;

  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-text: #ffffff;
  --accent-ring: rgba(29, 78, 216, 0.35);

  --sem-positive: #16a34a;
  --sem-negative: #dc2626;
  --sem-warning: #b45309;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.08);
  --btn-highlight: none;
}

[data-theme="dark"] {
  --bg-sidebar: #0f0f10;
  --bg-page: #141415;
  --bg-card: #19191b;
  --bg-raised: #232325;
  --bg-hover: #27272a;
  --bg-selected: rgba(96, 165, 250, 0.14);

  --border-hairline: rgba(237, 237, 237, 0.08);
  --border-strong: rgba(237, 237, 237, 0.14);

  --text-primary: #ededed;
  --text-secondary: #a1a1a6;
  --text-muted: #85858b;

  --accent: #ededed;
  --accent-hover: #ffffff;
  --accent-text: #141415;
  --accent-ring: rgba(96, 165, 250, 0.45);

  --sem-positive: #4cc38a;
  --sem-negative: #e5484d;
  --sem-warning: #eab308;

  --shadow-sm: none;
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.42);
  --btn-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:root {
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-med: 200ms;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: inherit;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 1px;
}

.is-hidden { display: none !important; }

.mono-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Auth Screen (Calm Single Card, Zero Slop)
   ========================================================================== */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg-page);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border-radius: var(--r-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-title {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.auth-desc {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.text-input, .text-area {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-page);
  color: var(--text-primary);
  padding: 0 12px;
  height: 36px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.text-area {
  height: 96px;
  padding: 8px 12px;
  resize: vertical;
}

.text-input:focus, .text-area:focus {
  background-color: var(--bg-card);
  border-color: var(--accent);
  outline: none;
}

.auth-error {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--sem-negative);
  font-size: 13px;
}

.auth-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  text-align: center;
}

/* ==========================================================================
   App Shell (256px Sidebar + Fluid Main)
   ========================================================================== */

.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 256px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background-color: var(--text-primary);
  color: var(--bg-page);
}

.brand-name {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}

.cluster-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.cluster-pill:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.is-online { background-color: var(--sem-positive); }
.status-dot.is-idle { background-color: var(--text-muted); }
.status-dot.is-warn { background-color: var(--sem-warning); }
.status-dot.is-error { background-color: var(--sem-negative); }

.sidebar-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-split {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.btn:active { transform: scale(0.98); }
.btn-full { width: 100%; justify-content: flex-start; }
.btn-center { justify-content: center; }
.btn-icon-only { width: 36px; padding: 0; flex-shrink: 0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--btn-highlight);
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background-color: var(--bg-hover); border-color: var(--border-strong); }

.btn-danger {
  background-color: transparent;
  color: var(--sem-negative);
  border-color: var(--border-hairline);
}
.btn-danger:hover { background-color: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.25); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background-color: var(--bg-hover); color: var(--text-primary); }

.keycap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
}

.keycap-on-primary {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--accent-text);
}

[data-theme="dark"] .keycap-on-primary {
  background-color: rgba(20, 20, 21, 0.14);
  border-color: rgba(20, 20, 21, 0.22);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 8px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.nav-section-label:first-child { margin-top: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background-color: transparent;
  color: var(--text-secondary);
  text-align: left;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.nav-item:hover { background-color: var(--bg-hover); color: var(--text-primary); }
.nav-item.is-active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-sm), var(--btn-highlight);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nav-item.is-active .nav-icon { color: var(--text-primary); }
.nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { margin-left: auto; }

.storage-card {
  padding: 12px;
  border-radius: var(--r-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.storage-title { font-size: 13px; font-weight: 500; }

.storage-bar {
  height: 6px;
  border-radius: 3px;
  background-color: var(--bg-raised);
  overflow: hidden;
}

.storage-bar-fill {
  height: 100%;
  width: 100%;
  background-color: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--t-med) var(--ease);
}

/* ==========================================================================
   Main Column & Topbar (60px)
   ========================================================================== */

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

.topbar {
  height: 60px;
  flex-shrink: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-field {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  height: 36px;
  padding: 0 8px 0 12px;
  border-radius: var(--r-sm);
  background-color: var(--bg-raised);
  border: 1px solid var(--border-hairline);
  gap: 8px;
}

.search-field:focus-within {
  background-color: var(--bg-card);
  border-color: var(--border-strong);
}

.search-icon { display: inline-flex; color: var(--text-muted); }
.search-input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; }
.search-input::placeholder { color: var(--text-muted); }

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--r-sm);
  background-color: var(--bg-raised);
  border: 1px solid var(--border-hairline);
  gap: 2px;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
}

.seg-btn.is-active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Content Pane, Media Grid, Video 16:9 Cards, Nodes & Jobs Tables
   ========================================================================== */

.workspace-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.content-pane {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.header-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
}

.upload-strip-text {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background-color: var(--bg-raised);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 100%;
  background-color: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--t-fast) var(--ease);
}

.drop-overlay {
  position: absolute;
  inset: 16px;
  z-index: 20;
  background-color: var(--bg-page);
  opacity: 0.96;
  border: 1.5px dashed var(--accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.drop-title { margin: 0; font-size: 15px; font-weight: 500; }

.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.folder-card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 12px;
  border-radius: var(--r-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.folder-card:hover { background-color: var(--bg-hover); border-color: var(--border-strong); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.media-card {
  padding: 8px;
  border-radius: var(--r-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.media-card:hover { border-color: var(--border-strong); }
.media-card.is-selected {
  background-color: var(--bg-selected);
  border-color: var(--accent-ring);
}

.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xs);
  background-color: var(--bg-raised);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background-color: rgba(20, 20, 21, 0.78);
  color: #ededed;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
}

.media-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 2px;
}

.media-card-info { min-width: 0; flex: 1; }
.media-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tables */
.data-table-wrap {
  border-radius: var(--r-md);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  height: 36px;
  padding: 0 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
}

.data-table td {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr {
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.data-table tbody tr:hover { background-color: var(--bg-hover); }
.data-table tbody tr.is-selected {
  background-color: var(--bg-selected);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Node Cards & Plans Grid */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.node-card {
  padding: 20px;
  border-radius: var(--r-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.node-title { font-size: 15px; font-weight: 500; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-box {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background-color: var(--bg-page);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  padding: 20px;
  border-radius: var(--r-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card.is-current { border-color: var(--accent); }
.plan-figure { font-size: 24px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Inspector */
.inspector {
  width: 340px;
  flex-shrink: 0;
  border-left: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.inspector-header {
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-list {
  display: grid;
  grid-template-columns: 112px 1fr;
  row-gap: 8px;
  column-gap: 8px;
  font-size: 13px;
}

.meta-key { color: var(--text-muted); }
.meta-val { color: var(--text-primary); word-break: break-word; }

.code-block {
  margin: 0;
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.empty-state {
  padding: 64px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.empty-title { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.empty-desc { margin: 0; font-size: 13px; color: var(--text-secondary); }

/* Modals & Toasts */
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(15, 15, 16, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dialog-enter var(--t-med) var(--ease);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { margin: 0; font-size: 15px; font-weight: 500; }

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background-color: var(--text-primary);
  color: var(--bg-page);
  font-size: 13px;
  box-shadow: var(--shadow-float);
  animation: dialog-enter var(--t-fast) var(--ease);
}

.toast.is-error { background-color: var(--sem-negative); color: #ffffff; }

@media (max-width: 800px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-hairline); }
  .storage-card { display: none; }
}
