/* Machview: charcoal, warm stone, and projection-white controls. Artwork carries the color. */
:root {
  color-scheme: dark;
  --font-sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-geist: "Geist", "Segoe UI", system-ui, sans-serif;
  --mv-background: #101010;
  --mv-surface: #181817;
  --mv-raised: #242423;
  --mv-border: #ffffff12;
  --mv-text: #f0efeb;
  --mv-secondary: #b5b3ad;
  --mv-muted: #92918b;
  --mv-accent: #e5e1d8;
  --color-brand-background: #101010;
  /* The recovered utilities use these names across catalog, account, and player controls. */
  --color-gray-200: #e5e1d8;
  --color-gray-300: #d1cec6;
  --color-gray-400: #b5b3ad;
  --color-gray-500: #92918b;
  --color-gray-600: #77766f;
  --color-gray-700: #4c4b46;
  --color-gray-800: #30302d;
  --color-gray-900: #1c1c1b;
  --color-gray-950: #141413;
  --color-zinc-500: #92918b;
  --color-blue-400: #d8d5cd;
  --color-blue-500: #c9c5bb;
  --color-blue-600: #dedbd2;
  --color-purple-600: #aaa69c;
  --color-red-400: #ebe8df;
  --color-red-500: #e5e1d8;
  --color-red-600: #d2cec4;
  --color-red-700: #bdb9ae;
  --color-red-800: #868177;
  --color-red-900: #4c4943;
  --color-red-950: #292824;
  --background: #101010;
  --foreground: #f0efeb;
  --card: #181817;
  --card-foreground: #f0efeb;
  --popover: #20201e;
  --popover-foreground: #f0efeb;
  --primary: #e5e1d8;
  --primary-foreground: #171716;
  --secondary: #242423;
  --secondary-foreground: #f0efeb;
  --muted: #242423;
  --muted-foreground: #b5b3ad;
  --accent: #242423;
  --accent-foreground: #f0efeb;
  --border: #ffffff12;
  --input: #ffffff17;
  --ring: #e5e1d8;
  --radius: 0.75rem;
}
html, body, #root { min-height: 100%; background: var(--mv-background); }
body { color: var(--mv-text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
::selection { background: #e5e1d833; color: #f0efeb; }
:focus-visible { outline: 2px solid var(--mv-accent); outline-offset: 4px; }
header { background: #101010f5 !important; border-bottom: 1px solid var(--mv-border); }
header > div { min-height: 72px; max-width: 1600px; margin-inline: auto; }
header img[alt="Machview"] { height: 32px; width: 180px; object-position: left center; }
header nav a { color: var(--mv-secondary); font-size: 14px; font-weight: 500; }
header nav a:hover, header nav a.font-semibold { color: var(--mv-text); }
header nav a.font-semibold::after { content: ""; width: 4px; height: 4px; background: var(--mv-accent); border-radius: 50%; }
h1, h2, h3 { font-weight: 500 !important; color: var(--mv-text); -webkit-text-fill-color: currentColor; }
h1 { letter-spacing: -0.03em; background-image: none !important; }
h2 { letter-spacing: -0.015em; }
p { line-height: 1.65; }
main { max-width: 1600px; margin-inline: auto; }
button, select, input, textarea { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease; }
input, textarea, select { border-color: #ffffff17 !important; background-color: var(--mv-surface) !important; border-radius: 8px !important; }
input::placeholder, textarea::placeholder { color: var(--mv-muted); }
input:focus, textarea:focus, select:focus { border-color: #e5e1d880 !important; }
button:not(.rounded-full):not([role="switch"]), a.rounded-sm { border-radius: 8px; }
.bg-brand-background { background-color: var(--mv-background); }
.bg-red-600, .hover\:bg-red-700:hover, .bg-blue-500, .bg-blue-600, .hover\:bg-blue-500:hover, .hover\:bg-blue-600:hover, .hover\:\!bg-blue-600:hover { background-color: var(--mv-accent) !important; color: var(--primary-foreground) !important; }
.bg-red-600 :is(span, svg), .hover\:bg-red-700:hover :is(span, svg), .bg-blue-500 :is(span, svg), .bg-blue-600 :is(span, svg) { color: inherit !important; }
[class*="bg-red-600/"] { color: var(--mv-accent); }
button[class*="bg-red-600/90"] { color: var(--primary-foreground); background-color: var(--mv-accent) !important; box-shadow: none !important; }
[class*="shadow-red-"], [class*="shadow-rose-"], [class*="shadow-blue-"], [class*="shadow-purple-"] { --tw-shadow-color: transparent !important; box-shadow: none !important; }
[class*="bg-gradient-to-r"][class*="from-red-"] { background: var(--mv-surface) !important; border-color: var(--mv-border) !important; }
[class*="bg-clip-text"] { background-image: none !important; color: var(--mv-text) !important; -webkit-text-fill-color: currentColor; }
[class*="hover:scale"]:hover { scale: 1; }
footer { border-top: 1px solid var(--mv-border); background: var(--mv-background); color: var(--mv-muted); }
footer a:hover { color: var(--mv-accent); }
.mv-menu-trigger { display:grid;place-items:center;width:36px;height:36px;color:var(--mv-text);background:var(--mv-raised);border:1px solid var(--mv-border); }
.mv-local-menu { position:absolute;right:0;top:48px;width:244px;padding:8px;border:1px solid var(--mv-border);border-radius:12px;background:var(--mv-surface); }
.mv-local-menu > a { display:block;padding:10px 12px;border-radius:6px;font-size:14px;color:var(--mv-text); }
.mv-local-menu > a:hover { background:var(--mv-raised); }
.mv-local-menu-note { margin:0 0 8px;padding:8px 12px 12px;border-bottom:1px solid var(--mv-border);font-size:13px;color:var(--mv-text); }
.mv-local-menu-note span { display:block;margin-top:4px;color:var(--mv-secondary);font-size:12px; }
.mv-menu-exports { margin-top:8px;padding-top:8px;border-top:1px solid var(--mv-border); }
.mv-library-main { max-width:1440px;margin:0 auto;padding:48px 56px 80px; }
.mv-library-heading { display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px; }
.mv-library-heading p { margin-top:8px;color:var(--mv-secondary);font-size:13px; }
.mv-library-main h1 { font-size:clamp(28px,3.3vw,44px);line-height:1.15; }
.mv-library-empty { display:flex;flex-direction:column;align-items:center;gap:20px;padding:80px 0;text-align:center;color:var(--mv-secondary); }
.mv-library-empty h2 { font-size:24px; }
.mv-collection-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-top:32px; }
.mv-privacy { max-width:860px; }.mv-privacy h2 { margin:32px 0 12px;font-size:20px; }.mv-privacy p { margin-top:20px;color:var(--mv-secondary); }
@media(max-width:700px) { .mv-library-main { padding:32px 16px 80px; }.mv-library-heading { align-items:flex-start;gap:16px; }.mv-collection-grid { grid-template-columns:1fr; } }
.mv-player-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-basis: 100%; padding: 12px 0; color: var(--mv-secondary); font-size: 13px; }
.mv-player-status p { margin: 0; }
.mv-player-status button { flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--mv-border); background: var(--mv-raised); color: var(--mv-text); font-size: 12px; }
.mv-player-status button:hover { border-color: #ffffff40; }
@media (max-width: 600px) { .mv-player-status { align-items: flex-start; } .mv-player-status p { max-width: 28ch; } }
@media (max-width: 767px) {
  header > div { min-height: 64px; gap: 16px; }
  header img[alt="Machview"] { width: 148px; height: 28px; }
  h1 { letter-spacing: -0.025em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.mv-player-source-controls{width:100%;min-width:0}
.mv-player-primary,.mv-player-backup-buttons{display:flex;flex-wrap:wrap;gap:8px}
.mv-server-button{padding:6px 14px;border:1px solid #ffffff18;border-radius:4px;background:#ffffff09;color:#b8b7b1;font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;transition:background .15s,color .15s,border-color .15s}
.mv-server-button:hover{background:#ffffff12;color:#f0efeb}
.mv-server-button[aria-pressed=true]{background:#e5e1d8;border-color:#e5e1d8;color:#101010}
.mv-server-button:focus-visible,.mv-player-backups summary:focus-visible{outline:2px solid #e5e1d8;outline-offset:3px}
.mv-player-backups{margin-top:16px;padding-top:14px;border-top:1px solid #ffffff12}
.mv-player-backups summary{width:fit-content;color:#b8b7b1;cursor:pointer;font-size:12px;line-height:1.6}
.mv-player-backups[open] summary{margin-bottom:12px}
