/* =====================================================================
 * /rentals/prep-tech/portal — staff portal styles.
 * The portal has its OWN top nav (.kp-topbar): the public Valley
 * Films/Rentals .nav is hidden on this page via body.is-rentals-portal,
 * so .kp-topbar is the only bar. It carries the "V | Kit Tech" brand
 * (links back to the public Valley Rentals site), the section tabs, and
 * the signed-in user. MegaFooter (isRentals) sits at the bottom.
 * Tokens come from colors_and_type.css.
 * ===================================================================== */

.kit-portal {
  background: var(--vf-bg);
  color: var(--vf-ink);
  min-height: 100vh;
  /* Clear the fixed portal top bar (mirrors the public nav height, ~82px)
     so the brand never overlaps the login card / boot spinner / dashboard
     tabs below it. */
  padding-top: 84px;
  font-feature-settings: "ss01";
}

.kit-portal-dashboard {
  padding-top: 84px;
}

/* Boot spinner shown while we wait for /api/portal/session to respond.
   Sits inside the rentals chrome rather than full-viewport, so the
   page still has the rentals nav + footer for context. */
.kp-boot-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.kp-boot-spin {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 2px solid var(--vf-line);
  border-top-color: var(--vf-blue);
  animation: kpSpin 720ms linear infinite;
}
@keyframes kpSpin { to { transform: rotate(360deg); } }

/* =====================================================================
 * Login screen — sits in the page flow between the rentals nav and
 * the MegaFooter rather than covering the full viewport.
 * ===================================================================== */
.kp-login-shell {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(9, 94, 223, 0.06), transparent 60%),
    transparent;
}
.kp-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow: 0 1px 2px rgba(10, 15, 26, 0.04), 0 12px 36px rgba(10, 15, 26, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.kp-login-logo {
  width: 132px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.kp-login-card h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-align: center;
}
.kp-login-sub {
  font-size: 14.5px;
  color: var(--vf-ink-3);
  line-height: 1.55;
  margin: 0 0 22px;
  text-align: center;
}
.kp-login-fine {
  font-size: 12.5px;
  color: var(--vf-ink-4);
  line-height: 1.55;
  margin: 18px 0 0;
  text-align: center;
}
.kp-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}
.kp-login-field span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vf-ink-3);
}
.kp-login-field input {
  font: inherit;
  font-size: 16px;  /* 16px prevents iOS Safari zoom on focus */
  color: var(--vf-ink);
  background: var(--vf-bg);
  border: 1px solid var(--vf-line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.kp-login-field input:focus {
  border-color: var(--vf-blue);
  box-shadow: 0 0 0 4px rgba(9, 94, 223, 0.12);
  background: var(--vf-surface);
}
.kp-login-error {
  font-size: 13px;
  color: #B0331A;
  background: #FDECE8;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 12px;
}
.kp-btn-primary {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--vf-blue);
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.kp-btn-primary:hover:not(:disabled) { background: var(--vf-blue-600); }
.kp-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.kp-btn-primary:disabled { opacity: 0.55; cursor: progress; }

/* The secondary pill — same geometry as .kp-btn-primary, outlined instead of
   filled. Referenced across the portal (shift Cancel/Release, modal Cancel,
   account Sign out) and now the shared admin button. The 12px vertical padding
   (vs 13px on primary) absorbs the 1px border so both pills are the same height. */
.kp-btn-ghost {
  appearance: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--vf-ink);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 999px;
  padding: 12px 21px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.kp-btn-ghost:hover:not(:disabled) { border-color: var(--vf-blue); color: var(--vf-blue); }
.kp-btn-ghost:active:not(:disabled) { transform: translateY(1px); }
.kp-btn-ghost:disabled { opacity: 0.55; cursor: not-allowed; }

.kp-textlink {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: var(--vf-blue);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* =====================================================================
 * PortalTopbar — the portal's own primary nav, fixed at the very top.
 * The public site .nav is hidden on this page, so this is the only bar.
 * Brand (left) + tab pill (centre) + user chip (right). The tab pill
 * mirrors the rentals menu pill styling so the portal still feels like a
 * Valley Rentals surface.
 *
 * Fixed (not sticky) because body.is-rentals-page sets overflow-y: auto,
 * which breaks position: sticky for descendant elements. Fixed has the
 * same visual behaviour and works regardless of the body overflow.
 * ===================================================================== */
/* Geometry + frosted-glass treatment mirror the public .nav.is-light bar
   exactly (full-width, 20px 32px padding, same gradient/shadow) so moving
   between the public rentals site and the portal feels seamless. */
.kp-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;          /* same layer the public nav used */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px;
  background:
    linear-gradient(180deg, rgba(247,248,250,0.74) 0%, rgba(247,248,250,0.58) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(10,15,26,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 6px 20px rgba(10,15,26,0.06);
}
/* Push the tabs (and the user chip after them) to the right edge so the
   nav reads brand-left / controls-right, like the public rentals nav. */
.kp-portaltabs { margin-left: auto; }

/* Brand lockup. The V mark is fixed; only the text beside it cross-fades
   (a pure opacity swap, no movement — the smoothest read): "| Kit Tech"
   out, the real "valley rentals" wordmark (cropped from the main logo) in.
   The V never moves, so hovering lands on the exact main Valley Rentals
   logo. The text box is a fixed size so the swap never reflows the bar. */
.kp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;             /* V → text gap, mirrors the main logo lockup */
  flex: 0 0 auto;
  height: 32px;
  text-decoration: none;
  border-radius: 6px;
}
.kp-brand-mark {
  height: 32px;         /* the V — identical pixels in both states */
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.kp-brand-text {
  position: relative;
  height: 32px;
  width: 82px;          /* reserve for the wider of the two text layers */
  flex: 0 0 auto;
}
.kp-brand-kit,
.kp-brand-wordmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  /* `translate` is independent of `transform` (which holds the -50%
     centering), so it can drive a subtle vertical slide. Opacity swaps
     *sequentially* — the incoming layer waits for the outgoing one to
     clear (see the transition-delays below) so the two dissimilar layers
     never muddy each other at 50/50 — while the slower slide runs the
     whole time for continuous, smooth motion. */
  transition: opacity var(--dur-fast) var(--ease-out),
              translate 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.kp-brand-kit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  /* Resting (visible) layer. On un-hover it fades back in only after the
     wordmark has faded out — hence the opacity delay; slide is immediate. */
  transition-delay: 130ms, 0ms;
}
.kp-brand-bar {
  width: 1px;
  height: 20px;
  background: var(--vf-line-strong, rgba(10,15,26,0.20));
}
.kp-brand-kitlabel {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--vf-ink-2);
  white-space: nowrap;
}
.kp-brand-wordmark {
  height: 28px;         /* two-line wordmark, optically matched to the V */
  width: auto;
  opacity: 0;
  translate: 0 4px;     /* rests just below; slides up into place on hover */
}
/* On hover the kit fades out immediately (no delay); the wordmark fades
   in only after the kit has cleared (130ms delay). Slide is immediate for
   both, so motion stays continuous while the opacity swap stays clean. */
.kp-brand:hover .kp-brand-kit,
.kp-brand:focus-visible .kp-brand-kit { opacity: 0; translate: 0 -4px; transition-delay: 0ms; }
.kp-brand:hover .kp-brand-wordmark,
.kp-brand:focus-visible .kp-brand-wordmark { opacity: 1; translate: 0 0; transition-delay: 130ms, 0ms; }
.kp-brand:focus-visible { outline: 2px solid var(--vf-blue); outline-offset: 5px; }

/* The consignor portal reuses this brand + topbar (components-consignments.jsx),
   but its label is the consignor's name (variable length), so the text box
   sizes to the name instead of a fixed width: the name layer sits in-flow and
   defines the width; the wordmark overlays it for the hover cross-fade. */
.kp-brand--consignments .kp-brand-text {
  width: auto;
  min-width: 82px;        /* always at least wide enough for the wordmark */
  display: inline-flex;
  align-items: center;
}
.kp-brand--consignments .kp-brand-kit {
  position: static;
  transform: none;
}

/* The Films-side Productions portal reuses this brand with the black Valley
   Films wordmark and a longer label ("Productions"), so the fixed text box
   widens to fit the wider of its two cross-fade layers (the label). The
   default absolute cross-fade behaviour is kept (unlike --consignments). */
.kp-brand--productions .kp-brand-text { width: 116px; }

/* Staff back-office brand — the plain "V | Admin" lockup shared by the
   Productions and Consignments admin portals (components-staff-portal.jsx).
   No hover cross-fade: there's no wordmark layer, so the label sits in-flow at
   its natural width and the base brand's hover fade/slide is neutralised. */
.kp-brand--admin .kp-brand-text {
  width: auto;
  display: inline-flex;
  align-items: center;
}
.kp-brand--admin .kp-brand-kit {
  position: static;
  transform: none;
  transition: none;
}
.kp-brand--admin:hover .kp-brand-kit,
.kp-brand--admin:focus-visible .kp-brand-kit {
  opacity: 1;
  translate: 0 0;
}

/* Account dropdown — opened from the .kp-account button in the staff topbar.
   Rendered as a child of the fixed .kp-topbar (not inside the overflow-clipped
   .kp-portaltabs pill) so it isn't cut off; anchored under the right edge.
   A transparent full-screen backdrop closes it on outside click. */
.kp-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: transparent;
}
.kp-account-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: 32px;
  z-index: 91;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--vf-line, rgba(10, 15, 26, 0.10));
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 12px 30px rgba(10, 15, 26, 0.14),
    0 2px 6px rgba(10, 15, 26, 0.08);
}
.kp-account-menu-id {
  padding: 8px 12px 7px;
  font-size: 12px;
  color: var(--vf-ink-2, #4B5468);
  word-break: break-all;
  border-bottom: 1px solid var(--vf-line, rgba(10, 15, 26, 0.08));
  margin-bottom: 4px;
}
.kp-account-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vf-ink, #0A0F1A);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.kp-account-menu-item:hover {
  background: rgba(10, 15, 26, 0.05);
}
/* Keyboard focus keeps a visible ring — hover-only styling hid it entirely. */
.kp-account-menu-item:focus-visible {
  background: rgba(10, 15, 26, 0.05);
  outline: 2px solid var(--vf-blue);
  outline-offset: -2px;
}
@media (max-width: 760px) {
  .kp-account-menu { right: 14px; top: calc(100% - 4px); }
}
.cn-marker-code {
  background: rgba(9, 94, 223, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--vf-blue);
}

/* Admin "view as": the consignor picker grid + the in-portal switcher bar
   (only shown to a signed-in @valley.film admin). */
.cn-admin-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.cn-admin-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--vf-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.cn-admin-picker-item:hover {
  border-color: var(--vf-blue);
  color: var(--vf-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(9, 94, 223, 0.08);
}
.cn-admin-preview-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 10px 14px;
  background: rgba(9, 94, 223, 0.06);
  border: 1px solid rgba(9, 94, 223, 0.18);
  border-radius: 10px;
}
.cn-admin-preview-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vf-blue);
  background: rgba(9, 94, 223, 0.10);
  padding: 3px 8px; border-radius: 999px;
}
.cn-admin-preview-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cn-admin-preview-switch select {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--vf-line); background: var(--vf-surface); color: var(--vf-ink);
}
.cn-admin-preview-exit {
  margin-left: auto;
  font-weight: 600; color: var(--vf-blue); text-decoration: none; font-size: 13px;
}
.cn-admin-preview-exit:hover { text-decoration: underline; }

/* "View portal" — opens a consignor's portal preview (/consignments?as=<id>)
   in a new tab. Used as a prominent button on the consignor detail and as a
   compact ↗ icon on each list row. */
.cn-view-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--vf-blue);
  text-decoration: none;
  transition: background 0.14s ease, transform 0.14s ease;
}
.cn-view-portal:hover { background: var(--vf-blue-500, #0a4fc4); transform: translateY(-1px); }

/* Per-row ↗ control in the consignor list. */
.cn-consignor-row-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cn-consignor-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--vf-blue);
  background: rgba(9, 94, 223, 0.08);
  flex: 0 0 auto;
  transition: background 0.12s ease, color 0.12s ease;
}
.cn-consignor-portal:hover { background: var(--vf-blue); color: #fff; }

/* Staff dashboard topbar — admin identity + sign-out on the right. */
.cn-admin-account { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.cn-admin-account-email {
  font-size: 13px;
  color: var(--vf-ink-3);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 760px) { .cn-admin-account-email { display: none; } }

/* Mirror of .nav .menu / .nav.is-light .menu styling — pill container
   with chip-shaped buttons inside. Active chip gets the white-on-pill
   treatment used across the rentals/films light pages. */
.kp-portaltabs {
  display: flex;
  gap: 4px;
  background: rgba(10,15,26,0.06);
  border: 1px solid rgba(10,15,26,0.10);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.kp-portaltabs::-webkit-scrollbar { display: none; }
.kp-portaltab {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(10,15,26,0.92);
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms;
}
.kp-portaltab:hover { color: var(--vf-ink); }
.kp-portaltab.is-active {
  background: white;
  color: var(--vf-ink);
  box-shadow: 0 1px 3px rgba(10,15,26,0.08);
}

/* Account button — the rightmost item in the menu pill, mirroring the
   public rentals nav's blue "Open Account" CTA. Shows the signed-in first
   name and opens the Account page (details, billing, rates, SOP + sign
   out). Fills solid blue on hover/focus and while the account page is the
   active view. */
.kp-account {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 124, 255, 0.12);
  color: var(--vf-blue);
  transition: background 200ms ease, color 200ms ease;
}
.kp-account:hover,
.kp-account:focus-visible,
.kp-account.is-active { background: var(--vf-blue); color: #fff; outline: none; }

/* Account page — identity card + sign out, above the merged resources. */
.kp-acct-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.kp-acct-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kp-acct-avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--vf-blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
}
.kp-acct-meta { display: flex; flex-direction: column; min-width: 0; }
.kp-acct-name { font-size: 16px; font-weight: 700; color: var(--vf-ink); }
.kp-acct-email { font-size: 13.5px; color: var(--vf-ink-3); overflow: hidden; text-overflow: ellipsis; }
.kp-acct-role { font-size: 12px; color: var(--vf-ink-4); margin-top: 2px; }
.kp-acct-signout { flex: 0 0 auto; }

/* =====================================================================
 * Content area
 * ===================================================================== */
.kp-content {
  padding: 32px 24px 64px;
}
.kp-content-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.kp-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* When two sections stack on one tab (Shifts + Tasks share the same tab),
   they'd otherwise butt together — give the second a clear section break. */
.kp-stack + .kp-stack {
  margin-top: 44px;
}
.kp-section-head h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.kp-section-head p {
  font-size: 15px;
  color: var(--vf-ink-3);
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}
.kp-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* =====================================================================
 * Bin location card
 * ===================================================================== */
/* Compact pill: [bin icon] STORAGE BIN  Unit 1122  Code 2222. Sized to
   content (align-self) so it doesn't stretch across the column. */
.kp-bin-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  background: linear-gradient(135deg, #0A1A38, #095EDF);
  color: #fff;
  border-radius: 12px;
  padding: 9px 16px 9px 10px;
  box-shadow: 0 4px 14px rgba(9, 94, 223, 0.16);
}
.kp-bin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  flex: 0 0 auto;
}
.kp-bin-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.kp-bin-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.kp-bin-key {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.kp-bin-val {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .kp-bin-card { flex-wrap: wrap; gap: 10px 14px; }
}

/* =====================================================================
 * Phase placeholder
 * ===================================================================== */
.kp-placeholder {
  background: var(--vf-surface);
  border: 1px dashed var(--vf-line-strong);
  border-radius: 14px;
  padding: 28px 28px 30px;
}
.kp-placeholder-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vf-blue);
  background: var(--vf-blue-50);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.kp-placeholder h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.kp-placeholder p {
  font-size: 14.5px;
  color: var(--vf-ink-3);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

/* =====================================================================
 * SOP iframe wrapper
 * ===================================================================== */
.kp-sop-frame {
  position: relative;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 70vh;
}
.kp-sop-frame iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 78vh;
  background: var(--vf-surface);
}

/* =====================================================================
 * Rates table + billing cards
 * ===================================================================== */
.kp-rates-card {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 14px;
  overflow: hidden;
}
.kp-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.kp-rates-table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vf-ink-4);
  padding: 14px 18px;
  background: var(--vf-bg);
  border-bottom: 1px solid var(--vf-line);
}
.kp-rates-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--vf-line);
  color: var(--vf-ink-2);
}
.kp-rates-table tbody tr:last-child td { border-bottom: 0; }
/* Right-align the Total Pay column, header included. Scoped through
   .kp-rates-table so it beats the .kp-rates-table thead th left-align. */
.kp-rates-table .kp-rates-pay { text-align: right; }
.kp-mult {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--vf-ink-3);
}

.kp-bill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.kp-bill-card {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 14px;
  padding: 22px 24px;
}
.kp-bill-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.kp-bill-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--vf-ink-2);
  margin: 0 0 12px;
}
.kp-bill-card p:last-child { margin-bottom: 0; }
.kp-bill-card a {
  color: var(--vf-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kp-bill-card address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vf-ink-3);
}

/* Resources tab — subsection heads under the single "Resources" tab. */
.kp-subhead {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vf-ink);
  margin: 4px 0 2px;
}
.kp-subhead-note {
  font-size: 14px;
  color: var(--vf-ink-3);
  margin: 0 0 4px;
  max-width: 70ch;
}
.kp-resources-sop-head { margin-top: 14px; align-items: flex-end; }
.kp-resources-sop-actions { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* "Add task" — the primary + button, main action on the Tasks tab. */
.kp-add-task {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 11px 18px;
  white-space: nowrap;
}

/* Lunch tooltip — subtle hover/focus popover on the word "Lunch". */
.kp-lunch {
  position: relative;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-color: var(--vf-line-strong, rgba(10, 15, 26, 0.32));
  cursor: help;
  outline: none;
}
.kp-lunch-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  background: var(--vf-ink, #0A0F1A);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(10, 15, 26, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  z-index: 5;
  pointer-events: none;
}
.kp-lunch-tip::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--vf-ink, #0A0F1A);
}
.kp-lunch:hover .kp-lunch-tip,
.kp-lunch:focus-visible .kp-lunch-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================================
 * Shifts tab (Phase 3) — calendar of available + booked shifts.
 * ===================================================================== */
/* Suggested shifts from upcoming productions (staff) */
.kp-shift-suggest { margin-bottom: 22px; border: 1px solid var(--vf-line); border-radius: 14px; background: var(--vf-bg-soft, #F6F7F9); padding: 14px 16px; }
.kp-shift-suggest-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.kp-shift-suggest-title { font-size: 13px; font-weight: 700; color: var(--vf-ink); }
.kp-shift-suggest-sub { font-size: 12px; color: var(--vf-ink-4, #8892A6); }
.kp-shift-suggest-refresh { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 12px; font-weight: 600; color: var(--vf-blue, #095EDF); cursor: pointer; border-radius: 7px; }
.kp-shift-suggest-refresh:hover { background: rgba(9,94,223,0.10); }
.kp-suggest-empty { font-size: 13px; color: var(--vf-ink-3, #4B5468); padding: 2px 2px 4px; }
.kp-shift-suggest-list { display: flex; flex-direction: column; gap: 8px; }
.kp-suggest-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 11px; padding: 11px 14px; }
.kp-suggest-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.kp-suggest-date { font-size: 12px; font-weight: 700; color: var(--vf-blue, #095EDF); white-space: nowrap; }
.kp-suggest-name { font-size: 14px; font-weight: 600; color: var(--vf-ink); overflow-wrap: anywhere; }
.kp-suggest-meta { font-size: 12.5px; color: var(--vf-ink-4, #8892A6); }
.kp-suggest-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.kp-suggest-add { border: 0; border-radius: 999px; background: var(--vf-blue, #095EDF); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 13px; cursor: pointer; white-space: nowrap; }
.kp-suggest-add:disabled { opacity: 0.6; cursor: default; }
.kp-suggest-ignore { border: 1px solid var(--vf-line); border-radius: 999px; background: transparent; color: var(--vf-ink-3, #4B5468); font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; cursor: pointer; }
.kp-suggest-ignore:hover { background: var(--vf-bg-soft, #F0F2F5); color: var(--vf-ink); }
@media (max-width: 600px) { .kp-suggest-card { flex-direction: column; align-items: stretch; } .kp-suggest-actions { justify-content: flex-end; } }
.kp-shift-list { display: flex; flex-direction: column; gap: 22px; }
.kp-shift-group { display: flex; flex-direction: column; gap: 8px; }
.kp-shift-date {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vf-ink-4); padding-bottom: 2px;
}
.kp-shift-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 12px;
  padding: 14px 18px;
}
.kp-shift-row.is-mine { border-color: var(--vf-blue); box-shadow: inset 0 0 0 1px var(--vf-blue); }
.kp-shift-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kp-shift-type {
  font-size: 15px; font-weight: 700; color: var(--vf-ink);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.kp-shift-time {
  font-size: 13px; font-weight: 500; color: var(--vf-ink-3);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.kp-shift-notes { font-size: 13.5px; color: var(--vf-ink-2); line-height: 1.5; }
.kp-shift-claimed { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.kp-shift-count { font-weight: 600; color: var(--vf-ink-2); }
.kp-shift-names { color: var(--vf-ink-3); }
.kp-shift-open-label { color: var(--vf-ink-4); font-style: italic; }
.kp-shift-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.kp-shift-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
/* Notion Status values: Available = open (blue), Booked = filled (green),
   Pending = draft/hold (grey). */
.kp-shift-status.is-available { background: rgba(9, 94, 223, 0.10); color: var(--vf-blue); }
.kp-shift-status.is-booked { background: rgba(22, 163, 74, 0.12); color: #167c3c; }
.kp-shift-status.is-pending { background: rgba(10, 15, 26, 0.06); color: var(--vf-ink-4); }
.kp-shift-claim { padding: 9px 18px; }

/* Staff "book this tech" chips — one per available technician, under the
   shift's notes/summary line. Subtle until hover. */
.kp-shift-assign { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.kp-assign-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--vf-line);
  background: var(--vf-surface);
  color: var(--vf-ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.kp-assign-chip:hover:not(:disabled) { background: var(--vf-blue); border-color: var(--vf-blue); color: #fff; }
.kp-assign-chip:disabled { opacity: 0.55; cursor: default; }
.kp-assign-chip svg { opacity: 0.7; }
.kp-assign-chip:hover:not(:disabled) svg { opacity: 1; }

/* Staff-only delete (archive) — subtle by default, red on hover. */
.kp-shift-del {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--vf-ink-4);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.kp-shift-del:hover:not(:disabled) { color: #d4332b; background: rgba(212, 51, 43, 0.08); }
.kp-shift-del:disabled { opacity: 0.5; cursor: default; }
/* Edit (pencil) mirrors the delete button but tints Valley blue on hover. */
.kp-shift-edit {
  appearance: none; border: none; background: transparent; color: var(--vf-ink-4);
  cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; align-items: center;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.kp-shift-edit:hover:not(:disabled) { color: var(--vf-blue); background: rgba(9, 94, 223, 0.08); }
.kp-shift-edit:disabled { opacity: 0.5; cursor: default; }
/* Shift status filter (segmented) sits just under the section head. */
.kp-shift-filter { align-self: flex-start; margin: -2px 0 2px; }
/* Search row — search pill left, optional toggle (Shifts/Accounts) hard-right. */
.kp-shift-searchrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kp-shift-searchwrap { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }
.kp-shift-searchico { position: absolute; left: 14px; color: var(--vf-ink-4); pointer-events: none; }
.kp-shift-search { width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--vf-line); background: var(--vf-surface); padding: 0 74px 0 38px; font: inherit; font-size: 13.5px; color: var(--vf-ink); }
.kp-shift-search:focus { outline: none; border-color: var(--vf-blue); box-shadow: 0 0 0 3px rgba(9,94,223,0.12); }
/* Refresh + settings cog tucked inside the search pill (right). */
.kp-shift-tool { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: transparent; color: var(--vf-ink-3); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.kp-shift-tool:hover { background: rgba(9,94,223,0.08); color: var(--vf-blue); }
.kp-shift-refresh { right: 38px; }
.kp-shift-refresh.is-spinning svg { animation: kp-shift-spin 0.8s linear infinite; }
@keyframes kp-shift-spin { to { transform: rotate(360deg); } }
.kp-shift-cog { right: 7px; }
.kp-shift-cog.is-on { background: rgba(9,94,223,0.12); color: var(--vf-blue); }
.kp-shift-cog.has-active::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--vf-blue); }
.kp-shift-cogpanel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 180px; padding: 10px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-surface); box-shadow: 0 10px 28px rgba(10,15,26,0.16); }
.kp-shift-cogtitle { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--vf-ink-4); margin: 2px 2px 8px; }
.kp-shift-cogopts { display: flex; flex-direction: column; gap: 4px; }
.kp-shift-cogopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--vf-ink-2, var(--vf-ink)); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.kp-shift-cogopt:hover { background: var(--vf-bg-tint, rgba(10,15,26,0.04)); }
.kp-shift-cogopt.is-on { background: rgba(9,94,223,0.1); color: var(--vf-blue); }
.kp-shift-cogn { font-size: 11px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.kp-shift-toolbar-right { flex: none; margin-left: auto; display: inline-flex; align-items: center; }
/* "type to publish" affordance — appears when a staffer types in the shift search. */
.kp-shift-addhint { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px dashed var(--vf-blue); background: rgba(9,94,223,0.08); color: var(--vf-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out); }
.kp-shift-addhint:hover { background: rgba(9,94,223,0.16); }

/* "You're booked" badge shown to the assigned tech in place of an action. */
.kp-shift-mine-tag {
  font-size: 12px;
  font-weight: 600;
  color: #1A7A43;
  background: rgba(31,157,85,0.15);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* =====================================================================
 * Equipment tab (Phase 5) — shelf search, cards, item drawer, report issue.
 * ===================================================================== */
.kp-eq-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kp-eq-search { flex: 1 1 280px; min-width: 0; }
.kp-eq-search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 16px;
  border: 1px solid var(--vf-line);
  border-radius: 999px;
  background: var(--vf-surface);
  color: var(--vf-ink);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.kp-eq-search input:focus {
  border-color: var(--vf-blue);
  box-shadow: 0 0 0 3px rgba(9, 94, 223, 0.12);
}
.kp-eq-staffnote {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--vf-ink-3);
  background: rgba(10, 15, 26, 0.05);
  border: 1px solid var(--vf-line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  cursor: default;
}
.kp-eq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.kp-eq-cat {
  appearance: none;
  border: 1px solid var(--vf-line);
  background: var(--vf-surface);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--vf-ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.kp-eq-cat:hover { border-color: var(--vf-ink-4); color: var(--vf-ink); }
.kp-eq-cat.is-on { background: var(--vf-blue); border-color: var(--vf-blue); color: #fff; }

/* Sub-category row — appears under the selected category, mirroring the
   public /rentals/equipment sub-filters. Lighter/secondary to the main
   category chips so the hierarchy reads clearly; tinted (not solid blue)
   when active, with a small item-count badge. */
.kp-eq-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}
.kp-eq-subcat {
  appearance: none;
  border: 1px solid var(--vf-line);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--vf-ink-3);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.kp-eq-subcat:hover { border-color: var(--vf-ink-4); color: var(--vf-ink); }
.kp-eq-subcat.is-on {
  background: rgba(74, 124, 255, 0.12);
  border-color: rgba(74, 124, 255, 0.40);
  color: var(--vf-blue);
}
.kp-eq-subcat span { font-size: 11px; color: var(--vf-ink-4); }
.kp-eq-subcat.is-on span { color: var(--vf-blue); opacity: 0.75; }

/* Ownership filter — reuses the category-chip pill, plus a small ownership
   code badge (O-VR / C-PK / X-SB) that ties each chip to the card badges. */
/* Resources quick-action cards (Open the SOP + Flag a gap) — a left-aligned
   row of Equipment-sized cards rather than full-width banners. */
.kp-resources-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kp-resources-actions .kp-quicklog-btn { flex: 1 1 260px; max-width: 360px; }

.kp-eq-owns { display: flex; flex-wrap: wrap; gap: 7px; }
.kp-eq-own-code { margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.5; }
.kp-eq-cat.is-on .kp-eq-own-code { opacity: 0.85; }

.kp-eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.kp-eq-card {
  appearance: none;
  text-align: left;
  border: 1px solid var(--vf-line);
  background: var(--vf-surface);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.kp-eq-card:hover {
  border-color: var(--vf-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 15, 26, 0.08);
}
.kp-eq-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--vf-bg-tint, #EFF1F5);
  overflow: hidden;
}
.kp-eq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-eq-owner {
  position: absolute;
  top: 8px; left: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(10, 15, 26, 0.72);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.kp-eq-owner.is-consignment { background: rgba(176, 106, 8, 0.88); }
.kp-eq-owner.is-cross-hire { background: rgba(109, 40, 217, 0.88); }
.kp-eq-kit {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--vf-blue);
  color: #fff;
}
.kp-eq-cardbody {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 14px;
}
.kp-eq-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-ink-4);
}
.kp-eq-name { font-size: 14.5px; font-weight: 600; color: var(--vf-ink); line-height: 1.3; }
.kp-eq-rate { margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--vf-blue); }

/* Item detail — CENTRE modal by default (matches the public /rentals/equipment
   CatalogDrawer). Side-peek users (body.vf-peek-side) get the right-docked drawer. */
.kp-eq-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 15, 26, 0.48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.kp-eq-drawer {
  position: relative;
  width: min(720px, 100%);
  max-height: min(940px, 100%);
  border-radius: 16px;
  background: var(--vf-surface);
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(10, 15, 26, 0.28);
  animation: kpDrawerIn 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes kpDrawerIn { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
/* Side-peek preference: dock to the right edge like the studio task peeks. */
body.vf-peek-side .kp-eq-scrim { align-items: stretch; justify-content: flex-end; padding: 0; }
body.vf-peek-side .kp-eq-drawer { width: min(440px, 100%); max-height: none; height: 100%; border-radius: 0; box-shadow: -12px 0 40px rgba(10, 15, 26, 0.2); animation: kpDrawerSideIn 240ms ease; }
@keyframes kpDrawerSideIn { from { transform: translateX(24px); opacity: 0.4; } to { transform: translateX(0); opacity: 1; } }
.kp-eq-drawer-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 22px; line-height: 1;
  color: var(--vf-ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(10, 15, 26, 0.10);
}
/* Ownership code — top-right pill, mono + low-contrast, matching the public drawer. */
.kp-eq-drawer-code {
  position: absolute; top: 22px; right: 58px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(10, 15, 26, 0.42); background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(10, 15, 26, 0.08);
}
/* Item photo — show the FULL product (contain) on a clean letterbox, like the website. */
.kp-eq-drawer-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; max-height: 340px; background: #FAFAFA; }
.kp-eq-drawer-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kp-eq-drawer-body { padding: 28px 32px 40px; }
.kp-eq-drawer-body .kp-eq-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--vf-ink-3); }
.kp-eq-drawer-body h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vf-ink);
  margin: 4px 0 0;
  line-height: 1.1;
}
.kp-eq-kit-inline {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  vertical-align: middle; margin-left: 8px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--vf-blue); color: #fff;
}
.kp-eq-drawer-meta { margin: 10px 0 14px; }
.kp-eq-drawer-rate { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--vf-blue); }
.kp-eq-drawer-rate span { font-size: 12px; font-weight: 400; color: var(--vf-ink-3); letter-spacing: 0.05em; margin-left: 6px; }
.kp-eq-drawer-desc { font-size: 14px; line-height: 1.6; color: var(--vf-ink-2); white-space: pre-line; }
.kp-eq-report { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; width: 100%; justify-content: center; }
/* Drawer action row (Edit in Booqable + optional Report) + the staff equipment browser bits. */
.kp-eq-drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kp-eq-drawer-actions .kp-eq-report { margin-top: 0; width: auto; flex: 1 1 160px; }
.kp-eq-booqable { display: inline-flex; align-items: center; gap: 7px; flex: 1 1 auto; justify-content: center; padding: 10px 16px; }
.kp-eq-share { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; justify-content: center; padding: 10px 16px; }
.kp-eq-share.is-copied { border-color: var(--vf-success-text, #1A7A43); color: var(--vf-success-text, #1A7A43); }
.kp-eq-drawer-repl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-3, #5B6573); }
/* "Suggest a change" — logs a task; Booqable stays the source of truth. */
.kp-eq-suggestlink { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--vf-blue, #095EDF); cursor: pointer; }
.kp-eq-suggestlink:hover { text-decoration: underline; }
.kp-eq-suggestsent { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--vf-blue-soft, #EAF1FE); color: var(--vf-ink-2, #283142); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.kp-eq-suggestform { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid var(--vf-line, #E2E6EC); border-radius: 14px; background: var(--vf-bg-soft, #F6F8FB); }
.kp-eq-suggestlbl { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--vf-ink-4, #8892A6); }
.kp-eq-suggestnum, .kp-eq-suggestnote { width: 100%; box-sizing: border-box; border: 1px solid var(--vf-line, #E2E6EC); border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--vf-ink, #0A0F1A); background: #fff; }
.kp-eq-suggestnote { font-size: 12.5px; resize: vertical; min-height: 38px; }
.kp-eq-suggestnum:focus, .kp-eq-suggestnote:focus { outline: none; border-color: var(--vf-blue, #095EDF); box-shadow: 0 0 0 3px var(--vf-blue-soft, #EAF1FE); }
.kp-eq-suggestrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kp-eq-suggestsend { width: auto; flex: 0 0 auto; padding: 9px 16px; }
.kp-eq-suggesterr { font-size: 12px; font-weight: 600; color: var(--vf-danger-text, #C42038); }
.kp-eq-reqcancel { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-4, #8892A6); cursor: pointer; }
.kp-eq-reqcancel:hover { color: var(--vf-ink, #0A0F1A); }
/* Inline request-a-change affordances: clickable price, includes "Request edit", photo overlay. */
.kp-eq-reqtrigger { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.kp-eq-reqtrigger:hover { text-decoration: underline dashed; text-decoration-color: var(--vf-blue, #095EDF); text-underline-offset: 4px; }
button.kp-eq-drawer-rate.kp-eq-reqtrigger { text-align: left; line-height: 1.1; }
.kp-eq-titlereq { display: inline; text-align: left; }
.kp-eq-descreq { margin-left: 8px; white-space: nowrap; }
.kp-eq-drawer .rcat-bundle-includes-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kp-eq-inceditbtn { border: 0; background: none; padding: 0; font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--vf-blue, #095EDF); cursor: pointer; }
.kp-eq-inceditbtn:hover { text-decoration: underline; }
.kp-eq-imgreq { position: absolute; inset: 0; border: 0; background: transparent; color: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.kp-eq-imgreq:hover, .kp-eq-imgreq:focus-visible { opacity: 1; background: linear-gradient(to top, rgba(10, 15, 26, 0.5), rgba(10, 15, 26, 0) 55%); }
.kp-eq-imgreq span { font-size: 12.5px; font-weight: 700; background: rgba(10, 15, 26, 0.74); padding: 6px 13px; border-radius: 999px; }
.kp-eq-count { margin: 4px 2px 0; font-size: 12px; font-weight: 600; color: var(--vf-ink-4, #8892A6); }
/* Active-filter pills below the toolbar (the cog holds the pickers). */
.kp-eq-activefilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.kp-eq-activechip { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 5px 7px 5px 13px; font: inherit; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--vf-blue, #095EDF); cursor: pointer; transition: filter var(--dur-fast) var(--ease-out); }
.kp-eq-activechip span { font-size: 15px; line-height: 0.8; opacity: 0.85; }
.kp-eq-activechip:hover { filter: brightness(1.08); }
.kp-eq-clearfilters { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-4, #8892A6); cursor: pointer; padding: 5px 4px; }
.kp-eq-clearfilters:hover { color: var(--vf-ink, #0A0F1A); text-decoration: underline; }
/* Search-as-create confirmation: typed name + Enter → Marketplace "To list". */
.kp-eq-added { margin-top: 13px; padding: 9px 14px; border-radius: 10px; background: var(--vf-blue-soft, #EAF1FE); color: var(--vf-ink-2, #283142); font-size: 13px; font-weight: 600; }
.kp-eq-added a { color: var(--vf-blue, #095EDF); font-weight: 700; text-decoration: none; }
.kp-eq-added a:hover { text-decoration: underline; }
.kp-eq-added.is-err { background: #FDECEE; color: var(--vf-danger-text, #C42038); }
/* Centre action sheet chrome — reused by the internal-order Comet prompt modal. */
.kp-eq-flagscrim { position: fixed; inset: 0; z-index: 95; background: rgba(10,15,26,0.42); display: flex; align-items: center; justify-content: center; padding: 24px; }
.kp-eq-flagsheet-h { font-size: 14.5px; font-weight: 700; color: var(--vf-ink, #0A0F1A); margin: 2px 4px 12px; }
.kp-eq-flagcancel { width: 100%; border: 0; background: none; padding: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-4, #8892A6); cursor: pointer; }
.kp-eq-flagcancel:disabled { opacity: 0.55; cursor: progress; }
/* Internal-order mode — per-card add button + the Comet-prompt sheet. */
.kp-eq-addbtn { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.92); color: var(--vf-ink-2, #283142); box-shadow: 0 2px 6px rgba(10,15,26,0.18); cursor: pointer; font: inherit; font-weight: 700; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.kp-eq-addbtn:hover { background: #fff; transform: scale(1.07); }
.kp-eq-addbtn.is-on { background: var(--vf-blue, #095EDF); color: #fff; }
.kp-eq-addqty { font-size: 12.5px; font-weight: 800; line-height: 1; }
.kp-eq-promptsheet { width: min(620px, 100%); background: var(--vf-surface, #fff); border-radius: 16px; box-shadow: 0 24px 60px rgba(10,15,26,0.3); padding: 16px; animation: kpDrawerIn 220ms cubic-bezier(0.22,1,0.36,1); }
.kp-eq-acctrow { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 12px; }
.kp-eq-acctbtn { border: 1px solid var(--vf-line, #E2E6EC); border-radius: 999px; background: #fff; padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-2, #283142); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.kp-eq-acctbtn:hover { border-color: var(--vf-blue, #095EDF); }
.kp-eq-acctbtn.is-on { background: var(--vf-blue, #095EDF); border-color: var(--vf-blue, #095EDF); color: #fff; }
.kp-eq-prompttext { width: 100%; box-sizing: border-box; border: 1px solid var(--vf-line, #E2E6EC); border-radius: 11px; padding: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--vf-ink, #0A0F1A); background: var(--vf-bg-soft, #F6F8FB); resize: vertical; white-space: pre; }
.kp-eq-promptrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.kp-eq-promptcopy { width: auto; flex: 0 0 auto; padding: 9px 18px; }
.kp-eq-prompthint { font-size: 12px; color: var(--vf-ink-3, #5B6573); flex: 1 1 140px; }
.kp-eq-promptclose { width: auto; flex: 0 0 auto; }

/* =====================================================================
 * Mobile (≤760px)
 * ===================================================================== */
@media (max-width: 760px) {
  .kp-eq-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .kp-eq-scrim { padding: 0; align-items: stretch; }
  .kp-eq-drawer { width: 100%; max-height: none; min-height: 100%; border-radius: 0; }
  .kp-eq-staffnote { display: none; }
  .kp-shift-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .kp-shift-actions { justify-content: space-between; }
  /* Portal top bar goes two rows on mobile: the brand on top, the
     scrollable menu pill (tabs + account) on its own full-width row below
     — too tight to fit across a phone. Brand is mark + "Kit Tech" with the
     hover reveal disabled (no hover on touch). */
  .kp-topbar {
    flex-wrap: wrap;
    padding: 9px 14px;
    gap: 9px 10px;
  }
  .kp-brand { order: 1; height: 28px; }
  .kp-brand-mark { height: 28px; }
  .kp-brand-text { width: 70px; height: 28px; }
  .kp-brand-kitlabel { font-size: 15px; }
  .kp-portaltabs { order: 2; flex-basis: 100%; min-width: 0; }
  .kp-portaltab { padding: 8px 14px; font-size: 12.5px; }

  /* Clear the taller two-row bar on the dashboard; the brand-only bar on
     boot/login stays short. */
  .kit-portal { padding-top: 56px; }
  .kit-portal-dashboard { padding-top: 104px; }

  .kp-content { padding: 22px 16px 56px; }
  .kp-section-head h2 { font-size: 22px; }
  .kp-bill-grid { grid-template-columns: 1fr; }
  .kp-rates-table thead th,
  .kp-rates-table tbody td { padding: 12px 14px; font-size: 13.5px; }
  /* Compact the rate table on narrow screens — drop the "Default time"
     and "Length" columns so the essentials (type / multiplier / pay)
     stay legible. */
  .kp-rates-table thead th:nth-child(2),
  .kp-rates-table thead th:nth-child(3),
  .kp-rates-table tbody td:nth-child(2),
  .kp-rates-table tbody td:nth-child(3) { display: none; }
  .kp-sop-frame iframe { height: 70vh; }
  .kp-login-card { padding: 28px 22px 22px; border-radius: 14px; }
}

/* =====================================================================
 * Tasks tab — quick-log buttons, task list, row layout
 * ===================================================================== */
.kp-quicklog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.kp-quicklog-btn {
  appearance: none;
  border: 1px solid var(--vf-line);
  background: var(--vf-surface);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none; /* some cards are <a> (e.g. Open the SOP) */
  cursor: pointer;
  font: inherit;
  color: var(--vf-ink);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.kp-quicklog-btn:hover {
  border-color: var(--vf-blue);
  background: var(--vf-blue-50);
}
.kp-quicklog-btn:active { transform: translateY(1px); }
.kp-quicklog-staff {
  border-style: dashed;
}
.kp-quicklog-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--vf-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.kp-quicklog-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kp-quicklog-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--vf-ink);
}
.kp-quicklog-text em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--vf-ink-3);
}

.kp-error-banner {
  background: #FDECE8;
  color: #B0331A;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
}

/* Tasks filters — assigned / priority / status as chip rows, reusing the
   Equipment category-chip pills (.kp-eq-cat) so the two tabs match. */
.kp-task-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kp-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kp-filter-label {
  flex: 0 0 auto;
  width: 64px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-ink-4);
}
.kp-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
@media (max-width: 760px) {
  .kp-filter-row { align-items: flex-start; }
  .kp-filter-label { width: auto; }
}

.kp-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kp-empty {
  background: var(--vf-surface);
  border: 1px dashed var(--vf-line-strong);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  color: var(--vf-ink-3);
  font-size: 14.5px;
}
.kp-task-row {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 14px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kp-task-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.kp-prio {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(10,15,26,0.07);
  color: var(--vf-ink-2);
  white-space: nowrap;
}
.kp-prio-immediate { background: rgba(216,52,74,0.12); color: #C12F46; }
.kp-prio-high      { background: rgba(201,122,20,0.16); color: #95600F; }
.kp-prio-medium    { background: rgba(208,156,32,0.18); color: #876512; }
.kp-prio-low       { background: rgba(42,120,234,0.13); color: #2860C2; }

.kp-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(10,15,26,0.07);
  color: var(--vf-ink-2);
  white-space: nowrap;
}
.kp-status-in-progress { background: rgba(42,120,234,0.13); color: #2860C2; }
.kp-status-for-review  { background: rgba(124,77,224,0.13); color: #6A3EB6; }

.kp-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--vf-bg-tint);
  color: var(--vf-ink-3);
}

.kp-task-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--vf-ink);
  line-height: 1.35;
}
.kp-task-brief {
  font-size: 14px;
  color: var(--vf-ink-2);
  margin: 0;
  line-height: 1.5;
}
.kp-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.kp-task-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--vf-ink-3);
  flex-wrap: wrap;
}
.kp-task-date {
  font-variant-numeric: tabular-nums;
}
.kp-task-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vf-blue);
  text-decoration: none;
  font-weight: 500;
}
.kp-task-link:hover { text-decoration: underline; }
.kp-task-assignee {
  width: 22px; height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--vf-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kp-task-assignee img { width: 100%; height: 100%; object-fit: cover; }
.kp-task-assignee-initials {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.kp-btn-small {
  padding: 8px 14px;
  font-size: 13px;
}

/* =====================================================================
 * Task form modal (quick-log + add-task)
 * ===================================================================== */
.kp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 12, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(2px);
}
.kp-modal {
  background: var(--vf-surface);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 28px 28px 22px;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 15, 26, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.kp-modal h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.kp-modal-sub {
  font-size: 14px;
  color: var(--vf-ink-3);
  line-height: 1.5;
  margin: -4px 0 4px;
}
.kp-modal-close {
  appearance: none;
  border: 0;
  background: var(--vf-bg-tint);
  color: var(--vf-ink-3);
  width: 30px; height: 30px;
  border-radius: 999px;
  position: absolute;
  top: 16px; right: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.kp-modal-close:hover { background: var(--vf-line); color: var(--vf-ink); }

.kp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kp-form-field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-ink-3);
}
.kp-form-field input,
.kp-form-field textarea,
.kp-form-field select {
  font: inherit;
  font-size: 15px;
  color: var(--vf-ink);
  background: var(--vf-bg);
  border: 1px solid var(--vf-line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  resize: vertical;
}
.kp-form-field input:focus,
.kp-form-field textarea:focus,
.kp-form-field select:focus {
  border-color: var(--vf-blue);
  box-shadow: 0 0 0 4px rgba(9, 94, 223, 0.12);
  background: var(--vf-surface);
}
.kp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kp-form-error {
  font-size: 13px;
  color: #B0331A;
  background: #FDECE8;
  border-radius: 8px;
  padding: 8px 12px;
}
.kp-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Purchase form image preview thumbnail. */
.kp-purchase-thumb { display: flex; align-items: center; gap: 12px; margin-top: -4px; }
.kp-purchase-thumb img {
  width: 60px; height: 60px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--vf-line);
}

/* Tasks tab — mobile */
@media (max-width: 760px) {
  .kp-quicklog { grid-template-columns: 1fr; }
  .kp-modal { padding: 22px 20px 18px; border-radius: 14px; }
  .kp-form-row { grid-template-columns: 1fr; }
  .kp-task-foot { align-items: flex-start; }
}

/* =====================================================================
 * When the portal is mounted, hide the public site nav entirely — the
 * portal has its own top bar (.kp-topbar) with a brand that links back
 * to Valley Rentals, so the public nav would be a redundant second bar.
 * Also hide the customer-facing floating cart/search bar — there's no
 * shopping in the portal and the affordance would be confusing.
 * ===================================================================== */
body.is-rentals-portal .nav {
  display: none !important;
}
body.is-rentals-portal .rentals-floating-search,
body.is-rentals-portal .floating-rentals-bar,
body.is-rentals-portal .booqable-floating-cart {
  display: none !important;
}
/* The Films-side Productions portal (/productions) also renders its own
   .kp-topbar (with a black "V | Productions" brand), so hide the public Films
   nav there too — otherwise it'd be a redundant second bar. */
body.is-productions-portal .nav {
  display: none !important;
}
/* The master admin home (/admin, AdminHomePage) renders its own .kp-topbar
   too — hide the public Films nav there, same as the portals above. */
body.is-admin-portal .nav {
  display: none !important;
}

/* ── Master admin home (/admin) ─────────────────────────────────────────
   A hub of cards linking to each back-office area, plus a login-logo tweak.
   Sits on the shared .kit-portal / .kp-content layout. */
.admin-home-login-logo { height: 40px; width: auto; }
.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.admin-home-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  background: var(--vf-surface, #fff);
  border: 1px solid var(--vf-line, rgba(10, 15, 26, 0.10));
  border-radius: 16px;
  text-decoration: none;
  color: var(--vf-ink, #0A0F1A);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.admin-home-card:hover {
  border-color: rgba(9, 94, 223, 0.40);
  box-shadow: 0 10px 28px rgba(10, 15, 26, 0.08);
  transform: translateY(-2px);
}
.admin-home-card-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.admin-home-card-desc { font-size: 13.5px; line-height: 1.5; color: var(--vf-ink-2, #4B5468); }
/* Hub-card key-info stat — a live count, so the hub reads as a dashboard. */
.admin-hub-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-hub-stat { display: inline-flex; align-items: baseline; font-size: 13px; color: var(--vf-ink-3, #6B7382); white-space: nowrap; }
.admin-hub-stat strong { font-size: 22px; font-weight: 700; color: var(--vf-blue, #095EDF); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.admin-hub-stat-l { margin-left: 5px; }
.admin-hub-stat.is-loading { width: 44px; height: 20px; border-radius: 6px; background: var(--vf-bg-tint, #F3F1ED); animation: adminHubPulse 1.2s ease-in-out infinite; }
@keyframes adminHubPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }
.admin-home-card-go {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vf-blue);
}

/* /admin/kit-tech — the Kit Tech back-office surface. Header lays the title on
   the left and the "Open the portal" button on the right; PortalShifts renders
   below in the shared content column. */
.kit-tech-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kit-tech-admin-open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--vf-blue);
  background: var(--vf-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.kit-tech-admin-open:hover { filter: brightness(1.06); transform: translateY(-1px); }
.kit-tech-admin-open:focus-visible { filter: brightness(1.06); transform: translateY(-1px); outline: 2px solid var(--vf-blue); outline-offset: 2px; }
.kit-tech-admin-open:active { transform: scale(0.97); }
.kit-tech-admin-actions { margin: 2px 0 22px; }

/* The admin page head (AdminPageHead) reuses the site-wide .subhero look but
   sits inside a content column that already clears the fixed topbar, so drop
   the big top padding and the side padding the column already provides. */
.admin-subhero { padding: 2px 0 18px; }
/* Admin titles are plain bold black — drop the site-wide italic-blue accent
   styling on the emphasised word so every Studio page reads as one solid title. */
.admin-subhero h1 em { color: inherit; font-style: normal; font-weight: inherit; }

/* =====================================================================
 * /admin/purchasing — the "To Purchase" board. Reuses the Equipment-page card
 * aesthetic with a status badge + per-item manage actions (status select +
 * "Mark purchased"). Buttons/chips come from the shared .kp-btn-* / .kp-eq-cat
 * families above, so this is just the board-specific layout + status colours.
 * ===================================================================== */
.pur-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}
.pur-filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pur-count { font-size: 13px; color: var(--vf-ink-3); white-space: nowrap; }

/* A compact list, not an image-led grid — most items are text-only. A small
   thumbnail is rendered ONLY when an item actually has an image. */
.pur-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pur-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--vf-line);
  background: var(--vf-surface);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.pur-row:hover { border-color: var(--vf-ink-4); box-shadow: 0 4px 14px rgba(10, 15, 26, 0.05); }
.pur-row.is-archived { opacity: 0.6; }
.pur-thumb {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--vf-blue-50);
}
.pur-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pur-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pur-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pur-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--vf-ink); line-height: 1.3; }
.pur-notes {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--vf-ink-3);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pur-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--vf-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  word-break: break-all;
}
.pur-link:hover { text-decoration: underline; }

.pur-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.pur-badge--listed     { background: #EEF0F4; color: #5B6472; border-color: #DFE3EA; }
.pur-badge--critical   { background: #FFF1E6; color: #B4520A; border-color: #FAD9BE; }
.pur-badge--essentials { background: #FDECEA; color: #B0331A; border-color: #F6D2CC; }
.pur-badge--strategic  { background: #FBF3D9; color: #876A12; border-color: #F0E3B0; }
.pur-badge--luxury     { background: #E7F6EC; color: #1E7A43; border-color: #C8E9D4; }
.pur-badge--archive    { background: #F4F5F7; color: #98A0AE; border-color: #E6E8EE; }

.pur-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Narrow: let the actions drop below the item text instead of squeezing. */
@media (max-width: 640px) {
  .pur-row { flex-wrap: wrap; }
  .pur-actions { flex-basis: 100%; justify-content: flex-start; padding-top: 2px; }
}
/* Native select styled as a small pill, matching .kp-btn-small geometry. */
.pur-status-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vf-ink-2);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 999px;
  padding: 6px 28px 6px 13px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238892A6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pur-status-select:hover { border-color: var(--vf-ink-4); color: var(--vf-ink); }
.pur-status-select:focus { outline: none; border-color: var(--vf-blue); box-shadow: 0 0 0 3px rgba(9, 94, 223, 0.12); }
.pur-busy { opacity: 0.6; pointer-events: none; }
.pur-done { font-size: 12.5px; font-weight: 600; color: #1E7A43; }

/* Re-use .kp-eq-cat chips for the status filter; just make the "Archive"
   filter read as muted when off, matching its badge. */
.pur-filters .kp-eq-cat.pur-chip-archive:not(.is-on) { color: var(--vf-ink-4); }

/* =====================================================================
 * Admin footer (StaffAdminFooter) — slim back-office footer replacing the
 * marketing MegaFooter on /admin pages. Token-based, so it follows the theme.
 * ===================================================================== */
.kp-adminfooter {
  border-top: 1px solid var(--vf-line);
  background: var(--vf-surface);
  margin-top: 48px;
}
.kp-adminfooter-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kp-adminfooter-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--vf-ink-4); }
.kp-adminfooter-links { display: flex; gap: 20px; flex-wrap: wrap; }
.kp-adminfooter-links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600;
  color: var(--vf-ink-2); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.kp-adminfooter-links a:hover { color: var(--vf-blue); }

/* =====================================================================
 * /admin/settings — account + appearance.
 * ===================================================================== */
.set-id {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--vf-line); background: var(--vf-surface);
  border-radius: 14px; padding: 16px 18px;
}
.set-id-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--vf-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.set-id-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-id-name { font-size: 16px; font-weight: 600; color: var(--vf-ink); }
.set-id-email { font-size: 13px; color: var(--vf-ink-3); word-break: break-all; }
.set-block { display: flex; flex-direction: column; gap: 12px; }
.set-block-head h2 { font-size: 18px; font-weight: 600; margin: 0 0 3px; color: var(--vf-ink); letter-spacing: -0.01em; }
.set-block-head p { font-size: 13.5px; color: var(--vf-ink-3); margin: 0; line-height: 1.5; max-width: 60ch; }
.set-theme { display: flex; gap: 8px; flex-wrap: wrap; }
.set-signout { margin-top: 4px; }

/* =====================================================================
 * Admin dark mode — scoped to body.vf-admin-dark (applied by app.jsx only on
 * /admin pages, so the public site is never touched). Remaps the raw --vf-*
 * tokens the admin uses to the dark palette from colors_and_type.css; anything
 * built on those tokens flips automatically. Hardcoded light surfaces are
 * patched explicitly below.
 * ===================================================================== */
body.vf-admin-dark {
  --vf-bg:          var(--vf-night);
  --vf-bg-tint:     var(--vf-night-3);
  --vf-surface:     var(--vf-night-2);
  --vf-ink:         var(--vf-snow);
  --vf-ink-2:       var(--vf-snow-2);
  --vf-ink-3:       var(--vf-snow-3);
  --vf-ink-4:       var(--vf-snow-4);
  --vf-line:        var(--vf-line-dark);
  --vf-line-strong: var(--vf-line-dark-2);
  --vf-blue-50:     rgba(42, 120, 234, 0.14);
  --vf-blue-100:    rgba(42, 120, 234, 0.20);
  background: var(--vf-night);
}

/* Frosted topbar — the light gradient + white inset are hardcoded. */
body.vf-admin-dark .kp-topbar {
  background: linear-gradient(180deg, rgba(14,17,24,0.86) 0%, rgba(14,17,24,0.68) 100%);
  border-bottom-color: var(--vf-line-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 20px rgba(0,0,0,0.45);
}
/* Purchase-list status badges — light tints → dark tints. */
body.vf-admin-dark .pur-badge--listed     { background: rgba(255,255,255,0.06); color: #AEB6C6; border-color: rgba(255,255,255,0.10); }
body.vf-admin-dark .pur-badge--critical   { background: rgba(201,122,30,0.22);  color: #F0B785; border-color: rgba(201,122,30,0.42); }
body.vf-admin-dark .pur-badge--essentials { background: rgba(196,70,50,0.22);   color: #F2A092; border-color: rgba(196,70,50,0.42); }
body.vf-admin-dark .pur-badge--strategic  { background: rgba(150,118,30,0.24);  color: #E7CE85; border-color: rgba(150,118,30,0.46); }
body.vf-admin-dark .pur-badge--luxury     { background: rgba(34,130,74,0.22);   color: #84D6A1; border-color: rgba(34,130,74,0.44); }
body.vf-admin-dark .pur-badge--archive    { background: rgba(255,255,255,0.05); color: var(--vf-snow-4); border-color: rgba(255,255,255,0.08); }
/* Task priority pills (Kit Tech) use light tints. */
body.vf-admin-dark .kp-prio-high   { background: rgba(196,70,50,0.22);  color: #F2A092; }
body.vf-admin-dark .kp-prio-medium { background: rgba(150,118,30,0.24); color: #E7CE85; }
body.vf-admin-dark .kp-prio-low    { background: rgba(255,255,255,0.06); color: var(--vf-snow-3); }
/* Emails page (its own inline #fff/#F7F8FA surfaces). */
body.vf-admin-dark .emails-light { background: var(--vf-night); }
body.vf-admin-dark .emp-search-field,
body.vf-admin-dark .emp-suggest,
body.vf-admin-dark .emp-browse-card,
body.vf-admin-dark .emp-card { background: var(--vf-night-2); border-color: var(--vf-line-dark); }
body.vf-admin-dark .emp-canvas { background: var(--vf-night-3); }
body.vf-admin-dark .emp-search-clear:hover { background: rgba(255,255,255,0.08); color: var(--vf-snow); }
/* Productions (quotes-*) — the list cards/popovers are hardcoded #fff. Text
   already inherits --vf-ink (→ snow), so we only flip the backgrounds. */
body.vf-admin-dark .quotes-card,
body.vf-admin-dark .quotes-invrow,
body.vf-admin-dark .quotes-template-card,
body.vf-admin-dark .quotes-history-dropdown,
body.vf-admin-dark .quotes-kit-pop,
body.vf-admin-dark .quotes-dash-filter,
body.vf-admin-dark .quotes-dash-empty,
body.vf-admin-dark .quotes-dash-signout,
body.vf-admin-dark .quotes-doc-remove-no {
  background: var(--vf-night-2);
  border-color: var(--vf-line-dark);
}
body.vf-admin-dark .quotes-history-row:hover,
body.vf-admin-dark .quotes-login-link:hover { background: rgba(255,255,255,0.05); }
/* Topbar pill — tabs use hardcoded dark text + a white active chip; flip both. */
body.vf-admin-dark .kp-portaltabs { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); }
body.vf-admin-dark .kp-portaltab { color: var(--vf-snow-3); }
body.vf-admin-dark .kp-portaltab:hover { color: var(--vf-snow); }
body.vf-admin-dark .kp-portaltab.is-active { background: rgba(255,255,255,0.92); color: #0A0F1A; box-shadow: none; }
body.vf-admin-dark .kp-account { background: rgba(90,152,240,0.18); color: var(--vf-blue-300); }

/* =====================================================================
 * Admin DB viewers (AdminTableViewer) — Directory (Crew/Clients) + Tasks.
 * Token-based so dark mode inherits; the coloured pills get explicit light
 * tints here + dark overrides at the foot of this block.
 * ===================================================================== */
.adb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 16px; }
.adb-search {
  flex: 1 1 200px; min-width: 0; max-width: 300px;
  font: inherit; font-size: 14px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--vf-line); background: var(--vf-surface); color: var(--vf-ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.adb-search:focus { outline: none; border-color: var(--vf-blue); box-shadow: 0 0 0 3px rgba(9,94,223,0.12); }
.adb-search::placeholder { color: var(--vf-ink-4); }
.adb-filter { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adb-filter-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--vf-ink-4); }
.adb-spacer { flex: 1 1 auto; }
.adb-sort {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-2);
  background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 999px;
  padding: 7px 30px 7px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238892A6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.adb-sort:hover { border-color: var(--vf-ink-4); color: var(--vf-ink); }
.adb-sort:focus { outline: none; border-color: var(--vf-blue); }
/* .adb-count is styled canonically by `body.vf-studio .adb .tk-toolbar .adb-count` in studio.css. */

.adb-table-wrap { overflow-x: auto; border: 1px solid var(--vf-line); border-radius: 14px; background: var(--vf-surface); }
.adb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adb-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--vf-ink-4); padding: 11px 14px; border-bottom: 1px solid var(--vf-line);
  white-space: nowrap; position: sticky; top: 0; background: var(--vf-surface); z-index: 1;
}
.adb-table td { padding: 11px 14px; border-bottom: 1px solid var(--vf-line); color: var(--vf-ink-2); vertical-align: middle; }
.adb-table tr:last-child td { border-bottom: 0; }
.adb-table tbody tr:hover { background: var(--vf-blue-50); }
.adb-cell-title { font-weight: 600; color: var(--vf-ink); }
.adb-link { color: var(--vf-blue); text-decoration: none; }
.adb-link:hover { text-decoration: underline; }
.adb-muted { color: var(--vf-ink-4); }
.adb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.adb-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--vf-bg-tint); color: var(--vf-ink-3); border: 1px solid var(--vf-line); white-space: nowrap; }
.adb-people { display: flex; flex-wrap: wrap; gap: 6px; }
.adb-person { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--vf-ink-2); white-space: nowrap; }
.adb-person-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--vf-blue); color: #fff; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

.adb-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.adb-pill--gray   { background: #EEF0F4; color: #5B6472; border-color: #DFE3EA; }
.adb-pill--blue   { background: #E6F0FE; color: #0B57C2; border-color: #CFE0FB; }
.adb-pill--green  { background: #E7F6EC; color: #1E7A43; border-color: #C8E9D4; }
.adb-pill--yellow { background: #FBF3D9; color: #876A12; border-color: #F0E3B0; }
.adb-pill--orange { background: #FFF1E6; color: #B4520A; border-color: #FAD9BE; }
.adb-pill--red    { background: #FDECEA; color: #B0331A; border-color: #F6D2CC; }
.adb-pill--purple { background: #F2EAFB; color: #6D3BBF; border-color: #E2D2F5; }

.adb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.adb-pcard { display: flex; flex-direction: column; border: 1px solid var(--vf-line); background: var(--vf-surface); border-radius: 14px; overflow: hidden; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.adb-pcard:hover { border-color: var(--vf-ink-4); box-shadow: 0 4px 14px rgba(10,15,26,0.05); }
.adb-pcard-photo { aspect-ratio: 1 / 1; background: var(--vf-blue-50); }
.adb-pcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adb-pcard-nophoto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--vf-ink-4); font-size: 28px; font-weight: 700; }
.adb-pcard-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 13px; }
.adb-pcard-name { font-size: 14.5px; font-weight: 600; color: var(--vf-ink); }
.adb-pcard-role { font-size: 12px; color: var(--vf-blue); font-weight: 600; }
.adb-pcard-meta { font-size: 12px; color: var(--vf-ink-3); display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.adb-pcard-meta a { color: var(--vf-blue); text-decoration: none; }

.adb-empty { padding: 44px 16px; text-align: center; color: var(--vf-ink-3); font-size: 14px; }
.adb-notice { padding: 16px 18px; border: 1px dashed var(--vf-line); border-radius: 12px; background: var(--vf-bg-tint); color: var(--vf-ink-2); font-size: 13.5px; line-height: 1.55; }

body.vf-admin-dark .adb-table tbody tr:hover { background: rgba(255,255,255,0.035); }
body.vf-admin-dark .adb-pill--gray   { background: rgba(255,255,255,0.06); color: #AEB6C6; border-color: rgba(255,255,255,0.10); }
body.vf-admin-dark .adb-pill--blue   { background: rgba(42,120,234,0.20); color: #8FB7F5; border-color: rgba(42,120,234,0.40); }
body.vf-admin-dark .adb-pill--green  { background: rgba(34,130,74,0.22);  color: #84D6A1; border-color: rgba(34,130,74,0.44); }
body.vf-admin-dark .adb-pill--yellow { background: rgba(150,118,30,0.24); color: #E7CE85; border-color: rgba(150,118,30,0.46); }
body.vf-admin-dark .adb-pill--orange { background: rgba(201,122,30,0.22); color: #F0B785; border-color: rgba(201,122,30,0.42); }
body.vf-admin-dark .adb-pill--red    { background: rgba(196,70,50,0.22);  color: #F2A092; border-color: rgba(196,70,50,0.42); }
body.vf-admin-dark .adb-pill--purple { background: rgba(140,90,210,0.24); color: #C9A8F0; border-color: rgba(140,90,210,0.46); }

/* Admin dashboard (/admin) — upcoming productions + my tasks, above the launcher. */
.dash-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
@media (max-width: 820px) { .dash-sections { grid-template-columns: 1fr; } }
.dash-block { border: 1px solid var(--vf-line); background: var(--vf-surface); border-radius: 16px; padding: 16px 18px; }
.dash-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-block-head h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--vf-ink); }
.dash-prods { display: flex; flex-direction: column; gap: 8px; }
.dash-prod { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 1px; padding: 9px 11px; border: 1px solid var(--vf-line); border-radius: 11px; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.dash-prod:hover { border-color: var(--vf-blue); background: var(--vf-blue-50); }
.dash-prod-date { grid-row: 1 / span 2; align-self: center; font-size: 11px; font-weight: 700; color: var(--vf-blue); white-space: nowrap; }
.dash-prod-title { font-size: 13.5px; font-weight: 600; color: var(--vf-ink); }
.dash-prod-meta { font-size: 11.5px; color: var(--vf-ink-3); }
.dash-tasks { display: flex; flex-direction: column; gap: 0; }
.dash-task { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid var(--vf-line); }
.dash-task:last-child { border-bottom: 0; }
.dash-task-name { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--vf-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-task-date { font-size: 11.5px; color: var(--vf-ink-4); white-space: nowrap; }
.dash-launch-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--vf-ink-4); margin: 4px 0 10px; }
.adb-viewtabs { display: flex; gap: 7px; margin: 2px 0 16px; flex-wrap: wrap; }

/* ═══ Motion polish ═══════════════════════════════════════════════════════
   Portal micro-transitions run on the shared motion tokens (see studio.css
   note). The account dropdown gets a proper entrance, and the portal
   respects the OS reduced-motion setting like the Studio does. */
@keyframes kpMenuIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.kp-account-menu { animation: kpMenuIn 200ms var(--ease-out) both; transform-origin: top right; }

@media (prefers-reduced-motion: reduce) {
  body.is-rentals-portal *, body.is-rentals-portal *::before, body.is-rentals-portal *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
