:root {
  --ink: #153a3e;
  --ink-soft: #536b6d;
  --teal: #0f5c5c;
  --teal-dark: #0b4648;
  --mint: #dcefea;
  --mint-light: #f2f8f6;
  --coral: #ef765f;
  --coral-light: #fff0eb;
  --paper: #fffdf8;
  --canvas: #f5f2e9;
  --line: #dcded8;
  --white: #fff;
  --shadow: 0 18px 50px rgba(24, 57, 58, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar { min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(21,58,62,.1); background: rgba(245,242,233,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.6px; }
.brand > span:last-child > span { color: var(--coral); }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 11px 11px 11px 4px; font-family: Georgia, serif; font-style: italic; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.demo-pill { padding: 6px 11px; border: 1px solid #c9d2cf; border-radius: 999px; color: var(--ink-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--mint); cursor: pointer; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }

main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { padding: 78px 0 42px; text-align: center; }
.eyebrow, .mini-label { color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 14px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7.2vw, 82px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero h1 em { color: var(--teal); font-weight: 500; }
.hero p { max-width: 640px; margin: auto; color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }

.stepper { max-width: 520px; margin: 0 auto 52px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; }
.step { display: grid; justify-items: center; gap: 7px; color: #9aa5a2; }
.step span { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid #bfc7c4; border-radius: 50%; background: var(--canvas); font-size: 13px; font-weight: 800; }
.step small { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.stepper i { height: 1px; margin-top: 17px; background: #cdd2cf; }
.step.is-active { color: var(--teal); }
.step.is-active span { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 6px rgba(15,92,92,.1); }
.step.is-done span { color: white; background: #6fa8a0; border-color: #6fa8a0; }

.choice-panel, .workspace { max-width: 900px; margin: 0 auto 72px; }
.section-heading { display: flex; gap: 18px; margin-bottom: 24px; }
.section-number { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #bccac6; border-radius: 50%; color: var(--teal); font-family: Georgia, serif; font-size: 13px; }
.section-heading h2, .card-title-row h2, .settings-head h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 28px; font-weight: 550; letter-spacing: -.02em; }
.section-heading p, .settings-head p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.source-card { min-height: 180px; padding: 25px; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; text-align: left; border: 1px solid #d5d8d2; border-radius: var(--radius); background: rgba(255,255,255,.62); cursor: pointer; transition: .22s ease; overflow: hidden; }
.source-card:hover { transform: translateY(-4px); border-color: #9abbb5; box-shadow: var(--shadow); }
.source-card-primary { color: white; background: var(--teal); border-color: var(--teal); }
.source-card-primary::after { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; bottom: -70px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.04); }
.source-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.14); }
.source-icon-text { background: var(--mint); }
.source-icon svg, .camera-orbit svg { width: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.source-copy { display: grid; gap: 8px; }
.source-copy strong { font-family: Georgia, serif; font-size: 24px; font-weight: 600; }
.source-copy small { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.source-card-primary .source-copy small { color: rgba(255,255,255,.72); }
.source-arrow { font-size: 24px; position: relative; z-index: 1; }
.recommended { position: absolute; top: 14px; right: 16px; padding: 5px 9px; background: var(--coral); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.back-button, .text-button { padding: 8px 0; border: 0; background: none; color: var(--teal); font-size: 13px; font-weight: 750; cursor: pointer; }
.back-button { margin-bottom: 14px; }
.input-card, .settings-card { padding: 28px; margin-bottom: 18px; border: 1px solid #d9dcd6; border-radius: var(--radius); background: rgba(255,255,255,.72); }
.card-title-row, .settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.card-title-row h2 { margin-top: 4px; }
textarea { width: 100%; padding: 17px; resize: vertical; border: 1px solid #cfd7d4; border-radius: 14px; color: var(--ink); background: #fff; line-height: 1.55; outline: none; transition: .2s; }
textarea:focus, select:focus, input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,92,92,.1); }
.field-meta { display: flex; justify-content: space-between; margin-top: 9px; color: #7c8e8c; font-size: 11px; }
.camera-dropzone { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1.5px dashed #8eb3ad; border-radius: 18px; background: var(--mint-light); cursor: pointer; text-align: center; }
.camera-dropzone small { max-width: 380px; color: var(--ink-soft); }
.camera-orbit { width: 62px; height: 62px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 10px rgba(15,92,92,.08); }
.fake-button { margin-top: 10px; padding: 10px 16px; border-radius: 10px; color: var(--teal); background: white; font-size: 13px; font-weight: 800; box-shadow: 0 3px 12px rgba(15,92,92,.09); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-limit, .auto-label { padding: 6px 10px; color: var(--teal); background: var(--mint); border-radius: 999px; font-size: 11px; font-weight: 800; }
.centered { display: block; margin: 10px auto 0; }
.photo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.photo-thumb { padding: 11px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; border: 1px solid #d9e0dd; border-radius: 12px; background: white; }
.photo-thumb > span { width: 38px; height: 44px; display: grid; place-items: center; color: #78928e; background: #edf2ef; border-radius: 6px; font-size: 12px; }
.photo-thumb div { display: grid; gap: 3px; min-width: 0; }
.photo-thumb strong { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-thumb small { color: #78908d; font-size: 10px; }
.photo-thumb b { color: #4a9b7b; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid label, .admin-fields label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
select, input[type="number"] { width: 100%; padding: 13px 14px; border: 1px solid #ced6d3; border-radius: 11px; color: var(--ink); background: white; outline: none; }
.question-types { padding: 0; margin: 22px 0 0; border: 0; }
.question-types legend { margin-bottom: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.question-types label { display: inline-flex; align-items: center; margin: 0 10px 8px 0; cursor: pointer; }
.question-types input { accent-color: var(--teal); }
.question-types span { padding: 9px 12px; border: 1px solid #d2d9d6; border-radius: 9px; background: white; font-size: 12px; }
.primary-button, .secondary-button, .pay-button, .save-button { border: 0; cursor: pointer; font-weight: 800; transition: .2s; }
.primary-button { width: 100%; padding: 17px 20px; display: flex; justify-content: space-between; border-radius: 14px; color: white; background: var(--teal); }
.primary-button:disabled { opacity: .4; cursor: not-allowed; }
.primary-button:not(:disabled):hover, .pay-button:hover { background: var(--teal-dark); transform: translateY(-1px); }

.proposal { margin-bottom: 70px; }
.proposal-top { display: flex; justify-content: space-between; align-items: center; }
.version-badge { padding: 7px 11px; border-radius: 999px; color: var(--teal); background: var(--mint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.proposal-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.preview-column, .revision-panel { border: 1px solid #d5d8d2; border-radius: var(--radius); background: rgba(255,255,255,.68); overflow: hidden; }
.preview-toolbar { padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d8ddd9; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.preview-toolbar button { border: 0; background: none; color: var(--teal); cursor: pointer; }
.status-dot, .secure-dot { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #58a77e; box-shadow: 0 0 0 4px rgba(88,167,126,.12); }
.paper-preview { width: min(90%, 660px); aspect-ratio: 1 / 1.414; min-height: 740px; margin: 30px auto; padding: 42px 45px 30px; position: relative; color: #202b2c; background: var(--paper); box-shadow: 0 10px 35px rgba(29,45,45,.15); font-family: Arial, sans-serif; overflow: hidden; transition: .25s; }
.paper-preview.paper-fit { width: 96%; }
.watermark { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(221,83,64,.16); font-size: clamp(32px, 5vw, 58px); font-weight: 900; letter-spacing: .06em; transform: rotate(-31deg); pointer-events: none; white-space: nowrap; z-index: 2; }
.paper-header { padding-bottom: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-bottom: 2px solid #243f42; font-size: 9px; }
.school-mark { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 7px; font-family: Georgia, serif; font-size: 13px; }
.paper-header > div:nth-child(2) { display: grid; gap: 2px; }
.paper-header strong { font-size: 12px; letter-spacing: .1em; }
.paper-header span { color: #687778; }
.paper-fields { text-align: right; line-height: 1.8; }
.paper-preview > h2 { margin: 27px 0 5px; text-align: center; font-family: Georgia, serif; font-size: 22px; }
.instructions { margin: 0 0 23px; color: #647374; text-align: center; font-size: 9px; }
.paper-section { padding: 13px 0; border-top: 1px solid #daddd8; font-size: 10px; transition: .4s; }
.paper-section.just-changed { padding-left: 9px; background: #eaf6f2; box-shadow: inset 3px 0 var(--teal); }
.question-label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.question-label span { width: 23px; height: 23px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 9px; }
.question-label strong { font-size: 10px; }
.question-label em { color: #798787; font-size: 8px; font-style: normal; }
.paper-section > p { margin: 10px 0 7px 31px; line-height: 1.4; }
.answers { margin-left: 31px; display: grid; gap: 6px; }
.answer-lines { height: 55px; margin-left: 31px; background: repeating-linear-gradient(transparent 0 17px, #d8dcda 18px); }
.paper-preview footer { position: absolute; bottom: 24px; left: 45px; right: 45px; padding-top: 10px; display: flex; justify-content: space-between; border-top: 1px solid #bdc5c2; font-size: 8px; color: #71817f; }
.revision-panel { padding: 27px; position: sticky; top: 92px; }
.revision-head { display: flex; align-items: center; gap: 12px; }
.revision-head h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 550; }
.spark { width: 39px; height: 39px; display: grid; place-items: center; color: white; background: var(--coral); border-radius: 13px; }
.revision-panel > p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0; }
.suggestion-chips button { padding: 7px 9px; border: 1px solid #cdd8d4; border-radius: 999px; color: var(--teal); background: white; font-size: 10px; cursor: pointer; }
.revision-panel form label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.revision-panel textarea { font-size: 13px; }
.secondary-button { width: 100%; margin-top: 9px; padding: 13px; display: flex; justify-content: space-between; border-radius: 11px; color: var(--teal); background: var(--mint); }
.secondary-button:disabled { opacity: .6; }
.change-log { margin-top: 23px; padding-top: 18px; border-top: 1px solid #d7dcda; }
.change-log > div { display: grid; grid-template-columns: 25px 1fr; gap: 8px; margin-top: 10px; font-size: 10px; }
.change-log b { color: var(--teal); }
.change-log p { margin: 0; color: var(--ink-soft); }
.checkout-bar { margin-top: 18px; padding: 20px 24px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; color: white; background: var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.checkout-bar > div:first-child { display: grid; gap: 3px; }
.checkout-bar small { color: #aec0bd; }
.price { padding-left: 25px; display: grid; border-left: 1px solid rgba(255,255,255,.16); }
.price span { color: #aec0bd; font-size: 10px; }
.price b { font-family: Georgia, serif; font-size: 25px; }
.pay-button { padding: 14px 17px; display: flex; gap: 24px; border-radius: 11px; color: white; background: var(--coral); }

.site-footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 35px; display: flex; justify-content: space-between; border-top: 1px solid #d5d8d2; color: #7d8a88; font-size: 11px; }
.site-footer a { color: var(--teal); font-weight: 750; }
dialog { border: 0; border-radius: 22px; box-shadow: 0 24px 80px rgba(14,42,43,.28); }
dialog::backdrop { background: rgba(14,42,43,.5); backdrop-filter: blur(5px); }
.loading-dialog { width: min(420px, calc(100% - 30px)); padding: 40px; text-align: center; }
.loader { width: 52px; height: 52px; margin: 0 auto 20px; border: 4px solid var(--mint); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-dialog h2 { margin: 0; font-family: Georgia, serif; }
.loading-dialog p { color: var(--ink-soft); }
.loading-track { height: 5px; overflow: hidden; background: #edf0ee; border-radius: 99px; }
.loading-track span { width: 35%; height: 100%; display: block; background: var(--coral); border-radius: inherit; animation: loading 1.2s ease-in-out infinite; }
.payment-dialog { width: min(440px, calc(100% - 30px)); padding: 38px; text-align: center; }
.dialog-close { position: absolute; right: 15px; top: 12px; border: 0; background: none; color: #7d8d8a; font-size: 25px; cursor: pointer; }
.payment-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 24px; }
.payment-dialog h2 { margin: 6px 0; font-family: Georgia, serif; font-size: 31px; }
.payment-dialog p { color: var(--ink-soft); line-height: 1.5; }
.order-line { margin: 22px 0; padding: 15px 0; display: flex; justify-content: space-between; border-block: 1px solid #e0e3df; }
.payment-dialog > small { display: block; margin-top: 12px; color: #8a9795; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* Admin */
.admin-body { background: #edf1ef; }
.admin-topbar { height: 70px; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; color: #cfe0dc; background: #102f35; }
.brand-light { color: white; }
.admin-topbar > div { font-size: 11px; }
.admin-main { width: 100%; min-height: calc(100vh - 70px); display: grid; grid-template-columns: 240px 1fr; margin: 0; }
.admin-sidebar { padding: 30px 20px; display: flex; flex-direction: column; background: #163a40; }
.admin-user { padding: 0 10px 26px; display: flex; align-items: center; gap: 10px; color: white; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-user > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #153a3e; background: #a8d1c8; font-weight: 850; }
.admin-user div { display: grid; gap: 3px; }
.admin-user small { color: #9eb4b2; font-size: 10px; }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 24px; }
.admin-sidebar nav a, .back-to-app { padding: 11px 13px; color: #aac0be; border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 700; }
.admin-sidebar nav a.active { color: white; background: rgba(255,255,255,.09); }
.back-to-app { margin-top: auto; }
.admin-content { padding: 45px; overflow: hidden; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 28px; }
.admin-heading h1 { margin: 5px 0 8px; font-family: Georgia, serif; font-size: 38px; font-weight: 550; }
.admin-heading p { max-width: 620px; margin: 0; color: var(--ink-soft); }
.save-button { padding: 12px 16px; color: white; background: var(--teal); border-radius: 10px; }
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.engine-card { padding: 23px; border: 1px solid #d4dcda; border-radius: 18px; background: white; box-shadow: 0 8px 24px rgba(36,66,66,.05); }
.engine-card header { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #e1e5e2; }
.engine-icon { width: 45px; height: 45px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 13px; font-size: 11px; font-weight: 900; }
.text-engine { background: var(--coral); }
.engine-card h2 { margin: 0 0 4px; font-size: 16px; }
.engine-card header p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.active-state { padding: 5px 8px; border-radius: 99px; color: #2f775d; background: #e0f3e8; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.admin-fields { display: grid; gap: 12px; margin: 20px 0; }
.admin-fields select { padding: 10px 11px; font-size: 12px; }
.engine-test { padding: 13px; display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; border-radius: 11px; background: #f3f6f4; }
.test-engine { padding: 9px 11px; border: 1px solid #b8cbc6; border-radius: 8px; color: var(--teal); background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.test-result { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 10px; }
.test-result span { color: #788b88; }
.test-result strong { color: var(--ink); text-align: right; }
.test-result small { grid-column: 1 / -1; color: #83928f; text-align: right; }
.limits-section, .activity-section { padding: 25px; margin-top: 20px; border: 1px solid #d4dcda; border-radius: 18px; background: white; }
.section-heading.compact { margin-bottom: 17px; }
.section-heading.compact h2 { font-size: 22px; }
.section-heading.compact p { font-size: 12px; }
.limit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.limit-grid label { padding: 13px; border: 1px solid #dce1df; border-radius: 11px; background: #fafbf9; }
.limit-grid label > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.limit-grid label div { display: flex; align-items: center; gap: 5px; }
.limit-grid input { padding: 7px; border: 0; background: transparent; font-size: 18px; font-weight: 800; box-shadow: none; }
.limit-grid b { color: #81908e; font-size: 10px; }
.activity-section > div:first-child h2 { margin: 4px 0 16px; font-family: Georgia, serif; font-weight: 550; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row article { padding: 17px; display: grid; gap: 4px; border-radius: 12px; background: #f1f6f4; }
.stat-row span, .stat-row small { color: #718582; font-size: 10px; }
.stat-row strong { font-family: Georgia, serif; font-size: 25px; font-weight: 550; }
.toast { position: fixed; right: 25px; bottom: 25px; padding: 13px 17px; color: white; background: var(--teal); border-radius: 11px; box-shadow: var(--shadow); transform: translateY(100px); opacity: 0; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .proposal-layout { grid-template-columns: 1fr; }
  .revision-panel { position: static; }
  .paper-preview { min-height: 720px; }
  .admin-main { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 28px 18px; }
  .engine-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .topbar { min-height: 62px; padding: 0 18px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  main { width: min(100% - 24px, 1180px); }
  .hero { padding: 46px 0 33px; text-align: left; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 15px; }
  .stepper { margin-bottom: 32px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-card { min-height: 145px; padding: 21px; gap: 14px; }
  .source-icon { width: 52px; height: 52px; border-radius: 16px; }
  .source-copy strong { font-size: 21px; }
  .source-copy small { font-size: 12px; }
  .section-heading { gap: 12px; }
  .section-heading h2, .card-title-row h2 { font-size: 24px; }
  .input-card, .settings-card { padding: 20px; border-radius: 17px; }
  .camera-dropzone { min-height: 220px; }
  .photo-list, .field-grid { grid-template-columns: 1fr; }
  .proposal-top { padding-inline: 2px; }
  .preview-column { margin-inline: -12px; border-radius: 0; border-inline: 0; }
  .paper-preview { width: 96%; min-height: 610px; margin: 18px auto; padding: 28px 25px 24px; }
  .paper-preview footer { left: 25px; right: 25px; }
  .paper-fields { display: none; }
  .revision-panel { padding: 22px; }
  .checkout-bar { padding: 18px; grid-template-columns: 1fr auto; gap: 13px; position: sticky; bottom: 8px; z-index: 5; }
  .checkout-bar > div:first-child { display: none; }
  .price { padding-left: 0; border: 0; }
  .pay-button { justify-content: space-between; }
  .site-footer { flex-direction: column; gap: 10px; }
  .admin-topbar { padding: 0 18px; }
  .admin-topbar > div { display: none; }
  .admin-heading { display: grid; }
  .admin-heading h1 { font-size: 31px; }
  .save-button { width: 100%; }
  .engine-card { padding: 18px; }
  .engine-card header { grid-template-columns: auto 1fr; }
  .active-state { grid-column: 2; justify-self: start; }
  .limit-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
