:root {
  --ink: #29251f;
  --muted: #756d62;
  --paper: #f8f1e7;
  --canvas: #e8ddcd;
  --line: rgba(62, 54, 44, 0.16);
  --accent: #a45438;
  --moss: #667060;
  --shadow: 0 28px 80px rgba(62, 48, 31, 0.15);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.55 "Montserrat", sans-serif;
  min-width: 320px;
}

body *, button, input, textarea { font-family: "Montserrat", sans-serif !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 232, 218, .82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 9;
}

.brand {
  width: fit-content;
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font: 700 22px/1 "Cormorant Garamond", serif;
}

.top-status {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.top-status i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: #70805e;
  box-shadow: 0 0 0 4px rgba(112, 128, 94, .12);
}

.quiet-button {
  justify-self: end;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(440px, .78fr) minmax(640px, 1.22fr);
  min-height: calc(100vh - 72px);
}

.editor-panel {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 68px clamp(34px, 5vw, 76px) 80px;
}

.eyebrow, .dialog-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.editor-panel > .eyebrow { margin-bottom: 28px; }

h1 {
  max-width: 630px;
  margin: 15px 0 18px;
  font: 600 clamp(48px, 5vw, 76px)/.88 "Cormorant Garamond", serif;
  letter-spacing: -.04em;
}

h1 em { color: var(--accent); font-weight: 500; }

.intro {
  max-width: 520px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 14px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin-bottom: 34px;
}

.step-tab {
  border: 0;
  padding: 16px 4px;
  background: transparent;
  color: #948a7d;
  text-align: left;
  cursor: pointer;
  font-size: 11px;
  transition: color .25s ease, transform .25s ease;
}

.step-tab b { margin-right: 8px; font: 600 14px "Cormorant Garamond", serif; }
.step-tab.active { color: var(--ink); }
.step-tab.active::after { content: ""; display: block; height: 2px; margin-top: 13px; background: var(--accent); animation: lineIn .35s ease both; }
.step-tab:hover { color: var(--accent); transform: translateY(-1px); }

.form-step { display: none; margin: 0; padding: 0; border: 0; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.form-step.active { display: block; }
.form-step legend { margin: 0 0 22px; padding: 0; font: 600 26px "Cormorant Garamond", serif; }
.step-copy { color: var(--muted); margin: -12px 0 25px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid:has(.compact) { grid-template-columns: 1fr 120px; }
.field { position: relative; margin-bottom: 22px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.field input, .field textarea, dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.32);
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.field textarea { resize: vertical; min-height: 122px; }
.field input:focus, .field textarea:focus, dialog input:focus { background: rgba(255,255,255,.7); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164,84,56,.08); }
.field-note { position: absolute; right: 12px; bottom: 9px; color: #a09689; font-size: 9px; }

.switch-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 23px; color: var(--muted); cursor: pointer; font-size: 12px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 36px; height: 20px; padding: 2px; border: 1px solid #b8aea1; border-radius: 99px; transition: .2s; }
.switch::after { content: ""; width: 14px; height: 14px; display: block; border-radius: 50%; background: #9a9084; transition: .2s; }
.switch-row input:checked + .switch { background: var(--moss); border-color: var(--moss); }
.switch-row input:checked + .switch::after { background: white; transform: translateX(16px); }
.switch-row.emphasis { margin-top: 22px; color: var(--ink); }

.upload {
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px dashed #b9ad9d;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.upload:hover { background: rgba(255,255,255,.55); border-color: var(--accent); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 500 20px "Cormorant Garamond", serif; }
.upload-icon svg { width: 19px; height: 19px; }
.upload b, .upload small { display: block; }
.upload b { margin-bottom: 3px; font-size: 12px; }
.upload small { color: var(--muted); font-size: 9px; }
.upload-state { color: var(--accent); font-size: 10px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.privacy-note, .prototype-note { color: #897f72; font-size: 10px; line-height: 1.6; }
.prototype-note { margin: 16px 0 0; }
.media-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.empty-media, .media-item { aspect-ratio: .82; border: 1px solid var(--line); background: #eee5d8; position: relative; overflow: hidden; }
.empty-media { display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: #968b7e; }
.empty-media span { font: 600 18px "Cormorant Garamond", serif; }
.empty-media p { margin: 0; font-size: 8px; line-height: 1.45; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item b { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; background: rgba(248,241,231,.88); font-size: 8px; }

.ready-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px; background: #e8eadf; border-left: 3px solid var(--moss); }
.ready-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--moss); color: white; }
.ready-card b { font-size: 12px; }
.ready-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.editor-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin-top: 32px; }
.primary-action, .secondary-action { min-height: 54px; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.primary-action { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 22px; background: var(--ink); color: var(--paper); }
.primary-action b { font-size: 20px; font-weight: 400; }
.primary-action b { width: 22px; height: 22px; display: grid; place-items: center; }
.primary-action b svg { width: 20px; height: 20px; }
.secondary-action { border: 1px solid var(--ink); background: transparent; }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.primary-action:hover { background: var(--accent); }

.preview-panel { min-width: 0; padding: 34px clamp(24px, 4vw, 56px) 48px; background: radial-gradient(circle at 28% 15%, rgba(255,255,255,.28), transparent 38%), var(--canvas); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 auto 20px; max-width: 740px; }
.preview-toolbar > div:first-child span, .preview-toolbar > div:first-child b { display: block; }
.preview-toolbar > div:first-child span { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.preview-toolbar > div:first-child b { margin-top: 4px; font-size: 11px; font-weight: 500; }
.preview-toolbar > div:first-child i { width: 6px; height: 6px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--accent); }
.page-controls { display: flex; align-items: center; gap: 12px; }
.page-controls button { width: 34px; height: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.3); cursor: pointer; }
.page-controls button { display: grid; place-items: center; }
.page-controls button svg { width: 16px; height: 16px; }
.page-controls span { font-size: 10px; }
.page-controls span b { font: 600 17px "Cormorant Garamond", serif; }

.page-stage { max-width: 740px; margin: auto; perspective: 1400px; }
.portfolio-page { aspect-ratio: 210/297; display: none; position: relative; overflow: hidden; padding: 5.8% 6.5%; background: var(--paper); box-shadow: var(--shadow); transform-origin: 50% 90%; }
.portfolio-page.active { display: block; animation: pageIn .55s cubic-bezier(.22,.8,.24,1) both; }
.page-top, .page-footer { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; font-size: 7px; letter-spacing: .13em; }
.mini-brand { font-weight: 700; letter-spacing: .18em; }
.page-top.dark, .page-footer.dark { color: #eae0d1; }
.page-footer { position: absolute; left: 6.5%; right: 6.5%; bottom: 4.4%; padding-top: 2.3%; border-top: 1px solid rgba(41,37,31,.25); }
.page-footer.dark { border-color: rgba(238,227,210,.28); }
.page-footer b { font: 600 13px "Cormorant Garamond", serif; }

.cover-page { background: #f3e8d7; }
.cover-page::before { content: ""; position: absolute; width: 80%; height: 60%; right: -40%; top: -20%; border: 1px solid rgba(164,84,56,.28); border-radius: 50%; }
.cover-copy { position: absolute; left: 6.5%; top: 18%; width: 60%; z-index: 4; }
.cover-kicker { display: block; margin-bottom: 7%; color: var(--accent); font-size: 7px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.cover-copy h2 { margin: 0; font: 600 clamp(42px, 6.3vw, 82px)/.76 "Cormorant Garamond", serif; letter-spacing: -.07em; }
.cover-copy h2 i { color: var(--accent); font-style: normal; font-weight: 400; }
.cover-copy h2 em { font-weight: 500; }
.cover-copy p { margin: 7% 0 0; width: 45%; font-size: 8px; line-height: 1.4; }
.cover-portrait { position: absolute; width: 35%; aspect-ratio: .72; right: 5%; top: 17%; z-index: 3; display: grid; place-items: center; overflow: hidden; background: #c9b49b; }
.cover-portrait::after { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(248,241,231,.5); }
.cover-portrait img, .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-portrait span, .profile-photo span { font: 600 55px "Cormorant Garamond", serif; color: rgba(248,241,231,.75); }
.cover-grid { position: absolute; left: 6.5%; bottom: 13%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; width: 64%; height: 22%; }
.cover-grid div { background: linear-gradient(135deg, #787869, #b7a58f); background-size: cover; background-position: center; }

.profile-page { background: #30332f; color: #eee4d6; }
.profile-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8%; }
.profile-heading h2 { margin: 0; font: 500 clamp(31px, 4.6vw, 59px)/.82 "Cormorant Garamond", serif; letter-spacing: -.04em; }
.profile-heading h2 em { color: #d6aa90; }
.experience { display: flex; align-items: end; gap: 6px; }
.experience b { color: #d6aa90; font: 600 clamp(45px, 6vw, 76px)/.75 "Cormorant Garamond", serif; }
.experience span { padding-bottom: 2px; font-size: 7px; line-height: 1.2; text-transform: uppercase; }
.profile-grid { display: grid; grid-template-columns: 34% 1fr; gap: 6%; margin-top: 7%; }
.profile-photo { aspect-ratio: .83; display: grid; place-items: center; overflow: hidden; background: #ad9880; }
.profile-bio { padding-top: 2%; }
.profile-bio h3 { margin: 0; font: 600 24px "Cormorant Garamond", serif; }
.profile-bio > span { color: #d6aa90; font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.profile-bio p { margin: 10% 0; color: #d4cdc3; font-size: 8px; line-height: 1.65; }
.contact-row { display: flex; flex-direction: column; gap: 4px; font-size: 7px; }
.work-strip { height: 24%; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5%; margin-top: 6%; }
.work-strip div { display: flex; align-items: end; padding: 2%; background: #767568; background-size: cover; background-position: center; }
.work-strip span { padding: 3px 5px; background: rgba(37,37,32,.76); color: white; font-size: 5px; letter-spacing: .1em; }

.proma-page { background: #e6d7c4; }
.proma-statement { position: absolute; left: 0; top: 0; bottom: 0; width: 43%; padding: 25% 6% 10%; background: var(--accent); color: #f7eee1; }
.proma-statement::after { content: ""; position: absolute; left: 40%; bottom: 10%; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.proma-statement span { position: relative; z-index: 2; font: 500 clamp(34px, 4.8vw, 62px)/.88 "Cormorant Garamond", serif; letter-spacing: -.05em; }
.proma-statement em { color: #322a24; }
.proma-page .page-top { color: #f7eee1; }
.proma-content { position: absolute; width: 46%; right: 6.5%; top: 18%; }
.proma-content h2 { margin: 0; font: 600 clamp(28px, 3.7vw, 48px)/.9 "Cormorant Garamond", serif; }
.proma-content > p { margin: 12% 0; color: #6f6256; font-size: 8px; line-height: 1.65; }
.proma-values { border-top: 1px solid rgba(41,37,31,.25); }
.proma-values div { display: grid; grid-template-columns: 24px 1fr; padding: 7% 0; border-bottom: 1px solid rgba(41,37,31,.2); font-size: 7px; }
.proma-values b { color: var(--accent); font: 600 12px "Cormorant Garamond", serif; }
.proma-seal { position: absolute; right: 8%; bottom: 11%; display: flex; align-items: center; gap: 6px; }
.proma-seal > span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 22px "Cormorant Garamond", serif; }
.proma-seal small { font-size: 6px; line-height: 1.25; text-transform: uppercase; }

.estimate-page { background: #393b36; color: #eee4d6; }
.estimate-title { margin-top: 9%; }
.estimate-title > span { color: #d6aa90; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.estimate-title h2 { max-width: 70%; margin: 2% 0 0; font: 500 clamp(34px, 4.8vw, 60px)/.88 "Cormorant Garamond", serif; letter-spacing: -.04em; }
.estimate-sheet { position: absolute; left: 6.5%; top: 34%; width: 61%; height: 46%; padding: 4%; background: #f5ecdf; color: var(--ink); box-shadow: 0 16px 30px rgba(0,0,0,.18); transform: rotate(-1deg); }
.sheet-head { display: flex; justify-content: space-between; padding-bottom: 4%; border-bottom: 1px solid var(--line); font-size: 6px; }
.sheet-lines { display: grid; gap: 8px; margin: 8% 0; }
.sheet-lines i { height: 3px; background: #ddd1c1; }
.sheet-lines i:nth-child(2n) { width: 78%; }
.sheet-file { display: flex; flex-direction: column; padding: 5%; background: #e9dfd0; }
.sheet-file span { color: var(--muted); font-size: 5px; letter-spacing: .12em; }
.sheet-file b { margin-top: 3px; font-size: 7px; }
.sheet-total { display: flex; justify-content: space-between; align-items: end; margin-top: 8%; }
.sheet-total span { font-size: 6px; }
.sheet-total b { color: var(--accent); font: 600 19px "Cormorant Garamond", serif; }
.sheet-total i { font-style: normal; }
.qr-block { position: absolute; width: 23%; right: 6.5%; top: 42%; text-align: center; }
.qr-block > div { aspect-ratio: 1; display: grid; place-items: center; padding: 7%; background: #f5ecdf; color: var(--ink); }
.qr-block svg { width: 100%; height: 100%; }
.qr-block p { font-size: 6px; line-height: 1.45; }
.estimate-person { position: absolute; right: 6.5%; top: 69%; width: 23%; }
.estimate-person span, .estimate-person b, .estimate-person small { display: block; }
.estimate-person span { color: #d6aa90; font-size: 5px; letter-spacing: .12em; }
.estimate-person b { margin: 5px 0 2px; font: 600 17px "Cormorant Garamond", serif; }
.estimate-person small { font-size: 6px; }

.thumbnail-rail { max-width: 740px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbnail { position: relative; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 1fr auto; column-gap: 8px; height: 88px; padding: 8px; border: 1px solid transparent; background: rgba(248,241,231,.35); cursor: pointer; text-align: left; transition: .2s; }
.thumbnail:hover, .thumbnail.active { border-color: rgba(41,37,31,.35); background: rgba(248,241,231,.68); }
.thumb-number { grid-row: 1 / 3; color: #8f8579; font: 600 15px "Cormorant Garamond", serif; }
.thumbnail i { display: block; background: #c9b49b; }
.thumbnail b { font-size: 8px; font-weight: 600; }
.thumb-profile { background: #494b45 !important; }
.thumb-proma { background: linear-gradient(90deg, var(--accent) 42%, #d6c5ae 42%) !important; }
.thumb-estimate { background: #5a5b55 !important; }

dialog { width: min(430px, calc(100vw - 32px)); border: 0; padding: 38px; background: var(--paper); box-shadow: 0 35px 100px rgba(41,31,20,.35); }
dialog::backdrop { background: rgba(41,37,31,.62); backdrop-filter: blur(5px); }
dialog h2 { margin: 8px 0 22px; font: 600 38px "Cormorant Garamond", serif; }
.dialog-close { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; font: 32px "Cormorant Garamond", serif; cursor: pointer; }
.dialog-qr { width: 180px; height: 180px; margin: 0 auto 24px; padding: 12px; background: #efe5d7; }
.dialog-qr svg { width: 100%; height: 100%; }
dialog label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
dialog input { margin: 7px 0 14px; text-transform: none; font-size: 11px; letter-spacing: 0; }
dialog .primary-action { width: 100%; }
dialog > p { margin: 15px 0 0; color: var(--muted); font-size: 9px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { width: 0; } to { width: 100%; } }
@keyframes pageIn { from { opacity: 0; transform: rotateX(3deg) translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: 1fr; }
  .editor-panel { border-right: 0; }
  .preview-panel { border-top: 1px solid var(--line); }
  .portfolio-page { max-height: none; }
}

@media (max-width: 620px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .top-status { display: none; }
  .editor-panel { padding: 44px 20px 55px; }
  h1 { font-size: 49px; }
  .field-grid, .field-grid:has(.compact) { grid-template-columns: 1fr; gap: 0; }
  .step-tab { font-size: 9px; }
  .step-tab b { display: block; margin-bottom: 3px; }
  .editor-actions { grid-template-columns: 1fr; }
  .preview-panel { padding: 26px 12px 40px; }
  .thumbnail-rail { gap: 5px; }
  .thumbnail { height: 67px; grid-template-columns: 18px 1fr; padding: 5px; }
  .thumbnail b { display: none; }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .grain, .topbar, .editor-panel, .preview-toolbar, .thumbnail-rail, dialog { display: none !important; }
  .workspace, .preview-panel, .page-stage { display: block; padding: 0; margin: 0; max-width: none; }
  .portfolio-page, .portfolio-page.active { display: block !important; width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; break-after: page; page-break-after: always; animation: none; }
}

/* Deliberately plain document preview for the pilot template. */
.workspace { min-height: 100vh; }
.portfolio-page.plain-page,
.portfolio-page.plain-page * {
  font-family: "Times New Roman", Times, serif !important;
}
.portfolio-page.plain-page {
  padding: 9% 10%;
  background: #fff;
  color: #111;
}
.portfolio-page.plain-page::before,
.portfolio-page.plain-page::after { display: none !important; }
.plain-page h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.15;
}
.plain-page h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}
.plain-page p {
  margin: 7px 0;
  font-size: clamp(11px, 1.15vw, 16px);
  line-height: 1.45;
}
.plain-rule { height: 1px; margin: 4% 0 8%; background: #111; }
.plain-cover-copy { min-height: 18%; text-align: center; }
.plain-cover-copy h3 { margin-bottom: 3%; font-size: clamp(24px, 3.5vw, 44px); }
.plain-photo {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8d8d8;
}
.plain-photo:empty { border-color: transparent; }
.plain-photo img { width: 100%; height: 100%; object-fit: cover; }
.plain-portrait { width: 35%; aspect-ratio: 3 / 4; margin: 5% auto 7%; }
.plain-profile { display: grid; grid-template-columns: 28% 1fr; gap: 8%; align-items: start; }
.plain-profile .plain-photo { aspect-ratio: 3 / 4; }
.plain-profile h3 { margin: 2% 0 7%; }
.experience-suffix:only-child { display: none; }
.plain-about { min-height: 12%; margin: 7% 0 !important; white-space: pre-wrap; }
.plain-section-title { margin: 7% 0 3% !important; font-size: clamp(15px, 1.7vw, 21px) !important; }
.plain-gallery {
  position: static;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  margin: 0;
}
.plain-gallery div {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  background: #fff center / cover no-repeat;
  border: 0;
}
.plain-placeholder {
  min-height: 65%;
  padding-top: 2%;
}
.plain-estimate { margin-top: 10%; padding: 5% 0; border-block: 1px solid #bbb; }
.plain-signature { position: absolute; left: 10%; bottom: 13%; }
.plain-qr { position: absolute; right: 10%; bottom: 11%; width: 17%; aspect-ratio: 1; }
.plain-qr svg { width: 100%; height: 100%; }
.plain-page-number {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  text-align: center;
  font-size: 12px;
}
.thumbnail i,
.thumb-profile,
.thumb-proma,
.thumb-estimate { background: #fff !important; border: 1px solid rgba(41,37,31,.14); }
@media print {
  .portfolio-page.plain-page { background: #fff !important; }
}
