:root {
  --bg-a: #dff9f7;
  --bg-b: #f1f5f9;
  --ink-900: #082f2d;
  --ink-700: #115e59;
  --ink-600: #0f766e;
  --ink-500: #14b8a6;
  --ink-200: #ccfbf1;
  --line: #cfe7e5;
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: 0 14px 32px rgba(15, 118, 110, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(900px 500px at 8% 4%, rgba(20, 184, 166, 0.28), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(13, 148, 136, 0.2), transparent 55%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b));
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.6;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 20px 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 420ms ease-out;
}

.builder-panel {
  padding: 26px 24px 22px;
}

.preview-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 82vh;
}

.hero {
  margin-bottom: 16px;
}

.quick-nav {
  position: sticky;
  top: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid #bfe9e4;
  border-radius: 14px;
  background: rgba(244, 255, 252, 0.95);
  backdrop-filter: blur(5px);
}

.jump-btn {
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #bce9e3;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
}

.jump-btn:hover {
  transform: none;
  filter: none;
  background: #ecfffc;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  margin: 0 0 10px;
}

h1,
h2 {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.3rem;
  color: var(--ink-700);
}

.hero-copy,
.preview-copy {
  margin: 0;
  color: #1f4f4b;
  font-size: 0.95rem;
  line-height: 1.5;
}

form {
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  font-size: 0.84rem;
  font-weight: 600;
  color: #134e4a;
}

.field small {
  color: #0f766e;
  font-size: 0.76rem;
}

input,
textarea,
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  resize: vertical;
  color: #0f172a;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-block legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: #134e4a;
  margin-bottom: 8px;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c8ece7;
  border-radius: 999px;
  background: #f3fffd;
  color: #0f766e;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 6px 11px;
  margin-bottom: 9px;
}

.switch-label.compact {
  margin-bottom: 0;
}

.switch-label input {
  width: 16px;
  height: 16px;
  margin: 0;
}

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

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfe9e4;
  border-radius: 14px;
  padding: 8px 10px;
  background: #f7fffe;
  font-size: 0.84rem;
  color: #134e4a;
  cursor: pointer;
}

.chip input {
  margin: 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

button {
  font: inherit;
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, filter 120ms ease;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.dynamic-row {
  display: grid;
  gap: 8px;
  border: 1px solid #d5ece8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.08);
  padding: 10px;
}

.timeline-row {
  grid-template-columns: 1.25fr 0.95fr auto auto;
}

.pricing-row {
  grid-template-columns: 1.05fr 1.55fr 0.75fr 0.95fr auto auto;
}

.role-pricing-row {
  grid-template-columns: 1fr 0.62fr 1.28fr 0.74fr 0.92fr auto auto;
}

.extra-cost-row {
  grid-template-columns: 1.2fr 1fr auto auto;
}

.row-input {
  width: 100%;
  border: 1px solid #c9e5e2;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  font-size: 0.82rem;
  color: #0f172a;
}

.row-notes {
  grid-column: 1 / -1;
}

.pricing-priority {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border: 1px solid #d8ece9;
  border-radius: 10px;
  background: #f8fffe;
  padding: 8px 10px;
}

.pricing-priority-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
}

.priority-stars {
  display: inline-flex;
  gap: 4px;
}

.priority-star {
  border: 1px solid #b9dfda;
  background: #ffffff;
  color: #94a3b8;
  border-radius: 8px;
  padding: 4px 6px;
  min-width: 30px;
  line-height: 1;
  font-size: 0.95rem;
}

.priority-star.is-active {
  color: #d97706;
  border-color: #fcd34d;
  background: #fff8e6;
}

.priority-star:hover {
  transform: none;
  filter: none;
  color: #b45309;
}

.pricing-priority-helper {
  width: 100%;
  font-size: 0.72rem;
  color: #475569;
}

.row-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #0f766e;
  font-weight: 700;
  border: 1px solid #c7ede8;
  border-radius: 10px;
  background: #f5fffd;
  min-height: 38px;
  padding: 4px 8px;
  white-space: nowrap;
}

.row-toggle input {
  margin: 0;
}

.inline-actions {
  display: flex;
  margin-top: 2px;
}

.pricing-controls {
  border: 1px solid #caece7;
  border-radius: 14px;
  background: #f9fffe;
  padding: 10px;
  margin: 2px 0 10px;
}

.pricing-target-field {
  margin: 8px 0 6px;
}

.pricing-target-field span {
  font-size: 0.8rem;
}

.pricing-target-field input {
  border-radius: 10px;
  padding: 9px 10px;
}

.pricing-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.pricing-metrics p {
  margin: 0;
  font-size: 0.82rem;
  color: #0f172a;
  border: 1px solid #d7ece9;
  border-radius: 10px;
  background: #ffffff;
  padding: 7px 8px;
}

#pricingTargetMatchStatus {
  font-weight: 800;
  color: #0f766e;
}

#pricingTargetMatchStatus.is-match {
  color: #047857;
}

#pricingTargetMatchStatus.is-mismatch {
  color: #b91c1c;
}

.pricing-clarity-card {
  border: 1px solid #d9ece9;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px;
}

.pricing-clarity-card h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: #0f766e;
}

.pricing-clarity-card p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #334155;
}

.pricing-clarity-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.pricing-clarity-card li {
  font-size: 0.77rem;
  color: #0f172a;
  line-height: 1.35;
}

#projectIdentityBlock,
#uploadPrdBlock,
#platformsBlock,
#timelineBlock,
#modulePricingBlock,
#rolePricingBlock,
#extraCostsBlock,
#conceptBlock,
#sectionEditorBlock {
  scroll-margin-top: 88px;
}

.section-editor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}

.section-card {
  border: 1px solid #cdeae6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
  padding: 10px;
}

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

.section-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f766e;
  text-transform: uppercase;
}

.section-title-input,
.section-intro-input {
  width: 100%;
}

.section-intro-input {
  min-height: 66px;
}

.subsection-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.subsection-card {
  border: 1px solid #d8efec;
  border-radius: 12px;
  background: #faffff;
  padding: 8px;
}

.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.subsection-title-input {
  width: 100%;
  margin-bottom: 6px;
}

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

.subsection-paragraphs,
.subsection-bullets {
  min-height: 64px;
}

.section-actions {
  display: flex;
  margin-top: 8px;
}

.chip-btn {
  color: var(--ink-700);
  background: #ecfffc;
  border: 1px dashed #9dded5;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-btn:hover {
  transform: none;
  filter: none;
  background: #dffaf5;
}

.remove-row {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  padding: 0;
  line-height: 1;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
  font-size: 0.9rem;
  font-weight: 700;
}

.remove-row:hover {
  transform: none;
  filter: none;
  background: #ffedd5;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

button.primary {
  color: white;
  background: linear-gradient(125deg, #0f766e, #14b8a6);
}

button.secondary {
  color: var(--ink-700);
  background: #e6fffb;
  border: 1px solid #a7f3d0;
}

.status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #115e59;
}

.status.error {
  color: #991b1b;
}

.preview-empty {
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px dashed #9adfd8;
  border-radius: 14px;
  margin-top: 14px;
  min-height: 210px;
  color: #115e59;
  background: rgba(236, 254, 255, 0.55);
  text-align: center;
  padding: 16px;
}

.preview-empty-compact {
  flex: 0;
  min-height: 88px;
  margin-top: 8px;
  padding: 10px 12px;
}

.preview-content {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #bbece6;
  background: #f8fffe;
  max-height: 72vh;
  overflow: auto;
  animation: reveal 280ms ease-out;
}

.preview-content-compact {
  margin-top: 8px;
  max-height: 28vh;
  padding: 10px;
}

.preview-content .sec {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 10px;
  background: white;
  border: 1px solid #d7efec;
}

.preview-content h3 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  color: #0f766e;
  font-size: 0.96rem;
}

.preview-content h4 {
  margin: 8px 0 4px;
  font-size: 0.85rem;
  color: #1f2937;
}

.preview-content p,
.preview-content li {
  margin: 0 0 6px;
  line-height: 1.45;
  font-size: 0.85rem;
  color: #334155;
}

.preview-content ul {
  margin: 0;
  padding-left: 18px;
}

.live-preview-shell {
  margin-top: 12px;
  border: 1px solid #bbece6;
  border-radius: 14px;
  background: #f8fffe;
  padding: 10px;
}

.live-preview-shell--full {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 56vh;
}

.live-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-preview-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: #0f766e;
  font-size: 0.95rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b6ebe3;
  border-radius: 999px;
  background: #ecfffb;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
}

.live-preview-hint {
  margin: 6px 0 8px;
  font-size: 0.8rem;
  color: #334155;
}

.live-preview-content {
  flex: 1;
  max-height: none;
  min-height: 44vh;
  overflow: auto;
  border: 1px solid #d5efeb;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px;
}

.agent-review-dock {
  margin-top: 12px;
  border: 1px solid #cfeae6;
  border-radius: 12px;
  background: rgba(249, 255, 254, 0.95);
  overflow: hidden;
}

.agent-review-dock summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f766e;
  padding: 10px 12px;
  background: #effcf9;
  border-bottom: 1px solid #d3ece8;
}

.agent-review-dock summary::-webkit-details-marker {
  display: none;
}

.agent-review-dock summary::after {
  content: "+";
  float: right;
  font-weight: 800;
}

.agent-review-dock[open] summary::after {
  content: "-";
}

.agent-review-body {
  padding: 0 10px 10px;
}

.live-preview-empty {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.live-sec {
  border: 1px solid #e1f1ee;
  border-radius: 9px;
  background: #fbfffe;
  padding: 8px;
  margin-bottom: 8px;
}

.live-sec h4 {
  margin: 0 0 5px;
  font-size: 0.82rem;
  color: #0f172a;
}

.live-sec p,
.live-sec li {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #334155;
}

.live-sec ul {
  margin: 0;
  padding-left: 18px;
}

.download-link {
  margin-top: 10px;
  text-decoration: none;
  display: inline-flex;
  align-self: flex-start;
  border-radius: 10px;
  padding: 9px 12px;
  color: #115e59;
  border: 1px solid #99f6e4;
  background: #ecfeff;
  font-weight: 700;
}

.hidden {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dashboard refresh: softer pastel professional aesthetic with stronger hierarchy */
:root {
  --bg-a: #f6fffd;
  --bg-b: #f8f7ff;
  --bg-c: #fff6ed;
  --ink-900: #15354f;
  --ink-700: #29607f;
  --ink-500: #4c8cb4;
  --line: #d5e3ef;
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 46px rgba(40, 82, 120, 0.14);
}

body {
  background:
    radial-gradient(980px 520px at -8% 4%, rgba(144, 216, 220, 0.4), transparent 62%),
    radial-gradient(760px 460px at 100% 0%, rgba(186, 210, 255, 0.36), transparent 66%),
    radial-gradient(760px 460px at 90% 100%, rgba(255, 206, 170, 0.24), transparent 62%),
    linear-gradient(130deg, var(--bg-a), var(--bg-b) 58%, var(--bg-c));
}

.bg-layer {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.45) 1px, transparent 0),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px, 42px 42px;
  opacity: 0.52;
}

.layout {
  max-width: 1420px;
  padding: 30px 20px 34px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.builder-panel,
.preview-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(245, 251, 255, 0.9));
}

.hero {
  margin-bottom: 18px;
  padding: 14px 14px 12px;
  border: 1px solid #d7e7f4;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f6fbff 56%, #f2fffa);
}

.badge {
  color: #315a7a;
  background: #e8f3ff;
}

h2 {
  color: #225071;
}

.hero-copy,
.preview-copy {
  color: #3c5972;
  font-size: 0.92rem;
}

.quick-nav {
  top: 8px;
  border: 1px solid #cfe3f1;
  border-radius: 16px;
  background: rgba(248, 253, 255, 0.96);
  box-shadow: 0 8px 20px rgba(59, 102, 143, 0.09);
}

.jump-btn {
  color: #2d5b7f;
  border-color: #cadef0;
  background: linear-gradient(150deg, #ffffff, #f0f7ff);
}

.jump-btn:hover {
  background: #e8f2ff;
}

.choice-block {
  border: 1px solid #d5e7f4;
  border-radius: 16px;
  background: linear-gradient(155deg, #fbfeff, #f5fbff 70%, #f8fff9);
  padding: 10px;
  margin-bottom: 12px;
}

.quick-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
}

.quick-nav .jump-btn {
  flex: 0 0 auto;
}

.quick-nav::-webkit-scrollbar {
  height: 8px;
}

.quick-nav::-webkit-scrollbar-thumb {
  background: rgba(80, 126, 166, 0.35);
  border-radius: 999px;
}

.upload-priority-card {
  position: relative;
  border: 1px solid #9ec5de;
  background: linear-gradient(145deg, #ffffff 0%, #eef7ff 58%, #f0fff8 100%);
  box-shadow: 0 14px 28px rgba(52, 110, 154, 0.16);
}

.upload-priority-card legend {
  color: #1f5577;
  font-weight: 800;
}

.upload-priority-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 10px;
  align-items: stretch;
}

.upload-priority-note {
  border: 1px solid #cde2f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-priority-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #2f526e;
}

.upload-priority-tip {
  margin-top: 8px !important;
  font-weight: 700;
  color: #2a5f84;
}

.upload-priority-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-beautify-btn {
  min-width: 240px;
  border-radius: 999px;
  padding: 11px 20px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(40, 109, 153, 0.26);
  background: linear-gradient(132deg, #2f6d93 0%, #5b9ec8 52%, #59b5aa 100%);
}

.upload-beautify-btn.is-ready {
  box-shadow: 0 16px 30px rgba(40, 109, 153, 0.34);
  filter: saturate(1.08);
}

.upload-file-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #355673;
}

.upload-file-hint.is-ready {
  color: #1e5a82;
  font-weight: 700;
}

.actions button {
  flex: 1 1 220px;
}

input,
textarea,
select,
.row-input {
  border-color: #d6e6f2;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

input:focus,
textarea:focus,
select:focus,
.row-input:focus {
  border-color: #7fb0cf;
  box-shadow: 0 0 0 3px rgba(127, 176, 207, 0.24);
}

.chip {
  border-color: #d4e6f4;
  border-radius: 12px;
  background: #fbfeff;
  color: #355673;
}

.chip:has(input:checked) {
  border-color: #94bdd9;
  background: #eaf5ff;
  box-shadow: 0 6px 14px rgba(80, 135, 176, 0.15);
}

.dynamic-row,
.section-card,
.subsection-card,
.pricing-controls,
.pricing-clarity-card {
  border-color: #d7e6f3;
  background: linear-gradient(155deg, #ffffff, #f8fcff);
  box-shadow: 0 10px 22px rgba(63, 109, 150, 0.1);
}

.switch-label,
.row-toggle,
.live-badge {
  border-color: #cfe2f0;
  color: #2c5f80;
  background: #edf6ff;
}

button.primary {
  background: linear-gradient(128deg, #2f6d93, #5b9ec8);
}

button.secondary,
.chip-btn {
  color: #2e5f83;
  background: #edf6ff;
  border-color: #c6deef;
}

.live-preview-shell {
  border-color: #cfe2ef;
  border-radius: 16px;
  background: linear-gradient(160deg, #fbfeff, #f2f8ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.live-preview-head {
  padding-bottom: 6px;
  border-bottom: 1px solid #d9e8f4;
}

.live-preview-content {
  border-color: #d7e8f3;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  box-shadow: inset 0 0 0 1px rgba(239, 247, 255, 0.75);
}

.live-sec {
  border-color: #dae8f2;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
}

.agent-review-dock {
  border-color: #d5e4ef;
  border-radius: 14px;
  background: linear-gradient(165deg, #fafdff, #f2f8ff);
}

.agent-review-dock summary {
  color: #2c5d80;
  background: linear-gradient(160deg, #eaf3ff, #eff8ff);
  border-bottom-color: #d9e8f3;
}

.preview-content,
.preview-empty {
  border-color: #d6e6f2;
  background: linear-gradient(160deg, #fbfeff, #f3f9ff);
}

.download-link {
  color: #2b5e80;
  border-color: #c6dfef;
  background: linear-gradient(155deg, #f1f8ff, #e8f4ff);
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    min-height: 420px;
  }

  .live-preview-shell--full {
    min-height: 46vh;
  }

  .live-preview-content {
    min-height: 36vh;
  }

  .preview-content-compact {
    max-height: 34vh;
  }
}

@media (max-width: 720px) {
  .builder-panel,
  .preview-panel {
    padding: 18px;
  }

  .preview-panel {
    min-height: auto;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row,
  .pricing-row,
  .role-pricing-row,
  .extra-cost-row,
  .upload-priority-grid,
  .subsection-grid,
  .pricing-metrics {
    grid-template-columns: 1fr;
  }

  .upload-priority-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-beautify-btn {
    min-width: 0;
  }

  .quick-nav {
    top: 6px;
  }

  .live-preview-shell--full {
    min-height: 56vh;
  }

  .live-preview-content {
    min-height: 46vh;
  }

  .preview-content-compact {
    max-height: 40vh;
  }

  .section-head,
  .subsection-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .remove-row {
    width: auto;
    height: auto;
    padding: 8px 12px;
  }

  button {
    width: 100%;
  }
}
