/* ==========================================================================
   Prov · Aprovação — base.css
   Design tokens + shared components. Every page loads this first.
   ========================================================================== */

:root {
  /* Brand */
  --petrol: #012B39;
  --petrol-900: #001A24;
  --petrol-700: #06384A;
  --petrol-600: #0E4A5E;
  --petrol-400: #4F7A88;
  --petrol-100: #E3ECEE;
  --rose: #C07A8C;
  --rose-700: #94586A;
  --rose-600: #A9647A;
  --rose-300: #DDB1BD;
  --rose-100: #F5E6EA;
  --rose-50: #FBF3F5;

  /* Neutrals (warm) */
  --bg: #FBF8F7;
  --surface: #FFFFFF;
  --surface-2: #F6F1F0;
  --surface-3: #EFE8E7;
  --line: #ECE4E3;
  --line-strong: #DCD0CF;
  --text: #0F2A33;
  --text-2: #3D5660;
  --muted: #5F7177;      /* ≥ 4.5:1 on bg, white and surface-2 (small text) */

  /* Status */
  --ok: #2E8B6E;      --ok-bg: #E4F3ED;    --ok-line: #B9DFD1;
  --warn: #B87A14;    --warn-bg: #FBF0DC;  --warn-line: #EFD3A2;
  --bad: #B9443B;     --bad-bg: #F8E5E3;   --bad-line: #EBC0BB;
  --wait: #5F7A84;    --wait-bg: #EDF2F3;  --wait-line: #D2DEE1;
  /* Status TEXT (and solid fills under white text): the hues above are for dots, borders and icons;
     these darker shades keep small text ≥ 4.5:1 on white and on their -bg tints (WCAG AA). */
  --ok-text: #1F6B54;  --warn-text: #8A5A0B;  --bad-text: #9C3A32;  --wait-text: #4E6670;

  /* Formats */
  --fmt-post: #0E4A5E;
  --fmt-carrossel: #A9647A;
  --fmt-reels: #6B4E8C;
  --fmt-stories: #2E7D7A;

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13.5px;
  --fs: 15px;
  --fs-md: 17px;
  --fs-lg: 21px;
  --fs-xl: 28px;
  --fs-2xl: 40px;

  /* Shape & depth */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(1, 43, 57, .06), 0 1px 3px rgba(1, 43, 57, .05);
  --shadow: 0 4px 14px rgba(1, 43, 57, .08), 0 1px 3px rgba(1, 43, 57, .06);
  --shadow-lg: 0 18px 50px rgba(1, 43, 57, .18), 0 4px 12px rgba(1, 43, 57, .08);
  --focus: 0 0 0 3px rgba(192, 122, 140, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t: 200ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--petrol-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rose-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--petrol); }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { font-weight: 600; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
::selection { background: var(--rose-100); color: var(--petrol); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
[hidden] { display: none !important; }

/* Scrollbars */
.scroll-y { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.scroll-y::-webkit-scrollbar { width: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.serif { font-family: var(--font-display); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1 1 auto; }
.center { display: grid; place-items: center; }

/* ---------- Icons ---------- */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--petrol);
  --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--btn-line); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  user-select: none;
}
.btn:hover { --btn-bg: var(--surface-2); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--petrol); --btn-fg: #fff; --btn-line: var(--petrol); }
.btn-primary:hover { --btn-bg: var(--petrol-700); color: #fff; }
.btn-rose { --btn-bg: var(--rose); --btn-fg: #fff; --btn-line: var(--rose); }
.btn-rose:hover { --btn-bg: var(--rose-600); color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--bad); --btn-line: var(--bad-line); }
.btn-danger:hover { --btn-bg: var(--bad-bg); color: var(--bad-text); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

/* Decision buttons (approve / revise / reject) */
.btn-decision {
  --c: var(--wait); --c-bg: var(--wait-bg); --c-line: var(--wait-line);
  flex: 1 1 0; min-height: 52px; border-radius: var(--r);
  border: 1.5px solid var(--c-line); background: var(--surface); color: var(--c);
  font-weight: 700; font-size: 15px;
}
.btn-decision { color: var(--c-text, var(--c)); }
.btn-decision:hover { background: var(--c-bg); color: var(--c-text, var(--c)); }
.btn-decision.is-active { background: var(--c-text, var(--c)); border-color: var(--c-text, var(--c)); color: #fff; box-shadow: 0 6px 18px -6px var(--c); }
.btn-decision.approve { --c: var(--ok); --c-bg: var(--ok-bg); --c-line: var(--ok-line); --c-text: var(--ok-text); }
.btn-decision.revise  { --c: var(--warn); --c-bg: var(--warn-bg); --c-line: var(--warn-line); --c-text: var(--warn-text); }
.btn-decision.reject  { --c: var(--bad); --c-bg: var(--bad-bg); --c-line: var(--bad-line); --c-text: var(--bad-text); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error-text { font-size: 13px; color: var(--bad-text); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #6F8187; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--bad); }
/* 16px on touch / small screens: iOS Safari zooms into any field under 16px and stays zoomed. */
@media (max-width: 1023.98px), (pointer: coarse) { .input, .select, .textarea { font-size: 16px; } }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23012B39' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* Toggle switch: <label class="switch"><input type="checkbox"><span></span> Texto</label> */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background var(--t) var(--ease); flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease); }
.switch input:checked + span { background: var(--petrol); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* Segmented control: <div class="seg"><button class="is-active">A</button><button>B</button></div> */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.seg > button { border: 0; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg > button:hover { color: var(--petrol); }
.seg > button.is-active { background: var(--surface); color: var(--petrol); box-shadow: var(--shadow-sm); }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.panel-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Status pills & dots ---------- */
.pill {
  --c: var(--wait); --c-bg: var(--wait-bg);
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--c-bg); color: var(--c-text, var(--c));
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pill.no-dot::before { display: none; }
.pill.status-pendente  { --c: var(--wait); --c-bg: var(--wait-bg); --c-text: var(--wait-text); }
.pill.status-aprovado  { --c: var(--ok);   --c-bg: var(--ok-bg);   --c-text: var(--ok-text); }
.pill.status-revisar   { --c: var(--warn); --c-bg: var(--warn-bg); --c-text: var(--warn-text); }
.pill.status-reprovado { --c: var(--bad);  --c-bg: var(--bad-bg);  --c-text: var(--bad-text); }
.pill.is-draft { --c: var(--muted); --c-bg: var(--surface-3); --c-text: #52696F; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wait); flex: none; display: inline-block; }
.dot.status-pendente  { background: var(--wait); }
.dot.status-aprovado  { background: var(--ok); }
.dot.status-revisar   { background: var(--warn); }
.dot.status-reprovado { background: var(--bad); }
.dot.is-pauta { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rose-600); }

/* Status colour as a variable on any element: .st-aprovado { --st: … } */
.st-pendente  { --st: var(--wait); --st-bg: var(--wait-bg); --st-text: var(--wait-text); }
.st-aprovado  { --st: var(--ok);   --st-bg: var(--ok-bg);   --st-text: var(--ok-text); }
.st-revisar   { --st: var(--warn); --st-bg: var(--warn-bg); --st-text: var(--warn-text); }
.st-reprovado { --st: var(--bad);  --st-bg: var(--bad-bg);  --st-text: var(--bad-text); }

/* ---------- Format badges ---------- */
.badge {
  --c: var(--fmt-post);
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c) 10%, white); color: var(--c);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge.fmt-post      { --c: var(--fmt-post); }
.badge.fmt-carrossel { --c: var(--fmt-carrossel); }
.badge.fmt-reels     { --c: var(--fmt-reels); }
.badge.fmt-stories   { --c: var(--fmt-stories); }
.badge.badge-lg { height: 34px; padding: 0 14px; font-size: 14px; }
.badge.badge-lg .icon { width: 17px; height: 17px; }
.badge.stage-pauta { --c: var(--rose-700); background: transparent; border: 1.5px dashed var(--rose-300); }
.badge.stage-arte  { --c: var(--petrol-600); }

/* Chips (filters) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.chip:hover { border-color: var(--line-strong); color: var(--petrol); }
.chip.is-active { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chip .count { font-size: 11.5px; opacity: .75; }

/* ---------- Avatar ---------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden;
  display: inline-grid; place-items: center;
  background: var(--rose-100); color: var(--rose-700);
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.is-agency { background: var(--petrol); color: var(--rose-300); }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--rose); }

/* ---------- Feedback: toast, spinner, skeleton, empty ---------- */
.toast-wrap { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--petrol); color: #fff; box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: 14px;
  animation: toast-in var(--t) var(--ease);
}
.toast.success { background: var(--ok-text); }
.toast.error { background: var(--bad); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all var(--t) var(--ease); }
.toast-action { margin-left: 2px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--r-pill); background: transparent; color: #fff; font-size: 13px; font-weight: 700; }
.toast-action:hover { background: rgba(255, 255, 255, .16); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--rose-100); border-top-color: var(--rose); animation: spin .8s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 48px 24px; color: var(--muted); }
.empty .empty-title { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--petrol); }
.empty .icon { width: 36px; height: 36px; color: var(--rose); stroke-width: 1.4; }

/* Progress bar */
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width var(--t) var(--ease); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 26, 36, .45); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 16px;
  animation: fade-in var(--t) var(--ease);
}
.modal {
  width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: modal-in var(--t) var(--ease);
}
.modal.modal-lg { width: min(820px, 100%); }
.modal.modal-sm { width: min(400px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.modal-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; flex: 1; }
.modal-body { padding: 4px 20px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Captions (renderCaption) ---------- */
.caption-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; color: var(--text); }
.cap-tag, .cap-mention { color: var(--rose-700); font-weight: 600; }

/* ---------- Productions: bars across the calendar days (agency + client calendars, common.js prodStack) ----------
   Every day cell holds one piece per lane. A piece that goes on to the neighbour day reaches over the cell padding
   (and border) with ::before / ::after, so the pieces meet and read as one bar: --prod-ext-l / --prod-ext-r are set
   by admin.css / client.css. The first piece of the week carries the label, which runs over the following days:
   --span days, each next cell starting 17px (padding + border + padding) after the end of the previous one. */
.prod-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prod-gap { display: block; height: 22px; }
.prod-seg {
  position: relative; display: block; width: 100%; height: 22px; padding: 0; margin: 0;
  border: 0; border-radius: 6px; background: var(--petrol-600); color: #fff;
  font: inherit; text-align: left; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.prod-seg.is-cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.prod-seg.is-cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.prod-seg.is-cont-l::before, .prod-seg.is-cont-r::after { content: ""; position: absolute; top: 0; bottom: 0; background: inherit; }
.prod-seg.is-cont-l::before { left: calc(-1 * var(--prod-ext-l, 8px)); width: var(--prod-ext-l, 8px); }
.prod-seg.is-cont-r::after { right: calc(-1 * var(--prod-ext-r, 8px)); width: var(--prod-ext-r, 8px); }
.prod-seg:hover, .prod-seg.is-hover { background: var(--petrol); }
.prod-seg:focus-visible { outline: none; box-shadow: var(--focus); }
.prod-label {
  position: absolute; z-index: 1; left: 0; top: 0; bottom: 0;
  width: calc(var(--span, 1) * (100% + 17px) - 17px);
  display: flex; align-items: center; gap: 5px; padding: 0 7px;
  font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden;
  pointer-events: none;
}
.prod-label .icon { width: 13px; height: 13px; flex: none; color: var(--rose-300); }
.prod-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.prod-docs { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 10.5px; }
.prod-docs .icon { width: 11px; height: 11px; color: inherit; }
.prod-seg.is-draft .prod-docs { background: rgba(1, 43, 57, .1); }
.prod-seg.is-draft { background: repeating-linear-gradient(135deg, var(--petrol-100) 0 6px, #D3E0E3 6px 12px); color: var(--petrol); }
.prod-seg.is-draft:hover, .prod-seg.is-draft.is-hover { background: repeating-linear-gradient(135deg, #D3E0E3 0 6px, #C2D4D8 6px 12px); }
.prod-seg.is-draft .prod-label .icon { color: var(--petrol-600); }

/* Production in a list / agenda (prodItem) and in the legends */
.prod-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 10px 12px;
  border: 0; border-radius: var(--r); background: var(--petrol-600); color: #fff;
  font: inherit; text-align: left; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.prod-item:hover { background: var(--petrol); }
.prod-item:focus-visible { outline: none; box-shadow: var(--focus); }
.prod-item-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--rose-300); }
.prod-item-ic .icon { width: 17px; height: 17px; }
.prod-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prod-item-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-300); }
.prod-item-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.prod-item.is-draft { background: repeating-linear-gradient(135deg, var(--petrol-100) 0 7px, #D3E0E3 7px 14px); color: var(--petrol); }
.prod-item.is-draft .prod-item-ic { background: rgba(1, 43, 57, .08); color: var(--petrol-600); }
.prod-item.is-draft .prod-item-kicker { color: var(--petrol-600); }
.prod-swatch { flex: none; width: 22px; height: 12px; border-radius: 4px; background: var(--petrol-600); }

/* ---------- Documents (Word / PDF) ---------- */
.doc-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.doc-badge.is-pdf { background: #B9443B; }
.doc-badge.is-docx { background: #2B5797; }
.doc-rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.doc-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.doc-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--petrol); overflow-wrap: anywhere; text-decoration: none; }
a.doc-row-title:hover { color: var(--rose-700); text-decoration: underline; }
.doc-row-meta { font-size: 12px; color: var(--muted); }
.doc-row.is-pending { border-style: dashed; background: var(--surface-2); }
.doc-row.is-error { border-color: var(--bad-line); background: var(--bad-bg); }
.doc-row.is-error .doc-row-meta { color: var(--bad-text); }
.doc-row-actions { flex: none; display: flex; gap: 2px; }

/* ---------- Brand logo ---------- */
.prov-logo { height: 44px; width: auto; overflow: visible; }
.prov-logo text { font-family: var(--font-display); }

/* Logout is a small POST form (CSRF); it must not change the flex layout around its button. */
.logout-form { display: contents; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
