@import 'tailwindcss';

/* ─── Premium Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Neutrals - Light Theme (Ultra clean slate/zinc) */
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-inset: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --ink-faint: #a1a1aa;
  --ink-muted: #71717a;
  --ink: #3f3f46;
  --ink-strong: #09090b;

  /* Brand - (Overwritten dynamically by ThemeProvider) */
  --brand: #10b981;
  --brand-deep: #059669;
  --brand-ink: #ffffff;
  --brand-soft: rgba(16, 185, 129, 0.1);
  --brand-soft-ink: #047857;

  /* Status */
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --warn: #f59e0b;
  --warn-soft: #fffbeb;
  --ok: #10b981;
  --ok-soft: #ecfdf5;
  --info: #3b82f6;
  --info-soft: #eff6ff;

  /* Data viz */
  --viz-1: var(--brand);
  --viz-2: #f59e0b;
  --viz-3: #3b82f6;
  --viz-4: #ec4899;
  --viz-5: #8b5cf6;
  --viz-6: #14b8a6;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Premium Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 20px var(--brand-soft);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme='dark'] {
  --bg: #09090b;
  --bg-elev: #121214;
  --bg-inset: #18181b;
  --border: #27272a;
  --border-strong: #3f3f46;
  --ink-faint: #52525b;
  --ink-muted: #a1a1aa;
  --ink: #e4e4e7;
  --ink-strong: #ffffff;

  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.1);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.1);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.1);

  --viz-1: var(--brand);
  --viz-2: #fbbf24;
  --viz-3: #60a5fa;
  --viz-4: #f472b6;
  --viz-5: #a78bfa;
  --viz-6: #2dd4bf;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 30px var(--brand-soft);
}

/* ─── Tailwind v4 theme mappings ─────────────────────────────────────────── */
@theme {
  --font-sans: var(--font-sans);
  --font-display: var(--font-display);
  --font-mono: var(--font-mono);

  --color-bg: var(--bg);
  --color-bg-elev: var(--bg-elev);
  --color-bg-inset: var(--bg-inset);
  --color-border: var(--border);
  --color-border-strong: var(--border-strong);
  --color-ink: var(--ink);
  --color-ink-strong: var(--ink-strong);
  --color-ink-muted: var(--ink-muted);
  --color-ink-faint: var(--ink-faint);
  --color-brand: var(--brand);
  --color-brand-deep: var(--brand-deep);
  --color-brand-soft: var(--brand-soft);
  --color-brand-soft-ink: var(--brand-soft-ink);
  --color-danger: var(--danger);
  --color-danger-soft: var(--danger-soft);
  --color-warn: var(--warn);
  --color-warn-soft: var(--warn-soft);
  --color-ok: var(--ok);
  --color-ok-soft: var(--ok-soft);
  --color-info: var(--info);
  --color-info-soft: var(--info-soft);

  --radius-xs: var(--r-xs);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
}

/* ─── Base styles ────────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11', 'salt';
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  outline: none;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid var(--bg);
}

/* ─── Typography utilities ───────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
}
.serif {
  font-family: var(--font-display);
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ─── Page content wrapper ───────────────────────────────────────────────── */
.mt-page {
  padding: 32px 40px 64px;
  max-width: 1400px;
  width: 100%;
}

/* ─── Shared primitives (pills, segments) ───────────────────────────────── */
.mt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-smooth);
}
.mt-pill--brand {
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  border-color: rgba(0, 0, 0, 0.05);
}
[data-theme='dark'] .mt-pill--brand {
  border-color: rgba(255, 255, 255, 0.05);
}
.mt-pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.mt-pill--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.mt-pill--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.mt-pill--info {
  background: var(--info-soft);
  color: var(--info);
}
.mt-pill--ghost {
  background: var(--bg-inset);
  color: var(--ink-muted);
}

.mt-seg {
  display: inline-flex;
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  padding: 4px;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
[data-theme='dark'] .mt-seg {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.mt-seg button {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.25s var(--ease-spring);
}
.mt-seg button:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(0,0,0,0.02);
}
[data-theme='dark'] .mt-seg button:hover:not(.is-active) {
  background: rgba(255,255,255,0.02);
}
.mt-seg button.is-active {
  background: var(--bg-elev);
  color: var(--ink-strong);
  box-shadow: var(--shadow-sm);
}

/* ─── Cabinet — summary strip ───────────────────────────────────────────── */
.cab-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cab-summary__item {
  background: var(--bg-elev);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s var(--ease-smooth);
}
.cab-summary__item:hover {
  background: var(--bg-inset);
}
.cab-summary__label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cab-summary__value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  line-height: 1.1;
}
.cab-summary__item--danger .cab-summary__value {
  color: var(--danger);
  text-shadow: 0 0 16px var(--danger-soft);
}
.cab-summary__item--warn .cab-summary__value {
  color: var(--warn);
  text-shadow: 0 0 16px var(--warn-soft);
}
.cab-summary__item--brand .cab-summary__value {
  color: var(--brand);
  text-shadow: 0 0 16px var(--brand-soft);
}
.cab-summary__hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
  font-weight: 500;
}

/* ─── Cabinet — filter rail ─────────────────────────────────────────────── */
.cab-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.cab-filters__tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elev);
  padding: 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cab-filters__tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-spring);
}
.cab-filters__tab:hover {
  color: var(--ink-strong);
  background: var(--bg-inset);
}
.cab-filters__tab.is-active {
  background: var(--ink-strong);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
[data-theme='dark'] .cab-filters__tab.is-active {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cab-filters__count {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-inset);
  color: var(--ink-muted);
  font-weight: 700;
}
.cab-filters__tab.is-active .cab-filters__count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--bg);
}
[data-theme='dark'] .cab-filters__tab.is-active .cab-filters__count {
  background: rgba(0, 0, 0, 0.3);
}
.cab-filters__tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cab-filters__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--ink-muted);
  transition: all 0.2s var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}
.cab-filters__search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  color: var(--brand);
}
.cab-filters__search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 160px;
  font-size: 14px;
  color: var(--ink-strong);
  font-weight: 500;
}
.cab-filters__search input::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}

/* ─── Cabinet — card grid ───────────────────────────────────────────────── */
.cab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cab-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.cab-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  z-index: -1;
  pointer-events: none;
}
[data-theme='dark'] .cab-card::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
}
.cab-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.cab-card:hover::after {
  opacity: 1;
}
.cab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--viz-1);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}
.cab-card:hover::before {
  opacity: 1;
}
.cab-card--lvl-expiring::before {
  background: var(--warn);
  opacity: 1;
}
.cab-card--lvl-critical::before {
  background: var(--danger);
  opacity: 1;
}

.cab-card--lvl-expiring {
  border-color: color-mix(in oklab, var(--warn) 40%, var(--border));
  background: linear-gradient(to bottom right, var(--bg-elev), var(--warn-soft));
}
.cab-card--lvl-critical {
  border-color: color-mix(in oklab, var(--danger) 40%, var(--border));
  background: linear-gradient(to bottom right, var(--bg-elev), var(--danger-soft));
}

.cab-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cab-card__swatch {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--c, var(--viz-1)) 15%, var(--bg-inset));
  color: var(--c, var(--viz-1));
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
  font-size: 18px;
}
[data-theme='dark'] .cab-card__swatch {
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}
.cab-card__meta {
  flex: 1;
  min-width: 0;
}
.cab-card__name {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cab-card__strength {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  font-weight: 500;
}
.cab-card__flag {
  flex-shrink: 0;
}

.cab-card__qty {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.cab-card__qty-num {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  line-height: 1;
}
.cab-card__qty-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.cab-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cab-card__foot-label {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cab-card__foot-value {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 4px;
}
.cab-card__foot-value--warn {
  color: var(--warn);
}

/* ─── Expiry / days bar ─────────────────────────────────────────────────── */
.daysbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.daysbar__track {
  flex: 1;
  height: 8px;
  background: var(--bg-inset);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
[data-theme='dark'] .daysbar__track {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}
.daysbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ok-soft) 0%, var(--ok) 100%);
  border-radius: 4px;
  transition: width 0.5s var(--ease-spring);
  box-shadow: 0 0 10px var(--ok-soft);
}
.daysbar--low .daysbar__fill {
  background: linear-gradient(90deg, var(--warn-soft) 0%, var(--warn) 100%);
  box-shadow: 0 0 10px var(--warn-soft);
}
.daysbar--critical .daysbar__fill {
  background: linear-gradient(90deg, var(--danger-soft) 0%, var(--danger) 100%);
  box-shadow: 0 0 10px var(--danger-soft);
}
.daysbar__label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 50px;
  justify-content: flex-end;
}
.daysbar__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
}
.daysbar__unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}
.daysbar--low .daysbar__num {
  color: var(--warn);
}
.daysbar--critical .daysbar__num {
  color: var(--danger);
}

/* ─── Cabinet — expanded items panel ───────────────────────────────────── */
.cab-items {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}
.cab-items__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.cab-items__row:last-child {
  border-bottom: 0;
}
.cab-items__row:hover {
  background: var(--bg-inset);
}

/* ─── Cabinet — detail list view ────────────────────────────────────────── */
.cab-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cab-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s var(--ease-smooth);
}
.cab-list__row:last-child {
  border-bottom: 0;
}
.cab-list__row:hover {
  background: var(--bg-inset);
  transform: translateX(2px);
}

/* ─── Form field base ───────────────────────────────────────────────────── */
.mt-field {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-strong);
  font-weight: 500;
  outline: none;
  transition: all 0.2s var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}
.mt-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.mt-field::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}
.mt-field:disabled {
  background: var(--bg-inset);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
}
.mt-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}
.mt-btn:active {
  transform: scale(0.96);
}
.mt-btn--primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 90%, white), var(--brand));
  color: var(--brand-ink);
  border-color: var(--brand-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
[data-theme='dark'] .mt-btn--primary {
  background: linear-gradient(180deg, var(--brand), color-mix(in oklab, var(--brand) 80%, black));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 8px rgba(0,0,0,0.3);
}
.mt-btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.mt-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none;
  box-shadow: none;
}
.mt-btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.mt-btn--ghost:hover {
  background: var(--bg-elev);
  color: var(--ink-strong);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.mt-btn--icon {
  padding: 8px;
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.mt-btn--icon:hover {
  background: var(--bg-elev);
  color: var(--ink-strong);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.mt-btn--danger-icon {
  padding: 8px;
  background: transparent;
  color: var(--ink-faint);
  border-radius: var(--r-sm);
}
.mt-btn--danger-icon:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.mt-btn--danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: var(--shadow-sm);
}
.mt-btn--danger-ghost:hover {
  background: var(--danger-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.mt-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-smooth);
}
.mt-card:hover {
  box-shadow: var(--shadow-md);
}

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.mt-alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mt-alert--danger {
  background: var(--danger-soft);
  border-color: color-mix(in oklab, var(--danger) 30%, transparent);
  color: var(--danger);
  box-shadow: 0 2px 8px var(--danger-soft);
}

/* ─── Links ──────────────────────────────────────────────────────────────── */
.mt-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.mt-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-spring);
}
.mt-link:hover {
  color: var(--brand-deep);
}
.mt-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
