/* frontdoor/css/platform.css — the team / org surfaces of the dashboard
 * (frontdoor/js/platform-ui.js, spec §9.1).
 *
 * [p1 2026-11-12] WHY A SEPARATE FILE, AND WHY IT INVENTS NOTHING. The
 * founder's rule for this phase is "match the existing dashboard look
 * exactly": a builder's grid must read as the same product a photographer has
 * used for months. So every rule here is built from app.css's tokens and
 * reuses its pieces wherever one exists (.card, .section-label, .btn,
 * .ivris-badge, .field, the .tut-modal chrome, .quota-banner, the
 * .grid-filter-btn look for the selects) — this file only adds what the
 * platform needs that the dashboard never had (page headings in the grid, a
 * home-status chip, an assignee avatar, team rows, form grids). It is a file of
 * its own so app.css, which several tests read, stays as it was. Everything is
 * pf-* or scoped to a [p1] id, so nothing here can restyle an existing node.
 */

/* Every element platform-ui.js owns carries [data-pf]; a few of them reuse
   app.css classes that set `display` (.quota-banner is flex, .card block,
   .bottom-nav .tab-btn flex), which would beat the `hidden` attribute. The
   fallback must hide them all, unconditionally. */
[data-pf][hidden]{display:none !important;}
.tab-btn[hidden]{display:none !important;}
/* …and the same for what platform-ui.js toggles INSIDE them (a flex link box,
   a grid of lot facts, a flex checkbox row): `hidden` must always win. */
[data-pf] [hidden]{display:none !important;}

/* ---------- header: org switch ---------- */
.org-switch{max-width:220px; padding:6px 30px 6px 12px; border:1.5px solid var(--border); border-radius:20px;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6E68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px 14px;
  -webkit-appearance:none; appearance:none;
  font:600 13px 'Barlow',sans-serif; color:var(--ink-700); cursor:pointer; text-overflow:ellipsis;
  transition:border-color var(--dur-fast) var(--ease-out);}
.org-switch:hover, .org-switch:focus{border-color:var(--green); outline:none;}

/* ---------- banners ---------- */
.pf-banner{display:flex; align-items:center; gap:12px; flex-wrap:wrap; border-radius:var(--radius-md);
  padding:12px 16px; margin:0 0 20px; font-size:14px; line-height:1.5;}
/* IVRIS support access: the brand green, so it reads as "us", not an error */
.pf-staff-banner{background:var(--green-light); border:1.5px solid var(--green); color:var(--green-dark); font-weight:600;}
.pf-unavailable{margin-bottom:18px;}

/* ---------- onboarding card (account type, spec §8.1) ---------- */
.pf-onboarding{margin:0 0 18px;}
.pf-onboarding-sub{font-size:14px; color:var(--gray); line-height:1.6; margin:0 0 14px; max-width:620px;}
.pf-onboarding-options{display:flex; flex-wrap:wrap; gap:10px;}
.pf-onboarding-foot{display:flex; align-items:center; gap:12px; margin-top:14px;}

/* ---------- grid: page + status filters, page headings ---------- */
/* the bar may wrap once the two selects join it; the legacy bar is untouched */
.grid-search:has(> .pf-grid-select:not([hidden])){flex-wrap:wrap;}
.pf-grid-select{flex-shrink:0; max-width:220px; padding:9px 30px 9px 13px; border:1.5px solid var(--border); border-radius:10px;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6E68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px 14px;
  -webkit-appearance:none; appearance:none;
  color:var(--gray); font:600 13px 'Barlow',sans-serif; cursor:pointer; text-overflow:ellipsis;
  transition:all var(--dur-fast) var(--ease-out);}
.pf-grid-select:hover, .pf-grid-select:focus{border-color:var(--green); color:var(--black); outline:none;}
/* one heading per page, spanning the whole grid row (the grid stays ONE
   grid: the cards keep their exact sizes and gaps) */
.project-grid .pf-group-title{grid-column:1 / -1; margin:10px 0 -6px; font-size:11px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; color:var(--gray);}
.project-grid .pf-group-title:first-child{margin-top:0;}

/* ---------- card additions (spec §9.1) ---------- */
.pf-card-meta{display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0;}
.pf-status-chip{display:inline-block; font-size:11px; font-weight:600; letter-spacing:.02em; padding:3px 9px;
  border-radius:20px; background:var(--gray-light); color:var(--ink-700); white-space:nowrap;}
.pf-status-chip.pf-st-available{background:var(--green-light); color:var(--green-dark);}
.pf-status-chip.pf-st-under_construction{background:#fdf3d7; color:#7a5d12;}
.pf-status-chip.pf-st-coming_soon{background:var(--paper-100); color:var(--ink-700); border:1px solid var(--line);}
.pf-status-chip.pf-st-sold{background:var(--ink-700); color:#fff;}
.pf-card-plan, .pf-card-price{font-size:12px; color:var(--gray); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;}
.pf-card-price{color:var(--ink-700); font-weight:600;}
.pf-avatar{display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex-shrink:0;
  border-radius:50%; background:var(--ivris-green-200); color:var(--green-dark); font:700 10px 'Barlow',sans-serif;
  letter-spacing:.02em; margin-left:auto;}
.pf-card-note{font-size:12.5px; color:var(--gray); line-height:1.5;}
.pf-card-note.error{color:var(--danger);}
.pf-card-actions{display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:8px;}
.pf-link{background:none; border:0; padding:0; font:600 12.5px 'Barlow',sans-serif; color:var(--ivris-green-600);
  text-decoration:underline; text-underline-offset:2px; cursor:pointer;}
.pf-link:hover{color:var(--green);}

/* ---------- floor plans (tab or block) ---------- */
.pf-plans-block{margin-top:28px;}
.pf-section-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px;}
.pf-section-head .section-label{margin:0;}
.pf-plan-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px;}
.pf-plan-card{display:flex; flex-direction:column; gap:8px; padding:18px; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);}
.pf-plan-version{font-size:13px; color:var(--ink-700);}
.pf-plan-actions{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:auto; padding-top:8px;}
.pf-dim{font-size:12.5px; color:var(--gray);}
.pf-fee{flex-basis:100%;}
.pf-empty{padding:24px 0; text-align:left;}
/* [p1r10 2026-11-12] Phase 1 R10: a plan card lists its versions (base, exterior styles, options) */
.pf-plan-versions{display:flex; flex-direction:column; gap:10px;}
.pf-plan-versions .pf-plan-version{display:flex; flex-direction:column; gap:4px; padding-top:8px; border-top:1px solid var(--line, rgba(0,0,0,.08));}
.pf-plan-versions .pf-plan-version:first-child{padding-top:0; border-top:0;}
.pf-version-head{overflow-wrap:anywhere;}
.pf-version-name{font-weight:600; color:var(--black);}
.pf-version-actions{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:2px;}

/* ---------- Account tab cards ---------- */
.pf-account-card{margin-bottom:24px;}
.pf-sub-label{margin-top:18px;}
.pf-team-list{display:flex; flex-direction:column;}
.pf-team-row{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:10px 0; border-top:1px solid var(--line);}
.pf-team-row:first-child{border-top:0;}
.pf-team-who{display:flex; align-items:center; gap:10px; min-width:0;}
.pf-team-who .pf-avatar{margin-left:0; width:30px; height:30px; font-size:11px;}
.pf-team-names{display:flex; flex-direction:column; gap:2px; min-width:0; font-size:14px; line-height:1.35;}
.pf-team-names b{font-weight:600; overflow-wrap:anywhere;}
.pf-team-acts{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-left:auto;}
.pf-page-row{justify-content:flex-start;}
.pf-page-row .pf-inline-input{flex:1 1 200px;}
.pf-inline-select, .pf-inline-input{padding:8px 10px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--white); color:var(--black); font:400 13px 'Barlow',sans-serif; outline:none; min-width:0;
  transition:border-color .15s;}
.pf-inline-select:focus, .pf-inline-input:focus{border-color:var(--green);}
.pf-invite-row{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px;}
.pf-invite-row .pf-inline-input{flex:1 1 220px;}
.pf-link-box{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; padding:12px 14px;
  background:var(--green-light); border:1.5px solid var(--green); border-radius:var(--radius-md);}
.pf-link-box .pf-dim{flex-basis:100%; color:var(--green-dark); margin:0;}
.pf-link-box .pf-inline-input{flex:1 1 260px; font-family:ui-monospace,Menlo,monospace; font-size:12px;}
/* [p1 2026-11-12 review] every link made this visit, one row each (who it is for, the link, Copy) */
.pf-link-box .pf-invite-row{flex-basis:100%; margin-top:0;}
.pf-link-box .pf-invite-for{font-size:12.5px; min-width:0; max-width:100%; overflow-wrap:anywhere;}
/* [p1 2026-11-12 review] IVRIS's "needs changes" notes on a plan card: the founder's words, kept readable */
.pf-card-note.pf-vb-notes{color:var(--black); white-space:pre-wrap; overflow-wrap:anywhere;}
.pf-quota-row{margin-top:12px;}
/* [p2b 2026-11-12] Account › Web address (spec §18): the address, Copy, Open */
.pf-webaddress-row{margin-top:12px; align-items:center; flex-wrap:wrap; gap:8px 14px;}
.pf-webaddress-row a:not(.btn){overflow-wrap:anywhere; min-width:0;}
.pf-check{display:flex; align-items:flex-start; gap:8px; font-size:14px; line-height:20px; color:var(--black); cursor:pointer; margin-top:6px;}
.pf-check input{accent-color:var(--green); width:16px; height:16px; flex:none; margin-top:2px;}
.pf-checks{display:flex; flex-wrap:wrap; gap:6px 16px;}
/* "Manage subscription" is the person's own plan — not shown while an org
   that pays for its own homes is on screen (spec §9.1). !important: it beats
   the inline display stripe-billing.js sets. */
body.pf-org-billing #manage-sub{display:none !important;}

/* ---------- forms inside the modal chrome ---------- */
.pf-dialog{max-width:620px;}
.pf-dialog-sub{margin:4px 0 14px;}
.pf-form-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 14px;}
.pf-form-grid .pf-span-2{grid-column:1 / -1;}
.pf-facts{display:grid; grid-template-columns:repeat(4,1fr); gap:0 10px;}
.pf-form .field select, .pf-form .field textarea, .pf-form .field input{width:100%; padding:10px 12px; border:1.5px solid var(--border);
  border-radius:10px; font:400 14px 'Barlow',sans-serif; background:var(--white); color:var(--black); outline:none;
  transition:border-color .15s;}
.pf-form .field select:focus, .pf-form .field input:focus{border-color:var(--green);}
.pf-form .field select:disabled, .pf-form .field input:disabled{background:var(--paper-50); color:var(--gray);}
.pf-hint{display:block; margin-top:5px; font-size:12px; color:var(--gray); line-height:1.4;}
.pf-readonly{display:block; font-size:14px; padding:4px 0;}
.pf-form-msg{font-size:13px; color:var(--green-dark); min-height:18px; margin:4px 0 12px;}
.pf-form-msg.error{color:var(--danger);}
.account-actions .pf-form-msg{margin:0;}

/* ---------- "New" chooser ---------- */
.pf-chooser{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px;}
.pf-chooser-card{text-align:left; font:inherit; color:inherit; cursor:pointer;}
.pf-chooser-card:focus-visible{outline:2px solid var(--focus-ring); outline-offset:2px;}

/* ---------- wizard: where this listing goes (#wizard-context, step 1) ---------- */
#wizard-context{display:flex; flex-wrap:wrap; gap:12px 22px; align-items:flex-start;}
#wizard-context[hidden]{display:none;}
#wizard-context .wiz-context-page{display:flex; flex-direction:column; gap:4px; min-width:220px;}
#wizard-context .wiz-context-page b{font-size:13px; color:var(--ink);}
#wizard-context .wiz-context-kind{display:flex; flex-direction:column; gap:6px; font-size:13.5px; padding-top:2px;}
#wizard-context .wiz-context-kind label{display:flex; align-items:center; gap:8px; cursor:pointer;}
#wizard-context .wiz-context-kind input{accent-color:var(--ivris-green);}
#wizard-context .wiz-context-plan{flex-basis:100%; display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; font-size:13px;}
#wizard-context .wiz-context-plan[hidden]{display:none;}
#wizard-context .wiz-context-plan label{display:flex; align-items:center; gap:6px;}
#wizard-context .wiz-context-plan input{width:76px; background:var(--white); color:var(--ink-900); border:1px solid var(--border);
  border-radius:8px; padding:8px; font:inherit;}
#wizard-context .wiz-context-plan .hint{flex-basis:100%; margin:0;}

/* ---------- phone width ---------- */
@media (max-width:720px){
  /* the header holds wordmark | org switch | homes-left chip at 375px: a
     compact switch, a tighter gap — only while the switch is showing */
  .org-switch{max-width:118px; padding:5px 24px 5px 10px; font-size:12px; background-position:right 8px center;}
  .ivris-header-user:has(.org-switch:not([hidden])){gap:6px;}
  /* search gets its own row once the two selects join it (the legacy bar —
     search + one filter button — keeps today's single row) */
  .grid-search:has(> .pf-grid-select:not([hidden])) #project-search{flex:1 1 100%; max-width:none;}
  .pf-grid-select{flex:1 1 140px; max-width:none;}
  .pf-form-grid, .pf-chooser{grid-template-columns:1fr;}
  .pf-facts{grid-template-columns:1fr 1fr;}
  .pf-team-acts{margin-left:0;}
}
/* [p2b 2026-11-12] Team › My profile (spec §18, B2): photo, title, phone, DRE # */
.pf-profile{margin-top:8px; padding:14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--white);}
.pf-profile-photo-row{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.pf-profile-photo{width:64px; height:64px; border-radius:50%; object-fit:cover; flex-shrink:0;}
span.pf-avatar.pf-profile-photo{margin-left:0; font-size:18px;}
.pf-file-label{position:relative; overflow:hidden; cursor:pointer;}
.pf-file{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer;}
.pf-profile-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px 14px; margin-top:12px;}
.pf-profile-grid .pf-inline-input{width:100%;}
.pf-profile .pf-dim{margin:8px 0 0;}

/* ============ [p2b 2026-11-12] B4 — public pages and sharing (spec §18) ============ */
.pf-contact-note{display:flex;flex-direction:column;gap:4px}
.pf-warn{color:#9a5b00;font-size:13px;line-height:1.4}
.pf-page-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;width:100%}
.pf-links{border-top:1px solid rgba(20,24,26,.08);padding-top:10px}
.pf-links-title{margin:0 0 8px;font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:rgba(20,24,26,.6)}
.pf-link-row{display:grid;grid-template-columns:170px 1fr auto;gap:6px 12px;align-items:center;margin:0 0 14px}
.pf-link-label{font-weight:600;font-size:14px}
.pf-link-field{width:100%;min-width:0;font:13px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;padding:6px 8px;border:1px solid rgba(20,24,26,.15);border-radius:8px;background:#fafbf9}
.pf-link-note{grid-column:1/-1;font-size:12px;margin-top:-2px}
.pf-share-dialog{max-width:640px}
.pf-tabs{display:flex;gap:4px;border-bottom:1px solid rgba(20,24,26,.1);margin:12px 0}
.pf-tab{appearance:none;border:0;background:none;padding:8px 12px;font:600 14px/1 inherit;color:rgba(20,24,26,.6);cursor:pointer;border-bottom:2px solid transparent}
.pf-tab[aria-selected="true"]{color:#14181a;border-bottom-color:#6aad3f}
.pf-share-pane{min-height:120px}
.pf-qr-canvas{display:block;width:240px;height:240px;margin:8px 0;border:1px solid rgba(20,24,26,.1);border-radius:8px;image-rendering:pixelated}
.pf-snippet{margin:0 0 18px}
.pf-snippet-text{display:block;width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:10px;background:var(--paper-50);color:var(--black);font:12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;resize:vertical}
.pf-snippet .btn{margin-top:8px}
.pf-share-button-img{display:block;margin:4px 0 12px;max-width:240px;height:auto}
@media (max-width:560px){.pf-link-row{grid-template-columns:1fr auto}.pf-link-label{grid-column:1/-1}}
.pf-share-pane .pf-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}

/* [p2b 2026-11-12] 2c: the Branding card (spec §18) — the logo, and the brand
   colour's swatch beside its field */
.pf-brand-logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0 6px}
.pf-brand-logo{display:block;max-height:48px;width:auto;max-width:100%;border-radius:6px;background:#fff}
.pf-color-row{display:flex;align-items:center;gap:8px}
.pf-color-row input{flex:1;min-width:0}
.pf-swatch{flex:none;width:28px;height:28px;border-radius:8px;border:1px solid rgba(20,24,26,.15);background:#6aad3f}
/* [hub p2 2026-11-20] the Branding card's two colours, mini preview and notes;
   the "Your site" card's pickers (company hub spec §3.5, §3.1) */
.pf-swatch.pf-swatch-empty{background:repeating-linear-gradient(45deg,#fff 0 4px,#eee 4px 8px)}
.pf-color-row input.pf-color-picker{flex:none;width:44px;min-height:36px;padding:2px;border:1px solid rgba(20,24,26,.2);border-radius:8px;background:#fff;cursor:pointer}
.pf-subhead{margin:16px 0 10px;font-weight:700;font-size:14px}
.pf-hub-preview{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:12px 16px;align-items:start;margin:4px 0 12px}
.pf-hub-preview > .btn{grid-column:1 / -1;justify-self:start}
.pf-hub-mini{border:1px solid rgba(20,24,26,.15);background:#fff;font:400 11px/1.3 Assistant,-apple-system,"Segoe UI",Roboto,sans-serif;color:#000;overflow:hidden}
.pf-hub-mini-head{display:flex;align-items:center;justify-content:center;position:relative;padding:8px 8px 4px}
.pf-hub-mini-name{font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:10px}
.pf-hub-mini-cart{position:absolute;right:10px;top:7px;width:12px;height:12px;border:1px solid #000;border-radius:2px}
.pf-hub-mini-count{position:absolute;right:-8px;top:-7px;min-width:12px;height:12px;padding:0 3px;border:1px solid #000;border-radius:6px;background:#000;color:#fff;font:700 8px/10px Assistant,sans-serif;text-align:center}
/* [hub 2026-11-23 v2] the two tabs (spec §16.3): the selected one white with the colour's 3 px mark */
.pf-hub-mini-pbar{display:grid;grid-template-columns:1fr 1fr;background:#f5f5f5}
.pf-hub-mini-tab,.pf-hub-mini-link{padding:4px 0 3px;font-size:10px;text-align:center;border-bottom:3px solid transparent}
.pf-hub-mini-tab{background:#fff;border-bottom-color:#000}
.pf-hub-mini-head{border-bottom:1px solid rgba(0,0,0,.08)}
.pf-hub-mini-coll{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 8px;border:1px solid #000;background:#000;color:#fff}
.pf-hub-mini-coll-title{font-size:11px}
.pf-hub-mini-coll-btn{padding:3px 8px;background:#fff;color:#000;font-size:9px}
.pf-hub-mini-body{display:flex;gap:10px;align-items:flex-end;padding:10px 8px}
.pf-hub-mini-card{flex:0 0 104px;border-radius:6px;box-shadow:0 1px 4px rgba(0,0,0,.14);overflow:hidden;padding-bottom:5px}
.pf-hub-mini-well{height:58px;background:linear-gradient(160deg,#cfd4d6,#9aa3a8)}
.pf-hub-mini-go{margin:5px 6px 0;font-weight:700;font-size:10px}
.pf-hub-mini-btn{display:inline-block;padding:6px 10px;border:1px solid #000;background:#000;color:#fff}
.pf-hub-mini-foot{padding:6px 8px;background:#f5f5f5;text-align:center;font-size:9px;color:rgba(0,0,0,.75)}
.pf-hub-notes{margin:0;padding-left:18px;font-size:13px;color:rgba(20,24,26,.8)}
.pf-hub-notes li{margin:0 0 4px}
.pf-site-thumb{display:block;width:120px;height:80px;object-fit:cover;background:#ddd0c5;border-radius:6px;margin-top:6px}
.pf-site-homes{margin-top:12px}
/* [hub p2 2026-11-20 QA r2] the "Your site" card's rhythm: nothing touches
   (the intro, the headline and the button sat at 0 px) */
#site-card-body > * + *{margin-top:10px}
#site-card-body > .pf-form{margin-top:14px}
#site-card-body > .pf-form .pf-form-grid > .field:first-child{margin-top:0}
.pf-site-tagline{margin:0;font-size:14px}
.pf-site-tagline-label{color:var(--gray)}
.pf-site-homes .pf-subhead{margin-top:8px}
.pf-site-homes .pf-hint{margin-bottom:10px}
.pf-site-home{display:flex;gap:12px;align-items:center;padding:8px 0;border-top:1px solid rgba(20,24,26,.08)}
.pf-site-home .pf-site-thumb{margin-top:0;flex:none}
.pf-site-home-body{flex:1;min-width:0}
.pf-site-home-name{margin:0 0 4px;font-weight:600;overflow-wrap:anywhere}
.pf-site-home select{display:block;width:100%;max-width:420px;padding:10px 12px;border:1.5px solid var(--border);border-radius:10px;font:400 14px 'Barlow',sans-serif;background:var(--white);color:var(--black);outline:none;transition:border-color .15s}
.pf-site-home select:focus{border-color:var(--green)}
/* the account row's buttons keep their arrow on their line */
.account-row .btn{white-space:nowrap;align-self:flex-start}
/* the Branding card: one Save row (Save, Live preview); the preview's note under it */
.pf-brand-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media (max-width:560px){.pf-hub-preview{grid-template-columns:minmax(0,1fr)}}

/* [gap 2026-11-13] D2: the live theme preview (Page details, the Branding
   card) — the real page in a frame, the unsaved theme laid over it. Only
   ever built while public pages are on; nothing here matches otherwise. */
.pf-live{margin:10px 0 4px}
.pf-live-note{margin:6px 0}
.pf-live-box{border:1px solid rgba(20,24,26,.12);border-radius:10px;overflow:hidden;background:#fff}
.pf-live-frame{display:block;width:100%;height:420px;border:0;background:#fff}
@media (max-width:560px){.pf-live-frame{height:340px}}

/* [p4 2026-11-12] Phase 4 T4: the Tour requests card's list — one request a
   row (home, when, source, ref), the "search your email for TL-…" hint on
   its own line */
.pf-tour-row{flex-direction:column; align-items:flex-start; gap:2px;}
.pf-tour-hint{font-size:12.5px;}
.pf-tour-list + .btn{margin-top:8px;}

/* [p4 2026-11-12] Phase 4 Wave B (T6-T8): the Reports pane — controls on one
   wrapping row, the Analytics pane's tiles (.an-stats), the report-view.js
   chart (.rv-spark), a table that scrolls sideways on a phone instead of
   widening the page, Activity rows, and the reassign select in the confirm
   dialog (T7) */
.pf-report-controls{align-items:center}
.pf-report-controls .pf-dim{font-size:13px}
.pf-report-spark .rv-spark{display:block;width:100%;max-width:560px;height:auto}
.pf-report-spark .rv-bar{fill:#6aad3f}
.pf-report-spark .rv-bar.zero{fill:rgba(20,24,26,.12)}
.pf-report-spark .rv-axis{stroke:rgba(20,24,26,.15);stroke-width:1}
.pf-report-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0 4px}
.pf-report-table{width:100%;border-collapse:collapse;font-size:13.5px}
.pf-report-table th,.pf-report-table td{text-align:left;padding:6px 8px;border-bottom:1px solid rgba(20,24,26,.08);white-space:nowrap}
.pf-report-table th{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(20,24,26,.6)}
.pf-report-table .num{text-align:right}
.pf-report-table td:first-child{white-space:normal;max-width:260px}
.pf-report-total td{font-weight:700;border-top:2px solid rgba(20,24,26,.15)}
.pf-report-notes{margin:10px 0 0;padding-left:18px;font-size:12.5px;line-height:1.55}
.pf-report-commission{margin-top:12px}
.pf-activity{margin-top:20px}
.pf-activity-row{flex-direction:column;align-items:flex-start;gap:2px}
.pf-activity-row + .btn,.pf-activity-rows + .btn{margin-top:8px}
.pf-confirm-extra{margin:4px 0 12px}
.pf-reassign{display:flex;flex-direction:column;gap:6px}
.pf-reassign .pf-inline-select{max-width:100%}
/* [p8 2026-11-12] Phase 8 P8-8: Account → Integrations (webhooks, API keys) */
.pf-integration-row{align-items:flex-start}
.pf-integration-row b{overflow-wrap:anywhere;min-width:0}
.pf-integration-out{flex-basis:100%}
.pf-integration-out .pf-dim{margin:4px 0 0;overflow-wrap:anywhere}
.pf-integrations-verify{margin:10px 0}
.pf-code{font-family:ui-monospace,Menlo,monospace;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:rgba(20,24,26,.04);padding:10px 12px;border-radius:8px;max-width:100%}
/* [autoslug 2026-11-15] Account › Web address: the claim form (C4w) */
.pf-webaddress-claim{display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; min-width:0;}
.pf-webaddress-claim input{flex:1 1 180px; min-width:0;}
.pf-webaddress-claim .pf-form-msg{flex-basis:100%; margin:0;}

/* [hub p1 2026-11-20] company hub spec §5.3: "Show on my site" on a home row */
.pf-card-site{margin-top:4px; font-size:12.5px; line-height:18px;}
.pf-card-site input{width:14px; height:14px;}

/* [spacing 2026-11-20] the founder's "text looks close to another" pass on
   the items added since 11-11. Values come only from the scale this file and
   app.css already use (2 · 4 · 6 · 8 · 10 · 12 · 14 · 18 px; 14px = the
   .field rhythm), so nothing new is invented. */
/* a checkbox inside a .field (Home details › Show on my site, the plan's
   pages): `.pf-form .field input` made it a full-width text box and
   `.field label` an uppercase field label — it is a checkbox row again */
.pf-form .field .pf-check{display:flex; align-items:flex-start; gap:8px; margin:0 0 4px;
  font:400 14px/20px 'Barlow',sans-serif; letter-spacing:0; text-transform:none; color:var(--black);}
.pf-form .field .pf-check input{width:16px; height:16px; padding:0; border:0; flex:none; margin-top:2px;}
#hd-site-help{margin-top:4px; padding-left:24px;}   /* under the label text: 16px box + 8px gap */
#pf-plan-archived-wrap{margin:0 0 14px;}
/* Home details › Links: the button off the recipient line, the shop box off the button */
#hd-links > .btn{margin-top:10px;}
#hd-links > .btn + .btn{margin-left:8px;}
/* Home details › Furniture 5%: off the Links above, then one 6px step between its lines */
#hd-shop{margin-top:14px; display:flex; flex-direction:column; align-items:flex-start; gap:6px;}
#hd-shop > .pf-links-title{margin:0 0 2px;}
#hd-shop .field, #hd-shop .pf-link-row{align-self:stretch; margin:6px 0 0;}
/* Home details › photos / AR / MLS #: three fields, three columns */
#hd-public-wrap{grid-template-columns:repeat(3,1fr);}
/* dialogs whose form starts right under the title (no sub-line) */
.pf-dialog .tut-head + .pf-form{margin-top:14px;}
/* Share › QR code: the selects look like every other dashboard select */
.pf-share-pane .field select{width:auto; min-width:220px; max-width:100%; padding:10px 12px; border:1.5px solid var(--border);
  border-radius:10px; font:400 14px 'Barlow',sans-serif; background:var(--white); color:var(--black); outline:none;}
.pf-share-pane .field select:focus{border-color:var(--green);}
/* grid card: "Show on my site" + its state line, the line under the label text (14px box + 8px gap) */
.pf-card-site-wrap{display:flex; flex-direction:column; gap:2px; margin-top:4px;}
.pf-card-site-wrap .pf-card-site{margin-top:0;}
.pf-card-site-wrap .pf-card-note{padding-left:22px;}
/* grid card meta: the plan and the price are one unit (platform-ui.js
   decorateCard), a dot between them */
.pf-card-pp{display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%;}
.pf-card-pp .pf-card-plan{min-width:0;}
.pf-card-pp .pf-card-price{flex-shrink:0;}
.pf-card-plan + .pf-card-price::before{content:'·'; margin-right:6px; color:var(--ink-300); font-weight:400;}
/* Account › Company: the notes under a switch sit under its label text */
#org-card form > .pf-dim{margin:4px 0 0 24px; line-height:1.5;}
#org-card form > .pf-dim + .pf-dim{margin-top:6px;}
#org-contact-note{margin:-8px 0 14px;}   /* under Contact email / phone, the field it explains */
/* Account › Company › Web address / Your site: label, value and buttons on one centre line */
.pf-your-site{align-items:center; flex-wrap:wrap; gap:8px 14px;}
.pf-your-site .account-row-label, .pf-webaddress-row .account-row-label{padding-top:0;}
.pf-your-site .btn, .pf-webaddress-row .btn{white-space:nowrap; line-height:20px;}
/* Account (personal) › Web address claim: the name field is a real field */
.pf-webaddress-claim input{padding:8px 10px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--white); color:var(--black); font:400 13px 'Barlow',sans-serif; outline:none; transition:border-color .15s;}
.pf-webaddress-claim input:focus{border-color:var(--green);}
.pf-webaddress-row:has(.pf-webaddress-claim){align-items:flex-start;}
.pf-webaddress-row:has(.pf-webaddress-claim) .account-row-label{padding-top:10px;}
/* Account › Branding: the logo hint off the form under it */
#brand-card-body > .pf-hint{margin-bottom:14px;}
/* Account › Communities: "groups are optional" is its own note */
.pf-groups-optional{margin:0 0 8px;}
/* Account › Tour requests: day buttons apart, then one 6px step per line */
.pf-tour-days{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px;}
.pf-tour-body{display:flex; flex-direction:column; align-items:flex-start; gap:6px;}
.pf-tour-body > .pf-tour-list{align-self:stretch;}
.pf-tour-total{font-size:15px; font-weight:600; color:var(--black);}
/* Reports: the date-range caption off the tiles */
#reports-body .an-stats{margin-top:8px;}
/* New home › where this listing goes: the site note on its own line under the row */
#wizard-context #wizard-site-note{flex-basis:100%; margin:-4px 0 0;}
/* [comm 2026-11-28] D2: Account › Company › "Your site’s 5%" — one choice
   (5% off for buyers, or the 5% referral commission), its own save; the
   notes under each choice line up with its label text */
.pf-site-five{flex-direction:column; align-items:stretch; gap:6px;}
.pf-site-five .account-row-label{padding-top:0;}
.pf-site-five-choices{display:flex; flex-direction:column; gap:8px; margin:0;}
.pf-site-five .pf-check{margin-top:0;}
.pf-site-five .pf-check input[disabled] + span{color:var(--gray);}
.pf-site-five-sub{margin:-4px 0 0 24px; line-height:1.5;}
.pf-site-five-why{margin:0 0 0 24px; line-height:1.5;}
.pf-site-five-why .btn{margin-left:6px; white-space:nowrap;}
.pf-site-five-rules{font-size:12.5px; margin-left:24px;}
/* [comm 2026-11-28] D9: Account › Web address — confirm the email first */
.pf-email-confirm{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; flex-basis:100%;}
.pf-email-confirm .pf-dim{flex-basis:100%;}
/* [comm 2026-11-28] D8 → [acct 2026-11-28] FOUNDER (review v20 #1): "remove
   the subscription pricing on the account page and instead maybe we need to
   re-add the 4 customer types like the main sales page so someone can look at
   each for their pricing. this can be at bottom of account page." Nothing on
   the Account tab is hidden by account type any more (the old hide-by-type
   rule went with stripe-billing.js applyAudience). The done-for-you cards are
   sized for the dashboard column, as before. services.css loads after this
   file, so these rules are id-scoped. */
#acct-pricing .svc-cards{max-width:none; margin:12px 0 0;}
#acct-pricing .svc-card{padding:22px 20px;}
#acct-pricing .btn.big{padding:13px 22px; font-size:15px;}
#acct-pricing .svc-foot{text-align:left; margin:16px 0 0;}
.dfy-lead{font-size:14.5px; color:var(--black); line-height:1.55; margin:4px 0 0;}
/* [comm 2026-11-28] ux fix: an agent's plan line is a sentence ("Your first listing is free"), not a tier name */
#tier-current-name.tier-current-sentence{font-weight:400;}
.dfy-note{font-size:12.5px; color:var(--gray); margin:8px 0 0;}
/* [acct 2026-11-28] THE PRICING CARD (#acct-pricing): the sales page's four
   rows (onepage.css .aud-*), ported to app.css's tokens. onepage.css can't
   load on the dashboard because its body/.container/.btn rules would restyle
   the app. The card is light like every dashboard card, because no dashboard
   stylesheet has a dark scheme; colours are tokens only, so a later theme
   covers it. */
#acct-pricing{margin-top:24px;}
#acct-pricing [hidden]{display:none !important;}
.acct-pricing-sub{font-size:14px; color:var(--gray); line-height:1.6; margin:-4px 0 16px; max-width:560px;}
.acct-aud-list{display:grid; grid-template-columns:minmax(0,1fr); gap:10px;}
/* [acct 2026-11-28] review LA1: acct-pricing.js keeps a tapped row in place
   itself (as onepage.css .aud-list.is-js); the browser's own scroll anchoring
   would correct the same move a second time */
.acct-aud-list.is-js{overflow-anchor:none;}
.acct-aud{min-width:0; background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md); scroll-margin-top:calc(var(--topbar-h) + 12px); transition:border-color var(--dur-fast) var(--ease-out);}
/* [acct 2026-11-28] review LA-R2-1: the row's title (the summary) is what takes
   keyboard focus, so it needs the header offset too. With it only on the row,
   Shift+Tab up to the row above scrolled that title flush to the top of the
   screen, under the sticky header, and only the edge of its focus ring
   showed (the sales page gets the same from onepage.css html{scroll-padding-top};
   that is not used here, as it would add to the row's own offset).
   In the app wrapper the header is taller by the notch (app.css
   .is-native .ivris-header), so both offsets add it there; env() is 0 on
   the web and the rule is .is-native-gated. */
.acct-aud-sum{scroll-margin-top:calc(var(--topbar-h) + 12px);}
.is-native .acct-aud, .is-native .acct-aud-sum{scroll-margin-top:calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 12px);}
.acct-aud:not([open]):hover{border-color:var(--ivris-green-200);}
.acct-aud[open]{border-color:var(--green); box-shadow:inset 4px 0 0 var(--green);}
.acct-aud-sum{list-style:none; cursor:pointer; user-select:none; -webkit-user-select:none; position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) auto 32px; grid-template-areas:"icon title tag chev" "icon line tag chev"; column-gap:16px; row-gap:2px; align-items:center; padding:16px 18px; border-radius:11px;}
.acct-aud-sum::-webkit-details-marker{display:none;}
.acct-aud-sum::marker{content:'';}
.acct-aud-sum:focus-visible{outline:2px solid var(--focus-ring); outline-offset:2px;}
/* the green bar runs down the summary too, as onepage.css .aud[open] > .aud-sum */
.acct-aud[open] > .acct-aud-sum{background:var(--green-light); border-radius:11px 11px 0 0; box-shadow:inset 4px 0 0 var(--green);}
.acct-aud-icon{grid-area:icon; width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--green-light); color:var(--green);}
.acct-aud[open] .acct-aud-icon{background:var(--white);}
.acct-aud-icon svg{width:20px; height:20px;}
.acct-aud-title{grid-area:title; align-self:end; font-weight:600; font-size:17px; line-height:1.3; color:var(--black);}
.acct-aud-line{grid-area:line; align-self:start; font-size:14px; line-height:1.5; color:var(--gray);}
.acct-aud-price{grid-area:tag; justify-self:end; padding:5px 11px; border-radius:999px; background:var(--green-light); color:var(--black); font-size:12.5px; font-weight:600; line-height:1.35; white-space:nowrap;}
.acct-aud[open] .acct-aud-price{background:var(--white);}
.acct-aud-chev{grid-area:chev; position:relative; width:32px; height:32px; border-radius:50%; border:1.5px solid var(--green); background:var(--white);}
.acct-aud-sum:hover .acct-aud-chev{background:var(--green-light);}
.acct-aud-chev::before{content:''; position:absolute; left:50%; top:50%; width:7px; height:7px; border-right:2px solid var(--green); border-bottom:2px solid var(--green); transform:translate(-50%,-70%) rotate(45deg); transition:transform 200ms var(--ease-out);}
.acct-aud[open] .acct-aud-chev::before{transform:translate(-50%,-30%) rotate(225deg);}
.acct-aud-body{min-width:0; padding:2px 18px 22px;}
.acct-aud-h{font-family:'Barlow Semi Condensed','Barlow',sans-serif; font-weight:700; font-size:20px; line-height:1.25; color:var(--black); margin-top:16px;}
/* 10px, as onepage.css .aud-cta-sub; 12px under a pilot box */
.acct-aud-sub{margin-top:10px; font-size:14.5px; line-height:1.55; color:var(--ink-700); max-width:62ch;}
.acct-pilot + .acct-aud-sub, .acct-pilot-own + .acct-aud-sub{margin-top:12px;}
#acct-pricing .tier-cards{margin-top:16px; grid-template-columns:repeat(auto-fit,minmax(min(228px,100%),1fr));}
.acct-pilot{margin-top:12px; padding:16px 18px; border-radius:var(--radius-md); background:var(--green-light); border:1px solid var(--ivris-green-200); max-width:64ch;}
.acct-pilot-h{font-size:15.5px; font-weight:700; line-height:1.4; color:var(--black);}
.acct-list{list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:8px;}
.acct-list li{position:relative; padding-left:22px; font-size:14px; line-height:1.5; color:var(--ink-700);}
.acct-list li::before{content:'\2713'; position:absolute; left:0; top:0; color:var(--green); font-weight:700;}
/* an org with a pilot line in Plan & billing (platform-ui.js hasPilot) sees a pointer, not the offer */
.acct-pilot-own{display:none; margin-top:12px; font-size:14.5px; line-height:1.55; color:var(--ink-700);}
body.pf-has-pilot #acct-pricing .acct-pilot{display:none !important;}
body.pf-has-pilot #acct-pricing .acct-pilot-own{display:block;}
.acct-cta-row{display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:16px;}
.acct-link{color:var(--black); font-weight:600; text-decoration:underline; text-decoration-color:var(--green); text-decoration-thickness:1.5px; text-underline-offset:4px;}
.acct-link:hover{text-decoration-color:var(--black);}
.acct-book-note{margin-top:8px; font-size:12.5px; color:var(--gray);}
.acct-volume{margin-top:10px; font-size:13.5px; line-height:1.6; color:var(--ink-700); max-width:72ch;}
.acct-volume strong{color:var(--black);}
/* words for screen readers only (the dashboard has no shared visually-hidden class) */
.acct-sr{position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;}
@media (max-width:1023px){ .acct-aud-sum{grid-template-columns:40px minmax(0,1fr) 32px; grid-template-areas:"icon title chev" "icon line chev" "icon tag chev";} .acct-aud-price{justify-self:start; margin-top:4px; white-space:normal;} }
@media (max-width:720px){ #acct-pricing.card{padding:18px 14px;} .acct-aud-sum{grid-template-columns:36px minmax(0,1fr); grid-template-areas:"icon title" "icon line" ". tag"; column-gap:12px; row-gap:4px; align-items:start; padding:14px;} .acct-aud-icon{width:36px; height:36px;} .acct-aud-title{align-self:start; font-size:16px; padding-right:40px;} .acct-aud-line{font-size:13.5px; padding-right:40px;} .acct-aud-chev{position:absolute; top:14px; right:14px; width:30px; height:30px;} .acct-aud-body{padding:2px 12px 18px;} .acct-aud-h{font-size:18px;} .acct-cta-row .btn{width:100%;} }
@media (prefers-reduced-motion:reduce){ .acct-aud, .acct-aud-chev::before{transition:none;} }
@media (max-width:720px){
  #hd-public-wrap{grid-template-columns:1fr;}
}

/* [review 2026-11-28] FOUNDER (review v19 #10): "the carrot in the 7-30-90 day
   tab ... should be closer to the text. this also applies to other boxes like
   it" (Home details, Reports). Every dropdown in the dashboard (this file is
   the dashboard's alone) is as wide as its words, with the same small arrow
   12px after them — the org switch's and the grid filters' arrow — instead of
   the browser's own arrow pinned to the far edge of a full-width box. Their
   own colours, borders and padding stay; a list box ([multiple], [size]) is
   left alone. */
select:not([multiple]):not([size]):not(.org-switch):not(.pf-grid-select){
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6E68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:14px 14px;
  padding-right:34px; width:auto; max-width:100%; text-overflow:ellipsis; cursor:pointer;
}
select:not([multiple]):not([size]):not(.org-switch):not(.pf-grid-select):disabled{cursor:default}
