/* Landing page, global sign-in/sign-up and dashboard (views/home.hbs, global-auth.hbs, dashboard.hbs, account.hbs). */
:root {
    --mc-primary: #3FA0F6;
    --mc-primary-dark: #2287e3;
    --mc-primary-rgb: 63, 160, 246;
    --mc-on-primary: #04182b;
    --mc-bg: #2b2f3a;
    --mc-bg-alt: #323745;
    --mc-surface: #3c4252;
    --mc-surface-hover: #444b5d;
    --mc-border: #4a4f64;
    --mc-text: #ffffff;
    --mc-muted: #b9bdc9;
    --mc-accent: var(--mc-primary);
    --mc-accent-dark: var(--mc-primary-dark);
    --mc-danger: #ff6b6b;
    --mc-radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mc-public {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mc-bg);
    color: var(--mc-text);
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
}

.mc-public a { color: var(--mc-accent); }
.mc-public main { flex: 1; }
.mc-public :focus-visible { outline: 2px solid var(--mc-primary); outline-offset: 2px; }

/* ===== Account dropdown (partials/app_header.hbs) ===== */
.mc-account { position: relative; }
.mc-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 230px;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 6px;
    z-index: 30;
}
.mc-account-menu[hidden] { display: none; }
.mc-account-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--mc-border); margin-bottom: 6px; }
.mc-account-menu-head small { display: block; color: var(--mc-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; }
.mc-account-menu-head strong { display: block; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-account-menu form { margin: 0; }
.mc-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--mc-text) !important;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.mc-menu-item i { color: var(--mc-muted); width: 18px; }
.mc-menu-item:hover, .mc-menu-item:focus-visible { background: rgba(var(--mc-primary-rgb), 0.14); outline: none; }
.mc-menu-item:hover i { color: var(--mc-primary); }
.mc-menu-item.danger:hover { background: rgba(255, 107, 107, 0.14); }
.mc-menu-item.danger:hover i { color: var(--mc-danger); }

/* ===== Buttons ===== */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
}

.mc-btn:disabled { opacity: 0.6; cursor: default; }
.mc-btn-primary { background: var(--mc-primary); color: var(--mc-on-primary) !important; }
.mc-btn-primary:hover:not(:disabled) { background: var(--mc-primary-dark); }
.mc-btn-outline { border-color: var(--mc-primary); color: var(--mc-primary) !important; background: transparent; }
.mc-btn-outline:hover:not(:disabled) { background: rgba(var(--mc-primary-rgb), 0.12); }
.mc-btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.mc-btn-block { width: 100%; }

/* ===== Landing ===== */
.mc-section { max-width: 1160px; margin: 0 auto; padding: 72px 20px; }
.mc-section-title { text-align: center; margin-bottom: 44px; }
.mc-section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.mc-section-title p { color: var(--mc-muted); max-width: 640px; margin: 0 auto; }

.mc-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mc-accent);
    margin-bottom: 10px;
}

.mc-hero {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(var(--mc-primary-rgb), 0.18), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(var(--mc-primary-rgb), 0.08), transparent 60%);
}

.mc-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 20px 72px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

.mc-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; }
.mc-hero h1 em { font-style: normal; color: var(--mc-accent); }
.mc-hero-lead { color: var(--mc-muted); font-size: 1.12rem; margin: 0 0 30px; max-width: 540px; }
.mc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mc-hero-note { color: var(--mc-muted); font-size: 0.85rem; margin-top: 18px; }

/* ===== Mock app windows (CSS-only product previews) ===== */
.mc-window {
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    font-size: 0.8rem;
    min-width: 0;
}
.mc-preview { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }

.mc-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #343a49; border-bottom: 1px solid var(--mc-border); }
.mc-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a6074; display: block; flex-shrink: 0; }
.mc-window-bar span { margin-left: 10px; font-size: 0.75rem; color: var(--mc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-window-body { padding: 16px; display: grid; gap: 12px; min-width: 0; }

.mc-preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mc-preview-stat { background: var(--mc-bg-alt); border-radius: 10px; padding: 10px 12px; }
.mc-preview-stat b { display: block; font-size: 1.3rem; color: var(--mc-accent); }
.mc-preview-stat small { color: var(--mc-muted); font-size: 0.72rem; }

/* Dark tile holding a mock table */
.mc-mock-table { background: var(--mc-bg-alt); border-radius: 10px; padding: 4px 12px; min-width: 0; }
.mc-mock-row { display: grid; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); align-items: center; min-width: 0; }
.mc-mock-row:last-child { border-bottom: 0; }
.mc-mock-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mock-row.head { color: var(--mc-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.6px; }
.mc-mock-row .mono { font-family: Consolas, 'Courier New', monospace; font-size: 0.74rem; color: #d7dbe5; }
.mc-mock-row .muted { color: var(--mc-muted); }

.mc-thumb {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #59607a, #3a4052);
}
.mc-thumb.t1 { background: linear-gradient(135deg, #1f2937, #4b5563); }
.mc-thumb.t2 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.mc-thumb.t3 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.mc-thumb.t4 { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.mc-thumb.t5 { background: linear-gradient(135deg, #be123c, #fb7185); }
.mc-thumb.t6 { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }

/* Hero: inventory overview */
.mc-hero-table .mc-mock-row { grid-template-columns: 0.7fr 1.75fr 0.8fr 1.15fr; }

/* Merch "Zone" column - same colors the merch table uses */
.mc-zone { font-weight: 700; }
.mc-zone.on-set { color: #19d0c0; }
.mc-zone.atw { color: #ecec13; }
.mc-zone.pre-staging { color: #2c97f5; }
.mc-zone.default { color: var(--mc-muted); font-weight: 400; }

/* Mock search bar (views/partials/search_bar.hbs) */
.mc-mock-search { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-mock-search h4 { margin: 0; font-size: 0.82rem; white-space: nowrap; }
.mc-mock-input {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--mc-bg);
    border: 1px solid var(--mc-border);
    color: var(--mc-muted);
    white-space: nowrap;
    overflow: hidden;
}
.mc-mock-input b { color: var(--mc-text); font-weight: 500; }
.mc-mock-caret { display: inline-block; width: 1px; height: 0.95em; background: var(--mc-primary); margin-left: -4px; animation: mc-blink 1s steps(1) infinite; }
@keyframes mc-blink { 50% { opacity: 0; } }
.mc-mock-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 7px;
    display: grid;
    place-items: center;
    border: 1px solid var(--mc-border);
    color: var(--mc-muted);
    background: transparent;
    position: relative;
}
.mc-mock-btn.primary { background: var(--mc-primary); border-color: var(--mc-primary); color: var(--mc-on-primary); opacity: 0.55; }
.mc-mock-btn.primary .bolt { position: absolute; right: -3px; top: -5px; font-size: 0.7rem; color: #ffd84d; }

.mc-mock-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--mc-muted); font-size: 0.72rem; }
.mc-mock-pager { display: flex; align-items: center; gap: 4px; }
.mc-mock-pager span { min-width: 24px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 5px; background: var(--mc-bg); border: 1px solid var(--mc-border); }
.mc-mock-pager span.on { background: var(--mc-primary); border-color: var(--mc-primary); color: var(--mc-on-primary); font-weight: 700; }
.mc-mock-pager .label { background: none; border: 0; padding: 0 2px 0 0; }

/* Shipments (views/shipments-view.hbs) */
.mc-mock-toggle { display: inline-flex; background: var(--mc-bg); border: 1px solid var(--mc-border); border-radius: 999px; padding: 3px; }
.mc-mock-toggle span { padding: 4px 12px; border-radius: 999px; color: var(--mc-muted); font-weight: 600; white-space: nowrap; }
.mc-mock-toggle span.on { background: var(--mc-primary); color: var(--mc-on-primary); }
.mc-mock-row > .wrap { white-space: normal; line-height: 1.3; }
.mc-ship-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.mc-ship-badge.no-info { background: #f8f9fa; color: #212529; }
.mc-ship-badge.in-transit { background: #ffc107; color: #212529; }
.mc-ship-badge.delivered { background: #0d6efd; color: #ffffff; }
.mc-ship-badge.checked-in { background: #198754; color: #ffffff; }
.mc-eta-soon { color: #ffd84d; }
.mc-mock-actions { display: flex; gap: 5px; overflow: visible !important; }
.mc-mock-action { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--mc-border); color: #d7dbe5; font-size: 0.68rem; white-space: nowrap; }
.mc-mock-action.primary { background: var(--mc-primary); border-color: var(--mc-primary); color: var(--mc-on-primary); font-weight: 700; }

/* Shot list calendar (views/shot-list-view.hbs) */
.mc-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mc-cal-title { font-weight: 700; letter-spacing: 0.8px; font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }
.mc-cal-title .live { color: #ff3b3b; font-size: 0.7rem; }
.mc-cal-title .dot { width: 7px; height: 7px; border-radius: 50%; background: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25); animation: mc-blink 1.6s steps(1) infinite; }
.mc-cal-nav { display: flex; align-items: center; gap: 8px; color: var(--mc-muted); }
.mc-cal-nav b { color: var(--mc-primary); font-size: 0.9rem; }
.mc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: var(--mc-bg-alt); border-radius: 10px; padding: 6px; }
.mc-cal-dow { text-align: center; color: var(--mc-muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 0 4px; }
.mc-cal-day { position: relative; min-height: 58px; background: #2f3442; border-radius: 6px; padding: 3px 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-cal-day > b { font-size: 0.66rem; color: var(--mc-muted); font-weight: 600; }
.mc-cal-day.other { opacity: 0.35; }
.mc-cal-day.today { box-shadow: inset 0 0 0 1.5px var(--mc-primary); }
.mc-cal-day.today > b { color: var(--mc-primary); }
.mc-cal-count { position: absolute; top: 3px; right: 4px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--mc-primary); color: var(--mc-on-primary); font-size: 0.58rem; font-weight: 700; display: grid; place-items: center; }
.mc-shot { background: rgba(var(--mc-primary-rgb), 0.16); border-left: 2px solid var(--mc-primary); border-radius: 4px; padding: 2px 4px; min-width: 0; }
.mc-shot.on { background: rgba(var(--mc-primary-rgb), 0.38); box-shadow: 0 0 0 1px var(--mc-primary); }
.mc-shot b { display: block; font-size: 0.6rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-shot small { display: block; font-size: 0.55rem; color: var(--mc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mc-shot-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mc-shot-card { background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 8px; padding: 5px; min-width: 0; }
.mc-shot-card .mc-thumb { width: 100%; height: auto; aspect-ratio: 1; font-size: 1.3rem; border-radius: 6px; margin-bottom: 4px; }
.mc-shot-card b { display: block; font-size: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-shot-card small { display: block; font-size: 0.56rem; color: var(--mc-muted); font-family: Consolas, 'Courier New', monospace; }
.mc-shot-card .mc-zone { font-size: 0.56rem; }

/* DMS (views/data-modification-system.hbs) */
.mc-dms-panel { background: var(--mc-bg-alt); border-radius: 10px; padding: 10px; }
.mc-dms-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: 0.78rem; }
.mc-dms-panel-head i { color: var(--mc-primary); }
.mc-dms-panel-head .bi-gear-fill { color: var(--mc-muted); }
.mc-dms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mc-dms-tile { background: #2f3442; border: 1px solid var(--mc-border); border-radius: 8px; padding: 8px 6px; text-align: center; min-width: 0; }
.mc-dms-tile i { display: block; font-size: 1.05rem; color: var(--mc-primary); margin-bottom: 2px; }
.mc-dms-tile span { display: block; font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-dms-tile.danger i { color: #ff6b6b; }
.mc-dms-tile.hot { border-color: var(--mc-primary); background: rgba(var(--mc-primary-rgb), 0.12); }
.mc-dms-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--mc-border); margin-bottom: 4px; overflow: hidden; }
.mc-dms-tabs span { padding: 4px 8px; font-size: 0.66rem; color: var(--mc-muted); border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; white-space: nowrap; }
.mc-dms-tabs span.on { color: var(--mc-primary); border-color: var(--mc-border); background: #2f3442; font-weight: 600; }
/* Feature pages: a heading per app page, then three mock windows with a short caption each */
.mc-tour-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: rgba(var(--mc-primary-rgb), 0.14); color: var(--mc-primary); font-size: 1.2rem; }
.mc-pages-intro { padding-bottom: 40px; }
.mc-pages-intro .mc-section-title { margin-bottom: 26px; }
.mc-page-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.mc-page-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--mc-border);
    background: var(--mc-surface);
    color: var(--mc-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.mc-page-nav a i { color: var(--mc-primary); }
.mc-page-nav a:hover { border-color: var(--mc-primary); background: rgba(var(--mc-primary-rgb), 0.12); }

.mc-page { scroll-margin-top: 64px; }
.mc-page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 30px; max-width: 760px; }
.mc-page-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2; margin: 0 0 6px; }
.mc-page-head p { color: var(--mc-muted); margin: 0; }

/* Rows of the grid are shared through subgrid so the windows and captions line up across a row. */
.mc-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.mc-feat { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 16px; min-width: 0; }
.mc-feat .mc-window { display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.mc-feat:hover .mc-window { transform: translateY(-3px); border-color: rgba(var(--mc-primary-rgb), 0.55); }
.mc-feat .mc-window-body { flex: 1; align-content: start; }
.mc-feat-text h4 { font-size: 1.05rem; margin: 0 0 6px; }
.mc-feat-text p { color: var(--mc-muted); margin: 0; font-size: 0.9rem; }

/* Compact window used three to a row */
.mc-mini { font-size: 0.72rem; }
.mc-mini .mc-window-bar { padding: 8px 12px; }
.mc-mini .mc-window-bar i { width: 8px; height: 8px; }
.mc-mini .mc-window-body { padding: 12px; gap: 10px; }
.mc-mini .mc-mock-table { padding: 2px 10px; }
.mc-mini .mc-mock-row { padding: 6px 0; gap: 6px; }
.mc-mini .mc-mock-row small { display: block; color: var(--mc-muted); font-size: 0.6rem; overflow: hidden; text-overflow: ellipsis; }
.mc-mini .mc-mock-btn { width: 26px; height: 26px; }
.mc-mini .mc-mock-input { padding: 5px 8px; }
.mc-mini .mc-mock-toggle span { padding: 3px 9px; }
.mc-mini .mc-mock-pager span { min-width: 20px; height: 20px; padding: 0 4px; }
.mc-mock-pager.end { justify-content: flex-end; color: var(--mc-muted); }
.mc-strong { color: var(--mc-text); }
.mc-mock-action.sm { font-size: 0.62rem; padding: 2px 6px; }
.mc-mock-action.danger { border-color: rgba(255, 107, 107, 0.6); color: var(--mc-danger); }
.mc-mock-action.ship { background: #e67e22; border-color: #e67e22; color: #fff; }

/* Toggle switch (Bootstrap form-switch look) */
.mc-switch { position: relative; display: inline-block; width: 22px; height: 12px; flex-shrink: 0; border-radius: 999px; background: #565c70; vertical-align: middle; }
.mc-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #d7dbe5; transition: left 0.15s; }
.mc-switch.on { background: var(--mc-primary); }
.mc-switch.on::after { left: 12px; background: #fff; }
.mc-switch-label { display: inline-flex; align-items: center; gap: 5px; color: var(--mc-muted); font-weight: 400; }

/* Inventory: merch table */

/* Inventory: Merchandise Details popup (#merchPopup) */
.mc-pop-head { display: flex; align-items: center; gap: 8px; }
.mc-pop-head b { font-size: 0.9rem; }
.mc-pop-head > i { margin-left: auto; color: var(--mc-muted); }
.mc-clip { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--mc-border); color: var(--mc-primary); }
.mc-copied { padding: 2px 8px; border-radius: 999px; background: rgba(111, 211, 143, 0.16); color: #6fd38f; font-size: 0.62rem; font-weight: 600; }
.mc-pop-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.mc-act { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: 0.64rem; font-weight: 600; white-space: nowrap; color: #fff; }
.mc-act.green { background: #198754; }
.mc-act.blue { background: #0d6efd; }
.mc-act.cyan { background: #0dcaf0; color: #062c33; }
.mc-detail-body { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 10px; align-items: start; }
.mc-detail-img { width: 100%; height: auto; aspect-ratio: 3 / 4; font-size: 2.6rem; border-radius: 10px; }
.mc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.mc-fields > div { background: var(--mc-bg-alt); border-radius: 6px; padding: 4px 7px; min-width: 0; }
.mc-fields > div.wide { grid-column: 1 / -1; }
.mc-fields dt { color: var(--mc-muted); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.5px; }
.mc-fields dd { margin: 0; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-fields dd.mono { font-family: Consolas, 'Courier New', monospace; }
.mc-pop-foot { display: flex; gap: 6px; flex-wrap: wrap; }

/* Inventory: custom label designer (public/js/common/labels.js) */
.mc-des-config { display: grid; grid-template-columns: 0.8fr 1.3fr auto; gap: 6px; align-items: end; }
.mc-des-field { min-width: 0; }
.mc-des-field small { display: block; color: var(--mc-muted); font-size: 0.58rem; margin-bottom: 2px; }
.mc-des-field span { display: flex; justify-content: space-between; gap: 4px; padding: 4px 6px; border-radius: 5px; background: var(--mc-bg); border: 1px solid var(--mc-border); white-space: nowrap; overflow: hidden; font-size: 0.64rem; }
.mc-des-main { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 8px; }
.mc-des-fields { display: grid; gap: 4px; align-content: start; }
.mc-des-chip { padding: 3px 6px; border-radius: 5px; border: 1.5px solid #59607a; background: var(--mc-bg-alt); font-size: 0.6rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-des-chip.text { border-color: var(--mc-primary); }
.mc-des-chip.qr { border-color: #ff6b6b; }
.mc-des-chip.bar { border-color: #4dabf7; }
.mc-des-canvas {
    position: relative;
    aspect-ratio: 2.25 / 1.25;
    align-self: center;
    border-radius: 4px;
    background-color: #fff;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.16) 1px, transparent 1.2px);
    background-size: 10px 10px;
    color: #111;
    box-shadow: 0 0 0 2px #59607a;
}
.mc-des-qr { position: absolute; left: 6%; top: 10%; width: 32%; height: auto; fill: #111; }
.mc-des-guide { position: absolute; left: 44%; top: 4%; bottom: 4%; border-left: 1px dashed #ff3d8b; }
.mc-des-text { position: absolute; left: 44%; right: 5%; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.mc-des-text.name { top: 10%; font-size: 0.6rem; }
.mc-des-text.sku { top: 30%; font-size: 0.56rem; font-family: Consolas, 'Courier New', monospace; overflow: visible; }
.mc-des-text.loc { top: 48%; font-size: 0.7rem; }
.mc-des-text.selected { outline: 1px solid var(--mc-primary); outline-offset: 1px; }
.mc-des-text.selected i { position: absolute; width: 4px; height: 4px; background: var(--mc-primary); }
.mc-des-text.selected i:nth-child(1) { left: -3px; top: -3px; }
.mc-des-text.selected i:nth-child(2) { right: -3px; top: -3px; }
.mc-des-text.selected i:nth-child(3) { left: -3px; bottom: -3px; }
.mc-des-text.selected i:nth-child(4) { right: -3px; bottom: -3px; }
.mc-des-barcode {
    position: absolute;
    left: 44%;
    right: 5%;
    bottom: 10%;
    height: 22%;
    background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 6px, #111 6px 9px, transparent 9px 10px, #111 10px 11px, transparent 11px 14px);
}
.mc-des-snap { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; color: var(--mc-muted); font-size: 0.6rem; }
.mc-des-snap i { color: var(--mc-primary); }
.mc-des-snap b { color: var(--mc-text); font-weight: 600; }
.mc-des-print { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--mc-bg-alt); }
.mc-des-print > span:first-child { color: var(--mc-muted); }
.mc-des-print i { color: var(--mc-primary); }
.mc-des-print .mc-mock-action i { color: inherit; }

/* Shipments: incoming / item tracker / outgoing */
.mc-trk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-trk-head b { font-size: 0.85rem; }
.mc-trk-head .mono { font-family: Consolas, 'Courier New', monospace; color: var(--mc-muted); font-size: 0.66rem; }
.mc-trk-chain { display: flex; align-items: center; gap: 0; padding: 4px 2px 14px; }
.mc-trk-stage { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--mc-primary-rgb), 0.2); color: var(--mc-primary); border: 1.5px solid var(--mc-primary); }
.mc-trk-stage small { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 0.56rem; color: var(--mc-muted); white-space: nowrap; }
.mc-trk-edge { flex: 1; height: 2px; min-width: 10px; background: var(--mc-primary); opacity: 0.6; }
.mc-trk-root { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; background: var(--mc-primary); color: var(--mc-on-primary); font-weight: 700; }
.mc-trk-branches { display: grid; gap: 8px; margin-left: auto; width: 88%; border-left: 2px solid rgba(var(--mc-primary-rgb), 0.45); padding-left: 10px; }
.mc-trk-branch { display: grid; gap: 6px; }
.mc-trk-pill { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; font-size: 0.64rem; }
.mc-trk-pill.ok { background: rgba(25, 135, 84, 0.25); color: #6fd38f; }
.mc-trk-pill.wait { background: rgba(255, 193, 7, 0.16); color: #ffd84d; }
.mc-trk-leaves { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-trk-leaf { display: grid; justify-items: center; gap: 3px; padding: 4px; border-radius: 8px; background: var(--mc-bg-alt); border: 1px solid var(--mc-border); }
.mc-trk-leaf .mc-thumb { width: 38px; height: 38px; font-size: 1.1rem; }
.mc-trk-leaf code { font-family: Consolas, 'Courier New', monospace; font-size: 0.56rem; color: var(--mc-primary); }
.mc-trk-pending { padding: 5px 10px; border-radius: 999px; border: 1.5px dashed #ffd84d; color: #ffe891; font-size: 0.64rem; }

/* Shot list: compact calendar / day popup / table */
.mc-mini .mc-cal-title { font-size: 0.66rem; }
.mc-mini .mc-cal-nav b { font-size: 0.74rem; }
.mc-mini .mc-cal-grid { gap: 3px; padding: 4px; }
.mc-mini .mc-cal-day { min-height: 36px; padding: 2px 3px; }
.mc-mini .mc-cal-day > b { font-size: 0.56rem; }
.mc-mini .mc-cal-count { min-width: 12px; height: 12px; font-size: 0.5rem; top: 2px; right: 2px; }
.mc-mini .mc-shot { padding: 1px 3px; }
.mc-mini .mc-shot b { font-size: 0.5rem; }
.mc-day-head { display: flex; align-items: baseline; gap: 6px; }
.mc-day-head b { color: var(--mc-primary); font-size: 0.8rem; }
.mc-day-head span { color: var(--mc-muted); font-size: 0.66rem; }
.mc-day-head i { margin-left: auto; color: var(--mc-muted); }
.mc-shot-group { border: 1px solid var(--mc-border); border-radius: 8px; background: var(--mc-bg-alt); }
.mc-shot-group-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.mc-shot-group-head b { color: var(--mc-primary); }
.mc-shot-group-head i { color: var(--mc-muted); font-size: 0.66rem; }
.mc-count-badge { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: #6c757d; font-size: 0.6rem; font-weight: 700; }
.mc-shot-group-body { display: grid; gap: 6px; padding: 0 8px 8px; justify-items: start; }
.mc-shot-group-body .mc-shot-items { width: 100%; }
.mc-shot-table .mc-mock-row { grid-template-columns: 0.6fr 1.15fr 1.15fr 0.9fr; }

/* DMS: users + permissions / data tables */
.mc-dms-panel-head .bi-gear-fill.hot { color: var(--mc-primary); }
.mc-dms-users .mc-mock-row { grid-template-columns: 1.5fr 0.85fr 0.7fr 0.75fr; }
.mc-user { display: flex; align-items: center; gap: 6px; }
.mc-avatar { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 0.52rem; font-weight: 700; background: rgba(var(--mc-primary-rgb), 0.25); color: var(--mc-primary); }
.mc-avatar.a2 { background: rgba(25, 208, 192, 0.2); color: #19d0c0; }
.mc-avatar.a3 { background: rgba(192, 132, 252, 0.2); color: #c084fc; }
.mc-active { color: #6fd38f; font-weight: 600; }
.mc-inactive { color: var(--mc-danger); font-weight: 600; }
.mc-perm { background: var(--mc-bg-alt); border-radius: 10px; padding: 8px 10px; }
.mc-perm h5 { margin: 6px 0 4px; font-size: 0.64rem; color: var(--mc-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.mc-perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.mc-perm-grid > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; font-size: 0.64rem; }
.mc-dms-tabs .mc-perm-role { margin-left: auto; color: var(--mc-muted); }
.mc-perm-role b { color: var(--mc-text); }
.mc-dms-data .mc-mock-row { grid-template-columns: 0.75fr 1.7fr 0.5fr 0.55fr; }
.mc-row-tools { display: flex; gap: 8px; color: var(--mc-muted); }
.mc-row-tools .bi-trash { color: var(--mc-danger); }

.mc-band { background: var(--mc-bg-alt); border-top: 1px solid var(--mc-border); border-bottom: 1px solid var(--mc-border); }

.mc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.mc-step { position: relative; padding: 26px 24px; background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: var(--mc-radius); }
.mc-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--mc-primary);
    color: var(--mc-on-primary);
    font-weight: 700;
    margin-bottom: 14px;
}
.mc-step h3 { font-size: 1.08rem; margin: 0 0 6px; }
.mc-step p { color: var(--mc-muted); margin: 0; font-size: 0.93rem; }

.mc-cta { text-align: center; }
.mc-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.mc-cta p { color: var(--mc-muted); margin: 0 0 26px; }
.mc-cta .mc-hero-actions { justify-content: center; }

/* Customer logo marquee: identical groups slide left by half the track, then loop seamlessly. */
.mc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mc-customers { margin-top: 56px; scroll-margin-top: 80px; }
.mc-cta .mc-customers-label { margin: 0 0 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mc-muted); }
.mc-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mc-marquee-track { display: flex; width: max-content; animation: mc-marquee var(--mc-marquee-duration, 40s) linear infinite; }
.mc-marquee:hover .mc-marquee-track { animation-play-state: paused; }
.mc-marquee-group { display: flex; list-style: none; margin: 0; padding: 0; }
@keyframes mc-marquee { to { transform: translateX(-50%); } }
.mc-logo-tile {
    --tile-accent: var(--mc-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
    padding: 10px 18px 10px 10px;
    border-radius: 12px;
    border: 1px solid var(--mc-border);
    background: var(--mc-surface);
    white-space: nowrap;
}
.mc-logo-img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; }
.mc-logo-initial {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: color-mix(in srgb, var(--tile-accent) 18%, transparent);
    color: var(--tile-accent);
    border: 1px solid color-mix(in srgb, var(--tile-accent) 40%, transparent);
}
.mc-logo-name { font-weight: 600; font-size: 0.95rem; }

.mc-footer { border-top: 1px solid var(--mc-border); color: var(--mc-muted); font-size: 0.85rem; }
.mc-footer-inner { max-width: 1160px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mc-footer a { color: var(--mc-muted); text-decoration: none; margin-left: 16px; }
.mc-footer a:hover { color: var(--mc-accent); }

/* ===== Auth card ===== */
.mc-auth-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px; }
.mc-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    padding: 30px 28px;
}
.mc-auth-logo { display: block; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 13px; box-shadow: 0 8px 22px rgba(var(--mc-primary-rgb), 0.3); }
.mc-auth-card h1 { font-size: 1.5rem; margin: 0 0 6px; text-align: center; }
.mc-auth-card .mc-subtitle { color: var(--mc-muted); text-align: center; font-size: 0.92rem; margin: 0 0 22px; }
.mc-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mc-bg-alt); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.mc-tabs a { text-align: center; padding: 8px; border-radius: 8px; color: var(--mc-muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.mc-tabs a.active { background: var(--mc-surface-hover); color: var(--mc-text); }

.mc-field { margin-bottom: 14px; }
.mc-field label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 5px; }
.mc-field input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--mc-border);
    background: var(--mc-bg);
    color: var(--mc-text);
    font: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mc-field input:focus { border-color: var(--mc-primary); box-shadow: 0 0 0 3px rgba(var(--mc-primary-rgb), 0.22); }
.mc-field input.invalid { border-color: var(--mc-danger); }
.mc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-hint { font-size: 0.78rem; color: var(--mc-muted); margin-top: 4px; }
.mc-error { color: var(--mc-danger); font-size: 0.88rem; min-height: 1.3em; margin: 4px 0 8px; }
.mc-auth-footer { margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--mc-muted); }
.mc-info-note {
    display: flex;
    gap: 10px;
    background: rgba(var(--mc-primary-rgb), 0.08);
    border: 1px solid rgba(var(--mc-primary-rgb), 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--d-soft, #dfe3ea);
    margin-bottom: 18px;
}
.mc-info-note i { color: var(--mc-accent); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mc-public *, .mc-public *::before, .mc-public *::after { transition: none !important; animation: none !important; }
    .mc-preview { transform: none; }
    .mc-marquee { -webkit-mask-image: none; mask-image: none; }
    .mc-marquee-track { width: auto; }
    .mc-marquee-group { flex-wrap: wrap; justify-content: center; gap: 12px 0; width: 100%; }
    .mc-marquee-group .mc-logo-tile { margin: 0 8px; }
    .mc-marquee-dup { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .mc-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .mc-hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
    .mc-preview { transform: none; }
    .mc-steps { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .mc-feat-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .mc-feat { gap: 12px; }
}

@media (max-width: 600px) {
    .mc-section { padding: 52px 16px; }
    .mc-page-head { gap: 12px; }
    .mc-logo-tile { padding: 8px 14px 8px 8px; margin-right: 12px; }
    .mc-logo-img, .mc-logo-initial { width: 34px; height: 34px; }
    .mc-btn { padding: 8px 12px; }
    .mc-btn-lg { padding: 12px 20px; }
    .mc-hero-actions .mc-btn { flex: 1 1 100%; }
    .mc-footer a { margin: 0 16px 0 0; }
    .mc-field-row { grid-template-columns: 1fr; gap: 0; }

    .mc-window { font-size: 0.74rem; }
    .mc-window-body { padding: 12px; }
    .mc-hide-narrow { display: none !important; }
    .mc-hero-table .mc-mock-row { grid-template-columns: 0.75fr 1.6fr 1.25fr; }
    .mc-mini { font-size: 0.72rem; }
    .mc-mini .mc-window-body { padding: 12px; }
}

/* ===== Home page in the dashboard look (views/home.hbs: body.mc-home.dash-body, needs dashboard.css) ===== */
.mc-home h1, .mc-home h2, .mc-home h3, .mc-home h4 { letter-spacing: -0.015em; font-weight: 700; }
.mc-home .mc-eyebrow { color: var(--d-link); letter-spacing: 1.2px; }
.mc-home .mc-hero h1 { color: #ffffff; }
.mc-home .mc-flow-title {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
}
.mc-home .mc-flow-kicker {
    display: block;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.mc-home .mc-flow-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.35rem;
    max-width: 100%;
    margin-top: 14px;
    padding: 18px 8px 22px;
}
.mc-home .mc-flow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42em;
    max-width: 100%;
    padding: 0.42em 0.78em 0.42em 0.62em;
    border-radius: 14px;
    background: rgba(6, 14, 32, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 24px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    font-size: clamp(0.98rem, 1.7vw, 1.22rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
}
.mc-home .mc-flow-chip i { font-size: 1.12em; line-height: 1; }
.mc-home .mc-flow-chip.incoming { color: #1bff6d; transform: rotate(-6deg) translateY(-4px); }
.mc-home .mc-flow-chip.shoot { color: #f9ff12; transform: rotate(2deg) translateY(7px); }
.mc-home .mc-flow-chip.outgoing { color: #f1434e; transform: rotate(6deg) translateY(-2px); }
.mc-home .mc-flow-arrow {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.45rem;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.mc-home .mc-flow-arrow-down { transform: rotate(22deg) translateY(6px); }
.mc-home .mc-flow-arrow-up { transform: rotate(-24deg) translateY(-2px); }
.mc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mc-home .mc-hero-lead, .mc-home .mc-hero-note { color: #d3dcea; }

.mc-home .mc-hero {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1240px;
    margin: 22px auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background:
        radial-gradient(560px 300px at 82% 38%, rgba(59, 130, 246, 0.32), transparent 70%),
        radial-gradient(420px 220px at 60% 120%, rgba(37, 99, 235, 0.22), transparent 70%),
        linear-gradient(100deg, #0f1b33 0%, #132649 48%, #1a3a6e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -30px rgba(37, 99, 235, 0.55);
}
.mc-home .mc-hero-inner { padding: 56px 48px; }

.mc-home .mc-band { background: none; border: 0; }
.mc-home .mc-section { max-width: 1240px; padding: 56px 20px; }
.mc-home .mc-pages-intro { padding-bottom: 28px; }
.mc-home .mc-page-nav a { background: var(--d-surface); border-color: var(--d-border-strong); color: var(--d-text); }
.mc-home .mc-tour-icon { background: rgba(59, 130, 246, 0.13); border: 1px solid rgba(59, 130, 246, 0.12); color: #6ea8fe; }

/* Each page section is a dashboard-style card: intro beside one main window, three features below. */
.mc-home .mc-page {
    width: calc(100% - 40px);
    max-width: 1140px;
    margin: 0 auto 96px;
    padding: 40px 40px 40px;
    border-radius: 16px;
    border: 1px solid var(--d-border);
    background: var(--d-panel);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 36px;
    align-items: center;
}
.mc-home :is(.mc-page, .mc-hero) .mc-showcase { font-size: 0.74rem; width: 100%; max-width: 580px; justify-self: center; }
.mc-home :is(.mc-page, .mc-hero) .mc-showcase .mc-window-bar { padding: 8px 12px; }
.mc-home :is(.mc-page, .mc-hero) .mc-showcase .mc-window-body { padding: 12px; gap: 9px; }
.mc-home :is(.mc-page, .mc-hero) .mc-showcase .mc-mock-row { padding: 6px 0; gap: 6px; }
.mc-home .mc-page-head p { font-size: 0.92rem; }
.mc-home .mc-page-title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 26px;
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--d-text);
}
.mc-home .mc-page-title { display: flex; align-items: center; gap: 0.28em; }
.mc-home .mc-page-title .mc-tour-icon { width: 1.05em; height: 1.05em; border-radius: 0.24em; font-size: 1em; }
.mc-home .mc-page-title .mc-tour-icon i { font-size: 0.56em; line-height: 1; }
.mc-home .mc-page.mc-flip > .mc-page-title { justify-content: flex-end; text-align: right; }
.mc-home .mc-feat-grid { gap: 48px 56px; }
.mc-home .mc-feat { gap: 14px; }
.mc-home .mc-feat-text h4 { font-size: 0.98rem; margin-bottom: 4px; }
.mc-home .mc-feat-text p { font-size: 0.84rem; }
.mc-home .mc-hero-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mc-home .mc-page > .mc-page-head { grid-column: 1; grid-row: 2; flex-direction: column; margin: 0; }
.mc-home .mc-page > .mc-showcase { grid-column: 2; grid-row: 2; }
.mc-home .mc-page.mc-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.mc-home .mc-page.mc-flip > .mc-page-head { grid-column: 2; }
.mc-home .mc-page.mc-flip > .mc-showcase { grid-column: 1; transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
.mc-home .mc-page > .mc-feat-grid { grid-column: 1 / -1; margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--d-border); }
.mc-home .mc-page-head p, .mc-home .mc-feat-text p { color: var(--d-muted); }

.mc-home .mc-window { box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55); }
.mc-home .mc-window-bar { background: #0f1729; }
.mc-home .mc-window-bar i { background: #334155; }
.mc-home .mc-cal-day, .mc-home .mc-dms-tile, .mc-home .mc-dms-tabs span.on { background: #18233a; }
.mc-home .mc-step { background: var(--d-surface); border-color: var(--d-border); border-radius: 12px; }

/* Main windows: merch table (merch-view.js), shipments package table (shipments/table.js) */
.mc-cb { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--mc-muted); display: grid; place-items: center; font-size: 0.7rem; line-height: 1; }
.mc-cb.on { background: var(--mc-primary); border-color: var(--mc-primary); color: var(--mc-on-primary); }
.mc-x-merch .mc-mock-row { grid-template-columns: 12px 0.6fr 1.65fr 26px 1fr 0.45fr 0.55fr 0.3fr; }
.mc-x-merch .mc-mock-row.sel { background: rgba(var(--mc-primary-rgb), 0.1); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.mc-x-ship .mc-mock-row { grid-template-columns: 0.32fr 0.42fr 1.15fr 0.95fr 0.45fr 0.85fr 0.95fr; }
.mc-x-ship .mc-mock-row > span:nth-child(6), .mc-x-ship .mc-mock-row > span:last-child { overflow: visible; }
.mc-mock-actions.col { flex-direction: column; align-items: stretch; gap: 3px; }
.mc-mock-actions.col .mc-mock-action { text-align: center; font-size: 0.6rem; padding: 2px 5px; }
.mc-mock-action.warn { background: #ffc107; border-color: #ffc107; color: #212529; font-weight: 600; }
.mc-mock-action.done { background: rgba(25, 135, 84, 0.25); border-color: rgba(25, 135, 84, 0.6); color: #6fd38f; }
.mc-showcase.mc-calendar .mc-cal-day { min-height: 46px; }
.mc-feat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-shot-items.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
img.mc-thumb { object-fit: cover; display: block; background: #fff; }
.mc-trk-pill small { font-weight: 400; opacity: 0.85; }
.mc-trk-leaves { position: relative; align-items: center; }
.mc-trk-leaf.sel { border-color: var(--mc-primary); box-shadow: 0 0 0 1px var(--mc-primary); }
.mc-trk-tip { display: grid; gap: 1px; padding: 4px 8px; border-radius: 6px; background: #0b1220; border: 1px solid var(--mc-border); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6); font-size: 0.6rem; min-width: 0; position: relative; }
.mc-trk-tip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 8px; height: 8px; background: inherit; border-left: 1px solid var(--mc-border); border-bottom: 1px solid var(--mc-border); transform: translateY(-50%) rotate(45deg); }
.mc-trk-tip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-trk-tip small { font-family: Consolas, 'Courier New', monospace; color: var(--mc-muted); font-size: 0.56rem; }
/* Shipment Details section below the diagram (public/js/shipments/ui.js detailsHtml) */
.mc-trk-details { border-top: 1px solid #bcd443; padding-top: 8px; display: grid; gap: 6px; }
.mc-trk-details-head { display: flex; justify-content: space-between; align-items: center; }
.mc-trk-details-head b { font-size: 0.72rem; }
.mc-trk-details-head .mc-mock-action { font-size: 0.58rem; padding: 1px 6px; }
.mc-trk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin: 0; font-size: 0.62rem; }
.mc-trk-grid > div { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mc-trk-grid > div.wide { grid-column: 1 / -1; }
.mc-trk-grid dt { color: #bcd443; font-weight: 700; flex-shrink: 0; }
.mc-trk-grid dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-trk-grid dd.mono { font-family: Consolas, 'Courier New', monospace; }
.mc-trk-grid dd.link { text-decoration: underline; text-underline-offset: 2px; }
.mc-trk-grid .mc-ship-badge { font-size: 0.56rem; }
.mc-trk-details-head .mc-trk-pill { font-size: 0.56rem; padding: 1px 6px; }
.mc-trk-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: 8px; background: var(--mc-bg-alt); border: 1px solid var(--mc-border); }
.mc-trk-item-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--mc-border); }

/* Check-in modal (views/shipments-view.hbs #checkInModal, public/js/shipments/checkin.js) */
.mc-ci-title { display: flex; justify-content: space-between; align-items: center; }
.mc-ci-title b { color: #bcd443; font-size: 0.82rem; }
.mc-ci-title i { color: var(--mc-muted); }
.mc-ci { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
.mc-ci-main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.mc-ci-cam { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 368 / 272; }
.mc-ci-cam img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-ci-frame { position: absolute; inset: 14% 22%; border: 1.5px dashed rgba(188, 212, 67, 0.9); border-radius: 6px; }
.mc-ci-tag { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.56rem; font-weight: 600; }
.mc-ci-tag i { color: #bcd443; }
.mc-ci-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.mc-ci-btns .mc-mock-action { font-size: 0.6rem; }
.mc-ci-side { display: grid; gap: 5px; align-content: start; min-width: 0; }
.mc-ci-side h6 { margin: 0; color: #bcd443; font-size: 0.66rem; }
.mc-ci-prog { display: flex; justify-content: space-between; font-size: 0.58rem; color: var(--mc-muted); }
.mc-ci-bar { height: 5px; border-radius: 999px; background: var(--mc-bg-alt); overflow: hidden; }
.mc-ci-bar i { display: block; height: 100%; background: #198754; }
.mc-ci-slot { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 3px 4px; border-radius: 6px; border: 1px solid var(--mc-border); background: var(--mc-bg-alt); font-size: 0.6rem; min-width: 0; }
.mc-ci-slot > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-ci-slot small { display: block; font-family: Consolas, 'Courier New', monospace; font-size: 0.52rem; color: var(--mc-muted); }
.mc-ci-slot .mc-thumb, .mc-ci-slot img { width: 22px; height: 22px; border-radius: 4px; font-size: 0.7rem; object-fit: cover; }
.mc-ci-slot > i { color: var(--mc-muted); }
.mc-ci-slot.done > i { color: #198754; }
.mc-ci-slot.cur { border-color: #bcd443; box-shadow: 0 0 0 1px #bcd443; }
.mc-ci-slot.cur > i { color: #bcd443; }

/* DMS "Inventory System" card (public/js/org-settings.js) */
.mc-org-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--mc-bg-alt); border-left: 3px solid var(--mc-primary); min-width: 0; }
.mc-org-card > div { min-width: 0; }
.mc-org-eyebrow { display: block; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--mc-muted); }
.mc-org-name { display: block; font-size: 0.95rem; }
.mc-org-id { display: inline-flex; align-items: center; gap: 6px; color: var(--mc-muted); font-size: 0.66rem; }
.mc-org-id code { font-family: Consolas, 'Courier New', monospace; color: var(--mc-primary); padding: 1px 6px; border-radius: 4px; background: rgba(var(--mc-primary-rgb), 0.12); }

@media (prefers-reduced-motion: reduce) {
    .mc-home .mc-page.mc-flip > .mc-showcase,
    .mc-home .mc-flow-chip,
    .mc-home .mc-flow-arrow { transform: none; }
}
@media (max-width: 960px) {
    .mc-home .mc-page, .mc-home .mc-page.mc-flip { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
    .mc-home .mc-page > .mc-page-head,
    .mc-home .mc-page.mc-flip > .mc-page-head { grid-column: 1; grid-row: 2; margin-bottom: 28px; }
    .mc-home .mc-page > .mc-showcase,
    .mc-home .mc-page.mc-flip > .mc-showcase { grid-column: 1; grid-row: 3; transform: none; }
    .mc-home .mc-page.mc-flip > .mc-page-title { justify-content: flex-start; text-align: left; }
    .mc-home .mc-page-title { margin-bottom: 18px; }
    .mc-home .mc-hero-inner { padding: 40px 32px; }
}
@media (max-width: 820px) {
    .mc-home .mc-flow-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
        margin-top: 10px;
        padding: 8px 0 10px;
    }
    .mc-home .mc-flow-chip { font-size: clamp(0.92rem, 4.2vw, 1.08rem); }
    .mc-home .mc-flow-chip.incoming { margin-left: 0; transform: rotate(-6deg); }
    .mc-home .mc-flow-chip.shoot { margin-left: 1.15rem; transform: rotate(2deg); }
    .mc-home .mc-flow-chip.outgoing { margin-left: 0.15rem; transform: rotate(6deg); }
    .mc-home .mc-flow-arrow-down,
    .mc-home .mc-flow-arrow-up { margin-left: 1.35rem; transform: rotate(50deg); font-size: 1.2rem; }
}
@media (max-width: 600px) {
    .mc-home .mc-section { padding: 40px 12px; }
    .mc-home .mc-hero, .mc-home .mc-page { width: calc(100% - 24px); }
    .mc-home .mc-hero { margin-top: 12px; }
    .mc-home .mc-hero-inner { padding: 30px 20px; gap: 32px; }
    .mc-home .mc-flow-kicker { font-size: clamp(1.55rem, 7vw, 1.9rem); }
    .mc-home .mc-page, .mc-home .mc-page.mc-flip { padding: 26px 16px; }
    .mc-home .mc-page { margin-bottom: 60px; }
    .mc-home .mc-page > .mc-feat-grid { margin-top: 32px; padding-top: 28px; }
    .mc-home .mc-feat-grid { gap: 52px; }
    .mc-x-merch .mc-mock-row { grid-template-columns: 12px 0.6fr 1.6fr 24px 1fr; }
    .mc-x-ship .mc-mock-row { grid-template-columns: 0.3fr 0.45fr 1.2fr 0.95fr 1fr; }
    .mc-feat-grid.two { grid-template-columns: minmax(0, 1fr); }
    .mc-ci { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
    .mc-home .mc-flow-chip,
    .mc-home .mc-flow-arrow,
    .mc-home .mc-flow-arrow-down,
    .mc-home .mc-flow-arrow-up { transform: none; }
}

/* ===== Light theme (palette variables live in dashboard.css) ===== */
/* Landing hero: a brighter blue banner with light text, like the dashboard hero. */
[data-theme="light"] .mc-home .mc-hero {
    --d-link: #bfdbfe;
    color: #ffffff;
    border-color: rgba(37, 99, 235, 0.25);
    background:
        radial-gradient(560px 300px at 82% 38%, rgba(147, 197, 253, 0.45), transparent 70%),
        radial-gradient(420px 220px at 60% 120%, rgba(191, 219, 254, 0.3), transparent 70%),
        linear-gradient(100deg, #1e4fd6 0%, #2f6cf0 48%, #4a8df8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 50px -28px rgba(37, 99, 235, 0.65);
}
[data-theme="light"] .mc-home .mc-hero-lead, [data-theme="light"] .mc-home .mc-hero-note { color: #e0ecff; }
[data-theme="light"] .mc-home .mc-hero h1 .mc-flow-chip :is(.mc-hl, i) { text-shadow: 0 1px 2px rgba(10, 25, 70, 0.55), 0 0 1px rgba(10, 25, 70, 0.6); }
[data-theme="light"] .mc-home .mc-hero .mc-btn-primary { background: #ffffff; color: #1d4ed8 !important; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.45); }
[data-theme="light"] .mc-home .mc-hero .mc-btn-primary:hover { background: #eff6ff; }
[data-theme="light"] .mc-home .mc-hero .mc-btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #ffffff !important; }
[data-theme="light"] .mc-home .mc-hero .mc-btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* Cards, steps and auth card: white on the pale page, soft shadows instead of dark glow. */
[data-theme="light"] .mc-home .mc-page,
[data-theme="light"] .mc-home .mc-step,
[data-theme="light"] .mc-auth-card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px -22px rgba(15, 23, 42, 0.22); }
[data-theme="light"] .mc-home .mc-tour-icon { color: #1d4ed8; }
[data-theme="light"] .mc-home .mc-page-title { color: #0f172a; }
[data-theme="light"] .mc-tabs a.active { background: #ffffff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
[data-theme="light"] .mc-logo-initial { color: color-mix(in srgb, var(--tile-accent) 62%, #000); }

/* Mock app windows */
[data-theme="light"] .mc-window { color: var(--mc-text); }
[data-theme="light"] .mc-home .mc-window { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 22px 48px -24px rgba(15, 23, 42, 0.35); }
[data-theme="light"] .mc-home .mc-window-bar { background: #f1f5f9; }
[data-theme="light"] .mc-home .mc-window-bar i:nth-child(1) { background: #f87171; }
[data-theme="light"] .mc-home .mc-window-bar i:nth-child(2) { background: #fbbf24; }
[data-theme="light"] .mc-home .mc-window-bar i:nth-child(3) { background: #34d399; }
[data-theme="light"] .mc-home .mc-cal-day,
[data-theme="light"] .mc-home .mc-dms-tile,
[data-theme="light"] .mc-home .mc-dms-tabs span.on { background: #ffffff; }
[data-theme="light"] .mc-mock-row { border-bottom-color: rgba(15, 23, 42, 0.07); }
[data-theme="light"] .mc-mock-row .mono,
[data-theme="light"] .mc-mock-action { color: #334155; }
[data-theme="light"] .mc-mock-action.primary { color: var(--mc-on-primary); }
[data-theme="light"] .mc-mock-action.danger { color: var(--mc-danger); }
[data-theme="light"] .mc-mock-action.ship { color: #ffffff; }
[data-theme="light"] .mc-mock-action.warn { color: #212529; }
[data-theme="light"] .mc-mock-action.done { color: #15803d; }
[data-theme="light"] .mc-ci-title b,
[data-theme="light"] .mc-ci-side h6 { color: #4d7c0f; }
[data-theme="light"] .mc-switch { background: #cbd5e1; }
[data-theme="light"] .mc-switch::after { background: #ffffff; }
[data-theme="light"] .mc-count-badge { color: #ffffff; }
[data-theme="light"] .mc-ship-badge.no-info { box-shadow: inset 0 0 0 1px #cbd5e1; }
[data-theme="light"] .mc-des-chip { border-color: #94a3b8; }
[data-theme="light"] .mc-des-chip.text { border-color: var(--mc-primary); }
[data-theme="light"] .mc-des-chip.qr { border-color: #ef4444; }
[data-theme="light"] .mc-des-chip.bar { border-color: #3b82f6; }
[data-theme="light"] .mc-des-canvas { box-shadow: 0 0 0 1px #cbd5e1, 0 6px 16px -10px rgba(15, 23, 42, 0.35); }

/* Status colors tuned for dark backgrounds, darkened enough to read on white. */
[data-theme="light"] .mc-zone.on-set { color: #0f766e; }
[data-theme="light"] .mc-zone.atw { color: #a16207; }
[data-theme="light"] .mc-zone.pre-staging { color: #1d6fd1; }
[data-theme="light"] .mc-eta-soon,
[data-theme="light"] .mc-trk-pill.wait { color: #a16207; }
[data-theme="light"] .mc-mock-btn.primary .bolt { color: #f59e0b; }
[data-theme="light"] .mc-trk-pending { border-color: #f59e0b; color: #a16207; }
[data-theme="light"] .mc-trk-tip { background: #ffffff; border-color: #cbd5e1; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.35); }
[data-theme="light"] .mc-trk-details { border-top-color: #84cc16; }
[data-theme="light"] .mc-trk-grid dt { color: #4d7c0f; }
[data-theme="light"] .mc-trk-pill.ok,
[data-theme="light"] .mc-copied,
[data-theme="light"] .mc-active { color: #15803d; }
[data-theme="light"] .mc-avatar.a2 { color: #0f766e; }
[data-theme="light"] .mc-avatar.a3 { color: #9333ea; }
