:root {
  color-scheme: light;
  --canvas: #f1f4f0;
  --surface: #ffffff;
  --ink: #1b2a24;
  --quiet: #5a6b61;
  --line: #dce5dc;
  --pine: #19372e;
  --pine-hover: #284c3d;
  --mint: #e4efdf;
  --focus: #377f58;
  --danger: #962f35;
  --bar-height: 64px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; font-size: 14px; line-height: 1.55; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 6px;
}

.icon { flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle; }
.shell { width: min(100% - 72px, 1260px); margin-inline: auto; }

.ops-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #132c25;
  color: #edf6ee;
}

.masthead {
  min-height: var(--bar-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.arj-header-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.arj-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  height: 34px;
  overflow: hidden;
  mix-blend-mode: screen;
}

.arj-brand-logo img {
  display: block;
  flex: 0 0 auto;
  width: 120%;
  height: auto;
  filter: invert(1) hue-rotate(180deg) saturate(0.8) brightness(1.23);
}

.nav-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #e9f6e6;
  background: #25463a;
  border-radius: 7px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-current .icon { width: 16px; height: 16px; }
.account, .account form { display: flex; align-items: center; }
.account { gap: 21px; margin-left: auto; }
.account form { gap: 9px; }

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4e4d9;
  white-space: nowrap;
}

.site-link:hover { color: #fff; }
.site-link .icon { width: 15px; height: 15px; }
.account-name {
  max-width: 134px;
  overflow: hidden;
  color: #d4e4d9;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.button, .icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}

.icon-button { min-height: 36px; width: 36px; padding: 0; }
.icon-button:hover, .button-secondary:hover { background: #edf3ed; border-color: #cbd9ce; }
.button-primary { background: var(--pine); color: #fff; border-color: var(--pine); }
.button-primary:hover { background: var(--pine-hover); border-color: var(--pine-hover); }
.button-secondary { background: var(--surface); border-color: var(--line); }
.button:disabled { background: #e8eee8; border-color: #e8eee8; color: #68776e; }
.logout:hover { background: #25463a; border-color: #406755; }

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 43px;
  margin-bottom: 23px;
}

.page-heading h1, .editor-heading h1 { font-size: 30px; font-weight: 730; line-height: 1.24; }
.case-manager, .article-workspace, .article-settings, .login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.case-manager { margin-bottom: 40px; overflow: hidden; }

.list-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  padding: 16px 22px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #edf2ec;
}

.segmented button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  color: #576b60;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 650;
  white-space: nowrap;
}

.segmented button:hover { color: var(--pine); }
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--pine);
  box-shadow: 0 1px 3px #23392c1c;
}
.segmented button span { font-size: 12px; }
.segmented .icon { width: 16px; height: 16px; }

.list-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(280px, 100%);
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--quiet);
}

.list-search:focus-within { border-color: var(--focus); }
.list-search input { flex: 1; width: 100%; min-width: 0; min-height: 38px; outline: none; border: 0; background: none; }
.case-columns, .case-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 104px 62px 102px 38px;
  gap: 22px;
  padding-inline: 22px;
}

.case-columns {
  min-height: 39px;
  background: #f6f8f5;
  border-top: 1px solid #edf2ed;
  border-bottom: 1px solid #edf2ed;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 650;
}

.case-rows { padding: 0; margin: 0; list-style: none; }
.case-row { min-height: 88px; padding-block: 13px; }
.case-row + .case-row { border-top: 1px solid #edf2ed; }
.case-row:hover { background: #f7faf6; }

.row-content { display: flex; gap: 14px; align-items: center; min-width: 0; }
.row-picture {
  display: grid;
  flex: 0 0 70px;
  width: 70px;
  aspect-ratio: 1.5;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #6c8c79;
  background: #eaf1e9;
}

.row-picture img { width: 100%; height: 100%; object-fit: cover; }
.row-copy { min-width: 0; }
.row-copy strong { display: block; font-size: 15px; }
.row-copy small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--quiet);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.row-date, .row-order { color: var(--quiet); font-size: 13px; }
.row-order { font-variant-numeric: tabular-nums; }
.edit-link { border-color: var(--line); color: #3e574a; }

.status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #edf1ed;
  color: #47594e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: #246045; background: #deefde; }
.status-edited { color: #745323; background: #f7edd9; }
.empty-state { display: grid; gap: 12px; place-items: center; padding: 53px 20px; color: var(--quiet); }
.empty-state .icon { width: 26px; height: 26px; }

.editing-shell { padding-bottom: 46px; }
.editor-top {
  position: sticky;
  top: var(--bar-height);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0 15px;
  background: var(--canvas);
}

.editor-heading, .editor-actions { display: flex; align-items: center; gap: 9px; }
.editor-heading { gap: 12px; }
.editor-heading h1 { font-size: 25px; white-space: nowrap; }
.back-button { color: #294539; background: #e7eee6; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 20px; align-items: start; }
.article-workspace { min-width: 0; }
.article-meta {
  display: grid;
  gap: 14px;
  padding: 22px 29px 20px;
}
.article-title-field {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.article-title-field > label {
  display: block;
  margin-bottom: 4px;
  color: #384f43;
  font-size: 13px;
  font-weight: 650;
}
.article-title-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 1px 0;
  resize: none;
  overflow: hidden;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 30px;
  font-weight: 750;
  line-height: 1.42;
}

.article-title-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.case-headline-fields { display: grid; gap: 12px; }
.case-headline-fields textarea {
  resize: none;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
}
.format-bar {
  position: sticky;
  top: calc(var(--bar-height) + var(--editor-actions-height, 74px));
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #f7f9f6;
  border-block: 1px solid #e7eee6;
}
.tools { display: flex; align-items: center; gap: 2px; }
.tools + .tools { padding-left: 6px; border-left: 1px solid var(--line); }
.tools-history { margin-left: auto; }
.tools button {
  display: grid;
  width: 36px;
  height: 35px;
  place-items: center;
  padding: 0;
  color: #334b3e;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}
.tools button:not(:disabled):hover { background: #e8efe6; }
.tools button[aria-pressed="true"] { background: #dcebdc; color: #163d2b; }
.tools button:disabled { color: #7f8b83; opacity: .65; pointer-events: none; }
.format-tool { position: relative; display: grid; }
.paragraph-tools { position: relative; }
.tools button[data-format="paragraphStyle"] {
  display: flex;
  width: 103px;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  background: #edf2ec;
}
.tools button[data-format="paragraphStyle"] .icon { width: 15px; height: 15px; }
.paragraph-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 4;
  display: grid;
  width: 151px;
  gap: 2px;
  padding: 5px;
  border: 1px solid #d7e3d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 23px #233c2c24;
}
.paragraph-menu button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  text-align: left;
}
.paragraph-menu button .icon { visibility: hidden; width: 15px; height: 15px; }
.paragraph-menu button[aria-checked="true"] { background: #edf4eb; }
.paragraph-menu button[aria-checked="true"] .icon { visibility: visible; }
.paragraph-menu button[data-paragraph-style="heading2"] span { font-size: 15px; font-weight: 750; }
.paragraph-menu button[data-paragraph-style="heading3"] span { font-weight: 730; }
.format-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 1;
  width: max-content;
  padding: 6px 9px;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}
.format-tooltip::before {
  position: absolute;
  bottom: 100%;
  left: calc(50% - 4px);
  border: 4px solid transparent;
  border-bottom-color: #000;
  content: "";
}
.format-tool button:focus-visible + .format-tooltip { visibility: visible; }
@media (hover: hover) {
  .format-tool:hover .format-tooltip { visibility: visible; }
}
.format-tool button[aria-expanded="true"] + .format-tooltip { visibility: hidden; }
.tiptap { min-height: 450px; padding: 25px 30px 38px; outline: none; }
.tiptap:focus-visible { outline: none; }
.article-workspace:has(.tiptap:focus-visible) { border-color: #89a993; }
.tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: #728378;
  pointer-events: none;
}
.tiptap .ProseMirror-selectednode { outline: 2px solid var(--focus); outline-offset: 2px; }
.tiptap .selectedCell { background: #d9eadf; }

.article-settings { min-width: 0; padding: 19px; }
.article-settings h2 { margin-bottom: 13px; font-size: 17px; font-weight: 730; }
.case-card-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.cover-zone { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #edf4ec; }
.cover-zone.is-invalid { outline: 2px solid var(--danger); outline-offset: -2px; }
.cover-zone.is-dragging { outline: 3px solid var(--focus); outline-offset: -3px; }
.cover-zone > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-pick, .inline-pick {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #426450;
  font-weight: 660;
}
.cover-pick:hover, .inline-pick:hover { background: #e3eee1; }
.cover-pick:focus-visible { outline-offset: -5px; }
.cover-pick .icon { width: 24px; height: 24px; }
.cover-pick-hint { color: var(--quiet); font-size: 12px; font-weight: 500; }
.cover-zone.is-invalid .cover-pick-hint { color: var(--danger); }
.cover-actions { position: absolute; right: 9px; bottom: 9px; display: flex; gap: 5px; }
.button-frost { min-height: 34px; padding-block: 5px; border-color: #fff; background: #ffffffef; color: #22392c; }
.button-frost:hover { background: #fff; }
.cover-actions .icon-button { width: 34px; min-height: 34px; }
.cover-actions .icon { width: 16px; height: 16px; }
.cover-copy {
  padding: 13px;
}
.cover-copy > :is(strong, p) {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.cover-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 725;
  line-height: 1.42;
}
.cover-copy p { margin-top: 5px; color: var(--quiet); font-size: 13px; }
.cover-copy .is-placeholder { color: #718276; }
.ordering, .case-live-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.ordering label { font-weight: 650; }
.stepper { display: inline-flex; min-height: 36px; align-items: stretch; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.stepper button { min-height: 34px; width: 32px; border: 0; border-radius: 0; }
.stepper input { width: 49px; padding: 0 3px; border: 0; border-inline: 1px solid var(--line); text-align: center; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.stepper input:focus-visible { outline-offset: -2px; }

.field-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; color: #384f43; font-size: 13px; font-weight: 650; }
.field :is(input, textarea) { width: 100%; min-width: 0; min-height: 43px; padding: 8px 11px; border: 1px solid #cfdccf; border-radius: 7px; background: #fbfcfa; color: var(--ink); font-weight: 500; }
.field :is(input, textarea):focus { outline: 1px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.compact-field { margin-top: 13px; }
.compact-field input { min-height: 37px; }
.field-error, .text-danger { color: var(--danger); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: #355e48;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 660;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link.text-danger { color: var(--danger); }
.text-link .icon { width: 15px; height: 15px; }

.notice {
  margin: 9px 0 13px;
  padding: 10px 13px;
  border: 1px solid #d6e6d6;
  border-radius: 7px;
  background: #edf6ec;
  color: #305a43;
}
.notice-error { border-color: #edd5d6; background: #fff1f1; color: var(--danger); }
.success-toast {
  position: fixed;
  top: calc(var(--bar-height) + 12px);
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 6px 20px #1616161f;
  color: var(--ink);
  font-weight: 650;
  pointer-events: none;
}
.success-toast .icon { color: #246045; }
.login-shell { display: grid; min-height: 100vh; place-items: center; }
.login-panel { width: min(430px, 100%); padding: 34px 36px 38px; box-shadow: 0 14px 44px #27413216; }
.login-brand { margin-bottom: 24px; }
.login-brand .arj-header-brand { color: var(--ink); }
.login-brand .arj-brand-logo { margin-inline-start: -7px; mix-blend-mode: multiply; }
.login-brand .arj-brand-logo img { filter: none; }
.login-panel h1 { margin-bottom: 22px; font-size: 27px; }
.login-panel .button { margin-top: 6px; min-height: 44px; }
.error-page { margin: 40px auto; max-width: 540px; }

dialog {
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 14%), 0 2px 8px rgb(0 0 0 / 5%);
}
dialog::backdrop { background: rgb(0 0 0 / 26%); }
.tool-dialog { width: min(430px, calc(100vw - 28px)); }
.tool-dialog > form { display: grid; padding: 18px; gap: 14px; }
.dialog-top, .preview-top, .dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-top h2, .preview-top h2 { font-size: 17px; font-weight: 720; white-space: nowrap; }
.dialog-actions :last-child { margin-left: auto; }
.inline-pick { min-height: 115px; padding: 0; border: 1px dashed #b6cbbd; border-radius: 8px; background: #f1f6f0; overflow: hidden; }
.inline-pick img { width: 100%; max-height: 190px; object-fit: contain; }
.inline-pick span { display: flex; align-items: center; gap: 8px; }
.table-dimensions, .table-commands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.table-dimensions { margin-bottom: 16px; }
.table-dimensions input { appearance: textfield; }
.table-dimensions input::-webkit-inner-spin-button { appearance: none; }
html:has(.preview-dialog[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.preview-dialog {
  width: min(1510px, calc(100vw - 40px));
  height: min(1040px, calc(100dvh - 44px));
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.preview-top > .icon-button { justify-self: end; }
.preview-panel {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  background: #eeefee;
}
#preview-status { padding: 20px; color: var(--quiet); text-align: center; }
.preview-browser {
  box-sizing: content-box;
  flex: 0 0 auto;
  width: calc(var(--preview-width) * var(--preview-scale, 1));
  overflow: hidden;
  border: 1px solid #d8d9d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px #1616161a;
}
.preview-address {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border-bottom: 1px solid #e4e5e4;
  background: #f9f9f9;
  color: #535753;
  font-size: 12px;
}
.preview-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-viewport {
  position: relative;
  height: calc(var(--preview-height) * var(--preview-scale, 1));
  overflow: hidden;
  background: #fff;
}
#preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--preview-width);
  height: var(--preview-height);
  border: 0;
  transform: scale(var(--preview-scale, 1));
  transform-origin: top left;
}
.preview-dialog[data-size="phone"] .preview-browser {
  padding: 5px;
  border-color: #202220;
  border-radius: 24px;
  background: #202220;
}
.preview-dialog[data-size="phone"] .preview-address { border-radius: 18px 18px 0 0; }
.preview-dialog[data-size="phone"] .preview-viewport { border-radius: 0 0 18px 18px; }

@media (max-width: 990px) {
  .shell { width: calc(100% - 46px); }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 278px; gap: 14px; }
  .case-columns, .case-row { grid-template-columns: minmax(0, 1fr) 76px 48px 92px 36px; gap: 12px; }
  .tools-history { margin-left: 0; }
}
@media (max-width: 720px) {
  :root { --bar-height: 57px; }
  .shell { width: calc(100% - 30px); }
  .masthead { gap: 10px; }
  .arj-header-brand { gap: 7px; font-size: 12px; }
  .arj-brand-logo { width: clamp(104px, 30vw, 124px); height: 28px; }
  .nav-current { padding: 6px 8px; font-size: 12px; }
  .nav-current .icon, .site-link, .account-name { display: none; }
  .account { gap: 0; }
  .page-heading { padding-top: 27px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 26px; }
  .list-controls { gap: 11px; padding: 12px 13px; }
  .case-columns, .case-row { padding-inline: 13px; }
  .editor-top { flex-wrap: wrap; padding: 11px 0; gap: 9px 12px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .editor-heading { gap: 8px; }
  .editor-heading h1 { font-size: 22px; }
  .success-toast { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
  .article-meta { padding: 16px 17px; }
  .article-title-input { min-height: 36px; font-size: 24px; }
  .format-bar { padding: 7px 9px; }
  .format-tool > button { width: 34px; }
  .paragraph-menu button { min-height: 44px; }
  .tiptap { padding: 17px; min-height: 275px; }
  .article-settings { padding: 15px; }
}
@media (max-width: 520px) {
  .list-controls { align-items: stretch; flex-direction: column; }
  .list-controls .segmented { align-self: flex-start; }
  .list-search { width: 100%; }
  .case-columns { display: none; }
  .case-row { grid-template-columns: minmax(0, 1fr) 56px 36px; gap: 3px 8px; min-height: 78px; }
  .case-row .status { grid-column: 2; grid-row: 1; }
  .row-order, .row-date { display: none; }
  .edit-link { grid-column: 3; grid-row: 1; }
  .row-content { gap: 9px; }
  .row-picture { flex-basis: 48px; width: 48px; }
  .row-copy strong { font-size: 14px; overflow-wrap: anywhere; }
  .row-copy small { font-size: 12px; }
  .editor-actions { gap: 5px; }
  .editor-actions .button { min-height: 36px; padding-inline: 10px; font-size: 13px; }
  .preview-dialog { width: calc(100vw - 16px); height: calc(100dvh - 20px); }
  .preview-top { padding: 8px; gap: 4px; }
  .preview-panel { padding: 8px; }
  .preview-top h2 { font-size: 14px; }
  .preview-top .segmented button { padding-inline: 7px; font-size: 12px; }
  .preview-top .segmented .icon { display: none; }
}
@media (max-width: 355px) {
  .arj-header-brand { font-size: 11px; }
  .arj-brand-logo { width: 29vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 520px) and (max-height: 550px) {
  .format-bar { position: relative; top: auto; }
}
