/* Only production behaviors absent from the reference; the four reference stylesheets own the layout. */
[hidden] {
  display: none !important;
}
.sidebar__logo {
  width: 218px;
}
.content {
  min-width: 0;
}
.sidebar {
  min-width: 0;
}
.tw-body textarea {
  resize: vertical;
}
.seg__src {
  overflow-wrap: anywhere;
}
.seg__input {
  min-height: 90px;
  white-space: pre-wrap;
}
.seg__input--heading {
  min-height: 50px;
  font-weight: 700;
}
.seg-token-help {
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 6px;
}
.toast-region {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  max-width: min(500px, 90vw);
  display: grid;
  gap: 8px;
}
.toast-region > div {
  background: var(--navy);
  color: var(--on-navy);
  padding: 14px 20px;
  border-radius: var(--r);
  box-shadow: var(--sh-3);
}
.toast-region .error {
  background: var(--danger);
  color: white;
}
.workflow-dialog {
  padding: 0;
  width: min(860px, 96vw);
  max-height: 92dvh;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.workflow-dialog::backdrop {
  background: #102a3b88;
  backdrop-filter: blur(4px);
}
.workflow-dialog .dialog {
  width: 100%;
  margin: 0;
  max-width: none;
}
.workflow-dialog iframe {
  width: 100%;
  height: 70vh;
  border: 0;
}
.workflow-dialog textarea {
  width: 100%;
  min-height: 260px;
}
.block__edit {
  width: 100%;
  resize: vertical;
  min-height: 45px;
}
.block__tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.editor-canvas .block {
  grid-template-columns: 16px minmax(0, 1fr) auto;
}
.editor-canvas .block--image img {
  max-height: 220px;
  object-fit: contain;
}
.editor-hero img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.preview-frame {
  width: 100%;
  height: 290px;
  border: 0;
  background: white;
}
.collection-row-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.journal-cover {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--surface-2);
}
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}
.cover-card {
  display: block;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
}
.cover-card h3 {
  margin: 12px 0 6px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
}
.contact-list {
  max-height: 70vh;
  overflow: auto;
}
.contact-list button {
  display: flex;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 14px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.contact-list button[aria-current] {
  background: var(--accent-soft);
}
.contact-list small {
  display: block;
  color: var(--ink-3);
}
.readonly-note {
  padding: 12px;
  background: var(--info-soft);
  color: var(--info);
  margin-bottom: 20px;
  border-radius: var(--r);
}
.import-table input {
  min-width: 80px;
  width: 100%;
}
.import-table {
  min-width: 600px;
}
.table-scroll {
  overflow: auto;
}
.workflow-log {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-2);
  padding: 18px;
  border-radius: var(--r);
}
.quicknav__scroll {
  max-height: none;
  overflow: visible;
}
.qn-de {
  display: block;
}
.media-browser {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.media-browser img {
  height: 90px;
  object-fit: contain;
  width: 100%;
}
.media-browser button {
  white-space: normal;
  height: auto;
  padding: 8px;
}
.field:has(input[type="checkbox"]) {
  flex-direction: row;
}
.savebar {
  z-index: 35;
}
.tw-footer {
  z-index: 35;
}
.seg__tools {
  flex-wrap: wrap;
}
.tw-langbar__col {
  flex-wrap: wrap;
}
.tw-langbar select {
  max-width: 180px;
}
.tw-langbar .segmented {
  flex-wrap: wrap;
}
.qn-link {
  overflow-wrap: anywhere;
}
.publication-steps {
  display: grid;
  gap: 14px;
}
.publication-steps li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  list-style: none;
}
.source-pick {
  font-size: 12px;
  width: 100%;
  margin: 8px 0;
}
.sidebar .nav-group:empty {
  display: none;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.table td {
  overflow-wrap: anywhere;
}
.empty {
  padding: 32px;
  text-align: center;
}
.hint-box {
  border: 1px solid var(--warn-line);
  background: var(--warn-soft);
  padding: 12px;
  border-radius: 8px;
}
.tw-side {
  min-width: 0;
}
.url-hero input {
  min-width: 0;
}
.breadcrumbs {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-list {
    max-height: 260px;
  }
  .editor-canvas .block {
    grid-template-columns: 12px minmax(0, 1fr);
  }
  .block__tools {
    grid-column: 2;
  }
  .tw-footer,
  .savebar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .tw-footer .btn-group,
  .savebar .btn-group {
    flex-wrap: wrap;
  }
  .content {
    padding-bottom: 160px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .page-head__actions {
    flex-wrap: wrap;
  }
  .tw-langbar {
    position: static;
  }
  .tw-langbar__col {
    padding: 12px;
  }
  .form-grid {
    min-width: 0;
  }
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journal-cover {
    height: 160px;
  }
  .topbar {
    min-width: 0;
  }
  .topbar .omnibox {
    min-width: 0;
  }
  .seg__tools .btn {
    font-size: 11px;
  }
  .table-scroll {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .tw-langbar {
    grid-template-columns: 1fr;
  }
  .seg {
    grid-template-columns: 1fr;
  }
  .seg__src {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .cover-grid {
    gap: 10px;
  }
  .topbar .publish-pill {
    display: none;
  }
  .editor-layout {
    min-width: 0;
  }
  .editor-canvas {
    padding: 16px;
  }
  .input-group {
    min-width: 0;
  }
  .input-group .input {
    min-width: 0;
  }
  .url-hero .input-group {
    flex-wrap: wrap;
  }
  .url-hero .input-group .btn {
    width: 100%;
  }
  .btn-group {
    flex-wrap: wrap;
  }
}
/* Native controls and real data can be wider than the example values. */
.dropzone input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 13px;
}
.dropzone {
  min-width: 0;
}
.publication-steps {
  padding: 0;
}
.card__body > .field + .field {
  margin-top: 16px;
}
.tabs .is-active {
  color: var(--ink);
}
.tabs .is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}
.dialog__head > [data-close] {
  margin-left: auto;
}
.btn--quiet[aria-pressed="true"] {
  background: var(--accent-soft);
}
.stepper .t {
  overflow-wrap: anywhere;
}
.block__edit {
  resize: none;
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.list-item:last-child {
  border-bottom: 0;
}
.seg__input {
  resize: none;
}
.seg__tools .btn[aria-pressed="true"] {
  background: var(--ok-soft);
  color: var(--ok);
}
@media (max-width: 480px) {
  .publication-steps li {
    overflow-wrap: anywhere;
  }
  .stepper {
    gap: 4px;
  }
  .stepper li {
    font-size: 12px;
    gap: 5px;
    padding-right: 3px;
  }
  .stepper li::after {
    min-width: 4px;
  }
  .workflow-dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .profile-head {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .grid--sidebar > *,
  .editor-layout > *,
  .upload-layout > * {
    min-width: 0;
  }
}
[data-publish-start] {
  max-width: 100%;
  height: auto;
  white-space: normal;
  text-align: center;
}
.toolbar > .input {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
}
.toolbar > .select {
  width: auto;
  max-width: 100%;
}
.toolbar .search {
  flex: 1 1 220px;
  min-width: 0;
}
.mb-32 {
  margin-bottom: 32px;
}
.language-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
  min-width: 0;
}
.language-label > span {
  overflow-wrap: anywhere;
}
.language-picker {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
}
.field > .language-picker { width: 100%; }
.language-picker__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: auto;
  min-height: 40px;
  background-image: none;
  padding-right: 12px;
  text-align: left;
  white-space: normal;
}
.language-picker__button > .i { flex: none; }
.language-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-3);
  overflow: auto;
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: inherit;
  text-align: left;
}
.language-option:hover, .language-option:focus-visible { background: var(--surface-2); }
.language-option[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.language-option > .i { visibility: hidden; flex: none; }
.language-option[aria-selected="true"] > .i { visibility: visible; }
.page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.qn-de .flag { width: 14px; height: 10px; vertical-align: middle; }
.page-tree .tree-row { padding: 3px 4px; gap: 7px; }
.tree-page-link, .tree-folder-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  color: var(--ink);
  text-align: left;
  white-space: normal;
}
.tree-folder-link { border: 0; background: none; }
.tree-page-link > span, .tree-folder-link > span { overflow-wrap: anywhere; }
.tree-folder-link small { color: var(--ink-3); font-weight: normal; }
.tree-toggle, .tree-toggle-spacer { flex: 0 0 32px; }
.tree-toggle[aria-expanded="true"] > .i { transform: rotate(90deg); }
.tree-status { margin: 0 0 6px 44px; }
.tree-open { flex: none; }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
@media (max-width: 600px) {
  .page-tree ul { margin-left: 8px; padding-left: 8px; }
  .page-tree .tree-row { flex-wrap: wrap; }
  .tree-page-link, .tree-folder-link { flex-basis: calc(100% - 45px); }
  .tree-open { margin: 0 0 7px 39px; }
  .tree-folder-link small { display: none; }
}
