:root { color-scheme: dark; --paper:#0d0d0d; --ink:#f0f0f0; --muted:#b3b3b3; --line:#414141; --teal:#c8c8c8; }
body { background:radial-gradient(ellipse at 70% 0%,#2e2e2e55,transparent 60%),#0d0d0d; }
.topbar { height:74px; padding:0 28px; gap:22px; background:#0b0b0b; border-bottom:1px solid #5d5d5d; color:#dedede; }
.topbar .brand { margin:0; flex-shrink:0; }
.topbar .brand img { width:184px; display:block; mix-blend-mode:normal; filter:url(#logo-clear); }
.topbar .app-name { padding:0 0 0 20px; border-left:1px solid #525252; color:#eaeaea; font-size:13px; white-space:nowrap; }
.topbar nav { display:flex; gap:8px; margin-right:auto; align-items:center; }
.topbar nav a,.topbar nav button { background:transparent; border:1px solid transparent; border-radius:6px; color:#bfbfbf; padding:10px 14px; font:inherit; white-space:nowrap; }
.topbar nav .current { color:#dcdcdc; border-color:#636363; background:#2b2b2b; box-shadow:inset 0 -2px #cacaca; }
.topbar form { margin:0; }
.topbar .primary,.topbar .secondary { padding:9px 14px; }
main { max-width:1760px; padding:24px 28px 32px; animation:none; }
.workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; }
.workspace-heading h1 { font-size:25px; letter-spacing:-.7px; margin:0 0 4px; }
.workspace-heading p { font-size:10px; color:#b3b3b3; }
.workspace-actions { display:flex; align-items:center; gap:10px; }
.workspace-actions select { max-width:230px; padding:10px 28px 10px 12px; }
.rate-details { border:1px solid #393939; background:#161616; border-radius:6px; margin-bottom:18px; color:#cccccc; }
.rate-details summary { padding:9px 13px; font-size:10px; cursor:pointer; }
.rate-details summary > span:first-child { font-weight:700; color:#bfbfbf; margin-right:15px; }
.rate-details p { padding:0 13px 12px; font-size:10px; color:var(--muted); }
.overview-grid { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(0,1.65fr); gap:18px; margin-bottom:22px; }
.financial-summary,.product-navigation { border:1px solid #515151; border-radius:10px; overflow:hidden; background:linear-gradient(140deg,#1c1c1c,#121212); }
.financial-summary { padding:25px 24px 18px; display:flex; flex-direction:column; }
.margin-heading { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.margin-heading h2 { font-size:11px; letter-spacing:1.3px; font-weight:600; text-transform:uppercase; }
.metric-scope { font-size:9px; color:#a5a5a5; }
.main-value { font-family:'Bahnschrift','Arial Narrow',Arial,sans-serif; font-size:clamp(60px,6vw,88px); line-height:1.05; font-weight:650; letter-spacing:-3px; color:#dedede; font-variant-numeric:tabular-nums; margin:14px 0 6px; }
#marginCaption { font-size:11px; color:#c5c5c5; }
.supporting-metrics { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:20px; border-top:1px solid #555555; margin-top:18px; padding-top:16px; }
.supporting-metrics > div+div { border-left:1px solid #555555; padding-left:20px; }
.supporting-metrics h3 { font-size:9px; text-transform:uppercase; font-weight:500; letter-spacing:.8px; color:#c2c2c2; margin:0 0 12px; }
.supporting-metrics #plannedCost,.supporting-metrics #productCount { font-family:'Bahnschrift','Arial Narrow',Arial,sans-serif; font-size:clamp(24px,2.4vw,34px); font-weight:600; color:#e3e3e3; letter-spacing:-.8px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.supporting-metrics p { margin-top:8px; color:#ababab; font-size:9px; }
.basis-caption { font-size:9px; color:#aaaaaa; margin-top:auto; padding-top:18px; }
.product-navigation { padding:14px; display:flex; flex-direction:column; }
.group-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 2px 12px; }
.group-heading h2 { font-size:11px; text-transform:uppercase; letter-spacing:1.6px; }
.group-heading .secondary { font-size:10px; padding:7px 12px; }
.category-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; flex:1; }
.category-tile { display:flex; flex-direction:column; position:relative; min-width:0; padding:0; overflow:hidden; border:1px solid #4f4f4f; border-radius:8px; text-align:left; background:#131313; color:#f6f6f6; }
.category-tile:hover { border-color:#a7a7a7; filter:brightness(1.1); }
.category-tile[aria-pressed="true"] { border-color:#d3d3d3; box-shadow:inset 0 0 0 1px #d3d3d3,0 0 16px #8989891c; }
.component-art { display:block; width:100%; height:clamp(150px,13vw,195px); aspect-ratio:auto; background-image:url('dashboard-art.jpg'); background-repeat:no-repeat; }
.component-art.turbo { background-size:372% auto; background-position:4% 10%; }
.component-art.fuelling { background-size:356% auto; background-position:100% 28%; }
.component-art.pistons { background-size:356% auto; background-position:38% 100%; }
.component-art.generic { background-image:linear-gradient(135deg,#343434,#131313); }
.category-label { display:block; padding:12px 13px; margin-top:auto; background:linear-gradient(0deg,#101010,#1e1e1e); border-top:1px solid #404040; font-family:'Bahnschrift','Arial Narrow',Arial,sans-serif; font-size:clamp(15px,1.4vw,21px); font-style:italic; text-transform:uppercase; font-weight:650; line-height:1.2; }
.category-tile[aria-pressed="true"] .category-label { color:#ececec; }
#allGroups[aria-pressed="true"] { color:#ececec; border-color:#979797; background:#2c2c2c; }
.review-strip { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; margin-top:13px; border:1px solid #676767; background:linear-gradient(90deg,#2b2b2b,#1f1f1f); border-radius:6px; color:#d1d1d1; }
.review-strip > div { display:flex; align-items:center; gap:10px; }
.review-number { min-width:24px; text-align:center; font-size:17px; font-weight:700; }
#spotlightTitle { font-size:11px; }
.review-strip .text-button { color:#d3d3d3; font-size:10px; }
.review-description { font-size:9px; color:#c5c5c5; margin:8px 3px 0; }
.catalog { border-color:#525252; background:#181818; }
.catalog-heading { padding:18px 20px; margin:0; background:linear-gradient(110deg,#272727,#181818); }
.catalog-heading h2 { font-size:16px; }
.catalog-heading p { font-size:10px; }
.filters { padding:15px 20px; gap:9px; background:#161616; }
.filters select { max-width:170px; }
.filters .search { flex-basis:200px; }
th { padding:12px 15px; font-size:9px; background:#121212; color:#c5c5c5; }
td { padding:14px 15px; font-size:11px; }
.sku { font-size:10px; color:#b8b8b8; max-width:270px; }
.product-button { font-size:12px; color:#f0f0f0; }
.number { font-variant-numeric:tabular-nums; }
.bottom-panels { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }
.analysis-details,.notice-details { border:1px solid #454545; border-radius:7px; background:#171717; }
.bottom-panels summary { padding:15px 18px; cursor:pointer; color:#dddddd; font-size:11px; }
.notice-details summary { color:#c6c6c6; }
.bottom-panels .group-chart { padding:0 18px 10px; margin:0; }
.notice-details .notice { margin:0; border:0; border-top:1px solid #3f3f3f; border-radius:0 0 7px 7px; }
.group-row { padding:0; }
dialog { background:#191919; }
@media(min-width:1600px) { main { padding-top:28px; } }
@media(max-width:1150px) {
  .topbar { padding:0 20px; gap:12px; }
  .topbar .app-name { display:none; }
  .overview-grid { grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr); gap:14px; }
  .financial-summary { padding:22px 18px; }
  .supporting-metrics { gap:12px; }
  .supporting-metrics > div+div { padding-left:12px; }
  .supporting-metrics #plannedCost { font-size:24px; }
  .category-tiles { gap:8px; }
  .category-label { font-size:15px; padding:10px 8px; }
}
@media(max-width:900px) {
  .overview-grid { grid-template-columns:1fr; }
  .financial-summary { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; }
  .margin-heading { grid-column:1; }
  .metric-scope { display:none; }
  .main-value { grid-column:1; grid-row:2; margin:12px 0 8px; font-size:68px; }
  #marginCaption { grid-column:1; grid-row:3; }
  .supporting-metrics { grid-column:2; grid-row:1 / 4; border-top:0; margin-top:0; align-self:center; padding-top:0; }
  .basis-caption { grid-column:1 / -1; }
  .component-art { height:clamp(150px,13vw,195px); aspect-ratio:auto; }
  .workspace-heading { align-items:flex-start; }
  .workspace-actions { flex-wrap:wrap; justify-content:flex-end; }
  .topbar nav { gap:0; }
  .topbar nav a,.topbar nav button { padding:8px; font-size:11px; }
  .topbar .brand img { width:150px; }
}
@media(max-width:650px) {
  main { padding:18px 14px 24px; }
  .topbar { height:auto; padding:12px 14px; flex-wrap:wrap; }
  .topbar .brand { margin-right:auto; }
  .topbar nav { order:3; width:100%; }
  .topbar .primary,.topbar .secondary { padding:8px 10px; font-size:10px; }
  .workspace-heading { display:block; }
  .workspace-actions { margin-top:14px; justify-content:flex-start; gap:8px; }
  .workspace-actions select { max-width:190px; font-size:10px; }
  .workspace-actions .secondary { font-size:10px; }
  .rate-details summary { line-height:1.7; }
  .rate-details summary > span:first-child { display:block; }
  .financial-summary { display:flex; }
  .supporting-metrics { margin-top:20px; border-top:1px solid #555555; padding-top:20px; }
  .main-value { font-size:70px; }
  .category-tiles { overflow-x:auto; grid-template-columns:repeat(3,minmax(145px,1fr)); padding-bottom:5px; }
  .bottom-panels { grid-template-columns:1fr; }
  .review-strip { align-items:flex-start; }
  .catalog-heading { padding:16px; }
  .filters { padding:14px 16px; }
}

/* MEOWRACE stable columns */
html { scrollbar-gutter: stable; }
.catalog .table-scroll table { table-layout: fixed; width: 100%; min-width: 1100px; }
.catalog thead th:nth-child(1) { width: 21%; }
.catalog thead th:nth-child(2) { width: 14%; }
.catalog thead th:nth-child(3) { width: 11%; }
.catalog thead th:nth-child(4) { width: 12%; }
.catalog thead th:nth-child(5) { width: 12%; }
.catalog thead th:nth-child(6) { width: 12%; }
.catalog thead th:nth-child(7) { width: 7%; }
.catalog thead th:nth-child(8) { width: 11%; }
.catalog td:first-child, .catalog td:nth-child(2), .catalog td:last-child {
  white-space: normal; overflow-wrap: anywhere;
}
.catalog td:last-child .status-chip { white-space: normal; }
.catalog .status-chip::before { flex-shrink: 0; }
/* End MEOWRACE stable columns */


/* MEOWRACE monochrome */
:root { --paper:#080808; --ink:#f5f5f5; --muted:#b0b0b0; --line:#353535; --blue:#00bfff; --teal:#00bfff; --green:#dedede; --orange:#fff; --nav:#080808; }
body,.shell { background:#080808; background-image:none; }
.topbar { background:#050505; border-bottom-color:#333; }
.topbar .brand img { filter:url(#logo-clear) grayscale(1) brightness(1.8); }
.topbar nav .current { color:#00bfff; background:#0a1c22; border-color:#0086b3; box-shadow:inset 0 -2px #00bfff; }
.primary { background:#00bfff; color:#080808; border-color:#00bfff; box-shadow:none; }
.primary:hover { background:#43d0ff; }
.secondary,select,.search { background:#151515; border-color:#484848; color:#eee; box-shadow:none; }
.secondary:hover { background:#242424; border-color:#aaa; }
.financial-summary,.product-navigation,.catalog,.panel,dialog { background:#111; border-color:#393939; }
.main-value,.supporting-metrics #plannedCost,.supporting-metrics #productCount,.cost { color:#fff; }
.catalog-heading,.filters { background:#141414; }
.rate-details,.analysis-details,.notice-details { background:#101010; border-color:#373737; }
.rate-details summary > span:first-child { color:#ddd; }
.component-art,.heading::before { filter:grayscale(1); }
.category-tile,.category-label { background:#151515; border-color:#3a3a3a; color:#fff; }
.category-tile[aria-pressed="true"] { border-color:#00bfff; box-shadow:inset 0 0 0 1px #00bfff; }
.category-tile[aria-pressed="true"] .category-label { color:#00bfff; }
#allGroups[aria-pressed="true"] { background:#0a1c22; color:#00bfff; border-color:#0086b3; }
.review-strip,.notice.error { background:#202020; color:#fff; border-color:#888; border-left:3px solid #eee; }
.review-strip .text-button,.text-button,.product-button:hover { color:#00bfff; }
.notice-details summary,.risk { color:#fff; }
.status-chip.risk { font-weight:650; }
.status-chip.risk::before { border-radius:0; transform:rotate(45deg); }
.healthy { color:#c6c6c6; }
th { background:#0b0b0b; color:#c8c8c8; }
tbody tr { background:#101010; }
tbody tr:nth-child(even) { background:#191919; }
tbody tr:hover { background:#252525; }
td { border-color:#333; color:#ccc; }
.product-button { color:#fff; }
.count-pill,.category-chip,.detail-summary,.close { background:#282828; color:#eee; }
.group-track>div,.margin-track i,.margin-track i.low { background:#d6d6d6; box-shadow:none; }
.segment,.dot { filter:grayscale(1); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid #00bfff; outline-offset:3px; }
::selection { background:#00bfff; color:#080808; }
/* End MEOWRACE monochrome */


/* MR titlebar glow */
.topbar { position:relative; z-index:2; border-bottom:1px solid #00bfff80; box-shadow:0 3px 14px #00bfff20; }
/* End MR titlebar glow */
/* MR product editor */
.row-edit-actions { display:flex; gap:12px; margin-top:8px; }
.row-edit-actions button { font-size:10px; }
.product-editor { width:min(680px,calc(100% - 32px)); background:#111; color:#fff; }
.editor-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
.editor-fields label { display:flex; flex-direction:column; gap:7px; font-size:12px; color:#ddd; }
.editor-fields label:nth-child(1),.editor-fields label:nth-child(2),.editor-fields label:last-child { grid-column:1/-1; }
.editor-fields input,.editor-fields textarea { width:100%; min-width:0; padding:10px; border:1px solid #666; border-radius:6px; background:#080808; color:#fff; font:inherit; }
.editor-fields textarea { min-height:70px; resize:vertical; }
.editor-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.editor-error { color:#fff; font-weight:600; }
.editor-error:not(:empty) { padding:12px; border-left:3px solid white; background:#292929; }
.editor-rate { padding:12px; border:1px solid #444; border-radius:6px; margin-top:16px; }
.product-editor button:disabled { opacity:.6; cursor:wait; }
@media(max-width:500px){.editor-fields{grid-template-columns:1fr}.product-editor{padding:20px}}
/* End MR product editor */
