/* Portal sign-in + signed-in shell. Builds on style-survey.css (tokens, fonts, .sv-* controls). */
.sv-header { position: sticky; top: 0; }
/* margin:0 auto here (not left to the .sv-main it's usually paired with) so .pa-main centres on its own - the
   two standalone pages that only use this class (My Account, Availability) were sitting flush left on a wide
   screen otherwise, with the content column never centring. */
.pa-main { max-width: 520px; margin: 0 auto; padding-top: 40px; padding-bottom: 80px; }
.pa-footer { max-width: 680px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 40px; text-align: center; }
.pa-footer p { font-size: 12px; color: var(--ink-soft); }
.pa-footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.pa-footer a:hover { color: var(--ink); }
/* Signed-in home/project views only (see shell() in portal-auth.js) - the narrow 520px column reads fine as a
   phone-in-hand booking form, but on a Mac it left ~460px of empty margin either side and everything stacked
   in one long list, which felt like a mobile app blown up rather than a dashboard. Give those views more room
   and let their widgets sit side by side; sign-in/password/reset stay narrow, they're just a form. */
@media (min-width: 900px) {
  .pa-main.pa-dash { max-width: 1100px; }
  .pa-dashgrid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
  /* .pa-panel always carries a 14px top margin (spacing from whatever's above it in a plain stack), but as the
     first thing in a column here there's nothing above it to space from - left it sitting 14px lower than the
     job card starting the other column. */
  .pa-dashgrid__main > :first-child, .pa-dashgrid__side > :first-child { margin-top: 0; }
  /* Whatever comes after the grid (the full-width availability calendar) is a .pa-panel with its own plain
     14px margin-top - much tighter than the 40px gap above the grid, so the page's rhythm felt off ("wonky")
     right at that seam. Match it to the same gap the status bar keeps above the grid. */
  .pa-dashgrid { margin-bottom: 40px; }
  .pa-projlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pa-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 1px 3px rgba(53, 41, 20, .06); }
.pa-card + .pa-card { margin-top: 14px; }
/* Headings use the same editorial serif as the main site's own h1s (.n-h1-serif) - the portal's own headings
   were plain sans, which read as an admin tool rather than part of the same brand a client just booked with. */
.pa-card h1, .pa-card h2 { font-family: "Ebgaramond", Georgia, serif; font-weight: 400; font-size: clamp(26px, 5vw, 32px); line-height: 1.25; margin: 0 0 8px; outline: none; color: var(--ink); }
.pa-lede { font-family: "Ebgaramond", Georgia, serif; font-size: 19px; color: var(--ink-soft); margin: 0 0 20px; }
.pa-boot { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.pa-card .sv-field { max-width: none; }
.pa-card .sv-btn { width: 100%; }
/* Primary buttons take the site's actual gold, not flat charcoal - .sv-btn is shared with the Style Survey
   pages, so this is scoped to inside the portal shell rather than changed globally. */
.pa-main .sv-btn, .pa-btn:not(.ghost) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pa-main .sv-btn:hover, .pa-btn:not(.ghost):hover { background: #c3c7cf; border-color: #c3c7cf; }
.pa-btn.ghost:hover { background: var(--cream); border-color: var(--gold-dark); }
.pa-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pa-link { background: none; border: 0; padding: 10px 2px; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 40px; }
.pa-link[disabled] { color: var(--ink-soft); cursor: default; text-decoration: none; }
.pa-msg { padding: 10px 12px; border-radius: var(--radius); font-size: 14px; margin: 0 0 14px; background: #e6eef6; color: #23405f; }
.pa-msg.err { background: #f6e3df; color: #7a2a20; }
.pa-code { text-align: center; letter-spacing: .5em; font-size: 24px !important; font-variant-numeric: tabular-nums; }
/* the big spaced-out look is for the digits once typed; the "Enter the code" hint stays small and normal-spaced */
.pa-code::placeholder { font-size: 15px; letter-spacing: normal; color: var(--ink-soft); opacity: .8; }
.pa-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.pa-user span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* header account icon, replacing the old plain name + "Sign out" text - a head-and-shoulders glyph, same
   treatment the rest of the portal gives any icon link. */
.pa-account-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: 12px; letter-spacing: .04em; }
.pa-account-link svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.pa-account-link:hover { color: var(--gold-dark); }
.pa-account-link span { display: none; }
@media (min-width: 560px) { .pa-account-link span { display: inline; } }
/* sign out (and, for admin/designer, the availability calendar) live at the bottom of the home page now, not
   the header - a plain, quiet row under everything else, not competing with the bookings above it. */
.pa-bottomlinks { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.pa-iconlink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.pa-iconlink svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.pa-iconlink:hover { color: var(--gold-dark); }
.pa-hint { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.pa-badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #e7e1d8; white-space: nowrap; }
/* a bit more saturated than the original pale set - still tasteful, but reads as colour-coded status at a
   glance instead of five near-identical shades of grey-beige. */
.pa-badge.new { background: #ece4d2; color: #7a6633; } .pa-badge.allocated { background: #e3ddf5; color: #453a91; }
.pa-badge.in_design { background: #d9ecfa; color: #1f5f92; } .pa-badge.moodboard_delivered { background: #dcf2e1; color: #2b6b3d; }
.pa-badge.revision_requested { background: #fbe6bf; color: #8a5a06; } .pa-badge.complete { background: #e3ddce; color: #5c4f2e; }
/* a small gold pill, not just a plain text label - the same "which role am I in" cue, dressed as part of the
   brand rather than a form field's caption. */
.pa-role { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); background: #f6efe0; border: 1px solid #e8dbb8; padding: 4px 12px; border-radius: 999px; margin: 0 0 10px; }
.pa-jobno { font-variant-numeric: tabular-nums; color: var(--ink-soft); letter-spacing: 0; }
.pa-proj strong .pa-jobno { font-weight: 400; margin-right: 2px; }
/* each booking sits in its own bordered box (not just a divider line) so a list of several reads as distinct
   cards, not one long run-on block - .pa-projlist supplies the gap between them. */
.pa-projlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pa-proj { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(53, 41, 20, .06); }
.pa-proj strong { font-weight: 500; } .pa-proj small { display: block; color: var(--ink-soft); font-size: 13px; }
.pa-empty { color: var(--ink-soft); font-size: 15px; padding: 8px 0; }
/* .pa-bucket is used on two different tags in two different broad-heading containers: h2 inside .pa-card
   (loadHome's section labels - collides with ".pa-card h1, .pa-card h2" above) and h3 inside .pa-panel (the
   master calendar's selected-date label, portal-auth.js mcDetailHTML - collides with ".pa-panel h3" below). A
   bare ".pa-bucket", or even "h2.pa-bucket"/"h3.pa-bucket" alone, ties those broad rules on specificity and
   then depends on source order to win - fragile. Naming both container+tag combinations explicitly instead
   gives this higher specificity than either broad rule, so it wins regardless of order. */
.pa-card h2.pa-bucket, .pa-panel h3.pa-bucket { display: flex; align-items: center; gap: 8px; margin: 22px 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-family: "Poppins", system-ui, sans-serif; }
.pa-bucket:first-child { margin-top: 0; }
.pa-bucket__count { background: var(--line); color: var(--ink-soft); font-size: 11px; letter-spacing: 0; text-transform: none; padding: 1px 8px; border-radius: 999px; }
/* project rows are buttons (admin/designer tap to open); reset the browser's button chrome */
button.pa-proj { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; cursor: pointer; font: inherit; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(53, 41, 20, .06); transition: border-color .15s, box-shadow .15s; }
button.pa-proj:hover, button.pa-proj:focus-visible { background: rgba(0, 0, 0, .035); border-color: var(--gold-dark); box-shadow: 0 2px 8px rgba(53, 41, 20, .1); }
button.pa-proj > span:first-child { flex: 1; min-width: 0; }

/* ---------- project detail page (admin/designer): status bar above the job ---------- */
.pa-statusbar { margin: 24px 0 40px; }
.pa-statusbar__track { display: flex; gap: 3px; height: 5px; }
.pa-statusbar__track span { flex: 1; border-radius: 3px; background: var(--line); }
.pa-statusbar__track span.is-done { background: var(--ink); }
.pa-statusbar__steps { display: flex; gap: 3px; margin-top: 6px; }
.pa-statusbar__steps span { flex: 1; text-align: center; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.pa-statusbar__steps span.is-done { color: var(--ink); }
.pa-statusbar__steps span.is-active { color: var(--ink); font-weight: 500; }
/* each step takes on the same colour its badge uses elsewhere in the portal (.pa-badge.allocated etc.), once
   reached - upcoming steps stay neutral grey. */
.pa-statusbar__track span.is-done.step-new, .pa-statusbar__track span.is-active.step-new { background: #8a8371; }
.pa-statusbar__track span.is-done.step-allocated, .pa-statusbar__track span.is-active.step-allocated { background: #4b4187; }
.pa-statusbar__track span.is-done.step-in_design, .pa-statusbar__track span.is-active.step-in_design { background: #2c5b86; }
.pa-statusbar__track span.is-done.step-moodboard_delivered, .pa-statusbar__track span.is-active.step-moodboard_delivered { background: #3f6b4d; }
.pa-statusbar__track span.is-done.step-complete, .pa-statusbar__track span.is-active.step-complete { background: #4c5b61; }
.pa-statusbar__steps span.is-done.step-new, .pa-statusbar__steps span.is-active.step-new { color: #8a8371; }
.pa-statusbar__steps span.is-done.step-allocated, .pa-statusbar__steps span.is-active.step-allocated { color: #4b4187; }
.pa-statusbar__steps span.is-done.step-in_design, .pa-statusbar__steps span.is-active.step-in_design { color: #2c5b86; }
.pa-statusbar__steps span.is-done.step-moodboard_delivered, .pa-statusbar__steps span.is-active.step-moodboard_delivered { color: #3f6b4d; }
.pa-statusbar__steps span.is-done.step-complete, .pa-statusbar__steps span.is-active.step-complete { color: #4c5b61; }
.pa-statusbar__note { margin: 8px 0 0; font-size: 12px; color: #9a6a12; }

/* ---------- project detail page (admin/designer): allocate + status controls ---------- */
.pa-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.pa-inline .sv-field { flex: 1 1 200px; max-width: none; margin: 0; }
.pa-inline .sv-field select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); }
.pa-inline .pa-btn { flex: none; }

/* ---------- messages (chat) ---------- */
/* every widget/section reads as its own box, same as .pa-card, so a page of several sections looks like a set
   of distinct dashboard widgets rather than one long unbroken column of text. */
.pa-panel { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 3px rgba(53, 41, 20, .06); }
/* a thin gold rule under each panel's title, echoing the site's own section eyebrows - a small, consistent
   touch of the brand colour on every widget, not just the buttons. */
.pa-panel h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.pa-chat { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; margin-bottom: 12px; }
.pa-bubble { max-width: 85%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; align-self: flex-start; }
.pa-bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.pa-bubble__meta { margin: 0 0 2px; font-size: 11px; color: var(--ink-soft); }
.pa-bubble.mine .pa-bubble__meta { color: #cfc8be; }
.pa-bubble__body { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pa-chatform { display: flex; gap: 8px; align-items: flex-end; }
.pa-chatform textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; min-height: 44px; }

/* ---------- files / moodboard ---------- */
.pa-files { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pa-files li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pa-fileopen { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; min-height: 44px; transition: border-color .15s, background .15s; }
.pa-fileopen:hover { border-color: var(--gold-dark); background: var(--cream); }
.pa-fileopen__kind { flex: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
/* "My documents" row icon (overlay/js/account.js) - same thin-stroke treatment as the header/footer icons. */
.pa-docicon { flex: none; width: 20px; height: 20px; stroke: var(--gold-dark); stroke-width: 1.4; fill: none; }
/* "My documents" list (My Account) reuses .pa-fileopen/.pa-files, shared with the moodboard/consultation lists
   elsewhere in the portal - scoped here via .pa-docs so only this list gets the smaller, quieter treatment. */
.pa-docs .pa-fileopen { padding: 8px 10px; min-height: 38px; gap: 8px; }
.pa-docs .pa-docicon { width: 15px; height: 15px; }
.pa-docs .pa-fileopen__title, .pa-docs .pa-fileopen span { font-size: 13px; }
/* A disabled field (Email, on My Account - you can't change it there) still uses the house font at full weight -
   browsers otherwise render disabled inputs a touch differently, which can read as the wrong typeface. */
.sv-field input:disabled { font-family: "Poppins", system-ui, sans-serif; color: var(--ink-soft); background: var(--cream); opacity: 1; -webkit-text-fill-color: var(--ink-soft); }
.pa-fileopen__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pa-upload .sv-field { flex: none; max-width: 180px; margin: 0; } .pa-upload .sv-field select { min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 14px; }
.pa-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }

.pa-badge.fast { background: #8a1f11; color: #fff; margin-left: 6px; }

/* ---------- client project page ---------- */
.pa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pa-progress { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 14px; } .pa-progress h3 { margin: 0; font-size: 14px; font-weight: 500; }
.pa-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 6px 0 4px; } .pa-bar i { display: block; height: 100%; background: var(--gold); }
.pa-tasks { list-style: none; margin: 10px 0 0; padding: 0; }
.pa-task { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.pa-task:first-child { border-top: 0; }
.pa-tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink-soft); display: grid; place-items: center; font-size: 14px; line-height: 1; background: #fff; }
.pa-task.done .pa-tick { background: #3f6b4d; border-color: #3f6b4d; color: #fff; }
.pa-task.locked { opacity: .62; } .pa-task.locked .pa-tick { border-style: dashed; font-size: 12px; }
.pa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--ink); color: #fff; border: 1px solid #000; border-radius: 4px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.pa-btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); } .pa-btn.small { min-height: 44px; }
.pa-btn[disabled] { opacity: .55; cursor: progress; }
.pa-btn.busy { opacity: .55; cursor: progress; pointer-events: none; }   /* a <label> upload button has no [disabled] of its own */
.pa-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pa-measure { display: grid; gap: 10px; }
.pa-measure label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.pa-measure textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; min-height: 84px; }
.pa-tag { display: inline-block; font-size: 13px; background: #f3efe9; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; overflow-wrap: anywhere; }

/* ---------- native consultation booking (supabase/booking-engine.sql) ---------- */
.pa-availform { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pa-availgrid { display: flex; flex-direction: column; }
.pa-avail-day { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.pa-avail-day:first-child { border-top: 0; }
.pa-avail-day label.pa-check { flex: 0 0 60px; }
.pa-avail-day__times { display: flex; align-items: center; gap: 10px; }
.pa-avail-day input[type=time] { min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 14px; }
.pa-avail-day span { color: var(--ink-soft); font-size: 13px; }
.pa-availform .pa-btn { margin-top: 8px; align-self: flex-start; }
/* a week-at-a-glance calendar strip on a wide screen, instead of a stacked settings-form list - reads as
   "my week" rather than an admin config panel. */
@media (min-width: 900px) {
  .pa-availgrid { flex-direction: row; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .pa-availgrid .pa-avail-day { flex: 1 1 0; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 14px 6px; border-top: 0; border-left: 1px solid var(--line); text-align: center; }
  .pa-availgrid .pa-avail-day:first-child { border-left: 0; }
  .pa-availgrid .pa-avail-day label.pa-check { flex: none; font-weight: 500; }
  .pa-availgrid .pa-avail-day__times { flex-direction: column; gap: 4px; }
  .pa-availgrid .pa-avail-day input[type=time] { width: 100%; font-size: 13px; padding: 0 4px; }
}
.pa-slotday { margin-top: 14px; } .pa-slotday:first-child { margin-top: 0; }
.pa-slotday__label { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.pa-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-slot { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.pa-slot:hover { border-color: var(--ink-soft); }
.pa-slot.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.pa-bookform { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pa-bookform textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; min-height: 60px; }
.pa-bookform .pa-btn { justify-self: start; }

/* ---------- shopping list (supabase/shopping-list.sql) ---------- */
.pa-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
/* % / £ as a clickable either/or (new-voucher form), not a dropdown - same min-height as the text inputs beside it. */
.pa-kindtoggle { display: flex; gap: 8px; }
.pa-kindtoggle__btn { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: 500 16px "Poppins", sans-serif; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pa-kindtoggle__btn.is-selected { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pa-kindtoggle__btn:hover:not(.is-selected) { border-color: var(--gold-dark); }
.pa-shop { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pa-shop li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.pa-shop li:first-child { border-top: 0; }
.pa-shop li > div:first-child { flex: 1; min-width: 200px; }
.pa-shop small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
/* horizontally-scrolling strip (voucher codes) - a fixed-height row you scroll sideways through, so the panel
   doesn't get taller every time another code is added. */
.pa-carousel { display: flex; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.pa-carousel__card { flex: 0 0 200px; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.pa-carousel__card strong { display: block; }
.pa-carousel__card small { display: block; color: var(--ink-soft); font-size: 12px; margin: 3px 0 10px; }
.pa-carousel__card .pa-actions { flex-wrap: nowrap; }
.pa-carousel::-webkit-scrollbar { height: 6px; }
.pa-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.pa-shopform { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pa-shopform .pa-inline { margin-top: 0; }
.pa-shopform .sv-field { max-width: none; margin: 0; }
.pa-shopform .sv-field input, .pa-shopform .sv-field select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); }
.pa-shopform .pa-btn { justify-self: start; }

/* ---------- admin/designer home: stats, quick links, "needs attention" ---------- */
/* the thin lines between tiles are gold, not grey - a warm frame around the numbers that matter most on the
   whole dashboard, instead of a plain spreadsheet-style grid. */
.pa-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 20px 0 4px; background: var(--gold); border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 420px) { .pa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pa-stat { background: var(--paper); padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.pa-stat strong { font-size: 28px; font-weight: 400; font-family: "Ebgaramond", Georgia, serif; line-height: 1; color: var(--gold-dark); }
.pa-stat span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pa-badge.attn { background: #f6e3df; color: #a33a2c; }

.pa-tradelogo { display: block; height: 34px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; margin-bottom: 4px; }

/* ---------- admin: designer details cards (name, contact, bank info, active toggle, all in one place) ---------- */
.pa-dcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 4px; }
@media (min-width: 640px) { .pa-dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the designer network is a wide screen: more room, and as many cards across as fit at a readable width */
@media (min-width: 900px) {
  .pa-main.pa-wide { max-width: 1320px; }
  .pa-wide .pa-dcards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
}
/* min-width:0 overrides the grid default (min-width:auto), which otherwise refuses to shrink a track below its
   content's natural width - a long email address (emma+designer@whereroomsbegin.com) was forcing the whole grid,
   and the page with it, wider than the viewport instead of just wrapping. */
.pa-dcard { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.pa-dcard__name { display: flex; gap: 8px; }
.pa-dcard__name input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: 500 15px "Poppins", sans-serif; color: var(--ink); }
.pa-dcard__name button { flex: none; }

/* ---------- designer network (admin): onboarding stages, contact log, documents ---------- */
.pa-stage { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pa-stage--new_talent { background: #e8edf1; color: #52606d; }
.pa-stage--quick_survey_sent { background: #f6ecd0; color: #8a6d1d; }
.pa-stage--interview { background: #e9e6f5; color: #4b4187; }
.pa-stage--onboarding { background: #e1ecf5; color: #2c5b86; }
.pa-stage--compliance_review { background: #f8e6d8; color: #a0521d; }
.pa-stage--approved { background: #e1f0e5; color: #3f6b4d; }
.pa-stage--active { background: #cfe8d6; color: #1f5130; }
.pa-stage--not_now { background: #ece7e1; color: #6b6154; }
.pa-stage--declined { background: #f4dede; color: #8a2c2c; }
.pa-stale { color: #a0521d; font-weight: 500; }
.pa-dcard__stage { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.pa-stagepick select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 13px; color: var(--ink); }
.pa-dcard__sub { margin: 12px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.pa-dcard--prospect { border-style: dashed; background: var(--cream); }
.pa-dnotes { margin-top: 10px; font-size: 13px; }
.pa-dnotes summary { cursor: pointer; color: var(--ink-soft); }
.pa-dnotes__list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.pa-dnotes__list small { display: block; color: var(--ink-soft); font-size: 11px; }
.pa-dnotes__form { display: flex; gap: 8px; }
.pa-dnotes__form input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 14px; color: var(--ink); }

/* ---------- My Account (designer): profile, compliance documents, invoices ---------- */
.sv-field textarea { width: 100%; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; line-height: 1.5; }
.sv-field textarea:focus { border-color: var(--ink); outline: 2px solid var(--gold); outline-offset: 0; }
.sv-field input[type="file"] { height: auto; padding: 10px 12px; }
.ac-photo { display: flex; align-items: center; gap: 16px; margin: 4px 0 6px; }
.ac-photo img, .ac-photo__empty { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--cream); }
.ac-doc { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ac-doc small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

/* ---------- "Your designer" card on the client's project (portal-auth.js designerCardFor) ---------- */
.pa-dpro__head { display: flex; align-items: center; gap: 14px; }
.pa-dpro__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.pa-dpro__head small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.pa-dpro__bio { margin: 12px 0 0; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.pa-dpro__styles { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pa-dsummary { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

/* In a plain (non-grid) form, whatever follows a side-by-side field row needs its own gap - .pa-inline fields carry no bottom
   margin, so the Save button under Sort code / Account number (and the next field in the invoice form) sat flush against them.
   .pa-shopform is a grid with its own gap, so it's left out. */
form:not(.pa-shopform) > .pa-inline + * { margin-top: 18px; }

/* ---------- onboarding form (overlay/js/onboarding.js) and checklist ---------- */
.ob-group { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.ob-group legend { padding: 0; margin-bottom: 6px; font-size: 14px; }
.ob-desc { display: block; margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.ob-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.ob-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 15px; color: var(--ink); }
.ob-opt input { width: 18px; height: 18px; flex: none; }
.ob-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.ob-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ob-files { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; }
.ob-files li { padding: 4px 0; overflow-wrap: anywhere; }
.pa-check-list { list-style: none; margin: 0 0 14px; padding: 0; }
.pa-ck { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.pa-ck:first-child { border-top: 0; }
.pa-ck strong { display: block; font-weight: 500; }
.pa-ck small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.pa-ck__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-grid; place-items: center; font-size: 13px; color: #fff; margin-right: 10px; }
.pa-ck.is-done .pa-ck__tick { background: #3f6b4d; border-color: #3f6b4d; }
.pa-ck__main { display: flex; align-items: center; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.pa-dcard--review { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold); }
.pa-answers { margin: 8px 0 0; font-size: 13px; display: grid; gap: 6px; }
.pa-answers dt { color: var(--ink-soft); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pa-answers dd { margin: 0 0 4px; overflow-wrap: anywhere; white-space: pre-line; }

/* Booking rows (.pa-proj): a grid/flex item won't shrink below its content by default (min-width:auto), so a long job name, client
   name or badge pushed the box wider than the screen when the window was narrowed. Let the text shrink and wrap, and keep the status
   badge on the right (smaller on a very narrow screen) rather than dropping it underneath. */
.pa-proj, button.pa-proj { min-width: 0; max-width: 100%; flex-wrap: nowrap; }
.pa-proj > span:first-child, button.pa-proj > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.pa-proj > .pa-badge, button.pa-proj > .pa-badge { flex: none; }

/* The standalone portal pages (My account, Availability, Onboarding) use .pa-main on its own, with no .sv-main to give them side
   padding, so on a narrow screen their cards ran edge to edge. The main portal page already gets this from .sv-main. */
.pa-main:not(.sv-main) { padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }

/* "required" marker on the onboarding form: a quiet note beside the question, not part of it */
.ob-req { margin-left: 6px; font-size: 11px; font-weight: 400; font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); opacity: .8; }
@media (max-width: 420px) { .pa-proj > .pa-badge, button.pa-proj > .pa-badge { font-size: 10px; padding: 3px 7px; letter-spacing: .03em; } }

/* designer network: Current / Archive tabs, and the flag on archived people who have not had their email yet */
.pa-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 12px; border-bottom: 1px solid var(--line); }
.pa-tab { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.pa-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.pa-flag { color: #a0521d; font-weight: 500; }
.pa-tab .pa-flag { margin-left: 6px; }

/* voucher codes (admin): one compact line per code, and the create form folded away until it is needed */
.pa-vlist { list-style: none; margin: 10px 0 0; padding: 0; }
.pa-vrow { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.2fr) auto auto; align-items: center; gap: 6px 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.pa-vrow:first-child { border-top: 0; }
.pa-vrow__code { font-weight: 500; letter-spacing: .04em; overflow-wrap: anywhere; }
.pa-vrow__meta { font-size: 13px; color: var(--ink-soft); }
.pa-vrow.is-off .pa-vrow__code, .pa-vrow.is-off .pa-vrow__meta { opacity: .55; }
.pa-vrow .pa-btn { min-height: 34px; padding: 0 12px; font-size: 11px; }
@media (max-width: 640px) {
  .pa-vrow { grid-template-columns: minmax(0, 1fr) auto; }
  .pa-vrow__meta { grid-column: 1 / -1; grid-row: 2; }
  .pa-vrow .pa-btn { grid-column: 1 / -1; justify-self: start; }
}
.pa-vnew { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.pa-vnew summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); padding: 4px 0; }
.pa-vform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 10px; }
.pa-vform .sv-field { margin: 0; max-width: none; }
.pa-vform .sv-field > span { font-size: 12px; }
.pa-vform .sv-field input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 14px; }
.pa-vf-code { flex: 1 1 150px; } .pa-vf-kind { flex: 0 0 96px; } .pa-vf-amt { flex: 0 1 90px; } .pa-vf-exp { flex: 1 1 150px; } .pa-vf-max { flex: 1 1 110px; }
.pa-vform .pa-kindtoggle { gap: 6px; }
.pa-vform .pa-kindtoggle__btn { min-height: 38px; }
.pa-vform .pa-btn { flex: none; min-height: 38px; }

/* safety net: one stray over-wide element must never make a page scroll sideways on a phone (the actual causes are fixed where they are found) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* top-bar "Sign out" (icon + label, label hidden on narrow screens) - sits beside My account / Back links */
.pa-headright { display: flex; align-items: center; gap: 16px; }
.pa-signout-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; letter-spacing: .04em; cursor: pointer; }
.pa-signout-link[hidden] { display: none; }
.pa-signout-link svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pa-signout-link:hover { color: var(--gold-dark); }
.pa-signout-link span { display: none; }
@media (min-width: 560px) { .pa-signout-link span { display: inline; } }

/* Chief designer: every job on the list carries its designer's colour (a left edge and a name chip), so your own jobs and each team
   member's can be told apart at a glance. Colour 0 is the chief; the team take 1-7 in name order. "To allocate" is dashed grey. */
.pa-tc-0 { --tc: #3b4448; } .pa-tc-1 { --tc: #6f8f72; } .pa-tc-2 { --tc: #b8735a; } .pa-tc-3 { --tc: #5f84a0; }
.pa-tc-4 { --tc: #b99a3e; } .pa-tc-5 { --tc: #86688a; } .pa-tc-6 { --tc: #4f9591; } .pa-tc-7 { --tc: #be7f8c; }
button.pa-proj[class*="pa-tc-"] { border-left: 6px solid var(--tc, #b1b6c0); }
button.pa-proj.pa-tc-none { border-left: 6px dashed #b1b6c0; }
.pa-tcchip { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--tc, #8a847c); color: #fff; font: 400 11px/1.2 var(--sans, sans-serif); letter-spacing: .02em; vertical-align: middle; }
.pa-tcchip.pa-tc-none { background: #ece7e1; color: #6b6154; }
.pa-tcdot { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--tc, #8a847c); vertical-align: -1px; }

/* Tick circles and boxes inside a form field (the onboarding form's "How can we reach you?", experience, availability...): the
   text-box style on `.sv-field input` was switching off their normal look, so they clicked but never visibly changed. */
.sv-field input[type="radio"], .sv-field input[type="checkbox"] {
  -webkit-appearance: auto; appearance: auto; width: 20px; height: 20px; padding: 0; margin: 0; flex: none;
  border: 0; border-radius: 0; background: none; accent-color: var(--ink, #353535); cursor: pointer;
}
.sv-field label.ob-opt { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 36px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; color: var(--ink, #353535); cursor: pointer; }
.sv-field label.ob-opt span { text-transform: none; letter-spacing: 0; }

/* ---------- chat: photos, replies, "about this" tags, seen ---------- */
.pa-chat { max-height: 460px; }
.pa-bubble__foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin: 4px 0 0; min-height: 0; }
.pa-bubble__foot:empty { display: none; }
.pa-seen { font-size: 11px; color: #cfc8be; letter-spacing: .04em; }
.pa-reply { all: unset; cursor: pointer; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.pa-bubble.mine .pa-reply { color: #cfc8be; }
.pa-quote { margin: 4px 0 6px; padding: 4px 8px; border-left: 3px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--ink-soft); background: rgba(0, 0, 0, .03); border-radius: 2px; overflow-wrap: anywhere; }
.pa-bubble.mine .pa-quote { border-left-color: rgba(255, 255, 255, .45); color: #e6e0d8; background: rgba(255, 255, 255, .08); }
.pa-about { margin: 2px 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pa-about a { color: inherit; text-underline-offset: 3px; }
.pa-atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-top: 6px; }
.pa-att--img img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.pa-att--file { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .6); color: var(--ink); text-decoration: none; overflow: hidden; }
.pa-att--file span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-att--file small { font-size: 11px; color: var(--ink-soft); }
.pa-chatform--rich { display: block; }
.pa-chatrow { display: flex; gap: 8px; align-items: flex-end; }
.pa-attach { flex: none; cursor: pointer; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 12px 6px; text-decoration: underline; text-underline-offset: 4px; }
.pa-attach:hover { color: var(--ink); }
.pa-replybar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding: 6px 10px; font-size: 12px; background: #f1ede8; border-left: 3px solid var(--ink); border-radius: 2px; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.pa-chip small { color: var(--ink-soft); }
.pa-chatextras { margin-bottom: 4px; }
.pa-bubble { max-width: 90%; }

/* ---------- consultation recap ---------- */
.pa-recap__item { padding: 14px 0; border-top: 1px solid var(--line); }
.pa-recap__item:first-of-type { border-top: 0; padding-top: 4px; }
.pa-recap__summary { margin: 0 0 8px; font: 400 17px/1.65 "Ebgaramond", Georgia, serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.pa-recap__h { margin: 12px 0 4px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.pa-recap__list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.pa-recap__list--next { list-style: none; padding-left: 0; }
.pa-recap__list--next li { position: relative; padding-left: 26px; margin: 6px 0; }
.pa-recap__list--next li::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border: 1.5px solid var(--ink-soft); border-radius: 50%; }

/* ---------- Today ---------- */
.pa-today h3 { margin-bottom: 10px; }
.pa-todaylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pa-today__item { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--ink-soft); border-radius: var(--radius); font: inherit; transition: border-color .15s, box-shadow .15s; }
.pa-today__item:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .07); border-color: var(--ink); }
.pa-today__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa-today__item strong { display: block; font-weight: 500; font-size: 15px; }
.pa-today__item small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.pa-today__go { color: var(--ink-soft); font-size: 18px; }
.pa-today__item--request, .pa-today__item--allocate, .pa-today__item--review, .pa-today__item--designers { border-left-color: #b8735a; }
.pa-today__item--reply, .pa-today__item--stale { border-left-color: #b99a3e; }
.pa-today__item--feedback { border-left-color: #5f84a0; }
.pa-today__item--consult, .pa-today__item--moodboard { border-left-color: #6f8f72; }
.pa-today__clear { margin: 0; font: 400 17px/1.6 "Ebgaramond", Georgia, serif; color: var(--ink-soft); }

/* ---------- the next-step card: one calm thing to do, or a reassurance about who has it ---------- */
.pa-hero { position: relative; margin-bottom: 14px; padding: 34px 28px 30px; background: linear-gradient(180deg, #fff 0%, #faf8f5 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(53, 41, 20, .06), 0 14px 40px -24px rgba(53, 41, 20, .22); animation: pa-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.pa-hero::before { content: ""; display: block; width: 36px; height: 1px; margin-bottom: 20px; background: var(--gold-dark); opacity: .55; }
.pa-hero__kicker { margin: 0 0 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }
.pa-hero__title { margin: 0 0 12px; font-family: "Ebgaramond", Georgia, serif; font-weight: 400; font-size: clamp(28px, 5.4vw, 36px); line-height: 1.18; color: var(--ink); }
.pa-hero__text { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.pa-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.pa-hero .pa-btn { padding: 14px 26px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pa-hero__pill { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .15s; }
.pa-hero__pill:hover { border-color: var(--ink); } .pa-hero__pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa-hero__pill span { width: 7px; height: 7px; border-radius: 50%; background: #b8735a; }
.pa-hero--wait::before, .pa-hero--done::before { background: #5f8a6a; opacity: .8; }
.pa-hero--wait .pa-hero__kicker, .pa-hero--done .pa-hero__kicker { color: #5f8a6a; }
@keyframes pa-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* a part of the page the next-step card has just pointed to */
.is-glow { animation: pa-glow 1.8s ease-out; }
@keyframes pa-glow { 0% { box-shadow: 0 0 0 3px rgba(177, 182, 192, .85); } 100% { box-shadow: 0 1px 3px rgba(53, 41, 20, .06); } }
@media (prefers-reduced-motion: reduce) { .pa-hero { animation: none; } .is-glow { animation: none; box-shadow: 0 0 0 2px var(--gold); } }

/* ---------- the journey: a hairline with six moments ---------- */
.pa-tl__list { list-style: none; margin: 14px 0 0; padding: 0; }
.pa-tl__item { position: relative; display: flex; gap: 16px; padding: 0 0 20px; }
.pa-tl__item:last-child { padding-bottom: 0; }
.pa-tl__item::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 1px; background: var(--line); }
.pa-tl__item:last-child::before { display: none; }
.pa-tl__dot { flex: none; width: 13px; height: 13px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.pa-tl__item.is-done .pa-tl__dot { background: #5f8a6a; border-color: #5f8a6a; }
.pa-tl__item.is-done::before { background: #5f8a6a; opacity: .45; }
.pa-tl__item.is-now .pa-tl__dot { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(53, 53, 53, .09); background: #fff; }
.pa-tl__item strong { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.pa-tl__item.is-later strong { color: var(--ink-soft); font-weight: 400; }
.pa-tl__note { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.pa-tl__at { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9a948c; }

/* ---------- pipeline (admins and chiefs) ---------- */
.pa-pipe__item.is-stuck { border-left-color: #b8735a; }
.pa-pipe__ok { margin: 12px 0 0; }

/* ---------- alerts card and the designer welcome ---------- */
.pa-alerts h3 { margin-bottom: 6px; }
.pa-alerts.is-on { border-left: 3px solid #5f8a6a; }
.pa-welcome { padding: 26px 24px; background: linear-gradient(180deg, #fff 0%, #faf8f5 100%); }
.pa-welcome__kicker { margin: 0 0 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }
.pa-welcome h3 { font-family: "Ebgaramond", Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.pa-welcome__steps { list-style: none; counter-reset: w; margin: 16px 0 18px; padding: 0; }
.pa-welcome__steps li { counter-increment: w; position: relative; padding: 0 0 14px 38px; }
.pa-welcome__steps li::before { content: counter(w); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; color: var(--gold-dark); border: 1px solid var(--line); border-radius: 50%; }
.pa-welcome__steps strong { display: block; font-weight: 500; font-size: 15px; }
.pa-welcome__steps a { color: var(--ink); text-underline-offset: 3px; }
.pa-welcome__steps span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- one moodboard per room: a calm row for each ---------- */
.pa-rooms { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.pa-room { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius); }
.pa-room > div { min-width: 0; }
.pa-room strong { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.pa-room span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.pa-room__note { margin: 6px 0 0; }
.pa-room--shared { border-left-color: var(--gold-dark); }
.pa-room--approved { border-left-color: #5f8a6a; }
.pa-room--approved span { color: #5f8a6a; }
.pa-room--changes, .pa-room--review { border-left-color: #b99a3e; }
@media (max-width: 480px) { .pa-room { flex-wrap: wrap; } .pa-room .pa-btn { width: 100%; } }

/* ---------- buttons: one clear main action, quieter ones beside it ---------- */
/* Main action: charcoal with cream text. It is unmistakable on a cream page, and there is only ever one per card. */
.pa-btn, a.pa-btn { box-sizing: border-box; min-height: 46px; padding: 0 22px; font-weight: 500; letter-spacing: .09em; text-decoration: none; border-radius: 3px; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease; }
.pa-main .sv-btn, .pa-btn:not(.ghost) { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 1px 2px rgba(53, 41, 20, .12); }
.pa-main .sv-btn:hover, .pa-btn:not(.ghost):hover { background: #1f1f1f; border-color: #1f1f1f; color: #fff; box-shadow: 0 6px 16px -8px rgba(31, 31, 31, .5); transform: translateY(-1px); }
.pa-btn:not(.ghost):active { transform: translateY(0); box-shadow: none; }
/* Quiet action: a hairline outline, so the main one reads first and nobody has to wonder which to press. */
.pa-btn.ghost { background: var(--paper); color: var(--ink); border-color: #cfc8be; box-shadow: none; }
.pa-btn.ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: none; transform: none; }
/* Always visible keyboard focus; never lost on a pale button. */
.pa-btn:focus-visible, .pa-link:focus-visible, .mb-btn:focus-visible, .mb-fb__pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* While something is happening, or when it cannot be pressed yet, it says so by looking asleep. */
.pa-btn[disabled], .pa-btn.busy, .pa-btn[aria-disabled="true"] { opacity: .5; box-shadow: none; transform: none; pointer-events: none; }
.pa-btn[disabled] { cursor: not-allowed; } .pa-btn.busy { cursor: progress; }
/* A row of buttons: the main one first, a comfortable gap, and on a phone each takes the full width so it is easy to hit. */
.pa-actions { gap: 10px 12px; }
@media (max-width: 480px) { .pa-hero .pa-btn, .pa-room .pa-btn, .pa-alerts .pa-btn, .pa-welcome .pa-btn { width: 100%; } .pa-hero__actions { flex-direction: column; align-items: stretch; } .pa-hero__pill { align-self: flex-start; } }
/* Text links used as buttons (Sign out, Withdraw, Turn off): clearly clickable, never tiny. */
.pa-link { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .pa-btn, .mb-btn { transition: none; } .pa-btn:not(.ghost):hover { transform: none; } }

/* =====================================================================================================================
   Design pass: hierarchy, rhythm, and the small moments (headings, greeting, loading, empty, confirmations).
   One idea throughout: the next step is the loudest thing on the page; everything else is calm.
   ===================================================================================================================== */

/* Panel headings: a quiet label over a hairline, not a heavy rule */
.pa-panel h3 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.pa-panel.pa-welcome h3 { font-family: "Ebgaramond", Georgia, serif; font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; padding: 0; margin: 0 0 6px; }
.pa-panel { margin-top: 16px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(53, 41, 20, .05), 0 10px 30px -22px rgba(53, 41, 20, .25); }
.pa-card { box-shadow: 0 1px 2px rgba(53, 41, 20, .05), 0 10px 30px -22px rgba(53, 41, 20, .25); }

/* The greeting is a header, not another box competing with the next-step card */
.pa-card.pa-greet { background: none; border: 0; box-shadow: none; padding: 2px 2px 14px; }
.pa-card.pa-greet h1 { font-size: clamp(30px, 6vw, 40px); margin: 0 0 4px; }
.pa-card.pa-greet .pa-lede { margin: 0; font-size: 18px; }
.pa-card.pa-greet + .pa-dashgrid, .pa-card.pa-greet + .pa-card { margin-top: 0; }

/* A finished checklist steps back to one quiet line */
.pa-card--done { padding-top: 18px; padding-bottom: 14px; }
.pa-card--done h2 { font-size: 20px; margin-bottom: 4px; }
.pa-doneline { margin-top: 6px; }
.pa-doneline > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: #5f8a6a; }
.pa-doneline > summary::before { content: "\2713"; display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 11px; color: #fff; background: #5f8a6a; border-radius: 50%; }
.pa-doneline > summary::-webkit-details-marker { display: none; }
.pa-doneline[open] > summary { margin-bottom: 8px; }

/* Waiting: a gentle pulse instead of a static line */
.pa-boot { animation: pa-pulse 1.6s ease-in-out infinite; font-size: 15px; letter-spacing: .04em; }
@keyframes pa-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Nothing here yet: warm and clearly intentional, never a blank */
.pa-empty { padding: 20px 16px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink-soft); background: #faf8f5; border: 1px dashed var(--line); border-radius: var(--radius); }
.pa-panel .pa-empty + .pa-upload, .pa-panel .pa-empty + .pa-shopform { margin-top: 14px; }

/* Confirmations and errors: a calm note that slides in at the top of the screen and leaves by itself */
.pa-msg.pa-toast { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; width: min(460px, calc(100vw - 32px)); margin: 0; padding: 14px 18px; font-size: 14px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 4px solid #5f8a6a; border-radius: var(--radius); box-shadow: 0 14px 40px -12px rgba(31, 31, 31, .35); transform: translate(-50%, 0); animation: pa-toast-in .35s cubic-bezier(.2, .7, .2, 1) both; }
.pa-msg.pa-toast.err { border-left-color: #b8735a; color: var(--ink); background: #fff; }
.pa-msg.pa-toast.is-leaving { opacity: 0; transform: translate(-50%, -8px); transition: opacity .35s ease, transform .35s ease; }
@keyframes pa-toast-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .pa-boot, .pa-msg.pa-toast { animation: none; } }

/* Phones: a comfortable edge, and room at the bottom so nothing hides behind the home bar */
@media (max-width: 520px) {
  .pa-main { padding-left: 16px; padding-right: 16px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .pa-panel, .pa-card { padding-left: 18px; padding-right: 18px; }
  .pa-hero { padding: 28px 22px 24px; }
}

/* ---------- quick replies (designers and the team) ---------- */
.pa-snips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.pa-snips__label { flex-basis: 100%; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.pa-snip, .pa-snip > button:first-child { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font: inherit; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid #cfc8be; border-radius: 999px; transition: border-color .15s, background-color .15s; }
.pa-snip:hover { border-color: var(--ink); } .pa-snip:focus-visible, .pa-snip > button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa-snip--mine { padding: 0; gap: 0; background: #faf8f5; }
.pa-snip--mine > button:first-child { min-height: 34px; padding: 0 6px 0 14px; border: 0; background: none; border-radius: 999px 0 0 999px; }
.pa-snip__x { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 30px; min-height: 34px; font-size: 16px; color: var(--ink-soft); }
.pa-snip__x:hover { color: var(--ink); }
.pa-snips__save { font-size: 12px; color: var(--ink-soft); min-height: 36px; }
.pa-pipe .pa-hint:first-of-type { margin: 0 0 14px; }
.pa-pipe .pa-todaylist + .pa-hint { margin-top: 16px; }

/* ---------- sign-in: the first thing a client sees, so the calmest screen in the portal ---------- */
.pa-auth { padding: 36px 28px 30px; text-align: center; }
.pa-auth h1 { font-size: clamp(30px, 6vw, 38px); }
.pa-auth .pa-lede { max-width: 38ch; margin: 0 auto 26px; font-size: 18px; line-height: 1.5; }
.pa-auth__kicker { margin: 0 0 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }
.pa-auth__icon { display: block; width: 52px; height: 52px; margin: 0 auto 16px; color: var(--gold-dark); }
.pa-auth form { text-align: left; max-width: 360px; margin: 0 auto; }
.pa-auth .sv-field input { min-height: 50px; font-size: 16px; }
.pa-auth .sv-btn { min-height: 50px; margin-top: 6px; }
.pa-auth__how { max-width: 34ch; margin: 0 auto 20px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.pa-auth__how strong { color: var(--ink); font-weight: 500; }
.pa-auth .pa-code { font-size: 28px !important; letter-spacing: .4em; min-height: 58px; }
.pa-row--center { justify-content: center; }
.pa-auth .pa-row { max-width: 360px; margin-left: auto; margin-right: auto; }
.pa-auth__foot { max-width: 44ch; margin: 18px auto 0; text-align: center; line-height: 1.6; }
.pa-auth__foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- consultation guide (designers): quiet until opened ---------- */
.pa-guide { padding: 0; }
.pa-guide > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; padding: 18px 22px; }
.pa-guide > summary::-webkit-details-marker { display: none; }
.pa-guide__t { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.pa-guide__s { font-size: 14px; color: var(--ink-soft); }
.pa-guide[open] > summary { border-bottom: 1px solid var(--line); }
.pa-guide h4 { margin: 18px 22px 6px; font-family: "Ebgaramond", Georgia, serif; font-weight: 400; font-size: 20px; color: var(--ink); }
.pa-guide ul { margin: 0 22px 4px; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.pa-guide ul:last-child { margin-bottom: 20px; }
.pa-room__acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .pa-room__acts { width: 100%; } }
/* a room with two actions: the name on top, the two buttons side by side beneath it, so nothing is squeezed */
.pa-room:has(.pa-room__acts) { flex-wrap: wrap; }
.pa-room:has(.pa-room__acts) .pa-room__acts { width: 100%; }
.pa-room:has(.pa-room__acts) .pa-room__acts .pa-btn { flex: 1 1 150px; white-space: nowrap; }
