/* Brand typeface, used for the client-facing gallery view (see the
   "Client gallery view" section below). Self-hosted -- Gotham isn't on
   Google Fonts -- from the same licensed files already used across M&M's
   other web properties (MMwebUpgrade, the rental catalog). */
@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-XLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham-Ultra.otf") format("opentype");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1c1a19;
  --muted: #6b6360;
  --line: #e3dedb;
  --panel: #ffffff;
  --page: #f4f1ef;
  --stage: #232323;
  --stage-2: #2f2f2f;
  --brand-green: #01a75e;
  --brand-green-dark: #017f47;
  --brand-charcoal: #414141;
  --brand-charcoal-dark: #292929;
  --brand-gradient: linear-gradient(135deg, var(--brand-green), var(--brand-charcoal));
  --accent-soft: #dcf3e7;
  --accent-ink: #017f47;
  --green: #13815f;
  --green-soft: #e1f3ec;
  --red: #9e2925;
  --red-soft: #f7e2e0;
  --blue: #2d647d;
  --blue-soft: #e5f0f4;
  --radius: 12px;
  --shadow: 0 20px 48px rgba(35, 18, 16, 0.14);
  --shadow-lg: 0 32px 90px rgba(20, 10, 9, 0.4);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(1, 167, 94, 0.06), rgba(1, 167, 94, 0) 260px),
    var(--page);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 48px);
  border-bottom: 4px solid var(--brand-green-dark);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 30px rgba(20, 10, 9, 0.28);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/topbar-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: overlay;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 167, 94, 0.55), rgba(41, 41, 41, 0.75));
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-user {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sign-out-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#backToAccessButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* The icon is white artwork, so this button sits dark on the green header. */
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

#backToAccessButton:hover {
  background: rgba(0, 0, 0, 0.42);
}

#backToAccessButton[hidden] {
  display: none;
}

.access-button-icon {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

.sign-out-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

#previewRoleButton.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--brand-green-dark);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-collab {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-mm {
  display: block;
  height: clamp(40px, 5.6vw, 58px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.brand-divider {
  width: 1px;
  height: clamp(30px, 4.2vw, 44px);
  background: rgba(255, 255, 255, 0.35);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-subtitle {
  margin-top: 4px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.5px;
}

.header-logo {
  display: block;
  height: clamp(26px, 3.8vw, 40px);
  width: auto;
  object-fit: contain;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.workspace {
  padding: 24px clamp(18px, 4vw, 48px) 44px;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  /* Logo gets the top row, the card the middle one -- the equal 1fr rows
     above and below the card center the logo vertically in the leftover
     space instead of pinning it to a fixed pixel offset from the top. */
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  overflow: hidden;
  background: var(--brand-charcoal-dark);
}

.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.curtain-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.4)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 9px, rgba(0, 0, 0, 0.06) 9px 18px),
    linear-gradient(180deg, var(--brand-charcoal), var(--brand-charcoal-dark) 75%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
  transform: translateY(-100%);
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.curtain-logo-plate {
  display: grid;
  place-items: center;
}

.curtain-logo {
  max-width: min(900px, 85vw);
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

.curtain-overlay.is-closed .curtain-screen {
  transform: translateY(0);
}

.splash-media {
  position: absolute;
  inset: 0;
}

.splash-media img,
.splash-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.splash-media video {
  transition: opacity 0.4s ease-in-out;
}

.splash-media video.is-looping {
  opacity: 0;
}

.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 460px at 50% 32%, rgba(1, 167, 94, 0.35), rgba(1, 167, 94, 0) 70%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.88));
}

.splash-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(420px, calc(100vw - 48px));
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.25s ease-out, transform 0.25s ease-out;
  text-align: center;
  overflow: hidden;
  --cursor-x: 50%;
  --cursor-y: 50%;
  --cursor-glow: 0;
}

.splash-card-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--cursor-glow);
  background: radial-gradient(220px circle at var(--cursor-x) var(--cursor-y), rgba(224, 64, 58, 0.55), transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 0.25s ease-out;
}

.splash-brand-logo {
  width: 170px;
  margin-bottom: 14px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.splash-event-logo {
  position: relative;
  z-index: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 440px;
  max-width: 80vw;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}

.splash-explain {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.splash-package {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.splash-subtitle {
  margin: 4px 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.splash-welcome {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 18px;
}

.splash-welcome-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.splash-welcome-text strong {
  display: inline-flex;
  padding: 3px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-green-dark);
  font-weight: 800;
  text-shadow: none;
}

.splash-not-you {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-self: start;
}

.splash-error {
  margin: -10px 0 18px;
  color: #ffb4b0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

@keyframes splash-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.splash-form input.is-invalid {
  animation: splash-shake 0.4s ease-in-out;
  border-color: #ffb4b0;
}

.splash-form {
  display: grid;
  gap: 12px;
  width: 100%;
}

/* The client theme redefines --ink as near-white, but the shared input style
   keeps a white background -- light text on white is what made typed names
   look washed out. Give the splash fields their own dark glass look. */
.splash-card input {
  color: #fff;
  caret-color: #fff;
  background: rgba(12, 12, 12, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.splash-card input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.splash-card input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

/* Browser autofill paints its own light background and ignores `color` */
.splash-card input:-webkit-autofill,
.splash-card input:-webkit-autofill:hover,
.splash-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(24, 24, 24, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.splash-access-button {
  position: relative;
  overflow: hidden;
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 167, 94, 0.3);
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out;
}

.splash-access-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.splash-access-button:not(:disabled):hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.3),
    0 0 22px 6px rgba(255, 209, 128, 0.9),
    0 0 55px 14px rgba(255, 209, 128, 0.55),
    0 14px 30px rgba(1, 167, 94, 0.4);
}

.splash-access-button:not(:disabled):hover::before {
  left: 120%;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: calc(100vh - 128px);
  place-items: center;
  padding: 28px clamp(18px, 4vw, 48px);
  background: var(--brand-charcoal-dark);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/login-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 50% 0%, rgba(1, 167, 94, 0.35), rgba(1, 167, 94, 0) 70%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.85));
}

.auth-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  margin-bottom: 4px;
}

.auth-card label {
  display: grid;
  gap: 7px;
}

.auth-card .primary-button {
  margin-top: 4px;
}

.auth-error {
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.auth-error.is-success {
  color: var(--green);
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 0;
}

.client-review .workspace {
  padding-top: 28px;
}

.client-review .workspace-shell {
  display: block;
}

.client-review .layout {
  display: block;
  margin-top: 0;
}

.client-review .review-panel {
  width: min(1280px, 100%);
  margin: 0 auto;
}

/* ─── Client gallery view ────────────────────────────────────────────
   A deliberately different treatment from the admin dashboard: an
   editorial, portfolio-style presentation where the work itself is the
   focus. Gotham -- the actual M&M brand typeface -- carries the whole
   client experience here, headings through body copy; the admin
   dashboard keeps Inter and is untouched. Everything below is scoped
   under .client-review. */

.client-review {
  --gallery-font: "Gotham", "Inter", sans-serif;
  font-family: var(--gallery-font);
  /* Dark "screening room" theme -- redefining the shared tokens re-themes
     everything downstream that already reads them via var() (panels,
     borders, text, empty states); the handful of spots below with a
     hardcoded light color get an explicit dark-mode override instead. */
  --ink: #f3efe8;
  --muted: rgba(243, 239, 232, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  --panel: #1b1918;
  --page: #121110;
  /* Ambient glow for the glass panels below to actually catch and blur --
     backdrop-filter has nothing to work with over a flat color. Grey/
     charcoal only, no brand green -- status-green on approved assets is
     already the only green this page needs. */
  background:
    radial-gradient(760px 520px at 12% -8%, rgba(150, 150, 150, 0.2), rgba(150, 150, 150, 0) 55%),
    radial-gradient(760px 540px at 100% 12%, rgba(120, 120, 120, 0.22), rgba(120, 120, 120, 0) 60%),
    radial-gradient(640px 480px at 50% 100%, rgba(65, 65, 65, 0.28), rgba(65, 65, 65, 0) 65%),
    var(--page);
  background-attachment: fixed;
  color: var(--ink);
}

.client-review .asset-card {
  background: rgba(27, 25, 24, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.client-review .upload-zone {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.client-review .inspiration-section {
  background: rgba(27, 25, 24, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.client-review .client-intro {
  background: linear-gradient(135deg, var(--brand-charcoal), var(--brand-charcoal-dark));
  border-bottom: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.client-review .topbar {
  background: linear-gradient(135deg, var(--brand-charcoal), var(--brand-charcoal-dark));
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.client-review .topbar::after {
  background: linear-gradient(135deg, rgba(150, 150, 150, 0.35), rgba(41, 41, 41, 0.75));
}

.client-review .reviewer-identity {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/* .ghost-button/.secondary-button hardcode a white background and read
   their text color from --ink, which is now light -- fine on the admin's
   light page, but on this dark theme that's white text on a white button.
   Give them dark-glass styling to match everything else here. */
.client-review .ghost-button,
.client-review .secondary-button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

/* Dialogs and the share-link toast deliberately keep their own light
   glass surface regardless of the dark theme (for legibility over busy
   preview content), so anything inside them -- including those same
   buttons -- needs to stay on the light palette instead of inheriting
   the page-level dark one. */
.client-review dialog,
.client-review .share-toast {
  --ink: #1c1a19;
  --muted: #6b6360;
  --line: #e3dedb;
  --panel: #ffffff;
  /* Explicit, not just the custom-property redefinition above: color
     inheritance for the modal's own text (titles, messages) already
     resolved to the page's light --ink by the time it reached here, so
     redefining the variable alone doesn't reach already-inherited text --
     only things that read var(--ink) directly, like the buttons below. */
  color: var(--ink);
}

.client-review dialog .ghost-button,
.client-review dialog .secondary-button,
.client-review .share-toast .ghost-button,
.client-review .share-toast .secondary-button {
  background: #fff;
  border-color: #e3dedb;
}

.client-review label {
  color: var(--ink);
}

.client-review .client-alert.is-complete {
  background: rgba(19, 129, 95, 0.18);
}

.client-review .asset-card.is-link-asset .asset-preview {
  background:
    linear-gradient(135deg, rgba(150, 150, 150, 0.18), rgba(150, 150, 150, 0) 45%),
    rgba(255, 255, 255, 0.04);
}

.client-review .asset-card.is-approved .asset-preview {
  background:
    linear-gradient(135deg, rgba(19, 129, 95, 0.3), rgba(19, 129, 95, 0) 45%),
    rgba(19, 129, 95, 0.12);
}

.client-review .asset-card.is-denied .asset-preview {
  background:
    linear-gradient(135deg, rgba(158, 41, 37, 0.3), rgba(158, 41, 37, 0) 45%),
    rgba(158, 41, 37, 0.12);
}

.client-review .section-head .eyebrow {
  font-family: var(--gallery-font);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.client-review #reviewHeading {
  font-family: var(--gallery-font);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.client-review .asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 48px;
  /* Without this, grid stretches every card in a row to match its tallest
     sibling -- the box around a shorter/squarer image then pads out with
     dead space instead of just hugging that image's own height. */
  align-items: start;
}

.client-review .client-intro {
  margin-bottom: 36px;
  padding: 44px 48px;
}

.client-review .client-intro h3 {
  font-family: var(--gallery-font);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.client-review .asset-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
  animation: gallery-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.client-review .asset-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.client-review .asset-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.client-review .asset-card.is-link-asset .asset-preview {
  min-height: 220px;
}

.client-review .asset-preview img,
.client-review .asset-preview video {
  width: auto;
  max-width: 100%;
  height: auto;
  /* Caps how tall a narrow/portrait asset (step-and-repeat banners, vertical
     video, etc.) can stretch a card -- without this, width:100% + height:auto
     turns a tall-and-narrow asset into an extremely long card. Letterboxing
     a little on the sides here beats blowing out the grid's row height. */
  max-height: 420px;
  object-fit: contain;
}

.client-review .asset-body {
  padding: 24px 26px 26px;
}

.client-review .asset-title-row {
  align-items: center;
}

.client-review .asset-title-row h4 {
  font-family: var(--gallery-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.client-review .asset-type {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.client-review .asset-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.client-review .asset-actions {
  gap: 12px;
}

.client-review .asset-actions button {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.client-review .preview-button {
  flex: 1 1 100%;
  order: -1;
  margin-bottom: 2px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

@keyframes gallery-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-review .asset-card {
    animation: none;
  }
}

.client-alert {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 2px solid var(--brand-charcoal);
  border-radius: var(--radius);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
}

.client-alert.is-complete {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: none;
}

.collapsible {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf9;
  overflow: hidden;
}

.collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.collapsible-toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapsible-toggle-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
}

.collapsible-toggle-icon {
  color: var(--muted);
  transition: transform 0.15s ease;
}

.collapsible.is-open .collapsible-toggle-icon {
  transform: rotate(180deg);
}

.collapsible-body {
  padding: 4px 18px 18px;
}

.collapsible-body .asset-link-form {
  margin-top: 0;
}

.inspiration-section {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf9;
  overflow: hidden;
}

.inspiration-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.inspiration-toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* "!" beside the title while collapsed and populated */
.inspiration-alert {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* Small previews of the newest uploads, pushed toward the arrow */
.inspiration-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 0 auto;
}

.inspiration-thumb,
.inspiration-thumb-more {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #eeebe7;
  box-shadow: 0 0 0 1px var(--line);
}

.inspiration-thumb {
  position: relative;
}

.inspiration-thumb img,
.inspiration-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Play mark so a video thumbnail isn't mistaken for a still */
.inspiration-thumb.is-video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -5px 0 0 -3px;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.inspiration-thumb-more {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Client theme turns --muted light, so give the "+N" chip a dark base to match */
.client-review .inspiration-thumb-more {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Once open, the full grid below shows everything, so drop the hints */
.inspiration-section.is-open .inspiration-thumbs,
.inspiration-section.is-open .inspiration-alert {
  display: none;
}

@media (max-width: 480px) {
  .inspiration-thumb:nth-child(n + 3) {
    display: none;
  }
}

.inspiration-count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
}

.inspiration-toggle-icon {
  color: var(--muted);
  transition: transform 0.15s ease;
}

.inspiration-section.is-open .inspiration-toggle-icon {
  transform: rotate(180deg);
}

.inspiration-body {
  padding: 0 20px 20px;
}

.inspiration-body p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.inspiration-upload-zone {
  margin-top: 14px;
  padding: 16px;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  align-items: start; /* image tiles keep their height beside taller video tiles */
  margin-top: 16px;
}

/* Full-width label row inside the grid, one per uploader group */
.inspiration-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.inspiration-group-title:not(:first-child) {
  margin-top: 10px;
}

.inspiration-group-title span {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-green);
  font-size: 11px;
  letter-spacing: 0;
}

.inspiration-grid:empty {
  margin-top: 0;
}

.inspiration-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eeebe7;
  box-shadow: var(--shadow);
}

.inspiration-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Videos get a wider tile so the player controls are usable */
.inspiration-card.is-video {
  grid-column: span 2;
  background: #000;
}

.inspiration-card video {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #000;
}

@media (max-width: 480px) {
  .inspiration-card.is-video {
    grid-column: 1 / -1;
  }
}

/* "Interested" marks on mood-board items */
.inspiration-interest {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 800;
}

.inspiration-card-footer {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Solid dark (not translucent): the card behind it is light, which made the
   light client-theme text on it unreadable */
.client-review .inspiration-card-footer {
  background: #1b1918;
  border-top-color: rgba(255, 255, 255, 0.12);
}

.inspiration-interest-button {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.inspiration-interest-button:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.inspiration-interest-button.is-on {
  border-color: var(--brand-green);
  background: var(--accent-soft);
  color: var(--brand-green);
}

.inspiration-interest-tally {
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 800;
}

.inspiration-interest-filter {
  margin-top: 14px;
}

.inspiration-interest-filter.is-active {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.review-request-status {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-green);
}

.inspiration-removed {
  display: grid;
  place-items: center;
  height: 140px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: #eeebe7;
}

.inspiration-card-caption {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.inspiration-delete-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: rgba(20, 18, 17, 0.65);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspiration-delete-button:hover {
  background: var(--brand-green);
}

.inspiration-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dashboard-panel,
.owner-panel,
.review-panel {
  padding: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.notifications-panel {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf9;
  overflow: hidden;
}

.notifications-head {
  display: flex;
  align-items: center;
}

.notifications-toggle {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.notifications-mark-all-button {
  flex-shrink: 0;
  margin-right: 16px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.notifications-toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifications-count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
}

.notifications-toggle-icon {
  color: var(--muted);
  transition: transform 0.15s ease;
}

.notifications-panel.is-open .notifications-toggle-icon {
  transform: rotate(180deg);
}

.notifications-body {
  padding: 0 16px 16px;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.notification-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.notification-item:last-child {
  padding-bottom: 0;
}

.notification-item-info {
  min-width: 0;
}

.notification-item-info strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-info small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.notification-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.notification-item-meta span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.notification-item-meta button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.notification-check-button {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-check-button:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

@keyframes asset-card-highlight {
  0%, 100% { box-shadow: var(--shadow); }
  30% { box-shadow: 0 0 0 4px rgba(1, 167, 94, 0.45), var(--shadow-lg); }
}

.asset-card.is-highlighted {
  animation: asset-card-highlight 1.6s ease;
}

.dashboard-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-actions label {
  min-width: 180px;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-button.is-active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

.summary-card {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #faf7f6);
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.package-table {
  display: grid;
  gap: 10px;
}

.package-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.package-row:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.package-row.is-active {
  border-color: var(--brand-green);
  box-shadow: inset 4px 0 0 var(--brand-green);
}

.package-row.is-complete {
  border-color: var(--green);
  background: var(--green-soft);
}

.package-row.is-complete.is-active {
  box-shadow: inset 4px 0 0 var(--green);
}

.package-row.is-archived {
  opacity: 0.68;
  background: #f2f3f4;
}

.package-row h3 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.package-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.package-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.package-delete-button {
  border-color: var(--red);
  color: var(--red);
}

.package-delete-button:hover {
  background: var(--red-soft);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.count-badge.approved {
  background: var(--green-soft);
  color: var(--green);
}

.count-badge.denied {
  background: var(--red-soft);
  color: var(--red);
}

.count-badge.viewed-badge {
  cursor: default;
}

.count-badge.viewed-badge.has-viewed {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.count-badge.viewed-badge.not-viewed {
  background: var(--panel-muted, #f1efec);
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.button-group:first-child {
  padding-left: 0;
  border-left: 0;
}

.status-pill,
.asset-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3a3634;
  font-size: 13px;
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.passcode-field {
  display: flex;
  gap: 10px;
}

.passcode-field input {
  flex: 1;
}

.logo-field {
  display: grid;
  gap: 7px;
  color: #3a3634;
  font-size: 13px;
  font-weight: 700;
}

.logo-upload-zone {
  margin: 0;
  padding: 16px;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf9;
}

.logo-preview img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
  box-shadow: var(--shadow);
}

.passcode-field button {
  flex-shrink: 0;
}

.asset-link-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #b9a6a3;
  border-radius: var(--radius);
  background: #fbfaf9;
}

.asset-link-form button {
  justify-self: start;
}

.asset-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-zone {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 24px 18px;
  border: 1px dashed #b9a6a3;
  border-radius: var(--radius);
  background: #fbfaf9;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover {
  border-color: var(--brand-green);
}

.upload-zone input {
  display: none;
}

.upload-zone span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.upload-zone span.is-error {
  color: var(--red);
  font-weight: 700;
}

.upload-progress {
  width: 100%;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--brand-gradient);
  transition: width 0.2s ease;
}

.upload-zone.is-over {
  border-color: var(--brand-green);
  background: var(--accent-soft);
}

.upload-zone.is-uploading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.actions,
.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.needs-edits-summary {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-soft);
}

.review-activity {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf9;
}

.review-activity h3,
.needs-edits-summary h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.activity-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.activity-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-item:last-child {
  padding-bottom: 0;
}

.activity-item span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.activity-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.needs-edits-item {
  padding: 12px 0;
  border-top: 1px solid rgba(158, 41, 37, 0.18);
}

.needs-edits-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.needs-edits-item:last-child {
  padding-bottom: 0;
}

.needs-edits-item p {
  margin: 6px 0 0;
  color: var(--accent-ink);
  font-size: 14px;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:not(:disabled):hover {
  filter: brightness(1.06);
}

.primary-button {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 167, 94, 0.28);
}

.primary-button:not(:disabled):hover {
  box-shadow: 0 14px 30px rgba(1, 167, 94, 0.36);
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button {
  min-height: 36px;
}

.client-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.client-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/review-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  mix-blend-mode: overlay;
}

.client-intro > * {
  position: relative;
  z-index: 1;
}

.client-intro-body {
  flex: 1;
  min-width: 0;
}

.client-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
  padding: 10px;
  box-shadow: var(--shadow);
}

.client-intro h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.client-intro p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-line;
}

.client-intro p:last-child {
  margin-bottom: 0;
}

.client-intro .reviewer-identity {
  color: var(--accent-ink);
}

.client-messages {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}

.designer-message {
  padding: 14px 16px;
  border-left: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.designer-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.client-intro .designer-message-label {
  margin: 0;
  color: #ffd9d6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.designer-message-delete {
  min-height: auto;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
}

.client-intro .designer-message-text {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
}

.client-message-form {
  display: grid;
  gap: 8px;
}

.reviewer-identity {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.asset-sessions {
  display: grid;
  gap: 32px;
}

.bulk-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.bulk-action-bar #bulkActionCount {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.bulk-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bulk-action-buttons button,
.bulk-action-buttons select {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.session-group {
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.session-group.is-drag-over {
  background: var(--accent-soft);
  outline: 2px dashed var(--brand-green);
  outline-offset: 6px;
}

.session-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.session-group-head h3 {
  margin: 0;
  font-size: 18px;
}

.session-group-actions {
  display: flex;
  gap: 8px;
}

.session-group-actions button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.session-group-empty {
  padding: 20px;
}

.archived-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.archived-section .session-group-head h3 {
  color: var(--muted);
  font-weight: 600;
}

.asset-card[draggable="true"] {
  cursor: grab;
}

.asset-card.is-dragging {
  opacity: 0.45;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.asset-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.asset-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.asset-card.is-selected {
  box-shadow: 0 0 0 2px var(--brand-green) inset;
}

.asset-select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.asset-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.asset-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--brand-charcoal-dark);
}

.asset-card.is-link-asset .asset-preview {
  min-height: 118px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(1, 167, 94, 0.16), rgba(1, 167, 94, 0) 45%),
    #fbfaf9;
}

.asset-preview img,
.asset-preview video,
.asset-preview iframe {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #111827;
}

.asset-preview iframe {
  height: 300px;
  border: 0;
  object-fit: initial;
}

.box-preview-fallback {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: var(--ink);
  text-align: center;
}

.box-preview-fallback strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
}

.box-preview-fallback .asset-version {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-size: 12px;
}

.box-preview-fallback span {
  color: var(--muted);
  font-size: 14px;
}

.preview-button {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.preview-modal {
  width: min(1360px, calc(100vw - 36px));
  height: min(780px, calc(100vh - 36px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.preview-modal[open] {
  display: flex;
  flex-direction: column;
}

.preview-modal::backdrop {
  background: rgba(16, 14, 13, 0.72);
}

.preview-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-modal-head h2 {
  overflow-wrap: anywhere;
}

.preview-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.preview-modal-actions button {
  min-height: 38px;
}

.preview-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.preview-media-col {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #000;
}

.preview-annotate-hint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.annotate-tool-group {
  display: flex;
  gap: 4px;
}

.annotate-tool-button {
  min-height: 0;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.annotate-tool-button.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--brand-green-dark);
}

.preview-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.preview-inline-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.preview-inline-media img,
.preview-inline-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pin-preview-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
}

.pin-preview-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Scoped to the <img> itself (not the wrapper) so the pin popover -- a
     sibling of this image inside the same wrapper -- never inherits this.
     Chromium doesn't reliably let a descendant re-enable typing once
     user-select:none applies further up the tree, even with an explicit
     override on the descendant, so the safe fix is to never let it reach
     the popover/textarea in the first place. */
  user-select: none;
  -webkit-user-drag: none;
}

.pin-layer {
  position: absolute;
  inset: 0;
  /* The wrapper sets line-height:0 to close up the small inline-block gap
     under its <img>. Left inherited, that same zero line-height reaches the
     pin popover's textarea and silently breaks Chromium's ability to commit
     typed characters into it at all (focus/keydown/keyup all fire normally;
     the value just never updates) -- reset it back here before it does. */
  line-height: normal;
}

.pin-layer.is-annotatable {
  cursor: crosshair;
}

.pin-box {
  position: absolute;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 2px solid var(--brand-green);
  border-radius: 4px;
  background: rgba(1, 167, 94, 0.14);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pin-box:hover {
  background: rgba(1, 167, 94, 0.26);
}

.pin-box-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.pin-box-preview {
  border: 2px dashed #fff;
  background: rgba(1, 167, 94, 0.3);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  cursor: default;
}

.pin-shape-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pin-shape-layer polygon {
  fill: rgba(1, 167, 94, 0.16);
  stroke: var(--brand-green);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  pointer-events: auto;
}

.pin-shape-layer polyline {
  fill: rgba(1, 167, 94, 0.22);
  stroke: #fff;
  stroke-width: 0.5;
  stroke-dasharray: 2 1.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.pin-popover {
  position: absolute;
  transform: translate(-50%, 14px);
  z-index: 5;
  width: 240px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.pin-popover textarea {
  width: 100%;
  margin-bottom: 8px;
  font-size: 13px;
}

.pin-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pin-popover-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.pin-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.pin-popover-head span {
  color: var(--muted);
  white-space: nowrap;
}

.pin-popover.is-view p {
  margin: 0 0 10px;
  font-size: 13px;
  white-space: pre-wrap;
}

.video-preview-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.video-frame-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.video-frame-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-frame-layer {
  position: absolute;
  inset: 0;
  line-height: normal;
}

.video-frame-layer.is-annotatable {
  cursor: crosshair;
}

.video-controls-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 40px;
  margin-top: 8px;
}

.video-play-button {
  flex: 0 0 40px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-play-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.video-timeline-track {
  position: relative;
  flex: 1 1 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.video-timeline-track.is-annotatable {
  cursor: crosshair;
  outline: 1px dashed rgba(255, 255, 255, 0.4);
  outline-offset: -1px;
}

.video-timeline-empty-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.video-timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
  pointer-events: none;
}

.video-timeline-marker {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.video-timeline-marker:hover {
  background: var(--brand-green-dark);
}

.video-timeline-marker--area {
  border-radius: 4px;
}

.video-timeline-marker-preview {
  background: rgba(1, 167, 94, 0.6);
  border-style: dashed;
  pointer-events: none;
}

.video-comment-popover {
  bottom: calc(100% + 10px);
  transform: translate(-50%, 0);
}

.video-comment-timestamp-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.preview-feedback-col {
  display: flex;
  flex-direction: column;
  width: 360px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: #fff;
}

.preview-feedback-heading {
  margin: 16px 20px 0;
}

.feedback-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.feedback-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: #fbfaf9;
}

.feedback-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.feedback-bubble.is-client {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.feedback-bubble.is-admin {
  align-self: flex-end;
  border-color: transparent;
  background: var(--accent-soft);
  border-bottom-right-radius: 4px;
}

.feedback-bubble.is-resolved {
  opacity: 0.6;
}

.feedback-bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.feedback-bubble-who {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.feedback-bubble-head strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-bubble-head span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.feedback-bubble-resolve {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feedback-bubble-resolve:hover {
  border-color: var(--green);
}

.feedback-bubble-resolve.is-checked {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.feedback-bubble-done-tag {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.feedback-bubble-jump {
  flex-shrink: 0;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.feedback-bubble-jump:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.feedback-bubble p {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.feedback-bubble-delete {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  min-height: 0;
}

.feedback-bubble-delete:hover {
  color: var(--brand-green);
}

.feedback-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.feedback-compose textarea {
  flex: 1;
  resize: none;
}

.feedback-locked-message {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.confirm-modal {
  width: min(420px, calc(100vw - 48px));
  padding: 34px 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.confirm-modal::backdrop {
  background: rgba(16, 14, 13, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.confirm-modal h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.confirm-modal p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.confirm-modal-actions button {
  min-width: 120px;
}

.deny-modal textarea {
  width: 100%;
  min-height: 90px;
  margin-bottom: 6px;
  text-align: left;
  resize: vertical;
}

.form-modal label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  text-align: left;
}

.form-modal input {
  width: 100%;
}

.form-modal p#promptModalMessage {
  text-align: left;
  margin-bottom: 14px;
}

.deny-modal-error {
  margin: 0 0 16px;
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.deny-modal textarea.is-invalid {
  animation: splash-shake 0.4s ease-in-out;
  border-color: var(--brand-green);
}

.asset-body {
  padding: 14px;
}

.asset-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.asset-title-row h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.asset-type {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.asset-decision-meta {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.asset-card.is-approved .asset-status {
  background: var(--green-soft);
  color: var(--green);
}

.asset-card.is-approved .asset-preview {
  border-bottom-color: var(--green);
  background:
    linear-gradient(135deg, rgba(19, 129, 95, 0.22), rgba(19, 129, 95, 0) 45%),
    var(--green-soft);
}

.asset-card.is-denied .asset-status {
  background: var(--red-soft);
  color: var(--red);
}

.asset-card.is-denied .asset-preview {
  border-bottom-color: var(--red);
  background:
    linear-gradient(135deg, rgba(158, 41, 37, 0.22), rgba(158, 41, 37, 0) 45%),
    var(--red-soft);
}

.asset-card.is-archived {
  opacity: 0.68;
}

.asset-card.is-archived .asset-preview {
  filter: grayscale(0.35);
}

.asset-card.is-upload-placeholder {
  border-style: dashed;
  border-color: #b9a6a3;
}

.upload-placeholder-preview {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.upload-placeholder-name {
  display: block;
  font-size: 16px;
}

.upload-placeholder-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-placeholder-status.is-error {
  color: var(--red);
  font-weight: 700;
}

.approve-button {
  background: var(--green);
  color: #fff;
}

.deny-button {
  background: var(--red);
  color: #fff;
}

.pending-button {
  background: var(--blue-soft);
  color: var(--blue);
}

.edit-button {
  background: #eef0f2;
  color: var(--brand-charcoal);
}

.archive-button {
  background: #eef0f2;
  color: var(--stage);
}

.remove-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar,
  .layout,
  .workspace-shell {
    display: block;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-row {
    grid-template-columns: 1fr;
  }

  .package-counts {
    justify-content: flex-start;
  }

  .package-actions {
    justify-content: flex-start;
  }

  .status-pill {
    margin-top: 16px;
    width: max-content;
  }

  .review-panel {
    margin-top: 18px;
  }

  .preview-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .preview-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .preview-media-col {
    min-height: 260px;
  }

  .preview-feedback-col {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .client-review .asset-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .summary-grid,
  .asset-link-form,
  .upload-zone {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head button {
    margin-top: 12px;
  }

  .button-group {
    padding-left: 0;
    border-left: 0;
  }

  .dashboard-actions {
    display: grid;
    justify-content: stretch;
    margin-top: 12px;
  }

  .dashboard-actions label {
    min-width: 0;
  }

  .dashboard-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ─── Print summary ─────────────────────────────────────────────────── */

.print-sheet {
  display: none;
}

.print-sheet-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #01a75e;
}

.print-sheet-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.print-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #01a75e;
}

.print-sheet-header h1 {
  margin: 0;
  font-size: 22px;
  color: #1c1a19;
}

.print-sheet-header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #555;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.print-tile {
  break-inside: avoid;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.print-tile-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eeebe7;
  border-bottom: 1px solid #ddd;
  color: #55504c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.print-tile-body {
  padding: 8px 10px;
}

.print-tile-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1c1a19;
  overflow-wrap: anywhere;
}

.print-tile-meta {
  margin: 2px 0 6px;
  font-size: 11px;
  color: #666;
}

.print-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.print-status.approved {
  background: #e1f3ec;
  color: #13815f;
}

.print-status.denied {
  background: #f7e2e0;
  color: #9e2925;
}

.print-status.pending {
  background: #e5f0f4;
  color: #2d647d;
}

/* ─── Share toast ───────────────────────────────────────────────────── */

.share-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(400px, calc(100vw - 48px));
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff;
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-lg);
  animation: share-toast-in 0.35s ease-out;
}

.share-toast.is-leaving {
  animation: share-toast-out 0.25s ease-in forwards;
}

@keyframes share-toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes share-toast-out {
  to { opacity: 0; transform: translateY(14px); }
}

.share-toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.share-toast-body {
  flex: 1;
  min-width: 0;
}

.share-toast-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.share-toast-message {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.share-toast-link-row {
  display: flex;
  gap: 6px;
}

.share-toast-link-row input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 7px 8px;
}

.share-toast-link-row button {
  min-height: auto;
  padding: 0 12px;
  font-size: 12px;
}

.share-toast-close {
  flex-shrink: 0;
  min-height: auto;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.share-toast-close:hover {
  color: var(--ink);
}

/* ─── Client chat widget ────────────────────────────────────────────── */

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(20, 10, 9, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(20, 10, 9, 0.4);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-panel-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 20px;
  background: var(--brand-gradient);
  color: #fff;
}

.chat-panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.chat-panel-close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.chat-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-panel-body {
  flex: 1;
  min-height: 140px;
  padding: 16px 18px;
  overflow-y: auto;
  background: #fbfaf9;
}

/* Chat-bubble thread: shared between the designer's "Message client" panel
   (#messageBody) and the client's floating chat panel (.chat-panel-body).
   Each renders the same review_messages data on a light background, with
   the sender's own messages pushed to the right via grid's justify-self. */
.chat-panel-body .client-messages,
#messageBody .client-messages {
  margin: 0;
}

.chat-panel-body .designer-message,
#messageBody .designer-message {
  max-width: 86%;
  border-left: 4px solid var(--brand-green);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chat-panel-body .designer-message-label,
#messageBody .designer-message-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-panel-body .designer-message-text,
#messageBody .designer-message-text {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: pre-line;
}

/* In the client's panel, the client's own messages go on the right; in the
   designer's panel, the designer's own messages go on the right. */
.chat-panel-body .designer-message.is-client,
#messageBody .designer-message.is-designer {
  justify-self: end;
  border-left: 0;
  background: var(--brand-gradient);
}

.chat-panel-body .designer-message.is-client .designer-message-label,
.chat-panel-body .designer-message.is-client .designer-message-text,
#messageBody .designer-message.is-designer .designer-message-label,
#messageBody .designer-message.is-designer .designer-message-text {
  color: #fff;
}

.chat-panel-body .designer-message.is-designer,
#messageBody .designer-message.is-client {
  justify-self: start;
}

#messageBody .client-messages {
  max-height: 320px;
  margin-bottom: 14px;
  overflow-y: auto;
}

.chat-panel-footer {
  flex-shrink: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

@media (max-width: 560px) {
  .chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .chat-panel {
    width: min(340px, calc(100vw - 24px));
  }
}

/* ─── Quick asset upload (review panel) ─────────────────────────────── */

.quick-upload {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-upload .upload-zone {
  width: 100%;
  margin-top: 0;
}

.quick-link-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px dashed #b9a6a3;
  border-radius: var(--radius);
  background: #fbfaf9;
}

.quick-link-form input {
  grid-column: span 1;
}

.quick-link-form .asset-form-actions {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 560px) {
  .quick-link-form {
    grid-template-columns: 1fr;
  }
}

/* ─── Inline asset-card editing ─────────────────────────────────────── */

.asset-card.is-editing {
  box-shadow: 0 0 0 2px var(--brand-green) inset;
}

.asset-edit-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.asset-edit-name,
.asset-edit-kind,
.asset-edit-version {
  width: 100%;
}

.asset-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.asset-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media print {
  body > *:not(#printSheet) {
    display: none !important;
  }

  #printSheet {
    display: block;
  }

  #printSheet * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    margin: 16mm;
  }
}

/* Older versions of an asset */
.versions-modal {
  width: min(520px, calc(100vw - 48px));
  text-align: left;
}

.versions-modal h2,
.versions-modal > p {
  text-align: center;
}

.versions-list {
  display: grid;
  gap: 10px;
  max-height: 50vh;
  margin-bottom: 22px;
  overflow-y: auto;
}

.version-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.version-thumb {
  display: grid;
  flex: 0 0 64px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.version-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.version-info {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.version-info strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-info span {
  color: var(--muted);
  font-size: 12px;
}

.versions-list .versions-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* "New Version!" banner on a revised asset's preview */
.asset-preview {
  position: relative;
}

.new-version-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 8px 12px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: new-version-pulse 1.8s ease-in-out infinite;
}

@keyframes new-version-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .new-version-banner { animation: none; }
}

/* ─── Designer side: dashboard screen + full-screen event screen ─────── */

body.view-dashboard .workspace-shell .layout,
body.view-dashboard .workspace-shell .event-nav,
body.view-event .workspace-shell .dashboard-panel {
  display: none;
}

.workspace-shell .event-nav {
  margin-bottom: 16px;
}

body.view-dashboard .workspace {
  max-width: 1280px;
  margin: 0 auto;
}

.package-row.is-clickable {
  cursor: pointer;
}

.package-row.is-active {
  border-color: var(--line);
  box-shadow: none;
}

/* Event screen: use the whole window */
body.view-event .workspace {
  max-width: none;
}

/* Working / Approved sections */
.status-section {
  margin-bottom: 28px;
}

.status-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.status-section-head h3 {
  margin: 0;
  font-size: 20px;
}

.status-section-count {
  min-width: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--line);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.status-section-sub {
  color: var(--muted);
  font-size: 13px;
}

.status-section.is-working .status-section-head {
  border-bottom-color: #f59e0b;
}

.status-section.is-working .status-section-count {
  background: #fef3c7;
  color: #92400e;
}

.status-section.is-approved-section .status-section-head {
  border-bottom-color: var(--brand-green);
}

.status-section.is-approved-section .status-section-count {
  background: var(--green-soft);
  color: var(--green);
}

.status-section-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.client-review .status-section.is-working .status-section-count {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.client-review .status-section.is-approved-section .status-section-count {
  background: rgba(1, 167, 94, 0.2);
  color: #4fd996;
}
