/* The left sidebar of the Studio.
   Plain words: the menu that stays on the left side of the page (Home,
   Collections, Galleries, and the list of projects). On a phone it is
   hidden behind the menu button and slides in.
   First used on the Workspace (partner-project.html). Loaded after
   studio.css, so the rules here win where both style the same thing. */

.studio-shell--sidebar {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.studio-content {
  --content-gutter: clamp(16px, 3vw, 36px);
  min-width: 0;
  padding: 14px var(--content-gutter) 64px;
}
/* One column in the middle of the space beside the sidebar, so a wide
   screen has equal room on both sides instead of a big gap on the right. */
.studio-content > * { max-width: 1120px; margin-inline: auto; }

/* The brand's own typefaces are set in css/fonts.css (.studio-brand-type). */
.studio-brand-type {
  /* studio.css hides sideways overflow on the body in a way that stops
     the sidebar and the top bar from staying in view while the page
     scrolls. "clip" still cuts sideways overflow, without that effect. */
  overflow-x: clip;
}

/* The page heading: the open project's name. */
.project-head { display: grid; gap: 4px; margin-bottom: 18px; }
.project-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.project-head p { margin: 0; color: var(--muted); font-size: 15px; }
/* The list of projects moved to the sidebar, so the page is one column. */
.studio-shell--sidebar .studio-grid { grid-template-columns: minmax(0, 1fr); }

.studio-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
  height: 100dvh;
  padding: 22px 12px 14px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f1e7da;
  font-family: "Jost", var(--sans);
  font-size: 15px;
  line-height: 1.4;
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
/* The open menu panel takes focus (js/studio-sidebar.js): no outline on it. */
.studio-sidebar[tabindex="-1"]:focus { outline: none; }
.sidebar-brand img { flex: 0 0 auto; width: 28px; height: 34px; object-fit: contain; }
/* Wordmark: same as the login page — MOUMEANTS in capitals, STUDIO spread
   underneath across most of its width. */
.sidebar-brand strong {
  display: block;
  font-family: "Cormorant Garamond", var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sidebar-brand > span { display: inline-grid; }
.sidebar-brand small {
  display: flex;
  justify-content: space-between;
  width: 88%;
  justify-self: center;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
}
.sidebar-brand small span { letter-spacing: 0; }

.sidebar-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(42, 31, 22, .28);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.sidebar-new:hover { border-color: var(--ink); }
.sidebar-new--quiet { margin-top: -12px; border-color: transparent; background: transparent; }
.sidebar-new--quiet:hover { border-color: var(--line); }
/* Home has its own big New event / New gallery buttons. */
.is-home .studio-sidebar .sidebar-new { display: none; }

.sidebar-nav { display: grid; gap: 1px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
}
.sidebar-link:hover { background: rgba(42, 31, 22, .07); }
.sidebar-projects .sidebar-link--events { margin-bottom: 4px; }
/* Events sits right under Galleries like the other menu links (the sidebar
   puts 20px between its parts; pull this part up to the menu's 1px). */
.studio-sidebar .sidebar-projects--linked { margin-top: -19px; }
.studio-sidebar .sidebar-link--events[aria-current="page"] { background: rgba(42, 31, 22, .07); font-weight: 500; }
.studio-sidebar { overflow-x: hidden; }
.sidebar-link svg { flex: 0 0 auto; }
.sidebar-link span { flex: 1 1 auto; min-width: 0; }
/* How many projects are waiting for review (filled in by review-notice.js). */
.sidebar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.sidebar-label {
  margin: 0;
  padding: 0 10px 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* A calendar icon before "Events", drawn in the label's own color, so the
   Events heading matches the icons on Home, Collections and Galleries.
   Done in CSS so the sidebar HTML in each page does not change. */
.sidebar-projects .sidebar-label { display: flex; align-items: center; gap: 10px; }
.sidebar-projects .sidebar-label::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2'/%3E%3Cpath d='M3 8.5h14M7 2.5v3.5M13 2.5v3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2'/%3E%3Cpath d='M3 8.5h14M7 2.5v3.5M13 2.5v3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* The project list: two groups that open and close, "Active" and "Sent". */
.studio-sidebar .project-list { gap: 2px; }
/* Nov 16: each row says if it is an invitation event or a gallery-only event. */
.studio-sidebar .project-list .project-name-row,
body.studio-glass .studio-sidebar :is(.project-link, .project-list-item > button) > .project-name-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.studio-sidebar .project-list .event-kind-tag { flex: 0 0 auto; margin-left: auto; width: 68px; padding: 1px 0; overflow: visible; box-sizing: border-box; border: 1px solid var(--g-line, rgba(42, 31, 22, .18)); border-radius: 4px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.5; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.project-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.project-group summary::-webkit-details-marker { display: none; }
.project-group summary::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin: 0 4px 2px 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s var(--ease);
}
.project-group[open] > summary::before { transform: rotate(45deg); }
.project-group summary:hover { background: rgba(42, 31, 22, .07); }
.studio-sidebar .project-group summary span { flex: 1 1 auto; font-weight: 500; }
.project-group summary b { color: var(--muted); font-size: 13px; font-weight: 400; }

.studio-sidebar .project-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
  margin-left: 12px;
  border-radius: 8px;
}
.studio-sidebar .project-list-item:hover { background: rgba(42, 31, 22, .06); }
.studio-sidebar .project-list-item[data-active="true"] { background: rgba(42, 31, 22, .11); }
.studio-sidebar .project-list button {
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
}
.studio-sidebar .project-list span { font-weight: 400; }
.studio-sidebar .project-list-item[data-active="true"] span { font-weight: 500; }
/* The Collection and Edition line is shown on the page itself, not here. */
.studio-sidebar .project-list small { display: none; }
.studio-sidebar .project-list em {
  display: flex;
  grid-column: 1;
  grid-row: auto;
  align-items: center;
  align-self: start;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.studio-sidebar .project-list em::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3978a;
}
.studio-sidebar .project-list em[data-tone="urgent"]::before { background: var(--accent); }
/* Waiting for the client: nothing to do now, so a hollow grey dot (same as Studio Home). */
.studio-sidebar .project-list em[data-tone="waiting"]::before { background: transparent; border: 1.5px solid #8b8078; box-sizing: border-box; }
.studio-sidebar .project-list em[data-tone="ready"]::before,
.studio-sidebar .project-list em[data-tone="complete"]::before { background: #3f714f; }
/* The "⋯" beside each project, with its small menu (Open, Delete). */
.studio-sidebar .project-list-item { position: relative; }
.studio-sidebar .project-list-item[data-menu-open] { z-index: 2; background: rgba(42, 31, 22, .06); }
.studio-sidebar .project-more { position: relative; display: flex; align-items: center; padding-right: 2px; }
.studio-sidebar .project-list .project-more__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.studio-sidebar .project-list .project-more__button:hover,
.studio-sidebar .project-list .project-more__button[aria-expanded="true"] { background: rgba(42, 31, 22, .08); color: var(--ink); }
.studio-sidebar .project-list .project-more__button:focus-visible { outline: 2px solid rgba(42, 31, 22, .35); outline-offset: 1px; }
.studio-sidebar .project-more__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(23, 17, 13, .16);
}
.studio-sidebar .project-more__menu[hidden] { display: none; }
.studio-sidebar .project-list .project-more__menu > a,
.studio-sidebar .project-list .project-more__menu > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.studio-sidebar .project-list .project-more__menu > :hover { background: rgba(42, 31, 22, .06); }
.studio-sidebar .project-list .project-more__menu > .is-danger { color: #9b3b2f; }
.studio-sidebar .project-list .project-more__menu > .is-danger:hover { background: rgba(155, 59, 47, .08); }
.studio-sidebar .project-list .project-more__menu > :focus-visible { outline: 2px solid rgba(42, 31, 22, .35); outline-offset: -2px; }
.studio-sidebar .empty-state { padding: 12px; border-radius: 10px; }
.studio-sidebar .empty-state strong { font-size: 22px; }

.sidebar-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sidebar-foot [data-sync-status],
.sidebar-foot [data-sync-move] { margin: 0; padding: 0 10px; font-size: 13px; line-height: 1.45; }

/* The bar above the page. It stays in view while the page scrolls.
   Left: where you are. Middle: the sections of the open project.
   Right: Preview. */
.content-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  min-height: 48px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  background: #fdf8f1;
  font-family: "Jost", var(--sans);
  /* The bar's background reaches across the whole space beside the
     sidebar, so the Preview button does not sit on the edge of it. Its
     contents still line up with the page under it (1120px, centred). */
  max-width: none;
  margin-inline: calc(-1 * var(--content-gutter));
  padding-inline: calc(var(--content-gutter) + max(0px, (100% - 1120px) / 2));
}
.content-crumb {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.content-crumb i { font-style: normal; opacity: .7; }
.content-crumb strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-tabs { display: flex; flex: 0 0 auto; gap: 26px; align-self: stretch; margin-bottom: -1px; }
.content-tabs button,
.content-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
}
.content-tabs button:hover,
.content-tabs a:hover { color: var(--ink); }
.content-tabs [aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 500; }
.content-tabs a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.content-bar__side { display: flex; flex: 1 1 0; justify-content: flex-end; min-width: 0; }
.content-bar__preview {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(42, 31, 22, .22);
  border-radius: 10px;
  font-size: 14px;
}
.content-bar__preview:hover { border-color: var(--ink); }

/* Which parts of the page each section shows (js/workspace-tabs.js sets
   data-active-tab). Nothing is moved or removed: the parts that do not
   belong to the open section are only hidden.
   Overview: progress, links and actions. Details: the setup form.
   Photos: the invitation photos. RSVP: the guests' answers. */
.tab-note-photos { display: none; }
.event-gallery { display: none; }
[data-active-tab="gallery"] .event-gallery { display: block; }
[data-sidebar-shell]:not([data-active-tab="details"]) [data-invitation-music] { display: none; }
[data-active-tab="gallery"] .pipeline-panel,
[data-active-tab="gallery"] [data-project-form],
[data-active-tab="gallery"] .status-card { display: none; }
.event-gallery [hidden] { display: none; }
[data-active-tab="overview"] [data-project-form],
[data-active-tab="overview"] [data-invitation-photos],
[data-active-tab="overview"] [data-rsvp-answers],
[data-active-tab="details"] .pipeline-panel,
[data-active-tab="details"] .status-card,
[data-active-tab="photos"] .pipeline-panel,
[data-active-tab="photos"] [data-project-form],
[data-active-tab="photos"] .status-card > :not([data-invitation-photos]):not(.tab-note-photos),
[data-active-tab="rsvp"] .pipeline-panel,
[data-active-tab="rsvp"] [data-project-form],
[data-active-tab="rsvp"] .status-card > :not([data-rsvp-answers]) { display: none; }
[data-active-tab="photos"] [data-invitation-photos][hidden] + .tab-note-photos { display: block; margin: 0; }
/* Say each thing once.
   The project's status shows one time, beside its name. So these are
   hidden: the second status label on the Details form, the status word
   inside the "Next step" box and under each step, the "Project Setup"
   heading (the tab already says Details). The guided Overview shows its
   Preview and Review buttons in their steps. */
.project-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.project-head .status-pill {
  padding: 5px 12px;
  font-family: "Jost", var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.studio-shell--sidebar .studio-grid .panel-heading,
.studio-shell--sidebar .action-alert div > span,
.studio-shell--sidebar .pipeline small,
.studio-shell--sidebar [data-preview-link],
.studio-shell--sidebar [data-review-link] { display: none; }

/* The steps, as one small line above the "Next step" box. */
/* Only on the Overview: written this way so the box stays hidden on
   Details and Photos. */
[data-active-tab="overview"] .pipeline-panel { display: flex; flex-direction: column; }
.studio-shell--sidebar .pipeline {
  display: flex;
  flex-wrap: wrap;
  order: -1;
  gap: 8px 22px;
  margin: 0 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.studio-shell--sidebar .pipeline li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.studio-shell--sidebar .pipeline strong { color: var(--muted); font-family: var(--sans); font-size: 14px; font-weight: 400; }
.studio-shell--sidebar .pipeline li[data-complete="true"] strong { color: var(--ink); }
.studio-shell--sidebar .pipeline li[data-active="true"] strong { color: var(--ink); font-weight: 600; }

/* The "Next step" box: the one thing to do now. */
.studio-shell--sidebar .action-alert {
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 22px;
  border-color: rgba(42, 31, 22, .18);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: none;
}
.studio-shell--sidebar .action-alert div { flex: 1 1 260px; min-width: 0; }
.studio-shell--sidebar .action-alert div::before {
  content: "Next step";
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.studio-shell--sidebar .action-alert strong { font-size: 26px; line-height: 1.15; }
.studio-shell--sidebar .action-alert p { font-size: 15px; }
.studio-shell--sidebar .action-alert a,
.studio-shell--sidebar .action-alert button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
/* The "Next action: …" line said the same thing as the box above, so it
   is hidden. Messages such as "link copied" now show on their own row. */
.studio-shell--sidebar .next-action { display: none; }

/* With the panel's heading hidden, the box under it needs no gap above. */
[data-active-tab="overview"] .status-card,
[data-active-tab="photos"] .status-card,
[data-active-tab="rsvp"] .status-card { margin-top: 0; }

/* Guided Overview and the shared link rows. */
[data-active-tab="overview"] .status-card { gap: 0; padding: 0; border-radius: 0; background: none; }
.event-overview { display: grid; gap: 18px; }
.event-overview .work-row { padding: 12px 0; }
.event-overview .overview-box .work-row { padding-block: 12px; }
.event-overview .work-row:first-child { border-top: 0; }
.event-overview :is([data-preview-link], [data-review-link]) { display: inline-flex; }
.event-overview [data-review-link][aria-disabled="true"] { opacity: .45; pointer-events: none; }
.overview-group h2 {
  margin: 0;
  padding-bottom: 6px;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.overview-step-meta { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.overview-tick { margin-inline-start: 8px; color: var(--ink); font-weight: 700; }
.event-overview .overview-extra { padding-inline-start: 14px; }
.overview-box { padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.overview-box .panel-note:empty, .event-overview [data-submit-review-status]:empty { display: none; }
.event-overview [data-submit-review-status] { grid-column: 1 / -1; }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
/* No line above the first row. (The first of the two Client link rows is
   hidden when the second one is used.) */
.next-action + .work-row,
.next-action + .work-row[hidden] + .work-row { border-top: 0; padding-top: 0; }
.work-row:last-of-type { padding-bottom: 0; }
.work-row__text { display: grid; gap: 2px; min-width: 0; }
.work-row__text strong { font-size: 15px; font-weight: 500; }
.status-card .work-row__text p { max-width: 62ch; font-size: 14px; line-height: 1.5; }
.work-row__text p:empty { display: none; }
.work-row__text .link-copy { justify-self: start; }
.work-row__text .missing {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}
.work-row__text .missing li + li::before { content: "·"; margin-right: 8px; color: var(--muted); }
.work-row__text .missing:empty { display: none; }
.work-row__actions,
.work-row__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.work-row__buttons:empty { display: none; }
.work-row__buttons .work-row__buttons { display: contents; }
/* The area that "More" opens, under the row. */
.work-row__more {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(42, 31, 22, .045);
}
.work-row__more .link-copy:empty,
.work-row__more p:empty { display: none; }
.status-card .work-row__more p { font-size: 14px; line-height: 1.5; }

/* Quiet buttons on a row, so the "Next step" button stays the loudest. */
.work-row .button,
.work-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(42, 31, 22, .22);
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  width: auto;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.work-row .button::before,
.work-row button::before { display: none; }
.work-row .button:hover,
.work-row button:hover { border-color: var(--ink); background: none; box-shadow: none; transform: none; }
/* The one button that moves the row forward (Create, Switch on, Yes):
   a darker outline, not a filled button. */
.work-row button.primary { border-color: var(--ink); font-weight: 500; }
.work-row button.primary:hover { background: rgba(42, 31, 22, .06); }
/* "Mark as sent": the one step photographers forget, so it is filled. */
.work-row button.filled { border-color: var(--ink); background: var(--ink); color: var(--cream); font-weight: 500; }
.work-row button.filled:hover { border-color: var(--ink); background: #3a2c22; color: var(--cream); }
.work-row button.filled:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.work-row .row-more { display: inline-flex; align-items: center; gap: 8px; }
.work-row .row-more::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s var(--ease);
}
.work-row .row-more[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
/* While "Make a new link" waits for a yes, the Guest link row shows only
   the question and its two buttons. When the account cannot be reached,
   it shows only that message. */
.work-row[data-asking="true"] [data-row-own],
.work-row[data-asking="true"] .work-row__more,
.work-row[data-failed="true"] [data-studio-release-note] { display: none; }
.panel[data-empty="true"] .work-row { opacity: .45; pointer-events: none; }

/* The small photos on the Invitation photos row. */
.work-row__text--photos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.row-thumbs { display: flex; flex-wrap: wrap; gap: 4px; }
.row-thumbs:empty { display: none; }
.row-thumbs img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; background: rgba(23, 17, 13, .06); }
.row-thumbs img[data-shape="hero"] { width: 58px; }
.row-thumbs img[data-shape="tall"] { width: 28px; }
/* The line under the gallery photos on the Photos section (saved, left
   out, removed, or all places used). */
.status-card .photo-feedback { margin: 10px 0 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.row-thumbs__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(42, 31, 22, .08);
  color: var(--muted);
  font-size: 13px;
}

.sidebar-open-button,
.sidebar-scrim { display: none; }

/* Computers: the sidebar button beside the logo hides the sidebar so the page
   gets the full width; the same icon at the top left brings it back
   (Oct 25, Jay). Phones use the menu button + drawer instead. */
.sidebar-toggle { display: none; }
@media (min-width: 901px) {
  .sidebar-brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-width: 0; }
  .sidebar-brand-row .sidebar-brand { min-width: 0; }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
  }
  .sidebar-toggle:hover { background: rgba(42, 31, 22, .06); color: var(--ink); }
  .sidebar-toggle--show { display: none; margin-left: -8px; }
  .studio-shell--sidebar.sidebar-collapsed .sidebar-toggle--show { display: inline-flex; }
  .studio-shell--sidebar.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
  .studio-shell--sidebar.sidebar-collapsed .studio-sidebar { visibility: hidden; overflow: hidden; width: 0; padding: 0; border: 0; }
  .studio-shell--sidebar.sidebar-collapsed .studio-content > * { max-width: 1440px; }
  .studio-shell--sidebar.sidebar-collapsed .content-bar { max-width: none; padding-inline: calc(var(--content-gutter) + max(0px, (100% - 1440px) / 2)); }
}

/* Phones and narrow windows: the sidebar slides in over the page. */
@media (max-width: 900px) {
  .studio-shell--sidebar { display: block; }
  .studio-content { --content-gutter: 12px; padding: 8px var(--content-gutter) 96px; }
  .studio-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(310px, 84vw);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .22s var(--ease), visibility 0s .22s;
  }
  .sidebar-is-open .studio-sidebar {
    transform: none;
    visibility: visible;
    transition: transform .22s var(--ease), visibility 0s;
  }
  .sidebar-link { min-height: 44px; }
  .project-group summary { min-height: 44px; }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    border: 0;
    background: rgba(23, 17, 13, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease);
  }
  .sidebar-is-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  /* Menu open: the page behind does not scroll (js/studio-sidebar.js).
     A swipe inside a long menu scrolls the menu only, never the page. */
  html.studio-menu-open,
  html.studio-menu-open body { overflow: hidden; }
  .studio-sidebar { overscroll-behavior: contain; }
  .sidebar-scrim { touch-action: none; }
  /* Phone: the sections go on their own row under the project's name. */
  .content-tabs { flex: 1 0 100%; order: 3; gap: 22px; overflow-x: auto; }
  .content-tabs button,
  .content-tabs a { min-height: 44px; }
  /* Phone: a row's buttons go under its text. */
  .work-row { grid-template-columns: minmax(0, 1fr); }
  .work-row .button,
  .work-row button { min-height: 44px; }
  .sidebar-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-sidebar,
  .sidebar-is-open .studio-sidebar,
  .sidebar-scrim,
  .project-group summary::before,
  .work-row .button,
  .work-row button,
  .work-row .row-more::after { transition: none; }
}

/* A project in the sidebar on pages other than the Workspace: a link that
   opens it on the Workspace (js/sidebar-projects.js). */
.studio-sidebar .project-list .project-link {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
}

/* The Review page: the status box and the client's details side by side
   on a wide screen, one under the other on a narrower one. */
.review-page .studio-grid { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
@media (max-width: 1180px) {
  .review-page .studio-grid { grid-template-columns: minmax(0, 1fr); }
}
/* The "waiting for your review" bar is not shown on the Review page itself:
   the count beside Home in the sidebar still says how many are waiting. */
.review-page .review-notice { display: none; }

/* Inside the Review page: quieter labels, lighter boxes, and quiet
   buttons, like the rows on the Workspace. Only Approve stays dark. */
.review-page .panel h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 32px); font-weight: 500; }
.review-page .eyebrow,
.review-page dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}
.review-page dd { margin-top: 2px; color: var(--ink); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.review-page dl { gap: 14px; }
.review-page .status-card { gap: 8px; padding: 16px; border-radius: 14px; }
.review-page .status-card p { font-size: 14px; line-height: 1.55; }
.review-page .status-card .missing:empty { display: none; }
.review-page .release-card .link-copy:empty { display: none; }
/* The client's details: as many columns as fit, so one on a phone. */
.review-page .review-sections { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.review-page .review-sections section { padding: 18px; border-radius: 14px; }
.review-page .review-sections dl,
.review-page .review-sections section { display: grid; gap: 12px; align-content: start; }
.review-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Photos as small pictures; each opens whole when pressed. */
.review-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.review-photos a { display: block; border-radius: 6px; overflow: hidden; }
.review-photos img { display: block; width: 64px; height: 64px; object-fit: cover; background: rgba(23, 17, 13, .06); }
.review-page .review-actions,
.review-page .release-actions { gap: 8px; margin-top: 4px; }
.review-page .review-actions .button,
.review-page .review-actions button,
.review-page .release-actions .button,
.review-page .release-actions button {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(42, 31, 22, .22);
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.review-page .review-actions .button::before,
.review-page .review-actions button::before,
.review-page .release-actions .button::before,
.review-page .release-actions button::before { display: none; }
.review-page .review-actions .button:hover,
.review-page .review-actions button:hover,
.review-page .release-actions .button:hover,
.review-page .release-actions button:hover { border-color: var(--ink); background: none; box-shadow: none; transform: none; }
.review-page .review-actions [data-approve] { border-color: var(--ink); background: var(--ink); color: var(--cream); font-weight: 500; }
.review-page .review-actions [data-approve]:hover { background: #2c2119; }
@media (max-width: 900px) {
  .review-page .review-actions .button,
  .review-page .review-actions button,
  .review-page .release-actions .button,
  .review-page .release-actions button { min-height: 44px; }
}

/* RSVP section: the guests' answers (js/rsvp-answers.js). One box only:
   the inner box the Photos section has is left out here. */
[data-active-tab="rsvp"] .status-card { padding: 0; border: 0; background: none; box-shadow: none; }
.rsvp-answers { display: grid; gap: 18px; }
.rsvp-answers__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.rsvp-answers__head .eyebrow { margin: 0 0 4px; }
.rsvp-answers__head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 400; }
.rsvp-answers__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-answers .panel-note { margin: 0; }
.rsvp-answers button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(42, 31, 22, .22);
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.rsvp-answers button::before { display: none; }
.rsvp-answers button:hover:not(:disabled) { border-color: var(--ink); }
.rsvp-answers button:disabled { opacity: .5; cursor: default; }
.rsvp-answers button.is-danger { border-color: #9b3b2f; color: #9b3b2f; }
/* When the answers are deleted (js/rsvp-answers.js). Quiet until it needs
   doing: a missing event date, or the last 7 days before the delete day. */
.rsvp-keep { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rsvp-keep.is-no-date,
.rsvp-keep.is-soon {
  padding: 12px 14px;
  border: 1px solid rgba(159, 92, 53, .3);
  border-radius: 12px;
  background: rgba(159, 92, 53, .07);
  color: var(--ink);
}
.rsvp-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rsvp-totals div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rsvp-totals dt { color: var(--muted); font-family: "Jost", var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rsvp-totals dd { margin: 2px 0 0; font-family: "Jost", var(--sans); font-size: 26px; font-weight: 400; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.rsvp-list { display: grid; margin: 0; padding: 0; list-style: none; }
.rsvp-row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.rsvp-row__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rsvp-row__main strong { font-size: 16px; font-weight: 500; }
.rsvp-badge { font-size: 13px; }
.rsvp-badge.is-coming { color: #3f6b4a; }
.rsvp-badge.is-not { color: var(--muted); }
.rsvp-twin { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7a3f1f; border: 1px solid rgba(122,63,31,.35); border-radius: 999px; padding: 2px 9px; }
.rsvp-row p { margin: 0; font-size: 14px; line-height: 1.5; }
.rsvp-row__details { color: var(--muted); }
.rsvp-row__note { font-style: italic; }
.rsvp-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.rsvp-row__actions span { font-size: 14px; }
@media (min-width: 901px) {
  .rsvp-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
  .rsvp-row > :not(.rsvp-row__actions) { grid-column: 1; }
  .rsvp-row__actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-content: flex-end; max-width: 320px; margin-top: 0; }
}

/* The RSVP answers link password shows once, right after it is made. */
.host-link-row .work-row__text p { margin: 0; }
.host-link-password {
  display: inline-grid;
  justify-self: start;
  gap: 2px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px dashed rgba(159, 92, 53, .5);
  border-radius: 12px;
  background: rgba(159, 92, 53, .06);
}
.host-link-password span { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.host-link-password strong { font-family: "Jost", var(--sans); font-size: 22px; font-weight: 500; letter-spacing: .1em; user-select: all; }

/* Keep the shared sidebar sticky without changing these pages' content fonts. */
.studio-home-page,
.collections-page { overflow-x: clip; }
/* Same quiet highlight as the Galleries page (css/gallery-list.css). */
.studio-home-page .sidebar-link[aria-current="page"],
.collections-page .sidebar-link[aria-current="page"] {
  background: rgba(42, 31, 22, .07);
  font-weight: 500;
}
/* The big card titles were sized by the whole screen width; with the
   sidebar taking part of it, "Workspace" no longer fit its card. Size them
   by the width of the row of cards instead (the same size on all three),
   when the sidebar is showing. */
@media (min-width: 901px) {
  .studio-home-page .product-shelf { container-type: inline-size; }
  .studio-home-page .product-card strong { font-size: clamp(30px, 4.6cqi, 72px); }
}
/* Keep Home's two-column content and its headings; the Workspace hides these. */
.studio-home-page .studio-grid--home {
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
}
.studio-home-page .studio-grid .panel-heading { display: flex; }
@media (max-width: 820px) {
  .studio-home-page .studio-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .studio-home-page .studio-grid--home { grid-template-columns: minmax(0, 1fr); }
}
/* Collections beside the sidebar: the cards' space is the content column,
   not the whole screen, so fit as many cards as the column allows and size
   their names to the card, not to the screen width. */
.collections-page .collection-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.collections-page .edition-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.collections-page .collection-choice strong { font-size: 24px; }
.collections-page .edition-choice strong { font-size: 22px; }

/* "Show all 12" under the first 8 active events. */
.studio-sidebar .project-group__more { min-height: 44px; margin: 2px 0 4px 10px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.studio-sidebar .project-group__more:hover { text-decoration: underline; }
.studio-sidebar .project-group__more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Round account button at the right of the top bar (js/studio-sidebar.js). */
.account-chip { order: 99; flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 6px 4px; color: #2a211b; text-decoration: none; position: relative; white-space: nowrap; }
.account-chip::after { content: ""; position: absolute; inset: -4px; } /* 44px tap area around the letter */
.account-chip__avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2a211b; color: #fbf6ef; font-family: var(--serif); font-size: 15px; line-height: 1; }
.account-chip__pro { border: 1px solid #aa9b8d; border-radius: 4px; padding: 3px 4px; color: #61574f; font-family: "Jost", var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .15em; line-height: 1; }
.account-chip:hover .account-chip__avatar { background: #17110d; }
.account-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.account-chip[aria-current="page"] .account-chip__avatar { box-shadow: 0 0 0 2px #fdf8f1, 0 0 0 3.5px #2a211b; }
/* Phone: the tabs move to their own row (order 3), so the account button stays on the top row. */
@media (max-width: 900px) { .account-chip { order: 2; } }

/* Nov 13 (Jay): the client's "Request changes" note on the Story form link
   row, as a bronze box so it is hard to miss. Brand bronze, no red/green. */
.change-request {
  display: grid; gap: 6px; margin-top: 8px; padding: 14px 16px;
  border: 1px solid rgba(159, 92, 53, .28); border-radius: 8px;
  background: rgba(158, 119, 84, .10);
}
.change-request__label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.change-request__label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
}
.change-request__note { color: var(--ink, #1c1714); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.change-request__next { color: var(--muted); font-size: 13px; line-height: 1.5; }
