/* phase1266 shell ownership removed from mv-core.css. Shell lives in mv-experience-system.css */
:root {
  color-scheme: dark;
  --mv-bg: #050b14;
  --mv-bg-soft: #08111f;
  --mv-surface: rgba(12, 20, 34, 0.86);
  --mv-surface-2: rgba(17, 29, 48, 0.78);
  --mv-card: rgba(11, 19, 32, 0.74);
  --mv-border: rgba(148, 163, 184, 0.16);
  --mv-border-strong: rgba(99, 179, 237, 0.32);
  --mv-text: #e7eef8;
  --mv-muted: #91a0b6;
  --mv-faint: #64748b;
  --mv-primary: #37a6ff;
  --mv-cyan: #20d3ee;
  --mv-green: #5ee857;
  --mv-violet: #8b5cf6;
  --mv-warning: #f59e0b;
  --mv-danger: #ef4444;
  --mv-radius: 20px;
  --mv-radius-sm: 13px;
  --mv-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mv-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="light-pro"] {
  color-scheme: light;
  --mv-bg: #f4f8fc;
  --mv-bg-soft: #eaf1f8;
  --mv-surface: rgba(255, 255, 255, 0.88);
  --mv-surface-2: rgba(248, 250, 252, 0.92);
  --mv-card: rgba(255, 255, 255, 0.92);
  --mv-border: rgba(15, 23, 42, 0.13);
  --mv-border-strong: rgba(37, 99, 235, 0.28);
  --mv-text: #0f172a;
  --mv-muted: #475569;
  --mv-faint: #64748b;
  --mv-primary: #2563eb;
  --mv-cyan: #0891b2;
  --mv-green: #16a34a;
  --mv-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

html[data-theme="neon-pro"] {
  --mv-bg: #030712;
  --mv-bg-soft: #080f25;
  --mv-primary: #22d3ee;
  --mv-cyan: #67e8f9;
  --mv-green: #a3ff12;
  --mv-violet: #c084fc;
  --mv-border-strong: rgba(34, 211, 238, 0.38);
}

html[data-theme="terminal-green"] {
  --mv-bg: #020806;
  --mv-bg-soft: #06130d;
  --mv-primary: #23c55e;
  --mv-cyan: #2dd4bf;
  --mv-green: #86efac;
  --mv-violet: #34d399;
  --mv-border-strong: rgba(34, 197, 94, 0.36);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(55, 166, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(94, 232, 87, 0.14), transparent 24rem),
    radial-gradient(circle at 70% 92%, rgba(139, 92, 246, 0.14), transparent 34rem),
    linear-gradient(135deg, var(--mv-bg), var(--mv-bg-soft));
  color: var(--mv-text);
  font-family: var(--mv-font);
  font-size: 15px;
  font-weight: 450;
  letter-spacing: -0.01em;
}
a { color: inherit; }
button, input { font: inherit; }
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

.mv-area-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* phase1264 removed old global-shell rule */

.mv-area-link { padding: 9px 10px; font-size: .78rem; font-weight: 620; background: rgba(148, 163, 184, .055); }
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

.mv-content { width: min(1500px, 100%); margin: 0 auto; padding: 26px; flex: 1; }
.mv-layout { display: grid; gap: 18px; }
.mv-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mv-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mv-panel, .mv-module-card { border: 1px solid var(--mv-border); border-radius: var(--mv-radius); background: linear-gradient(180deg, rgba(255,255,255,.045), transparent), var(--mv-card); box-shadow: var(--mv-shadow); padding: 20px; min-width: 0; position: relative; overflow: hidden; }
.mv-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--mv-cyan), var(--mv-green), transparent); opacity: .56; }
.mv-hero { padding: 28px; }
.mv-hero h2 { max-width: 880px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: .98; font-weight: 650; letter-spacing: -0.06em; margin: 8px 0 12px; }
.mv-panel h2, .mv-panel h3 { margin: 4px 0 10px; font-weight: 630; letter-spacing: -0.04em; }
.mv-panel p { color: var(--mv-muted); line-height: 1.6; }
.mv-eyebrow { margin: 0; color: var(--mv-cyan); text-transform: uppercase; font-size: .68rem; letter-spacing: .15em; font-weight: 680; }
.mv-chip, .mv-user-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--mv-border); background: rgba(148, 163, 184, .075); color: var(--mv-muted); font-size: .78rem; font-weight: 580; white-space: nowrap; }
.mv-chip-safe { color: var(--mv-green); border-color: rgba(94, 232, 87, .34); background: rgba(94,232,87,.1); }
.mv-chip-danger { color: var(--mv-danger); border-color: rgba(239,68,68,.34); background: rgba(239,68,68,.1); }
.mv-chip-warn { color: var(--mv-warning); border-color: rgba(245,158,11,.34); background: rgba(245,158,11,.1); }
.mv-role-chip { color: var(--mv-cyan); }
/* phase1264 removed old global-shell rule */

.mv-button-primary { border-color: rgba(55,166,255,.48); background: linear-gradient(135deg, rgba(55,166,255,.95), rgba(20,184,166,.82)); color: white; box-shadow: 0 14px 35px rgba(55,166,255,.22); }
.mv-button-soft { background: rgba(148,163,184,.06); }
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

.mv-kpi { display: grid; gap: 7px; }
.mv-kpi-value { font-size: clamp(1.55rem, 2.3vw, 2.2rem); font-weight: 660; letter-spacing: -0.055em; }
.mv-kpi-label, .mv-kpi-note { color: var(--mv-muted); font-size: .83rem; }
.mv-list { display: grid; gap: 10px; margin-top: 12px; }
.mv-list-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--mv-border); border-radius: 14px; background: rgba(148,163,184,.055); }
.mv-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--mv-muted); font-size: .82rem; overflow-wrap: anywhere; }
.mv-table-wrap { overflow-x: auto; }
.mv-table { width: 100%; border-collapse: collapse; }
.mv-table th, .mv-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--mv-border); color: var(--mv-muted); }
.mv-table th { color: var(--mv-text); font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
/* phase1264 removed old global-shell rule */


/* Auth */
.mv-auth-body { min-height: 100vh; }
.mv-auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .8fr); gap: 28px; padding: 34px; align-items: stretch; position: relative; overflow: hidden; }
.mv-auth-hero, .mv-auth-card { border: 1px solid var(--mv-border); border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), rgba(5, 13, 25, .68); box-shadow: var(--mv-shadow); backdrop-filter: blur(22px); position: relative; overflow: hidden; }
.mv-auth-hero { padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: space-between; min-height: 640px; }
.mv-auth-logo-large { width: min(260px, 45vw); height: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(55,166,255,.22)); margin-bottom: 30px; }
.mv-auth-copy h1 { max-width: 760px; font-size: clamp(2.1rem, 5vw, 5rem); line-height: .9; font-weight: 620; letter-spacing: -0.075em; margin: 10px 0 18px; }
.mv-auth-lede { max-width: 620px; color: var(--mv-muted); font-size: 1.05rem; line-height: 1.65; }
.mv-auth-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin-top: 26px; }
.mv-auth-feature-grid span { border: 1px solid var(--mv-border); background: rgba(148,163,184,.055); border-radius: 16px; padding: 12px 13px; color: var(--mv-text); font-weight: 560; }
.mv-auth-glow { position: absolute; border-radius: 999px; filter: blur(18px); opacity: .54; pointer-events: none; }
.mv-auth-glow-one { width: 260px; height: 260px; right: 8%; top: 8%; background: rgba(55,166,255,.24); }
.mv-auth-glow-two { width: 320px; height: 320px; left: 14%; bottom: 10%; background: rgba(94,232,87,.16); }
.mv-auth-market-card { align-self: flex-start; display: flex; align-items: center; gap: 16px; border: 1px solid var(--mv-border); background: rgba(6,12,23,.52); border-radius: 22px; padding: 16px; min-width: 320px; }
.mv-auth-market-card strong { display: block; font-weight: 650; }
.mv-auth-market-card small { color: var(--mv-muted); }
.mv-mini-chart { display: flex; align-items: end; gap: 6px; width: 96px; height: 58px; }
.mv-mini-chart span { flex: 1; border-radius: 999px 999px 4px 4px; background: linear-gradient(180deg, var(--mv-green), var(--mv-cyan)); }
.mv-auth-card { padding: clamp(24px, 3.5vw, 38px); align-self: center; }
.mv-auth-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.mv-auth-logo { width: 58px; height: 58px; object-fit: contain; }
.mv-auth-card h2 { margin: 3px 0 0; font-size: 1.55rem; font-weight: 650; letter-spacing: -0.045em; }
.mv-auth-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 18px; background: rgba(148,163,184,.08); border: 1px solid var(--mv-border); margin-bottom: 20px; }
.mv-auth-toggle button { border: 0; border-radius: 13px; padding: 11px 12px; background: transparent; color: var(--mv-muted); cursor: pointer; font-weight: 620; }
.mv-auth-toggle button.is-active { background: linear-gradient(135deg, rgba(55,166,255,.95), rgba(20,184,166,.82)); color: #fff; box-shadow: 0 12px 30px rgba(55,166,255,.2); }
.mv-auth-form { display: none; gap: 14px; }
.mv-auth-form.is-active { display: grid; }
.mv-auth-form label { display: grid; gap: 7px; color: var(--mv-text); font-weight: 560; }
.mv-auth-form label small { color: var(--mv-muted); font-weight: 500; }
.mv-auth-form input { width: 100%; border: 1px solid var(--mv-border); border-radius: 15px; padding: 13px 14px; background: rgba(4, 10, 19, .48); color: var(--mv-text); outline: none; }
.mv-auth-form input:focus { border-color: var(--mv-border-strong); box-shadow: 0 0 0 4px rgba(55,166,255,.12); }
.mv-auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mv-auth-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--mv-muted); font-size: .88rem; }
.mv-auth-row a { color: var(--mv-cyan); text-decoration: none; }
.mv-check { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 9px !important; }
.mv-check input { width: auto; }
.mv-auth-submit { width: 100%; justify-content: center; min-height: 48px; margin-top: 4px; }
.mv-auth-message { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-weight: 560; }
.mv-auth-error { border: 1px solid rgba(239,68,68,.34); background: rgba(239,68,68,.1); color: #fecaca; }
.mv-auth-notice { border: 1px solid rgba(94,232,87,.34); background: rgba(94,232,87,.1); color: #bbf7d0; }
.mv-auth-footnote { color: var(--mv-muted); font-size: .86rem; line-height: 1.5; margin: 18px 0 0; }
.mv-auth-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mv-auth-roles span { border: 1px solid var(--mv-border); border-radius: 999px; padding: 6px 9px; color: var(--mv-muted); font-size: .76rem; }
.mv-access-page { grid-template-columns: 1fr; place-items: center; }
.mv-access-card { max-width: 560px; }

@media (max-width: 1100px) {
  .mv-auth-page { grid-template-columns: 1fr; }
  .mv-auth-hero { min-height: auto; }
  .mv-grid-4, .mv-grid-3, .mv-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

  .mv-grid-4, .mv-grid-3, .mv-grid-2, .mv-auth-two, .mv-auth-feature-grid { grid-template-columns: 1fr; }
/* phase1264 removed old global-shell rule */

  .mv-auth-page { padding: 18px; }
}
@media (max-width: 560px) {
  .mv-content { padding: 18px; }
  .mv-area-switcher { grid-template-columns: 1fr; }
  .mv-auth-copy h1 { font-size: 2.25rem; }
}

/* Phase 08 — role dashboards, cleaner type scale, polished panels */
:root {
  --mv-font-size-base: 14px;
  --mv-font-weight-normal: 450;
  --mv-font-weight-medium: 560;
  --mv-font-weight-strong: 650;
  --mv-font-weight-display: 680;
}

body { font-size: var(--mv-font-size-base); font-weight: var(--mv-font-weight-normal); }
/* phase1264 removed old global-shell rule */

.mv-panel h2, .mv-panel h3, .mv-auth-card h1 { font-weight: var(--mv-font-weight-display); letter-spacing: -0.03em; }
.mv-kpi-value { font-weight: var(--mv-font-weight-display); }
/* phase1264 removed old global-shell rule */


.mv-command-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 18px; align-items: stretch; }
.mv-dashboard-stack { display: grid; gap: 18px; }
.mv-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mv-market-board { display: grid; gap: 10px; }
.mv-quote-card { position: relative; overflow: hidden; padding: 14px; border: 1px solid var(--mv-border); border-radius: 18px; background: linear-gradient(145deg, rgba(56,189,248,.08), rgba(139,92,246,.05)), rgba(255,255,255,.035); }
.mv-quote-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--mv-primary), var(--mv-success), var(--mv-accent)); opacity: .78; }
.mv-quote-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mv-quote-symbol { font-size: 1.02rem; font-weight: 680; }
.mv-quote-price { font-size: 1.25rem; font-weight: 680; margin-top: 8px; }
.mv-up { color: var(--mv-success); }
.mv-down { color: var(--mv-danger); }
.mv-flat { color: var(--mv-muted); }
.mv-chart-shell { min-height: 320px; position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(56,189,248,.22); background: radial-gradient(circle at 20% 20%, rgba(34,211,238,.20), transparent 32%), linear-gradient(135deg, rgba(10,18,32,.96), rgba(15,23,42,.9)); }
.mv-chart-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.45)); }
.mv-chart-line { position: absolute; inset: 38px 28px 36px; background: linear-gradient(135deg, transparent 10%, rgba(34,197,94,.08) 10% 40%, transparent 40%), linear-gradient(160deg, transparent 0 42%, rgba(56,189,248,.9) 43%, rgba(34,197,94,.95) 51%, rgba(139,92,246,.85) 58%, transparent 59%); filter: drop-shadow(0 0 24px rgba(56,189,248,.36)); clip-path: polygon(0 72%, 10% 62%, 18% 66%, 28% 44%, 38% 49%, 51% 32%, 62% 36%, 75% 20%, 86% 29%, 100% 12%, 100% 100%, 0 100%); opacity: .95; }
.mv-chart-overlay { position: absolute; inset: auto 22px 22px 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.mv-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mv-table-wrap { overflow-x: auto; border: 1px solid var(--mv-border); border-radius: 18px; }
.mv-table-wrap .mv-table { margin-top: 0; }
.mv-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mv-input, .mv-select { width: 100%; border: 1px solid var(--mv-border); background: rgba(15,23,42,.62); color: var(--mv-text); border-radius: 14px; min-height: 42px; padding: 10px 12px; outline: 0; }
.mv-input:focus, .mv-select:focus { border-color: rgba(56,189,248,.65); box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
.mv-admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mv-theme-card { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mv-theme-card:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.44); box-shadow: 0 18px 54px rgba(0,0,0,.26); }
.mv-theme-swatch-row { display: flex; gap: 6px; margin-top: 12px; }
.mv-theme-swatch { width: 28px; height: 28px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); }
.mv-status-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 18px; border: 1px solid rgba(34,197,94,.28); background: rgba(34,197,94,.08); }
.mv-login-preview { max-width: 1180px; margin: 0 auto; }

@media (max-width: 1120px) { .mv-command-grid, .mv-data-grid { grid-template-columns: 1fr; } .mv-kpi-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .mv-kpi-row, .mv-field-row { grid-template-columns: 1fr; } .mv-chart-shell { min-height: 240px; } }

/* Phase 09: Light Pro contrast/readability policy.
   The light theme must keep sidebar navigation highly readable while preserving the clean trading-platform feel. */
html[data-theme="light-pro"] body {
  background:
    radial-gradient(circle at 14% 8%, rgba(37, 99, 235, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.12), transparent 28rem),
    radial-gradient(circle at 70% 92%, rgba(139, 92, 246, 0.10), transparent 34rem),
    linear-gradient(135deg, #f8fbff, #eef5fd);
  color: #0f172a;
}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */


html[data-theme="light-pro"] .mv-chip-safe {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.10);
}

html[data-theme="light-pro"] .mv-chip-danger {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.30);
  background: rgba(220, 38, 38, 0.10);
}
/* phase1264 removed old global-shell rule */


html[data-theme="light-pro"] .mv-panel,
html[data-theme="light-pro"] .mv-module-card,
html[data-theme="light-pro"] .mv-auth-card,
html[data-theme="light-pro"] .mv-auth-hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(248,250,252,0.92));
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}
/* phase1264 removed old global-shell rule */


html[data-theme="light-pro"] .mv-button-primary {
  color: #ffffff;
}


/* Phase 10 plugin manager refinements */
.mv-plugin-grid { align-items: stretch; }
.mv-plugin-card { display: flex; flex-direction: column; gap: 8px; }
.mv-plugin-card .mv-actions:last-child { margin-top: auto; }
.mv-plugin-permissions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mv-button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.mv-command-note { border: 1px solid var(--mv-border-strong); border-radius: 18px; padding: 14px; background: rgba(55,166,255,.08); }
html[data-theme="light-pro"] .mv-plugin-card { background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,250,252,.95)); }
html[data-theme="light-pro"] .mv-plugin-permissions .mv-chip { color: #1e293b; }

/* Phase 11 plugin package installer */
.mv-upload-zone {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--mv-primary) 50%, var(--mv-border));
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59, 164, 255, .10), rgba(34, 211, 238, .05));
}
.mv-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mv-muted);
  font-size: .9rem;
}
.mv-package-card {
  min-height: 230px;
  border-color: color-mix(in srgb, var(--mv-primary) 34%, var(--mv-border));
}
.mv-package-card::before {
  background: linear-gradient(90deg, var(--mv-primary), var(--mv-accent), var(--mv-success));
}
html[data-theme="light-pro"] .mv-upload-zone {
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .06));
  border-color: rgba(37, 99, 235, .25);
}


/* Phase 13: plugin settings + upload progress */
.mv-slot{display:grid;gap:1rem}.mv-slot-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-top:.25rem}.mv-slot-heading h2{margin:.15rem 0 0;font-size:clamp(1.15rem,2vw,1.55rem);font-weight:680;letter-spacing:-.035em}.mv-plugin-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mv-plugin-card{position:relative;overflow:hidden;min-height:190px;border:1px solid var(--mv-border);border-radius:22px;padding:1rem;background:linear-gradient(160deg,color-mix(in srgb,var(--mv-panel) 92%,transparent),color-mix(in srgb,var(--mv-panel-2) 90%,transparent));box-shadow:var(--mv-shadow-soft)}.mv-plugin-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--mv-primary);opacity:.85}.mv-plugin-card-top{display:flex;align-items:center;gap:.85rem;margin-bottom:.65rem}.mv-plugin-card h3{margin:.1rem 0 0;font-size:1.02rem;font-weight:650;letter-spacing:-.025em}.mv-plugin-card p{color:var(--mv-muted);line-height:1.55}.mv-plugin-orb{width:42px;height:42px;flex:0 0 auto;border-radius:16px;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.95),var(--mv-primary) 36%,transparent 75%);box-shadow:0 0 28px color-mix(in srgb,var(--mv-primary) 45%,transparent)}.mv-plugin-card-green{--mv-primary:var(--mv-success)}.mv-plugin-card-red{--mv-primary:var(--mv-danger)}.mv-plugin-card-amber{--mv-primary:var(--mv-warning)}.mv-plugin-card-violet{--mv-primary:#8b5cf6}.mv-plugin-card-blue{--mv-primary:#3b82f6}.mv-plugin-card-cyan{--mv-primary:#22d3ee}.mv-plugin-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:.9rem 0}.mv-plugin-metrics span{display:grid;gap:.15rem;padding:.65rem;border:1px solid var(--mv-border);border-radius:14px;background:rgba(148,163,184,.07)}.mv-plugin-metrics strong{font-size:.98rem;font-weight:650}.mv-plugin-metrics small{color:var(--mv-muted);font-size:.74rem}.mv-plugin-permissions{display:flex;flex-wrap:wrap;gap:.45rem;margin:.75rem 0}@media(max-width:1100px){.mv-plugin-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.mv-plugin-card-grid{grid-template-columns:1fr}.mv-slot-heading{align-items:flex-start;flex-direction:column}}


/* Phase 13: Plugin settings + installer progress */
.mv-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.mv-plugin-settings-card {
  display: grid;
  gap: 16px;
}
.mv-settings-section {
  border: 1px solid var(--mv-border);
  border-radius: 18px;
  padding: 14px;
  background: rgba(148, 163, 184, 0.055);
}
.mv-settings-section legend {
  padding: 0 8px;
  color: var(--mv-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.mv-setting-row {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.mv-setting-row strong {
  display: block;
  font-size: .92rem;
  font-weight: 650;
}
.mv-field-help {
  display: block;
  color: var(--mv-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.mv-setting-row-check {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.mv-setting-row-check input[type="checkbox"] {
  width: 42px;
  height: 24px;
  accent-color: var(--mv-primary);
}
.mv-progress-shell {
  border: 1px solid rgba(59, 164, 255, .26);
  background: linear-gradient(135deg, rgba(59, 164, 255, .10), rgba(34, 211, 238, .05));
  border-radius: 18px;
  padding: 14px;
  margin: 14px 0;
}
.mv-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--mv-text);
}
.mv-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .18);
  margin: 12px 0;
}
.mv-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mv-primary), var(--mv-cyan), var(--mv-success));
  box-shadow: 0 0 24px rgba(34, 211, 238, .24);
  transition: width .22s ease;
}
.mv-progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mv-progress-steps span {
  border: 1px solid var(--mv-border);
  color: var(--mv-muted);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
}
.mv-progress-steps span.mv-progress-done {
  color: var(--mv-success);
  border-color: rgba(34, 197, 94, .38);
  background: rgba(34, 197, 94, .10);
}


/* Phase 14 — Chart Workspace + Watchlist */
.mv-symbol-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.mv-symbol-search{display:flex;align-items:center;gap:10px;min-width:min(100%,460px);background:rgba(15,23,42,.34);border:1px solid var(--mv-border);border-radius:18px;padding:9px 10px;box-shadow:var(--mv-shadow-soft)}
.mv-symbol-search input{flex:1;min-width:150px;background:transparent;border:0;outline:0;color:var(--mv-text);font:inherit;font-size:.95rem}
.mv-symbol-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.mv-symbol-chip{border:1px solid var(--mv-border);background:rgba(56,189,248,.08);color:var(--mv-text);border-radius:999px;padding:8px 11px;font-size:.82rem;font-weight:650;cursor:pointer}
.mv-symbol-chip:hover,.mv-symbol-chip.mv-active{border-color:rgba(56,189,248,.58);background:rgba(56,189,248,.18);box-shadow:0 0 0 4px rgba(56,189,248,.08)}
.mv-chart-workspace-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.7fr);gap:18px;align-items:stretch}
.mv-chart-panel{position:relative;min-height:430px;overflow:hidden;border:1px solid var(--mv-border);border-radius:28px;background:linear-gradient(135deg,rgba(59,130,246,.16),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.04),transparent),var(--mv-surface);box-shadow:var(--mv-shadow)}
.mv-chart-panel:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(148,163,184,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.08) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.95),rgba(0,0,0,.25));pointer-events:none}
.mv-chart-toolbar{position:relative;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px}
.mv-chart-symbol{font-size:2.4rem;line-height:.95;font-weight:720;letter-spacing:-.06em;margin:4px 0;color:var(--mv-text)}
.mv-chart-price{font-size:1.15rem;font-weight:650;color:var(--mv-muted)}
.mv-chart-svg{position:absolute;inset:92px 18px 18px 18px;width:calc(100% - 36px);height:calc(100% - 110px);z-index:1;filter:drop-shadow(0 18px 24px rgba(34,211,238,.18))}
.mv-chart-svg path.mv-area{opacity:.24}
.mv-chart-sidebar{display:grid;gap:18px;align-content:start}
.mv-market-depth{display:grid;gap:10px}
.mv-depth-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:10px 0;border-bottom:1px solid var(--mv-border);color:var(--mv-muted)}
.mv-depth-row strong{color:var(--mv-text);font-weight:650}
.mv-watchlist-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.mv-watch-card{border:1px solid var(--mv-border);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.045),transparent),var(--mv-surface);padding:15px;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.mv-watch-card:hover{transform:translateY(-2px);border-color:rgba(56,189,248,.45);background:var(--mv-surface-2)}
.mv-watch-card.mv-selected{border-color:rgba(34,211,238,.65);box-shadow:0 0 0 4px rgba(34,211,238,.10)}
.mv-watch-symbol{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:720;letter-spacing:-.02em;margin-bottom:8px}
.mv-watch-price{font-size:1.28rem;font-weight:700;letter-spacing:-.04em}
.mv-watch-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.mv-mini-chart{height:54px;width:100%;margin-top:10px;opacity:.9}
html[data-theme="light-pro"] .mv-symbol-search{background:rgba(255,255,255,.76)}
html[data-theme="light-pro"] .mv-chart-panel{background:linear-gradient(135deg,rgba(37,99,235,.12),transparent 34%),var(--mv-surface)}
@media(max-width:1160px){.mv-chart-workspace-grid{grid-template-columns:1fr}.mv-watchlist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){.mv-watchlist-grid{grid-template-columns:1fr 1fr}.mv-chart-symbol{font-size:1.9rem}.mv-chart-panel{min-height:360px}.mv-symbol-search{width:100%}}


/* Phase 15 — Paper Trade Ticket + Positions */
.mv-trade-workspace{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.18fr);gap:18px;align-items:start}
.mv-ticket-card{position:relative;overflow:hidden;border:1px solid rgba(34,197,94,.24);background:linear-gradient(135deg,rgba(34,197,94,.14),transparent 32%),linear-gradient(180deg,rgba(255,255,255,.05),transparent),var(--mv-surface)}
.mv-ticket-form{display:grid;gap:14px;margin-top:16px}
.mv-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mv-field{display:grid;gap:7px}
.mv-field label{font-size:.74rem;text-transform:uppercase;letter-spacing:.12em;color:var(--mv-muted);font-weight:700}
.mv-ticket-summary{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid var(--mv-border);border-radius:18px;background:rgba(148,163,184,.08)}
.mv-ticket-safety{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.mv-position-grid{display:grid;gap:12px}
.mv-position-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid var(--mv-border);border-radius:18px;padding:14px;background:rgba(148,163,184,.06)}
.mv-position-symbol{font-size:1.08rem;font-weight:720;letter-spacing:-.03em}
.mv-position-meta{color:var(--mv-muted);font-size:.88rem}
.mv-trade-message{border:1px solid rgba(56,189,248,.34);background:rgba(56,189,248,.10);border-radius:16px;padding:12px;color:var(--mv-text);margin-top:12px}
@media(max-width:980px){.mv-trade-workspace{grid-template-columns:1fr}.mv-field-grid{grid-template-columns:1fr}}


/* Phase 16-20 workspace polish */
.mv-form-grid { display:grid; gap:14px; }
.mv-field-label { display:grid; gap:7px; color:var(--mv-muted); font-size:.9rem; }
.mv-form-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:12px; }
.mv-textarea { min-height:110px; resize:vertical; }
.mv-workspace-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); gap:18px; align-items:start; }
.mv-slim-card { box-shadow:none; }
.mv-widget-list { display:grid; gap:10px; }
.mv-widget-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--mv-border); border-radius:16px; background:rgba(148,163,184,.07); }
.mv-notification-row { display:grid; gap:4px; padding:12px; border:1px solid var(--mv-border); border-radius:16px; background:rgba(148,163,184,.07); }
.mv-alert-row { display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; }
.mv-scanner-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.mv-mover-card { padding:14px; border:1px solid var(--mv-border); border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,.045),transparent),var(--mv-surface-2); }
.mv-journal-card { display:grid; gap:8px; padding:14px; border:1px solid var(--mv-border); border-radius:18px; background:rgba(148,163,184,.07); }
@media (max-width: 1100px) { .mv-workspace-grid, .mv-scanner-grid { grid-template-columns:1fr; } }


/* Phase 21-25 admin/super polish */
.mv-audit-severity { font-weight: 680; }
.mv-release-stack { display:grid; gap:10px; }
.mv-provider-status { text-transform: uppercase; letter-spacing:.08em; font-size:.78rem; }

/* Phase 26-30 operational polish */
.mv-budget-meter{height:9px;border-radius:999px;background:rgba(148,163,184,.18);overflow:hidden}.mv-budget-meter span{display:block;height:100%;background:linear-gradient(90deg,var(--mv-primary),var(--mv-success));}

/* Phase 31-35 product layer */
.mv-pricing-card{min-height:220px}.mv-onboarding-step{display:flex;align-items:center;gap:10px}.mv-support-thread{display:grid;gap:10px}

/* Phase 36-40 QA / launch layer */
.mv-launch-score{font-size:2rem;font-weight:680}.mv-a11y-focus:focus{outline:3px solid var(--mv-primary);outline-offset:3px}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-topbar-icon{position:relative;min-width:38px;height:38px;border-radius:14px;border:1px solid var(--mv-border);background:rgba(148,163,184,.08);color:var(--mv-text);display:inline-grid;place-items:center;text-decoration:none;cursor:pointer}.mv-badge{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:white;font-size:.68rem;font-weight:800;display:none;align-items:center;justify-content:center;padding:0 5px}.mv-badge[data-count]:not([data-count="0"]){display:inline-flex}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-live-grid{grid-template-columns:1fr}.mv-broadcast-stage{min-height:330px}
/* phase1264 removed old global-shell rule */



/* Canonical shell governance + market widgets */
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-admin-menu-panel{overflow:visible!important;max-height:none!important}.mv-super-top-menu .mv-admin-menu-panel{min-width:520px;grid-template-columns:repeat(2,minmax(200px,1fr));gap:4px}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-super-top-menu .mv-admin-menu-panel{min-width:min(520px,calc(100vw - 24px));grid-template-columns:1fr}
/* phase1264 removed old global-shell rule */
.mv-chart-workspace-grid{grid-template-columns:1fr}.mv-chart-panel{min-height:420px}.mv-chart-svg{min-height:300px}
/* phase1264 removed old global-shell rule */
.mv-chart-panel{overflow:hidden}.mv-chart-panel .mv-chart-toolbar{position:relative;z-index:2}.mv-chart-svg{contain:layout paint}.mv-chart-workspace-grid .mv-panel{overflow:hidden}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-plugin-card-grid:empty{display:none}.mv-widget-slot:has(.mv-plugin-card-grid:empty){display:none}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-auth-footnote,.mv-auth-roles{display:none!important}
/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */
.mv-content{width:100%;max-width:none}.mv-chart-panel,.mv-chart-terminal{min-height:480px}.mv-chart-svg{min-height:340px}

/* Phase 94 provider credential vault */
.mv-provider-secret-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.mv-provider-secret-grid label{display:grid;gap:6px;margin-top:10px}.mv-provider-secret-grid input{width:100%}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
.mv-chat-bubble{max-width:86%;display:grid;gap:4px;padding:11px 12px;border-radius:18px;border:1px solid var(--mv-border);color:var(--mv-text);background:rgba(148,163,184,.10)}.mv-chat-bubble strong{font-size:.78rem;color:var(--mv-cyan)}.mv-chat-bubble small{color:var(--mv-muted);font-size:.72rem}.mv-chat-bubble-user{justify-self:end;background:linear-gradient(135deg,rgba(37,99,235,.36),rgba(14,165,233,.16));border-color:rgba(56,189,248,.32)}.mv-chat-bubble-ai{justify-self:start;background:rgba(15,23,42,.72)}.mv-thinking span{display:inline-flex;gap:4px;align-items:center;min-height:20px}.mv-thinking i{width:6px;height:6px;border-radius:999px;background:var(--mv-cyan);animation:mvThinking 1s infinite ease-in-out}.mv-thinking i:nth-child(2){animation-delay:.16s}.mv-thinking i:nth-child(3){animation-delay:.32s}@keyframes mvThinking{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}
/* phase1264 removed old global-shell rule */
.mv-chat-shell{display:grid;gap:14px;min-height:580px}.mv-chat-shell .mv-chat-feed{min-height:420px;max-height:560px}.mv-avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:12px}.mv-avatar-choice{border:1px solid var(--mv-border);background:rgba(148,163,184,.08);border-radius:18px;padding:10px;cursor:pointer}.mv-avatar-choice img{width:72px;height:72px;object-fit:cover;border-radius:50%;display:block;margin:auto}.mv-chart-panel-pro{min-height:680px;display:grid;grid-template-rows:auto minmax(560px,1fr)}.mv-tradingview-chart{min-height:560px;width:100%;border:1px solid var(--mv-border);border-radius:20px;overflow:hidden;background:radial-gradient(circle at 20% 15%,rgba(34,211,238,.16),transparent 36%),rgba(2,6,23,.68)}.mv-tv-fallback{min-height:560px;display:grid;align-items:center;gap:12px;padding:18px;color:var(--mv-cyan)}.mv-tv-fallback .mv-chart-svg{width:100%;height:420px}.mv-lease-card{border-color:rgba(94,232,87,.28);background:linear-gradient(135deg,rgba(94,232,87,.10),rgba(34,211,238,.06)),var(--mv-card)}@media(max-width:720px){
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */
}

/* MarketVista phase 103 render recovery + tenant settings */
.mv-render-recovery,.mv-platform-settings-card{border-color:rgba(56,189,248,.28)}
/* phase1264 removed old global-shell rule */

.mv-content{position:relative;z-index:1}
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

.mv-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mv-field-label{display:grid;gap:7px;color:var(--mv-muted);font-weight:700}.mv-field-label .mv-input,.mv-field-label .mv-select{width:100%}
@media(max-width:800px){.mv-form-grid{grid-template-columns:1fr}}

/* MarketVista Phase 104 canonical ticker, scanner, and session engine */
.mv-up{color:#22c55e!important}.mv-down{color:#ef4444!important}.mv-flat{color:#94a3b8!important}.mv-kpi-value.mv-up,.mv-kpi-value.mv-down,.mv-kpi-value.mv-flat{font-variant-numeric:tabular-nums}
/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */
/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* phase1264 removed old global-shell rule */

/* MarketVista Phase 105 News TV floating window + IA cleanup */
.mv-news-tv-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#020617}.mv-broadcast-video:has(.mv-news-tv-frame) .mv-news-tv-fallback{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:30px;pointer-events:none;background:linear-gradient(135deg,rgba(2,6,23,.25),rgba(2,6,23,.55))}.mv-news-tv-floating-window{position:fixed;right:24px;bottom:86px;width:min(760px,calc(100vw - 32px));height:min(460px,calc(100vh - 110px));z-index:300000;border:1px solid var(--mv-border);border-radius:20px;background:rgba(2,6,23,.96);box-shadow:0 30px 100px rgba(0,0,0,.58);overflow:hidden;display:none}.mv-news-tv-floating-window.is-open{display:grid;grid-template-rows:auto 1fr}.mv-news-tv-floating-window.is-minimized{height:auto}.mv-news-tv-floating-window.is-minimized .mv-news-tv-floating-body{display:none}.mv-news-tv-floating-window header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:rgba(15,23,42,.94);border-bottom:1px solid var(--mv-border);cursor:move}.mv-news-tv-floating-window header button{width:30px;height:30px;border-radius:10px;border:1px solid var(--mv-border);background:rgba(148,163,184,.10);color:var(--mv-text);cursor:pointer}.mv-news-tv-floating-body iframe{width:100%;height:100%;border:0;background:#020617}@media(max-width:760px){.mv-news-tv-floating-window{left:12px!important;right:12px!important;bottom:76px;width:auto;height:420px}}

/* Phase 106 production frontend cleanup */
.mv-widget-slot[data-slot^="user."],
.mv-code:has(+ .mv-front-end-cleanup){display:none!important;}
.mv-news-tv-production{align-items:stretch;grid-template-columns:minmax(0,1.7fr) minmax(330px,.8fr)}
.mv-news-tv-frame-panel{padding:14px;overflow:hidden;min-height:520px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;background:#020817;border-color:rgba(56,189,248,.26)}
.mv-news-tv-frame-wrap{position:relative;border:1px solid rgba(148,163,184,.18);border-radius:22px;overflow:hidden;background:#000;min-height:480px;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.mv-news-tv-frame-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.mv-news-summary-panel{max-height:620px;overflow:auto}.mv-news-summary-list{display:grid;gap:10px;margin-top:14px}.mv-news-summary-item{border:1px solid rgba(148,163,184,.16);border-radius:16px;padding:12px;background:rgba(15,23,42,.62)}.mv-news-summary-item h3{font-size:.98rem;margin:4px 0}.mv-news-summary-item a{color:var(--mv-text);text-decoration:none}.mv-news-summary-item a:hover{color:var(--mv-cyan)}.mv-news-summary-item p{margin:0;color:var(--mv-muted);line-height:1.45}
.mv-market-page-clean .mv-code,.mv-market-page-clean .mv-plugin-permissions{display:none!important}
@media(max-width:1100px){.mv-news-tv-production{grid-template-columns:1fr}.mv-news-summary-panel{max-height:none}.mv-news-tv-frame-panel{min-height:420px}.mv-news-tv-frame-wrap{min-height:390px}}

/* Phase 107 News TV stability */
.mv-news-tv-clean-frame{overflow:hidden}
.mv-news-tv-clean-frame iframe{height:100%;transform:none}

/* Phase 108 functional systems */
.mv-symbol-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.mv-functional-system-card{border:1px solid var(--mv-border);border-radius:18px;padding:16px;background:rgba(15,23,42,.56)}


/* paper execution polish */
.mv-trade-message{border:1px solid rgba(56,189,248,.3);background:rgba(56,189,248,.08);border-radius:14px;padding:12px 14px;margin:12px 0;color:var(--mv-text)}
.mv-ticket-card .mv-table-wrap{margin-top:12px}.mv-order-status-filled{color:var(--mv-green)}


/* trade journal + P/L review */
.mv-table .mv-button{min-height:30px;padding:6px 10px;font-size:.78rem}.mv-realized-pl-positive{color:var(--mv-green)}.mv-realized-pl-negative{color:var(--mv-red)}

/* Phase 126.13: mv-core.css is content-only. Header/sidebar/footer/ticker/session/chat shell live in mv-experience-system.css. */


/* Phase 264 direct global fixes: dark theme lock, readable pills, WP-style plugin settings, widget spacing. */
:root,
html[data-theme="dark-pro"],
html[data-theme="dark"],
body[data-theme="dark-pro"] {
  color-scheme: dark;
  --mv-bg: #020817;
  --mv-panel: #0b1220;
  --mv-panel-2: #111827;
  --mv-text: #f8fafc;
  --mv-muted: #9fb6d6;
}
html[data-theme="light"],
body[data-theme="light"],
html[data-theme="neon"],
body[data-theme="neon"],
html[data-theme="terminal"],
body[data-theme="terminal"] {
  color-scheme: dark;
}
.mv-chip,
.mv-pill,
.mv246-chip,
.mv246-pill,
.mv248-chip,
.mv252-chip,
.mv253-signal,
.mv-live-pill,
.mv-session-pill,
.mv-shell-status,
.mv-header-actions .mv-pill,
.mv-header-actions button,
.mv-header-actions a,
.mv-card .mv-pill,
.mv-card .mv-chip {
  color: #f8fafc !important;
  text-shadow: none;
}
.mv-shell main > * + *,
.mv246-shell > * + *,
.mv-panel + .mv-panel,
.mv-card + .mv-card,
.mv248-mover-widget + .mv248-mover-widget {
  margin-top: 18px;
}
.mv-plugin-settings-horizontal,
.mv-wp-settings-grid {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}
.mv-plugin-settings-card,
.mv-wp-plugin-settings-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.36fr) minmax(320px, 0.64fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}
.mv-plugin-settings-card form,
.mv-wp-plugin-settings-row form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.mv-theme-locked-panel .mv-card {
  border-color: rgba(56,189,248,.24);
}
@media (max-width: 900px) {
  .mv-plugin-settings-card,
  .mv-wp-plugin-settings-row {
    grid-template-columns: 1fr;
  }
}


/* Phase 265: admin hub and direct widget spacing. */
.mv265-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px;margin-top:14px}
.mv265-admin-grid a{display:grid;gap:6px;min-height:142px;padding:17px;border-radius:18px;text-decoration:none;border:1px solid rgba(103,232,249,.16);background:linear-gradient(145deg,rgba(15,23,42,.88),rgba(2,8,23,.96));box-shadow:0 18px 42px rgba(0,0,0,.22)}
.mv265-admin-grid a:hover{border-color:rgba(103,232,249,.36);transform:translateY(-1px)}
.mv265-admin-grid span{color:#67e8f9;text-transform:uppercase;letter-spacing:.12em;font-size:.64rem;font-weight:850}
.mv265-admin-grid strong{color:#f8fafc;font-size:1rem;font-weight:850}.mv265-admin-grid em{color:#a9bbd1;font-style:normal;line-height:1.45}
.mv246-panel,.mv246-hero,.mv-panel,.mv-card,.mv-module-card{margin-bottom:18px}
.mv246-panel:last-child,.mv246-hero:last-child,.mv-panel:last-child,.mv-card:last-child,.mv-module-card:last-child{margin-bottom:0}
