html { --side: 248px; }
html.is-collapsed { --side: 72px; }
:root {
  --ink: #161513;
  --ink-soft: #3f3c38;
  --muted: #7a746c;
  --line: #e6e2db;
  --paper: #e8eaef;
  --card: #ffffff;
  --red: #e11d2e;
  --red-deep: #b11220;
  --sidebar: #0c0e14;
  --sidebar-text: #f4f1ec;
  --green: #0e7a45;
  --green-bg: #e5f6ee;
  --blue: #1d4f8f;
  --blue-bg: #e8f1fb;
  --amber: #9a5410;
  --amber-bg: #f8efdf;
  --violet: #5b3d8a;
  --violet-bg: #f3eef8;
  --red-bg: #fdeceb;
  --shadow: 0 16px 40px rgba(16, 16, 18, .08);
  --serif: "Instrument Sans", "Avenir Next", sans-serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 450;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  z-index: 30;
  transition: width .18s ease;
  overflow: hidden;
}
.sidenav { min-height: 0; }
.side-foot { flex-shrink: 0; }
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 4px 8px 18px;
}
.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1;
}
.brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a3988e;
}
.sidenav { overflow: auto; flex: 1; padding-right: 4px; min-height: 0; }
.nav-label {
  margin: 16px 10px 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b93a7;
  white-space: nowrap;
}
.nav-a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ebe4dc;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 1px 0;
}
.nav-a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-a:hover { background: rgba(255,255,255,.05); }
.nav-a.is-active {
  background: rgba(255,255,255,.07);
  box-shadow: inset 2px 0 0 var(--red);
  color: white;
}
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.who { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.who strong, .who em { display: block; }
.who strong { font-size: 14px; font-weight: 520; }
.who em { font-style: normal; color: #a3988e; font-size: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: white; font-size: 12px; font-weight: 600;
}
.linkish {
  margin: 8px 6px 0;
  background: none; border: 0; padding: 0;
  color: #c8bfb6; cursor: pointer; font-size: 13px;
}
.linkish:hover { color: white; }

.collapse-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin-top: 10px;
  background: transparent; color: #c8bfb6; border: 0;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left;
}
.collapse-btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s ease; }
.collapse-btn:hover { background: rgba(255,255,255,.05); color: white; }
html.is-collapsed .collapse-btn { justify-content: center; padding-left: 0; padding-right: 0; }
html.is-collapsed .collapse-btn svg { transform: rotate(180deg); }
html.is-collapsed .brand-text,
html.is-collapsed .nav-label,
html.is-collapsed .nav-a span,
html.is-collapsed .who-copy,
html.is-collapsed .collapse-btn span,
html.is-collapsed .linkish { display: none; }
html.is-collapsed .brand,
html.is-collapsed .nav-a,
html.is-collapsed .who { justify-content: center; }
html.is-collapsed .nav-a { padding-left: 0; padding-right: 0; }
.main { margin-left: var(--side); min-height: 100vh; transition: margin-left .18s ease; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: rgba(243, 239, 232, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28,25,23,.06);
}
.icon-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.search-btn {
  flex: 1; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); cursor: pointer; text-align: left;
}
.search-btn kbd {
  font-family: var(--sans); font-size: 11px; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: 7px; padding: 3px 6px; color: var(--ink-soft);
}
.live {
  margin-left: auto;
  font-size: 12px; letter-spacing: .04em;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 999px; padding: 6px 10px;
  white-space: nowrap;
}
.wrap { padding: 18px 22px 48px; max-width: none; }

.kicker {
  margin: 0 0 6px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker a { color: var(--ink-soft); }
h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 620;
  font-size: 28px;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.page-head.tight { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.count-line { margin: 0; color: var(--muted); }
.count-line b { color: var(--ink); font-size: 22px; font-weight: 620; letter-spacing: -.03em; margin-right: 6px; }
.legend { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; max-width: 110ch; line-height: 1.45; }
.checkline { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 13px; }
.mono-title { font-family: var(--mono); font-size: 32px; letter-spacing: -.04em; font-weight: 500; }
.lede { margin: 10px 0 0; color: var(--ink-soft); max-width: 62ch; }
.page-head { margin-bottom: 22px; }
.row-head, .page-head.row-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metrics.slim { grid-template-columns: repeat(4, 1fr); margin-top: 4px; }
.metric {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px;
}
.metric b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 560; letter-spacing: -.03em; }
.metric span { color: var(--muted); font-size: 13px; }
.metric:hover { border-color: #d9cfc3; }

.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pipeline a {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px 6px 8px;
}
.pipeline strong { font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: 1.3fr .9fr; gap: 14px; margin-bottom: 14px; }
.split.align-start { align-items: start; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 12px;
}
.panel-h, .container-card header, .address .panel-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 6px;
}
.panel h2, .panel h3, .person { margin: 0; font-size: 16px; font-weight: 560; }
.panel h3 { margin: 14px 12px 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.panel-h a { color: var(--red-deep); text-decoration: none; font-size: 13px; }

.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 560; padding: 10px 12px; background: #faf7f3;
}
table.data td { padding: 12px; border-top: 1px solid #f0ebe4; vertical-align: middle; }
table.data tbody tr[data-href] { cursor: pointer; }
table.data tbody tr[data-href]:hover { background: #fbf8f4; }
table.data small, .quiet { display: block; color: var(--muted); font-size: 12px; }
table.data .num, .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #f3eee8; display: block; }
.title-clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.check { width: 36px; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { display: flex; gap: 10px; justify-content: flex-end; }
.links a { color: var(--red-deep); }

.pill {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 8px; font-size: 12px; line-height: 1.3; white-space: nowrap;
  background: #f3efe8; color: var(--ink-soft);
}
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red { background: var(--red-bg); color: var(--red-deep); }
.pill-violet { background: var(--violet-bg); color: var(--violet); }
.pill-soft { background: #f6f1ea; color: var(--ink-soft); }
.pill-ink { background: var(--ink); color: #f6f1ea; }
.pill-gray { background: #f3efe8; color: #78716c; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input, .filters select, .login-card input {
  height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 12px;
}
.filters input { min-width: 220px; flex: 1; }
.filters select { max-width: 220px; }
.btn, .login-card button {
  height: 42px; border-radius: 12px; border: 0; padding: 0 16px; cursor: pointer;
}
.btn.dark, .login-card button { background: var(--ink); color: #f6f1ea; }
.btn.dark:hover, .login-card button:hover { background: #2c2825; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.seg { display: flex; gap: 6px; margin-bottom: 12px; }
.seg a {
  text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
}
.seg a.is-on { background: var(--ink); color: #f6f1ea; border-color: var(--ink); }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); }
.page-btn {
  text-decoration: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 8px 12px; color: var(--ink);
}
.page-btn.is-off { opacity: .4; }

.fiche-hero { display: grid; grid-template-columns: 220px 1fr; gap: 22px; margin-bottom: 8px; }
.fiche-hero.slim { grid-template-columns: 92px 1fr; align-items: center; }
.cover {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #efe8df;
}
.cover.logo { object-fit: contain; background: white; border: 1px solid var(--line); padding: 10px; }
.monogram {
  display: grid; place-items: center; font-family: var(--serif); font-size: 36px; background: var(--ink); color: #f6f1ea;
}
.fiche-hero.slim .cover { width: 92px; height: 92px; }
.hero-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.tabs { display: flex; gap: 4px; overflow: auto; margin: 16px 0; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; padding: 10px 12px; color: var(--muted); white-space: nowrap; }
.tabs a.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 8px 12px 12px; }
.kv.tight { grid-template-columns: 1fr; }
.kv div { min-width: 0; }
.kv dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 3px 0 0; }
.prose { white-space: pre-wrap; margin: 8px 12px 12px; color: var(--ink-soft); }
.prose-panel { padding-bottom: 8px; }
.card-grid, .gate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card-grid.containers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.address .prose, .person { margin-left: 12px; margin-right: 12px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.price-grid article {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.price-grid span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.price-grid strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 560; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 16px; overflow: hidden; background: #efe8df; aspect-ratio: 1; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.flag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.flag {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line);
}
.flag i { width: 8px; height: 8px; border-radius: 50%; background: #d6d3d1; }
.flag.is-on { border-color: #b7e0c8; }
.flag.is-on i { background: var(--green); }

.feed { display: flex; flex-direction: column; }
.feed-item, .container-card {
  display: block; text-decoration: none; padding: 12px; border-top: 1px solid #f0ebe4;
}
.feed.plain .feed-item:first-child, .panel > .feed .feed-item:first-child { border-top: 0; }
.feed-item strong, .feed-item em, .feed-item p { display: block; }
.feed-item em { font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
.feed-item p { margin: 6px 0 0; color: var(--ink-soft); }
.feed-item.static { cursor: default; }
.mini-list a {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center;
  text-decoration: none; padding: 8px 10px;
}
.mini-list img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; background: #efe8df; }
.mini-list em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.container-card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px; }
.container-card header { padding: 0 0 8px; }
.container-card .mono { display: block; margin-top: 8px; font-size: 18px; }
.route { font-size: 14px; color: var(--ink-soft); }
.route span { color: var(--red); padding: 0 4px; }
.container-card footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

.gate {
  display: block; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; min-height: 160px;
}
.gate span { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.gate strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 560; margin-top: 8px; }
.gate b { display: block; margin-top: 18px; font-size: 28px; font-variant-numeric: tabular-nums; }
.gate em { font-style: normal; color: var(--muted); }
.gate:hover { border-color: #d8cec3; }

.thread article { padding: 12px; border-top: 1px solid #f0ebe4; }
.thread article:first-child { border-top: 0; }
.thread header { display: flex; justify-content: space-between; gap: 8px; }
.thread time { color: var(--muted); font-size: 12px; }
.thread p { margin: 6px 0 0; white-space: pre-wrap; }

.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ref-list { list-style: none; margin: 0; padding: 0 8px; max-height: 360px; overflow: auto; }
.ref-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 6px; border-top: 1px solid #f3eee8; }
.ref-list b { font-weight: 560; font-variant-numeric: tabular-nums; color: var(--muted); }

.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty-title { margin: 0 0 4px; color: var(--ink); font-family: var(--serif); font-size: 22px; }
.select-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #f6f1ea; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px;
}
.select-bar button { background: transparent; color: #f6f1ea; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; height: 34px; padding: 0 10px; cursor: pointer; }
.who-line { display: flex; gap: 10px; align-items: center; }
.logo-sm { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: white; border: 1px solid var(--line); }
.quiet.block, .block { margin: 8px 2px 18px; }
.quiet { color: var(--muted); }

.cmdk[hidden], .toast[hidden] { display: none !important; }
.cmdk {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 18, 16, .46);
  display: grid; align-items: start; justify-content: center;
  padding-top: 12vh;
}
.cmdk-panel {
  width: min(680px, calc(100vw - 32px));
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.cmdk-panel input {
  width: 100%; border: 0; outline: none; height: 58px; padding: 0 18px;
  background: transparent; font-size: 16px; border-bottom: 1px solid var(--line);
}
.cmdk-results { max-height: 420px; overflow: auto; padding: 8px; }
.cmdk-hint { color: var(--muted); padding: 16px; margin: 0; }
.cmdk-group { margin: 6px 0 10px; }
.cmdk-group p { margin: 0 8px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmdk-group a { display: block; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.cmdk-group a:hover, .cmdk-group a.is-on { background: #f6f1ea; }
.cmdk-group small { display: block; color: var(--muted); }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #f6f1ea; border-radius: 14px;
  padding: 12px 16px; z-index: 60; max-width: min(520px, calc(100vw - 32px));
  box-shadow: var(--shadow);
}

.login-body { background: #141210; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-only { grid-template-columns: 1fr; place-items: center; }
.login-only .login-card { width: min(440px, calc(100% - 32px)); margin: 24px; }
.login-story { color: #f6f1ea; padding: 56px 64px; position: relative; overflow: hidden; }
.login-story h1 { font-size: 52px; max-width: 12ch; margin-top: 18px; letter-spacing: -.04em; }
.story-lead { max-width: 42ch; color: #d9d0c7; font-size: 17px; }
.story-points { padding: 0; margin: 28px 0 0; list-style: none; color: #d9d0c7; }
.story-points li { padding: 6px 0 6px 16px; border-left: 2px solid var(--red); margin: 8px 0; }
.kicker.light { color: #b7aea4; }
.story-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: url('/logo/login_header.jpg') center 30% / cover no-repeat;
  mask-image: linear-gradient(to top, #000 20%, transparent);
  opacity: .55;
}
.login-card {
  background: var(--paper); margin: 18px; border-radius: 28px;
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
}
.login-card h2 { font-family: var(--serif); font-size: 40px; font-weight: 560; margin: 0; }
.login-card label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--ink-soft); }
.login-card input { width: 100%; background: white; }
.login-card button { width: 100%; margin-top: 18px; }
.form-error { background: var(--red-bg); color: var(--red-deep); border-radius: 12px; padding: 10px 12px; }

.scrim { display: none; }

.desk-top { display: flex; align-items: center; gap: 12px; }
.desk-title h1 { font-size: 26px; }
.desk-title p { margin: 2px 0 0; color: var(--muted); }
.desk-search { flex: 1; }
.desk-search input {
  width: 100%; height: 42px; border: 0; border-radius: 12px;
  background: white; padding: 0 14px;
  box-shadow: 0 1px 2px rgba(12, 14, 20, .06);
}
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 0;
  background: white; color: var(--ink-soft); cursor: pointer;
}
.chip.is-on { background: #12141a; color: white; }
.filter-panel {
  display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px; background: white; border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.filter-panel[hidden] { display: none; }
.filter-panel label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.filter-panel select, .filter-panel input[type="date"] {
  height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #f6f7fb; padding: 0 10px;
}
.table-scroll.catalog {
  max-height: calc(100vh - 188px);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(12, 14, 20, .07);
}
.stock-table { min-width: 1580px; border-collapse: separate; border-spacing: 0; }
.stock-table .c-photo, .stock-table .c-name { position: sticky; background: #fff; }
.stock-table .c-photo { left: 0; width: 76px; min-width: 76px; z-index: 3; }
.stock-table .c-name { left: 76px; min-width: 260px; max-width: 300px; z-index: 3; box-shadow: 12px 0 16px -14px rgba(12,14,20,.45); }
.stock-table thead .c-photo, .stock-table thead .c-name { z-index: 6; }
.stock-table tfoot .c-photo, .stock-table tfoot .c-name { z-index: 6; background: #12141a; }
.stock-table tbody tr:hover .c-photo, .stock-table tbody tr:hover .c-name { background: #f6f8fb; }
.stock-table .thumb { width: 52px; height: 52px; border-radius: 10px; }
.stock-table .c-name strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.stock-table .c-name .pill { margin-top: 6px; }
.groups th {
  position: sticky; top: 0; z-index: 4;
  background: #eef1f6; color: #667085;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: left;
}
.catalog thead tr:not(.groups) th { top: 34px; }
.family { min-width: 150px; white-space: normal; }
.when { color: var(--amber); }

.table-scroll {
  max-height: calc(100vh - 168px);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table-scroll.short { max-height: none; }
.table-scroll thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f7f6f3;
  box-shadow: inset 0 -1px 0 var(--line);
}
.table-scroll tfoot td {
  position: sticky; bottom: 0; z-index: 2;
  background: #161513; color: #f6f3ee;
  font-weight: 560; font-size: 12px;
}
.table-scroll tfoot small { color: #c8c1b8; }
th.stack { text-transform: none; letter-spacing: -.01em; font-size: 12px; color: var(--ink); line-height: 1.2; }
th.stack small, td small { display: block; font-weight: 450; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 11px; }
.stock-table td { white-space: nowrap; }
.stock-table .refcell, .stock-table .typecell { white-space: normal; min-width: 160px; max-width: 240px; }
.refcell strong { display: block; font-weight: 620; }
.refcell small, .typecell small { display: block; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.is-calais td:first-child { box-shadow: inset 3px 0 0 #1d4f8f; }
.stk { font-variant-numeric: tabular-nums; font-weight: 620; }
.stk.is-ok { color: var(--green); }
.stk.is-low { color: var(--amber); }
.catalog thead tr:not(.groups) th { top: 34px; }
.catalog thead .c-photo, .catalog thead .c-name { z-index: 7; background: #f4f6fa; }
.stock-table .c-name, .stock-table .c-name small, .stock-table .family, .stock-table .family small { white-space: normal; }
.stk.is-zero { color: #c4c8d0; font-weight: 500; }
.stk.is-neg { color: var(--red-deep); }
.muted-num { color: #b7b1a8; font-weight: 500; }
.stock-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.stock-strip div, .stock-board article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.stock-strip span, .stock-board span {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.stock-strip small, .stock-board p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.stock-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stock-board strong {
  font-size: 28px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.filters input[type="date"] { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: white; padding: 0 8px; }

@media (max-width: 980px) {
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(20,18,16,.45); z-index: 25; }
  .main { margin-left: 0; }
  .icon-btn { display: grid; place-items: center; }
  .metrics, .metrics.slim, .split, .login, .ref-grid, .fiche-hero { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-card { margin: 0; border-radius: 0; min-height: 100vh; }
  h1 { font-size: 26px; }
  .stock-strip, .stock-board { grid-template-columns: 1fr 1fr; }
  html.is-collapsed { --side: 248px; }
  .collapse-btn { display: none; }
  html.is-collapsed .brand-text,
  html.is-collapsed .who-copy,
  html.is-collapsed .nav-label { display: block; }
  html.is-collapsed .nav-a span,
  html.is-collapsed .linkish { display: inline; }
  html.is-collapsed .nav-a,
  html.is-collapsed .brand,
  html.is-collapsed .who { justify-content: flex-start; }
  .wrap { padding: 20px 16px 64px; }
  .topbar { padding: 12px 14px; }
  .search-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gallery a:first-child { grid-column: auto; grid-row: auto; }
  .live { display: none; }
}

@media print {
  .sidebar, .topbar, .tabs, .filters, .seg, .select-bar, .head-actions, .cmdk, .toast, .scrim { display: none !important; }
  .main { margin: 0; }
  body { background: white; }
  .panel, .metric { break-inside: avoid; }
}
