/* Inter 4.1, SIL Open Font License — see public/fonts/Inter-LICENSE.txt. */
@font-face {
  font-family: "GRID Heading Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  scrollbar-gutter: stable;
  --heading-font: "GRID Heading Inter", "Segoe UI", Arial, sans-serif;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  font-synthesis: none;
  --rail: 64px;
  --panel: 400px;
  --panel-compact: 68px;
  /* GRID uses the original OnlyFrames forest/leaf/cream/sage palette. */
  --forest: #19341a;
  --leaf: #78a22f;
  --cream: #f8f7f1;
  --sage: #dbe6d7;
  --production-side: var(--cream);
  --warm-gray: #eae9e3;
  --project-surface: var(--warm-gray);
  --surface: #ffffff;
  --text: #282828;
  --promo: #d66239;
  --attention: #ab252b;
  --collection-accent: #ee3632;
  /* GRID functional neutrals derived from the source palette. */
  --line: rgb(40 40 40 / 14%);
  --muted: #646464;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace {
  display: grid;
  grid-template-columns: var(--rail) var(--panel) minmax(0, 1fr);
  min-height: 100dvh;
  transition: grid-template-columns 0.22s ease;
}
.workspace.panel-hidden {
  grid-template-columns: var(--rail) var(--panel-compact) minmax(0, 1fr);
}
.rail {
  padding-top: 15.5px;
  height: 100dvh;
  position: sticky;
  top: 0;
  background: var(--forest);
  color: var(--sage);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.rail-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sage);
  text-decoration: none;
}
.rail-button:hover,
.rail-button.active {
  background: rgb(219 230 215 / 12%);
  color: var(--cream);
}
.rail-button.active::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 3px;
  height: 24px;
  background: var(--sage);
}
.rail-button:focus-visible {
  outline-color: var(--sage);
}
.account-link {
  margin-top: 8px;
  margin-bottom: 20px;
}
.audit-link {
  margin-top: auto;
}
.audit-title {
  color: var(--forest);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.audit-open #projects-panel {
  background: var(--cream);
}
.audit-open #projects-panel > :not(.panel-header):not(.audit-section-list),
.audit-open #project-search-toggle {
  display: none !important;
}
.audit-open .panel-header {
  height: 72px;
  padding-bottom: 0;
}
.audit-section-list {
  padding: 0 12px;
  overflow-y: auto;
}
.audit-section-link {
  position: relative;
  display: block;
  height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 15%, var(--project-surface));
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.audit-section-link::before,
.audit-section-link::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 2px;
  background: var(--forest);
}
.audit-section-link::before {
  left: -1px;
}
.audit-section-link::after {
  right: -1px;
}
.audit-section-link:hover {
  border-color: var(--leaf);
}
.panel-hidden .audit-title {
  display: none;
}
.panel-hidden .audit-section-list {
  padding-inline: 8px;
}
.panel-hidden #projects-close svg {
  transform: rotate(180deg);
}
#audit-page {
  min-height: 100dvh;
  background: var(--surface);
}
.project-panel {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-width: 0;
  overflow: hidden;
  background: var(--cream);
  background-image: linear-gradient(
    to bottom,
    var(--surface) 0,
    var(--surface) var(--side-split, 50%),
    var(--production-side) var(--side-split, 50%),
    var(--production-side) var(--side-work-end, 100%),
    var(--cream) var(--side-work-end, 100%),
    var(--cream) 100%
  );
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px 0 24px;
  height: 72px;
  flex-shrink: 0;
}
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.panel-hidden .panel-header-actions {
  gap: 0;
}
.panel-hidden .panel-header-actions .icon-button {
  width: 28px;
}
.project-search {
  position: relative;
  flex: 0 0 auto;
  margin: 18px 0 14px;
  z-index: 5;
}
.project-search-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--cream);
}
#project-search-input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font:
    12px "Segoe UI",
    sans-serif;
  outline-offset: -2px;
}
#project-search-input::-webkit-search-cancel-button {
  display: none;
}
#project-search-clear {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.project-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 8px 24px rgb(25 52 26 / 15%);
}
.project-search-results button {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  text-align: left;
  background: transparent;
  color: var(--forest);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-search-results button:hover,
.project-search-results button:focus-visible {
  background: var(--sage);
}
.project-search-results p {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
}
#project-search-toggle[aria-pressed="true"] {
  background: var(--cream);
}
.party-divider {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 20px;
  color: var(--forest);
  overflow: hidden;
}
.party-divider svg {
  width: 16px;
  height: 16px;
}
.party-name {
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 14px;
  white-space: nowrap;
}
.party-split-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 5px;
}
.party-split-line::before,
.party-split-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(25 52 26 / 30%);
}
.party-split-line span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}
.panel-hidden #party-divider .party-name {
  visibility: hidden;
}
.wordmark {
  color: var(--forest);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.wordmark-dot {
  color: var(--leaf);
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--forest);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--sage);
  color: var(--text);
}
.project-list {
  overflow-anchor: none;
  padding: 0 12px;
  margin-top: -12.5px;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.project-row {
  position: relative;
  height: 67px;
}
.project-item {
  --project-item-base: var(--project-surface);
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  height: 52px;
  touch-action: none;
  user-select: none;
  text-align: left;
  background-color: var(--project-item-base);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 8px 8px 12px;
  margin-bottom: 15px;
  color: var(--forest);
}
.project-item:hover {
  background-color: var(--project-item-base);
}
.project-item[aria-current="page"] {
  background-color: color-mix(
    in srgb,
    var(--text) 15%,
    var(--project-item-base)
  );
}
.project-row:hover .project-item {
  border-color: var(--leaf);
}
.project-item[aria-current="page"] .project-name {
  font-weight: 700;
}
.project-group[data-group="progress"] .project-item {
  --project-item-base: var(--cream);
}
.project-row[data-inactive="true"] .project-item {
  color: rgb(25 52 26 / 50%);
  --project-item-base: transparent;
}
.project-row[data-inactive="true"] .project-edit {
  color: var(--warm-gray);
}
.project-edit {
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 35px;
  border-radius: 0 6px 0 0;
  color: var(--muted);
}
.project-edit svg {
  width: 16px;
  height: 16px;
}
.panel-hidden .project-edit {
  right: 0;
  top: 34px;
  width: 20px;
  height: 20px;
  background: var(--cream);
  opacity: 0;
}
.panel-hidden .project-edit svg {
  width: 12px;
  height: 12px;
}
.panel-hidden .project-row:hover .project-edit,
.panel-hidden .project-row:focus-within .project-edit {
  opacity: 1;
}
.project-item::before,
.project-item::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
}
.project-item::before {
  left: -1px;
}
.project-item::after {
  right: -1px;
}
.project-row:hover .project-item:not([aria-current="page"])::before,
.project-row:hover .project-item:not([aria-current="page"])::after {
  background: var(--leaf);
}
.project-item[aria-current="page"]::before,
.project-item[aria-current="page"]::after {
  background: var(--forest);
}
.panel-hidden .wordmark,
.panel-hidden .project-meta {
  display: none;
}
.panel-hidden .panel-header {
  width: var(--panel-compact);
  padding-inline: 0;
  justify-content: center;
}
.panel-hidden #projects-close svg {
  transform: rotate(180deg);
}
.panel-hidden .project-list {
  width: var(--panel-compact);
  padding: 0 8px;
}
.panel-hidden .project-item {
  justify-content: center;
  padding: 3px 5px;
}
.panel-hidden .project-name {
  font-size: 9px;
  text-align: center;
  padding-right: 0;
}
.project-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-width: 0;
}
.project-name {
  display: block;
  padding-right: 30px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-meta {
  position: absolute;
  top: 35px;
  left: 12px;
  right: 8px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 14px;
  font-size: 8px;
  line-height: 14px;
  letter-spacing: 0.35px;
  white-space: nowrap;
}
.project-manager,
.project-status-text {
  pointer-events: auto;
  border: 1px solid var(--line);
  height: 14px;
  font: inherit;
  line-height: 12px;
  letter-spacing: inherit;
  color: var(--forest);
  padding: 0 6px;
  border-radius: 5px;
}
.project-manager:hover {
  outline: 1px solid var(--leaf);
  outline-offset: 1px;
}
.project-row[data-inactive="true"] .project-meta button {
  color: color-mix(in srgb, var(--forest) 50%, white);
}
.metadata-menu button[aria-checked="true"] {
  background: var(--sage);
}
.metadata-menu button[aria-checked="true"]::after {
  content: "✓";
  margin-left: auto;
}
.project-manager {
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-status-text {
  border: 0;
  line-height: 14px;
  padding-inline: 7px;
  background: var(--cream);
  flex-shrink: 0;
}
.project-status-text[data-status="review"] {
  color: var(--promo);
}
.project-status-text[data-status="delivered"],
.project-status-text[data-status="completed"] {
  color: var(--leaf);
}
.project-status-text[data-status="hold"],
.project-row[data-inactive="true"] .project-status-text[data-status="hold"] {
  color: var(--sage);
}
.project-row[data-inactive="true"] .project-meta button {
  color: var(--sage);
  border-color: var(--sage);
  background: var(--cream);
}
.managers-hidden .project-manager {
  display: none;
}
.sidebar-preferences {
  flex-shrink: 0;
  padding: 14px 12px 12px;
  border-top: 1px solid var(--line);
}
.sidebar-preferences-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.show-managers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.show-managers input {
  margin: 0;
  accent-color: var(--forest);
}
.manager-filters {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.manager-filters button {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--forest);
  padding: 7px 3px;
  font-size: 9px;
}
.manager-filters button[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--leaf);
  font-weight: 700;
}
.reset-manager-filters {
  display: block;
  margin: 0 0 0 auto;
  padding: 2px 4px;
  font-size: 9px;
  letter-spacing: 0.5px;
  background: none;
  border: 0;
  color: var(--muted);
}
.panel-hidden .sidebar-preferences {
  display: none;
}
.metadata-menu [role="menuitemcheckbox"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  flex-shrink: 0;
}
.metadata-menu [role="menuitemcheckbox"][aria-checked="true"]::before {
  content: "✓";
  text-align: center;
  line-height: 14px;
  border-color: var(--forest);
}
.metadata-menu [role="menuitemcheckbox"][aria-checked="true"]::after {
  content: none;
}
.metadata-menu [aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.project-group {
  position: relative;
  padding-bottom: 16px;
  flex: 0 0 auto;
}
.project-group:not(:last-child):has(.project-row:not([hidden])) {
  padding-bottom: 57px;
}
#project-list .project-group[data-group="urgent"] {
  padding-bottom: 0;
}
.project-group[data-group="feedback"]::before {
  bottom: 0;
}
.project-group:last-child {
  flex: 1 0 auto;
  padding-bottom: 0;
}
.project-group::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: -12px;
  left: 0;
  right: 0;
  pointer-events: none;
}
.project-group:last-child::before {
  bottom: 0;
}
.project-group > * {
  position: relative;
}
.project-group.drag-over::before {
  background: rgb(219 230 215 / 35%);
  box-shadow: inset 0 0 0 1px var(--sage);
}
.project-group[data-group="progress"].drag-over::before,
.project-group[data-group="feedback"].drag-over::before {
  left: -12px;
  right: -12px;
  z-index: 3;
  background: rgb(25 52 26 / 18%);
  box-shadow: inset 0 0 0 1px rgb(25 52 26 / 30%);
}
.project-group[data-group="progress"].drag-over::before {
  top: var(--progress-drop-top, 12px);
}
.project-group[data-group="feedback"].drag-over::before {
  bottom: var(--feedback-drop-bottom, 0px);
}
.group-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  margin: 0 0 8px;
  font-size: 9px;
  line-height: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--leaf);
  white-space: nowrap;
}
.group-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--sage);
}
.group-divider > span,
.image-section-toggle > span,
.party-name {
  padding: 0 6px;
  line-height: 14px;
  background: var(--cream);
  border: 0;
  border-radius: 5px;
}
.group-projects {
  min-height: 57px;
}
.panel-hidden #projects-panel .group-divider span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.project-group.drag-over .group-divider {
  color: var(--forest);
}
.project-item.dragging {
  opacity: 0.4;
}
.project-drag-ghost {
  position: fixed;
  z-index: 20;
  max-width: 300px;
  padding: 12px 16px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 6px 20px rgb(25 52 26 / 20%);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.project-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 236px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--forest);
  box-shadow: 0 10px 36px rgb(25 52 26 / 16%);
}
.project-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  text-align: left;
  background: transparent;
  color: inherit;
  font-size: 13px;
}
.project-menu button:hover,
.project-menu button:focus-visible {
  background: var(--cream);
  outline-offset: -2px;
}
.project-menu button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.menu-divider {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}
.menu-checkbox {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.menu-checkbox svg {
  visibility: hidden;
  width: 14px;
  height: 14px;
}
[aria-checked="true"] .menu-checkbox {
  background: var(--leaf);
  border-color: var(--leaf);
}
[aria-checked="true"] .menu-checkbox svg {
  visibility: visible;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(400px, calc(100vw - 48px));
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--cream);
  font-size: 13px;
  pointer-events: none;
}
.toast.project-copy-toast {
  left: var(--copy-toast-left);
  top: var(--copy-toast-top);
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 5px;
  white-space: nowrap;
}
.transfer-dialog {
  width: min(480px, calc(100vw - 32px));
  height: auto;
}
.transfer-dialog h2 {
  font-size: 16px;
  font-weight: 550;
  margin: 0;
}
.transfer-body {
  padding: 24px;
}
#transfer-project {
  margin: 0 0 16px;
  color: var(--forest);
  font-size: 14px;
  overflow-wrap: anywhere;
}
#transfer-message {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.transfer-send {
  padding: 10px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: white;
}
main {
  grid-column: 3;
  min-width: 0;
}
main:focus {
  outline: none;
}
.gallery-header {
  position: sticky;
  top: var(--toolbar-sticky-top, -14px);
  z-index: 2;
  isolation: isolate;
  min-height: 72px;
  padding: 14px 32px;
  border-bottom: 1px solid transparent;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  pointer-events: none;
}
.gallery-header > * {
  pointer-events: auto;
}
.gallery-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--toolbar-controls-bottom, calc(100% - 15px));
  z-index: -1;
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.feedback-toggle,
.view-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-right: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feedback-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 9px;
  line-height: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.feedback-toggle button[aria-pressed="true"] {
  background: var(--project-surface);
  color: var(--forest);
}
.preview-control {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#preview-size {
  width: clamp(100px, 18vw, 220px);
  margin: 0;
  accent-color: var(--forest);
  cursor: pointer;
}
#preview-size-value {
  width: 70px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.workspace.account-open {
  grid-template-columns: var(--rail) 0 minmax(0, 1fr);
}
.account-open .project-panel,
.account-open .scrim {
  display: none !important;
}
.account-page {
  padding: 32px;
}
html:has(> .grid-login) { scrollbar-gutter: auto; }
.grid-login { min-height: 100dvh; display: flex; padding: 20px; background: var(--cream); }
.grid-login > .login-card { margin: auto; }
.login-card { width: min(100%, 380px); padding: 32px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.login-wordmark { display: block; color: var(--forest); font: 700 28px Inter, sans-serif; margin-bottom: 24px; }
.account-section { max-width: 520px; margin-top: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.account-section summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.account-form { display: grid; gap: 12px; max-width: 420px; margin-top: 18px; }
.account-form label { display: grid; gap: 5px; color: var(--forest); font-size: 13px; }
.account-form .remember-browser { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-browser input { margin: 0; accent-color: var(--forest); }
.account-form :is(input, select) { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--text); }
.account-form button { justify-self: start; padding: 9px 16px; color: white; background: var(--forest); border: 0; border-radius: 5px; }
.account-form [role="status"] { margin: 0; font-size: 13px; }
.account-form [role="status"]:empty { display: none; }
.grid-directory { max-width: 960px; margin-top: 32px; color: var(--forest); }
.grid-directory h2 { font-size: 17px; }
.grid-directory h3 { font-size: 14px; }
.directory-scroll { overflow-x: auto; }
.grid-directory table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.grid-directory th, .grid-directory td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.grid-directory th { background: var(--cream); }
.grid-directory :is(td, li, #grid-issued-link) button, .grid-directory td select {
  padding: 6px 9px; border-radius: 4px; border: 1px solid var(--line); background: white; color: var(--forest); margin: 2px;
}
#grid-issued-link { padding: 12px; margin-block: 14px; background: var(--cream); font-size: 13px; }
#grid-issued-link label, #grid-issued-link small { display: block; }
#grid-issued-link input { width: 100%; margin: 6px 0; padding: 6px; }
#grid-invitations ul { list-style: none; padding: 0; font-size: 13px; }
#grid-invitations li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.account-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  margin-top: 28px;
  background: var(--cream);
  max-width: 520px;
}
.account-card svg {
  width: 36px;
  height: 36px;
  color: var(--forest);
}
.account-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 550;
}
.account-card p,
.account-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.account-preferences {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 520px;
  margin: 24px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.account-preferences dt {
  color: var(--muted);
}
.account-preferences dd {
  margin: 0;
  color: var(--forest);
}
.account-note {
  max-width: 440px;
  margin-top: 20px;
}
h1 {
  color: var(--forest);
  margin: 0;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.4px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.gallery-wrap {
  --gallery-gutter: 32px;
  overflow-anchor: none;
  margin-top: -12.5px;
  padding: 0 32px 40px;
  overflow-x: auto;
}
.gallery {
  --gallery-column-gap: 30px;
  --gallery-row-gap: 36px;
  display: flex;
  flex-direction: column;
  min-width: var(--tile-size, 256px);
  gap: 0;
}
.image-group {
  position: relative;
  padding-bottom: 32px;
}
.image-group[data-image-group="ready"]:not(:has(.tile)) {
  padding-bottom: 0;
}
.image-group[data-image-group="ready"] .image-group-items:empty {
  min-height: 50px;
}
.image-group > * {
  position: relative;
}
.image-group .group-divider {
  margin-bottom: 16px;
}
.image-group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--tile-size, 256px));
  gap: var(--gallery-row-gap) var(--gallery-column-gap);
  min-height: 100px;
}
.image-group::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  bottom: -12px;
  pointer-events: none;
}
.image-group:last-child::before {
  bottom: 0;
}
.image-group.drag-over::before {
  background: rgb(219 230 215 / 35%);
  box-shadow: inset 0 0 0 1px var(--sage);
}
.tile-open.dragging {
  opacity: 0.4;
}
.image-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  width: 100%;
  gap: 10px;
}
.image-section-toggle span {
  order: 0;
}
.image-section-toggle::after {
  content: "";
  order: 1;
  flex: 1;
  height: 1px;
  background: var(--sage);
}
.image-section-toggle svg {
  order: 2;
  flex-shrink: 0;
}
.image-group:has(.image-section-toggle) .group-divider::after {
  display: none;
}
.image-section-toggle svg {
  width: 12px;
  height: 12px;
}
.image-section-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.project-note-trigger {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--forest);
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
}
.project-notes {
  padding: 12px 32px 24px;
}
.project-notes:not([hidden]) + .gallery-wrap {
  margin-top: 0;
}
.project-note-list {
  display: grid;
  gap: 14px;
}
/* Outrank the card's later relative positioning: the flight must stay on screen. */
.project-note-card.project-note-flight {
  position: fixed;
  z-index: 1000;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
  transform-origin: center;
  color: var(--forest);
  box-shadow: 0 8px 24px rgb(25 52 26 / 28%);
  border: 1px solid var(--leaf);
  border-left-width: 3px;
}
.project-note-menu {
  pointer-events: auto;
}
.brief-note-history {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgb(219 230 215 / 30%);
}
.brief-note-history h3 {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--sage);
}
.brief-note-list {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
}
.brief-note-history .project-note-card {
  color: var(--forest);
}
.project-note-card {
  position: relative;
  margin-bottom: 7px;
  border-left: 3px solid var(--leaf);
  background: var(--cream);
  padding: 12px 16px;
}
.project-note-card[data-author="client"] {
  border-left-color: var(--promo);
}
.project-note-footer {
  position: absolute;
  right: 8px;
  bottom: -7px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 14px;
  font-size: 8px;
  color: var(--muted);
}
.project-note-card strong {
  color: var(--forest);
  font-weight: 600;
}
.project-note-footer time,
.project-note-more {
  height: 14px;
  line-height: 14px;
  padding: 0 6px;
  background: var(--cream);
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}
.project-note-more {
  letter-spacing: 1px;
}
.project-note-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.project-note-form {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.note-composer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}
.note-composer-heading select {
  border: 1px solid var(--line);
  background: white;
  color: var(--forest);
  padding: 6px;
}
.project-note-form textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--line);
  padding: 10px;
  font:
    13px/1.5 "Segoe UI",
    sans-serif;
}
.note-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.note-composer-actions button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--forest);
  font-size: 11px;
}
.note-composer-actions button[type="submit"] {
  background: var(--forest);
  color: var(--cream);
}
.note-composer-actions .note-attach {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  color: var(--muted);
}
.note-attach svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; }
.note-image-preview { position: fixed; padding: 0; border: 0; max-width: 94vw; max-height: 90vh; margin: auto; }
.note-image-preview::backdrop { background: rgb(0 0 0 / 60%); }
.note-image-preview img { display: block; max-width: 94vw; max-height: 90vh; object-fit: contain; }
.note-image-preview button { position: absolute; right: 4px; top: 4px; background: var(--cream); color: var(--forest); border: 1px solid var(--line); }
.note-composer-actions [role="alert"] {
  margin-right: auto;
  color: var(--attention);
  font-size: 11px;
}
@media (max-width: 720px) {
  .project-notes {
    padding: 12px 16px 20px;
  }
}
.image-group.is-collapsed {
  padding-bottom: 12px;
}
.tile {
  touch-action: none;
  user-select: none;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--muted);
  border-radius: 0;
  outline: 1px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.18s ease;
}
.tile-open {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  touch-action: none;
}
.gallery .tile-open:focus-visible {
  outline: none;
}
.gallery .tile:has(.tile-open:focus-visible) .tile-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--cream);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  overflow: hidden;
  border-radius: 0;
  transition: outline-color 0.18s ease;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile-image.square-image {
  outline: none;
  background: transparent;
}
.tile:hover {
  outline-color: var(--leaf);
}
.tile-name {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  display: block;
  padding: 0;
  min-width: 0;
  flex: 1;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tile-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 10px 2px 0;
  min-height: 26px;
}
.tile-comment-count {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  white-space: nowrap;
  font-size: 9px;
  line-height: 16px;
  letter-spacing: 0.2px;
}
.tile-stage {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--forest);
  font: inherit;
  font-size: 9px;
  line-height: 16px;
  letter-spacing: 0.2px;
  font-weight: 400;
}
.tile-stage[data-stage="ready"] {
  font-weight: 700;
}
.tile-stage:hover {
  text-decoration: underline;
}
.tile-comment-count strong {
  font-weight: 700;
}
.image-status {
  flex-shrink: 0;
  border: 0;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 8px;
  line-height: 14px;
  letter-spacing: 0.2px;
  background: var(--cream);
  color: var(--forest);
  white-space: nowrap;
}
.image-status[data-status="review"] {
  color: var(--promo);
}
.image-status[data-status="updated"] {
  color: var(--promo);
}
.image-status[data-status="comments"] {
  color: var(--leaf);
}
.image-status[data-status="delivered"],
.image-status[data-status="ready"] {
  color: var(--leaf);
}
.image-status[data-status="delivered"] {
  font-weight: 700;
}
.gallery.large-previews .tile-caption {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.gallery.large-previews .tile-name {
  grid-column: 1;
  grid-row: 1;
}
.gallery.large-previews .image-status {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: stretch;
  min-height: 36px;
  padding-inline: 12px;
  font-size: 10px;
}
.gallery.large-previews .tile-comment-count {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.gallery.rows.large-previews {
  min-width: calc(var(--tile-size) + 360px);
}
button.project-status-text:hover,
button.image-status:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.tile:hover .tile-name {
  color: var(--forest);
}
.gallery.rows {
  min-width: calc(var(--tile-size) + 210px);
}
.gallery.rows .image-group-items {
  grid-template-columns: minmax(0, 1fr);
}
.gallery.rows .tile {
  cursor: pointer;
  display: grid;
  grid-template-columns: var(--tile-size) minmax(180px, 1fr);
  align-items: center;
  gap: 30px;
}
.gallery.rows .tile-name {
  padding: 0;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gallery.rows .tile-caption {
  padding: 0;
  flex-wrap: wrap;
}
.image-error {
  color: var(--attention);
  position: absolute;
  font-size: 12px;
  padding: 12px;
}
.message {
  margin: 0;
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
}
.message[hidden] {
  display: none;
}
.scrim {
  display: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 80px;
  z-index: 10;
  background: var(--surface);
  padding: 12px;
  color: var(--forest);
}
.skip-link:focus {
  top: 12px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(1200px, calc(100vw - 48px));
  max-width: none;
  height: min(900px, calc(100dvh - 48px));
  max-height: none;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop {
  background: rgb(25 52 26 / 70%);
  backdrop-filter: blur(6px);
}
.viewer-top {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 12px 24px;
}
#viewer-title {
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.viewer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.viewer-stage {
  height: calc(100% - 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}
#viewer-image {
  min-width: 0;
  width: calc(100% - 96px);
  height: 100%;
  object-fit: contain;
}
@media (max-width: 1000px) {
  .gallery-header {
    padding-inline: 24px;
  }
  .gallery-wrap {
    --gallery-gutter: 24px;
    padding: 0 24px 32px;
  }
}
@media (max-width: 720px) {
  :root {
    --rail: 48px;
    --panel: 400px;
    --panel-compact: 56px;
  }
  .workspace,
  .workspace.panel-hidden {
    grid-template-columns: var(--rail) var(--panel-compact) minmax(0, 1fr);
  }
  .project-panel {
    position: fixed;
    left: var(--rail);
    width: min(var(--panel), calc(100vw - var(--rail)));
    z-index: 5;
    transition: width 0.22s ease;
    box-shadow: 16px 0 40px rgb(25 52 26 / 8%);
  }
  .panel-hidden .project-panel {
    width: var(--panel-compact);
    box-shadow: none;
  }
  main {
    grid-column: 3;
  }
  .workspace:not(.panel-hidden) .scrim {
    display: block;
    position: fixed;
    inset: 0 0 0 var(--rail);
    background: rgb(25 52 26 / 25%);
    border: 0;
    z-index: 4;
  }
  .gallery-header {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .feedback-toggle {
    width: 100%;
  }
  .feedback-toggle button {
    flex: 1;
    min-width: 0;
    padding-inline: 6px;
    white-space: normal;
  }
  .rail-button.active::before {
    left: -4px;
  }
  #preview-size {
    width: 100px;
  }
  .account-page {
    padding: 24px 16px;
  }
  h1 {
    font-size: 16px;
  }
  .image-count {
    font-size: 10px;
  }
  .gallery-wrap {
    --gallery-gutter: 16px;
    padding: 0 16px 32px;
  }
  .gallery {
    --gallery-row-gap: 30px;
    --gallery-column-gap: 18px;
  }
  dialog {
    width: calc(100vw - 20px);
    height: calc(100dvh - 32px);
  }
  .viewer-stage {
    padding: 8px;
    gap: 2px;
  }
  #viewer-image {
    width: calc(100% - 76px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* GRID reference skin. Keep the original panel, row, field and gallery geometry. */
.wordmark { color: var(--forest); letter-spacing: 1.4px; font-weight: 750; }
.project-item, .project-group[data-group="progress"] .project-item {
  --project-item-base: var(--project-surface);
  border-radius: 12px;
  padding-top: 2px;
  padding-bottom: 20px;
  color: var(--text);
}
.project-item[aria-current="page"] { background: var(--sage); }
.project-item:hover { background: color-mix(in srgb, var(--sage) 60%, var(--project-surface)); }
.project-row:hover .project-item { border-color: transparent; }
.project-item::before, .project-item::after { display: none; }
.project-name { padding-right: 60px; font-weight: 550; line-height: 18px; }
.project-item[aria-current="page"] .project-name { font-weight: 650; }
.project-meta {
  top: 23px;
  right: 42px;
  justify-content: flex-start;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
}
.project-meta .project-manager, .project-meta .project-status-text,
.project-row[data-inactive="true"] .project-meta button {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: inherit;
  line-height: 14px;
}
.project-meta .project-manager {
  text-decoration: underline;
  text-decoration-color: #cbd0ce;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.project-meta button:hover { color: var(--forest); }
.project-meta .project-status-text { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.managers-hidden .project-meta-separator { display: none; }
.project-image-count {
  position: absolute;
  top: 4px;
  right: 38px;
  color: var(--leaf);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: none;
  border: 0;
  padding: 0;
}
.project-edit { height: 24px; color: #7c857f; }
.project-edit:hover { background: transparent; color: var(--forest); }
.project-row[data-inactive="true"] .project-item { --project-item-base: #f5f5f6; color: #727a80; }
.project-row[data-inactive="true"] .project-image-count { color: #718a66; }
.panel-hidden .project-item { padding: 2px 5px 16px; }
.panel-hidden .project-name { font-size: 9px; line-height: 16px; }
.panel-hidden .project-image-count { top: auto; bottom: 1px; right: 0; left: 0; text-align: center; font-size: 10px; line-height: 14px; }
.preview-control { width: calc(clamp(100px, 18vw, 220px) + 84px); gap: 14px; }
@media (min-width: 1160px) {
  .gallery-header { flex-wrap: nowrap; }
  .preview-control { min-width: 120px; }
}
#preview-size { width: auto; flex: 1; min-width: 0; }
#preview-size-value { width: 1px; }
.preview-step {
  display: grid;
  place-items: center;
  padding: 0;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid #c8ccca;
  border-radius: 6px;
  background: linear-gradient(#fff, #f5f6f5);
  color: #566059;
  box-shadow: 0 1px 2px #2828280d;
  font-size: 20px;
  line-height: 1;
}
.preview-step:hover:not(:disabled) { border-color: var(--forest); color: var(--forest); }
/* Same shell, 30px inner height and selected surface as the feedback toggle. */
.view-toggle {
  position: relative;
  width: 82px;
  height: 38px;
  margin-right: 0;
  flex-shrink: 0;
  background: transparent;
}
.view-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 36px;
  height: 30px;
  border-radius: 5px;
  background: var(--project-surface);
  transition: transform .18s ease;
}
.view-toggle[aria-checked="true"]::before { transform: translateX(38px); }
.view-option { position: relative; display: grid; place-items: center; width: 36px; height: 30px; flex-shrink: 0; color: var(--muted); }
.view-toggle[aria-checked="false"] .view-option-grid,
.view-toggle[aria-checked="true"] .view-option-rows { color: var(--forest); }
@media (max-width: 720px) { .preview-control { width: 184px; } }

/* Project title owns the full first line; controls and counts share the second. */
.project-name { padding-right: 0; font-size: 17px; line-height: 20px; }
.project-item { padding-right: 12px; }
.project-edit { top: 32px; right: 4px; width: 26px; height: 18px; border-radius: 4px; }
.project-edit svg { width: 16px; height: 16px; }
.project-meta { top: 34px; right: 164px; }
.project-image-count { top: 33px; right: 36px; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.project-image-count .project-total-count { color: #808080; }
.project-image-count .project-working-count, .project-stat-dot { color: var(--muted); }
.project-image-count .project-feedback-count { color: var(--promo); }
.project-image-count .project-ready-count,
.project-image-count[data-delivered="true"] .project-total-count { color: var(--leaf); }
.panel-hidden .project-name { font-size: 11px; }
.panel-hidden .project-image-count { font-size: 8px; right: 0; }
.image-status[data-status="provided"] { color: var(--muted); }
.image-status[data-status="approved"], .status-choice-menu .image-status[data-status="approved"] { color: var(--leaf); }
.image-group[hidden] { display: none !important; }

/* Project EDIT matches the 10px metadata typography. */
.project-edit { width: 34px; font-size: 10px; font-weight: 400; line-height: 14px; letter-spacing: 0; }
.project-image-count { right: 44px; }
.panel-hidden .project-edit { width: 30px; font-size: 8px; }
#projects-toggle { margin-top: 8px; }
.workspace.dashboard-open, .workspace.dashboard-open.panel-hidden { grid-template-columns: var(--rail) minmax(0, 1fr); }
.dashboard-open main { grid-column: 2; }
.dashboard-page { padding: 32px clamp(20px, 4vw, 64px) 48px; max-width: 1600px; margin: 0 auto; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.dashboard-brand { color: var(--forest); font-weight: 750; letter-spacing: 1.4px; font-size: 13px; margin: 0 0 12px; }
.dashboard-header h1 { color: var(--forest); font-size: 30px; letter-spacing: -.7px; margin: 0; font-weight: 600; }
.dashboard-subtitle { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.dashboard-new { display: inline-flex; align-items: center; gap: 20px; padding: 11px 16px; border-radius: 6px; background: var(--forest); color: var(--cream); text-decoration: none; font-size: 12px; white-space: nowrap; }
.dashboard-new:hover { background: color-mix(in srgb, var(--forest) 85%, var(--leaf)); }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#dashboard-count { color: var(--muted); font-size: 12px; }
#dashboard-search { width: min(360px, 65%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); color: var(--text); font: inherit; font-size: 12px; }
.dashboard-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.dashboard-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.dashboard-table thead { background: var(--cream); }
.dashboard-table thead th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; padding: 15px 18px; white-space: nowrap; }
.dashboard-table tbody th, .dashboard-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.dashboard-table tbody th { width: 40%; min-width: 240px; font-weight: 550; }
.dashboard-table th a { color: var(--forest); text-decoration: none; }
.dashboard-table th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-table tbody tr:hover { background: color-mix(in srgb, var(--sage) 30%, white); }
.dashboard-status { display: inline-block; font-size: 10px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.dashboard-status[data-status="review"], .dashboard-status[data-status="completed"] { color: var(--promo); }
.dashboard-status[data-status="delivered"] { color: var(--leaf); }
.dashboard-status[data-status="provided"], .dashboard-status[data-status="comments"] { color: var(--forest); }
.dashboard-table input[type="date"] { width: 140px; padding: 7px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 12px; background: transparent; color: var(--muted); }
.dashboard-table input[type="date"]:hover, .dashboard-table input[type="date"]:focus { border-color: var(--line); background: var(--surface); }
.dashboard-image-count { font-variant-numeric: tabular-nums; color: var(--forest); }
.dashboard-message { color: var(--muted); font-size: 12px; min-height: 18px; }
@media (max-width: 720px) { .dashboard-page { padding: 24px 16px; } .dashboard-header { gap: 12px; } .dashboard-header h1 { font-size: 24px; } .dashboard-new { gap: 8px; padding: 10px; } .dashboard-table { min-width: 760px; } }

#projects-panel .project-row .project-item { border: 1px solid var(--forest); }
#projects-panel .project-item:not([aria-current="page"]) {
  background: transparent;
  border-color: rgb(25 52 26 / 25%);
  transition: background-color 160ms ease;
}
#projects-panel .project-row:hover .project-item:not([aria-current="page"]),
#projects-panel .project-row:focus-within .project-item:not([aria-current="page"]) {
  background-color: color-mix(in srgb, var(--sage) 50%, transparent);
}
#projects-panel .group-divider, #projects-panel .party-name { color: #808080; }
#projects-panel .group-divider > span, #projects-panel .party-name { background: none; border-radius: 0; padding-inline: 0; }
#projects-panel .group-divider::after { background: currentColor; }
#projects-panel .party-split-line { color: #808080; }
#projects-panel .party-split-line::before,
#projects-panel .party-split-line::after,
#projects-panel .party-split-line span { background: currentColor; }
.sidebar-preferences { background: var(--sage); }
.deadline-button { border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 7px; color: var(--muted); font: inherit; font-size: 12px; white-space: nowrap; }
.deadline-button:hover { background: white; border-color: var(--line); }
.dashboard-table select { border: 1px solid var(--line); border-radius: 5px; padding: 6px; background: var(--cream); color: var(--forest); font: inherit; font-size: 11px; }
.english-calendar { width: 320px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--forest); box-shadow: 0 16px 70px #0003; }
.english-calendar::backdrop { background: #19341a30; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-heading button { width: 32px; height: 32px; border: 1px solid var(--line); background: white; color: var(--forest); border-radius: 5px; font-size: 22px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-weekdays { color: var(--muted); font-size: 11px; text-align: center; margin-bottom: 6px; }
.calendar-days button { height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font-size: 12px; }
.calendar-days button:hover { background: var(--sage); }
.calendar-days button[aria-pressed="true"] { background: var(--forest); color: white; }
.calendar-date-form { margin-top: 16px; font-size: 11px; }
.calendar-date-form > div { display: flex; gap: 8px; margin-top: 6px; }
.calendar-date-form input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 8px; font: inherit; }
.calendar-date-form button, .calendar-footer button { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; background: white; color: var(--forest); font-size: 11px; }
.calendar-footer { display: flex; justify-content: space-between; margin-top: 14px; }
.calendar-error { color: var(--attention); font-size: 11px; }
.calendar-error:empty { display: none; }
.project-posts { padding: 16px 32px 40px; }
.project-posts h1 { margin: 0; color: var(--forest); font-size: 24px; font-weight: 600; }
.posts-subtitle { color: var(--muted); font-size: 12px; margin: 8px 0 24px; }
.project-post-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.thread-card { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; text-decoration: none; color: var(--forest); }
.thread-card:hover { border-color: var(--leaf); box-shadow: 0 6px 22px #19341a0c; }
.thread-card-images { height: 220px; display: flex; gap: 3px; background: var(--cream); }
.thread-card-images img { width: 0; flex: 1; min-width: 0; object-fit: cover; }
.thread-card h2 { font-size: 17px; font-weight: 550; margin: 18px 18px 7px; }
.thread-card p { margin: 0 18px 18px; color: var(--muted); font-size: 12px; }
.thread-breadcrumb { font-size: 13px; container-type: inline-size; }
#thread-back {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 5px clamp(16px, 3vw, 32px);
  color: var(--forest);
  text-decoration: none;
  transition: box-shadow 150ms ease;
}
.post-location { grid-column: 1; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.post-location > span { color: var(--muted); white-space: nowrap; }
#thread-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-return-hint { grid-column: 2; justify-self: center; text-align: center; opacity: 0; }
#thread-back:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--leaf); outline-offset: -2px; }
#thread-back:is(:hover, :focus-visible) .post-return-hint { opacity: 1; }
@container (max-width: 520px) {
  #thread-back { grid-template-columns: minmax(0, 1fr); row-gap: 3px; }
  .post-return-hint { grid-column: 1; }
}
.brief-message-footer a { color: var(--forest); text-underline-offset: 2px; }
.post-overview .preview-control, .post-overview .view-toggle { display: none; }
.video-post { border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.video-post h2 { font-size: 17px; color: var(--forest); margin: 0 0 6px; }
.video-post p { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.video-post video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #e6e6e6; }
.video-post .video-error { color: var(--attention); margin-top: 12px; }
@media(max-width:720px){ .project-posts {padding:16px;} }
.english-calendar { height: auto; max-height: calc(100dvh - 32px); max-width: calc(100vw - 24px); overflow-y: auto; }

:is(h1, h2, h3, h4, h5, h6, [role="heading"], .wordmark, .dashboard-brand,
    .audit-title, .project-name, .brief-source-title, .party-name, #viewer-title,
    #thread-title, #calendar-month, .brief-editor-heading > label),
.dashboard-table th,
.brief-page .project-name-input {
  font-family: var(--heading-font);
}
.new-project-type-field { display: flex; align-items: center; gap: 12px; margin: 14px 0 22px; color: var(--forest); font-size: 12px; }
.new-project-type-field select { padding: 8px 12px; border: 1px solid var(--line); background: white; border-radius: 5px; color: var(--forest); font: inherit; }
.gallery, .gallery.rows, .gallery.rows.large-previews { width: 100%; min-width: 0; gap: 0; }
.gallery .image-group { width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.image-group[data-image-group="approved"], .image-group[data-image-group="delivered"] { background: color-mix(in srgb, var(--sage) 50%, white); }
.gallery .image-group[data-image-group="feedback"] { background: #fff; }
.gallery .image-group:is([data-image-group="working"], [data-image-group="canceled"]) { background: #f1f1ee; }
.gallery .image-group.drag-over { outline: 2px solid var(--leaf); outline-offset: -2px; }
.gallery .image-group::before, .image-group .group-divider::after, .image-section-toggle::after { display: none; }
.image-group .group-divider { height: auto; margin: 0; white-space: normal; color: var(--forest); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.image-group .group-divider span { background: transparent; padding: 0; line-height: 1.35; }
.image-section-toggle { justify-content: space-between; }
.block-description { margin: 6px 0 16px; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.image-group-items { min-height: 0; grid-template-columns: repeat(auto-fill, min(100%, var(--tile-size, 256px))); }
.image-group-items:empty, .image-group.is-collapsed .block-description { margin-bottom: 0; }
.gallery.rows .tile { grid-template-columns: minmax(0, min(var(--tile-size), 48%)) minmax(0, 1fr); }
.thread-card { background: var(--cream); }
.thread-card .block-description { margin: 6px 18px 14px; }
.video-post { background: var(--cream); }
.gallery-wrap { margin-top: 0; }
#new-post-dialog { width: min(430px, 92vw); height: auto; max-height: 88dvh; padding: 22px; overflow-y: auto; }
#new-post-form { display: grid; gap: 14px; }
#new-post-form h2 { margin: 0; }
#new-post-form > label { display: grid; gap: 5px; font-size: 13px; }
#new-post-form input:not([type="checkbox"]), #new-post-form textarea { padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 4px; }
#new-post-form fieldset { min-width: 0; border: 1px solid var(--line); }
#post-image-choices { display: grid; gap: 6px; max-height: 150px; overflow: auto; font-size: 12px; }
.post-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.post-form-actions button { background: var(--cream); border: 1px solid var(--line); padding: 8px 14px; border-radius: 5px; }
.post-form-actions [type="submit"] { background: var(--forest); color: var(--cream); }

.project-meta { right: 42px; left: 12px; gap: 8px; justify-content: flex-start; }
.project-meta .project-image-count { position: static; line-height: inherit; font-size: 11px; flex: none; }
.project-meta .project-image-count:empty { display: none; }
.project-due { margin-left: auto; flex: none; color: var(--muted); }
.project-meta .project-manager { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.panel-hidden .project-meta { display: flex; top: auto; bottom: 17px; inset-inline: 0; justify-content: center; }
.panel-hidden .project-meta .project-image-count { font-size: 8px; }
.panel-hidden .project-meta :is(.project-due, .project-manager) { display: none; }
.dashboard-section-title { font-size: 18px; font-weight: 600; color: var(--forest); margin: 24px 0 12px; }
.dashboard-image-count { color: var(--muted); white-space: nowrap; }
.dashboard-image-count .project-total-count { color: #808080; }
.dashboard-image-count .project-feedback-count { color: var(--promo); }
.dashboard-image-count .project-ready-count, .dashboard-image-count[data-delivered="true"] .project-total-count { color: var(--leaf); }
.image-group h2 a { color: inherit; text-decoration: none; }
.image-group h2 a:hover { text-decoration: underline; }
.audit-report { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 4vw, 60px); color: var(--forest); }
.audit-demo { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.audit-report h1 { font-size: clamp(28px, 3vw, 42px); margin: 0; }
.audit-report h2 { font-size: 18px; margin: 0 0 8px; }
.audit-report p { line-height: 1.5; }
.audit-summary { background: var(--sage); border-radius: 12px; padding: 22px 26px; margin: 22px 0; }
.audit-summary p, .audit-details p { margin: 0; font-size: 14px; }
.audit-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.audit-details section { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
@media (max-width: 900px) { .audit-details { grid-template-columns: 1fr; } }
.workspace:not(.moving-project) .project-group[data-group="urgent"]:not(:has(.project-row)) { display: none; }
.moving-project .project-group[data-group="urgent"]:not(:has(.project-row)) .group-projects { min-height: 36px; border: 1px dashed var(--forest); border-radius: 5px; background: var(--sage); }
.moving-project .project-group[data-group="urgent"]:not(:has(.project-row)) { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.gallery .image-group.publication-card, .video-post.publication-card { padding: 0; }
.publication-header { padding: 9px 9px 9px 18px; cursor: pointer; }
.publication-header .block-description, .video-post .publication-header p { margin: 4px 0 0; }
.publication-header h2 { margin: 0; }
.publication-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.publication-field { position: relative; min-height: 48px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.publication-open { position: absolute; inset: 0; border-radius: 0 0 9px 9px; }
.publication-open:focus-visible { outline-offset: -3px; }
.publication-field > :is(.publication-strip, .image-group-items) { position: relative; pointer-events: none; }
.publication-field :is(.selectable-preview, .publication-preview-button, .tile-caption button, .tile-name) { pointer-events: auto; }
.publication-field > video { position: relative; }
.publication-preview-button { display: block; border: 0; padding: 0; background: transparent; }

.publication-card h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.publication-card h2 a { color: var(--forest); text-decoration: none; overflow-wrap: anywhere; }
.publication-card h2 time { margin-left: auto; line-height: 1.4; font-family: inherit; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: normal; }
.publication-toggle { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 5px; color: var(--forest); background: transparent; }
.publication-toggle svg { width: 16px; height: 16px; }
.publication-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.publication-strip { width: 100%; }
.publication-thumbs { display: flex; flex-wrap: nowrap; gap: 8px; --thumb: min(128px, 24vw); overflow: hidden; }
.publication-thumbs.has-overflow { mask-image: linear-gradient(to right, black calc(100% - min(64px, 20%)), transparent); }
.publication-thumbs > * { width: var(--thumb); height: var(--thumb); flex: none; }
.publication-thumbs img { display: block; width: var(--thumb); height: var(--thumb); touch-action: none; object-fit: contain; background: white; }


/* The spacing collapses together with its block during drag transitions. */
.gallery .image-group { margin-bottom: 16px; }
.gallery .image-group.gallery-resizing { overflow: clip; }
.gallery .image-group[hidden].gallery-exiting { display: block !important; pointer-events: none; }
/* Each focus/hover ring follows the bounds of its own action. */
.publication-header { position: relative; border-radius: 9px 9px 0 0; }
.publication-header:is(:hover, :has(.publication-toggle:focus-visible)):not(:has(.post-status:hover)) { box-shadow: inset 0 0 0 1px var(--leaf); }
.publication-header::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: solid var(--forest); border-width: 0 2px 2px 0; opacity: 0; transform: translate(-50%, -70%) rotate(45deg); pointer-events: none; }
.publication-header:has(.publication-toggle[aria-expanded="true"])::after { transform: translate(-50%, -30%) rotate(225deg); }
.publication-header:is(:hover, :has(.publication-toggle:focus-visible)):not(:has(.post-status:hover))::after { opacity: 1; }
.publication-open:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--leaf); }

.selectable-preview { position: relative; display: block; min-width: 0; }
.preview-check { position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; margin: 0; accent-color: var(--forest); cursor: pointer; opacity: 0; pointer-events: none; }
.selectable-preview.over-selection-corner .preview-check, .selecting-images .preview-check, .preview-check:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: none) { .preview-check { opacity: 1; pointer-events: auto; } }
.tile-quality { display: contents; }
.tile-comment-count svg { display: none; }
.gallery:not(.large-previews) .tile-caption .image-status { grid-column: 2; grid-row: 1 / 3; align-self: stretch; min-height: 34px; padding-inline: 8px; }
.gallery:not(.large-previews) .tile-quality { display: flex; align-items: center; gap: 4px; min-width: 0; grid-column: 1; grid-row: 2; }
.gallery:not(.large-previews) .tile-comment-count { display: inline-flex; align-items: center; gap: 3px; }
.gallery:not(.large-previews) .tile-comment-count::before { content: '·'; }
.gallery:not(.large-previews) .tile-comment-count svg { display: inline; width: 12px; height: 12px; }
.gallery:not(.large-previews) .comment-count-text { display: none; }
#image-selection-bar { position: fixed; z-index: 3; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 12px clamp(12px, 3vw, 32px); background: var(--sage); color: var(--forest); border-top: 1px solid var(--line); box-shadow: 0 -3px 16px #19341a12; visibility: hidden; transform: translateY(100%); transition: transform 200ms ease, visibility 0s linear 200ms; }
.selecting-images #image-selection-bar { visibility: visible; transform: translateY(0); transition-delay: 0s; }
#gallery-page.selecting-images { padding-bottom: 68px; }
#selection-count { font-size: 12px; }
#image-selection-bar button { padding: 8px 14px; border: 1px solid var(--forest); border-radius: 5px; background: var(--forest); color: white; font-size: 12px; }
#image-selection-bar #cancel-selection { margin-left: auto; background: transparent; color: var(--forest); }
.panel-hidden #project-search-toggle,
.panel-hidden .project-row .project-meta,
.panel-hidden .project-row .project-edit { display: none; }
.panel-hidden .project-list { scrollbar-width: none; }
.panel-hidden .project-list::-webkit-scrollbar { display: none; }
.panel-hidden .project-item { padding: 3px 5px; }
.short-project-name, .panel-hidden .full-project-name { display: none; }
.panel-hidden .short-project-name { display: inline; font-size: 14px; }
.gallery-header .feedback-toggle { position: relative; }
.gallery-header #feedback-needed { color: var(--promo); }
.feedback-toggle.all-posts button { visibility: hidden; }
.all-posts-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; letter-spacing: .5px; }
.publication-card h2 .post-status { margin-left: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--forest); padding: 4px; font-family: inherit; font-weight: 500; font-size: 10px; line-height: 1.4; }
.publication-card h2 .post-status[data-status="review"] { color: var(--promo); }
.publication-card h2 .post-status:is([data-status="approved"], [data-status="delivered"]) { color: var(--leaf); }
.publication-card h2 .post-status + time { margin-left: 0; }
.brief-timeline-section { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid #dbe6d74d; }
.brief-timeline-section h4 { margin: 0; color: var(--cream); }
.brief-timeline-section > time { font-size: 11px; color: var(--sage); }
.brief-timeline-section small { overflow-wrap: anywhere; color: var(--muted); }
#inactive-label::after { display: none; }
#inactive-toggle { display: flex; align-items: center; gap: 10px; padding: 0; width: 100%; height: 100%; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; }
#inactive-toggle::after { content: ""; flex: 1; height: 1px; background: currentColor; }
#inactive-toggle svg { order: 1; width: 14px; height: 14px; }
#inactive-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.gallery-header .production-feedback button[aria-pressed="false"] { color: var(--muted); }
.gallery-header .production-feedback #feedback-needed[aria-pressed="false"] { color: var(--muted); }
.note-thumbnails { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.note-thumbnail { position: relative; }
.note-thumbnail button { display: block; padding: 0; border: 1px solid var(--line); background: white; border-radius: 4px; }
.note-thumbnail img { display: block; width: 52px; height: 52px; object-fit: contain; }
.note-thumbnail .remove-note-image { position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; line-height: 14px; color: var(--forest); }
#note-draft-images { grid-column: 1 / -1; }
.brief-note-list { display: block; background: var(--cream); color: var(--forest); border-radius: 10px; padding: 4px 14px; }
.brief-note-list .brief-message { margin: 0; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.brief-note-list > :last-child { border-bottom: 0; }
.brief-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.brief-note-list .brief-message-footer { position: static; height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.brief-message-footer > span { flex: 1; overflow-wrap: anywhere; }
.brief-publication-event { margin: 0; padding: 12px 0 5px; color: var(--forest); font-size: 12px; }
.publication-card h2 button.post-status { height: 30px; padding: 0 10px; font-weight: 600; }
.publication-card h2 button.post-status:hover { border-color: currentColor; }
/* Video review controls are rendered by GRID in English. */
.film-preview { position: relative; aspect-ratio: 1; overflow: hidden; background: #e6e6e6; }
.video-post .film-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; pointer-events: none; }
.preview-play-icon, .film-cover span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #19341ad9; color: white; font-size: 19px; }
.preview-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.film-player { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.film-screen { position: relative; }
.film-player:not(:fullscreen):not(.film-expanded-dialog > *) { width: min(100%, var(--film-width, 720px)); margin-inline: auto; }
.film-player video { display: block; width: 100%; aspect-ratio: var(--film-ratio, 16 / 9); object-fit: contain; }
.film-player:is(:fullscreen, .film-expanded-dialog > *) [aria-label="Player size"] { display: none; }
.film-cover { position: absolute; inset: 0; border: 0; background: transparent; display: grid; place-items: center; }
.film-controls { padding: 8px 12px; }
.film-timeline { position: relative; padding-top: 12px; }
.film-timeline input { display: block; width: 100%; margin: 0; accent-color: var(--forest); }
.film-markers { position: absolute; inset: 0 8px auto; height: 12px; pointer-events: none; }
.film-marker { position: absolute; transform: translateX(-50%); width: 14px; height: 14px; border: 0; background: transparent; padding: 0; pointer-events: auto; }
.film-marker::before { display: block; content: ""; width: 7px; height: 7px; margin: auto; border-radius: 50%; background: var(--leaf); }
.film-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.film-buttons button, .film-buttons select, .film-comments button { border: 1px solid var(--line); padding: 6px 9px; border-radius: 4px; color: var(--forest); background: var(--cream); font-size: 12px; }
.film-buttons output, .film-comments output { font-variant-numeric: tabular-nums; font-size: 12px; }
.film-buttons output { margin-right: auto; }
.film-buttons input { width: 66px; accent-color: var(--forest); }
.film-expanded-dialog[open] { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; border-radius: 0; overflow: hidden; }
.film-expanded-dialog > .film-player { width: 100%; height: 100%; }
.film-player:is(:fullscreen, .film-expanded-dialog > .film-player) { border: 0; background: #191919; }
.film-player:is(:fullscreen, .film-expanded-dialog > .film-player) .film-screen { position: absolute; inset: 0; }
.film-player:is(:fullscreen, .film-expanded-dialog > .film-player) video { height: 100%; background: #191919; }
.film-player:is(:fullscreen, .film-expanded-dialog > .film-player) .film-controls-zone { position: absolute; inset: auto 0 0; }
.film-player:is(:fullscreen, .film-expanded-dialog > .film-player) .film-controls {
  background: rgb(248 247 241 / 78%);
  backdrop-filter: blur(6px);
  transition: transform 240ms ease;
}
/* The stationary zone remains hoverable after its controls slide offscreen. */
.film-player:is(:fullscreen, .film-expanded-dialog > .film-player).is-playing .film-controls-zone:not(:hover):not(:has(:focus-visible)) .film-controls {
  transform: translateY(100%);
}
@media (prefers-reduced-motion: reduce) {
  .film-player:is(:fullscreen, .film-expanded-dialog > .film-player) .film-controls { transition: none; }
}
.film-error:empty, .film-comments [role="status"]:empty { display: none; }
.film-comments { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.film-comments ol { padding: 0; list-style: none; }
.film-comments li { padding: 10px 0; border-top: 1px solid var(--line); }
.film-comment-time { display: flex; align-items: center; gap: 4px; }
.film-comments li strong { font-size: inherit; }
.video-post .film-comments li p { color: var(--text); margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.film-comments label { display: block; font-size: 12px; }
.film-comments textarea { display: block; box-sizing: border-box; width: 100%; margin: 6px 0; border: 1px solid var(--line); border-radius: 4px; padding: 8px; font: inherit; }
.film-comments button[type="submit"] { background: var(--forest); color: var(--cream); }
.film-buttons button[data-action], .film-pencil, .film-attach { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; }
.film-buttons button svg, .film-comments button svg { width: 16px; height: 16px; }
.film-comment-actions { display: flex; gap: 6px; align-items: center; }
.film-comment-actions button[type="submit"] { margin-left: auto; }
.film-comment-actions :is(.film-pencil,.film-attach) { color: var(--muted); }
.film-comment-actions .film-pencil[aria-pressed="true"] { background: var(--sage); }
.film-draft-files { display: flex; flex-wrap: wrap; gap: 4px; }
.film-draft-files:not(:empty) { margin-bottom: 6px; }
.film-ink { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; touch-action: none; }
.film-ink polyline { stroke: #e02020; stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.film-screen.drawing .film-ink { pointer-events: auto; cursor: crosshair; }
.film-screen.drawing .film-cover { visibility: hidden; }

#opened-post-description { padding: 12px var(--post-gutter, 32px) 16px; }
.post-description-note { background: var(--surface); border-left-color: var(--leaf); margin: 0 0 12px; }
.post-description-note > strong { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.post-description-note p { margin: 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
#opened-post-description .post-description-note { margin: 0; background: var(--cream); }
.publication-field > .post-description-note {
  pointer-events: none;
  padding: 0;
  border: 0;
  background: var(--cream);
}
.publication-field > .post-description-note > strong { display: none; }
.publication-field .post-description-note button { pointer-events: auto; }
.gallery .group-divider + .image-group-items:not(:empty) { margin-top: 12px; }
#new-post-form #post-image-choices label { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { #opened-post-description { --post-gutter: 24px; } }
@media (max-width: 720px) { #opened-post-description { --post-gutter: 16px; } }
#post-list-heading {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 650;
  line-height: 20px;
}
#post-list-heading { margin: 0; padding: 16px 32px 24px; color: var(--forest); overflow-wrap: anywhere; }
#post-list-heading:not([hidden]) + .project-posts { padding-top: 0; }
@media (max-width: 720px) { #post-list-heading { padding-inline: 16px; } }
.comment-email-action {
  display: inline-grid; place-items: center; width: 22px; height: 18px; padding: 0;
  border: 0; border-radius: 4px; background: var(--cream); color: var(--muted); cursor: pointer;
}
.comment-email-action svg { width: 13px; height: 11px; stroke: currentColor; stroke-width: 1.4; }
.project-note-footer .comment-email-action:disabled {
  opacity: 1;
  cursor: default;
  color: var(--forest);
  background: color-mix(in srgb, var(--leaf) 50%, transparent);
}
