/* ==========================================================
   Studio Chronique, Draft F "soft focus"
   Calm, minimal, warm. Lowercase headings and navigation,
   light type, generous space, a softly blurred photo and
   full-width colour blocks taken from that photo.
   See docs/01-design-system.md.
   ========================================================== */

/* ---------- 1. Font: Hanken Grotesk (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* Palette */
  --cream: #F6EFE6;   /* page background, light text on dark */
  --ink: #3A2219;     /* all body text, dark buttons */
  --coral: #F28060;   /* main colour blocks, estimate panel, selected states */
  --peach: #FBBE9C;   /* second colour block, selected rows, saved messages */
  --bamboo: #D9BE8C;  /* third colour block, paid bars */
  --rust: #B1633F;    /* background only: fails contrast as text */
  --rust-dark: #A15A39; /* pricing subscription block: cream text passes at 4.56:1 */
  --wood: #764A37;    /* footer, admin sidebar, link hover */
  --blush: #FCE6DA;   /* soft panels, file drop zones */
  --line: rgba(58, 34, 25, 0.18);

  /* The accent is changeable in the admin later (Phase 8).
     Text on the accent is always ink, never white. */
  --accent: var(--coral);
  --on-accent: var(--ink); /* text colour on the accent */

  /* Supporting colours, all at least 4.5:1 on cream, blush and peach */
  --ink-2: #6A4C40;   /* secondary text */
  --error: #8B2E1F;
  --white-line: rgba(255, 255, 255, 0.92);

  /* The photo used by the blurred bands and windows */
  --photo: url('/images/home.jpg');

  --font: 'Hanken Grotesk', Arial, sans-serif;

  --t-sm: 14px;
  --t-base: 16px;
  --t-body: 17px;
  --t-md: 20px;
  --t-lg: 26px;
  --t-title: clamp(44px, 5vw, 64px);     /* page titles */
  --t-section: clamp(36px, 4.4vw, 56px); /* section headings, 44 to 64 on desktop */

  --max: 1280px;
  --gutter: 48px;
  --space: clamp(64px, 8vw, 112px);
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 300 var(--t-body)/1.6 var(--font); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--wood); }
h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -0.03em; }
h3 { font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 14px; z-index: 100; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--cream); }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 4. Buttons: pills, lowercase ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); font: 500 15px/1.2 var(--font); text-decoration: none; text-transform: lowercase; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--wood); border-color: var(--wood); color: var(--cream); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(58, 34, 25, 0.08); border-color: var(--ink); color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: var(--t-sm); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.textlink { display: inline-block; margin-top: 32px; font-weight: 400; }
.textbutton { background: none; border: 0; padding: 0; color: var(--ink); font: 400 var(--t-sm)/1.4 var(--font); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.textbutton:hover { color: var(--wood); }

/* ---------- 5. Header: studio name, lowercase links, dark pill. No "home" link. ---------- */
.masthead { position: relative; z-index: 30; background: var(--accent); color: var(--on-accent); }
/* The menu bar takes the site colour: its text and button follow --on-accent so they stay readable (4.5:1) */
.masthead:not(.masthead--over) a:not(.btn), .masthead:not(.masthead--over) a:not(.btn):hover { color: var(--on-accent); }
.masthead:not(.masthead--over) :focus-visible { outline-color: var(--on-accent); }
.masthead:not(.masthead--over) .btn { background: var(--accent-btn, var(--ink)); border-color: var(--accent-btn, var(--ink)); color: var(--on-accent-btn, var(--cream)); }
.masthead:not(.masthead--over) .btn:hover { background: var(--accent-btn, var(--ink)); border-color: var(--accent-btn, var(--ink)); color: var(--on-accent-btn, var(--cream)); opacity: 0.85; }
.masthead--over { position: absolute; top: 0; left: 0; right: 0; background: transparent; } /* homepage, Phase 2 */
.masthead__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 500; font-size: 16px; letter-spacing: 0.02em; text-decoration: none; text-transform: lowercase; padding: 10px 0; }
.sitenav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; }
.sitenav ul { display: flex; flex-wrap: wrap; gap: 0 26px; list-style: none; margin: 0; padding: 0; }
.sitenav a:not(.btn) { display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 400; text-decoration: none; }
.sitenav a[aria-current='page']:not(.btn) { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 560px) {
  .masthead__inner { gap: 4px 16px; }
  .sitenav { gap: 4px 18px; }
  .sitenav ul { gap: 0 18px; }
}

/* ---------- 6. Title band: 220px blurred photo, title and one line on the left ---------- */
.pagehead, .builderhead { position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: center; padding: 40px 0; background: var(--accent); margin-bottom: 56px; }
.pagehead::before, .builderhead::before { content: ''; position: absolute; inset: 0; background: var(--photo) center / cover no-repeat; filter: blur(16px) saturate(1.05); }
.pagehead > .wrap, .builderhead > .wrap { position: relative; z-index: 1; width: 100%; }
.pagehead::after, .builderhead::after { content: ''; position: absolute; inset: 0; background: var(--veil, transparent); }
.pagehead--flush { margin-bottom: 0; } /* when the next section is a colour block */
.pagehead__title { font-size: var(--t-title); font-weight: 300; line-height: 1; letter-spacing: -0.03em; text-transform: lowercase; max-width: 18ch; }
.pagehead__lede { margin: 10px 0 0; font-size: var(--t-base); line-height: 1.5; font-weight: 300; max-width: 34em; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; font-size: 15px; }
.jump a { font-weight: 400; padding: 6px 0; }

/* ---------- 7. Photo bands and the sharp "window" ----------
   A window is a crisp crop of the same photo, lined up exactly with the
   blurred one behind it. Set its position on a modifier class with:
   --l (left %), --t (top %), --w (width %), --h (height %). */
.photoband { position: relative; overflow: hidden; background: var(--accent); }
.photoband__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) saturate(1.05); }
.photoband__veil { position: absolute; inset: 0; background: var(--veil, transparent); }

/* Text on the blurred photo: ink on light photos, cream on dark ones (--on-photo, set
   per photo in /theme.css along with --veil, a tint just strong enough for 4.5:1) */
.pagehead, .builderhead, .photoband, .masthead--over { color: var(--on-photo, var(--ink)); }
.pagehead a:not(.btn), .builderhead a:not(.btn), .photoband a:not(.btn), .masthead--over a:not(.btn),
.pagehead a:not(.btn):hover, .builderhead a:not(.btn):hover, .photoband a:not(.btn):hover, .masthead--over a:not(.btn):hover { color: var(--on-photo, var(--ink)); }
.pagehead :focus-visible, .builderhead :focus-visible, .photoband :focus-visible, .masthead--over :focus-visible { outline-color: var(--on-photo, var(--ink)); }
.photoband .btn--ghost, .masthead--over .btn--ghost { color: var(--on-photo, var(--ink)); border-color: var(--on-photo, var(--ink)); }
.photoband .btn--ghost:hover, .masthead--over .btn--ghost:hover { background: transparent; color: var(--on-photo, var(--ink)); border-color: var(--on-photo, var(--ink)); text-decoration: underline; }
.window { position: absolute; overflow: hidden; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); }
.window > img { position: absolute; max-width: none; object-fit: cover; width: calc(100% * 100 / var(--w)); height: calc(100% * 100 / var(--h)); left: calc(-100% * var(--l) / var(--w)); top: calc(-100% * var(--t) / var(--h)); }
.window--rect { border: 2px solid var(--white-line); }
.window--rect::before, .window--rect::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: 1; background: rgba(255, 255, 255, 0.95); }
.window--rect::before { width: 1.5px; height: 28px; margin: -14px 0 0 -0.75px; }
.window--rect::after { width: 28px; height: 1.5px; margin: -0.75px 0 0 -14px; }

/* Closing section: 540px band, sharp window on the right */
.closing { height: 540px; }
.closing .window { --l: 72; --t: 14; --w: 13; --h: 72; }
.closing__text { position: absolute; left: 8%; top: 26%; max-width: 560px; }
.closing__title { margin: 0 0 22px; font-weight: 300; font-size: clamp(48px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.03em; }
.closing__text p { margin: 0 0 26px; font-size: var(--t-body); line-height: 1.6; max-width: 26em; font-weight: 300; }
@media (max-width: 720px) {
  .closing__text { left: var(--gutter); top: 48px; width: calc(72% - var(--gutter) - 16px); }
  .closing__title { font-size: 40px; }
  .closing__text p { font-size: var(--t-base); }
}

/* ---------- Homepage: one full screen, header over the photo, no footer ---------- */
.home { height: 880px; height: max(880px, 100svh); }
.home__window { z-index: 1; }
.home .window--rect { --l: 18; --t: 15; --w: 19; --h: 62; }

.window--arch { --l: 17; --t: 13; --w: 22; --h: 70; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.window__time { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 13px; letter-spacing: 0.1em; color: #fff; text-shadow: 0 1px 4px rgba(58, 34, 25, 0.55); font-variant-numeric: tabular-nums; white-space: nowrap; }

.strip { --t: 16; --w: 6.5; --h: 60; }
.strip--1 { --l: 12; }
.strip--2 { --l: 21.5; }
.strip--3 { --l: 31; }
.window--strip { border-radius: 999px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.strip__label { position: absolute; margin: 0; left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); top: calc((var(--t) + var(--h) + 2) * 1%); text-align: center; font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; }

.cmark { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmark--phone { display: none; }

.home__lines { position: absolute; left: 50%; top: 46%; display: flex; flex-wrap: wrap; gap: 16px 72px; }
.home__lines p { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 400; }
.home__small { position: absolute; left: 50%; top: 62%; max-width: 300px; }
.home__small p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 300; }
.home__foot { position: absolute; left: 0; right: 0; bottom: 48px; padding: 0 var(--gutter); text-align: center; }
.home__coords { margin: 0 0 22px; font-size: 14px; letter-spacing: 0.08em; white-space: pre; }
.home__actions { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Phones: the full screen height, window under the header, text below it */
@media (max-width: 720px) {
  .home { height: 100vh; height: 100svh; min-height: 640px; }
  .home .window--rect { --l: 38; --t: 25; --w: 24; --h: 31; }
  .window--arch { --l: 30; --t: 23; --w: 40; --h: 33; }
  .strip { --t: 24; --w: 14; --h: 28; }
  .strip--1 { --l: 23; }
  .strip--2 { --l: 43; }
  .strip--3 { --l: 63; }
  .cmark--desktop { display: none; }
  .cmark--phone { display: block; }
  .home__lines { left: var(--gutter); right: var(--gutter); top: 60%; gap: 8px 32px; }
  .home__small { left: var(--gutter); right: var(--gutter); top: 69%; }
  .home__foot { bottom: 32px; }
  .home__coords { margin-bottom: 16px; }
}

/* ---------- Work: grid of projects and the project overlay ---------- */
.workgrid { padding: 0 0 120px; }
.workgrid__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.workgrid__empty { grid-column: 1 / -1; padding: 40px 0; }
.workgrid__empty p { max-width: 34em; }
.wcell { display: block; text-decoration: none; color: var(--ink); }
.wcell--7 { grid-column: span 7; } .wcell--5 { grid-column: span 5; } .wcell--4 { grid-column: span 4; }
.wcell--8 { grid-column: span 8; } .wcell--6 { grid-column: span 6; }
.wcell__img { display: block; overflow: hidden; background: var(--blush); height: 420px; }
.wcell--a .wcell__img { height: 460px; } .wcell--b .wcell__img { height: 380px; }
.wcell__img--empty { background: var(--accent); }
.wcell__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wcell:hover .wcell__img img { transform: scale(1.02); }
.wcell__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 15px; }
.wcell__name { font-weight: 500; }
.wcell__tag { font-weight: 300; }
.wcell:hover .wcell__name { text-decoration: underline; text-underline-offset: 0.2em; }
.wcell:focus-visible { outline-offset: 6px; }
@media (max-width: 860px) {
  .workgrid__inner { gap: 32px 16px; }
  .wcell--7, .wcell--5, .wcell--4, .wcell--8, .wcell--6 { grid-column: 1 / -1; }
  .wcell__img, .wcell--a .wcell__img, .wcell--b .wcell__img { height: auto; aspect-ratio: 4 / 3; }
}

.has-overlay { overflow: hidden; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(58, 34, 25, 0.82); overflow-y: auto; overscroll-behavior: contain; }
.overlay__frame { max-width: 1240px; margin: 0 auto; padding: 24px 24px 80px; display: flex; gap: 20px; align-items: flex-start; }
.overlay__card { flex: 1 1 auto; min-width: 0; background: var(--cream); }
.overlay__preview { margin: 0; padding: 10px 48px; background: var(--peach); font-size: var(--t-sm); }
.overlay__head { padding: 40px 48px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.overlay__meta { margin: 0 0 10px; font-size: var(--t-sm); font-weight: 300; white-space: pre-wrap; }
.overlay__title { margin: 0; font-weight: 300; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.overlay__title:focus { outline: none; }
.overlay__head .btn { font-size: var(--t-sm); }
.oimg img { width: 100%; height: auto; display: block; }
.oimgs { display: grid; }
.oimgs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oimgs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oimgs .oimg img { height: 100%; object-fit: cover; }
.otext { padding: 64px 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.otext__label { grid-column: span 4; margin: 0; font-size: var(--t-sm); }
.otext__body { grid-column: span 8; margin: 0; font-weight: 300; font-size: 24px; line-height: 1.5; white-space: pre-line; }
.ovideo { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.ovideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.odetails { padding: 56px 48px 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-bottom: 1px solid var(--line); }
.odetails__label { margin: 0 0 10px; font-size: var(--t-sm); }
.odetails__text { margin: 0; font-weight: 300; line-height: 1.6; }
.omore { padding: 40px 48px 48px; }
.omore__label { margin: 0 0 18px; font-size: var(--t-sm); }
.omore__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.omore__item { display: block; text-decoration: none; }
.omore__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent); }
.omore__img img { width: 100%; height: 100%; object-fit: cover; }
.omore__name { display: block; padding-top: 10px; font-size: var(--t-sm); font-weight: 500; }
.omore__item:hover .omore__name { text-decoration: underline; }
.overlay__buttons { flex: none; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.obtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--cream); color: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 300; line-height: 1; text-decoration: none; }
.obtn:hover { background: rgba(246, 239, 230, 0.15); color: var(--cream); }
.obtn--close { background: var(--cream); color: var(--ink); font-size: 26px; }
.obtn--close:hover { background: #fff; color: var(--ink); }
.obtn--plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.obtn--plus:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.05); }
.overlay__buttons :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
@media (max-width: 860px) {
  .overlay__frame { flex-direction: column-reverse; padding: 12px 0 40px; gap: 12px; }
  .overlay__buttons { position: sticky; top: 8px; z-index: 2; flex-direction: row; justify-content: flex-end; width: 100%; padding: 0 12px; }
  .overlay__head, .otext, .odetails, .omore { padding-left: var(--gutter); padding-right: var(--gutter); }
  .overlay__preview { padding-left: var(--gutter); }
  .overlay__head { padding-top: 28px; }
  .otext { padding-top: 40px; padding-bottom: 40px; gap: 8px; }
  .otext__label, .otext__body { grid-column: 1 / -1; }
  .otext__body { font-size: 19px; }
  .oimgs--2, .oimgs--3 { grid-template-columns: 1fr; }
  .odetails, .omore__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- 8. Footer: wood, cream text, one line ---------- */
.sitefoot { background: var(--wood); color: var(--cream); }
.sitefoot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 32px; padding-bottom: 36px; font-size: var(--t-sm); font-weight: 300; }
.sitefoot__name { font-weight: 500; }
.sitefoot a { color: var(--cream); }
.sitefoot a:hover { color: #fff; }
.sitefoot :focus-visible { outline-color: var(--cream); }

/* ==========================================================
   9. Existing page components, restyled in Draft F.
   The page layouts themselves are rebuilt in Phases 2 to 4.
   ========================================================== */

/* Button row used on the confirmation, 404 and error pages */
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.confirm .hero__actions { margin-top: 40px; }

/* Sections */
.sheet { padding: 0 0 var(--space); }
.sheet + .sheet { padding-top: var(--space); border-top: 1px solid var(--line); }
.sheet__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sheet__title { grid-column: 1 / span 4; font-size: var(--t-section); font-weight: 300; letter-spacing: -0.03em; line-height: 1; text-transform: lowercase; align-self: start; }
.sheet__title h2 { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.sheet__aside { font-size: var(--t-base); letter-spacing: 0; line-height: 1.5; text-transform: none; color: var(--ink-2); margin-top: 16px; max-width: 26ch; }
.sheet__body { grid-column: 5 / span 8; min-width: 0; }
@media (max-width: 960px) {
  .sheet__inner { display: block; }
  .sheet__title { margin-bottom: 36px; }
  .sheet__aside { max-width: 44ch; }
}

.prose { max-width: 36em; }
.prose p { font-size: var(--t-body); line-height: 1.7; }
.placeholder { color: var(--ink-2); font-style: italic; }
.fineprint { color: var(--ink-2); font-size: 13px; line-height: 1.5; margin: 16px 0 0; max-width: 46em; }
.from { font-size: 16px; font-weight: 400; letter-spacing: 0; vertical-align: .9em; margin-right: 4px; }
.line .from, .total .from { font-size: .9em; vertical-align: 0; }

.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.section-title { margin: 0 0 14px; font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
@media (max-width: 720px) { .section-title { font-size: 36px; } }

/* ---------- Full-width colour blocks (edge to edge, no gaps) ----------
   Text on coral, peach, bamboo and blush is ink. Wood and the darker
   rust use cream text. --rowline is the thin divider colour inside. */
.band { color: var(--ink); --rowline: rgba(58, 34, 25, 0.3); }
.band--accent { background: var(--accent); color: var(--on-accent); }
.band--peach { background: var(--peach); }
.band--bamboo { background: var(--bamboo); }
.band--blush { background: var(--blush); --rowline: rgba(58, 34, 25, 0.2); }
.band--wood { background: var(--wood); color: var(--cream); --rowline: rgba(246, 239, 230, 0.3); }
.band--rust-dark { background: var(--rust-dark); color: var(--cream); --rowline: rgba(246, 239, 230, 0.35); }
.band--wood a, .band--rust-dark a { color: var(--cream); }
.band--wood :focus-visible, .band--rust-dark :focus-visible { outline-color: var(--cream); }

/* Price rows: name on the left, price on the right, thin line above */
.pricerow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rowline, rgba(58, 34, 25, 0.2)); color: inherit; text-decoration: none; }
a.pricerow:hover { color: inherit; }
a.pricerow:hover > span:first-child { text-decoration: underline; text-underline-offset: 0.2em; }
.pricerow__price { font-weight: 300; white-space: nowrap; text-align: right; }
.pricerow__price--lg { font-size: 20px; }
.pricerow__detail { display: block; font-size: var(--t-sm); font-weight: 300; }
.pricerow strong { font-weight: 500; }

/* ---------- Services: three full-width bands ---------- */
.svcband { padding: 96px 0; }
.svcband__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.svcband__head { grid-column: span 5; }
.svcband__title { margin: 0 0 16px; font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.svcband__intro { margin: 0; font-size: var(--t-body); line-height: 1.6; font-weight: 300; max-width: 22em; }
.svcband__list { grid-column: span 7; list-style: none; margin: 0; padding: 0; }
.svcband .pricerow { padding: 16px 0; font-size: 19px; }
@media (max-width: 860px) {
  .svcband { padding: 64px 0; }
  .svcband__head, .svcband__list { grid-column: 1 / -1; }
  .svcband__head { margin-bottom: 16px; }
  .svcband__title { font-size: 44px; }
  .svcband .pricerow { font-size: var(--t-body); }
}

/* ---------- Pricing ---------- */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pkgblock { padding: 64px 48px; min-height: 520px; display: flex; flex-direction: column; }
.pkgblock__pages { margin: 0; font-size: var(--t-sm); }
.pkgblock__name { margin: 12px 0 0; font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.pkgblock__price { margin: 8px 0 28px; font-weight: 300; font-size: clamp(56px, 6vw, 88px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pkgblock__features { margin: 0 0 28px; font-size: 15px; line-height: 1.7; font-weight: 300; }
.pkgblock__link { margin-top: auto; align-self: flex-start; font-size: 15px; font-weight: 500; color: inherit; padding: 10px 0; }
@media (max-width: 900px) {
  .pkgs { grid-template-columns: 1fr; }
  .pkgblock { min-height: 0; padding: 48px var(--gutter); }
}

.addons { padding: 96px 0; }
.addons__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.addons__head { grid-column: span 4; }
.addons__head > p:not(.fineprint) { margin: 0; font-size: var(--t-base); line-height: 1.6; font-weight: 300; }
.addons__list { grid-column: span 8; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; font-size: var(--t-base); }
@media (max-width: 860px) {
  .addons { padding: 64px 0; }
  .addons__head, .addons__list { grid-column: 1 / -1; }
  .addons__head { margin-bottom: 16px; }
}
@media (max-width: 560px) { .addons__list { grid-template-columns: 1fr; } }

.plansplit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plansplit__col { padding: 72px 48px; }
.plansplit__title { margin: 0 0 20px; font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.plansplit__list { list-style: none; margin: 0; padding: 0; }
.plansplit .pricerow { padding: 14px 0; }
.plansplit__note { margin: 14px 0 0; font-size: var(--t-sm); line-height: 1.6; font-weight: 300; }
@media (max-width: 860px) {
  .plansplit { grid-template-columns: 1fr; }
  .plansplit__col { padding: 56px var(--gutter); }
  .plansplit__title { font-size: 36px; }
}

/* ---------- About ---------- */
/* Name block: the full name big, the short name small in spaced capitals */
.aboutname { padding: 0 0 72px; }
.aboutname__inner { grid-column: 2 / span 10; }
.aboutname__name { margin: 0; font-weight: 300; font-size: clamp(52px, 10vw, 148px); line-height: 0.9; letter-spacing: -0.045em; text-transform: lowercase; overflow-wrap: anywhere; }
.aboutname__line { margin: 22px 0 0; font-size: 13px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.aboutname__note { margin: 18px 0 0; max-width: 34em; font-size: var(--t-body); line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.pgedit__name { margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid rgba(58, 34, 25, 0.15); }
.aboutintro { padding: 0 0 96px; }
.aboutintro__text { grid-column: 2 / span 7; margin: 0; font-weight: 300; font-size: 30px; line-height: 1.45; letter-spacing: -0.01em; }
.blocks3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blocks3__item { padding: 56px 48px; min-height: 220px; }
.blocks3__item p { margin: 0; font-size: var(--t-body); line-height: 1.6; }
.blocks3__photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; }
.steps7 { padding: 112px 0; }
.steps7__title { grid-column: span 4; }
.steps7__list { grid-column: span 8; list-style: none; margin: 0; padding: 0; }
.steps7__list li { display: grid; grid-template-columns: 56px 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgba(58, 34, 25, 0.2); font-size: var(--t-body); font-weight: 300; }
.steps7__list strong { font-weight: 500; }
@media (max-width: 860px) {
  .aboutname { padding-bottom: 48px; }
  .aboutname__inner { grid-column: 1 / -1; }
  .aboutname__line { letter-spacing: 0.22em; }
  .aboutintro { padding-bottom: 64px; }
  .aboutintro__text { grid-column: 1 / -1; font-size: 24px; }
  .blocks3 { grid-template-columns: 1fr; }
  .blocks3__item { padding: 40px var(--gutter); min-height: 0; }
  .steps7 { padding: 72px 0; }
  .steps7__title, .steps7__list { grid-column: 1 / -1; }
  .steps7__list li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; }
  .steps7__list li > span:last-child { grid-column: 2; }
}

/* ---------- FAQ: one open at a time, dot fills with the accent when open ---------- */
.faqlist { padding: 0 0 120px; }
.faqlist__items { grid-column: 2 / span 9; border-top: 1px solid rgba(58, 34, 25, 0.25); }
.faq__item { border-bottom: 1px solid rgba(58, 34, 25, 0.25); }
.faq__item summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 22px; font-weight: 400; line-height: 1.3; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--wood); }
.faq__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); }
.faq__item[open] .faq__dot { background: var(--accent); }
.faq__a p { margin: 0; padding: 0 60px 24px 0; font-size: var(--t-body); line-height: 1.7; font-weight: 300; }
@media (max-width: 860px) {
  .faqlist { padding-bottom: 80px; }
  .faqlist__items { grid-column: 1 / -1; }
  .faq__item summary { font-size: 19px; padding: 18px 0; }
  .faq__a p { padding-right: 0; }
}

/* 404 and error pages */
.confirm { padding: clamp(56px, 8vw, 112px) 0; }
.confirm__inner > * { max-width: 820px; }

/* ---------- Confirmation: "your brief has been sent." and three colour blocks ---------- */
.pagehead__title--p { margin: 0; } /* band title shown as text, so the page's h1 is the message */
.sent__head { padding-top: 96px; padding-bottom: 72px; }
.sent__title { margin: 0 0 16px; font-weight: 300; font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.035em; }
.sent__ref { margin: 0; font-size: 15px; }
.sent__ref strong { font-weight: 500; letter-spacing: .02em; }
.sent__note { margin: 16px 0 0; font-size: var(--t-sm); font-weight: 300; max-width: 40em; }
.sent__blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.sent__block { padding: 48px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.sent__n { margin: 0 0 40px; font-size: var(--t-sm); }
.sent__text { margin: 0; font-weight: 300; font-size: 22px; line-height: 1.4; }
.sent__block .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .sent__head { padding-top: 64px; padding-bottom: 48px; }
  .sent__blocks { grid-template-columns: 1fr; }
  .sent__block { padding: 40px var(--gutter); min-height: 0; }
  .sent__n { margin-bottom: 20px; }
}

/* ==========================================================
   10. Project builder: questions on the left, a full-height
   accent estimate column on the right with sticky contents.
   ========================================================== */
.builder { display: flex; align-items: stretch; }
.builder__main { flex: 999 1 640px; min-width: 0; padding: 56px 48px 112px; }
.builder__col { max-width: 760px; margin-left: auto; margin-right: 32px; }

/* Sticky step menu: "01  what you need", current step underlined */
.steps { position: sticky; top: 0; z-index: 5; margin: 0 0 48px; padding: 18px 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps__btn { min-height: 44px; background: none; border: 0; padding: 0; font: 300 15px/1.3 var(--font); color: var(--ink); cursor: pointer; text-align: left; text-transform: lowercase; text-underline-offset: 6px; }
.steps__btn::before { content: '0' counter(s) '\00a0\00a0'; font-variant-numeric: tabular-nums; }
.steps__btn:disabled { cursor: default; color: var(--ink-2); }
.steps .is-current .steps__btn { font-weight: 500; text-decoration: underline; }
.steps__btn:not(:disabled):hover { color: var(--wood); }

.stage { border: 0; margin: 0; padding: 0; min-width: 0; }
.stage__title { font-size: clamp(40px, 4vw, 56px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; padding: 0; margin-bottom: 12px; text-transform: lowercase; }
.stage__title:focus { outline: none; }
.stage__help { font-size: var(--t-base); font-weight: 300; margin: 0; max-width: 36em; }

/* Questions: small lowercase label, then option rows */
.q { padding: 36px 0 0; }
.q__label { font-size: var(--t-sm); font-weight: 400; margin: 0 0 14px; text-transform: lowercase; }
.q__hint { font-size: var(--t-sm); font-weight: 300; margin: -8px 0 14px; max-width: 44em; }
.stage > .choices { margin-top: 36px; }

/* Option rows: thin top line, small circle; selected = peach fill and a filled circle */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; border-bottom: 1px solid var(--line); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .choices--2 { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box { display: flex; flex-direction: column; min-height: 56px; height: 100%; padding: 16px 12px 16px 39px; border-top: 1px solid var(--line); font-size: var(--t-body); position: relative; transition: background-color .12s; }
.choice__box::before { content: ''; position: absolute; left: 12px; top: 21px; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 50%; box-sizing: border-box; }
.choice__label { font-weight: 400; }
.choice__hint { display: block; font-size: var(--t-sm); font-weight: 300; margin-top: 2px; }
.choice:hover .choice__box { background: rgba(251, 190, 156, 0.35); }
.choice input:checked + .choice__box { background: var(--peach); }
.choice input:checked + .choice__box::before { background: var(--ink); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Inputs: underline only */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 36px 0 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 4px; }
.stage > .field, .reveal > .field { margin-top: 36px; }
.field--narrow { max-width: 260px; }
.field__label { font-size: var(--t-sm); font-weight: 400; text-transform: lowercase; }
.field__hint { font-size: var(--t-sm); font-weight: 300; }
.req { font-size: var(--t-sm); font-weight: 400; }
.req::before { content: '('; } .req::after { content: ')'; }
input:not([type='checkbox']):not([type='radio']):not([type='file']), textarea, select { width: 100%; font: 300 18px/1.4 var(--font); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 0; min-height: 44px; }
textarea { resize: vertical; }
select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233A2219' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 7px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Date boxes: keyboard focus moves through the day, month, year and calendar button inside the box, so keep the ring on the whole box */
input[type='date']:focus, input[type='date']:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
[aria-invalid='true'] { border-bottom-color: var(--error) !important; }
.field__error { color: var(--error); font-size: var(--t-sm); font-weight: 500; margin: 6px 0 0; }
.reveal { margin-top: 0; }

/* File drop zone: blush panel */
.dropzone { position: relative; display: block; margin-top: 8px; padding: 28px; background: var(--blush); text-align: center; font-weight: 300; cursor: pointer; }
.dropzone:hover { background: var(--peach); }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filelist { list-style: none; padding: 0; margin: 10px 0 0; }
.filelist li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.filelist__size { color: var(--ink-2); margin-left: 6px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 4px; max-width: 40em; font-weight: 300; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }

/* Review rows */
.review { margin: 36px 0 0; border-bottom: 1px solid var(--line); }
.review dl { margin: 0; }
.review__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--t-body); }
.review dt { font-weight: 300; }
.review dd { margin: 0; }
@media (max-width: 560px) { .review__row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; } .review__row dd:not(.review__edit) { grid-column: 1; } .review__edit { grid-row: 1; grid-column: 2; } }

.formstatus { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--error); background: var(--blush); color: var(--ink); font-weight: 500; }
.formstatus:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.stagenav { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; }
.stagenav .btn { min-height: 50px; padding: 0 28px; }
.stagenav #next, .stagenav #submit { margin-left: auto; }

/* Estimate: full-height accent column, contents stick while scrolling */
.estimate { flex: 1 1 400px; background: var(--accent); color: var(--on-accent); padding: 72px 48px; }
.estimate__inner { position: sticky; top: 24px; max-width: 420px; max-height: calc(100vh - 48px); overflow: auto; }
.estimate__title { margin: 0 0 28px; font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; text-transform: lowercase; }
.estimate__empty { margin: 0; font-size: 22px; font-weight: 300; line-height: 1.4; }
.estsec h3, .estnote h3 { font-size: 13px; font-weight: 500; letter-spacing: 0; margin: 20px 0 6px; }
.estsec:first-child h3 { margin-top: 0; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(58, 34, 25, 0.25); font-size: var(--t-base); }
.line__label { display: flex; flex-direction: column; }
.line__detail { font-size: 13px; font-weight: 300; }
.line__amount { white-space: nowrap; font-weight: 300; font-variant-numeric: tabular-nums; text-align: right; }
.totals { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ink); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 15px; font-weight: 300; }
.total strong { font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total small { font-size: .85em; }
.total--primary { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 0 12px; }
.total--primary > span { font-size: var(--t-sm); font-weight: 400; }
.total--primary strong { font-size: 72px; font-weight: 300; letter-spacing: -0.045em; line-height: 1; }
.total--primary .from { font-size: var(--t-sm); letter-spacing: 0; vertical-align: 0; margin-right: 6px; }
.total--primary small { font-size: var(--t-md); letter-spacing: 0; }
.total--alt { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(58, 34, 25, 0.25); }
.total__note { font-size: 15px; font-weight: 300; line-height: 1.5; margin: 4px 0 8px; }
.estnote { margin-top: 20px; font-size: 15px; font-weight: 300; line-height: 1.5; }
.estnote p, .estnote ul { margin: 0; }
.estnote ul { padding-left: 18px; }
.estnote li { margin-bottom: 4px; }
.estimate__disclaimer { margin: 36px 0 0; font-size: 12px; line-height: 1.6; font-weight: 300; }
.estimate :focus-visible { outline-color: var(--ink); }

/* Phones and tablets: estimate becomes a drawer opened from a bar at the bottom */
.estbar { display: none; }
@media (max-width: 1000px) {
  .builder { display: block; }
  .builder__main { padding: 40px var(--gutter) 80px; }
  .builder__col { margin: 0 auto; }
  .steps { margin-bottom: 36px; }
  .steps ol { gap: 4px 20px; }
  .steps li:not(.is-current) .steps__btn { font-size: 0; }
  .steps li:not(.is-current) .steps__btn::before { font-size: 15px; content: '0' counter(s); }
  .estimate { position: fixed; left: 0; right: 0; bottom: 64px; top: auto; z-index: 40; padding: 0; background: none; transform: translateY(calc(100% + 80px)); transition: transform .25s ease; }
  .estimate.is-open { transform: none; }
  .estimate__inner { position: static; max-width: none; max-height: 66vh; padding: 28px var(--gutter) 24px; background: var(--accent); box-shadow: 0 -12px 32px rgba(58, 34, 25, .18); }
  .total--primary strong { font-size: 48px; }
  .estbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; min-height: 64px; padding: 10px var(--gutter); background: var(--ink); color: var(--cream); align-items: center; justify-content: space-between; gap: 12px; }
  .estbar > div { display: flex; flex-direction: column; }
  .estbar__label { font-size: 12px; }
  .estbar__total { font-weight: 500; font-size: var(--t-md); font-variant-numeric: tabular-nums; }
  .estbar :focus-visible { outline-color: var(--cream); }
  .is-builder .sitefoot { padding-bottom: 64px; }
}

/* ==========================================================
   11. Admin: wood sidebar layout, white rounded cards,
   rounded 10px inputs (the public site uses underlines).
   ========================================================== */
.btn--soon { cursor: default; opacity: 1; color: var(--ink-2); border-color: rgba(58, 34, 25, 0.3); gap: 8px; }
.btn--soon:hover { background: transparent; color: var(--ink-2); border-color: rgba(58, 34, 25, 0.3); }
.soon { font-size: 11px; font-weight: 400; border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; line-height: 1.5; }

.adminmain .btn { font-size: var(--t-sm); padding: 10px 20px; }
.adminmain input:not([type='checkbox']):not([type='radio']):not([type='file']), .adminmain textarea, .adminmain select { font: 300 16px/1.4 var(--font); border: 1px solid rgba(58, 34, 25, 0.25); border-radius: 10px; background: #fff; padding: 11px 13px; min-height: 44px; }
.adminmain input:not([type='checkbox']):not([type='radio']):not([type='file']):focus, .adminmain textarea:focus, .adminmain select:focus { border: 1px solid var(--ink); padding-bottom: 11px; }

.ahead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.ahead__date { margin: 0 0 6px; font-size: var(--t-sm); font-weight: 300; }
.ahead__title { margin: 0; font-weight: 300; font-size: 48px; letter-spacing: -0.03em; line-height: 1; }
.ahead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.asaved { margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--peach); font-size: var(--t-sm); }
.awarn { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--blush); border-left: 3px solid var(--error); font-size: var(--t-sm); }

.acard { background: #fff; border-radius: 16px; padding: 24px 26px; min-width: 0; }
.acard__head { margin-bottom: 16px; }
.acard__title { margin: 0; font-weight: 500; font-size: 18px; letter-spacing: 0; }
.acard__sub { margin: 4px 0 0; font-size: var(--t-sm); font-weight: 300; }
.acard__empty { margin: 14px 0; font-weight: 300; }
.acard__link { display: inline-block; margin-top: 16px; font-size: var(--t-sm); }
.acard--actions { display: flex; flex-direction: column; gap: 10px; }
.acard--actions .btn { width: 100%; }
.acard__status { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(58, 34, 25, 0.12); font-size: var(--t-sm); font-weight: 300; line-height: 1.7; }
.acard__status p { margin: 0; }
.acard__hint { font-size: 12px; line-height: 1.5; margin-top: 4px !important; }
.alabel { display: block; margin: 18px 0 8px; padding: 0; font-size: 13px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }

.astats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.astat { border-radius: 16px; padding: 22px; }
.astat--white { background: #fff; }
.astat__label { margin: 0 0 18px; font-size: 13px; }
.astat__value { margin: 0; font-weight: 300; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.astat__note { margin: 8px 0 0; font-size: 12px; font-weight: 300; }

.agrid { display: grid; gap: 14px; margin-top: 14px; }
.agrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agrid__wide { grid-column: span 2; }
.afigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.afig__label { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.afig__value { margin: 0; font-weight: 300; font-size: 28px; overflow-wrap: anywhere; }

/* Status badges */
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; color: var(--ink); background: #E9DFD3; }
.status--new { background: var(--accent); color: var(--on-accent); }
.status--contacted { background: var(--peach); }
.status--proposal-sent { background: var(--bamboo); }
.status--won { background: var(--ink); color: var(--cream); }
.status--closed { background: #E9DFD3; }
.status--warn { background: var(--blush); color: var(--error); }

/* Latest enquiries (overview) */
.recent { list-style: none; margin: 0; padding: 0; }
.recent__row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 110px; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(58, 34, 25, 0.12); text-decoration: none; font-size: 15px; }
.recent__row:hover .recent__name { text-decoration: underline; }
.recent__name { display: block; }
.recent__meta { display: block; font-size: 13px; font-weight: 300; }
.recent__est { font-weight: 300; }

/* Filters and search */
.afilters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.afilters__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.apill { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(58, 34, 25, 0.25); background: #fff; font-size: var(--t-sm); text-decoration: none; }
.apill:hover { border-color: var(--ink); color: var(--ink); }
.apill[aria-current='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.apill__n { font-weight: 300; }
.asearch { display: flex; gap: 8px; }
.adminmain .asearch input[type='search'] { width: 300px; max-width: 100%; border-radius: 999px; }

/* Enquiries list */
.acard--table { padding: 6px 22px; }
.elist { list-style: none; margin: 0; padding: 0; }
.elist__head, .elist__row { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) 120px 150px 120px; gap: 14px; align-items: center; }
.elist__head { padding: 14px 0; font-size: 13px; color: var(--ink-2); }
.elist__row { padding: 15px 0; border-top: 1px solid rgba(58, 34, 25, 0.12); text-decoration: none; font-size: 15px; }
.elist__row:hover .elist__name { text-decoration: underline; }
.elist__date, .elist__light { font-weight: 300; }
.elist__name { display: block; font-weight: 500; }
.elist__org { display: block; font-size: 13px; font-weight: 300; }
.afoot { margin: 14px 0 0; font-size: 13px; font-weight: 300; }

/* One enquiry: list on the left, details on the right */
.esplit { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.esplit__list { flex: 1 1 280px; padding: 8px; max-height: calc(100vh - 80px); overflow: auto; position: sticky; top: 24px; }
.esplit__list ul { list-style: none; margin: 0; padding: 0; }
.esplit__detail { flex: 999 1 460px; }
.eitem { display: block; padding: 14px 12px; margin: 4px 0; border-radius: 12px; text-decoration: none; font-size: 15px; }
.eitem:hover { background: rgba(252, 230, 218, 0.6); color: var(--ink); }
.eitem[aria-current='page'] { background: var(--blush); }
.eitem__top, .eitem__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.eitem__name { font-weight: 500; }
.eitem__date { font-size: 12px; font-weight: 300; white-space: nowrap; }
.eitem__org { display: block; margin-top: 2px; font-size: 13px; font-weight: 300; }
.eitem__bottom { margin-top: 8px; font-size: 13px; }

.edetail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.edetail__ref { margin: 0 0 4px; font-size: 13px; font-weight: 300; }
.edetail__name { margin: 0; font-weight: 300; font-size: 32px; letter-spacing: -0.02em; }
.edetail__org { margin: 4px 0 0; font-weight: 300; }
.edetail__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.edetail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.edetail__grid > div > .alabel:first-child { margin-top: 0; }
.edetail__contact { margin: 0; line-height: 1.7; font-weight: 300; overflow-wrap: anywhere; }
.edetail__desc { margin: 0; font-weight: 300; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.edetail__none { margin: 0; font-weight: 300; font-size: var(--t-sm); }
.edetail__notes { margin: 0; padding-left: 18px; font-size: var(--t-sm); font-weight: 300; }
.edetail__consent { margin: 18px 0 0; font-size: 12px; font-weight: 300; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); font-size: var(--t-sm); }
.kv dt { font-weight: 300; text-transform: lowercase; }
.kv dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.eest { border-radius: 14px; padding: 18px 20px; --rowline: rgba(58, 34, 25, 0.2); }
.eest__label { margin: 0 0 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.eest__lines { list-style: none; margin: 0; padding: 0; }
.eest__lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(58, 34, 25, 0.2); font-size: var(--t-sm); }
.eest__v { font-weight: 300; white-space: nowrap; }
.eest__total { margin: 10px 0 0; font-weight: 300; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.eest__extra { margin: 6px 0 0; font-size: 13px; font-weight: 300; }

.efiles { list-style: none; margin: 0; padding: 0; }
.efiles a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); font-size: var(--t-sm); overflow-wrap: anywhere; }
.efiles__size { font-weight: 300; white-space: nowrap; }

/* Status pills (real radio buttons) */
.estatus { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.estatus legend { float: left; width: 100%; }
.estatus__opt { position: relative; }
.estatus__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.estatus__opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(58, 34, 25, 0.25); background: #fff; font-size: var(--t-sm); cursor: pointer; }
.estatus__opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.estatus__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.afield { display: flex; flex-direction: column; }
.afield textarea { resize: vertical; width: 100%; }
.eform__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 1100px) {
  .astats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agrid--3 { grid-template-columns: 1fr; }
  .agrid__wide { grid-column: auto; }
  .elist__head { display: none; }
  .elist__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .elist__row > span:nth-child(1) { grid-column: 2; grid-row: 1; text-align: right; }
  .elist__row > span:nth-child(2) { grid-column: 1; grid-row: 1; }
  .elist__row > span:nth-child(3) { grid-column: 1; }
  .elist__row > span:nth-child(4) { display: none; }
  .elist__row > span:nth-child(5) { grid-column: 1; }
  .elist__row > span:nth-child(6) { grid-column: 2; grid-row: 2 / span 2; text-align: right; }
  .edetail__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .esplit__list { display: none; } /* "all enquiries" leads back to the list */
}
@media (max-width: 720px) {
  .ahead__title { font-size: 38px; }
  .agrid--2 { grid-template-columns: 1fr; }
  .recent__row { grid-template-columns: minmax(0, 1fr) auto; }
  .recent__est { display: none; }
  .asearch { width: 100%; }
  .adminmain .asearch input[type='search'] { width: auto; flex: 1; }
  .acard { padding: 20px; }
  .kv > div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) { .astats { grid-template-columns: 1fr; } }

/* Portfolio admin */
.aintro { margin: 0 0 16px; font-weight: 300; }
.btn--danger { background: var(--error); border-color: var(--error); color: var(--cream); }
.btn--danger:hover { background: #6E2418; border-color: #6E2418; color: var(--cream); }
.around { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid rgba(58, 34, 25, 0.3); background: #fff; color: var(--ink); cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.around:hover:not(:disabled) { border-color: var(--ink); }
.around:disabled { opacity: 0.35; cursor: default; }
.aswitch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #D8CCC0; }
.aswitch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.aswitch[aria-checked='true'] { background: var(--accent); }
.aswitch[aria-checked='true'] span { left: 23px; }
.acheck { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 300; margin-top: 8px; }
.acheck input { width: 18px; height: 18px; accent-color: var(--ink); }
.adminmain form { margin: 0; }

.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { padding: 14px; }
.pcard__cover { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--accent); }
.pcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard__cover span { display: flex; height: 100%; align-items: flex-end; padding: 12px; font-size: 12px; color: var(--on-accent); }
.pcard__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 4px 4px; }
.pcard__name { min-width: 0; text-decoration: none; font-weight: 500; }
.pcard__name:hover > span:first-child { text-decoration: underline; }
.pcard__name > span { display: block; }
.pcard__meta { font-size: 13px; font-weight: 300; }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 0; }
.pcard__live { margin: 0; font-size: 12px; font-weight: 300; }
.pcard__order { display: flex; gap: 6px; }

.plist ul { list-style: none; margin: 10px 0 0; padding: 0; }
.plist__item { display: flex; align-items: center; gap: 12px; padding: 6px 10px; margin: 4px 0; border-radius: 12px; text-decoration: none; min-height: 52px; }
.plist__item:hover { background: rgba(252, 230, 218, 0.6); color: var(--ink); }
.plist__item[aria-current='page'] { background: var(--blush); }
.plist__thumb { flex: none; width: 44px; height: 34px; border-radius: 8px; overflow: hidden; background: var(--accent); }
.plist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.plist__name { display: block; font-size: 15px; }
.plist__meta { display: block; font-size: 12px; font-weight: 300; }

.pform { display: flex; flex-direction: column; gap: 14px; }
.pform__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pform__status { margin: 4px 0 0; font-size: 13px; font-weight: 300; }
.pform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.pform__grid .alabel { margin-top: 14px; }
.pform__full { grid-column: 1 / -1; }
.pform__slug { display: flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 300; }
.pform__slug span { white-space: nowrap; }
.pform__slug input { flex: 1; min-width: 0; }
.pform__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pform__delete { font-size: var(--t-sm); color: var(--error); }
.adelete { max-width: 640px; }

.islot { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.islot__preview { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--blush); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 300; }
.islot__preview img { width: 100%; height: 100%; object-fit: cover; }
.islot__fields .alabel:first-child { margin-top: 0; }
.islot input[type='file'] { font: 300 var(--t-sm) var(--font); max-width: 100%; }

.pblocks { list-style: none; margin: 0; padding: 0; }
.pblock { padding: 10px 0; border-top: 1px solid rgba(58, 34, 25, 0.12); }
.pblock__row { display: flex; align-items: center; gap: 10px; }
.pblock__swatch { flex: none; width: 40px; height: 30px; border-radius: 6px; background: var(--peach); border: 1px solid rgba(58, 34, 25, 0.15); }
.pblock__swatch--brief, .pblock__swatch--outcome, .pblock__swatch--text { background: var(--cream); }
.pblock__swatch--video { background: var(--ink); }
.pblock__swatch--two { background: linear-gradient(90deg, var(--peach) 48%, #fff 48% 52%, var(--bamboo) 52%); }
.pblock__swatch--three { background: linear-gradient(90deg, var(--peach) 31%, #fff 31% 35%, var(--bamboo) 35% 65%, #fff 65% 69%, var(--accent) 69%); }
.pblock__label { flex: 1 1 auto; min-width: 0; }
.pblock__label > span { display: block; }
.pblock__hint { font-size: 12px; font-weight: 300; }
.pblock__body { padding: 8px 0 8px 50px; }
.pblock__body .alabel { margin-top: 8px; }
.pblock__images { display: flex; flex-direction: column; gap: 16px; }
.pblocks__add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 1100px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .pcards { grid-template-columns: 1fr; }
  .pform__grid { grid-template-columns: 1fr; }
  .islot { grid-template-columns: 96px minmax(0, 1fr); }
  .pblock__body { padding-left: 0; }
  .pform__slug { flex-wrap: wrap; }
}

/* Homepage, pricing, pages and FAQ editors */
.anote { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--blush); font-size: var(--t-sm); }
.anote p { margin: 0; }
.anote--small { margin: 12px 0 0; font-size: 13px; }
.apublic { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: var(--peach); font-size: var(--t-sm); }
.afield__hint { font-size: 12px; font-weight: 300; margin-top: 4px; }
.adminmain .afield + .afield { margin-top: 2px; }

.hedit { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.hedit__preview { flex: 999 1 520px; min-width: 0; }
.hedit__side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hedit__text { display: flex; flex-direction: column; }
.hedit__publish { align-self: flex-start; margin-top: 16px; }

/* The live preview: a small copy of the homepage (uses the homepage's own window rules) */
.hpreview.home { height: auto; min-height: 0; aspect-ratio: 16 / 10; border-radius: 14px; }
.hpreview .photoband__blur { filter: blur(10px); }
.hpreview .hpv { display: none; }
.hpreview[data-style='rectangle'] .hpv--rectangle, .hpreview[data-style='c'] .hpv--c, .hpreview[data-style='strips'] .hpv--strips, .hpreview[data-style='arch'] .hpv--arch { display: block; }
.hpreview .window--rect::before { height: 14px; margin-top: -7px; } .hpreview .window--rect::after { width: 14px; margin-left: -7px; }
.hpreview .home__lines { gap: 4px 24px; }
.hpreview .home__lines p { font-size: 11px; line-height: 1.25; max-width: 9em; }
.hpreview .home__small { max-width: 30%; }
.hpreview .home__small p { font-size: 8px; }
.hpreview .home__foot { bottom: 5%; }
.hpreview .home__coords { font-size: 8px; margin-bottom: 6px; }
.hpreview__btn { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 8px; }
.hpreview .strip__label, .hpreview .window__time { font-size: 8px; }
.hpreview .window__time { bottom: 6px; }
@media (max-width: 720px) {
  /* keep the desktop layout in the preview on small screens */
  .hpreview .home__lines { left: 50%; right: auto; top: 46%; }
  .hpreview .home__small { left: 50%; right: auto; top: 62%; }
  .hpreview .window--rect { --l: 18; --t: 15; --w: 19; --h: 62; }
  .hpreview .window--arch { --l: 17; --t: 13; --w: 22; --h: 70; }
  .hpreview .strip { --t: 16; --w: 6.5; --h: 60; }
  .hpreview .strip--1 { --l: 12; } .hpreview .strip--2 { --l: 21.5; } .hpreview .strip--3 { --l: 31; }
  .hpreview .cmark--desktop { display: block; }
}

.hchoice { border: 0; margin: 0; padding: 0; min-width: 0; }
.hchoice__grid--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hopt { position: relative; display: block; }
.hopt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.hopt > span { display: block; min-height: 64px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(58, 34, 25, 0.2); background: #fff; font-size: var(--t-sm); cursor: pointer; }
.hopt input:checked + span { border-color: var(--accent); background: var(--blush); box-shadow: inset 0 0 0 1px var(--accent); }
.hopt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hopt__name { display: block; font-weight: 500; }
.hopt__hint { display: block; font-size: 12px; font-weight: 300; margin-top: 2px; }
@media (max-width: 720px) { .hchoice__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hphoto { display: flex; gap: 14px; align-items: center; }
.acard .hphoto ~ .hchoice { margin-top: 20px; }
.hchoice .hswatches { margin-top: 10px; }
.hphoto img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.hphoto .afield { flex: 1 1 auto; min-width: 0; }
.hphoto input[type='file'] { font: 300 var(--t-sm) var(--font); width: 100%; max-width: 100%; }
.hswatches { display: flex; flex-wrap: wrap; gap: 10px; }
.hswatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 300; cursor: pointer; }
.hswatch input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.hswatch__dot { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58, 34, 25, 0.15); }
.hswatch input:checked + .hswatch__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.hswatch input:focus-visible + .hswatch__dot { outline: 2px solid var(--ink); outline-offset: 6px; }
.hswatch__dot--coral { background: #F28060; } .hswatch__dot--peach { background: #FBBE9C; } .hswatch__dot--bamboo { background: #D9BE8C; }
.hswatch__dot--rust { background: #A15A39; } .hswatch__dot--wood { background: #764A37; } .hswatch__dot--gold { background: #B8860B; }

.pricedit__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pricedit__sub { margin-top: 24px; }
.pricedit__notes { margin-top: 14px; }
.pricedit__undo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.pricedit__undo .acard__sub { margin: 0; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); font-size: 15px; }
.prow--two { grid-template-columns: minmax(0, 1fr) 110px 110px; }
.prow--addon { grid-template-columns: minmax(0, 1fr) 110px auto; }
.prow__sub { font-size: 12px; font-weight: 300; margin-left: 6px; }
.dollar { display: flex; align-items: center; gap: 4px; font-size: var(--t-sm); }
.adminmain .dollar input, .adminmain .prow__short { width: 100%; min-height: 40px; padding: 8px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.adminmain .prow__short { width: 80px; justify-self: end; }
.acheckswitch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 300; white-space: nowrap; cursor: pointer; position: relative; }
.acheckswitch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.acheckswitch > span[aria-hidden] { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D8CCC0; flex: none; }
.acheckswitch > span[aria-hidden]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.acheckswitch input:checked + span { background: var(--accent); }
.acheckswitch input:checked + span::after { left: 23px; }
.acheckswitch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 1100px) { .pricedit__cols { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .prow--addon { grid-template-columns: minmax(0, 1fr) 96px; } .prow--addon .acheckswitch { grid-column: 1 / -1; } .prow--two { grid-template-columns: minmax(0, 1fr) 84px 84px; } }

.pgedit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pgedit__about .islot { margin-top: 4px; }
.pgedit__faqhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faqedit { list-style: none; margin: 12px 0 0; padding: 0; }
.faqedit__item { border-top: 1px solid rgba(58, 34, 25, 0.12); }
.faqedit__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; font-size: 15px; }
.faqedit__item summary::-webkit-details-marker { display: none; }
.faqedit__mark::before { content: '+'; font-size: 20px; font-weight: 300; }
.faqedit__item[open] .faqedit__mark::before { content: '−'; }
.faqedit__form { padding: 0 0 16px; }
.faqedit__delete { margin-left: auto; }
@media (max-width: 1100px) { .pgedit { grid-template-columns: 1fr; } }

/* Settings */
.setgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.setside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.setnote { margin: 6px 0 4px; }
.setswitch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); }
.setswitch:first-of-type { margin-top: 10px; }
.setswitch__name { display: block; font-size: 15px; }
.setswitch__hint { display: block; font-size: 12px; font-weight: 300; }
.setrow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); font-size: var(--t-sm); }
.setrow__v { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.setrow__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.setrow__form .acard__sub { margin: 0; }
.setexport { margin-top: 20px; padding-top: 6px; border-top: 1px solid rgba(58, 34, 25, 0.12); }
.setexport .btn { margin-top: 10px; }
@media (max-width: 1100px) { .setgrid { grid-template-columns: 1fr; } }

/* ---------- Admin shell: wood sidebar, cream main area ---------- */
.adminbody { background: var(--cream); }
.adminshell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
/* Once the sidebar sits above the page (narrow screens), short pages do not stretch it */
@media (max-width: 920px) { .adminshell { align-content: flex-start; } }
.adminside { flex: 1 1 240px; max-width: 280px; background: var(--wood); color: var(--cream); display: flex; flex-direction: column; }
.adminside__band { position: relative; height: 120px; overflow: hidden; background: var(--accent); }
.adminside__band::before { content: ''; position: absolute; inset: 0; background: var(--photo) center / cover no-repeat; filter: blur(12px); }
.adminside__band::after { content: ''; position: absolute; inset: 0; background: var(--veil, transparent); }
.adminside__name { position: absolute; z-index: 1; left: 24px; bottom: 18px; color: var(--on-photo, var(--ink)); }
.adminside__name p { margin: 0; font-weight: 500; }
.adminside__name .adminside__sub { margin-top: 2px; font-size: 13px; font-weight: 300; }
.adminside__nav { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; }
.adminside__link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--cream); font-size: 16px; font-weight: 300; text-decoration: none; }
a.adminside__link:hover { background: rgba(246, 239, 230, 0.12); color: var(--cream); }
.adminside__link[aria-current='page'] { background: var(--cream); color: var(--ink); font-weight: 500; }
.adminside__link[aria-current='page']:hover { background: var(--cream); color: var(--ink); }
.adminside__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--badge, var(--accent)); color: var(--on-badge, var(--on-accent)); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.adminside__link--soon { cursor: default; }
.adminside__soon { font-size: 12px; font-weight: 300; border: 1px solid rgba(246, 239, 230, 0.5); border-radius: 999px; padding: 1px 8px; }
.adminside__foot { margin-top: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 10px; font-size: var(--t-sm); font-weight: 300; overflow-wrap: anywhere; }
.adminside__foot a { color: var(--cream); }
.adminside__foot form { margin: 0; }
.adminside__signout { background: none; border: 0; padding: 0; color: var(--cream); font: 300 var(--t-sm)/1.4 var(--font); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.adminside__signout:hover, .adminside__foot a:hover { color: #fff; }
.adminside :focus-visible { outline-color: var(--cream); }
.adminside .adminside__link[aria-current='page']:focus-visible { outline-color: var(--cream); outline-offset: 2px; }
.adminmain { flex: 999 1 640px; min-width: 0; padding: 36px 44px 64px; }
.adminmain .admin { padding: 0; }
@media (max-width: 720px) {
  .adminside { max-width: none; flex-basis: 100%; }
  .adminside__band { height: 88px; }
  .adminside__nav { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 14px var(--gutter); }
  .adminside__link { min-height: 40px; }
  .adminside__link--soon { display: none; }
  .adminside__foot { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; padding: 8px var(--gutter) 20px; margin-top: 0; }
  .adminmain { padding: 28px var(--gutter) 56px; }
}

/* ---------- Sign-in pages: cream card over the blurred photo ---------- */
.authpage { position: relative; min-height: 100vh; overflow: hidden; background: var(--accent); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.authpage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px); }
.authcard { position: relative; width: 100%; max-width: 420px; background: var(--cream); border-radius: 20px; padding: 40px 36px; }
.authcard__name { margin: 0; font-weight: 500; }
.authcard__title { margin: 6px 0 28px; font-weight: 300; font-size: 40px; letter-spacing: -0.03em; }
.authcard__text { margin: 0 0 18px; font-weight: 300; line-height: 1.5; }
.authcard__small { margin: 22px 0 0; font-size: 12px; font-weight: 300; line-height: 1.5; }
.authcard__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: var(--t-sm); font-weight: 300; }
.authcard__links a { padding: 6px 0; }
.authcard__error { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--blush); border-left: 3px solid var(--error); font-size: var(--t-sm); line-height: 1.5; }
.authcard__ok { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--peach); font-size: var(--t-sm); line-height: 1.5; }
.authform { display: flex; flex-direction: column; gap: 14px; }
.authfield { display: flex; flex-direction: column; gap: 6px; }
.authfield > span { font-size: 13px; color: var(--ink-2); }
.authpage .authfield input:not([type='checkbox']):not([type='radio']):not([type='file']) { font: 300 16px/1.4 var(--font); color: var(--ink); border: 1px solid rgba(58, 34, 25, 0.25); border-radius: 10px; background: #fff; padding: 11px 13px; min-height: 44px; }
.authfield input:focus { border: 1px solid var(--ink); padding-bottom: 11px; }
.authform__submit { margin-top: 8px; font-size: var(--t-sm); }
@media (max-width: 420px) { .authcard { padding: 32px 22px; } }

/* ---------- Proposals: status badges, list, editor ---------- */
.status--p-draft { background: #E9DFD3; }
.status--p-sent { background: var(--peach); }
.status--p-accepted { background: var(--accent); color: var(--on-accent); }
.status--p-declined { background: #fff; border: 1px solid rgba(58, 34, 25, 0.25); }

.plist__head, .plist__row { display: grid; grid-template-columns: 70px 100px minmax(0, 1fr) 120px 150px; gap: 14px; align-items: center; }
.plist__head { padding: 14px 0; font-size: 13px; color: var(--ink-2); }
.plist__row { padding: 15px 0; border-top: 1px solid rgba(58, 34, 25, 0.12); text-decoration: none; font-size: 15px; }
.plist__row:hover .elist__name { text-decoration: underline; }

.eprops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); }

.psplit { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.psplit__form { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.psplit__preview { flex: 1 1 460px; min-width: 0; position: sticky; top: 24px; }
.psplit__preview > .alabel { margin-top: 0; }
.pfor { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pfor .alabel { margin: 0 0 4px; }
.pfor__name { margin: 0; font-size: 20px; }
.pfor__sub { margin: 2px 0 0; font-weight: 300; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pnum { margin: 0; min-height: 44px; display: flex; align-items: center; font-size: 16px; }
.pcardhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.pcardhead .acard__sub { margin: 0; }
.pitems { list-style: none; margin: 0; padding: 0; }
.pitems__head, .pitem { display: grid; grid-template-columns: minmax(0, 1fr) 132px 116px 36px; gap: 10px; align-items: center; }
.pitems__head { padding: 4px 0 8px; font-size: 13px; color: var(--ink-2); }
.pitem { padding: 10px 0; border-top: 1px solid rgba(58, 34, 25, 0.12); }
.adminmain .pitem input:not([type='checkbox']) { width: 100%; min-width: 0; padding: 8px 10px; }
.pitem__price { display: flex; align-items: center; gap: 4px; }
.pitem__qty { display: flex; }
.pstep { display: inline-flex; align-items: center; gap: 6px; }
.adminmain .pstep input[type='number'] { width: 56px; text-align: center; padding: 8px 4px; -moz-appearance: textfield; }
.pstep input[type='number']::-webkit-inner-spin-button, .pstep input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.around--small { width: 34px; height: 34px; font-size: 16px; }
.adminmain .pcount { width: 96px; }
.pquick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ptl__title { margin-top: 22px; }
.ptl { list-style: none; margin: 0; padding: 0; }
.ptl__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); }
.adminmain .ptl__row input { width: 100%; min-width: 0; padding: 8px 10px; }
.pdeposit { margin-bottom: 14px; }
.pdeposit legend { margin-top: 0; }
.pstatus { margin: 0 0 8px; font-size: var(--t-sm); line-height: 1.6; }
.plinks { margin: 0 0 8px; padding-left: 18px; font-size: var(--t-sm); line-height: 1.6; }
.plink { display: flex; gap: 8px; }
.adminmain .plink input { flex: 1; min-width: 0; font-size: 14px; }

@media (max-width: 1100px) {
  .psplit__preview { position: static; }
}
@media (max-width: 720px) {
  .plist__head { display: none; }
  .plist__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .plist__row > span:nth-child(1), .plist__row > span:nth-child(2) { font-size: 13px; font-weight: 300; }
  .plist__row > span:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pitems__head { display: none; }
  .pitem { grid-template-columns: minmax(0, 1fr) 36px; }
  .pitem > input { grid-column: 1; }
  .pitem > .around { grid-column: 2; grid-row: 1; }
  .pitem__qty, .pitem__price { grid-column: 1 / -1; }
  .ptl__row { grid-template-columns: minmax(0, 1fr) 36px; }
  .ptl__row > input:first-of-type { grid-column: 1; }
  .ptl__row > .around { grid-column: 2; grid-row: 1; }
  .ptl__row > input + label + input { grid-column: 1 / -1; }
  .plink { flex-wrap: wrap; }
}

/* ---------- The proposal document (admin preview and the client's page) ---------- */
.pdoc { background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 10px 30px rgba(58, 34, 25, 0.12); padding: 40px 40px 36px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.pdoc [hidden] { display: none !important; }
.pdoc__band { position: relative; height: 70px; margin: -40px -40px 28px; overflow: hidden; border-radius: 6px 6px 0 0; background: var(--accent); }
.pdoc__band::before { content: ''; position: absolute; inset: -20px; background: var(--photo) center / cover no-repeat; filter: blur(10px); }
.pdoc__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pdoc__studio { margin: 0; font-weight: 500; font-size: 15px; }
.pdoc__small { margin: 2px 0 0; font-weight: 300; }
.pdoc__right { text-align: right; }
.pdoc__title { margin: 0; font-weight: 300; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.pdoc__label { margin: 0 0 4px; font-size: 12px; color: var(--ink-2); }
.pdoc__for { margin: 0 0 18px; font-size: 14px; }
.pdoc__note { margin: 0 0 22px; font-weight: 300; white-space: pre-line; }
.pdoc__items { width: 100%; border-collapse: collapse; }
.pdoc__items th { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 400; text-align: left; }
.pdoc__items td { padding: 9px 8px 9px 0; border-bottom: 1px solid rgba(58, 34, 25, 0.15); vertical-align: top; }
.pdoc__items th:nth-child(2), .pdoc__items td:nth-child(2) { width: 40px; }
.pdoc__items th:nth-child(3), .pdoc__items td:nth-child(3) { width: 80px; }
.pdoc__items th:last-child, .pdoc__items td:last-child { width: 90px; padding-right: 0; text-align: right; }
.pdoc__totals { margin: 0 0 0 auto; max-width: 240px; padding-top: 12px; }
.pdoc__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.pdoc__totals dd { margin: 0; }
.pdoc__total { margin-top: 4px; padding-top: 8px !important; border-top: 1px solid var(--ink); font-size: 16px; font-weight: 500; }
.pdoc__terms { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; line-height: 1.6; }
.pdoc__terms p { margin: 0; font-weight: 300; }
.pdoc__h { margin: 0 0 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.pdoc__timeline { margin-top: 22px; }
.pdoc__timeline dl { margin: 0; }
.pdoc__timeline dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); }
.pdoc__timeline dt { font-weight: 300; }
.pdoc__timeline dd { margin: 0; }
.pdoc__close { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(58, 34, 25, 0.2); font-weight: 300; }
@media (max-width: 520px) {
  .pdoc { padding: 28px 20px; }
  .pdoc__band { margin: -28px -20px 22px; }
  .pdoc__head { flex-direction: column; }
  .pdoc__right { text-align: left; }
  .pdoc__terms { grid-template-columns: minmax(0, 1fr); }
  .pdoc__items th:nth-child(3), .pdoc__items td:nth-child(3) { display: none; } /* unit price: the amount still shows */
}

/* ---------- The client's proposal page ---------- */
.pclient { padding: var(--space) 0; }
.pclient__inner { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.pclient__side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.pclient__title { margin: 0; font-size: var(--t-section); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.pclient__for { margin: 0; font-weight: 300; }
.pclient__box { margin: 0; padding: 24px; border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pclient__box p { margin: 0; line-height: 1.55; }
.pclient__big { font-size: var(--t-lg); font-weight: 300; line-height: 1.1; }
.pclient__alert { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--blush); border-left: 3px solid var(--error); font-size: var(--t-sm); }
.pclient__links { margin: 0; }
.pclient__help { margin: 0; font-size: var(--t-sm); font-weight: 300; }
@media (max-width: 900px) {
  .pclient__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pclient__side { position: static; }
}

/* ---------- Invoices: totals, list, the chosen invoice ---------- */
.astats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.status--i-draft { background: #E9DFD3; }
.status--i-sent { background: var(--peach); }
.status--i-overdue { background: var(--accent); color: var(--on-accent); }
.status--i-paid { background: var(--ink); color: var(--cream); }
.isplit { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ilist { flex: 1 1 320px; min-width: 0; padding: 10px 18px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.ilist ul { list-style: none; margin: 0; padding: 0; }
.ilist__row { display: block; padding: 14px 12px; margin: 4px 0; border-radius: 12px; text-decoration: none; font-size: 15px; }
.ilist__row:hover { background: rgba(252, 230, 218, 0.6); color: var(--ink); }
.ilist__row[aria-current='page'] { background: var(--blush); }
.ilist__line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ilist__line + .ilist__line { margin-top: 6px; }
.ilist__no { font-weight: 500; }
.ilist__meta { font-size: 13px; font-weight: 300; min-width: 0; overflow-wrap: anywhere; }
.ilist .status { flex: none; }
.ipanel { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.iactions { display: flex; flex-wrap: wrap; gap: 8px; }
.istate { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: var(--t-sm); line-height: 1.6; }
.ihead { margin-top: 22px; }
.ipaid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ipaid .afield { flex: 1 1 200px; margin: 0; }
.iextra { margin-top: 0; }
.ipanel .setswitch:first-of-type { border-top: 0; padding-top: 0; }
.adminmain select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233A2219' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; }
.idoc__pay { margin-top: 26px; padding: 16px 18px; background: var(--blush); border-radius: 10px; line-height: 1.7; }
.idoc__pay p { margin: 0; font-weight: 300; }
.idoc__pay .pdoc__h { font-weight: 500; }
.idoc__missing { font-style: italic; }
.idoc__paid { margin: 10px 0 0; text-align: right; font-weight: 500; }
.idoc__note { margin: 18px 0 0; }
@media (max-width: 1100px) { .ilist { position: static; max-height: none; } }
@media (max-width: 720px) { .astats--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Jobs (private to the admin) ---------- */
.jw-0 { width: 0%; }
.jw-5 { width: 5%; }
.jw-10 { width: 10%; }
.jw-15 { width: 15%; }
.jw-20 { width: 20%; }
.jw-25 { width: 25%; }
.jw-30 { width: 30%; }
.jw-35 { width: 35%; }
.jw-40 { width: 40%; }
.jw-45 { width: 45%; }
.jw-50 { width: 50%; }
.jw-55 { width: 55%; }
.jw-60 { width: 60%; }
.jw-65 { width: 65%; }
.jw-70 { width: 70%; }
.jw-75 { width: 75%; }
.jw-80 { width: 80%; }
.jw-85 { width: 85%; }
.jw-90 { width: 90%; }
.jw-95 { width: 95%; }
.jw-100 { width: 100%; }
.jdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.jtimernote .jdot { margin-right: 8px; }
.jlist__head, .jlist__row { display: grid; grid-template-columns: minmax(0, 1.5fr) 120px minmax(0, 1.2fr) minmax(0, 1.2fr) 190px; gap: 18px; align-items: center; }
.jlist__head { padding: 14px 0; font-size: 13px; color: var(--ink-2); }
.jlist__row { padding: 16px 0; border-top: 1px solid rgba(58, 34, 25, 0.12); text-decoration: none; font-size: 15px; }
.jlist__row:hover .jlist__name { text-decoration: underline; }
.jlist__name { display: block; font-weight: 500; }
.jlist__strong { display: block; font-size: 13px; margin-bottom: 6px; }
.jlist__row > span:nth-child(2) .jlist__strong { font-size: 15px; margin: 0; }
.jlist__sub { display: block; font-size: 12px; font-weight: 300; }
.jbar { display: block; height: 6px; border-radius: 999px; background: #EFE5D8; overflow: hidden; }
.jbar--big { height: 10px; margin: 12px 0 10px; }
.jbar__fill { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.jbar__fill--over { background: var(--accent); }
.jbar__fill--paid { background: var(--bamboo); }
.jflag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: var(--bamboo); }
.jflag--due-soon, .jflag--needs-an-estimate { background: var(--peach); }
.jflag--over-estimate, .jflag--working-ahead-of-payment { background: var(--accent); color: var(--on-accent); }

.jhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.jhead__meta { margin: 0 0 4px; font-weight: 300; }
.jhead__name { margin: 0; font-weight: 300; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; }
.jstages { display: flex; gap: 6px; flex-wrap: wrap; }
.jstage { min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 400 14px var(--font); color: var(--ink); border: 1px solid rgba(58, 34, 25, 0.25); background: #fff; }
.jstage[aria-pressed='true'] { font-weight: 500; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.jstage:hover { border-color: var(--ink); }

.jcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.jcard { background: #fff; border-radius: 16px; padding: 22px; min-width: 0; }
.jcard--timer { background: var(--ink); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.jcard--timer a { color: var(--cream); }
.jcard--timer :focus-visible { outline-color: var(--cream); }
.jcard__label { margin: 0 0 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.jclock { margin: 0; font-weight: 300; font-size: 48px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.jcard__note { margin: 4px 0 0; font-size: 13px; font-weight: 300; }
.jtimer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adminmain .jtimer select { flex: 1 1 140px; width: auto; padding: 9px 36px 9px 10px; }
.jtimer__btn { border: 0; background: var(--accent); color: var(--on-accent); }
.jtimer__btn--stop { background: var(--cream); color: var(--ink); }
.jtimer__btn:hover { background: var(--cream); color: var(--ink); }
.jtimer__btn--stop:hover { background: #fff; }
.jtimer__cancel { color: var(--cream); font-size: 13px; }
.jtimer__cancel:hover { color: var(--peach); }
.jcard__big { margin: 0; font-weight: 300; font-size: 34px; letter-spacing: -0.02em; line-height: 1.15; }
.jcard__big span { font-size: 16px; }
.jcard__text { margin: 0; font-size: 14px; font-weight: 300; }
.jest { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.jest__n { min-width: 28px; text-align: center; }

.jpaid { border-radius: 16px; padding: 22px 24px; background: var(--peach); margin-bottom: 14px; }
.jpaid--ahead { background: var(--accent); color: var(--on-accent); }
.jpaid__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.jpaid__headline { margin: 0; font-weight: 300; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.jpaid__rate { font-size: 13px; }
.jpaid__bar { position: relative; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); margin: 16px 0 8px; overflow: hidden; }
.jpaid__zone { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bamboo); border-radius: 999px; }
.jpaid__spent { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(58, 34, 25, 0.18); border-right: 3px solid var(--ink); }
.jpaid__spent.jw-0 { border-right: 0; }
.jpaid__legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.jpaid__advice { margin: 12px 0 0; font-size: 14px; }

.jgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.jside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.jgrid__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.jgrid__head .acard__title { margin: 0; }
.jgrid__head .acard__sub { margin: 0; }
.jlog, .jtasks, .jpays { list-style: none; margin: 0; padding: 0; }
.jlog__row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); font-size: 14px; }
.jlog__date { font-weight: 300; font-size: 13px; }
.jlog__dur { font-variant-numeric: tabular-nums; }
.jadd { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(58, 34, 25, 0.12); }
.jadd .afield { margin: 0; flex: 1 1 120px; }
.jadd .jadd__task { flex: 2 1 160px; }
.jtask { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(58, 34, 25, 0.1); }
.jtask > form:first-child { flex: 1; min-width: 0; }
.jtask__tick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: none; cursor: pointer; text-align: left; font: 300 15px var(--font); color: var(--ink); }
.jtask__box { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 5px; position: relative; }
.jtask__tick[aria-pressed='true'] .jtask__box { background: var(--ink); }
.jtask__tick[aria-pressed='true'] .jtask__box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.jtask__label { min-width: 0; overflow-wrap: anywhere; }
.jtask__label--done { text-decoration: line-through; color: var(--ink-2); }
.jtaskadd { display: flex; gap: 8px; margin-top: 12px; }
.adminmain .jtaskadd input { flex: 1; min-width: 0; }
.jpay { display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(58, 34, 25, 0.1); font-size: 14px; }
.jpay .status { text-align: center; }
.jpays__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jdetails { margin-bottom: 14px; }
.jnew { max-width: 820px; }
@media (max-width: 1100px) {
  .jcards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .jcard--timer { grid-column: 1 / -1; }
  .jgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .jlist__head { display: none; }
  .jlist__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
  .jlist__row > span:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .jcards { grid-template-columns: minmax(0, 1fr); }
  .jlog__row { grid-template-columns: minmax(0, 1fr) auto 36px; }
  .jlog__date { grid-column: 1 / -1; }
  .jclock { font-size: 40px; }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
