/* ══════════════════════════════════════════════════════════════════════════
   Sidecue components — Material Design 3
   Shared by the extension (styles/components.css) and the web dashboard
   (web/css/components.css). Keep both copies identical. Requires tokens.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font: var(--md-sys-typescale-body-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

a { color: var(--md-sys-color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  flex-shrink: 0;
  user-select: none;
}
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20; }

/* ── Type roles ───────────────────────────────────────────────────────── */
.display-small   { font: var(--md-sys-typescale-display-small); letter-spacing: -0.02em; }
.headline-large  { font: var(--md-sys-typescale-headline-large); letter-spacing: -0.02em; }
.headline-medium { font: var(--md-sys-typescale-headline-medium); letter-spacing: -0.015em; }
.headline-small  { font: var(--md-sys-typescale-headline-small); letter-spacing: -0.01em; }
.title-large     { font: var(--md-sys-typescale-title-large); letter-spacing: -0.01em; }
.title-medium    { font: var(--md-sys-typescale-title-medium); }
.title-small     { font: var(--md-sys-typescale-title-small); }
.body-large      { font: var(--md-sys-typescale-body-large); }
.body-medium     { font: var(--md-sys-typescale-body-medium); }
.body-small      { font: var(--md-sys-typescale-body-small); }
.label-large     { font: var(--md-sys-typescale-label-large); }
.label-medium    { font: var(--md-sys-typescale-label-medium); }
.label-small     { font: var(--md-sys-typescale-label-small); letter-spacing: 0.02em; }
.text-variant    { color: var(--md-sys-color-on-surface-variant); }
.text-primary    { color: var(--md-sys-color-primary); }
.text-error      { color: var(--md-sys-color-error); }
.overline {
  font: var(--md-sys-typescale-label-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}

/* ── State layer (hover / focus / press) ──────────────────────────────── */
.state-layer,
.btn, .icon-btn, .chip, .segment, .tab, .nav-item, .list-item-interactive {
  position: relative;
  isolation: isolate;
}
.state-layer::before,
.btn::before, .icon-btn::before, .chip::before, .segment::before, .tab::before,
.nav-item::before, .list-item-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  z-index: -1;
}
.state-layer:hover::before,
.btn:hover::before, .icon-btn:hover::before, .chip:hover::before, .segment:hover::before,
.tab:hover::before, .nav-item:hover::before, .list-item-interactive:hover::before {
  opacity: var(--md-sys-state-hover-opacity);
}
.state-layer:active::before,
.btn:active::before, .icon-btn:active::before, .chip:active::before, .segment:active::before,
.tab:active::before, .nav-item:active::before, .list-item-interactive:active::before {
  opacity: var(--md-sys-state-pressed-opacity);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  background: transparent;
  color: var(--md-sys-color-primary);
  transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.btn .material-symbols-rounded { font-size: 18px; margin-left: -8px; }
.btn:disabled, .btn.is-disabled {
  cursor: default;
  pointer-events: none;
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent) !important;
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent) !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.btn-text:disabled, .btn-text.is-disabled { background: transparent !important; }

.btn-filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn-filled:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn-brand { background: var(--sc-brand); color: var(--sc-on-brand); }
.btn-brand:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn-tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn-tonal:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn-outlined {
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
}
.btn-outlined.btn-neutral { color: var(--md-sys-color-on-surface-variant); border-color: var(--md-sys-color-outline-variant); }
.btn-text { padding: 0 12px; }
.btn-text .material-symbols-rounded { margin-left: -4px; }
.btn-error { background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); }
.btn-error-tonal { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.btn-error-outlined { border: 1px solid var(--md-sys-color-outline-variant); color: var(--md-sys-color-error); }

.btn-sm { height: 32px; padding: 0 16px; font: var(--md-sys-typescale-label-medium); letter-spacing: 0.02em; }
.btn-sm .material-symbols-rounded { font-size: 16px; margin-left: -4px; }
.btn-lg { height: 48px; padding: 0 28px; }
.btn-block { width: 100%; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: md-spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* ── Icon buttons ─────────────────────────────────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none !important;
}
.icon-btn .material-symbols-rounded { font-size: 22px; }
.icon-btn-sm { width: 32px; height: 32px; }
.icon-btn-sm .material-symbols-rounded { font-size: 18px; }
.icon-btn-filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.icon-btn-tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.icon-btn-outlined { border: 1px solid var(--md-sys-color-outline-variant); }
.icon-btn.is-selected { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.icon-btn.is-selected .material-symbols-rounded { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20; }
.icon-btn-danger:hover { color: var(--md-sys-color-error); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
}
html.dark .card, body.theme-dark .card { background: var(--md-sys-color-surface-container-low); }
.card-filled {
  background: var(--md-sys-color-surface-container-highest);
  border: none;
  border-radius: var(--md-sys-shape-corner-medium);
}
.card-elevated {
  background: var(--md-sys-color-surface-container-low);
  border: none;
  border-radius: var(--md-sys-shape-corner-medium);
  box-shadow: var(--md-sys-elevation-level1);
}
.card-pad { padding: var(--sc-space-6); }

/* ── Chips & tags ─────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-small);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large);
  cursor: pointer;
  white-space: nowrap;
}
.chip .material-symbols-rounded { font-size: 18px; margin-left: -8px; color: var(--md-sys-color-primary); }
.chip.is-selected {
  background: var(--md-sys-color-secondary-container);
  border-color: transparent;
  color: var(--md-sys-color-on-secondary-container);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--md-sys-shape-corner-small);
  font: var(--md-sys-typescale-label-small);
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
}
.tag .material-symbols-rounded { font-size: 14px; }
.tag-primary { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.tag-brand   { background: var(--sc-brand); color: var(--sc-on-brand); }
.tag-success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.tag-warning { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.tag-error   { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.tag-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Switch (MD3) — markup: label.switch > input[type=checkbox] + span.switch-track ── */
.switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-highest);
  border: 2px solid var(--md-sys-color-outline);
  transition: background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              border-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.switch-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--md-sys-color-outline);
  transform: translateY(-50%);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.switch:hover .switch-track::before { background: var(--md-sys-color-on-surface-variant); }
.switch input:checked + .switch-track {
  background: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
}
.switch input:checked + .switch-track::before {
  left: 22px;
  width: 24px;
  height: 24px;
  background: var(--md-sys-color-on-primary);
}
.switch input:focus-visible + .switch-track { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: 0.38; }

/* ── Text fields ──────────────────────────────────────────────────────── */
.text-field,
.select-field {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-body-large);
  outline: none;
  transition: border-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.text-field:hover, .select-field:hover { border-color: var(--md-sys-color-on-surface); }
.text-field:focus, .select-field:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
}
.text-field::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: 0.8; }
textarea.text-field { resize: vertical; line-height: 1.55; }
.select-field {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23747686'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select-field option { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface); }
.field-dense { min-height: 40px; padding: 8px 12px; font: var(--md-sys-typescale-body-medium); }
.select-field.field-dense { padding-right: 40px; background-position: right 8px center; }
.field-label {
  display: block;
  font: var(--md-sys-typescale-label-large);
  color: var(--md-sys-color-on-surface);
  margin-bottom: 6px;
}
.field-supporting {
  font: var(--md-sys-typescale-body-small);
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 6px;
}

/* ── Segmented buttons ────────────────────────────────────────────────── */
.segmented {
  display: flex;
  width: 100%;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-full);
  overflow: hidden;
}
.segment {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: none;
  border-left: 1px solid var(--md-sys-color-outline);
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-label-large);
  cursor: pointer;
  white-space: nowrap;
}
.segment:first-child { border-left: none; }
.segment .material-symbols-rounded { font-size: 18px; display: none; }
.segment.is-selected {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.segment.is-selected .material-symbols-rounded { display: inline-block; }

/* ── Tabs (primary) ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--md-sys-color-surface-variant);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-title-small);
  cursor: pointer;
}
.tab .material-symbols-rounded { font-size: 22px; }
.tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--md-sys-color-primary);
  transform: translateX(-50%);
  transition: width var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate);
}
.tab.active, .tab.is-active { color: var(--md-sys-color-primary); }
.tab.active::after, .tab.is-active::after { width: 40px; }
.tab.active .material-symbols-rounded, .tab.is-active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.tabs-inline .tab { flex: 0 0 auto; flex-direction: row; gap: 8px; height: 48px; padding: 0 16px; }
.tabs-inline .tab.active::after, .tabs-inline .tab.is-active::after { width: calc(100% - 16px); }

/* ── Linear progress ──────────────────────────────────────────────────── */
.progress {
  height: 4px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-secondary-container);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--md-sys-color-primary);
  transition: width var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-standard),
              background-color var(--md-sys-motion-duration-short4) linear;
}
.progress-bar.is-warning { background: var(--md-sys-color-warning); }
.progress-bar.is-error   { background: var(--md-sys-color-error); }

/* ── Circular progress ────────────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--md-sys-color-secondary-container);
  border-top-color: var(--md-sys-color-primary);
  border-radius: 50%;
  animation: md-spin 0.9s linear infinite;
}
@keyframes md-spin { to { transform: rotate(360deg); } }

/* ── Banner / inline notice ───────────────────────────────────────────── */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-body-medium);
}
.banner > .material-symbols-rounded { color: var(--md-sys-color-primary); margin-top: 1px; }
.banner-title { font: var(--md-sys-typescale-title-small); display: block; margin-bottom: 2px; }
.banner-body { flex: 1; min-width: 0; color: var(--md-sys-color-on-surface-variant); }
.banner-body a { color: var(--md-sys-color-primary); text-decoration: underline; }
.banner-warning { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.banner-warning > .material-symbols-rounded { color: var(--md-sys-color-on-warning-container); }
.banner-warning .banner-body { color: var(--md-sys-color-on-warning-container); }
.banner-warning .banner-body a { color: inherit; }
.banner-error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.banner-error > .material-symbols-rounded, .banner-error .banner-body { color: var(--md-sys-color-on-error-container); }
.banner-success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.banner-success > .material-symbols-rounded, .banner-success .banner-body { color: var(--md-sys-color-on-success-container); }
.banner .icon-btn { margin: -8px -8px -8px 0; color: inherit; }

/* ── Snackbar ─────────────────────────────────────────────────────────── */
.snackbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  font: var(--md-sys-typescale-body-medium);
  box-shadow: var(--md-sys-elevation-level3);
}
.snackbar .material-symbols-rounded { color: var(--md-sys-color-inverse-primary); }

/* ── Dialog ───────────────────────────────────────────────────────────── */
.dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent);
}
.dialog-scrim.show { display: flex; animation: md-fade-in var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard); }
.dialog {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-level3);
  animation: md-dialog-in var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate);
}
.dialog-icon { display: block; margin: 0 auto 16px; color: var(--md-sys-color-secondary); font-size: 24px; text-align: center; }
.dialog-title { font: var(--md-sys-typescale-headline-small); margin-bottom: 16px; }
.dialog-body { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
@keyframes md-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes md-dialog-in { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ── Lists ────────────────────────────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 8px 16px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none !important;
}
.list-item-interactive { cursor: pointer; }
.list-item + .list-item { border-top: 1px solid var(--md-sys-color-outline-variant); }
.list-item-leading {
  width: 40px;
  height: 40px;
  border-radius: var(--md-sys-shape-corner-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  flex-shrink: 0;
}
.list-item-content { flex: 1; min-width: 0; }
.list-item-headline {
  font: var(--md-sys-typescale-body-large);
  color: var(--md-sys-color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item-supporting {
  font: var(--md-sys-typescale-body-medium);
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item-trailing {
  font: var(--md-sys-typescale-label-small);
  color: var(--md-sys-color-on-surface-variant);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Navigation drawer items ──────────────────────────────────────────── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px 0 16px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large);
  text-decoration: none !important;
}
.nav-item .material-symbols-rounded { font-size: 24px; }
.nav-item.active, .nav-item.is-active {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 600;
}
.nav-item.active .material-symbols-rounded, .nav-item.is-active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Divider ──────────────────────────────────────────────────────────── */
.divider { height: 1px; border: none; background: var(--md-sys-color-outline-variant); }

/* ── Empty state ──────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 24px;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--md-sys-shape-corner-large);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  margin-bottom: 8px;
}
.empty-state-icon .material-symbols-rounded { font-size: 28px; }
.empty-state-title { font: var(--md-sys-typescale-title-medium); color: var(--md-sys-color-on-surface); }
.empty-state-description {
  font: var(--md-sys-typescale-body-medium);
  color: var(--md-sys-color-on-surface-variant);
  max-width: 320px;
}
.empty-state .btn { margin-top: 12px; }

/* ── kbd ──────────────────────────────────────────────────────────────── */
kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--md-sys-shape-corner-extra-small);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-high);
  font: var(--md-sys-typescale-label-small);
  font-family: var(--md-ref-typeface-mono);
  color: var(--md-sys-color-on-surface);
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
