/* Editorial controls use the workbench palette. The reading surface uses paper. */
.editorial-board {
  grid-template-columns: minmax(0, 1.85fr) minmax(265px, 1fr);
  gap: clamp(14px, 1.7vw, 22px);
}

.editorial-board-heading { min-height: 60px; padding: 10px 18px; }
.editorial-board-heading .segmented { min-height: 36px; }
#editorialPlanList { display: grid; gap: 0; padding: 0 16px; }
#editorialPlanList .empty-state { padding: 32px 14px; }
.editorial-plan {
  grid-template-columns: minmax(86px, 19%) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 8px;
  transition: background-color var(--motion);
}
.editorial-plan + .editorial-plan { border-top: 1px solid var(--border); }
.editorial-plan:is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--accent) 55%, var(--card));
}
.editorial-plan-date {
  align-self: start;
  padding: 7px 9px;
  border-radius: var(--radius-md);
  background: var(--accent);
  border-inline-start: 2px solid var(--primary);
  line-height: 1.5;
}
.editorial-plan-date time { color: var(--accent-foreground); font-family: var(--font-numeric); font-size: 14px; font-weight: 680; }
.editorial-plan h3 { margin-top: 6px; font-size: 17px; line-height: 1.45; font-weight: 680; }
.editorial-plan-actions { gap: 5px 7px; margin-top: 9px; }
.editorial-plan-actions > a { padding-inline: 4px; }
.editorial-plan-detail[open] { padding: 8px 10px; border-inline-start: 2px solid var(--ring); border-radius: var(--radius-md); background: var(--muted); }
.editorial-plan-counts { gap: 5px 14px; }
.editorial-plan-counts dd { color: var(--primary); font-variant-numeric: tabular-nums; }
.editorial-performance { background: var(--card); }
#editorialPerformance { display: grid; gap: 0; padding: 0 16px; }
.editorial-performance-account,
.editorial-performance-account + .editorial-performance-account {
  padding: 15px 3px;
  background: var(--card);
}
.editorial-performance-account + .editorial-performance-account { border-top: 1px solid var(--border); }
.editorial-performance-account h3 { color: var(--foreground); font-size: 15px; font-weight: 680; }
.editorial-performance-account dl div + div { border-top: 1px solid var(--border); }
.editorial-performance-account dd strong { color: var(--primary); font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
.editorial-performance-note { background: var(--accent); color: var(--accent-foreground); }
.editorial-evidence-cohort { margin-block: 12px; }
.editorial-evidence-cohort + .editorial-evidence-cohort { padding-top: 10px; border-top: 1px solid var(--border); }
.editorial-evidence-cohort ul { margin: 4px 0 0; padding-inline-start: 16px; }
.editorial-evidence-cohort li + li { margin-top: 6px; }
.editorial-evidence-cohort small { display: block; color: var(--muted-foreground); }
.editorial-performance-rules { padding: 12px 18px; }
.metrics-import-entry { margin: 12px 18px 0; }
.metrics-import-rows { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.metrics-import-rows li { display: grid; gap: 3px; padding: 8px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.metrics-import-rows li span { font-size: .875rem; }
#metricsImportDialog[open], #creationEditor[open], #creationForm { display: flex; flex-direction: column; }
#creationForm { min-height: 0; }
:is(#metricsImportDialog, #creationEditor) .dialog-body { overflow-y: auto; }

.settings-layout { grid-template-columns: 160px minmax(0, 1fr); gap: clamp(14px, 1.8vw, 23px); }
.settings-nav {
  gap: 4px;
  padding: 6px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.settings-nav button { min-height: 40px; padding-inline: 11px; }
.settings-nav button.active {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: none;
  font-weight: 660;
}
.settings-nav button:hover:not(.active) { background: var(--muted); }
.settings-form .settings-group, :is(#view-account, #view-users) .account-panel {
  padding: clamp(17px, 2.1vw, 26px);
}
.settings-form .settings-group h2, :is(#view-account, #view-users) .account-panel h2 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 690;
}
.settings-form .settings-group > p, .settings-form .ai-panel-heading p { font-size: 13px; }
.settings-form .settings-group .form-grid { row-gap: 15px; }
.settings-form :is(.callback-box, .source-assistant, .writing-format) {
  border-radius: var(--radius-md);
  padding: 11px 13px;
}
.settings-form .source-assistant { border-inline-start: 2px solid var(--ring); background: var(--accent); }
.settings-form .settings-save {
  padding: 10px 13px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

/* Preserve the preview iframe's exact 320px and 390px reading widths. */
:is(.article-dialog, .layout-gallery-dialog, .article-history-dialog, #generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dialog);
}
:is(.article-dialog, .layout-gallery-dialog, .article-check-dialog, #generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) .dialog-heading {
  padding-block: 13px;
  background: var(--popover);
}
:is(.article-dialog, .layout-gallery-dialog, .article-check-dialog, #generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) .dialog-heading h2 {
  font-size: 19px;
  font-weight: 690;
}
.article-dialog[open] .article-layout { overscroll-behavior: contain; }
.article-editor { padding-block: 14px 26px; background: var(--background); }
.article-meta { margin-top: 5px; font-size: 12px; }
.article-editor > label { margin-block: 14px; font-size: 13px; }
.article-editor > label > :is(input, textarea) { min-height: 43px; padding: 9px 12px; }
.article-editor #articleTitle { font-size: 16px; font-weight: 620; }
.article-editor #articleBody { font-size: 14px; line-height: 1.85; }
.article-workflow {
  gap: 7px;
  padding: 9px 18px;
  background: var(--muted);
}
.article-workflow .secondary { min-height: 34px; background: var(--card); }
.article-workflow .secondary:hover:enabled,
.article-workflow #inspectArticle {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--accent-foreground);
}
.article-dialog .dialog-footer { padding-block: 11px; background: var(--card); }
.article-actions button { min-height: 36px; }
.article-section-fields, .article-designs, .article-images, .article-sources {
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}
.article-section-fields > strong, .article-images-heading > strong, .article-sources > strong { font-size: 14px; }
.article-section-edit { display: flex; align-items: end; flex-wrap: wrap; gap: 0 10px; }
.article-section-edit label:first-child { flex: 1 1 12em; min-width: 0; }
.article-section-edit select { max-width: 100%; }
.image-provenance-row { align-items: center; padding-block: 7px; }
.image-provenance-thumb { flex: none; width: 48px; height: 34px; border-radius: 4px; object-fit: cover; }
.image-provenance-details { display: flex; flex: 1 1 140px; flex-wrap: wrap; gap: 3px 7px; overflow-wrap: anywhere; }
.image-provenance-row > button { min-height: 36px; }
.article-cover-preview, .article-share-preview { margin: 6px 0 14px; }
.article-cover-preview > figcaption, .article-share-preview > figcaption { margin-bottom: 7px; color: var(--muted-foreground); font-size: 12px; }
.article-cover-preview img { display: block; width: 100%; height: auto; aspect-ratio: 2.35; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); object-fit: cover; }
.article-share-card { display: grid; grid-template-columns: minmax(0, 1fr) 72px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.article-share-card strong, .article-share-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.article-share-card strong { font-size: 15px; line-height: 1.4; }
.article-share-card p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.45; }
.article-share-card img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.article-share-card img[data-focus=left] { object-position: left center; }
.article-cover-fields { margin: 0; padding: 0; border: 0; }
.article-cover-fields label { margin-top: 0; }
.article-cover-feedback { margin: 0; font-size: 13px; }
.article-cover-feedback:not(:empty) { margin-top: 10px; }
@media (max-width: 850px) {
  #openArticleCover, #saveArticleCover, #articleCoverMode { min-height: 44px; }
}
.design-actions { gap: 7px; margin-block: 8px; }
.design-manual { padding-top: 8px; border-top: 1px solid var(--border); }
.preview-pane {
  padding-top: 15px;
  background: #eceee6;
}
.preview-toolbar { margin-bottom: 12px; }
.preview-label { color: var(--secondary-foreground); font-weight: 630; }
.preview-label .icon { color: var(--primary); }
.phone-preview {
  color-scheme: light;
  border-color: var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  color: #22262b;
  box-shadow: 0 6px 26px rgb(39 55 38 / .1);
}
.phone-preview h2 { color: inherit; font-size: 22px; font-weight: 700; }
.phone-preview .preview-byline { margin-block: 7px 12px; color: #626674; }
:is(.phone-preview, .layout-gallery-thumb, .layout-gallery-read) iframe { color-scheme: light; background: #fff; }

.layout-gallery-tools { padding: 12px 18px; background: var(--card); }
.layout-gallery-grid {
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  padding: 15px;
  background: var(--canvas);
  overscroll-behavior: contain;
}
.layout-gallery-card {
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--motion), box-shadow var(--motion);
}
.layout-gallery-card:is(:hover, :focus-within) {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}
.layout-gallery-thumb {
  flex: none;
  padding-top: 12px;
  background: var(--muted);
}
.layout-gallery-thumb iframe { box-shadow: var(--shadow-sm); }
.layout-gallery-caption { gap: 6px; padding: 13px; }
.layout-gallery-caption > strong { font-size: 14px; font-weight: 670; }
.layout-gallery-caption > p { font-size: 12px; }
.layout-gallery-caption .secondary {
  min-height: 35px;
  color: var(--accent-foreground);
  background: var(--accent);
  border-color: var(--accent-border);
}
.layout-gallery-caption .secondary:hover:enabled { border-color: var(--primary); }
.layout-gallery-pager { padding-block: 10px; background: var(--card); }
.layout-gallery-read { padding-block: 12px 16px; }
.layout-gallery-read iframe { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.article-inspector { width: min(554px, 100vw); }
.article-check-body, .article-history-body { background: var(--canvas); }
.article-check-metrics { gap: 8px; }
.article-check-metrics > div {
  padding: 10px 11px;
  background: var(--muted);
}
.article-check-metrics dd { font-family: var(--font-numeric); font-size: 24px; font-weight: 680; font-variant-numeric: tabular-nums; }
.article-check-section { padding: 13px; margin-top: 10px; background: var(--card); line-height: 1.65; }
.article-check-section h3 { margin-bottom: 7px; font-size: 14px; font-weight: 670; }
.article-check-issues li { padding-block: 7px; }
.article-check-issues button, .draft-evidence button { color: var(--primary); }
.article-check-section .article-check-blockers {
  padding: 9px 10px 9px 26px;
  background: var(--warn-fill);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-md);
}
.draft-brief div { padding-block: 5px; }
.draft-brief div + div { border-top: 1px solid var(--border); }
.draft-evidence blockquote {
  padding: 8px 10px;
  border-left-color: var(--primary);
  background: var(--muted);
}
.article-version-row, .article-version-pane { border-radius: var(--radius-md); padding: 11px; }
.article-version-row[aria-pressed="true"] { border-color: var(--primary); background: var(--accent); color: var(--primary); }
.article-version-changes { margin-bottom: 9px; }

:is(#generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) .dialog-body { padding-inline: 18px; }
#generateDialog { width: min(620px, calc(100vw - 24px)); }
#generateDialog .dialog-heading { position: sticky; top: 0; z-index: 1; }
:is(#generateDialog,#creationPicker) .dialog-heading h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: .035em; }
.topic-suggestions-heading h3 { font-size: 15px; }
.topic-suggestion-list { gap: 8px; }
.topic-suggestion { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.topic-suggestion:has([aria-pressed="true"]) { border-color: var(--ring); background: var(--accent); }
.topic-suggestion-list [data-suggestion] { min-height: 45px; padding: 10px 12px 4px; border-color: transparent; box-shadow: none; background: transparent; }
.topic-suggestion-list [data-suggestion][aria-pressed="true"] { border-color: transparent; background: transparent; color: var(--accent-foreground); }
.topic-suggestion-list [data-suggestion]:focus-visible { outline-offset: -2px; }
.topic-suggestion-list .topic-source { padding: 2px 6px; border-radius: 4px; background: var(--muted); color: var(--secondary-foreground); font-size: 11px; }
.topic-suggestion-copy strong { font-size: 14px; }
.topic-suggestion-copy small { font-size: 12px; }
.topic-source-links { gap: 6px 10px; padding: 0 10px 4px; }
.topic-source-links a { color: var(--primary); }
.reference-skill { padding: 13px; background: var(--muted); }
.editorial-result-metrics { padding: 10px 12px 13px; background: var(--muted); }

@media (max-width: 980px) {
  .editorial-board { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 850px) {
  .article-mobile-tabs { padding: 7px 12px; }
  .article-mobile-tabs .segmented { display: flex; width: 100%; }
  .article-mobile-tabs .segmented button { min-height: 36px; }
  .layout-gallery-grid { gap: 11px; padding: 12px; }
}

@media (max-width: 760px) {
  .settings-layout { display: block; }
  .settings-nav { gap: 3px; padding: 4px; }
  .settings-nav button { min-height: 44px; padding-inline: 4px; }
  .settings-form .settings-save { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (max-width: 500px) {
  .editorial-board-heading { min-height: 58px; padding-inline: 12px; }
  #editorialPlanList, #editorialPerformance { padding-inline: 11px; }
  .editorial-plan { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 3px; }
  .editorial-plan-date { justify-self: start; padding: 5px 8px; }
  .editorial-plan h3 { font-size: 16px; }
  .editorial-plan-actions :is(button, a) { min-height: 38px; }
  .editorial-performance-account, .editorial-performance-account + .editorial-performance-account { padding: 13px 3px; }
  #articleDialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  :is(.article-dialog, .layout-gallery-dialog, .article-check-dialog, #generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) .dialog-heading {
    padding: 10px 12px;
  }
  :is(.article-dialog, .layout-gallery-dialog, .article-check-dialog, #generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) .dialog-heading h2 {
    font-size: 17px;
  }
  .article-workflow { padding: 6px 12px; gap: 5px; }
  .article-workflow .secondary { flex: 1 1 40%; min-height: 38px; }
  .article-editor { padding: 8px 12px 18px; }
  .article-editor #articleBody, .article-editor #articleDigest { font-size: 16px; }
  .article-section-fields, .article-designs, .article-images, .article-sources { padding: 11px; }
  .article-dialog .dialog-footer { padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
  .article-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; gap: 5px; }
  .article-actions button { grid-column: span 2; min-height: 40px; font-size: 12px; }
  .article-actions button:nth-last-child(-n+2) { grid-column: span 3; }
  .article-actions #deleteArticle { margin: 0; }
  .preview-pane { padding-inline: 10px; }
  .phone-preview { border-radius: 13px; }
  .layout-gallery-tools { padding-inline: 12px; }
  .layout-gallery-caption :is(.text-button, .secondary) { min-height: 42px; }
  .layout-gallery-pager button { min-height: 44px; }
  .article-check-issues button, .draft-evidence button { min-height: 36px; }
  .article-version-row { flex-basis: 149px; }
  :is(#generateDialog, .reference-dialog, #editorialPlanDialog, #editorialResultDialog) .dialog-body { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-plan, .layout-gallery-card { transition: none; }
}
.creation-dialog {
  width: 650px;
}
.creation-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}
.creation-choice {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  min-height: 111px;
  padding: 15px;
  text-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transition: background-color var(--motion), border-color var(--motion);
}
.creation-choice:hover {
  border-color: var(--accent-border);
  background: var(--sidebar-accent);
}
.creation-choice-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-bottom: 2px;
  color: var(--primary);
  background: var(--accent);
  border-radius: var(--radius-md);
}
[data-creation="image"] { --format-ink: #914e36; --format-paper: #f6e7dc; }
[data-creation="library"] { --format-ink: #4a6373; --format-paper: #e5edef; }
[data-creation="podcast"] { --format-ink: #745575; --format-paper: #eee6ef; }
[data-creation="repost"] { --format-ink: #7c6432; --format-paper: #f2ead5; }
[data-creation="video"] { --format-ink: #415b82; --format-paper: #e7ebf3; }
[data-creation] .creation-choice-icon { color: var(--format-ink,var(--primary)); background: var(--format-paper,var(--accent)); }
.creation-shortcuts .creation-choice-icon { width: 30px; height: 30px; margin: 0; }
.creation-shortcuts .icon { width: 17px; height: 17px; }
.creation-choice[data-creation="article"] { border-color: var(--accent-border); background: #f5f8ef; }
.creation-choice strong,
.creation-choice small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.creation-choice small,
.creation-library-row small {
  color: var(--muted-foreground);
  line-height: 1.45;
}
.creation-library {
  padding: 14px 16px;
}
.creation-library-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
  margin-bottom: 12px;
}
.creation-library-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 55px;
  padding: 7px 10px;
  color: var(--foreground);
  text-align: start;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.creation-library-row + .creation-library-row {
  margin-top: 5px;
}
.creation-library-row:hover {
  background: var(--sidebar-accent);
  border-color: var(--accent-border);
}
.creation-library-row strong,
.creation-library-row small {
  display: block;
  overflow-wrap: anywhere;
}
.creation-library-page {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.creation-library-page button {
  min-height: 40px;
}
.creation-rights {
  display: flex;
  align-items: center;
  gap: 8px;
}
.creation-assets {
  padding: 3px 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.creation-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding-block: 4px;
  overflow-wrap: anywhere;
}
.creation-asset-row + .creation-asset-row {
  border-top: 1px solid var(--border);
}
.creation-asset-name {
  min-width: 0;
}
.creation-asset-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.creation-thumb { width: 56px; height: 40px; flex: 0 0 auto; object-fit: contain; background: var(--muted); border-radius: var(--radius); }
.creation-asset-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.creation-asset-preview {
  margin-block: 8px;
  padding: 8px 10px 10px;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.creation-asset-preview > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-wrap: anywhere;
}
.creation-asset-preview :is(img, audio, video) {
  display: block;
  max-width: 100%;
  max-height: 46vh;
  margin: 0 auto;
}
.creation-asset-preview audio {
  width: 100%;
}
.creation-assets input::file-selector-button {
  margin-inline-end: 8px;
  color: var(--secondary-foreground);
  background: var(--secondary);
  border: 1px solid var(--input);
  border-radius: 3px;
}
.creation-native {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.creation-native p {
  flex: 1 1 270px;
}
.creation-native button {
  min-height: 40px;
}
.creation-footer {
  justify-content: flex-end;
}
.creation-wechat {
  margin-inline-end: auto;
  text-decoration: none;
}
@media (max-width: 490px) {
  .creation-shortcuts .creation-choice-icon { width: 25px; height: 25px; }
  #generatePrompt, #generateAccount, #generateMode { font-size: 16px; }
  .creation-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .creation-library {
    padding: 10px;
  }
  .creation-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .creation-asset-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .creation-asset-controls {
    justify-content: flex-start;
  }
  .creation-asset-controls button {
    min-height: 44px;
  }
  .creation-choices button,
  .creation-footer :is(button, a) {
    min-height: 44px;
  }
}

.company-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-md);
}
.company-strip > div { display: grid; gap: 3px; min-width: 0; }
.company-strip strong { overflow-wrap: anywhere; }
.company-strip small { color: var(--muted-foreground); }
.company-strip button { flex-shrink: 0; }
.company-dialog { width: min(540px, calc(100vw - 24px)); }
.company-dialog .dialog-body { display: grid; gap: 14px; }
.company-dialog .dialog-body > p { margin: 0; }
.company-dialog textarea { resize: vertical; }
.company-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.model-save, .quick-model .normal-save, .quick-model #settingsNav,
.quick-model > .company-strip:first-child, .quick-model [data-setting-panel="content"] > :not(#aiServicePanel) { display: none; }
.quick-model .model-save { display: inline; }
.quick-model .settings-layout { display: block; max-width: 760px; }
#mobileCompanyName { display: none; }
@media (max-width: 600px) {
  #view-overview > .company-strip, .breadcrumb .desktop-workspace { display: none; }
  #mobileCompanyName { display: block; max-width: 25vw; min-height: 44px; padding: 0; background: none; border: 0; color: var(--foreground); font: inherit; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .company-strip { gap: 10px; padding: 12px; }
  .company-strip button, .company-form-actions button { min-height: 44px; }
  .company-dialog .form-grid { grid-template-columns: minmax(0, 1fr); }
}

