:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --paper: #f8fafc;
  --white: #fff;
  --success: #166534;
  --warn: #92400e;
  --error: #991b1b;
  --sidebar-width: 260px;
  --guide-width: 340px;
  --top-height: 60px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, p { margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.4; }
h1 { font-size: 20px; overflow-wrap: anywhere; }
h2 { font-size: 15px; }
h3 { font-size: 15px; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button, .primary, .outline, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 13px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .outline:hover { background: var(--accent-soft); }
.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.primary:hover { background: var(--accent-dark); }
.outline { border-color: var(--line); background: var(--white); color: var(--ink); }
button:disabled { cursor: default; opacity: .55; box-shadow: none; }
.text-button { background: transparent; border: 0; min-height: 32px; padding: 4px 8px; }
.full { width: 100%; }
.danger { color: var(--error); background: #fef2f2; border-color: #fecaca; }
.danger:hover { background: #fee2e2; }
.muted { color: var(--muted); }
.small { font-size: 11px; line-height: 1.5; }
label { display: block; font-weight: 600; }
label > input:not([type="checkbox"]):not([type="file"]), textarea, select {
  width: 100%;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}
label > input:not([type="checkbox"]):not([type="file"]) { display: block; margin-top: 5px; }
textarea { display: block; margin-top: 6px; resize: vertical; font-weight: 400; }
textarea::placeholder, input::placeholder { color: #77849a; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; }

.topbar, .login-topbar {
  display: flex;
  align-items: center;
  height: var(--top-height);
  padding: 0 28px;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
#workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 4; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.account-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; min-width: 0; }
#account { color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.environment { padding: 3px 9px; border-radius: 7px; background: #edf2f8; color: #526687; font-size: 12px; white-space: nowrap; }
.project-menu { display: none; }
.sidebar {
  position: sticky;
  z-index: 3;
  top: var(--top-height);
  align-self: start;
  height: calc(100vh - var(--top-height));
  padding: 20px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.sidebar-header { padding: 0 4px 18px; }
.sidebar-header h2 { margin-bottom: 12px; font-size: 14px; }
#projects { display: grid; gap: 7px; }
.project-link {
  display: block;
  width: 100%;
  padding: 10px 11px;
  text-align: left;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}
.project-link:hover { background: var(--paper); }
.project-link.selected {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: var(--accent-dark);
}
.project-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.project-status { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
.sidebar-empty { margin: 0 6px; }
.sidebar-services { padding: 0 4px 16px; }
#open-services[aria-current="page"] { border-color: #bfdbfe; background: var(--accent-soft); color: var(--accent-dark); }
.main-container { min-width: 0; padding: 24px clamp(18px, 2.3vw, 32px) 48px; }
#project, .welcome, #service-center { max-width: 1120px; margin: 0 auto; }
.welcome { max-width: 780px; padding-top: 22px; }
.welcome h1 { margin-bottom: 18px; }
.create-form { display: grid; gap: 18px; }
.create-form button { justify-self: start; }

.service-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.service-header h1, .service-header p { margin-bottom: 4px; }
.service-catalog { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(176px,100%),1fr)); gap: 12px; margin-bottom: 24px; }
.service-card { align-items: flex-start; flex-direction: column; gap: 6px; padding: 16px; text-align: left; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.service-card:hover, .service-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.service-card strong { font-size: 15px; }
.service-category, .service-description { font-size: 11px; color: var(--muted); font-weight: 400; }
.service-description { flex: 1; }
.service-price { font-size: 15px; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.service-price small { color: var(--muted); font-size: 11px; font-weight: 400; }
.service-work-area { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,340px); gap: 24px; align-items: start; }
.service-form { display: grid; gap: 12px; }
.service-form input[type="file"] { display: block; max-width: 100%; margin-top: 6px; }
.service-form select { display: block; margin-top: 6px; }
.service-form .actions, .service-form p { margin: 0; }
.service-jobs { display: grid; gap: 10px; }
.service-job { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.service-job-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; }
.service-job p, .service-job .actions { margin: 6px 0 0; }
.service-failure { color: var(--error); }
#service-pay-dialog { width: min(410px,calc(100% - 24px)); padding: 20px; }
.service-pay-qr { width: min(100%,236px); margin: 12px auto; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.service-pay-qr svg { display: block; width: 100%; height: auto; }
.public-price-list { max-width: 410px; margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.public-price-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.public-price-list strong { color: var(--accent-dark); font-variant-numeric: tabular-nums; }

.login-shell { min-height: 100vh; }
.login-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,390px);
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
  width: min(1060px,calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(50px, 12vh, 105px) 0;
}
.login-intro h1 { font-size: clamp(32px, 4.6vw, 54px); color: var(--accent-dark); }
.login-intro > p { max-width: 430px; color: #506282; font-size: 16px; }
.login-steps { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.login-steps li { border-top: 2px solid #9eb2cf; padding-top: 7px; color: var(--accent); }
.login-card {
  padding: clamp(22px,4vw,36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 44px #29467312;
}
.login-card form { display: grid; gap: 16px; margin: 18px 0 12px; }

.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.project-head h1 { margin: 0; }
.project-context { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.badge, .chip { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; border-radius: 6px; font-size: 11px; line-height: 1.5; }
.badge { padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.project-state { margin-top: 3px; }
.badge.ready { background: #dcfce7; color: var(--success); }
.badge.warning, .chip.warning { background: #fef3c7; color: var(--warn); }
.chip { padding: 4px 8px; background: #eaf0f8; color: var(--accent); text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.workflow { margin-bottom: 24px; background: #f1f5f9; border-radius: 8px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; margin: 0; padding: 6px; gap: 5px; }
.steps li { position: relative; min-width: 0; }
.steps button {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 9px;
  padding: 9px 5px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  line-height: 1.35;
}
.steps button:hover { background: var(--accent-soft); }
.step-index { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; }
.steps [aria-current="step"] { background: var(--white); color: var(--accent-dark); box-shadow: 0 1px 3px #0f172a12; }
.steps [aria-current="step"] .step-index { background: var(--accent); color: #fff; }

.project-layout { display: grid; grid-template-columns: minmax(0,1fr) var(--guide-width); align-items: start; gap: 24px; }
.project-content { min-width: 0; }
.panel {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 24px;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 3px #0f172a08;
}
.section-heading, .plan-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-bottom: 14px;
}
.section-heading h2, .plan-heading h2, .section-heading p { margin: 0; }
.section-heading .muted { font-size: 13px; margin-top: 3px; }
.sidebar-right { position: sticky; top: calc(var(--top-height) + 24px); display: grid; gap: 16px; min-width: 0; }
.sidebar-right .panel { margin: 0; }
.project-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.project-metrics div { min-width: 0; padding: 12px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-align: center; }
.project-metrics dt { font-size: 11px; color: var(--muted); }
.project-metrics dd { margin: 3px 0 0; font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1.4; }
.guide-steps { margin: 0; padding: 0 0 0 18px; }
.guide-steps li { padding-left: 2px; margin-bottom: 11px; font-size: 12px; }
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps li::marker { color: var(--accent); font-weight: 700; }
.guide-steps span { display: block; color: var(--muted); margin-top: 1px; }

.upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 118px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: var(--paper);
}
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone.is-disabled { opacity: .6; }
.upload-title { font-size: 13px; }
.upload-formats { flex: 1; font-size: 11px; color: var(--muted); font-weight: 400; }
.upload-control { display: grid; place-items: center; min-height: 32px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--accent-dark); font-size: 12px; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; opacity: 0; }
.upload-zone input:disabled { cursor: default; }
.upload-progress:empty { display: none; }
.upload-progress { margin-top: 8px; }
.inline-notes { margin-top: 14px; }
.inline-notes label span { margin-left: 4px; font-weight: 400; }
.notes-footer, .workflow-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.workflow-actions { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 12px; }
.workflow-actions .actions { margin: 0; }
.actions { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 12px 0 0; }
.attachment { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; }
.attachment:last-child { margin-bottom: 0; }
.attachment:hover, .attachment:focus-within { border-color: var(--accent); }
.file-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; }
.attachment-name { display: flex; flex: 1 1 210px; align-items: center; gap: 12px; min-width: 0; }
.file-description { min-width: 0; }
.file-description h3 { margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-tile { display: grid; place-items: center; flex: 0 0 36px; height: 36px; background: var(--accent-soft); border-radius: 6px; color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.attachment-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.attachment-meta { font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.file-action { min-height: 30px; padding: 4px 8px; font-size: 11px; }
.remove-attachment { color: var(--error); border-color: #fecaca; }
.remove-attachment:hover { background: #fef2f2; }
.recognition { margin: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 8px 16px; background: var(--paper); }
.recognition[open] > summary { margin-bottom: 9px; }
.attachment-full-name { overflow-wrap: anywhere; }
.recognition .chip, .plan-asset { margin: 0 6px 6px 0; }

.chapter { border: 1px solid var(--line); border-radius: 8px; margin: 7px 0; }
.chapter > summary { padding: 10px 12px; color: var(--ink); font-size: 14px; font-weight: 650; }
.chapter > summary .small { margin-left: 8px; font-weight: 400; }
.chapter[open] > summary { background: #f6f9fe; border-radius: 8px 8px 0 0; }
.chapter-content { padding: 10px 12px 13px; font-size: 13px; }
.section-list { margin: 8px 0 10px; list-style: none; padding: 0; }
.section-list li { display: flex; justify-content: space-between; gap: 8px 16px; border-top: 1px solid #ecf0f7; padding: 6px 0; }
.section-list .small { white-space: nowrap; }
.plan-asset { max-width: 100%; }
.plan-notes { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; }
.saved-writing-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.generation-status, .boundary {
  margin: 9px 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: #eef3fa;
  color: #3a557d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.boundary { background: #fff7e9; color: var(--warn); border: 1px solid #f1e1c1; }
.generation-status.is-error, #writing-error { background: #fef2f2; color: var(--error); }
.review-card { min-width: 0; margin-top: 16px; padding: 16px; border: 1px solid #fecaca; border-left: 3px solid var(--error); border-radius: 8px; background: #fef2f2; color: var(--error); overflow-wrap: anywhere; }
.review-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; }
.review-count { border-radius: 999px; background: #fee2e2; padding: 2px 7px; font-size: 11px; font-weight: 600; }
.review-list { margin: 0; padding-left: 18px; }
.review-list > li + li { margin-top: 8px; }
.review-values { padding-left: 18px; }
.review-list p { margin: 3px 0 0; }
.review-list details { margin-top: 4px; }
.review-list summary { color: inherit; text-decoration: underline; }
.review-list pre { background: var(--white); border: 1px solid #fecaca; margin: 6px 0 0; }
.gaps { color: var(--warn); font-size: 13px; padding-left: 20px; }
.gaps li { overflow-wrap: anywhere; }
details { margin-top: 9px; }
summary { color: var(--accent); cursor: pointer; font-size: 12px; overflow-wrap: anywhere; }
pre { font: 12px/1.6 Consolas,monospace; max-height: 240px; overflow: auto; background: #f3f6fb; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fact { border-left: 2px solid #d7e2f0; padding-left: 11px; margin: 9px 0; overflow-wrap: anywhere; }
.fact p { margin-bottom: 3px; }
.fact blockquote { font-size: 12px; color: var(--muted); margin: 3px 0; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(165px,100%),1fr)); gap: 10px; margin-top: 10px; }
.asset-grid figure { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.asset-grid img { display: block; width: 100%; height: 142px; object-fit: contain; background: #f5f7fb; }
.asset-grid figcaption { padding: 7px 9px; font-size: 12px; overflow-wrap: anywhere; }
.empty, .empty-stage { text-align: center; padding: 22px 12px; color: var(--muted); }
.empty-stage h2 { color: var(--ink); }
.draft-actions { margin: 0 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.draft-actions > a { flex: 1 1 150px; }
.paper-panel { padding: 0; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; background: #f1f5f9; }
.preview-title, .preview-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.preview-title h2 { margin: 0; }
.preview-toolbar button, .page-picker { font-size: 12px; }
.page-picker { display: flex; align-items: center; gap: 7px; }
.page-picker select { width: auto; min-width: 76px; }
.preview-pages { padding: 24px; background: var(--paper); border-radius: 0 0 9px 9px; text-align: center; }
.preview-pages img { display: block; width: 100%; max-width: 560px; min-height: 180px; margin: auto; background: #fff; box-shadow: 0 4px 14px #1e345319; }

dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 55px #1f365436; }
dialog::backdrop { background: #17284194; }
#remove-attachment-dialog { width: min(440px,calc(100% - 30px)); padding: 21px; }
#remove-attachment-name { overflow-wrap: anywhere; }
#remove-attachment-dialog .actions { justify-content: flex-end; }
#writing-dialog { width: min(790px,calc(100% - 26px)); max-height: 90vh; padding: 0; }
#writing-form { display: flex; flex-direction: column; max-height: 88vh; }
#writing-form header, #writing-form footer { padding: 13px 18px; border-bottom: 1px solid var(--line); }
#writing-form footer { border-top: 1px solid var(--line); border-bottom: 0; }
#writing-form footer .actions { justify-content: flex-end; margin: 0; }
#writing-form h2 { margin: 0; }
.writing-fields { padding: 14px 18px; overflow: auto; }
.edit-chapter { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.edit-chapter summary { font-weight: 650; font-size: 14px; }
.edit-outline-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.edit-outline-row label { flex: 1; min-width: min(160px,100%); }
.outline-moves { display: flex; gap: 5px; }
.edit-section { margin: 9px 0 0; padding: 9px; }
.edit-section input[type="number"] { width: 110px !important; }
#writing-error { padding: 7px 10px; border-radius: 6px; font-size: 13px; }
#toast { position: fixed; z-index: 10; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(560px,90vw); padding: 9px 13px; border-radius: 8px; color: #fff; background: #243a60; box-shadow: 0 5px 18px #243a603a; }

@media (max-width: 1199px) {
  .project-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar-right { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1040px) {
  .service-work-area { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media (max-width: 768px) {
  :root { --top-height: 56px; }
  #workspace { grid-template-columns: minmax(0,1fr); }
  .topbar, .login-topbar { padding: 0 12px; gap: 8px; }
  .wordmark { font-size: 13px; gap: 6px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 16px; }
  .account-tools { gap: 5px; margin-left: 0; font-size: 12px; }
  .account-tools .environment, #account { display: none; }
  button, .primary, .outline, .danger, .text-button, select { min-width: 44px; min-height: 44px; }
  .project-menu { display: inline-flex; margin-left: auto; padding: 4px 7px; font-size: 12px; white-space: nowrap; }
  .sidebar { display: none; position: fixed; inset: var(--top-height) auto 0 0; width: min(var(--sidebar-width),80vw); height: auto; }
  .sidebar.is-open { display: block; box-shadow: 0 0 0 100vmax #1a2a463b; }
  .main-container { padding: 16px 12px 32px; }
  .project-head { flex-wrap: wrap; margin-bottom: 12px; }
  .project-state { margin: 0; }
  .panel { padding: 16px; margin-bottom: 16px; }
  .service-catalog { gap: 8px; margin-bottom: 16px; }
  .sidebar-right { grid-template-columns: minmax(0,1fr); }
  .workflow { margin-bottom: 16px; }
  .steps button { gap: 4px; font-size: 12px; }
  .step-index { width: 20px; height: 20px; flex-basis: 20px; }
  .upload-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .upload-zone { min-height: 0; padding: 10px 12px; }
  .upload-control { min-height: 44px; }
  .file-row { padding: 12px; }
  .recognition { padding-inline: 12px; }
  .chapter > summary { min-height: 44px; }
  .login-layout { grid-template-columns: minmax(0,1fr); gap: 23px; padding: 28px 0; }
  .paper-panel { padding: 0; }
  .preview-toolbar { padding: 12px; }
  .preview-pages { padding: 12px; }
}
@media (max-width: 400px) {
  .steps button { flex-direction: column; min-height: 52px; padding: 4px; }
}
