:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #0a1730;
  background: #eef3fb;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.field.publication-language small {
  display: block;
  margin: 6px 0 0;
  color: #34425e;
  font-weight: 400;
  line-height: 1.5;
}
.extra-language-section {
  margin: -4px 0 22px;
  font-size: 12px;
  color: #34425e;
}
.extra-language-section summary {
  cursor: pointer;
}
.extra-language-section summary small {
  color: #5d6b85;
  font-weight: 400;
}
.extra-language-section p {
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-header {
  height: 86px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe6f3;
  background: #f5f7fc;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 17px;
}
.brand strong {
  font-weight: 750;
}
.brand small {
  display: block;
  color: #5d6b85;
  font-size: 11px;
  margin-top: 5px;
  letter-spacing: 0.3px;
}
.brand-icon {
  font-size: 31px;
  font-weight: 800;
  background: #22a33a;
  color: #eef3fb;
  border-radius: 13px;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  letter-spacing: -2px;
  padding-right: 3px;
}
.version {
  font-size: 11px;
  color: #5d6b85;
  border: 1px solid #dfe6f3;
  border-radius: 30px;
  padding: 8px 12px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
#new-publication {
  border: 1px solid #0a1730;
  border-radius: 8px;
  padding: 11px 16px;
  background: #22a33a;
  color: #fff;
  font-weight: 600;
}
#new-publication:hover {
  background: #22a33a;
}
@media (max-width: 700px) {
  .app-header {
    height: auto;
    min-height: 86px;
    padding-block: 14px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .header-actions .version {
    display: none;
  }
  #new-publication {
    max-width: 165px;
    padding: 9px 12px;
  }
}
.workspace {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: calc(100dvh - 86px);
}
.editor {
  background: #f5f7fc;
  border-right: 1px solid #dfe6f3;
  padding: 30px 26px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #8794ad;
}
h1 {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -1.2px;
  margin: 16px 0 12px;
}
.intro p {
  font-size: 12px;
  line-height: 1.7;
  color: #5d6b85;
  margin: 0 0 24px;
}
.dropzone {
  border: 1px dashed #b8c4da;
  background: #eef3fb;
  min-height: 140px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  margin-bottom: 23px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
}
.dropzone strong {
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropzone > span:last-of-type {
  font-size: 10px;
  color: #5d6b85;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.file-icon {
  font-size: 25px;
  color: #5d6b85;
}
.field {
  display: block;
  font-weight: 600;
  font-size: 11px;
  margin: 15px 0;
}
.field small {
  color: #8794ad;
  font-weight: 400;
  margin-left: 4px;
}
.field input,
.field select,
.video-row input,
.video-row select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #dfe6f3;
  background: white;
  color: #0a1730;
  padding: 11px;
  border-radius: 6px;
  font-size: 12px;
}
.field input::placeholder {
  color: #8794ad;
}
.columns {
  display: flex;
  align-items: center;
  gap: 20px;
}
.columns .field {
  flex: 1;
}
.check {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.check input {
  accent-color: #1b3366;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
}
.section-title h2 {
  font-size: 12px;
  font-weight: 600;
}
.subtle {
  border: 0;
  background: transparent;
  color: #34425e;
  padding: 6px;
  font-size: 10px;
}
.videos-section > p {
  font-size: 10px;
  line-height: 1.6;
  color: #8794ad;
  margin: 0 0 13px;
}
.video-row {
  padding: 13px;
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  margin: 12px 0;
  background: #f5f7fc;
}
.video-row label {
  font-size: 10px;
  color: #5d6b85;
}
.video-row input,
.video-row select {
  padding: 7px;
  margin: 4px 0 10px;
  font-size: 11px;
}
.video-position {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.video-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}
.video-row button {
  border: 0;
  background: transparent;
  color: #8a6c62;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #22a33a;
  color: white;
  padding: 15px 18px;
  border: 0;
  border-radius: 7px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  margin-top: 22px;
}
.primary:hover {
  background: #1b8a30;
}
.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary span {
  font-size: 18px;
}
.privacy-note {
  font-size: 9px;
  color: #8794ad;
  text-align: center;
  margin-top: 20px;
}
#progress {
  font-size: 11px;
  line-height: 1.7;
  color: #34425e;
  margin-top: 12px;
}
.preview-area {
  padding: 30px 32px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: sticky;
  top: 0;
  height: calc(100dvh - 86px);
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
  min-height: 42px;
  gap: 15px;
}
.preview-header .eyebrow {
  display: block;
  margin-bottom: 6px;
}
.preview-header select {
  border: 0;
  background: transparent;
  color: #0a1730;
  font-size: 16px;
  max-width: 360px;
  padding: 0;
  cursor: pointer;
}
.preview-header a {
  font-size: 11px;
  white-space: nowrap;
}
.export {
  border: 1px solid #b8c4da;
  padding: 10px 12px;
  border-radius: 6px;
  margin-left: 15px;
}
#preview-frame {
  flex: 1;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dfe6f3;
  background: #e6edf8;
  box-shadow: 0 7px 30px #28442508;
}
#preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5d6b85;
  text-align: center;
  padding: 20px;
}
.book-symbol {
  font-family: Georgia;
  font-size: 88px;
  line-height: 1;
  color: #b8c4da;
  letter-spacing: -28px;
  padding-right: 28px;
}
.empty-state h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #1b3366;
  margin: 25px 0 5px;
}
.empty-state p {
  font-size: 12px;
}
.empty-state > span {
  margin-top: 30px;
  font-size: 10px;
  color: #8794ad;
}
.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #5d6b85;
  padding: 18px 2px;
  gap: 10px;
}
.preview-footer a {
  margin-left: 15px;
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 300px 1fr;
  }
  .editor {
    padding: 25px 20px;
  }
  .preview-area {
    padding: 25px 18px;
  }
  .preview-header {
    flex-wrap: wrap;
  }
  .preview-header select {
    max-width: 260px;
  }
}
@media (max-width: 760px) {
  .app-header {
    padding: 14px 18px;
  }
  .version {
    display: none;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .preview-area {
    position: static;
    height: 80vh;
    min-height: 650px;
  }
  .editor {
    border-right: 0;
  }
  .intro h1 br {
    display: none;
  }
  .preview-header select {
    max-width: 230px;
  }
  .brand {
    font-size: 15px;
  }
}
.branding-section {
  border-top: 1px solid var(--line, #dfe6f3);
  margin: 24px 0;
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.branding-section summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
}
.branding-section p,
.branding-section small {
  color: #5d6b85;
}
.branding-section input[type='color'] {
  height: 40px;
  padding: 4px;
  cursor: pointer;
}
.color-input-group {
  display: flex;
  gap: 6px;
}
.color-input-group input[type='color'] {
  width: 36px;
  flex: 0 0 36px;
}
.color-input-group input[type='text'] {
  min-width: 0;
  height: 40px;
  padding: 8px;
}
.branding-section input[type='file'] {
  font-size: 12px;
  max-width: 100%;
}

.viewer-controls,
.viewer-languages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 20px;
}
.viewer-section .check {
  font-size: 12px;
}
.viewer-section summary {
  font-weight: 600;
}
.editor-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.editor-tabs button {
  border: 1px solid #dfe6f3;
  border-radius: 6px;
  padding: 9px 12px;
  background: transparent;
  color: #34425e;
  font-size: 12px;
}
.editor-tabs button[aria-selected='true'] {
  background: #22a33a;
  border-color: #1b3366;
  color: white;
}
#preview-status {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 10px 14px;
  background: #e6edf8;
  color: #1b3366;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}
#preview-status[hidden] {
  /* Reserve the same space while idle: a status message must never move the
     page underneath a precise video placement. */
  display: block !important;
  visibility: hidden;
}
.visual-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #e6edf8;
}
.page-editor-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.page-editor-header button {
  flex-shrink: 0;
}
.page-editor-header button,
.page-actions button {
  padding: 7px;
  font-size: 10px;
  border: 1px solid #dfe6f3;
  border-radius: 5px;
  color: #1b3366;
  background: #fff;
}
#page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}
.page-card {
  padding: 12px;
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}
.page-card.drag-over {
  outline: 3px solid #34425e;
}
.page-card strong {
  font-size: 12px;
}
.page-card small {
  display: block;
  font-size: 10px;
  margin: 10px 0;
  color: #5d6b85;
}
.page-thumb {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
  background: #e6edf8;
}
.page-thumb img {
  max-width: 100%;
  max-height: 100%;
}
.split-thumb img {
  max-width: none;
  width: 200%;
  max-height: none;
  position: absolute;
}
.split-thumb.left img {
  left: 0;
}
.split-thumb.right img {
  right: 0;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
#video-help {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.video-canvas {
  position: relative;
  flex: 1;
  min-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
}
#video-stage {
  position: relative;
  width: min(100%, 700px);
  overflow: hidden;
  box-shadow: 0 3px 18px #213a2226;
  flex-shrink: 0;
  margin: 0 auto;
  background: white;
}
#video-stage:empty {
  display: none;
}
#video-stage > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.video-placement {
  position: absolute;
  border: 2px solid #34425e;
  background: #16734f26;
  color: white;
  display: grid;
  place-items: center;
  cursor: move;
  touch-action: none;
  user-select: none;
}
.video-placement span {
  padding: 5px 9px;
  background: #124b37cc;
  border-radius: 4px;
  pointer-events: none;
  font-size: 13px;
}
.resize-video {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  background: white;
  border: 2px solid #34425e;
  cursor: nwse-resize;
  touch-action: none;
}
.place-video {
  text-decoration: underline;
}
[data-editor-panel='video'] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.video-zoom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.video-zoom button,
.video-zoom select {
  border: 1px solid #b8c4da;
  border-radius: 5px;
  background: #fff;
  color: #1b3366;
  padding: 7px 10px;
}
.video-zoom small {
  color: #34425e;
}
.video-image-status {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 7px 10px;
  background: #fff;
  color: #1b3366;
  box-shadow: 0 1px 6px #0002;
  font-size: 12px;
  z-index: 4;
}
.first-page-preview {
  width: 100%;
  height: 100%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.first-page-preview img {
  max-width: 100%;
  max-height: calc(100% - 50px);
  object-fit: contain;
}
.first-page-preview p {
  font-size: 12px;
}
#analytics-help {
  font-size: 10px;
  color: #5d6b85;
  line-height: 1.5;
}
.preview-footer {
  flex-wrap: wrap;
}
#preview-frame {
  min-height: 250px;
}
@media (min-width: 761px) {
  .preview-area {
    height: 100dvh;
  }
}

.order-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe6f3;
}
.order-section h2 {
  font-size: 16px;
  margin: 0 0 16px;
}
.order-section .check {
  margin: 12px 0;
}
#customer-email-panel {
  overflow: auto;
}
#customer-email-panel p {
  max-width: 75ch;
  line-height: 1.6;
}
#customer-email {
  box-sizing: border-box;
  width: 100%;
  padding: 18px;
  font: 14px/1.65 system-ui;
  border: 1px solid #b8c4da;
  border-radius: 8px;
  resize: vertical;
  color: #0a1730;
  background: white;
}
.email-actions {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}
.email-actions .primary {
  width: auto;
  margin: 0;
}
#email-checklist {
  display: block;
  max-width: 85ch;
  line-height: 1.6;
  color: #34425e;
}

.login-card {
  max-width: 440px;
  margin: 12vh auto;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 45px #163e2920;
}
.login-card input {
  width: 100%;
}
#projects-dialog,
#styles-dialog,
#replacement-dialog,
#revisions-dialog {
  width: min(850px, 94vw);
  max-height: 85vh;
  padding: 24px;
  border: 1px solid #dfe6f3;
  border-radius: 16px;
}
#projects-dialog::backdrop,
#styles-dialog::backdrop,
#replacement-dialog::backdrop,
#revisions-dialog::backdrop {
  background: #10271bd0;
}
.projects-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.project-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #dfe6f3;
}
.project-row div {
  flex: 1;
  min-width: 200px;
}
.project-row strong,
.project-row small {
  display: block;
}
.project-row small {
  margin-top: 5px;
}
#draft-status {
  font-size: 13px;
  color: #34425e;
  min-height: 20px;
}

#projects-open,
#commerce-open,
#hosting-open,
#gmail-open,
#publishing-open,
#styles-open,
#logout,
#projects-dialog button,
#styles-dialog button,
#replacement-dialog button,
#replacement-review button,
#revisions-dialog button,
.edit-history button,
.login-card button {
  border: 1px solid #b8c4da;
  border-radius: 8px;
  padding: 10px 15px;
  background: #f5f7fc;
  color: #0a1730;
  font-weight: 600;
}
#projects-dialog {
  color: #0a1730;
}
.library-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#styles-dialog input {
  width: 100%;
  box-sizing: border-box;
}
#projects-dialog h2 {
  margin: 6px 0 12px;
}
#projects-dialog button:hover,
#projects-open:hover,
#logout:hover {
  background: #e6edf8;
}
.login-card button[type='submit'],
.project-row button {
  background: #22a33a !important;
  color: white !important;
}
.login-card button[type='submit'] {
  width: 100%;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .app-header {
    height: auto;
    min-height: 86px;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
  }
  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-actions .version {
    display: none;
  }
}
@media (max-width: 480px) {
  .login-card {
    margin: 5vh 12px;
    padding: 24px;
  }
  #projects-open,
  #logout,
  #new-publication {
    padding: 9px 12px;
    font-size: 12px;
  }
  #projects-dialog {
    padding: 18px;
  }
}
.link-target-choice {
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
}
.link-target-images {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.link-target-images figure {
  margin: 0;
  max-width: 180px;
}
.link-target-images img {
  display: block;
  max-width: 150px;
  max-height: 220px;
  object-fit: contain;
}
.link-target-images figcaption {
  font-size: 13px;
  margin-top: 8px;
}
.link-target-choice select {
  max-width: 100%;
  min-height: 42px;
}
.ocr-section {
  margin: 1rem 0;
}
.ocr-section fieldset {
  border: 1px solid #dfe6f3;
  padding: 12px;
}
.ocr-section fieldset label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ocr-section input[type='checkbox'] {
  width: auto;
}
.reading-editor-layout {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.5fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
.reading-editor-layout > img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px #0002;
  position: sticky;
  top: 16px;
}
.reading-edit-block {
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.reading-edit-block textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
  font: 16px/1.5 system-ui;
}
.reading-edit-block select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 8px;
}
.reading-block-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reading-block-actions button,
#reading-add,
#reading-reset {
  font-size: 13px;
  padding: 8px 10px;
  margin: 4px 0;
}
.reading-editor-layout input[type='checkbox'] {
  width: auto;
}
@media (max-width: 1000px) {
  .reading-editor-layout {
    grid-template-columns: 1fr;
  }
  .reading-editor-layout > img {
    position: static;
    max-height: 50vh;
    object-fit: contain;
  }
}

.reading-edit-block select,
.reading-edit-block textarea,
#reading-page {
  border: 1px solid #dfe6f3;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  color: inherit;
  font: inherit;
}
.reading-block-actions button,
#reading-add,
#reading-reset {
  border: 1px solid #b8c4da;
  border-radius: 6px;
  background: #f5f7fc;
  color: #0a1730;
}
.reading-edit-block small {
  display: block;
  margin: 8px 0;
  line-height: 1.5;
}
.reading-edit-block small[hidden] {
  display: none;
}
.edit-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.edit-history button {
  font-size: 12px;
  padding: 7px 10px;
}
.edit-history small {
  flex: 1 1 220px;
  color: #34425e;
}
#revisions-dialog,
#styles-dialog {
  width: min(760px, 92vw);
  max-height: 85vh;
  overflow: auto;
}

#replacement-dialog {
  width: min(1100px, 95vw);
}
#replacement-fields {
  border: 0;
  padding: 0;
  min-width: 0;
}
#replacement-selections,
#replacement-targets {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
#replacement-selections label,
#replacement-targets label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.replacement-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.replacement-image-scroll {
  overflow: auto;
  max-height: 50vh;
  background: #dfe6f3;
}
.replacement-image-scroll img {
  display: block;
  width: var(--compare-zoom, 100%);
  max-width: none;
  height: auto;
}
.replacement-row {
  border-top: 1px solid #dfe6f3;
  padding: 0.75rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.replacement-row > label:first-child {
  flex: 1 1 300px;
}
.replacement-row select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}
#replacement-review {
  padding: 1rem;
  margin: 0.6rem 0;
  background: #fff6dd;
  border: 1px solid #d9c17f;
  border-radius: 8px;
}
#replacement-review-list > div {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}
#replacement-review-list input {
  width: auto;
  margin-right: 0.5rem;
}
@media (max-width: 600px) {
  .replacement-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}

.media-section {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid #dfe6f3;
}
.media-section h2 {
  font-size: 16px;
}
.media-section p,
.media-section small {
  font-size: 12px;
  line-height: 1.5;
}
.media-row {
  min-width: 0;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  background: #eef3fb;
}
.media-row legend {
  font-weight: 700;
}
.media-row > label,
.gallery-editor-photo label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0;
}
.media-row input:not([type='checkbox']),
.media-row select,
.media-row textarea {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.media-row textarea {
  min-height: 60px;
  resize: vertical;
  padding: 8px;
  border: 1px solid #dfe6f3;
  border-radius: 6px;
  font: inherit;
}
.media-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.media-row-actions button {
  border: 1px solid #b8c4da;
  border-radius: 6px;
  background: #fff;
  color: #0a1730;
  padding: 7px 9px;
  font: inherit;
  font-size: 12px;
}
.gallery-editor-photo {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #dfe6f3;
}
.gallery-editor-photo img {
  width: 64px;
  height: 72px;
  object-fit: contain;
}
.media-upload-status {
  color: #843e19;
  overflow-wrap: anywhere;
}
.video-placement .placement-media-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0.75;
  pointer-events: none;
}
.video-placement > span,
.resize-video {
  z-index: 2;
}
.placement-other {
  position: absolute;
  background: #e2be7155;
  border: 1px dashed #866322;
  color: #3b3020;
  overflow: hidden;
  font-size: 12px;
  cursor: pointer;
}
.video-placement {
  z-index: 2;
}
/* Local hosting settings stay outside the publication editor and its autosave. */
.gmail-dialog,
#hosting-dialog,
#publishing-dialog,
#retention-dialog,
#audience-dialog {
  width: min(800px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #b8c4da;
  border-radius: 16px;
  padding: 24px;
  color: #0a1730;
  background: #f5f7fc;
  box-shadow: 0 24px 80px #16362938;
}
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.gmail-dialog button,
#hosting-dialog button,
#publishing-dialog button,
#retention-dialog button,
#audience-dialog button {
  border: 1px solid #b8c4da;
  border-radius: 8px;
  padding: 10px 14px;
  background: #eef3fb;
  color: #0a1730;
  font: inherit;
  cursor: pointer;
}
.gmail-dialog button:disabled,
#hosting-dialog button:disabled,
#publishing-dialog button:disabled,
#retention-dialog button:disabled,
#audience-dialog button:disabled {
  opacity: 0.5;
  cursor: default;
}
#hosting-dialog #hosting-save {
  background: #22a33a;
  color: white;
  border-color: #0a1730;
}
.gmail-dialog::backdrop,
#hosting-dialog::backdrop,
#publishing-dialog::backdrop,
#retention-dialog::backdrop,
#audience-dialog::backdrop {
  background: #173a3366;
}
#hosting-fields,
#publishing-fields {
  border: 1px solid #dfe6f3;
  padding: 18px;
  margin-top: 16px;
  min-width: 0;
}
#hosting-fields label,
#publishing-fields label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.gmail-dialog input,
.gmail-dialog select,
.gmail-dialog textarea,
#hosting-fields input,
#hosting-fields select,
#hosting-fields textarea,
#publishing-fields input,
#publishing-fields select,
#publishing-fields textarea,
.publishing-job textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #b8c4da;
  border-radius: 6px;
  font: inherit;
}
#hosting-fields small {
  font-size: 12px;
}
.hosting-actions,
#hosting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
#hosting-status {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .hosting-grid {
    grid-template-columns: 1fr;
  }
}

#publishing-status,
#publishing-managers,
#publishing-review,
.publishing-job {
  overflow-wrap: anywhere;
}
#publishing-review,
.publishing-job {
  border: 1px solid #b8c4da;
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
}
#publishing-approve {
  background: #22a33a !important;
  color: white !important;
}
.publishing-job h4 {
  margin: 0;
}
.publishing-job-state {
  font-weight: 700;
}
.publishing-job progress {
  width: 100%;
}
.publishing-job summary {
  cursor: pointer;
}
#publishing-fields small {
  font-size: 12px;
}

#publishing-manage-fields {
  min-width: 0;
  padding: 18px;
  border: 1px solid #b8c4da;
}
#publishing-manage-fields label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
#publishing-manage-fields select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #b8c4da;
  border-radius: 6px;
  font: inherit;
}
#publishing-management-info {
  overflow-wrap: anywhere;
}
.publishing-reminder {
  font-weight: 700;
  color: #8a430a;
}

#audience-dialog fieldset {
  min-width: 0;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #dfe6f3;
}
#audience-dialog label {
  display: block;
  margin: 10px 0;
}
#audience-dialog input:not([type='checkbox']),
#audience-dialog select,
#audience-dialog textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  font: inherit;
  border: 1px solid #b8c4da;
  border-radius: 6px;
}
#audience-dialog button {
  margin: 4px 4px 4px 0;
}
#audience-dialog article,
#audience-dialog p {
  overflow-wrap: anywhere;
}
.audience-choices {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #dfe6f3;
  border-radius: 6px;
  padding: 12px;
}
.audience-choices strong {
  display: block;
  margin: 8px 0;
}
.audience-choices label,
#audience-dialog .audience-check {
  display: flex;
  gap: 8px;
  align-items: baseline;
  overflow-wrap: anywhere;
}
.audience-choices input[type='checkbox'],
#audience-dialog input[type='checkbox'] {
  width: auto;
  flex: 0 0 auto;
}

#retention-dialog .projects-heading {
  flex-wrap: wrap;
  gap: 10px;
}
#retention-dialog p,
#retention-dialog li {
  overflow-wrap: anywhere;
}
#retention-dialog fieldset {
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  padding: 16px;
}
#retention-dialog input {
  width: 100%;
  padding: 9px;
  border: 1px solid #b8c4da;
  border-radius: 5px;
}
#retention-dialog details {
  margin: 12px 0;
}
#retention-dialog summary {
  cursor: pointer;
  font-weight: 600;
}
#retention-dialog li {
  margin: 8px 0;
}
#retention-dialog .retention-error {
  color: #9d3227;
}
#retention-dialog [data-retention-action='approve'] {
  background: #8b3026;
  color: #fff;
}

.gmail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gmail-dialog label { display: grid; gap: .35rem; margin-block: .7rem; }
.gmail-dialog label.gmail-check { display: flex; align-items: center; gap: .5rem; }
.gmail-dialog .gmail-check input { width: auto; }
.gmail-dialog select, .gmail-dialog input, .gmail-dialog textarea { min-width: 0; max-width: 100%; }
.gmail-dialog p, .gmail-dialog a { overflow-wrap: anywhere; }
.gmail-dialog fieldset { min-width: 0; }
.gmail-dialog details { padding-block: .5rem; }
@media (max-width: 600px) { .gmail-grid { grid-template-columns: 1fr; } }

.gmail-dialog header { position: sticky; top: -24px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; background: #f5f7fc; }
.gmail-dialog header h2 { margin: 0; font-size: 21px; }
.gmail-dialog p { line-height: 1.55; }
.gmail-dialog a { text-decoration: underline; }
.gmail-dialog #gmail-fields { border: 0; padding: 0; margin: 0; }
.gmail-dialog #gmail-account-settings { border: 0; padding: 0; margin-block: 22px 0; }
.gmail-dialog #gmail-connect, .gmail-dialog #gmail-save { background: #22a33a; color: white; }
.gmail-dialog #gmail-status:not(:empty) { background: #eef3fb; border-radius: 8px; padding: 12px; }
#customer-mail-dialog { width: min(980px, calc(100vw - 32px)); }
#mail-controls { padding: 0; border: 0; min-width: 0; }
#customer-mail-dialog h3 { margin-top: 28px; }
#mail-review, #mail-form { scroll-margin-top: 74px; }
#mail-status:not(:empty) { padding: 12px; background: #eef3fb; border-radius: 8px; }
#mail-save-state { font-size: 13px; }
#mail-details { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 6px 16px; }
#mail-details dt { font-weight: 600; }
#mail-details dd { margin: 0; overflow-wrap: anywhere; }
#mail-html { display: block; width: 100%; height: 370px; margin-block: 12px; box-sizing: border-box; border: 1px solid #dfe6f3; background: white; border-radius: 6px; }
#mail-text { width: 100%; font: 13px/1.5 monospace; }
#mail-prepare, #mail-send { background: #22a33a; color: white; }
#mail-outcome { padding: 12px; background: #eef3fb; border-radius: 8px; }
#mail-uncertain { padding: 16px; background: #fff3d4; border-radius: 8px; }
.mail-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #dfe6f3; }
.mail-attachment span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.mail-history-item { border-top: 1px solid #dfe6f3; padding-block: 12px; }
.mail-history-item p { white-space: pre-line; }
#mail-review-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
#mail-review-attachments button { overflow-wrap: anywhere; max-width: 100%; }
#mail-history { margin-top: 28px; }
@media (max-width: 600px) { #mail-details { grid-template-columns: minmax(0, 1fr); gap: 3px; } #mail-details dd { margin-bottom: 10px; } #customer-mail-dialog { padding: 16px; } }
/* Order intake uses the same dialog and controls as the other Studio connections. */
.commerce-dialog { max-width: min(980px, calc(100vw - 28px)); }
.commerce-dialog fieldset { min-width: 0; }
#commerce-fields { border: 0; padding: 0; margin: 0; }
.commerce-dialog label { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; min-width: 0; }
.commerce-dialog input:not([type=checkbox]), .commerce-dialog select { width: 100%; min-width: 0; box-sizing: border-box; }
.commerce-dialog input[type=checkbox] { align-self: flex-start; width: 20px; height: 20px; }
.commerce-dialog p, .commerce-dialog li, .commerce-card span { overflow-wrap: anywhere; }
.commerce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.commerce-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #dfe6f3; }
.commerce-card span { flex: 1 1 200px; min-width: 0; }
.commerce-card input[type=number] { max-width: 80px; }
.commerce-extra { border-top: 1px solid #dfe6f3; margin-top: 16px; padding-top: 12px; }
.commerce-extra pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; background: #eef3fb; padding: 10px; }
#commerce-status { min-height: 1.5em; }
#commerce-issues { padding-left: 20px; }
@media (max-width: 600px) { .commerce-grid { grid-template-columns: minmax(0, 1fr); } }
/* Keep connection buttons within the header when all local tools are available. */
.app-header { height: auto; min-height: 86px; gap: 18px; padding-block: 16px; }
.app-header .brand { flex-shrink: 0; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; }
@media (max-width: 850px) { .header-actions { justify-content: flex-start; } }

/* Instellingen ophalen uit vorige publicatie */
.settings-import {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #dfe6f3;
}
.settings-import .field {
  margin: 0;
}
.settings-import button {
  justify-self: start;
  padding: 8px 16px;
  border: 1px solid #b8c4da;
  border-radius: 6px;
  background: #fff;
  color: #0a1730;
  font-weight: 600;
}
.settings-import button:hover:not(:disabled) {
  border-color: #0a1730;
}
.settings-import small {
  color: #34425e;
}
#settings-import-status {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#settings-import-status:empty {
  display: none;
}


/* Huisstijl Digitaal Publiceren (ontwerp v2 van de website, november 2026): navy, groene knoppen, Bricolage Grotesque + Inter. */
:root {
  --navy: #0a1730; --navy-2: #11234a; --blue: #2563eb; --blue-ink: #1d4fc4; --blue-soft: #e8efff;
  --sun: #fec854; --green: #22a33a; --green-hover: #1b8a30; --paper: #fff; --paper-2: #f5f7fc; --line: #dfe6f3;
  --ink: #0a1730; --ink-2: #34425e; --muted: #5d6b85;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper-2);
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.app-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; min-height: 78px; }
.brand { gap: 12px; }
.brand-logo { display: block; width: 180px; height: 46px; background: url('data:image/png;base64,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') left center / contain no-repeat; }
.brand-studio { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); background: var(--sun); border-radius: 999px; padding: 5px 12px; }
.header-actions button { border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); padding: 10px 16px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.header-actions button:hover { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-soft); }
.header-actions #new-publication { background: var(--green); border-color: var(--green); color: #fff; padding: 11px 20px; font-weight: 700; }
.header-actions #new-publication:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.version { border-radius: 999px; }
.primary { background: var(--green); border-radius: 999px; font-size: 14px; font-weight: 700; padding: 15px 22px; }
.primary:hover { background: var(--green-hover); }
/* Voorbeeldvlak als de donkere hero van de website; tabs en knoppen afgerond. */
#preview-frame { border-radius: 18px; border: 0; background: radial-gradient(120% 90% at 85% 0%, #1b3366 0%, var(--navy-2) 45%, var(--navy) 100%); box-shadow: 0 1px 2px rgba(10,23,48,.06), 0 12px 32px -12px rgba(10,23,48,.18); }
.empty-state { color: #b8c4da; }
.empty-state h2 { font-family: var(--display); font-weight: 800; font-size: 34px; color: #fff; letter-spacing: -0.02em; }
.empty-state > span { color: #8794ad; }
.editor-tabs button, .edit-history button { border-radius: 999px; padding: 9px 14px; font-weight: 600; background: var(--paper); }
.editor-tabs button:hover:not(:disabled), .edit-history button:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-soft); }
.editor-tabs button[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']), select, textarea { border-radius: 10px; }
dialog { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px -24px rgba(5,12,30,.55); }

/* Voortgang van omzetten tot online (hoofdstuk 548). */
.pipeline { margin: 14px 0 6px; }
.pipeline-steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; margin-bottom: 6px; }
.pipeline-steps span { padding: 2px 8px; border-radius: 999px; background: #eef2f4; color: #5b6b73; }
.pipeline-steps span.active { background: #f2b51c; color: #1c2a30; font-weight: 600; }
.pipeline-steps span.done { background: #1f9d55; color: #fff; }
#pipeline-bar { width: 100%; height: 12px; accent-color: #1f9d55; }
#pipeline-detail { display: block; margin-top: 4px; color: #5b6b73; }
#publish-result { margin-top: 12px; padding: 12px; border-radius: 10px; background: #eef8f1; }
#publish-result p { margin: 0 0 8px; word-break: break-all; }
#mail-customer-help { display: block; margin-top: 6px; color: #5b6b73; }

/* Adreskeuze bij publiceren (hoofdstuk 549) */
dialog.address-choice { max-width: 34rem; border: 1px solid var(--line, #ccc); border-radius: 10px; padding: 1.25rem 1.5rem; }
dialog.address-choice::backdrop { background: rgb(0 0 0 / 0.35); }
dialog.address-choice h3 { margin-top: 0; }
dialog.address-choice p a { word-break: break-all; }
dialog.address-choice form { display: grid; gap: 0.5rem; margin-top: 1rem; }
dialog.address-choice label { display: grid; gap: 0.25rem; }

/* Bestellingen: teller op de knop en melding bij nieuwe bestellingen (hoofdstuk 554). */
#commerce-open.has-orders {
  background: #22a33a;
  border-color: #22a33a;
  color: #fff;
  font-weight: 700;
}
#commerce-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}
.commerce-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0a1730;
  color: #fff;
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  box-shadow: 0 12px 32px -12px rgba(10, 23, 48, 0.5);
}
.commerce-toast p {
  margin: 0;
  flex: 1;
  display: grid;
  font-size: 14px;
}
.commerce-toast p span {
  color: #c7d2e6;
}
.commerce-toast button {
  min-height: 36px;
}
.commerce-toast button[aria-label] {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 20px;
  padding: 0 6px;
}
