:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #121722;
  --surface: #ffffff;
  --surface-muted: #fbfcfe;
  --line: #dfe5ee;
  --line-strong: #cfd8e6;
  --text: #121722;
  --muted: #596170;
  --brand: #173c66;
  --brand-soft: #eef5ff;
  --accent: #2dd4bf;
  --accent-dark: #115e59;
  --accent-soft: #f0fdfa;
  --accent-border: #99f6e4;
  --blue: #1769e0;
  --blue-soft: #f4f8ff;
  --blue-line: #a9c8ff;
  --success: var(--accent-dark);
  --success-soft: var(--accent-soft);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f7f9fc;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  min-height: 100vh;
}

.workspace {
  padding: 38px 40px;
}

.topbar,
.dialog-head,
.actions,
.dialog-actions,
.result-head,
.download-row,
.page-row {
  display: flex;
  align-items: center;
}

.topbar,
.dialog-head,
.actions,
.result-head {
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #596170;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  max-width: 780px;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 8px 0 0;
  color: #596170;
  font-size: 0.98rem;
  line-height: 1.4;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.builder-form {
  margin-top: 34px;
  max-width: 940px;
}

.builder-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cover-sheet-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.utility-label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.title-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #d6e3fb;
  border-radius: 10px;
  background: #eef4ff;
  color: #165bd7;
}

.title-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.title-icon-purple {
  border-color: #ddd8ff;
  background: #f3f0ff;
  color: #6941d9;
}

.title-icon-green {
  border-color: #c7ebdf;
  background: #eaf9f4;
  color: #087f5b;
}

.saved-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
}

.saved-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.text-button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-weight: 600;
}

.text-button:hover {
  background: var(--brand-soft);
}

.builder-section {
  display: grid;
  gap: 10px;
}

.builder-section + .resume-source-panel,
.resume-source-panel + .actions {
  margin-top: 16px;
}

.builder-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.builder-section-head .eyebrow {
  margin: 0;
}

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

.drop-zone {
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px 18px;
  border: 1px dashed #cbd6e4;
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.product-drop-zone {
  min-height: 196px;
  align-content: start;
  padding: 18px;
}

.drop-zone:hover,
.drop-zone:focus-within,
.drop-zone:focus-visible {
  border-color: #8fb6f5;
  background: #fbfdff;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.07);
}

.drop-zone.is-dragging {
  border-color: #315e96;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(23, 60, 102, 0.1);
}

.drop-zone.has-file {
  border-style: solid;
  border-color: var(--blue-line);
  background: var(--blue-soft);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.drop-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-drop-zone .drop-title {
  margin-top: 2px;
}

.drop-action {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 500;
}

.drop-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.resume-source-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.resume-source-head {
  display: block;
}

.resume-heading-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.resume-heading-group h2 {
  margin: 2px 0 5px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.resume-heading-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #d6e3fb;
  border-radius: 10px;
  background: #eef4ff;
}

.resume-heading-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #165bd7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.resume-source-head p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.42;
}

.resume-file-drop-zone {
  min-height: 108px;
}

.field-block {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

textarea,
input {
  width: 100%;
  border: 1px solid #d4d9e2;
  border-radius: 8px;
  background: #ffffff;
  color: #121722;
  outline: none;
}

textarea:focus,
input:focus {
  border-color: #315e96;
  box-shadow: 0 0 0 3px rgba(49, 94, 150, 0.14);
}

textarea::placeholder,
input::placeholder {
  color: #8a94a6;
  font-weight: 450;
}

textarea {
  min-height: 315px;
  padding: 16px;
  resize: vertical;
  line-height: 1.45;
  font-weight: 450;
}

.resume-textarea {
  min-height: 190px;
}

input {
  margin-top: 6px;
  padding: 11px 12px;
}

.generate-panel {
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 14px 0 0;
  border-top: 1px solid #e6ebf2;
}

.primary-button,
.secondary-button,
.secondary-link-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: #173c66;
  color: #ffffff;
  font-weight: 600;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.generate-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(110deg, #173c66, #1e4f88);
  font-size: 1rem;
}

.generate-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.generate-helper {
  margin: 0;
  color: #69758a;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.secondary-button {
  min-height: 40px;
  padding: 0 14px;
  background: #e9edf3;
  color: #182131;
  font-weight: 500;
}

.secondary-link-button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #e9edf3;
  color: #182131;
  font-weight: 500;
  text-decoration: none;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #ffffff;
  color: #182131;
  border: 1px solid #dde2ea;
  font-size: 1.2rem;
}

.status-text {
  margin: 0;
  color: #173c66;
  font-weight: 600;
}

.build-progress {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

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

.progress-head span {
  color: #596170;
  font-size: 0.82rem;
  font-weight: 600;
  tabular-nums: lining-nums;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7ecf3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #173c66, #0f8b8d);
  transition: width 320ms ease;
}

.progress-detail {
  margin: 7px 0 0;
  color: #596170;
  font-size: 0.86rem;
  line-height: 1.35;
}

.build-progress.has-error .status-text {
  color: #8a2f16;
}

.build-progress.has-error .progress-track span {
  background: #c8492c;
}

.result-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 30px;
  background: #ffffff;
  border-left: 1px solid #e0e5ed;
}

.result-panel-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 3px;
}

.packet-review-shell {
  display: grid;
  gap: 16px;
}

.result-subtitle {
  margin: 0;
  color: #596170;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 70vh;
  color: #596170;
}

.empty-mark {
  display: grid;
  width: 74px;
  height: 92px;
  place-items: center;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #315e96;
  font-weight: 600;
}

.needs-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.needs-list li {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-left: 3px solid #b85322;
  border-radius: 6px;
  background: #fff8f3;
  color: #42210f;
  line-height: 1.35;
}

.needs-list li span {
  color: #9b4b18;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.needs-list li a {
  color: #173c66;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clear-list li {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: #123d3a;
}

.clear-list li span {
  color: var(--accent-dark);
}

.download-row {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.download-row a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: #173c66;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.download-row a.secondary-download {
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #173c66;
}

.needs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.needs-head h3 {
  margin: 0;
}

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

.summary-tile {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fbfcfe;
}

.summary-tile span {
  display: block;
  margin-bottom: 6px;
  color: #596170;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.summary-tile strong {
  color: #121722;
  font-size: 1.25rem;
  line-height: 1;
}

.summary-tile.needs-review {
  border-color: #efd2bd;
  background: #fff8f3;
}

.review-checklist {
  padding: 14px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #ffffff;
}

.debug-report-link {
  display: inline-flex;
  margin-top: 8px;
  color: #596170;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-save-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.hub-save-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 600;
  color: #173c66;
}

.hub-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #d4dce8;
  border-radius: 999px;
  background: #ffffff;
  color: #4e5b6e;
  font-size: 0.72rem;
  font-weight: 600;
}

.hub-status.saved {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hub-status.saving,
.hub-status.ready {
  border-color: #b9cde7;
  background: #eef5ff;
  color: #173c66;
}

.hub-status.failed {
  border-color: #efc3b4;
  background: #fff1ec;
  color: #9b3d1e;
}

.hub-status.needs_email,
.hub-status.unconfigured {
  border-color: #e3d4a2;
  background: #fff9e8;
  color: #775b14;
}

.hub-save-message {
  margin: 0;
  color: #5f6f86;
  font-size: 0.9rem;
}

.hub-save-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hub-save-actions input {
  min-height: 38px;
  min-width: min(240px, 100%);
  border: 1px solid #c8d1df;
  border-radius: 8px;
  padding: 0 10px;
}

.technical-details {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6ebf2;
  color: #596170;
  font-size: 0.86rem;
}

.technical-details summary {
  width: max-content;
  cursor: pointer;
  color: #596170;
  font-weight: 600;
}

.technical-details p {
  margin: 10px 0 0;
}

.technical-details code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

dialog {
  width: min(880px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 26px 80px rgba(11, 18, 30, 0.24);
}

#editorDialog {
  width: min(1420px, calc(100vw - 28px));
}

dialog::backdrop {
  background: rgba(18, 23, 34, 0.38);
}

.dialog-card {
  padding: 24px;
  background: #ffffff;
}

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

.submission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}

.submission-grid label {
  color: #404858;
  font-size: 0.84rem;
  font-weight: 500;
}

.side-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  padding: 3px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #f7f8fa;
}

.side-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596170;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.side-tab.is-active {
  background: #ffffff;
  color: #173c66;
  box-shadow: 0 1px 2px rgba(18, 23, 34, 0.04);
}

.side-tab.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.side-panel-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #ffffff;
}

.setup-progress-card {
  gap: 13px;
  padding: 18px;
}

.setup-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.setup-progress-head h2,
.side-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.setup-progress-head span {
  color: #68758a;
  font-size: 0.8rem;
  white-space: nowrap;
}

.setup-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.setup-segments span {
  height: 10px;
  border-radius: 999px;
  background: #dce4ef;
  transition: background 180ms ease;
}

.setup-segments span.is-complete {
  background: linear-gradient(90deg, #1769e0, #2d7cf0);
}

.setup-progress-copy {
  margin: 0;
  color: #66758b;
  font-size: 0.84rem;
  line-height: 1.4;
}

.setup-progress-card.has-error {
  border-color: #efb6a4;
  background: #fff9f6;
}

.setup-progress-card.has-error .setup-progress-copy {
  color: #9b3d1e;
}

.build-checklist-card {
  border-color: #dfe5ee;
  background: #ffffff;
}

.build-checklist-card .side-panel-head .eyebrow {
  border-bottom-color: #dbe5f0;
}

.side-panel-head h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.side-panel-head .eyebrow {
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6ebf2;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.field-label svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #173c66;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.build-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #404858;
  font-size: 0.9rem;
  font-weight: 500;
}

.build-checklist li span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid #9fb0c4;
  border-radius: 999px;
  background: #f8fafc;
}

.profile-grid label {
  color: #404858;
  font-size: 0.9rem;
  font-weight: 500;
}

.wide {
  grid-column: 1 / -1;
}

.profile-grid textarea {
  min-height: 92px;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.editor-card {
  max-height: 88vh;
  overflow: auto;
}

#editorDialog .editor-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 92vh;
  min-height: min(760px, calc(100vh - 44px));
  padding: 20px;
}

.editor-note {
  color: #596170;
}

.page-list {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(280px, 0.8fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  min-height: 0;
  margin-top: 14px;
  padding-bottom: 6px;
}

.page-board-lane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(620px, calc(100vh - 220px));
  max-height: min(620px, calc(100vh - 220px));
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #f8fafc;
}

.included-lane {
  background: #fbfcfe;
}

.review-lane {
  border-color: #efd2bd;
  background: #fff8f3;
}

.page-lane-scroll {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  min-height: 0;
}

.document-card {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.document-card.is-drop-target,
.excluded-drop-zone.is-drop-target {
  border-color: #2188a8;
  box-shadow: 0 0 0 3px rgba(33, 136, 168, 0.14);
}

.document-header {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.document-header > input,
.document-page-row > input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.drag-handle {
  display: inline-grid;
  width: 28px;
  height: 32px;
  place-items: center;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #ffffff;
  color: #596170;
  cursor: grab;
  font-size: 1.2rem;
  line-height: 1;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.document-expand {
  min-width: 82px;
  height: 32px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
}

.document-copy,
.document-page-copy {
  min-width: 0;
}

.document-pages {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px 58px;
}

.document-pages.is-collapsed {
  display: none;
}

.document-page-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px dashed #d8dee8;
  border-radius: 8px;
  background: #ffffff;
}

.missing-page-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 12px 10px 58px;
  padding: 9px 10px;
  border: 1px solid #e8c875;
  border-radius: 8px;
  background: #fff9e8;
}

.missing-page-panel p {
  width: 100%;
  margin: 0;
  color: #775b14;
  font-size: 0.82rem;
  font-weight: 500;
}

.missing-page-panel button {
  min-height: 30px;
  border: 1px solid #d7b95f;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.excluded-drop-zone {
  padding: 12px;
  border: 1px dashed #aeb8c7;
  border-radius: 8px;
  color: #596170;
  background: #f8fafc;
  text-align: center;
}

.editor-empty {
  margin: 4px 0 8px;
  color: #6b7280;
  font-size: 0.88rem;
}

.compact-actions button {
  min-width: 42px;
  height: 30px;
}

.page-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: #596170;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-section-label strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e9edf3;
  color: #334155;
  font-size: 0.78rem;
}

.review-lane .page-section-label strong {
  background: #ffe8da;
  color: #9b4b18;
}

.page-row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #fbfcfe;
}

.review-lane .page-row {
  border-color: #efd2bd;
  background: #ffffff;
}

.page-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.page-main input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.page-review-note {
  margin: 3px 0 0;
  color: #9a5b00;
  font-size: 0.82rem;
  font-weight: 500;
}

.page-title {
  margin: 0;
  font-weight: 500;
}

.page-meta {
  margin: 3px 0 0;
  color: #596170;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.page-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.page-actions button {
  min-width: 48px;
  height: 34px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace,
  .result-panel {
    padding: 24px;
  }

  .result-panel {
    position: static;
    height: auto;
    min-height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid #e0e5ed;
  }

  .result-panel-content {
    overflow: visible;
    padding-right: 0;
  }

  .generate-panel {
    margin-top: 4px;
    padding-top: 14px;
  }

  .upload-grid,
  .packet-summary-grid,
  .profile-grid,
  .submission-grid,
  .resume-source-head {
    grid-template-columns: 1fr;
  }

  .builder-utility-bar {
    display: grid;
    align-items: start;
  }

  .builder-utility-bar .secondary-link-button {
    width: 100%;
  }

  .product-drop-zone {
    min-height: 150px;
  }

  .document-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .page-list {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .page-board-lane {
    min-height: auto;
    max-height: none;
  }

  .document-expand,
  .document-header > .page-actions {
    grid-column: 3;
  }

  .document-pages,
  .missing-page-panel {
    margin-left: 0;
    padding-left: 12px;
  }

  .document-page-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .document-page-row > .page-actions {
    grid-column: 3;
  }
}
