@charset "UTF-8";
:root {
  --ink: #23352f;
  --muted: #7b857e;
  --green: #28664e;
  --green-dark: #1c4d39;
  --line: #e2e6df;
  --paper: #fafbf7;
  --cream: #f1f3e9;
  --sidebar: #202f29;
  --radius: 14px;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6aa789;
}
button,
select,
input {
  transition:
    border-color 0.15s,
    background 0.15s;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #e8ede7;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 8px 50px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.2px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #648271;
  width: 36px;
  height: 39px;
  border-radius: 11px;
  font:
    700 32px/1 'Segoe UI',
    sans-serif;
  color: #d0e4b7;
  letter-spacing: -3px;
  padding-right: 6px;
}
.brand-mark span {
  color: #e4ba75;
  font-size: 24px;
  margin-top: 6px;
}
.brand-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: #a4b1a8;
  margin-top: 6px;
}
.workspace-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.1px;
  padding: 0 12px;
  margin-bottom: 17px;
  color: #7f9589;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 9px;
  font-size: 13px;
}
.nav-link.active {
  background: #34483d;
  color: #eef5e9;
}
.nav-count {
  margin-left: auto;
  background: #526756;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
}
.sidebar-note {
  margin-top: 65px;
  border-top: 1px solid #3b4a41;
  padding: 25px 12px;
  color: #b7c9b8;
}
.sidebar-note > [data-icon] {
  color: #c4d99d;
  margin-bottom: 14px;
}
.sidebar-note strong {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.8;
  color: #879d8e;
  margin-top: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 10px;
  color: #b9c7bb;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-bottom > span:last-child {
  margin-left: auto;
  color: #799181;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7dba6;
}
.main-shell {
  margin-left: 236px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  font-size: 11px;
  color: var(--muted);
  background: #fdfefa;
}
.topbar #breadcrumb > span {
  padding: 0 10px;
  color: #bdc5bb;
}
.help-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #66796b;
  font-size: 11px;
}
.help-link svg {
  width: 15px;
  height: 15px;
}
.view {
  max-width: 1520px;
  margin: auto;
  padding: 43px 46px 30px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 33px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
  color: #71896e;
  margin-bottom: 13px;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin: 0;
}
.heading-dot {
  color: #5c8851;
}
p {
  line-height: 1.7;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  min-height: 41px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.button svg {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 3px 6px #23352f0b;
}
.primary:hover:not(:disabled) {
  background: var(--green-dark);
}
.secondary {
  border-color: #d6dfd3;
  background: white;
  color: var(--green);
}
.secondary:hover:not(:disabled) {
  background: #f4f8f0;
}
.full {
  width: 100%;
}
.upload-panel {
  border: 1px solid #dce3d4;
  background: linear-gradient(115deg, #f0f4e8, #f5f6ed);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 231px;
  padding: 33px;
  position: relative;
}
.upload-panel.dragging {
  outline: 3px solid #81a974;
  background: #eaf2df;
}
.upload-art {
  width: 94px;
  height: 118px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fcfdf8;
  border: 1px solid #d5dfcb;
  border-radius: 12px;
  transform: rotate(-7deg);
  box-shadow: 6px 8px 0 #d8e3cb65;
  color: #719567;
}
.upload-art svg {
  width: 53px;
  height: 53px;
  stroke-width: 1.1;
}
.art-plus {
  position: absolute;
  bottom: 11px;
  right: -10px;
  background: #285e45;
  border: 4px solid #f0f4e8;
  color: white;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
}
.small-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #7c9074;
}
.upload-copy h2 {
  font-size: 21px;
  letter-spacing: -0.55px;
  font-weight: 550;
  margin: 11px 0 9px;
}
.upload-copy p {
  font-size: 11px;
  line-height: 1.85;
  color: #788573;
  margin: 0;
}
.upload-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.file-limit {
  font-size: 9px;
  color: #8c9685;
}
.upload-example {
  margin-left: auto;
  padding-left: 26px;
  border-left: 1px solid #dce4d2;
  flex-shrink: 0;
  max-width: 195px;
  color: #7d946c;
}
.upload-example p {
  font-size: 11px;
  line-height: 1.7;
  margin: 13px 0;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: #386348;
  font-size: 10px;
  font-weight: 600;
}
.text-button span {
  padding-left: 9px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 18px;
}
h2 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0;
}
.section-heading h2 #work-count {
  font-size: 10px;
  color: #829079;
  background: #edf1e7;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}
.section-heading p {
  font-size: 10px;
  color: #8a9589;
  margin: 8px 0 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #8e9a8c;
}
.search-field svg {
  height: 14px;
  width: 14px;
}
.search-field input {
  border: 0;
  background: none;
  outline: none;
  font-size: 10px;
  width: 128px;
  color: var(--ink);
}
.works-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.image-block-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
#image-controls {
  margin: 18px 0;
}
#image-controls .text-button {
  margin-top: 12px;
}
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.work-filters button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 14px;
  color: var(--ink);
}
.work-filters button.selected {
  background: #eaf1e5;
  border-color: #729879;
}
.work-filters button span {
  margin-left: 7px;
  color: #74866e;
}
.work-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #edf0e9;
}
.work-item:last-child {
  border-bottom: 0;
}
.work-item .work-row {
  flex: 1;
  min-width: 0;
  width: auto;
  border-bottom: 0;
  padding-right: 12px;
}
.work-menu-button {
  align-self: center;
  flex: 0 0 44px;
  height: 44px;
  margin: 0 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}
.work-menu-button:hover {
  background: #eaf1e5;
}
.work-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.work-actions {
  display: grid;
  gap: 12px;
}
.button.danger {
  color: #9d3434;
  border-color: #ecd3cd;
}
.button.danger:hover {
  background: #fff2ee;
}
.rename-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
#work-actions-dialog {
  width: min(460px, calc(100% - 32px));
}
#actions-title {
  overflow-wrap: anywhere;
  padding-right: 20px;
}
#rename-form input {
  width: 100%;
}
@media (max-width: 520px) {
  .work-menu-button {
    margin-right: 8px;
    flex-basis: 38px;
    height: 40px;
  }
  .work-heading-actions {
    justify-content: flex-start;
  }
  .work-filters button {
    padding: 9px 11px;
  }
}
.empty-state {
  padding: 37px;
  text-align: center;
  color: #929f90;
}
.empty-state > [data-icon] {
  color: #91a587;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 550;
  color: #52664e;
  margin: 0;
}
.empty-state p {
  font-size: 11px;
  margin: 8px 0 0;
}
.work-row {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 125px 118px 17px;
  align-items: center;
  gap: 16px;
  padding: 21px 23px;
  border-bottom: 1px solid #edf0e9;
  width: 100%;
  text-align: left;
  background: #fff;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.work-row:last-child {
  border-bottom: 0;
}
.work-row:hover {
  background: #f8faf4;
}
.row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 42px;
  border: 1px solid #dce5d6;
  border-radius: 8px;
  background: #f8faf4;
  color: #89a077;
}
.row-name {
  font-size: 12px;
  font-weight: 550;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-sub {
  font-size: 9px;
  color: #94a08f;
  display: block;
  margin-top: 7px;
}
.row-date {
  font-size: 10px;
  color: #919c8b;
}
.row-arrow {
  color: #83977b;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  padding: 6px 9px;
  border-radius: 5px;
  background: #edf2e5;
  color: #657d51;
  width: fit-content;
  white-space: nowrap;
}
.badge.warning {
  background: #fbf0d9;
  color: #9b792f;
}
.badge.error {
  background: #fae9e4;
  color: #ab5d46;
}
.badge.active {
  background: #e4efe9;
  color: #367256;
}
.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 20px;
}
.process-strip > div {
  position: relative;
  padding-left: 35px;
}
.process-number {
  position: absolute;
  left: 0;
  font-size: 10px;
  color: #a3b398;
  border: 1px solid #dfe6d8;
  border-radius: 50%;
  height: 24px;
  width: 24px;
  display: grid;
  place-items: center;
}
.process-strip strong {
  font-size: 10px;
  font-weight: 600;
}
.process-strip p {
  margin: 6px 0;
  font-size: 9px;
  color: #94a18d;
}
.work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.back-link {
  font-size: 11px;
  color: #7d8e72;
  display: inline-block;
  margin-bottom: 15px;
}
.work-heading h1 {
  font-size: 25px;
  word-break: break-word;
}
.work-heading p {
  font-size: 11px;
  color: #8b9784;
  margin: 8px 0;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 700px;
  margin-bottom: 26px;
  color: #8c9985;
}
.stepper > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.stepper > div span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #d3dfca;
  border-radius: 50%;
  font-size: 10px;
}
.stepper > div.done,
.stepper > div.current {
  color: #35664d;
}
.stepper > div.done span {
  background: #e3efd8;
  border-color: #d3e6c5;
}
.stepper > div.current span {
  background: #2b684e;
  color: white;
  border-color: #2b684e;
}
.stepper i {
  height: 1px;
  flex: 1;
  min-width: 20px;
  background: #dce5d4;
}
.progress-card {
  border: 1px solid var(--line);
  padding: 60px 20px;
  text-align: center;
  background: white;
  border-radius: 12px;
}
.progress-card p {
  font-size: 12px;
  color: #8c9887;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #e0e9d9;
  border-top-color: #387557;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-card {
  border: 1px solid #e6c7b7;
  background: #fff4ee;
  padding: 20px;
  border-radius: 10px;
  color: #a1573a;
  font-size: 12px;
  line-height: 1.6;
}
.issues-panel {
  padding: 13px 17px;
  border: 1px solid #e5d6af;
  background: #fff9ec;
  border-radius: 9px;
  font-size: 11px;
  color: #8b733c;
  margin-bottom: 20px;
}
.issues-panel details > summary {
  cursor: pointer;
  font-weight: 600;
}
.issues-panel ul {
  padding-left: 20px;
  line-height: 1.8;
  margin-bottom: 0;
}
.issues-panel.has-errors {
  border-color: #e4b9a7;
  background: #fff1ec;
  color: #9f5237;
}
.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 12px 0;
  font-size: 11px;
  color: #85917d;
}
.tab.active {
  border-color: #387451;
  color: #2b6044;
  font-weight: 650;
}
.tab span {
  font-size: 9px;
  color: #8ea27d;
  background: #edf2e6;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}
.toolbar-note {
  font-size: 10px;
  color: #729466;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 23px;
  align-items: start;
}
.document-pane {
  min-width: 0;
}
.document-block {
  position: relative;
  padding: 20px 22px;
  background: white;
  border: 1px solid #e3e8dd;
  border-radius: 9px;
  margin-bottom: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.document-block:hover {
  border-color: #b8cba9;
}
.document-block.selected {
  border-color: #65926f;
  box-shadow: 0 0 0 2px #65926f15;
}
.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 8px;
  color: #9aab8f;
}
.role-tag {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 8px;
  background: #eef3e7;
  color: #789366;
}
.role-tag.title {
  background: #e6eee6;
  color: #3c7252;
}
.role-tag.instruction {
  background: #f8ecd6;
  color: #9b7b42;
}
.role-tag.comment {
  background: #e7edf6;
  color: #7587a4;
}
.block-text {
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #536049;
}
.document-block[data-role='title'] .block-text {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: #2f4434;
}
.document-block[data-role='instruction'] {
  background: #fcfaf4;
}
.document-block img {
  max-width: 100%;
  max-height: 320px;
  display: block;
  margin: auto;
  border-radius: 4px;
}
.document-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.document-block td {
  border: 1px solid #dfe6d7;
  padding: 9px;
  white-space: pre-wrap;
}
.table-overflow {
  overflow: auto;
}
.inspector {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inspector-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
}
.inspector-card h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 9px 0 12px;
  letter-spacing: -0.2px;
}
.inspector-card p {
  font-size: 10px;
  color: #8c9983;
  margin: 10px 0;
  line-height: 1.7;
}
.field-label {
  display: block;
  font-size: 10px;
  color: #657b57;
  margin-bottom: 7px;
}
.inspector select,
.inspector input:not([type='checkbox']) {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font-size: 11px;
  color: #41563a;
  background: #fcfdf9;
  border: 1px solid #dce4d4;
  border-radius: 7px;
}
.source-hint {
  font-size: 9px;
  line-height: 1.8;
  border-top: 1px solid #edf0e7;
  margin-top: 15px;
  padding-top: 12px;
  color: #9aa48f;
}
.template-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bdd1b0;
  background: #f3f7ed;
  border-radius: 8px;
  padding: 12px 9px;
  margin-bottom: 17px;
  color: #78996c;
}
.template-tile strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: #47643b;
}
.template-tile div > span {
  display: block;
  font-size: 8px;
  color: #8fa17f;
  margin-top: 5px;
}
.template-check {
  margin-left: auto;
  font-size: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.field-row label {
  font-size: 10px;
  color: #6d825e;
  display: block;
}
.field-row input {
  margin-top: 7px;
}
.settings-card .button {
  margin-top: 16px;
  min-height: 34px;
  font-size: 10px;
}
.action-card {
  background: #f3f6ed;
  border-color: #dce6d2;
}
.action-card .button {
  margin-top: 10px;
}
.review-check {
  display: flex;
  gap: 8px;
  font-size: 10px;
  line-height: 1.65;
  color: #738968;
  margin-top: 14px;
}
.review-check input {
  margin: 3px 0 0;
  accent-color: #2b6a4d;
  flex-shrink: 0;
}
#summary-counts {
  font-size: 10px;
  color: #779264;
  line-height: 1.8;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 10px;
  color: #7e9074;
}
.segmented {
  display: flex;
  background: #f1f5eb;
  border-radius: 6px;
  padding: 3px;
}
.segmented button {
  border: 0;
  border-radius: 5px;
  background: none;
  color: #829274;
  padding: 6px 8px;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.segmented button.selected {
  background: white;
  color: #42633a;
  box-shadow: 0 1px 4px #0000000c;
}
.segmented svg {
  height: 13px;
  width: 13px;
}
.preview-toolbar select {
  margin-left: 6px;
  border: 1px solid #d8e2d0;
  border-radius: 5px;
  padding: 4px;
  background: white;
  color: #5b7950;
  font-size: 10px;
}
.preview-stage {
  background: #e8ede2;
  border: 1px solid #dce5d4;
  border-radius: 10px;
  padding: 14px;
  overflow: auto;
  text-align: center;
}
#preview-frame {
  width: 100%;
  height: 740px;
  border: 0;
  border-radius: 7px;
  background: white;
  display: block;
  margin: auto;
}
.preview-stage.mobile #preview-frame {
  width: 390px;
  max-width: none;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  padding: 14px 22px;
  border: 1px solid #bad0ae;
  border-radius: 10px;
  box-shadow: 0 6px 35px #24362722;
  background: #f6fbf0;
  color: #406a34;
  font-size: 12px;
  max-width: 600px;
  z-index: 20;
}
.toast.error {
  background: #fff4ed;
  border-color: #e7baa4;
  color: #a15737;
}
dialog {
  border: 1px solid #d8e3cf;
  border-radius: 15px;
  max-width: 520px;
  padding: 32px;
  color: var(--ink);
  box-shadow: 0 15px 90px #00000020;
}
dialog::backdrop {
  background: #20332977;
}
dialog h2 {
  font-size: 23px;
  margin: 16px 0;
}
dialog p {
  font-size: 13px;
  color: #7a8872;
}
#stock-dialog {
  width: min(560px, calc(100% - 32px));
}
#stock-dialog input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #dce4d4;
  border-radius: 6px;
  margin: 6px 0 14px;
}
#stock-dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 9px;
  background: none;
  border: 0;
  color: #8c9d80;
  font-size: 23px;
}
@media (min-width: 1500px) {
  .view {
    padding-left: 65px;
    padding-right: 65px;
  }
  .topbar {
    padding: 0 65px;
  }
  .upload-panel {
    padding: 39px;
    gap: 35px;
    min-height: 260px;
  }
  .upload-copy h2 {
    font-size: 25px;
  }
  .upload-copy p {
    font-size: 12px;
  }
  .upload-example {
    max-width: 230px;
    padding-left: 40px;
  }
  .upload-example p {
    font-size: 12px;
  }
  .upload-art {
    width: 108px;
    height: 130px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .main-shell {
    margin-left: 205px;
  }
  .view {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .upload-example {
    display: none;
  }
  .upload-panel {
    gap: 23px;
    padding: 27px;
  }
  .upload-copy h2 {
    font-size: 19px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 15px;
  }
  .inspector-card {
    padding: 16px;
  }
  .work-row {
    grid-template-columns: 34px minmax(0, 1fr) 100px 15px;
    gap: 12px;
  }
  .row-date {
    display: none;
  }
  .brand {
    padding-left: 4px;
    font-size: 25px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: 66px;
    padding: 12px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    padding: 0;
    font-size: 23px;
  }
  .brand-caption {
    display: none;
  }
  .brand-mark {
    width: 31px;
    height: 34px;
  }
  .sidebar nav {
    margin-left: auto;
  }
  .nav-link {
    padding: 9px 13px;
  }
  .workspace-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 20px;
    font-size: 10px;
  }
  .view {
    padding: 27px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    max-width: 270px;
  }
  .page-heading > .button {
    padding: 9px 11px;
    font-size: 10px;
  }
  .upload-panel {
    padding: 24px;
    gap: 22px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .action-card {
    grid-column: 1/-1;
  }
  .editor-toolbar {
    align-items: flex-start;
  }
  .toolbar-note {
    max-width: 140px;
    line-height: 1.5;
    text-align: right;
  }
  .preview-stage.mobile #preview-frame {
    max-width: 100%;
  }
  .toast {
    left: 50%;
    max-width: calc(100% - 32px);
    width: max-content;
  }
  .work-heading h1 {
    font-size: 22px;
  }
}
@media (max-width: 520px) {
  .view {
    padding: 25px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .help-link {
    font-size: 0;
    gap: 0;
  }
  .help-link svg {
    height: 18px;
    width: 18px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .upload-panel {
    display: block;
    padding: 24px;
  }
  .upload-art {
    width: 60px;
    height: 70px;
    margin-bottom: 22px;
    transform: rotate(-5deg);
  }
  .upload-art svg {
    width: 36px;
    height: 36px;
  }
  .art-plus {
    width: 25px;
    height: 25px;
    border-width: 3px;
    font-size: 16px;
  }
  .upload-copy h2 {
    font-size: 19px;
  }
  .desktop-break {
    display: none;
  }
  .upload-copy p {
    font-size: 11px;
  }
  .upload-actions {
    gap: 12px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading p {
    max-width: 185px;
    line-height: 1.6;
  }
  .search-field {
    padding: 9px;
  }
  .search-field input {
    width: 85px;
    font-size: 9px;
  }
  .work-row {
    grid-template-columns: 30px minmax(0, 1fr) 15px;
    padding: 18px 14px;
    gap: 10px;
  }
  .work-row > .badge {
    grid-column: 2;
    grid-row: 2;
    margin-top: -3px;
  }
  .row-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .row-name {
    font-size: 11px;
  }
  .row-icon {
    width: 30px;
    height: 35px;
    grid-row: 1/3;
  }
  .process-strip {
    gap: 14px;
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .process-strip > div {
    padding-left: 37px;
  }
  .process-strip strong {
    font-size: 11px;
  }
  .process-strip p {
    font-size: 10px;
  }
  .work-heading {
    align-items: flex-start;
  }
  .work-heading > .badge {
    margin-top: 30px;
  }
  .stepper {
    gap: 8px;
  }
  .stepper > div {
    font-size: 9px;
    gap: 5px;
  }
  .inspector {
    grid-template-columns: 1fr;
  }
  .document-block {
    padding: 16px;
  }
  .block-text {
    font-size: 12px;
  }
  .document-block[data-role='title'] .block-text {
    font-size: 18px;
  }
  .tabs {
    gap: 16px;
  }
  .tab {
    font-size: 10px;
  }
  .toolbar-note {
    font-size: 8px;
    max-width: 95px;
  }
  .preview-toolbar {
    flex-wrap: wrap;
  }
  #preview-frame {
    height: 620px;
  }
  .upload-panel.busy {
    opacity: 0.6;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Reading sizes and independent document scrolling. */
.topbar {
  font-size: 12px;
}
.nav-link {
  font-size: 14px;
}
.brand-caption {
  font-size: 11px;
  line-height: 1.5;
}
.sidebar-note strong {
  font-size: 14px;
}
.sidebar-note p {
  font-size: 12px;
}
.workspace-label {
  font-size: 10px;
}
.sidebar-bottom {
  font-size: 11px;
}
.button {
  font-size: 13px;
  min-height: 44px;
}
.button svg {
  width: 17px;
  height: 17px;
}
.eyebrow {
  font-size: 10px;
}
.small-label {
  font-size: 10px;
}
.page-heading p {
  font-size: 14px;
}
.upload-copy p {
  font-size: 13px;
}
.upload-example p {
  font-size: 12px;
}
.text-button {
  font-size: 12px;
}
.file-limit {
  font-size: 11px;
}
.section-heading h2 {
  font-size: 18px;
}
.section-heading p {
  font-size: 12px;
}
.search-field input {
  font-size: 12px;
  width: 150px;
}
.row-name {
  font-size: 14px;
}
.row-sub,
.row-date {
  font-size: 11px;
}
.badge {
  font-size: 11px;
}
.empty-state h3 {
  font-size: 15px;
}
.empty-state p {
  font-size: 13px;
}
.process-strip strong {
  font-size: 12px;
}
.process-strip p {
  font-size: 11px;
}
.work-heading p {
  font-size: 12px;
}
.stepper > div {
  font-size: 12px;
}
.tab {
  font-size: 13px;
}
.toolbar-note {
  font-size: 12px;
}
.block-header {
  font-size: 10px;
}
.role-tag {
  font-size: 10px;
}
.block-text {
  font-size: 15px;
}
.document-block table {
  font-size: 13px;
}
.inspector {
  position: sticky;
  top: 20px;
}
.inspector-card h3 {
  font-size: 16px;
}
.inspector-card p {
  font-size: 12px;
}
.field-label,
.field-row label {
  font-size: 12px;
}
.inspector select,
.inspector input:not([type='checkbox']) {
  font-size: 13px;
  min-height: 40px;
}
.source-hint {
  font-size: 11px;
}
.template-tile strong {
  font-size: 12px;
}
.template-tile div > span {
  font-size: 10px;
}
.settings-card .button {
  font-size: 12px;
}
.settings-card .localization-error {
  color: #a03e24;
}
.review-check {
  font-size: 12px;
}
#summary-counts {
  font-size: 12px;
}
.issues-panel {
  font-size: 13px;
}
#block-map {
  max-height: 780px;
  overflow-y: auto;
  padding: 2px 5px 2px 2px;
  scrollbar-color: #ccd9c3 transparent;
  scrollbar-width: thin;
}
#block-dialog select {
  width: 100%;
  font-size: 14px;
  border: 1px solid #cbdabd;
  border-radius: 8px;
  padding: 12px;
  margin: 3px 0 20px;
}
#mobile-block-text {
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}
@media (max-width: 800px) {
  .inspector {
    position: static;
  }
  .topbar {
    font-size: 11px;
  }
  .sidebar nav .nav-link {
    font-size: 12px;
  }
  .page-heading p {
    font-size: 13px;
  }
  #block-map {
    max-height: 65vh;
  }
  .editor-toolbar {
    gap: 16px;
  }
  .toolbar-note {
    font-size: 11px;
  }
  .block-text {
    font-size: 14px;
  }
  .work-heading > .badge {
    font-size: 10px;
  }
}
@media (max-width: 520px) {
  .help-link {
    font-size: 0;
  }
  .search-field input {
    width: 83px;
    font-size: 11px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .page-heading > .button {
    font-size: 11px;
  }
  .upload-copy p {
    font-size: 13px;
  }
  .upload-copy h2 {
    font-size: 21px;
  }
  .file-limit {
    font-size: 11px;
  }
  .tab {
    font-size: 12px;
  }
  .toolbar-note {
    font-size: 10px;
    max-width: 100px;
  }
  .stepper > div {
    font-size: 10px;
  }
  .work-row .row-name {
    font-size: 13px;
  }
  .document-block[data-role='title'] .block-text {
    font-size: 20px;
  }
  .process-strip strong {
    font-size: 12px;
  }
  .process-strip p {
    font-size: 11px;
  }
}
/* Document semantics stay visible while reviewing source blocks. */
.document-block[data-role='instruction'] {
  background: #fffbee;
  border-color: #dfc96e;
}
.role-tag.instruction {
  background: #f7ecc5;
  color: #6d5c22;
}
.document-block[data-role='caption'] .block-text {
  font-size: 0.95em;
}
.document-block[data-role='heading'] .block-text {
  font-weight: 700;
  font-size: 1.1em;
}
.document-block[data-role='callout'] {
  border-inline-start: 4px solid #759476;
}
.block-link {
  font-size: 12px;
  color: #65765f;
  margin: 10px 0;
}
.text-green {
  color: #00843a;
}
.text-red {
  color: #b52d2d;
}
.text-center {
  text-align: center;
}
.worker-highlight {
  background: #fff1a8;
}
#reanalyze-button {
  margin-top: 16px;
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 18px;
}
.document-actions .button {
  padding: 10px 14px;
  min-height: 40px;
}
.block-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e4e8e1;
}
.block-edit-actions button {
  min-height: 36px;
}
.table-image-button {
  display: block;
  margin-top: 8px;
}
#edit-selected-block {
  margin-top: 14px;
}
#block-editor-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
#block-editor-dialog input:not([type='checkbox']),
#block-editor-dialog select,
#block-editor-dialog textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #cad4c6;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #24362f;
}
#block-editor-dialog textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
#block-editor-dialog textarea:focus {
  outline: 2px solid #28674f;
  outline-offset: 2px;
}
#editor-cells {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#editor-cells textarea {
  margin-top: 8px;
}
#editor-table-size {
  margin-top: 16px;
}
.editor-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.editor-error {
  color: #a33929;
}
@media (max-width: 520px) {
  #block-editor-dialog {
    padding: 24px 18px;
  }
  .document-actions .button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .block-edit-actions {
    gap: 12px;
  }
}
.document-block[data-role='quote'] {
  border-inline-start: 4px solid #a8bfae;
  background: #f7f9f7;
}
#theme-settings,
#editor-macro-tools {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line, #dce3d8);
  border-radius: 8px;
}
#theme-settings summary,
#editor-macro-tools summary {
  cursor: pointer;
  font-weight: 600;
}
#editor-existing-macros .button {
  margin-top: 8px;
  text-align: start;
}
.macro-fragment {
  border-bottom: 2px dotted #286c58;
}
.issue-jump {
  margin-inline-start: 10px;
}
.editor-toolbar {
  flex-wrap: wrap;
}
.editor-toolbar > label {
  font-size: 12px;
  display: grid;
  gap: 4px;
  max-width: 100%;
}
.editor-toolbar > label select {
  margin-top: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.recognition-panel {
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid #dac595;
  border-radius: 10px;
  background: #fffaf0;
}
.recognition-panel summary {
  cursor: pointer;
  font-weight: 600;
}
.recognition-panel li {
  margin-block: 12px;
}
.block-review-note,
.review-hints {
  padding: 12px;
  margin-block: 12px;
  border-inline-start: 3px solid #b18a3c;
  background: #fffaf0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.block-review-note strong,
.block-review-note span {
  display: block;
}
.block-review-note strong {
  margin-bottom: 4px;
}
.review-hints p {
  margin: 0 0 8px;
}
.empty-block-filter {
  padding: 24px;
  color: var(--muted);
}
.collage-controls {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #f5f8f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.collage-controls select {
  display: block;
  width: 100%;
  max-width: 360px;
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.collage-controls p {
  margin: 8px 0 0;
}
/* Full backups are available from both the work list and the editor. */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
#backups-dialog {
  width: min(720px, calc(100vw - 32px));
}
.backup-item {
  border: 1px solid var(--border, #dce4d7);
  border-radius: 12px;
  padding: 18px;
  margin-block: 16px;
}
.backup-path {
  overflow-wrap: anywhere;
  font-size: 13px;
  user-select: all;
}
.backup-note {
  color: #68766c;
  font-size: 14px;
}
.backup-verified {
  color: #27634f;
}
.backup-error {
  color: #ad3232;
}
@media (max-width: 600px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar-actions {
    gap: 12px;
  }
}
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  background: #fff;
  border: 1px solid #dce4d7;
  border-radius: 20px;
  padding: 36px;
  width: min(480px, 100%);
}
.auth-card h1 {
  font-size: 30px;
  line-height: 1.2;
}
.auth-card label,
#account-form label,
#password-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-block: 14px;
}
.auth-card input,
#account-form input,
#account-form select,
#password-form input,
.workflow-panel select,
.workflow-panel textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #dce4d7;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}
#account-form input[type='checkbox'] {
  width: auto;
  align-self: flex-start;
}
#auth-error,
#account-error,
#profile-error {
  color: #ad3232;
}
#accounts-dialog,
#audit-dialog {
  width: min(720px, calc(100vw - 32px));
}
.account-row,
.audit-event {
  padding-block: 14px;
  border-bottom: 1px solid #dce4d7;
  overflow-wrap: anywhere;
}
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.workflow-panel {
  background: #fff;
  border: 1px solid #dce4d7;
  border-radius: 12px;
  padding: 20px;
  margin-block: 18px;
}
.review-queue-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 16px;
}
.review-queue-filter select {
  max-width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.review-note-form {
  border-block: 1px solid var(--line);
  padding-block: 16px;
  margin-block: 16px;
}
.review-note-form label {
  display: block;
  margin-bottom: 12px;
}
.review-note-form label select,
.review-note-form label textarea {
  margin-top: 6px;
}
.review-note {
  padding: 16px;
  margin-block: 12px;
  border: 1px solid #e5c58f;
  border-radius: 8px;
  background: #fffaf0;
  overflow-wrap: anywhere;
}
.review-note.resolved {
  border-color: #dce4d7;
  background: #f5f8f2;
}
.review-note p,
.review-note-excerpt {
  white-space: pre-wrap;
}
.review-note .button {
  display: block;
  margin-top: 12px;
}
.review-note details {
  margin-block: 8px;
}
.review-notes > summary {
  font-weight: 600;
}
.workflow-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block: 12px;
}
.workflow-controls select {
  width: auto;
  flex: 1 1 180px;
}
.review-feedback {
  margin-top: 16px;
  border-inline-start: 3px solid #79a99c;
  padding-inline-start: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-feedback small {
  display: block;
}
.review-feedback > .text-button {
  margin-top: 6px;
}
#editor-current-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
}
@media (max-width: 600px) {
  .auth-card {
    padding: 24px;
  }
  .workflow-controls .button {
    width: 100%;
  }
}

.codex-guide-link {
  margin-top: 16px;
}
#codex-guide-dialog {
  width: min(760px, calc(100vw - 32px));
}
.codex-guide-text {
  width: 100%;
  resize: vertical;
  font-size: 14px;
  line-height: 1.55;
}
.guide-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 16px;
}
.editor-avatar-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin-block: 12px;
}
.avatar-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.avatar-choice {
  border: 1px solid var(--line, #dce4da);
  background: white;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: inherit;
  font-size: 12px;
}
.avatar-choice img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin: auto;
}
.avatar-choice.selected {
  outline: 2px solid #296951;
}
#page-settings-dialog {
  width: min(860px, calc(100% - 32px));
  max-width: 860px;
  max-height: 90dvh;
  overflow: auto;
}
#page-settings-dialog input,
#page-settings-dialog select {
  width: 100%;
  min-width: 0;
}
.settings-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 18px;
}
.settings-categories button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 20px;
  cursor: pointer;
}
.settings-categories button[aria-pressed='true'] {
  background: #286850;
  color: white;
}
.settings-section {
  border-top: 1px solid var(--line);
  padding-block: 16px;
}
.settings-section h3 {
  margin: 0 0 14px;
}
.style-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-block: 12px;
}
.style-sample {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 12px;
  text-align: start;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.style-sample[aria-pressed='true'] {
  outline: 2px solid #286850;
}
.style-sample-preview {
  color: #0b625b;
  padding: 10px 6px;
}
.style-sample--soft .style-sample-preview {
  background: #edf5f1;
  border-radius: 4px;
}
.style-sample--panel .style-sample-preview {
  background: #edf5f1;
  border-inline-start: 3px solid #0b625b;
  border-radius: 4px;
}
.style-sample--source .style-sample-preview {
  color: #677760;
}
.block-style-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 10px;
}
.block-style-samples .style-sample {
  position: relative;
  min-width: 0;
  padding: 14px 10px 10px;
}
.block-style-samples .style-sample-preview {
  color: var(--sample-accent);
  min-height: 64px;
  display: grid;
  align-content: center;
}
.block-style-samples .style-sample--soft .style-sample-preview,
.block-style-samples .style-sample--panel .style-sample-preview {
  background: color-mix(in srgb, var(--sample-accent) 9%, white);
  border-color: var(--sample-accent);
}
.block-style-samples .style-sample[aria-pressed='true']::after {
  content: '✓';
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 4px;
  color: #286850;
  font-weight: 700;
}
.inspector .block-style-samples {
  grid-template-columns: 1fr;
}
.inspector .block-style-samples .style-sample {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.inspector .block-style-samples .style-sample-preview {
  min-height: 44px;
}
[id$='-role-search'] {
  width: 100%;
  padding-inline-end: 44px;
}
.role-picker {
  position: relative;
  margin-bottom: 14px;
}
.role-picker > input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbdabd;
  border-radius: 8px;
  padding: 10px 44px 10px 12px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
#block-editor-dialog .role-picker input,
#block-dialog .role-picker input,
.inspector .role-picker input {
  padding-inline-end: 44px;
}
.role-picker-toggle {
  position: absolute;
  inset-inline-end: 3px;
  top: 3px;
  width: 38px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.role-picker-options {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  max-height: min(300px, 35dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.role-picker-category {
  padding: 10px 12px 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.role-picker-option {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  color: var(--ink);
  padding: 12px;
  text-align: start;
  font-size: 14px;
  min-height: 44px;
  white-space: normal;
}
.role-picker-option.active,
.role-picker-option:hover {
  background: #edf5f1;
}
.role-picker-option[aria-selected='true'] {
  font-weight: 700;
  color: var(--green-dark);
}
.role-picker-status:empty {
  display: none;
}
[id$='-appearance-fields'] {
  margin-block: 16px;
}
@media (max-width: 600px) {
  #block-editor-dialog .role-picker input,
  #block-dialog .role-picker input {
    font-size: 16px;
  }
  #page-settings-dialog {
    padding: 20px 16px;
  }
  .style-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.template-toolbar,
.template-preview-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-block: 20px;
}
.template-toolbar label {
  flex: 1;
  min-width: 180px;
  display: grid;
  gap: 8px;
}
.template-toolbar input[type='search'],
.template-toolbar select,
#template-kit-form input,
#template-kit-form select,
#template-kit-form textarea,
#template-detail-dialog select,
#template-detail-dialog textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #dce4d7;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}
.template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.template-card {
  background: white;
  border: 1px solid var(--line, #dce4d8);
  border-radius: 16px;
  padding: 24px;
}
.template-card h3 {
  margin-top: 0;
}
.template-card > button {
  margin: 6px 8px 0 0;
}
#geo-manager {
  margin-block: 0 20px;
}
#template-preferences-dialog,
#geo-dialog {
  width: min(820px, calc(100% - 32px));
}
#template-preferences-dialog label,
#geo-dialog label {
  display: grid;
  gap: 8px;
  margin-block: 12px;
}
#template-preferences-dialog select,
#template-preferences-dialog input[type='search'],
#geo-dialog select,
#geo-dialog input:not([type='checkbox']) {
  width: 100%;
  padding: 12px;
  min-height: 44px;
  font: inherit;
  border: 1px solid #dce4d7;
  border-radius: 8px;
  background: white;
  color: inherit;
}
#pref-fields,
#geo-edit-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.choice-picker {
  margin-block: 16px;
}
.choice-tools {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.choice-list {
  max-height: 250px;
  overflow: auto;
  border: 1px solid #dce4d7;
  border-radius: 8px;
  padding: 8px;
}
#template-preferences-dialog .choice-option,
#geo-dialog .choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
}
.choice-option input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.choice-option:has(input:checked) {
  background: #edf5f1;
}
@media (max-width: 600px) {
  #template-preferences-dialog,
  #geo-dialog {
    padding: 24px 16px;
  }
  #template-preferences-dialog input,
  #template-preferences-dialog select,
  #geo-dialog input,
  #geo-dialog select {
    font-size: 16px;
  }
}
.template-error {
  color: #a32121;
}
#template-kit-dialog {
  max-width: 720px;
}
#template-kit-form {
  display: grid;
  gap: 16px;
}
#template-kit-form label,
#template-detail-dialog label {
  display: grid;
  gap: 8px;
}
#template-detail-dialog {
  width: calc(100% - 32px);
  max-width: 1400px;
}
#template-preview-frame {
  display: block;
  width: 100%;
  height: 560px;
  border: 1px solid #dce4d8;
  margin-inline: auto;
  background: white;
}
#template-detail-actions {
  align-items: center;
}
#build-verification {
  margin: 12px 20px;
}
#typography-review {
  margin: 12px 20px;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1px solid #ddcda9;
  border-radius: 8px;
}
#typography-review p {
  margin: 8px 0;
}
#typography-review summary {
  cursor: pointer;
}
@media (max-width: 600px) {
  .template-toolbar {
    align-items: stretch;
  }
  .template-toolbar label {
    flex-basis: 100%;
  }
  #template-kit-dialog {
    padding: 24px 16px;
  }
  .template-toolbar input,
  .template-toolbar select,
  #template-kit-form input,
  #template-kit-form select,
  #template-kit-form textarea,
  #template-detail-dialog select,
  #template-detail-dialog textarea {
    font-size: 16px;
  }
  .template-toolbar > button {
    width: 100%;
  }
  #template-detail-dialog {
    padding: 24px 16px;
  }
  #template-preview-frame {
    height: 480px;
  }
}

.style-sample--plain .style-sample-preview {
  background: none;
  color: var(--sample-accent, #0b625b);
}
.style-sample--muted .style-sample-preview {
  color: #526568;
}
.style-sample--brand .style-sample-preview {
  color: var(--sample-accent, #0b625b);
  background: #edf5f1;
  border: 1px solid #c6dbd2;
  border-block-start: 4px solid var(--sample-accent, #0b625b);
  border-radius: 10px;
}

.role-tag.head-comment {
  background: #e9eef3;
  color: #526779;
}
.document-block[data-role='head-comment'] {
  border-color: #a7b7c5;
}

.workflow-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.locale-suggestion {
  padding: 16px;
  border: 1px solid #dce4d7;
  border-radius: 8px;
  background: #f8faf5;
  margin-block: 16px;
}

.locale-picker {
  position: relative;
  min-width: 0;
}
.locale-picker-options {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 4;
  max-height: 260px;
  margin: 0;
  background: white;
  box-shadow: 0 6px 18px #20382e20;
}
.locale-picker-hint {
  display: block;
  margin-block: 8px;
  font-weight: normal;
}

#recognition-diff-dialog { width: min(850px, calc(100% - 24px)); max-height: 85vh; overflow: auto; }
.recognition-change { border-bottom: 1px solid var(--line); padding: 16px 0; overflow-wrap: anywhere; }
#build-size li { overflow-wrap: anywhere; }
