:root {
  --ink: #20242b;
  --muted: #6d7480;
  --soft: #f7f4f0;
  --panel: #ffffff;
  --line: #e5e0d8;
  --accent: #d84f28;
  --accent-dark: #a93720;
  --accent-soft: #fff1e9;
  --accent-bg: #fffaf7;
  --line-strong: #d8d1c5;
  --blue: #3b668e;
  --green: #2f7a63;
  --gold: #b97822;
  --shadow: 0 18px 42px rgba(44, 34, 26, 0.08);
  --shadow-card: 0 2px 8px rgba(44, 34, 26, 0.05), 0 1px 2px rgba(44, 34, 26, 0.04);
  --font-display: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Inter", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfaf8 0%, #f1eee9 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(32, 36, 43, 0.03);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

button:hover,
button.active {
  border-color: var(--line-strong);
  background: var(--accent-bg);
}

button:hover {
  box-shadow: 0 2px 6px rgba(44, 34, 26, 0.06);
  transform: translateY(-1px);
}

button:active {
  box-shadow: none;
  transform: translateY(0);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 79, 40, 0.12);
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.6;
}

label {
  display: grid;
  gap: 7px;
}

label span,
.eyebrow,
small {
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
.brand-mark strong,
.brand-lockup strong,
.metric-card strong,
.progress-meter strong {
  font-family: var(--font-display);
}

.preview-shell {
  min-height: 100vh;
}

.preview-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid rgba(219, 210, 198, 0.75);
  padding: 10px 22px;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(12px);
}

.brand-mark,
.brand-lockup,
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark .brand-icon,
.logo-tile,
.rail-brand .brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, #f26b2f 0%, #c93422 100%);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(216, 79, 40, 0.24);
}

.brand-mark img,
.logo-tile img,
.rail-brand img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-mark strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.preview-tabs button {
  min-height: 34px;
  padding: 7px 11px;
}

.preview-tabs button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.testbench-link {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.screen-stage {
  padding: 24px;
}

.screen {
  display: none;
  min-height: calc(100vh - 114px);
}

.screen.active {
  display: block;
}

.primary-action {
  border-color: var(--accent);
  background: linear-gradient(145deg, #e86132 0%, #c94426 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(216, 79, 40, 0.2);
}

.primary-action:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(216, 79, 40, 0.32);
}

.login-screen {
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 34px;
}

.login-screen.active {
  display: flex;
}

.login-product {
  width: min(500px, 100%);
}

.brand-lockup {
  margin-bottom: 32px;
}

.brand-lockup div {
  display: grid;
  gap: 3px;
}

.brand-lockup strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.login-product h1 {
  max-width: 480px;
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.login-product p {
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.login-claims {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.login-claims span {
  border: 1px solid #ead8ca;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-weight: 800;
}

.login-panel,
.form-panel,
.assist-panel,
.progress-card,
.progress-side,
.delivery-panel,
.format-card,
.template-panel,
.export-side,
.metric-card,
.work-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 28px;
}

.login-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid #ead8ca;
  border-radius: 8px;
  background: #fff8f3;
}

.login-methods button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.login-methods button.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 5px 14px rgba(104, 52, 32, 0.08);
}

.login-panel,
.work-section,
.form-panel,
.assist-panel,
.ai-panel,
.delivery-checks,
.template-panel,
.export-side {
  position: relative;
  overflow: hidden;
}

.login-panel::before,
.work-section::before,
.form-panel::before,
.assist-panel::before,
.ai-panel::before,
.delivery-checks::before,
.template-panel::before,
.export-side::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d84f28 0%, #f06a32 54%, #f3a24b 100%);
  content: "";
}

.delivery-checks::before,
.assist-panel::before {
  opacity: 0.55;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.work-section h2,
.form-panel h2,
.assist-panel h2,
.progress-side h2,
.delivery-panel h2,
.ai-panel h2,
.delivery-checks h2,
.template-panel h2,
.export-side h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.inline-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.login-alternates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-alternates button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.login-status {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid #ead8ca;
  border-radius: 8px;
  background: #fff8f3;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-status.good {
  border-color: rgba(57, 126, 88, 0.24);
  background: #eef8f2;
  color: var(--green);
}

.login-status.warn {
  border-color: rgba(201, 68, 38, 0.24);
  background: #fff2ec;
  color: var(--accent-dark);
}

.product-workflow-status {
  margin: 0;
  border: 1px solid #eadfd5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffaf7;
  color: var(--muted);
  line-height: 1.5;
}

.product-workflow-status.good {
  border-color: rgba(57, 126, 88, 0.24);
  background: #eef8f2;
  color: var(--green);
}

.product-workflow-status.warn {
  border-color: rgba(201, 68, 38, 0.24);
  background: #fff2ec;
  color: var(--accent-dark);
}

.password-fallback {
  border: 1px solid #ead8ca;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffaf6;
}

.password-fallback summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.password-fallback label {
  margin-top: 12px;
}

.password-fallback button {
  width: 100%;
  margin-top: 12px;
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.app-frame {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: calc(100vh - 114px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: var(--shadow);
}

.app-rail,
.brief-steps,
.outline-panel {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.app-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 10px;
}

.rail-brand {
  justify-content: center;
  margin-bottom: 8px;
}

.rail-brand strong {
  display: none;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
}

.rail-item.active {
  border-color: #f1c0ad;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.rail-item::before {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--line);
  content: "";
  opacity: 0.66;
}

.rail-item.active::before {
  background: var(--accent);
  opacity: 1;
}

.app-main,
.form-workspace {
  padding: 24px;
}

.app-header,
.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.app-header h1,
.document-toolbar h1 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search {
  width: 230px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #26211f;
  color: #fff;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.62), rgba(255, 255, 255, 0.95));
}

.metric-card strong {
  font-size: 30px;
}

.work-section {
  padding: 18px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.9);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-filter button {
  min-height: 32px;
  padding: 6px 10px;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #eee5db;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.project-row:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.project-row div {
  display: grid;
  gap: 5px;
}

.project-row div span {
  color: var(--muted);
  font-size: 13px;
}

.project-meta-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.project-meta-cell span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.status-tag.blue {
  background: #edf4fb;
  color: var(--blue);
}

.status-tag.gold {
  background: #fff3df;
  color: var(--gold);
}

.status-tag.green {
  background: #eaf5ef;
  color: var(--green);
}

.brief-screen .app-frame {
  grid-template-columns: 210px 1fr;
}

.brief-steps {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 18px;
}

.brief-steps strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.brief-steps span {
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.brief-steps span.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.form-panel,
.assist-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  box-shadow: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-field {
  grid-column: 1 / -1;
}

.upload-zone {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 130px;
  border: 1px dashed #dcc8ba;
  border-radius: 8px;
  background: #fffaf7;
  text-align: center;
}

.upload-zone span {
  color: var(--muted);
}

.reference-card {
  display: grid;
  gap: 10px;
  border: 1px solid #eee3d9;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 246, 0.78);
}

.reference-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reference-card h2 {
  margin-bottom: 0;
  font-size: 16px;
}

.reference-card-head span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.reference-card p {
  margin: 0;
  color: #4d535b;
  line-height: 1.6;
}

.reference-tags,
.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-tags span {
  border: 1px solid #ead8ca;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reference-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.completion {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e8edf3;
}

.completion span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progress-wrap,
.export-wrap {
  min-height: calc(100vh - 114px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: rgba(255, 253, 250, 0.78);
  box-shadow: var(--shadow);
}

.progress-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.progress-card,
.progress-side {
  padding: 24px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.92);
}

.progress-meter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.progress-meter strong {
  font-size: 64px;
  line-height: 1;
  color: var(--accent-dark);
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 3px;
  border-radius: 999px;
  background: #ddd6cd;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9472a 0%, #e86638 100%);
}

.stage-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.stage-list li {
  position: relative;
  display: grid;
  gap: 5px;
  padding-left: 34px;
}

.stage-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #c7d1dd;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.stage-list li.done::before {
  border-color: var(--green);
  background: var(--green);
}

.stage-list li.active::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(184, 64, 56, 0.12);
}

.stage-list li.warn::before {
  border-color: var(--gold);
  background: var(--gold);
}

.stage-list span,
.progress-side p {
  color: var(--muted);
  line-height: 1.6;
}

.progress-side {
  align-content: start;
  display: grid;
  gap: 14px;
}

.editor-frame {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 340px;
  min-height: calc(100vh - 114px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.76);
  box-shadow: var(--shadow);
}

.outline-panel,
.delivery-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 16px;
}

.outline-panel button {
  justify-content: start;
  text-align: left;
}

.outline-panel button.active {
  border-color: #f1c0ad;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.document-panel {
  overflow: auto;
  padding: 24px;
}

.document-toolbar {
  margin-bottom: 18px;
}

.doc-section {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.doc-section:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.doc-section h2 {
  font-size: 20px;
}

.doc-section p {
  color: #40464f;
  line-height: 1.8;
}

.doc-section textarea {
  min-height: 96px;
  border-color: transparent;
  padding: 10px 0;
  background: transparent;
  color: #40464f;
  line-height: 1.8;
}

.doc-section textarea:focus {
  border-color: #f1c0ad;
  padding: 10px 12px;
  background: #fffaf7;
}

.doc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.doc-section-head h2 {
  margin-bottom: 0;
}

.doc-section-head div,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-section-head button,
.quick-actions button,
.suggestion-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.muted-doc {
  background: rgba(255, 250, 246, 0.72);
}

.delivery-panel {
  border-left: 1px solid var(--line);
  border-right: 0;
  box-shadow: none;
}

.ai-panel,
.delivery-checks {
  display: grid;
  gap: 12px;
  border: 1px solid #eee3d9;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.ai-panel {
  border-color: #f1c0ad;
  background:
    linear-gradient(180deg, #fff8f3 0%, #fffdfb 100%);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-suggestion-card {
  display: grid;
  gap: 10px;
  border: 1px solid #f1c0ad;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 12px 12px 14px;
  background: #fff6f0;
  transition: transform 150ms ease;
}

.ai-suggestion-card:hover {
  transform: translateX(3px);
}

.suggestion-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.suggestion-title-row span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.suggestion-title-row strong {
  font-size: 15px;
}

.ai-suggestion-card p {
  margin: 0;
  color: #40464f;
  line-height: 1.6;
}

.suggestion-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.suggestion-actions select {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.compact-action {
  min-width: 54px;
  min-height: 32px;
  padding: 6px 11px;
  box-shadow: none;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  border: 1px solid #eee5db;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.check-row span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.check-row.good span {
  background: var(--green);
}

.check-row.warn span {
  background: var(--gold);
}

.export-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "formats side"
    "template side";
  gap: 18px;
}

.format-grid {
  grid-area: formats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.format-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  box-shadow: none;
}

.format-card.selected {
  border-color: #f1c0ad;
  background: #fff6f0;
}

.format-card span,
.template-row small,
.export-history span {
  color: var(--muted);
  line-height: 1.5;
}

.template-panel {
  grid-area: template;
  display: grid;
  gap: 12px;
  padding: 22px;
  box-shadow: none;
}

.template-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #eee5db;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.template-row span {
  height: 52px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--accent) 0 22%, transparent 22%),
    linear-gradient(180deg, #fffaf7 0 34%, #eadfd5 34% 37%, #fffaf7 37% 100%);
  border: 1px solid #eadfd5;
}

.template-row.active {
  border-color: #f1c0ad;
}

.export-side {
  grid-area: side;
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 22px;
  box-shadow: none;
}

.export-history {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
}

.export-history article {
  display: grid;
  gap: 4px;
  border: 1px solid #eee5db;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.export-history article strong {
  font-size: 13px;
}

@media (max-width: 1040px) {
  .preview-topbar {
    grid-template-columns: 1fr;
  }

  .testbench-link {
    justify-self: start;
  }

  .metric-grid,
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-layout,
  .progress-content,
  .export-layout,
  .editor-frame {
    grid-template-columns: 1fr;
  }

  .export-layout {
    grid-template-areas:
      "formats"
      "template"
      "side";
  }

  .delivery-panel,
  .outline-panel {
    border: 0;
  }
}

@media (max-width: 760px) {
  .screen-stage {
    padding: 12px;
  }

  .login-screen.active {
    display: grid;
    padding: 12px 0;
  }

  .login-product h1 {
    font-size: 30px;
  }

  .app-frame,
  .brief-screen .app-frame,
  .editor-frame {
    grid-template-columns: 1fr;
  }

  .app-rail {
    display: flex;
    overflow-x: auto;
  }

  .metric-grid,
  .field-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .app-header,
  .document-toolbar,
  .section-heading,
  .project-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-actions {
    justify-content: start;
  }

  .search {
    width: 100%;
  }

  .project-row {
    gap: 10px;
  }
}
