/* Libraries.gtcx.design-aligned shell and a true three-column document workbench. */
.catalog-header {
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 18px;
  border: 0 solid #34363a;
  border-width: 0 0 1px;
  background: #111214;
}

.catalog-brand {
  flex: 0 0 auto;
  gap: 11px;
  padding-right: 22px;
  border: 0 solid #2d2f32;
  border-width: 0 1px 0 0;
}
.catalog-brand img { width: 88px; height: auto; }
.catalog-brand-copy { display: flex; }
.catalog-brand-copy strong { font-size: 13.5px; font-weight: 500; }
.catalog-tools { display: none; }

.catalog-primary-nav {
  height: auto;
  justify-self: auto;
  margin-left: 18px;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: transparent;
}

.catalog-primary-nav button {
  min-width: 0;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: #8e8e98;
  font-size: 12px;
  font-weight: 400;
}

.catalog-primary-nav button.active {
  color: #e8e8ec;
  background: #303236;
  font-weight: 400;
}

.catalog-browser-title { align-items: flex-start; }

.catalog-create-template {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #37393d;
  border-radius: 8px;
  color: #c4c4cc;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}

.catalog-create-template:hover { color: #e8e8ec; background: #2b2d30; }
.catalog-create-template input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.catalog-workspace { grid-template-rows: 52px minmax(0, 1fr); }
.catalog-foot { position: fixed; right: 18px; bottom: 18px; z-index: 40; min-height: 0; padding: 0; background: transparent; pointer-events: none; }
.catalog-status:not(:empty) { max-width: 420px; min-height: 38px; padding: 10px 13px; border: 1px solid #3a3c40; border-radius: 9px; color: #c4c4cc; background: #242629; font-size: 12px; pointer-events: auto; }
.catalog-status:empty,
.backend-status { display: none; }

.catalog-workspace[data-detail-open="true"] .catalog-body {
  grid-template-columns: 320px minmax(0, 1fr);
  background: #111315;
}

.catalog-workspace[data-detail-open="true"] .catalog-scroll {
  border: 0 solid #2b2d30;
  border-width: 0 1px 0 0;
  background: #1c1e20;
}

.catalog-workspace[data-detail-open="true"] .catalog-detail {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #111315;
}

.catalog-project-bar { display: none; }

.catalog-workspace[data-detail-open="true"] .catalog-detail-stage {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  overflow: hidden;
  border: 0 solid #2b2d30;
  border-width: 0 1px 0 0;
  background: #111315;
}

.catalog-stagebar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border: 0 solid #242629;
  border-width: 0 0 1px;
  background: #202225;
}

.catalog-stage-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.catalog-stagebar .catalog-stage-title > span { color: #d7d7dd; font-size: 13px; font-weight: 500; }
.catalog-stagebar .catalog-stage-title > small { color: #8e8e98; font-size: 11.5px; font-weight: 400; }

.catalog-page-nav { display: flex; align-items: center; gap: 7px; }
.catalog-page-nav .icon-button { width: 30px; height: 30px; border: 1px solid #35373a; border-radius: 7px; color: #c4c4cc; background: #242629; }
.catalog-page-nav .icon-button:disabled { opacity: 0.35; }
.catalog-page-nav > span { min-width: 96px; color: #8e8e98; font-size: 12px; text-align: center; }
.catalog-page-nav strong { color: #e8e8ec; font-weight: 500; }

.catalog-workspace[data-detail-open="true"] .catalog-detail-preview {
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: block;
  padding: 28px 24px 64px;
  overflow-y: auto;
  box-sizing: border-box;
  border-radius: 0;
  background: #111315;
}

.catalog-page-stack {
  width: min(100%, 900px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto;
}

.catalog-page-sheet {
  width: 100%;
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: 900px 1165px;
}

.catalog-workspace[data-detail-open="true"] .catalog-page-sheet img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  background: #fff;
}

.catalog-page-sheet figcaption {
  margin-top: 8px;
  color: #777781;
  font-size: 11px;
  text-align: center;
}

.catalog-workspace[data-detail-open="true"] .catalog-detail-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: 18px;
  padding: 22px 22px 40px;
  overflow-y: auto;
  border: 0;
  background: #1d1f21;
}

.project-command-header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; border: 0 solid #34363a; border-width: 0 0 1px; }
.project-command-header > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.project-command-header > div:first-child strong { overflow: hidden; color: #e8e8ec; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.project-save-status { color: #8e8e98; font-family: inherit; font-size: 12px; }

.catalog-project-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.catalog-project-actions .button,
.catalog-workspace .project-next-button,
.catalog-workspace .template-start-button,
.catalog-workspace .template-resume-button { min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }

.catalog-workspace .button.primary {
  color: #202124;
  background: #f1f3f4;
  border-color: transparent;
}

.catalog-workspace .button.primary:hover:not(:disabled) {
  color: #111214;
  background: #ffffff;
}

.catalog-workspace .button.primary:disabled {
  color: #777781;
  background: #303236;
}

.catalog-workspace .template-start-button,
.catalog-workspace .template-resume-button {
  width: auto;
  align-self: flex-start;
  justify-content: center;
  padding-inline: 16px;
}

.catalog-workspace .catalog-detail-title { font-size: 20px; font-weight: 500; line-height: 1.35; }
.catalog-inspector-eyebrow,
.project-step-kicker { color: #8e8e98; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.catalog-detail-status-line,
.catalog-template-availability,
.catalog-workspace .catalog-detail-meta { font-size: 13px; }
.catalog-detail-hint { color: #b2b2bb; font-size: 14px; line-height: 1.6; }
.catalog-template-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2px 0 0;
  overflow: hidden;
  border: 1px solid #34363a;
  border-radius: 9px;
  background: #34363a;
}
.catalog-template-facts > div { min-width: 0; padding: 12px; background: #242629; }
.catalog-template-facts dt { color: #8e8e98; font-size: 10.5px; }
.catalog-template-facts dd { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; color: #d7d7dd; font-size: 13px; font-weight: 500; }
.catalog-template-facts dd i { color: #63c59a; }
.project-inspector-head strong { font-size: 19px; font-weight: 500; line-height: 1.3; }

.catalog-project-editor,
.project-input-pane { gap: 16px; }
.catalog-detail-section,
.project-step-intro,
.project-edit-path { padding: 16px; border-radius: 10px; }
.catalog-detail-section-head { gap: 10px; }
.catalog-detail-section-head strong,
.project-step-intro strong,
.project-edit-path-head strong { font-size: 14px; font-weight: 500; }
.catalog-detail-section-head small,
.project-step-intro p,
.project-edit-path-head small { font-size: 12.5px; line-height: 1.5; }

.catalog-detail-section .draft-prompt,
.project-reference-notes,
.project-name-field input { padding: 13px 14px; border-radius: 8px; font-size: 15px; line-height: 1.55; }
.catalog-detail-section .draft-prompt { min-height: 150px; }
.project-reference-notes { min-height: 180px; }
.project-name-field > span,
.project-file-drop strong { font-size: 13px; }
.project-file-drop { min-height: 176px; gap: 8px; border-radius: 9px; }
.project-file-drop i { font-size: 27px; }
.project-file-drop span,
.project-attachments-empty { font-size: 12px; }

.catalog-live-changes { right: 18px; bottom: 18px; width: min(340px, 48%); max-height: 240px; padding: 15px; border: 1px solid #34363a; }
.catalog-live-changes-head strong { font-size: 13px; font-weight: 500; }
.catalog-live-changes-head span,
.catalog-live-change-list > small { font-size: 11px; }
.catalog-live-change { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding-top: 8px; }
.catalog-live-change span,
.catalog-live-change strong,
.catalog-live-empty { font-size: 12px; line-height: 1.4; }

.catalog-project-browser { padding: 18px 14px; }
.project-back-button { min-height: 34px; font-size: 12.5px; }
.project-browser-identity { gap: 6px; padding: 12px 8px 18px; }
.project-browser-identity span { font-size: 10.5px; }
.project-browser-identity strong { font-size: 16px; font-weight: 500; line-height: 1.35; }
.project-browser-identity small { font-size: 12.5px; line-height: 1.5; }
.project-browser-nav { gap: 6px; }
.project-browser-nav button,
.project-browser-complete { min-height: 68px; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 10px 11px; border-radius: 9px; }
.project-step-index { width: 30px; height: 30px; font-size: 11px; }
.project-browser-nav strong,
.project-browser-complete strong { font-size: 13.5px; font-weight: 500; }
.project-browser-nav small,
.project-browser-complete small { font-size: 12px; line-height: 1.35; }

@media (max-width: 1240px) {
  .catalog-workspace[data-detail-open="true"] .catalog-body { grid-template-columns: 280px minmax(0, 1fr); }
  .catalog-workspace[data-detail-open="true"] .catalog-detail { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 980px) {
  .catalog-header { display: flex; }
  .catalog-brand img { width: 78px; }
  .catalog-workspace[data-detail-open="true"] .catalog-body { grid-template-columns: 248px minmax(0, 1fr); }
  .catalog-workspace[data-detail-open="true"] .catalog-detail { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Projects use a real recent-document canvas rather than a compressed ledger. */
.catalog-workspace[data-catalog-view="projects"] .catalog-scroll {
  background: #151618;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-projects {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 40px 0 64px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-page-heading {
  max-width: none;
  align-items: center;
  margin: 0 0 28px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-page-heading h1 {
  font-size: 24px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-page-heading p {
  margin-top: 3px;
  font-size: 13px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-page-heading .button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-grid {
  max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-card {
  min-height: 150px;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid #2d2f32;
  border-radius: 11px;
  background: #202225;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-card:hover {
  border-color: #45474c;
  background: #242629;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-card-preview {
  width: 94px;
  height: 122px;
  border-radius: 7px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-card-copy {
  gap: 7px;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-card-copy strong {
  font-size: 15px;
  font-weight: 500;
}
.catalog-workspace[data-catalog-view="projects"] .catalog-project-card-copy small {
  font-size: 12.5px;
}

/* Project authoring stays in Printshop: one canvas, one inspector, no workflow rail. */
.catalog-workspace[data-project-open="true"] .catalog-body {
  display: block;
}

.catalog-workspace[data-project-open="true"] .catalog-scroll {
  display: none;
}

.catalog-workspace[data-project-open="true"] .catalog-detail {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-rows: 56px minmax(0, 1fr);
}

.project-workspacebar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 0 solid #303236;
  border-width: 0 0 1px;
  background: #18191b;
}

.project-revision-identity {
  color: #a5a5ae;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-share-revision {
  color: #a5a5ae;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.project-exit-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 0;
  color: #a5a5ae;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.project-exit-button:hover { color: #f1f3f4; }

.project-title-control {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.project-title-control > span {
  color: #777781;
  font-size: 11px;
}

.project-title-control input {
  width: 100%;
  max-width: 620px;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 9px;
  color: #e8e8ec;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.project-title-control input:hover { border-color: #34363a; background: #202225; }
.project-title-control input:focus { border-color: #565960; background: #202225; outline: none; }

.project-workspacebar .catalog-project-actions {
  display: flex;
  gap: 7px;
}

.project-workspacebar .catalog-project-actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.catalog-workspace[data-project-open="true"] .catalog-detail-stage {
  grid-column: 1;
  grid-row: 2;
}

.catalog-workspace[data-project-open="true"] .catalog-detail-body {
  grid-column: 2;
  grid-row: 2;
  gap: 14px;
  padding: 18px 18px 32px;
}

.catalog-workspace[data-project-open="true"] .catalog-page-stack {
  width: min(100%, 1080px);
}

.catalog-page-sheet object {
  width: 100%;
  aspect-ratio: var(--page-ratio);
  display: block;
  border: 0;
  background: #fff;
}

.catalog-page-sheet.is-landscape { contain-intrinsic-size: 1080px 608px; }
.catalog-page-sheet.is-portrait { width: min(100%, 820px); align-self: center; contain-intrinsic-size: 820px 1060px; }

.project-inspector-head > span {
  align-self: center;
  color: #8e8e98;
  font-size: 11.5px;
}

.project-inspector-tabs {
  position: sticky;
  top: -18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid #303236;
  border-radius: 9px;
  background: #18191b;
}

.project-inspector-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #92929b;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.project-inspector-tabs button.active {
  color: #ececf0;
  background: #303236;
}

.project-inspector-tabs small { margin-left: 4px; color: #777781; }

.project-content-guidance {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #303236;
  border-radius: 8px;
  color: #a9a9b2;
  background: #242629;
  font-size: 12.5px;
  line-height: 1.5;
}

.project-page-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-page-fields[hidden] { display: none; }

.project-page-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.project-page-images[hidden] { display: none; }

.project-image-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-image-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #303236;
  border-radius: 8px;
  background: #242629;
}

.project-image-field > i {
  color: #8e8e98;
  font-size: 18px;
  text-align: center;
}

.project-image-field > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-image-field strong {
  overflow: hidden;
  color: #d7d7dd;
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-image-field small {
  overflow: hidden;
  color: #8e8e98;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-image-replace {
  position: relative;
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.project-image-replace input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.project-page-fields-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 4px;
}

.project-page-fields-head > div { display: flex; flex-direction: column; gap: 3px; }
.project-page-fields-head span,
.project-page-fields-head small { color: #8e8e98; font-size: 11px; }
.project-page-fields-head strong { color: #d7d7dd; font-size: 13px; font-weight: 500; }

.project-node-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-node-field > span { color: #8e8e98; font-size: 11px; }

.project-node-field input,
.project-node-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #303236;
  border-radius: 7px;
  padding: 10px 11px;
  color: #e2e2e7;
  background: #151618;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.project-node-field textarea { min-height: 86px; resize: vertical; }
.project-node-field input:focus,
.project-node-field textarea:focus { border-color: #5c5f66; outline: none; }

@media (max-width: 1120px) {
  .catalog-workspace[data-project-open="true"] .catalog-detail { grid-template-columns: minmax(0, 1fr) 360px; }
  .project-workspacebar { grid-template-columns: auto minmax(180px, 1fr) auto; }
  .project-workspacebar > .project-save-status,
  .project-workspacebar > .project-revision-identity { display: none; }
}

/* Local navigation: templates and document pages share the left rail. */
.catalog-scroll {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-sidebar-toolbar {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  border: 0 solid #2b2d30;
  border-width: 0 0 1px;
  background: #181a1c;
}

.catalog-sidebar-tabs {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.catalog-sidebar-tabs button,
.catalog-panel-toggle,
.catalog-inspector-toggle {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  color: #8e8e98;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.catalog-sidebar-tabs button.active { color: #e8e8ec; background: #303236; }
.catalog-sidebar-tabs button:disabled { opacity: 0.35; cursor: default; }
.catalog-panel-toggle,
.catalog-inspector-toggle { width: 30px; flex: 0 0 30px; font-size: 16px; }
.catalog-panel-toggle:hover,
.catalog-inspector-toggle:hover { color: #e8e8ec; background: #2b2d30; }

.catalog-template-browser,
.catalog-page-browser {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.catalog-template-browser[hidden],
.catalog-page-browser[hidden] { display: none; }
.catalog-template-browser .catalog-browser-head { position: sticky; top: 0; z-index: 3; }

.catalog-page-browser-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 12px 12px;
  border: 0 solid #2b2d30;
  border-width: 0 0 1px;
  background: #1c1e20;
}

.catalog-page-browser-head button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #92929b;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.catalog-page-browser-head button:hover { color: #e8e8ec; }
.catalog-page-browser-head > strong { margin-top: 5px; color: #e1e1e6; font-size: 13px; font-weight: 500; line-height: 1.35; }
.catalog-page-browser-head > small { color: #777781; font-size: 11px; }

.catalog-page-browser-list { display: flex; flex-direction: column; gap: 3px; padding: 8px; }
.catalog-page-browser-item {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  color: #bdbdc5;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.catalog-page-browser-item:hover { background: #25272a; }
.catalog-page-browser-item.active { color: #f0f0f3; background: #303236; }
.catalog-page-browser-thumb { width: 70px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: #111315; }
.catalog-page-browser-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.catalog-page-browser-item > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.catalog-page-browser-item strong { font-size: 12px; font-weight: 500; }
.catalog-page-browser-item small { color: #777781; font-size: 10.5px; }

.catalog-inspector-toggle {
  position: sticky;
  top: 0;
  z-index: 7;
  align-self: flex-end;
  margin: -8px -8px -6px 0;
}

.template-operator-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #303236;
  border-radius: 8px;
}
.template-operator-actions > div { display: grid; gap: 3px; }
.template-operator-actions strong { color: #dedee3; font-size: 12.5px; font-weight: 550; }
.template-operator-actions small { color: #898992; font-size: 11.5px; line-height: 1.45; }
.template-operator-actions .button { width: 100%; justify-content: flex-start; }
.template-operator-actions .button:disabled { cursor: not-allowed; opacity: .45; }

/* Projects retain the same page rail instead of jumping to a separate editor shell. */
.catalog-workspace[data-project-open="true"] .catalog-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}
.catalog-workspace[data-project-open="true"] .catalog-scroll { display: flex; }
.catalog-workspace[data-project-open="true"] .catalog-projects { display: none; }

/* Each side panel collapses independently; the document remains the stable center. */
.catalog-workspace[data-left-collapsed="true"][data-detail-open="true"] .catalog-body,
.catalog-workspace[data-left-collapsed="true"][data-project-open="true"] .catalog-body {
  grid-template-columns: 48px minmax(0, 1fr);
}
.catalog-workspace[data-left-collapsed="true"] .catalog-sidebar-toolbar { padding: 0 9px; }
.catalog-workspace[data-left-collapsed="true"] .catalog-sidebar-tabs,
.catalog-workspace[data-left-collapsed="true"] .catalog-template-browser,
.catalog-workspace[data-left-collapsed="true"] .catalog-page-browser { display: none; }

.catalog-workspace[data-right-collapsed="true"][data-detail-open="true"] .catalog-detail,
.catalog-workspace[data-right-collapsed="true"][data-project-open="true"] .catalog-detail {
  grid-template-columns: minmax(0, 1fr) 48px;
}
.catalog-workspace[data-right-collapsed="true"] .catalog-detail-body { padding: 8px; overflow: hidden; }
.catalog-workspace[data-right-collapsed="true"] .catalog-detail-body > :not(.catalog-inspector-toggle) { display: none; }
.catalog-workspace[data-right-collapsed="true"] .catalog-inspector-toggle { margin: 0; transform: rotate(180deg); }

@media (max-width: 1240px) {
  .catalog-workspace[data-project-open="true"]:not([data-left-collapsed="true"]) .catalog-body {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
/* Governed reviewer handoff -------------------------------------------- */
.project-review-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.project-review-link-row input {
  min-width: 0;
  font: 500 14px/1.4 var(--font-mono, monospace);
}

.catalog-detail-body.is-reviewer .project-inspector-head,
.catalog-detail-body.is-reviewer .project-inspector-tabs,
.catalog-detail-body.is-reviewer .catalog-project-editor {
  display: none;
}

.project-review-workspace {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.project-review-heading,
.project-review-actions,
.project-review-recorded,
.project-review-diff header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-review-heading strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.25;
}

.project-review-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary, #a9adb7);
  font-size: 14px;
  white-space: nowrap;
}

.project-review-revisions {
  display: grid;
  gap: 8px;
}

.project-review-revision {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, #34363c);
  border-radius: 10px;
  color: var(--text-secondary, #a9adb7);
}

.project-review-revision.current {
  border-color: color-mix(in srgb, var(--accent, #1597ef) 55%, transparent);
  background: color-mix(in srgb, var(--accent, #1597ef) 8%, transparent);
}

.project-review-revision strong,
.project-review-revision span {
  color: var(--text-primary, #f3f4f6);
  font-size: 15px;
}

.project-review-diff {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-raised, #292b2f);
}

.project-review-diff header strong {
  font-size: 17px;
}

.project-review-diff ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.project-review-diff li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--text-secondary, #b6bac4);
}

.project-review-actions .button {
  min-height: 44px;
  font-size: 15px;
}

.project-review-recorded {
  justify-content: flex-start;
  padding: 16px;
  border: 1px solid color-mix(in srgb, #4ac49a 48%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, #4ac49a 9%, transparent);
}

.project-review-recorded > i {
  color: #4ac49a;
  font-size: 24px;
}

.project-review-recorded strong,
.project-review-recorded small {
  display: block;
}

.project-review-recorded small {
  margin-top: 4px;
  color: var(--text-secondary, #a9adb7);
}
