/* Espace revendeurs — the portal's stylesheet, ported from the clickable demo
   (docs/product/portal-design/design.css). Tokens lifted from apps/site: canvas, ink, pink,
   blush, berry; radii 4/8/12/16/20/999; Sofia Pro body, Test The Future wordmark. Icons are
   Phosphor SVG symbols served from /static/icons.svg: `.ph` regular, `.ph-duotone` active. */
@font-face {
  font-family: "Sofia Pro";
  src: url("/static/fonts/sofia-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("/static/fonts/sofia-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("/static/fonts/sofia-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Test The Future";
  src: url("/static/fonts/ttf-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Test The Future";
  src: url("/static/fonts/ttf-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --canvas: #fdf8f9;
  --canvas-soft: #f6f6f3;
  --paper: #fffaf6;
  --card: #ffffff;
  --ink: #1b1a21;
  --muted: rgb(27 26 33 / 55%);
  --faint: rgb(27 26 33 / 38%);
  --line: rgb(27 26 33 / 10%);
  --line-strong: rgb(27 26 33 / 22%);
  --pink: #dc6e94;
  --pink-ink: #c2577c;
  --pink-soft: #fbe9ef;
  --blush: #f2dce0;
  --berry: #6e2434;
  /* The site's success pair: lime is the fill (dots, pills, chips) with ink text on it; the dark
     green only ever sits on white — availability text and the small dot inside a lime pill. */
  --lime: #cbe87d;
  --lime-soft: rgb(203 232 125 / 38%);
  --green: #31751a;
  --amber: #8a5a00;
  --amber-soft: #fff1d6;
  --red: #b4233f;
  --red-soft: #fde3e8;
  --info: #2457c5;
  --info-soft: #e6edfb;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;
  --body: "Sofia Pro", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wordmark: "Test The Future", "Sofia Pro", sans-serif;
  --shadow: 0 1px 2px rgb(27 26 33 / 4%), 0 8px 24px rgb(110 36 52 / 6%);
  --sidebar: 248px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 26px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
p {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.wordmark {
  font-family: var(--wordmark);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 17px;
  text-decoration: none;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

/* icons (Phosphor SVG sprite): regular at rest, duotone when selected/active. Sized by
   font-size so every per-context size below keeps working. */
.ph,
.ph-duotone {
  font-size: 20px;
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.2em;
  overflow: visible;
}

/* ── shell ─────────────────────────────────────────────────
   The back office's shell (SKI-335; docs/design-system/revamp/DESIGN.md "Layout"): the menu
   sits on the canvas, the page on ONE white panel inset 8px from the window's edges. On a wide
   screen the panel is the page's scroll container, so the menu never scrolls away; under 900px
   the menu becomes a top bar and the window scrolls. */
.shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--canvas);
}
.sidebar {
  flex: none;
  width: 204px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 12px 12px;
}
.sidebar .brand {
  flex: none;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 10px;
}
.sidebar .brand .wordmark {
  font-size: 15px;
  white-space: nowrap;
}
.sidebar .brand .tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
/* menu rows: 30px, a 20px icon in the faint ink, the label in ink; the current page on pink-soft
   with its icon duotone in pink-ink */
.nav {
  display: flex;
  flex-direction: column;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 8px 0 10px;
  border-radius: var(--r-xs);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.nav a .ph {
  color: var(--faint);
}
.nav a:hover {
  background: rgb(27 26 33 / 4%);
}
.nav a.on {
  background: var(--pink-soft);
}
.nav a.on .ph-duotone {
  color: var(--pink-ink);
}
.nav a .txt {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav a .count {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* A SkinSouk answer not seen yet: a dot on the icon, on Mes demandes and on the help card. */
.newdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 2px var(--canvas);
}
.nav a .newdot {
  position: absolute;
  left: 24px;
  top: 4px;
}
.nav a.on .newdot {
  box-shadow: 0 0 0 2px var(--pink-soft);
}
.sidebar .bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}
/* the shop: flat on the canvas, under a hairline, like the menu's own footer */
.shopcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 0 6px;
  border-top: 1px solid var(--line);
}
.shopcard .avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--blush);
  color: var(--berry);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.shopcard b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}
.shopcard .signout {
  margin-left: auto;
  color: var(--faint);
  text-decoration: none;
}
.shopcard form {
  display: contents;
}
.shopcard .menubtn {
  margin-left: auto;
  color: var(--faint);
}
/* help: the menu's one tinted control, the back office's "+ New" look */
.help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid var(--blush);
  border-radius: var(--r-sm);
  background: var(--pink-soft);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
}
.help:hover {
  background: var(--blush);
}
.help.on {
  border-color: var(--pink);
}
.help:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1.5px var(--pink),
    0 0 0 4px var(--pink-soft);
}
.helpicon {
  position: relative;
  display: inline-flex;
  flex: none;
}
.helpicon .ph-duotone {
  color: var(--pink-ink);
  font-size: 20px;
}
.helpicon .newdot {
  position: absolute;
  top: -2px;
  right: -3px;
  box-shadow: 0 0 0 2px var(--pink-soft);
}
.helptxt b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.helptxt span {
  font-size: 12px;
  line-height: 18px;
  color: var(--pink-ink);
  font-weight: 500;
}
.helptxt .new {
  font-weight: 700;
}

/* the page: one white panel, a hairline, 8px corners, barely lifted off the canvas */
.main {
  flex: 1;
  min-width: 0;
  margin: 8px 8px 8px 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(27 26 33 / 4%);
}
/* the page's column inside the panel: 24px above, 28px at the sides (20px below 1360px) */
.mainwrap {
  max-width: 1180px;
  padding: 24px 28px 48px;
}
@media (max-width: 1360px) {
  .mainwrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.pagehead .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagehead .sub .dot {
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  border: 1.5px solid var(--green);
  display: inline-block;
}

/* ── controls ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font: 500 14px var(--body);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.08s;
}
.btn:hover {
  border-color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.btn.primary:hover {
  background: var(--pink-ink);
  border-color: var(--pink-ink);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  background: rgb(27 26 33 / 5%);
  color: var(--ink);
}
.btn.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
.input {
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: 0 16px;
  font: 14px var(--body);
  background: var(--card);
  color: var(--ink);
  outline: none;
}
.input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
.btn:focus-visible,
.iconbtn:focus-visible,
.menu button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1.5px var(--pink),
    0 0 0 4px var(--pink-soft);
}
.search {
  position: relative;
}
.search .ph {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 18px;
}
.search .input {
  padding-left: 40px;
  width: 280px;
}
/* Segmented control: the white pill is one element that slides to the active tab. */
.seg {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-full);
  background: rgb(27 26 33 / 5%);
}
.seg .ind {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: var(--r-full);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(27 26 33 / 8%);
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.seg a {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.seg a.on {
  color: var(--ink);
}
.seg a .n {
  color: var(--faint);
  margin-left: 4px;
}

/* ── coverage (one figure, one ticked bar, two stats) ─────── */
.coverage {
  padding: 22px 26px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: center;
}
.cov-big {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 10px;
}
.cov-big b {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--berry);
}
.cov-big b span {
  font-size: 26px;
  margin-left: 2px;
  vertical-align: top;
  color: var(--pink-ink);
}
.cov-big-lbl {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}
.ticks {
  position: relative;
  height: 36px;
  border-radius: var(--r-xs);
  background: repeating-linear-gradient(90deg, var(--blush) 0 8px, transparent 8px 12px);
}
.ticks i {
  position: absolute;
  inset: 0;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 12px);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cov-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 14px;
}
.cov-stat b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cov-stat span {
  font-size: 13px;
  color: var(--muted);
}
.cov-stat.accent b {
  color: var(--pink-ink);
}
.cov-stats .btn {
  margin-left: auto;
}
.cov-note {
  margin-top: 10px;
}
@media (max-width: 900px) {
  .coverage {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cov-stats {
    flex-wrap: wrap;
  }
  .cov-stats .btn {
    margin-left: 0;
  }
}

/* ── cards & metrics ───────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  position: relative;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.metric:hover {
  transform: translateY(-1px);
}
.metric .ic {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.metric .ic .ph-duotone {
  font-size: 20px;
}
.metric b {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.metric .lbl {
  font-weight: 500;
  font-size: 14px;
}
.metric .hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.metric.warn {
  border-color: #f1c58b;
  background: #fffaf2;
}
.metric.on {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}
.ic.green {
  background: var(--lime);
  color: var(--ink);
}
.ic.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.ic.grey {
  background: var(--canvas-soft);
  color: var(--muted);
}
.ic.pink {
  background: var(--pink-soft);
  color: var(--pink-ink);
}

/* ── listing rows ──────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.toolbar .search {
  margin-left: auto;
}
.rows {
  overflow: hidden;
  /* paging scrolls the list back into view with the toolbar above it still showing */
  scroll-margin-top: 80px;
}
/* One template for the header and every row, every column fixed except the name: nothing
   in a cell can shift a column, so the header always sits over its values. */
:root {
  --cols: 48px minmax(0, 1fr) 76px 92px 120px 290px;
}
.row {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 20px;
  row-gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
}
.row:hover {
  background: rgb(27 26 33 / 2%);
}
.row img,
.row .thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  object-fit: contain;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
}
.row .name {
  font-weight: 500;
}
.row .why {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.row .price {
  font-weight: 700;
  color: var(--berry);
}
/* Two prices in one cell: the struck one above (old price of a promo, or the confirmed price
   of a held change), the current one below. */
.row .price s {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--faint);
}
.row .price.held {
  color: var(--amber);
}
.confirm label input {
  height: 32px;
  margin-left: 8px;
}
.row .acts {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.pill.live {
  background: var(--lime);
  color: var(--ink);
}
.pill.live::before {
  background: var(--green);
}
.pill.broken {
  background: var(--red-soft);
  color: var(--red);
}
.pill.oos {
  background: var(--canvas-soft);
  color: var(--muted);
}
.pill.review {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.info {
  background: var(--info-soft);
  color: var(--info);
}
.head {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 20px;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.row > *,
.head > * {
  min-width: 0;
}
.row .pill {
  justify-self: start;
}
.head .span2 {
  grid-column: 1 / span 2;
}
.namecell {
  padding-right: 12px;
}
.brandline {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 1px;
}
.row .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.row img,
.row .thumb {
  width: 48px;
  height: 48px;
}

/* zoomable product images */
img.zoomable {
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
img.zoomable:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgb(110 36 52 / 14%);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgb(27 26 33 / 0%);
  backdrop-filter: blur(0);
  transition:
    background 0.2s,
    backdrop-filter 0.2s;
}
.lightbox.show {
  background: rgb(27 26 33 / 45%);
  backdrop-filter: blur(4px);
}
.lightbox figure {
  margin: 0;
  width: min(560px, 92vw);
  padding: 12px 12px 18px 18px;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgb(27 26 33 / 25%);
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.lightbox.show figure {
  transform: none;
  opacity: 1;
}
.lightbox figure:focus {
  outline: none;
}
/* the modal's header: the name on the left, the close button on its own, never on the image */
.lightbox header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.lightbox figcaption {
  padding-top: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.lightbox .iconbtn .ph {
  font-size: 18px;
}
/* a fixed square from the first frame: the spinner until the image is in, then the image fades in */
.lb-frame {
  position: relative;
  aspect-ratio: 1;
  max-height: 70vh;
  margin-right: 6px;
  border-radius: var(--r-md);
  background: var(--canvas-soft);
  overflow: hidden;
}
.lb-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 28px;
}
.lb-frame:not(.loading) .lb-wait {
  display: none;
}
.lb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s;
}
.lb-frame.loaded img {
  opacity: 1;
}
.lb-frame.failed {
  display: grid;
  place-items: center;
  color: var(--faint);
}
.lb-frame.failed img {
  display: none;
}
.lb-frame.failed .ph {
  font-size: 40px;
}
.relink {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  max-width: 560px;
}
.relink .input {
  flex: 1;
  height: 36px;
}

/* ── progress ─────────────────────────────────────────── */
.progress {
  width: 220px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--blush);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
  border-radius: var(--r-full);
  transition: width 0.6s ease;
}
.running {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ── door ──────────────────────────────────────────────── */
.door {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.door .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.door .g1 {
  width: 520px;
  height: 520px;
  background: var(--blush);
  left: -140px;
  top: -160px;
}
.door .g2 {
  width: 420px;
  height: 420px;
  background: #f9e4d8;
  right: -120px;
  bottom: -140px;
}
.door .panel {
  width: min(440px, calc(100vw - 32px));
  padding: 36px 36px 28px;
  position: relative;
}
.door .panel .brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.door label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 500;
}
.door .input {
  width: 100%;
  height: 46px;
}
.door .btn.primary {
  width: 100%;
  height: 46px;
  justify-content: center;
  margin-top: 14px;
  font-size: 15px;
}
.door .foot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.door .foot .ph {
  color: var(--pink-ink);
}
.door .proof {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.door .proofline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: rgb(255 255 255 / 70%);
  border: 1px solid var(--line);
}
.door .proofline .ph-duotone {
  color: var(--pink-ink);
  font-size: 17px;
}

/* ── motion ───────────────────────────────────────────── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 0.35s ease both;
}
.rise.d1 {
  animation-delay: 0.05s;
}
.rise.d2 {
  animation-delay: 0.1s;
}
.rise.d3 {
  animation-delay: 0.15s;
}
.rise.d4 {
  animation-delay: 0.2s;
}

@media (max-width: 900px) {
  /* The menu becomes a top bar on the canvas and the window scrolls; the page keeps its panel. */
  .shell {
    display: block;
    height: auto;
    overflow: visible;
  }
  .sidebar {
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
  }
  .sidebar .brand {
    height: auto;
    padding: 0 6px;
  }
  .sidebar .brand .tag {
    display: none;
  }
  .nav {
    flex-direction: row;
  }
  .nav a span.txt {
    display: none;
  }
  .sidebar .bottom {
    margin-top: 0;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }
  /* The help card shrinks to its icon (and its dot) in the top bar. */
  .help {
    padding: 8px;
    border-color: transparent;
    border-radius: var(--r-full);
    background: transparent;
  }
  .help.on {
    border-color: transparent;
    background: var(--pink-soft);
  }
  .helpicon {
    margin: 0;
  }
  .helpicon .newdot {
    box-shadow: 0 0 0 2px var(--canvas);
  }
  .helptxt {
    display: none;
  }
  .shopcard b,
  .shopcard .tiny {
    display: none;
  }
  .main {
    margin: 0 8px 8px;
    overflow: visible;
  }
  .mainwrap {
    padding: 18px 14px 40px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .row,
  .head {
    grid-template-columns: 44px 1fr;
  }
  .head {
    display: none;
  }
  .row .acts {
    grid-column: 2;
    justify-content: flex-start;
  }
  .toolbar .search {
    margin-left: 0;
    width: 100%;
  }
  .search .input {
    width: 100%;
  }
}

/* ── demo additions ───────────────────────────────────── */
.row .name .brand {
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}
.row.editing {
  background: var(--pink-soft);
}
/* ── Qui a accès: team table, row menu, add-person form ── */
.members {
  --mcols: 40px minmax(0, 1fr) 150px 190px 90px 40px;
  padding: 0;
  overflow: hidden;
}
.members.lite {
  --mcols: 40px minmax(0, 1fr) 150px 90px 40px;
}
.mhead,
.mrow {
  display: grid;
  grid-template-columns: var(--mcols);
  column-gap: 16px;
  align-items: center;
  padding: 0 16px 0 20px;
}
.mhead {
  padding-top: 12px;
  padding-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.mhead .span2 {
  grid-column: 1 / span 2;
}
.mrow {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
  transition: background 0.15s;
}
.mrow:hover {
  background: rgb(27 26 33 / 2%);
}
.mrow .avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--berry);
  font-size: 14px;
  font-weight: 700;
}
.mrow .avatar.pending {
  background: var(--card);
  border: 1.5px dashed var(--line-strong);
  color: var(--faint);
}
.who {
  min-width: 0;
}
.who b {
  font-weight: 600;
}
.who .you {
  color: var(--faint);
}
.who .mail {
  display: block;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.role.admin {
  color: var(--ink);
  font-weight: 500;
}
.seen {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.seen .chip {
  align-self: flex-start;
}
/* SKI-319 — a visit's flag, browser, device kind and system, each named by a tooltip. */
.marks {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.marks:empty {
  display: none;
}
.mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: default;
}
.mark .ph {
  font-size: 14px;
  vertical-align: 0;
}
/* Chrome draws a colour emoji with the text colour's alpha: the muted ink would fade the flag. */
.mark.flag {
  color: var(--ink);
}
.mark::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 5;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: #fff;
  font: 500 12px/1.3 var(--body);
  white-space: nowrap;
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 2px);
  transition:
    opacity 0.1s,
    transform 0.1s;
}
.mark:focus {
  outline: none;
}
/* SKI-323 — a tap focuses the mark (portal.js), so focus names it as hover does. */
.mark:hover::after,
.mark:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.1s;
}
/* iOS Safari only delivers a delegated click from an element it deems clickable. */
@media (hover: none) {
  .mark {
    cursor: pointer;
  }
}
.mact {
  justify-self: end;
}
.access-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
/* Top-aligned: a note that wraps (phones) keeps its icon beside the first line; one line reads
   the same as centred, the 20 px icon matching the 19.5 px line. */
.notes {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.notes > .ph {
  flex: none;
}
.notes:empty {
  display: none;
}
.menu {
  position: absolute;
  z-index: 70;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 12px 32px rgb(27 26 33 / 14%);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.12s,
    transform 0.12s;
}
.menu.show {
  opacity: 1;
  transform: none;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.menu button:hover {
  background: var(--canvas-soft);
}
.menu button .ph {
  font-size: 17px;
  color: var(--muted);
}
.menu button.danger,
.menu button.danger .ph {
  color: var(--red);
}
.menu button.danger:hover {
  background: var(--red-soft);
}
.menu hr {
  margin: 6px 4px;
  border: 0;
  border-top: 1px solid var(--line);
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}
.field .input {
  width: 100%;
}
.input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rolecard {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.rolecard input {
  grid-row: span 2;
  margin-top: 3px;
  accent-color: var(--pink);
}
.rolecard b {
  font-size: 14px;
}
.rolecard span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.rolecard:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-soft);
}
@media (max-width: 900px) {
  .members,
  .members.lite {
    --mcols: 40px minmax(0, 1fr) 40px;
  }
  .mhead > span:not(.span2),
  .mrow > .small {
    display: none;
  }
  /* SKI-323 — the role, then (admins) the last visit, under the name; the avatar and the "…"
     menu keep their places beside them. */
  .mrow {
    grid-template-areas:
      "avatar who act"
      "avatar role act"
      "avatar seen act";
  }
  .mrow .avatar {
    grid-area: avatar;
  }
  .mrow .who {
    grid-area: who;
  }
  .mrow .role {
    grid-area: role;
    margin-top: 4px;
  }
  .mrow .seen {
    grid-area: seen;
    flex-flow: row wrap;
    align-items: center;
    gap: 2px 6px;
    margin-top: 4px;
  }
  .mrow .mact {
    grid-area: act;
  }
  /* Your own row has no menu: its last visit may use that column too. */
  .mrow:has(.mact:empty) .seen {
    grid-column: 2 / -1;
  }
  .roles {
    grid-template-columns: 1fr;
  }
}
.empty {
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.empty .ph-duotone {
  font-size: 36px;
  color: var(--pink-ink);
  margin-bottom: 6px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.pager .pages {
  display: flex;
  gap: 6px;
}
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  max-width: 420px;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast .ph-duotone {
  font-size: 20px;
  color: #f7c6d6;
  flex: none;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 14px;
}
.notice.ok {
  background: var(--lime-soft);
  color: var(--ink);
}
.notice.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.notice.err {
  background: var(--red-soft);
  color: var(--red);
}
.notice a {
  color: inherit;
  font-weight: 600;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.choice:hover {
  border-color: var(--pink);
  background: var(--pink-soft);
}
.choice img,
.choice .noimg {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
  flex: none;
}
.choice b {
  font-size: 14px;
  line-height: 1.3;
}
.ticket {
  padding: 18px 22px;
  margin-bottom: 14px;
}
.thead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.thead img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  object-fit: contain;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
}
.thead .pill {
  margin-left: auto;
}
.thead .ref {
  font-size: 12px;
  color: var(--faint);
}
.timeline {
  list-style: none;
  margin: 14px 0 0 10px;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 12px 14px;
  font-size: 14px;
}
/* A step's dot is its state chip in miniature: the chip's fill, ringed in the chip's colour so
   the pale fills stay visible on white. A step not reached yet is hollow. */
.timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot, var(--card));
  border: 1.5px solid var(--ring, #c8cbd2);
  box-shadow: 0 0 0 3px var(--card);
}
.timeline li.done {
  --dot: var(--lime);
  --ring: var(--green);
}
.timeline li.review {
  --dot: var(--amber-soft);
  --ring: var(--amber);
}
.timeline li.info {
  --dot: var(--info-soft);
  --ring: var(--info);
}
.timeline li.declined {
  --dot: var(--canvas-soft);
  --ring: var(--muted);
}
.timeline li {
  max-width: 68ch;
}
.timeline time {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.thead > div {
  max-width: 56ch;
}
.timeline a {
  color: var(--pink-ink);
  font-weight: 500;
}
.tfoot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.resend {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 320px;
}
.resend .input {
  flex: 1;
  height: 34px;
}
.howwe {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin: 8px 0 18px;
  /* Neutral, so it reads as an aside next to the pink "not on SkinSouk yet" answer above it. */
  background: var(--canvas-soft);
  border-color: var(--line);
  box-shadow: none;
}
.howwe .ph-duotone {
  font-size: 26px;
  color: var(--pink-ink);
  flex: none;
  margin-top: 2px;
}
.howwe > div > b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.pc-empty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}
.pc-empty[hidden] {
  display: none;
}
.pc-empty > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
}
.pc-empty .ph-duotone {
  grid-row: span 2;
  font-size: 24px;
  color: var(--pink-ink);
}
.pc-empty b {
  font-size: 14px;
}
.pc-empty span {
  font-size: 13px;
  color: var(--muted);
}

/* ── broken links: reassurance and the three-answer panel ── */
.reassure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  margin: 0 0 12px;
  border-radius: var(--r-lg);
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.reassure .ph-duotone {
  font-size: 24px;
  flex: none;
  margin-top: 1px;
  color: var(--green);
}
.resolve {
  grid-column: 1 / -1;
  margin: 4px 0 2px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.diag {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.diag .ph-duotone {
  font-size: 20px;
  color: var(--pink-ink);
}
.diag b {
  color: var(--ink);
  font-weight: 600;
}
.diag a {
  color: var(--pink-ink);
  font-weight: 500;
  text-decoration: none;
  margin-left: 6px;
}
.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.answer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.08s;
}
.answer:hover {
  border-color: var(--line-strong);
}
.answer.on {
  border-color: var(--pink);
  background: var(--pink-soft);
}
.answer .ph-duotone {
  font-size: 22px;
  color: var(--pink-ink);
}
.answer b {
  font-size: 14px;
}
.answer span {
  font-size: 12px;
  color: var(--muted);
}
.answer-body:not(:empty) {
  margin-top: 12px;
}
.answer-body .relink {
  max-width: none;
}
.confirm {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--canvas-soft);
  font-size: 14px;
  color: var(--muted);
}
.confirm .btn {
  flex: none;
}
.resolve-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .answers {
    grid-template-columns: 1fr;
  }
  .confirm {
    flex-direction: column;
    align-items: flex-start;
  }
}

.quietlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.quietlink:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seg .ind {
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s;
}

/* ── Proposer: paste bar, one card per page, send bar ───── */
.pastecard {
  padding: 10px 12px 10px 16px;
  margin-bottom: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pastecard:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}
.pastebox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pastebox > .ph {
  font-size: 20px;
  color: var(--faint);
}
.pastebox textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 8px 0;
  color: var(--ink);
}
.pastefoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pcard {
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-soft);
}
.pc-url {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.pc-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-url:hover {
  color: var(--ink);
}
.iconbtn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.iconbtn:hover {
  background: rgb(27 26 33 / 6%);
  color: var(--ink);
}
.pcard .notice {
  margin: 14px 16px;
}
.pc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 8px;
  padding: 16px;
}
.pc-mid {
  display: grid;
  place-items: center;
  padding-top: 44px;
  font-size: 20px;
  color: var(--faint);
  align-self: start;
}
.pc-prod {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
}
.pc-prod img,
.noimg {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  object-fit: contain;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
  flex: none;
}
.noimg {
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--faint);
}
.noimg.sm {
  width: 36px;
  height: 36px;
  font-size: 16px;
}
.pc-prod b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  max-width: 36ch;
}
.sizes-on {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.szchip {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--muted);
}
.szchip.mine {
  border-color: transparent;
  background: var(--blush);
  color: var(--pink-ink);
}
.pc-links {
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
}
.pc-links a,
.pc-hits a {
  color: var(--pink-ink);
  font-weight: 500;
  text-decoration: none;
}
.pc-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pc-new {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--pink-soft);
}
.pc-new .ph-duotone {
  font-size: 24px;
  color: var(--pink-ink);
  flex: none;
}
.pc-new b {
  display: block;
  font-size: 14px;
}
.pc-search {
  width: 100%;
  margin-top: 8px;
}
.pc-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.pc-hits .notice {
  margin: 2px 0 0;
}
.pc-sizes {
  padding: 12px 16px 12px;
  border-top: 1px dashed var(--line);
}
.szrow {
  display: grid;
  grid-template-columns: 22px minmax(0, 230px) 20px auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
}
.szrow input {
  width: 17px;
  height: 17px;
  accent-color: var(--pink);
}
.szrow.off {
  opacity: 0.55;
  cursor: default;
}
.szrow .arrow {
  color: var(--faint);
}
.instock {
  color: var(--green);
}
.nostock {
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.chip.ok {
  background: var(--lime);
  color: var(--ink);
}
.chip.new {
  background: var(--pink-soft);
  color: var(--pink-ink);
}
.chip.muted {
  background: var(--canvas-soft);
  color: var(--muted);
}
.chip.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.pc-wait {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--amber);
}
.pc-skel {
  display: flex;
  gap: 12px;
  padding: 16px;
}
.pc-skel span {
  flex: 1;
  height: 72px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--canvas-soft), #fff, var(--canvas-soft));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.sendbar {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--card);
  box-shadow: 0 10px 30px rgb(27 26 33 / 14%);
}
.sendbar[hidden] {
  display: none;
}
.sb-txt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* ── modal (contact, confirmations) ─────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(27 26 33 / 0%);
  transition:
    background 0.2s,
    backdrop-filter 0.2s;
}
.modal-backdrop.show {
  background: rgb(27 26 33 / 40%);
  backdrop-filter: blur(3px);
}
.modal {
  width: min(520px, 100%);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: 0 24px 60px rgb(27 26 33 / 25%);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.modal-backdrop.show .modal {
  opacity: 1;
  transform: none;
}
.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0 22px;
}
.modal h2 {
  margin: 0;
  font-size: 18px;
}
.modal-body {
  padding: 14px 22px 4px;
}
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 22px 20px;
}
.btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.modal-body > :first-child {
  margin-top: 0;
}
/* ── conversations (SKI-316): the shop on the right, SkinSouk on the left ── */
.msgbox {
  display: block;
  width: 100%;
  height: auto;
  min-height: 76px;
  max-height: 40vh;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  resize: vertical;
  font-family: var(--body);
  line-height: 1.5;
}
.shake {
  animation: shake 0.3s;
}
@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thread:empty {
  display: none;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(80%, 64ch);
}
.msg.ours {
  align-self: flex-end;
}
.msg.theirs {
  align-self: flex-start;
}
.msg > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.msg.ours > div {
  align-items: flex-end;
}
.bubble {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bubble p {
  white-space: pre-wrap;
}
.msg.ours .bubble {
  background: var(--pink-soft);
  border-radius: 16px 16px 4px 16px;
}
.msg.theirs .bubble {
  background: var(--canvas-soft);
  border-radius: 16px 16px 16px 4px;
}
.msg time {
  padding: 0 4px;
  font-size: 12px;
  color: var(--muted);
}
.msgavatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  border-radius: var(--r-full);
  background: var(--blush);
  color: var(--berry);
  font-size: 13px;
  font-weight: 700;
}
.msgavatar.lg {
  width: 40px;
  height: 40px;
  margin: 0;
  font-size: 16px;
}
.newline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-ink);
  font-size: 12px;
  font-weight: 600;
}
.newline::before,
.newline::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--blush);
}
.offerchip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
.offerchip img,
.offerchip .noimg {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--canvas-soft);
  font-size: 16px;
}
.offerchip > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.offerchip b {
  font-size: 13px;
  line-height: 1.3;
}
.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attached {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.attached .offerchip {
  margin: 0;
}
.composebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* /messages: one card, Kawtar on top, the thread, the answer box at the foot */
.conv-card {
  max-width: 820px;
  overflow: hidden;
}
.conv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.conv-head b {
  display: block;
  font-size: 15px;
}
.conv-card .thread {
  padding: 22px;
}
.conv-card .composer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.conv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 22px;
  text-align: center;
}
.conv-empty .ph-duotone {
  margin-bottom: 6px;
  font-size: 36px;
  color: var(--pink-ink);
}
.conv-empty span {
  max-width: 46ch;
}
/* Mes demandes: each request's conversation, folded under its timeline */
.ticket.has-new {
  border-color: var(--pink);
  box-shadow:
    inset 3px 0 0 var(--pink),
    var(--shadow);
}
.conv {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.conv summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 2px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.conv summary::-webkit-details-marker {
  display: none;
}
.conv summary .ph {
  font-size: 17px;
  color: var(--pink-ink);
}
.conv summary:hover > span:first-of-type {
  color: var(--pink-ink);
}
.conv summary .caret {
  color: var(--muted);
  transition: transform 0.15s;
}
.conv[open] summary .caret {
  transform: rotate(180deg);
}
.conv summary:focus-visible {
  outline: none;
  border-radius: var(--r-sm);
  box-shadow:
    0 0 0 1.5px var(--pink),
    0 0 0 4px var(--pink-soft);
}
.newpill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.convbody {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  padding: 8px 0 4px;
}
.conv .thread {
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--paper);
}
.conv .msg.ours .bubble {
  background: var(--blush);
}
.conv .msg.theirs .bubble {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 900px) {
  .pc-body {
    grid-template-columns: 1fr;
  }
  .pc-mid {
    display: none;
  }
  .pc-empty {
    grid-template-columns: 1fr;
  }
  .szrow {
    grid-template-columns: 22px 1fr;
  }
  .szrow .arrow {
    display: none;
  }
  .szrow .chip {
    grid-column: 2;
  }
}

/* ── production additions (not in the demo) ─────────────── */
[hidden] {
  display: none !important;
}
.menu a[role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.menu a[role="menuitem"]:hover {
  background: var(--canvas-soft);
}
.menu a[role="menuitem"] .ph {
  font-size: 17px;
  color: var(--muted);
}
/* The conditions and the privacy notice at the account menu's foot: small, under a hairline. */
.menu .menu-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.menu .menu-legal a[role="menuitem"] {
  display: inline-block;
  width: auto;
  padding: 4px 6px;
  font-size: 12px;
  color: inherit;
}
.menu .menu-legal a[role="menuitem"]:hover,
.menu .menu-legal a[role="menuitem"]:focus-visible {
  background: none;
  color: var(--ink);
  text-decoration: underline;
}
.shopcard .avatar {
  position: relative;
  overflow: hidden;
}
/* The logo covers the initial; portal.js removes it when it fails to load. */
.shopcard .avatar .shoplogo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.shopcard > div {
  min-width: 0;
}
.shopcard .tiny {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.door-title {
  font-size: 24px;
  margin-bottom: 8px;
}
.door-lead {
  margin-bottom: 24px;
}
.door-contact {
  color: var(--pink-ink);
  font-weight: 500;
}
.door .notice {
  margin-bottom: 16px;
}
.listtitle {
  margin: 0 0 8px;
}
.listtitle:empty {
  display: none;
}
.retired {
  margin-top: 10px;
}
.row .thumb.noimg {
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--faint);
}
.thead .noimg {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  font-size: 18px;
}
.preparing {
  gap: 8px;
}
.preparing .btn {
  margin-top: 10px;
}
.errorcard .btn {
  margin-top: 12px;
}
/* welcome: the door's panel, a little wider, with the three points */
.door .panel.welcome {
  max-width: 560px;
}
.welcome-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  max-width: 60ch;
}
.welcome-points .ph-duotone {
  color: var(--green);
  flex: none;
  margin-top: 2px;
}
.welcome-terms {
  margin-bottom: 16px;
  max-width: 60ch;
}
.welcome-terms a {
  color: var(--pink-ink);
  font-weight: 500;
}
/* preferences */
.prefs {
  padding: 22px;
  max-width: 640px;
}
.prefs .roles {
  grid-template-columns: repeat(3, 1fr);
}
.prefs .field + .field {
  margin-top: 18px;
}
.prefs .field > .small {
  margin: -6px 0 10px;
}
.checkrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  max-width: 60ch;
  cursor: pointer;
}
.checkrow input {
  margin: 3px 0 0;
  accent-color: var(--pink);
}
.prefs-foot {
  margin-top: 20px;
}
/* signed-out column and the legal texts */
.solo {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.solo .brandline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}
.solo .brandline .wordmark {
  color: var(--ink);
}
.solo h1 {
  margin-bottom: 16px;
}
.legal {
  padding: 26px 28px 22px;
  max-width: 760px;
}
.legal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.legal-head .ph-duotone {
  color: var(--pink-ink);
  font-size: 22px;
}
.legal .lead {
  font-size: 15px;
  max-width: 64ch;
  margin-bottom: 18px;
}
.legal-toc ol {
  margin: 0 0 22px;
  padding: 0 0 0 20px;
  columns: 2;
  font-size: 13px;
  color: var(--muted);
}
.legal-toc a {
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--pink-ink);
}
.legal section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.legal h2 {
  font-size: 16px;
  margin-bottom: 8px;
}
.legal section p {
  max-width: 66ch;
  font-size: 14px;
  color: rgb(27 26 33 / 80%);
}
.legal section p + p {
  margin-top: 8px;
}
.legal-contact {
  margin-top: 22px;
}
.legal-contact a {
  color: var(--pink-ink);
}
@media (max-width: 900px) {
  .legal-toc ol {
    columns: 1;
  }
  .shopcard .menubtn {
    margin-left: 0;
  }
  .shopcard b,
  .shopcard .tiny {
    display: none;
  }
  .shopcard {
    padding: 4px;
    gap: 4px;
    border-top: 0;
  }
  .shopcard .avatar {
    width: 32px;
    height: 32px;
  }
  .sidebar .brand {
    padding-right: 0;
  }
  .nav {
    gap: 0;
  }
  /* a thumb's target in the top bar */
  .nav a {
    height: 36px;
    padding: 0 9px;
  }
  .nav a .newdot {
    left: 23px;
    top: 5px;
  }
}
/* motion with a job only — and none for those who asked for none */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rise {
    animation: none;
  }
}
/* narrow phones: the top bar wraps the nav under the wordmark; tab strips scroll sideways */
@media (max-width: 600px) {
  .sidebar {
    flex-wrap: wrap;
    padding: 8px 10px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
  }
  .nav a {
    flex: 1;
    justify-content: center;
    padding: 0 4px;
  }
  .nav a .count {
    margin-left: 4px;
  }
  .nav a .newdot {
    left: calc(50% + 3px);
  }
  .toolbar .seg {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .toolbar .seg::-webkit-scrollbar {
    display: none;
  }
  .seg a {
    white-space: nowrap;
  }
  .thead {
    flex-wrap: wrap;
  }
  .thead > div {
    flex: 1 1 60%;
  }
  .thead .pill {
    margin-left: 0;
  }
  .mainwrap {
    padding: 16px 12px 40px;
  }
  .pagehead .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    row-gap: 8px;
  }
  .row .namecell {
    grid-column: 2 / span 2;
  }
  .row > span:not(.pill):not(.price) {
    grid-column: 2;
  }
  .row .price {
    grid-column: 3;
    justify-self: end;
  }
  .row .pill,
  .row .acts {
    grid-column: 2 / span 2;
  }
  .row .resolve {
    grid-column: 1 / span 3;
  }
  .row .acts {
    flex-wrap: wrap;
  }
  .resend {
    flex-wrap: wrap;
  }
  .resend .input {
    width: 100%;
    flex: 1 1 100%;
  }
  .tfoot {
    flex-wrap: wrap;
  }
  .msg {
    max-width: 90%;
  }
  .conv-card .thread,
  .conv-empty {
    padding: 16px 14px;
  }
  .conv-head,
  .conv-card .composer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .conv .thread {
    padding: 10px;
  }
  .composebar .btn {
    flex: none;
  }
}

/* The conditions and the privacy notice: under the door's line, at the foot of the signed-out
   pages (SKI-296). Signed in, they live in the shop-card menu (.menu-legal). */
.legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 8px;
  font-size: 12px;
  color: var(--faint);
}
.legal-links a {
  color: inherit;
  text-decoration: none;
}
.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.door .proof .legal-links {
  margin: 10px 0 0;
}
/* A short screen keeps the footer under the panel instead of over it. */
@media (max-height: 720px) {
  .door {
    grid-template-rows: 1fr auto;
    padding-top: 24px;
  }
  .door .proof {
    position: static;
    padding: 18px 0 22px;
  }
}
