/* Mareco visual direction (Sept 2026): Mareco Ink, Deep Navy, Signal Blue as the sparing accent,
   Cool Alloy and Cloud for support; Inter only. Blue guides attention; it is not decoration. */
:root {
  --ink: #061B35; --ink-2: #082B52; --navy: #082B52; --blue: #1476D4; --blue-2: #0F62B3; --blue-soft: #E7F1FC;
  --accent: var(--blue); --accent-2: var(--blue-2); --alloy: #AEBECB; --cloud: #EEF3F7;
  --paper: #ffffff; --card: #ffffff; --muted: #566B7F; --line: #DCE5ED; --ok: #15803d; --warn: #b45309;
  --radius: 14px; --shadow: 0 10px 30px -12px rgba(6,27,53,.22);
}
html { scroll-behavior: smooth; }
body { background: #fff; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display-font { font-family: "Inter", system-ui, sans-serif; font-weight: 650; letter-spacing: -.015em; }
a { color: var(--ink-2); }
a:hover { color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover, .btn-ink:focus { background: var(--ink-2); color: #fff; }
.btn-accent { background: var(--blue); color: #fff; border: 0; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--blue-2); color: #fff; }
.btn-outline-ink { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.text-muted-2 { color: var(--muted) !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(20,33,61,.35); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--blue); display: grid; place-items: center; font-family: "Inter", sans-serif; font-weight: 800; font-size: 1.2rem; }
.brand-name { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.25rem; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-mark { height: 34px; width: auto; display: block; }
.site-footer .brand-name { font-weight: 700; letter-spacing: -.01em; }
.search-pill { position: relative; }
.search-pill input { border-radius: 999px; padding-left: 2.6rem; padding-right: 1rem; height: 44px; border: 1.5px solid var(--line); background: #fff; }
.search-pill input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,118,212,.14); }
.search-pill svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.cart-btn { position: relative; border-radius: 999px; }
.cart-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--blue); color: #fff; }
.cat-nav { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 0 .7rem; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; font-size: .875rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.cat-nav a:hover, .cat-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Hero */
.hero { background: radial-gradient(700px 360px at 88% 0%, rgba(20,118,212,.28), transparent 62%), linear-gradient(160deg, var(--ink) 0%, var(--navy) 100%); color: #fff; border-radius: 0 0 28px 28px; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.hero .lead { color: rgba(255,255,255,.78); font-weight: 400; }
.hero .search-pill input { height: 54px; border: 0; font-size: 1.05rem; }
.hero-stat { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.4rem; }
.hero-stat small { display: block; font-family: "Inter", sans-serif; font-weight: 400; font-size: .8rem; color: rgba(255,255,255,.7); }
.collage { position: relative; min-height: 380px; }
.collage .tile { position: absolute; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); width: 46%; aspect-ratio: 1; transition: transform .4s; }
.collage .tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.collage .t1 { left: 4%; top: 8%; transform: rotate(-6deg); }
.collage .t2 { right: 4%; top: 0; transform: rotate(5deg); width: 50%; }
.collage .t3 { left: 28%; bottom: 0; transform: rotate(2deg); width: 44%; }
.collage:hover .tile { transform: rotate(0); }
.tile-tag { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }

/* Sections */
.section-title { font-weight: 650; font-size: 1.6rem; letter-spacing: -.015em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--blue); }
.cat-tile { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile .img { aspect-ratio: 4/3; background: var(--cloud); display: grid; place-items: center; padding: 1rem; }
.cat-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-tile .body { padding: .8rem 1rem 1rem; }
.cat-tile .name { font-weight: 600; font-size: .95rem; }
.cat-tile .n { color: var(--muted); font-size: .8rem; }

/* Product card */
.pcard { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.pcard .img { aspect-ratio: 1; background: var(--cloud); display: grid; place-items: center; padding: 1.1rem; position: relative; }
.pcard img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.pcard:hover img { transform: scale(1.04); }
.pcard .flag { position: absolute; top: .7rem; left: .7rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px; background: var(--ink); color: #fff; }
.pcard .body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.pcard .cat { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pcard .name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.pcard .price { margin-top: auto; padding-top: .5rem; display: flex; align-items: baseline; gap: .4rem; }
.pcard .price b { font-family: "Inter", sans-serif; font-size: 1.05rem; }
.pcard .price small { color: var(--muted); }
.swatches { display: flex; gap: 3px; margin-top: .35rem; }
.swatches span { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* Steps */
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: "Inter", sans-serif; font-weight: 800; }

/* Product page */
.gallery-main { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 1.5rem; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0; }
.thumbs button { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; padding: 4px; }
.thumbs button.active { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.price-hero { font-family: "Inter", sans-serif; font-size: 2rem; font-weight: 700; }
.part-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.part-swatch.active { box-shadow: 0 0 0 2.5px var(--blue); }
.part-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; cursor: pointer; }
.part-chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.breaks td, .breaks th { padding: .35rem .6rem; }
.breaks tr.active td { background: var(--blue-soft); font-weight: 600; }
.stock-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; background: var(--cloud); }
.stock-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.stock-pill.in .dot { background: var(--ok); } .stock-pill.low .dot { background: var(--warn); } .stock-pill.out .dot { background: #b91c1c; }
.spec-table td:first-child { color: var(--muted); width: 38%; }
.sticky-card { position: sticky; top: 90px; }

/* Cart / checkout */
.cart-thumb { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,118,212,.14); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 4rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-family: "Inter", sans-serif; }

pre.xml { background: var(--ink); color: #e5e7eb; border-radius: 12px; padding: 1rem; font-size: .78rem; max-height: 70vh; overflow: auto; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
@media (max-width: 767px) { .collage { min-height: 260px; margin-top: 1.5rem; } .hero { border-radius: 0 0 20px 20px; } }
.cat-nav a.uc { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.cat-nav a.uc:hover, .cat-nav a.uc.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav-sep { display: inline-block; width: 1px; background: var(--line); margin: .2rem .4rem; align-self: stretch; }
.uc-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s; }
.uc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.uc-tile .img { aspect-ratio: 5/4; background: var(--cloud); display: grid; place-items: center; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.uc-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.uc-tile .body { padding: 1rem 1.1rem 1.1rem; }
.uc-tile .name { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.1rem; }
.uc-tile .short { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.uc-tile .n { margin-top: .6rem; font-size: .78rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.event { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--ink); }
.event:hover { box-shadow: var(--shadow); color: var(--ink); }
.event .date { flex: 0 0 auto; text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: .4rem .6rem; min-width: 3.4rem; line-height: 1.1; }
.event .date b { display: block; font-family: "Inter", sans-serif; font-size: 1.15rem; color: #fff; }
.event .date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.event .name { font-weight: 600; }
.event .meta { font-size: .8rem; color: var(--muted); }
.needby { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.needby .ok { color: var(--ok); font-weight: 600; } .needby .warn { color: var(--warn); font-weight: 600; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.size-grid label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--muted); }
.size-grid label b { color: var(--ink); font-size: .9rem; }
.size-grid input { width: 100%; }
.tips li { margin-bottom: .35rem; }

.deco { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.deco-loc { border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: .8rem; }
.deco-loc:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.imprint-box { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); border: 2px dashed var(--blue); border-radius: 4px; display: grid; place-items: center; pointer-events: none; }
.imprint-box img { max-width: 92%; max-height: 92%; object-fit: contain; }
.imprint-label { position: absolute; bottom: -1.4rem; left: 0; font-size: .7rem; color: var(--blue-2); white-space: nowrap; background: var(--card); padding: 0 .3rem; border-radius: 4px; }
.deco-summary { font-size: .8rem; color: var(--muted); }
.status-steps { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 0; }
.status-steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 9px; height: 2px; background: var(--line); }
.step-item { position: relative; flex: 1; text-align: center; font-size: .8rem; color: var(--muted); }
.step-item .dot { display: block; width: 20px; height: 20px; border-radius: 50%; margin: 0 auto .35rem; background: var(--card); border: 2px solid var(--line); position: relative; }
.step-item.done .dot { background: var(--ok); border-color: var(--ok); }
.step-item.current .dot { box-shadow: 0 0 0 4px rgba(21,128,61,.18); }
.step-item.done .lbl { color: var(--ink); font-weight: 600; }

/* Image boxes: fixed aspect ratio, image fitted inside (grid centering alone let tall images overflow). */
.uc-tile .img, .cat-tile .img, .pcard .img { position: relative; overflow: hidden; padding: 0; }
.uc-tile .img img, .cat-tile .img img, .pcard .img img { position: absolute; inset: 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 2.2rem); max-width: none; max-height: none; object-fit: contain; }
.pcard:hover img { transform: scale(1.04); }
.pcard .flag { z-index: 1; }

/* ---- Compact header (single row, expanding search) ---- */
.site-header .topbar { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.site-header .brand-name { display: inline; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0 0 0 .5rem; padding: 0; flex: 1 1 auto; }
.nav-links > li > a { display: inline-block; padding: .45rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links > li > a:hover, .nav-links > li > a.active { background: var(--cloud); }
.nav-links .dropdown-toggle::after { margin-left: .35rem; opacity: .6; }
.shop-menu { border: 1px solid var(--line); border-radius: 12px; padding: .4rem; box-shadow: var(--shadow); min-width: 14rem; }
.shop-menu .dropdown-item { border-radius: 8px; padding: .45rem .8rem; }
.shop-menu .dropdown-item.active, .shop-menu .dropdown-item:active { background: var(--ink); color: #fff; }
.actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .7rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.icon-btn:hover { background: var(--cloud); color: var(--ink); }
.cart-btn { height: 40px; }
.menu-btn { background: transparent; border: 0; color: var(--ink); padding: .3rem; margin-left: -.3rem; }
/* search: hidden by default, slides in over the nav links */
.search-inline { flex: 0 0 auto; width: 0; overflow: hidden; opacity: 0; transition: width .2s ease, opacity .15s ease; margin-left: auto; }
.search-inline input { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 1rem; }
.site-header.search-open .search-inline { width: min(420px, 45vw); opacity: 1; }
.site-header.search-open .nav-links { visibility: hidden; }
.site-header.search-open .actions { margin-left: 0; }
/* mobile menu */
.mobile-menu { display: flex; flex-direction: column; padding: .5rem 0 1rem; border-top: 1px solid var(--line); }
.mobile-menu > a { padding: .6rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-cats { display: flex; flex-wrap: wrap; gap: .4rem; padding: .4rem 0 .6rem; }
.mobile-cats a { font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: #fff; }
@media (max-width: 991.98px) { .site-header.search-open .search-inline { width: 100%; } .site-header .topbar { gap: .6rem; } }

/* mockups */
.mockup-caption { position: absolute; left: .75rem; bottom: .75rem; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .65rem; pointer-events: auto; }
.imprint-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.imprint-editor { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.imprint-editor canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; user-select: none; }
.imprint-preview { display: block; width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.imprint-src { border: 1px solid var(--line); color: var(--ink); background: #fff; font-weight: 600; }
.imprint-src-manual { background: var(--ok); border-color: var(--ok); color: #fff; }
.imprint-src-ai { background: var(--blue); border-color: var(--blue); color: #fff; }
.imprint-src-default { background: var(--cloud); color: var(--muted); }

/* Brand pass (2026-09-27): Bootstrap overrides so the palette stays Ink / Blue / Cloud */
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-2); border-color: var(--blue-2); }
.badge.text-bg-light { background: var(--cloud) !important; color: var(--ink) !important; }
.alert-info { background: var(--blue-soft); border-color: #cfe2f7; color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--alloy); }
.table > :not(caption) > * > * { border-bottom-color: var(--line); }
.section-cloud { background: var(--cloud); }
.text-blue { color: var(--blue) !important; }
.summary-card { box-shadow: 0 1px 0 rgba(6,27,53,.02); }
.eyebrow.on-dark { color: #7FC0FF; }

/* Blog */
.blog-post .post-body { font-size: 1.08rem; line-height: 1.7; }
.blog-post .post-body p { margin-bottom: 1.15rem; }
.blog-post .post-body h2 { font-size: 1.55rem; font-weight: 650; letter-spacing: -.02em; margin: 2.4rem 0 .8rem; }
.blog-post .post-body h3 { font-size: 1.2rem; font-weight: 650; margin: 1.8rem 0 .5rem; }
.blog-post .post-body blockquote { border-left: 3px solid var(--blue); background: var(--cloud); padding: .9rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0; }
.blog-post .post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-post .post-body pre { background: var(--ink); color: #e5e7eb; border-radius: 12px; padding: 1rem; font-size: .85rem; overflow: auto; }
.blog-post .post-body code { background: var(--cloud); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.blog-post .post-body pre code { background: transparent; padding: 0; }
.blog-post .post-body table { width: 100%; font-size: .95rem; margin: 1.2rem 0; }
.blog-post .post-body th, .blog-post .post-body td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.blog-post .post-body a { color: var(--blue); }

/* Assistant chat */
.mc-chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: inline-flex; align-items: center; gap: .45rem; height: 48px; padding: 0 1.1rem 0 .9rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(6,27,53,.5); cursor: pointer; }
.mc-chat-btn:hover, .mc-chat-btn.open { background: var(--blue); }
.mc-chat { position: fixed; right: 18px; bottom: 76px; z-index: 1040; width: min(400px, calc(100vw - 36px)); max-height: min(640px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(6,27,53,.45); overflow: hidden; }
.mc-chat header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .85rem 1rem; background: var(--ink); color: #fff; }
.mc-chat .mc-sub { font-size: .74rem; color: rgba(255,255,255,.7); font-weight: 400; }
.mc-chat .mc-x { background: transparent; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; padding: 0 .2rem; cursor: pointer; }
.mc-log { flex: 1 1 auto; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .55rem; background: var(--cloud); }
.mc-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 12px; font-size: .92rem; line-height: 1.45; }
.mc-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.mc-you { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mc-wait { color: var(--slate, #566B7F); font-style: italic; }
.mc-cards { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem 0 .3rem; }
.mc-card { flex: 0 0 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; text-decoration: none; color: var(--ink); font-size: .78rem; line-height: 1.25; }
.mc-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: .35rem; }
.mc-card b { display: block; font-weight: 600; } .mc-card small { color: var(--blue); font-weight: 600; }
.mc-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); background: #fff; }
.mc-form input { flex: 1 1 auto; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .7rem; font-size: .92rem; }
.mc-form input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,118,212,.14); }
.mc-foot { padding: 0 .8rem .55rem; font-size: .75rem; background: #fff; }
@media (max-width: 480px) { .mc-chat { right: 10px; bottom: 70px; width: calc(100vw - 20px); } .mc-chat-btn { right: 10px; bottom: 12px; } }

/* browse */
/* Faceted browsing, compare, about/contact, gallery (2026-09-27). Ink for text, Signal Blue only where something is selected. */
.browse { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) { .browse { grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; } .browse-side { position: sticky; top: 84px; } }
.facets { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .35rem 1rem .9rem; }
.facets-head { margin-bottom: .75rem; }
.facet { border: 0; padding: .8rem 0 .55rem; margin: 0; border-top: 1px solid var(--line); }
.facet:first-of-type { border-top: 0; }
.facet legend { float: none; width: auto; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .45rem; padding: 0; }
.facet-note { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
.facet-opt { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .18rem 0; cursor: pointer; color: var(--ink); }
.facet-opt span { flex: 1 1 auto; display: inline-flex; align-items: center; gap: .45rem; }
.facet-opt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.facet-opt.is-empty { color: var(--alloy); }
.facet-opt input { accent-color: var(--blue); margin: 0; flex: 0 0 auto; }
.facet-opt .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(6,27,53,.18); display: inline-block; }
.sw-black { background: #111; } .sw-white { background: #fff; } .sw-gray { background: #8a95a1; } .sw-navy { background: #0f2a56; } .sw-blue { background: #1476D4; } .sw-red { background: #c8102e; } .sw-green { background: #2e8b57; } .sw-yellow { background: #f2c230; } .sw-orange { background: #f47a20; } .sw-purple { background: #6d3fa0; } .sw-pink { background: #e75a93; } .sw-brown { background: #8b6a4f; }
.sw-multi { background: conic-gradient(#c8102e, #f2c230, #2e8b57, #1476D4, #6d3fa0, #c8102e); }
.facet-actions { display: flex; align-items: center; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.facet-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .6rem 0 .4rem; }
.facet-chips .chip { font-size: .78rem; padding: .22rem .6rem; border-radius: 999px; background: var(--blue-soft); color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
.facet-chips .chip:hover { border-color: var(--blue); }
.facet-chips .chip-clear { font-size: .78rem; color: var(--muted); text-decoration: none; margin-left: .2rem; }
.facet-chips .chip-clear:hover { color: var(--ink); text-decoration: underline; }
.facets .form-control[type="date"] { font-size: .9rem; }

/* Compare */
.pcard-wrap { position: relative; height: 100%; }
.pcard-wrap .pcard { height: 100%; }
.cmp-form { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 2; }
.cmp-btn { font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: .25rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--muted); backdrop-filter: blur(4px); transition: color .15s, border-color .15s, background .15s; }
.cmp-btn:hover { color: var(--ink); border-color: var(--ink); }
.cmp-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cmp-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1040; display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem .5rem 1rem; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(6,27,53,.6); font-size: .9rem; max-width: calc(100vw - 110px); }
.cmp-bar[hidden] { display: none; }
.cmp-bar .cmp-count b { color: #fff; }
.cmp-bar .cmp-msg { color: #ffd9a8; font-size: .8rem; }
.cmp-bar .cmp-msg:empty { display: none; }
.cmp-bar .cmp-clear { margin: 0; }
.cmp-bar .btn-link { color: rgba(255,255,255,.75); text-decoration: none; padding: .25rem .4rem; }
.cmp-bar .btn-link:hover { color: #fff; }
@media (max-width: 767px) { .cmp-bar { left: 12px; right: 84px; transform: none; max-width: none; justify-content: space-between; } }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { min-width: 720px; border-color: var(--line); }
.compare-table th.lbl { width: 150px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 1rem; background: #fff; position: sticky; left: 0; z-index: 1; }
.compare-table th.prod { font-weight: 500; vertical-align: bottom; }
.compare-table .cmp-img { display: block; aspect-ratio: 1; background: var(--cloud); border-radius: 12px; overflow: hidden; margin-bottom: .6rem; }
.compare-table .cmp-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.compare-table .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compare-table .name { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.compare-table .name:hover { color: var(--blue); }
.compare-table td { padding: .9rem .75rem; }
.compare-table .ladder div { display: flex; justify-content: space-between; gap: .75rem; font-variant-numeric: tabular-nums; }
.compare-table .ladder .q { color: var(--muted); font-size: .85rem; }
.compare-table .swatches { display: flex; flex-wrap: wrap; gap: .25rem; }
.compare-table .swatches span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(6,27,53,.15); }

/* About, contact */
.about p { max-width: 68ch; }
.about .principle { border-left: 3px solid var(--blue); padding: .5rem 0 .5rem 1.25rem; }
.about .steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 68ch; }
.about .steps-list li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; }
.about .steps-list li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.about .steps-list li b { display: block; margin-bottom: .1rem; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Gallery: fewer, better. Large photos, quiet captions. */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.gallery-item { margin: 0; }
.gallery-item .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cloud); }
.gallery-item .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover .ph img { transform: scale(1.02); }
.gallery-item figcaption { padding: .8rem .2rem 0; }
.gallery-item .ttl { font-weight: 600; }
.gallery-item .cap { color: var(--muted); font-size: .92rem; margin-top: .15rem; max-width: 52ch; }
.gallery-item .meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .82rem; color: var(--muted); margin-top: .45rem; }
.gallery-item .meta a { color: var(--ink-2); text-decoration: none; }
.gallery-item .meta a:hover { color: var(--blue); }
.gallery-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cloud); text-decoration: none; color: #fff; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-tile:hover img { transform: scale(1.03); }
.gallery-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem; background: linear-gradient(to top, rgba(6,27,53,.78), rgba(6,27,53,0)); font-size: .9rem; }
.gallery-tile .cap b { display: block; font-weight: 600; }
.gallery-tile .cap small { color: rgba(255,255,255,.8); }
.gallery-admin-preview { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--cloud); }
.gallery-admin-preview img { width: 100%; height: 100%; object-fit: cover; }

/* stores */
.store-brand { background: linear-gradient(160deg, var(--ink) 0%, var(--store-accent, var(--navy)) 100%); color: #fff; border-radius: 0 0 28px 28px; }
.store-brand .store-logo img { max-height: 64px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px 10px; }
.store-intro { max-width: 720px; }
.part-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; color: var(--ink); }
.part-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.part-chip .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.store-picker { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .15rem .75rem; background: #fff; }
.store-picker .pick { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; padding: .25rem .35rem; border-radius: 8px; cursor: pointer; }
.store-picker .pick:hover { background: var(--cloud); }
.store-picker .pick input { margin-top: .2rem; }
.store-picker .pick small { display: block; }
.store-selected .form-select-sm, .store-selected .form-control-sm { font-size: .8rem; }

/* brand kit */
.brand-kit .bk-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.brand-kit .bk-logo { display: flex; gap: .75rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem; min-width: 0; }
.brand-kit .bk-logo.is-default { border-color: var(--blue); }
.brand-kit .bk-thumb { flex: 0 0 84px; width: 84px; height: 64px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.brand-kit .bk-thumb img { max-width: 92%; max-height: 92%; object-fit: contain; }
.brand-kit .bk-noprev { font-size: .7rem; font-weight: 700; text-align: center; color: var(--muted, #6b7785); line-height: 1.1; }
.brand-kit .bk-meta { min-width: 0; flex: 1 1 auto; }
.bk-dot, .ink-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; flex: 0 0 auto; }
.ink-dot { width: 18px; height: 18px; box-shadow: 0 0 0 1.5px var(--line); }
.brand-kit .bk-mini { display: flex; gap: 4px; }
.brand-kit .bk-rows { display: grid; gap: .4rem; }
.brand-kit .bk-row { display: grid; grid-template-columns: 34px 7.5rem 1fr 1fr auto; gap: .4rem; align-items: center; }
.brand-kit .bk-row-new .bk-swatch span { background: repeating-linear-gradient(45deg, #fff 0 4px, #e6ecf1 4px 8px); }
.brand-kit .bk-swatch { position: relative; width: 34px; height: 31px; margin: 0; cursor: pointer; }
.brand-kit .bk-swatch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.brand-kit .bk-swatch span { display: block; width: 100%; height: 100%; border-radius: 8px; border: 1.5px solid var(--line); pointer-events: none; }
.brand-kit .bk-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .1rem .55rem .1rem .35rem; font-size: .78rem; margin: 0 .25rem .25rem 0; display: inline-flex; align-items: center; gap: .35rem; }
.brand-kit .bk-chip:hover { border-color: var(--blue); }
@media (max-width: 575px) { .brand-kit .bk-row { grid-template-columns: 34px 1fr 1fr auto; } .brand-kit .bk-row .bk-label { grid-column: 2 / 4; } }
.mockup-views { display: flex; gap: .5rem; overflow-x: auto; padding: 0 0 .6rem; }
.mockup-views button { flex: 0 0 auto; width: 84px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; padding: 4px 4px 2px; font-size: .68rem; font-weight: 600; color: var(--ink); text-align: center; }
.mockup-views button.active { border-color: var(--blue); }
.mockup-views img { display: block; width: 100%; height: 68px; object-fit: contain; }
.mockup-views span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-extras form { margin: 0; }

/* Home: category chips wrap into rows instead of scrolling sideways */
.cat-nav-wrap { flex-wrap: wrap; overflow: visible; }
.cat-nav-wrap a { margin-bottom: .1rem; }

/* photoreal render */
.photoreal-variants .btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.brand-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: var(--cloud); font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; padding: 1rem; }
.brand-wait.active { color: var(--ink); }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--alloy, #AEBECB); }
.brand-wait.active .brand-dot { border-color: var(--blue); border-top-color: transparent; animation: brand-spin .9s linear infinite; }
@keyframes brand-spin { to { transform: rotate(360deg); } }
.photoreal-modal-img { display: block; max-height: 70vh; margin: 0 auto; background: #fff; }
.photoreal-progress { height: 4px; width: 60%; margin: 0 auto; background: var(--line); border-radius: 2px; overflow: hidden; }
.photoreal-progress > div { height: 100%; width: 100%; background: var(--blue); transform-origin: left; animation: photoreal-progress 32s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes photoreal-progress { from { transform: scaleX(0); } 90% { transform: scaleX(.92); } to { transform: scaleX(.96); } }
.photoreal-bar { position: absolute; right: .75rem; bottom: .75rem; display: flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .35rem .2rem .2rem; }

.attach-logo { cursor: pointer; }
.attach-pulse { animation: attachPulse 1s ease-in-out 3; }
@keyframes attachPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,118,212,.5); } 50% { box-shadow: 0 0 0 8px rgba(20,118,212,0); } }

/* Segmented toggles (Blank / With your logo): the checked option is filled, the other outlined */
.btn-check + .btn-outline-ink { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn-check + .btn-outline-ink:hover { background: var(--cloud); }
.btn-check:checked + .btn-outline-ink, .btn-check:active + .btn-outline-ink { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; box-shadow: none; }
.btn-check:checked + .btn-outline-ink::before { content: "✓ "; }
.btn-check:focus-visible + .btn-outline-ink { box-shadow: 0 0 0 4px rgba(20,118,212,.18); }

/* Header: never wrap nav items or the cart/sign-in buttons; tighten at laptop widths */
.nav-links > li > a, .icon-btn, .cart-btn, .icon-btn .lbl { white-space: nowrap; }
.cart-btn { padding-left: .9rem; padding-right: .9rem; }
@media (max-width: 1299.98px) { .nav-links > li > a { padding: .45rem .55rem; font-size: .9rem; } .site-header .topbar { gap: .8rem; } }
@media (max-width: 1099.98px) and (min-width: 992px) { .nav-links > li > a { padding: .4rem .45rem; font-size: .85rem; } .icon-btn .lbl { display: none; } }

/* live indicator (agents page) */
.live-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: #15803d; background: rgba(21,128,61,.08); border: 1px solid rgba(21,128,61,.25); border-radius: 999px; padding: .3rem .75rem .3rem .6rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.55); animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* inline code: brand colors instead of Bootstrap pink */
code, pre code { color: var(--navy); }
p code, li code, td code, div code { background: var(--cloud); padding: .05em .3em; border-radius: 3px; font-size: .92em; }

/* punchout mode banner */
.punchout-bar { background: #FFF7E6; border-bottom: 1px solid #F3D9A4; color: var(--ink); }

/* ---------- Admin shell (2026-09-29) ---------- */
.text-warning { color: #8A4B00 !important; }            /* readable amber on white; badges keep their yellow background */
:root { --warn: #92400E; }
body.is-admin { background: #F4F7FA; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #C9D6E4; padding: 1rem .9rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.admin-side-head { display: flex; align-items: center; justify-content: space-between; padding: .2rem .35rem .9rem; }
.admin-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.admin-brand img { border-radius: 8px; background: #fff; padding: 2px; }
.admin-brand small { color: #8FA5BE; font-weight: 500; margin-left: .15rem; }
.admin-side-close { background: transparent; border: 0; color: #C9D6E4; font-size: 1.1rem; }
.admin-group { padding: .35rem 0; }
.admin-group-label { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7F95AE; padding: .35rem .6rem .25rem; }
.admin-link { display: flex; align-items: center; gap: .6rem; padding: .48rem .6rem; border-radius: 9px; color: #C9D6E4; text-decoration: none; font-size: .92rem; font-weight: 500; background: transparent; border: 0; text-align: left; }
.admin-link svg { flex: 0 0 auto; opacity: .85; }
.admin-link span { flex: 1 1 auto; }
.admin-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-link.active { background: var(--blue); color: #fff; }
.admin-link.active svg { opacity: 1; }
.admin-badge { background: #fff; color: var(--ink); font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; min-width: 1.4rem; text-align: center; }
.admin-link.active .admin-badge { background: #fff; color: var(--blue); }
.admin-ext { font-style: normal; color: #7F95AE; font-size: .8rem; }
.admin-side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: .6rem; }
.admin-main { min-width: 0; }
.admin-main main > .container { max-width: 1400px; }
.admin-topbar { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.admin-menu-btn { background: transparent; border: 0; color: #fff; display: inline-flex; }
.admin-scrim { display: none; }
@media (max-width: 991.98px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 1040; transform: translateX(-100%); transition: transform .2s ease; }
  body.admin-nav-open .admin-side { transform: none; }
  body.admin-nav-open .admin-scrim { display: block; position: fixed; inset: 0; background: rgba(6,27,53,.45); z-index: 1035; }
}
/* dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.dash-head h1 { font-size: 1.7rem; margin: 0; }
.dash-date { color: var(--muted); font-size: .92rem; }
.worker-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.worker-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: wpulse 1.8s infinite; }
.worker-pill.stale .dot { background: #DC2626; animation: none; }
@keyframes wpulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.needs a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.needs a:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.needs a.hot { border-color: var(--blue); background: var(--blue-soft); }
.needs b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.needs span { font-size: .8rem; color: var(--muted); }
.needs a.hot span { color: var(--blue-2); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1rem .8rem; box-shadow: 0 1px 0 rgba(6,27,53,.02); }
.kpi .lbl { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: .2rem 0 .1rem; color: var(--ink); }
.kpi .sub { font-size: .78rem; color: var(--muted); }
.kpi .spark { display: block; margin-top: .45rem; width: 100%; height: 32px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 0 rgba(6,27,53,.02); }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 650; }
.panel-h .muted { font-weight: 450; font-size: .82rem; color: var(--muted); }
.panel-b { padding: .9rem 1.1rem; }
.panel .table { margin: 0; }
.panel .table td, .panel .table th { padding: .55rem 1.1rem; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #E6ECF2; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: Inter, sans-serif; }
.legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.hbars { display: grid; gap: .5rem; }
.hb { display: grid; grid-template-columns: 8.5rem 1fr 3rem; align-items: center; gap: .6rem; font-size: .86rem; }
.hb-label { color: var(--ink); text-decoration: none; }
.hb-track { height: 10px; background: var(--cloud); border-radius: 999px; overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.hb-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .6rem; padding: .45rem 1.1rem; border-top: 1px solid var(--line); font-size: .84rem; }
.feed li:first-child { border-top: 0; }
.feed time { color: var(--muted); font-variant-numeric: tabular-nums; }
.feed code { font-size: .78rem; color: var(--ink-2); background: var(--cloud); padding: .05rem .35rem; border-radius: 4px; }
.sysgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem 1.2rem; font-size: .86rem; }
.sysgrid .k { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: .35rem; vertical-align: 1px; }
.panel-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel-scroll .table { min-width: 560px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 992px) { .admin-shell { background: linear-gradient(90deg, var(--ink) 248px, #F4F7FA 248px); } }
.donut { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.donut-num { font-size: 26px; font-weight: 700; fill: var(--ink); font-family: Inter, sans-serif; letter-spacing: -.02em; }
.donut-lbl { font-size: 11px; fill: var(--muted); font-family: Inter, sans-serif; }
.donut-legend { display: grid; gap: .3rem; font-size: .84rem; min-width: 150px; }
.donut-legend div { display: flex; align-items: center; gap: .5rem; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.donut-legend b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-row { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.stat-row:first-child { border-top: 0; }
.stat-row b { font-variant-numeric: tabular-nums; }
.funnel { display: grid; gap: .45rem; }
.funnel div { display: grid; grid-template-columns: 9rem 1fr 3.5rem; align-items: center; gap: .6rem; font-size: .86rem; }
.funnel .bar { height: 26px; background: var(--blue); border-radius: 6px; min-width: 3px; opacity: .9; }
.funnel .pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
/* queue as a task list */
.tasks { display: grid; gap: .5rem; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; transition: box-shadow .12s ease, transform .12s ease; }
.task:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.task.urgent { border-left: 4px solid #DC2626; }
.task-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .8rem; }
.task-title { font-weight: 650; }
.task-sub { font-size: .82rem; color: var(--muted); }
.task-meta { text-align: right; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.task-meta .conf { display: inline-block; padding: .1rem .45rem; border-radius: 999px; background: var(--cloud); color: var(--ink); font-weight: 600; margin-top: .2rem; }
.modal-task .modal-dialog { max-width: 960px; }
.modal-task .modal-body { max-height: 70vh; overflow: auto; }
.modal-task pre { font-size: .78rem; background: var(--cloud); padding: .6rem .8rem; border-radius: 8px; }
.insight-state { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.insight-state.green { background: #DCFCE7; color: #166534; } .insight-state.amber { background: #FEF3C7; color: #92400E; } .insight-state.red { background: #FEE2E2; color: #991B1B; }
.insight-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.insight-cols h6 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }
.insight-cols ul { padding-left: 1.1rem; margin: 0; font-size: .9rem; }
.insight-cols li { margin: .25rem 0; }
.modal-insights .modal-dialog { max-width: min(1320px, 96vw); }
.modal-insights .modal-body { padding: 1.4rem 1.6rem; }
.insight-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 1100px) { .insight-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .insight-cols-4 { grid-template-columns: 1fr; } }
.insight-today { padding-left: 1.2rem; margin: 0; font-size: .9rem; }
.insight-today li { margin: .3rem 0; }
.insight-today li b { display: block; }
.insight-today li span { font-size: .84rem; }
.beta-bar { background: var(--ink); color: #DCE6F2; }
.beta-bar a { color: #8FC1F5; text-decoration: none; font-weight: 600; }
.beta-bar a:hover { color: #fff; }
