/* WheelPass RC19 — launch/marketing UI convergence */
:root{
  --wp19-navy:#10233f;
  --wp19-navy-2:#17395d;
  --wp19-green:#0aa36c;
  --wp19-green-soft:#e8f8f2;
  --wp19-amber:#d88916;
  --wp19-amber-soft:#fff5e5;
  --wp19-red:#d64545;
  --wp19-red-soft:#fff0f0;
  --wp19-line:#dce5ed;
  --wp19-muted:#64748b;
  --wp19-gap:14px;
  --wp19-card-pad:18px;
}

/* Canonical page rhythm. */
.wrap{display:flex;flex-direction:column;gap:var(--wp19-gap)}
.wrap>.card,.wrap>.portal-card,.wrap>.hero-card,.wrap>.hire-context-card,.wrap>.notice,.wrap>.handover-state{margin-top:0!important;margin-bottom:0!important}
.card,.portal-card{padding:var(--wp19-card-pad)}
.portal-card-head{padding:15px 18px}
.portal-card-body{padding:18px}
.card-title{margin-bottom:14px}
.card-title+*{margin-top:0}
.condition-row+.condition-row,.review-check-row+.review-check-row{margin-top:12px}
.condition-title,.equipment-row-head{margin-bottom:10px}
.condition-row>.choice-grid,.equipment-check-row>.choice-grid{margin-top:9px}
.form-section .card{padding:20px}
.form-section .card-title{margin-bottom:18px}

/* Standard WheelPass page hero. Dashboard keeps its greeting + action hero; account uses membership hero. */
body:not([data-page="home"]):not([data-page="account"]) .page-head.rc19-page-hero,
body:not([data-page="home"]):not([data-page="account"]) .page-head[data-rc19-hero]{
  position:relative;overflow:hidden;background:var(--wp19-navy);color:#fff;border-radius:24px;
  padding:22px 24px;box-shadow:0 12px 28px rgba(16,35,63,.09);margin-bottom:2px
}
.page-head.rc19-page-hero:after,.page-head[data-rc19-hero]:after{
  content:"";position:absolute;right:-28px;top:-54px;width:154px;height:154px;border:28px solid rgba(10,163,108,.18);border-radius:50%;pointer-events:none
}
.page-head.rc19-page-hero h1,.page-head[data-rc19-hero] h1{color:#fff;margin:0;position:relative;z-index:1}
.page-head.rc19-page-hero .muted,.page-head[data-rc19-hero] .muted{color:#d6e0ec}
.page-head.rc19-page-hero .eyebrow,.page-head[data-rc19-hero] .eyebrow{color:#73e4bc}
.page-head.rc19-page-hero .btn,.page-head[data-rc19-hero] .btn,.page-head.rc19-page-hero .chip,.page-head[data-rc19-hero] .chip{position:relative;z-index:1}
.rc19-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;position:relative;z-index:1}

/* Header identity + plan badge. */
.appbar-inner{gap:12px}
.rc19-header-account{margin-left:auto;display:flex;align-items:center;gap:9px;min-width:0}
.rc19-user-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;font-weight:750;color:#10233f}
.rc19-plan-badge{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:999px;background:#e8f8f2;color:#08784f;border:1px solid #bfe8d7;font-size:.72rem;font-weight:800}
.rc19-header-logout{border:1px solid var(--wp19-line);border-radius:10px;background:#fff;padding:7px 10px;font:inherit;font-size:.76rem;font-weight:750;color:#10233f;cursor:pointer}
.rc19-header-back{display:inline-grid;place-items:center;width:38px;height:38px;border:0;background:transparent;color:#10233f;cursor:pointer;border-radius:10px}
.rc19-header-back:hover{background:#f1f5f9}
.rc19-header-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Status semantics. */
.status-pill.status-overdue,.chip.overdue,.rc19-overdue{background:var(--wp19-red-soft)!important;color:#a72828!important;border-color:#f1b7b7!important}
.status-pill.status-active,.chip.active,.rc19-active{background:var(--wp19-green-soft)!important;color:#08784f!important;border-color:#b7e4d2!important}
.status-pill.status-waiting,.rc19-waiting,.notice.rc19-waiting{background:var(--wp19-amber-soft)!important;color:#86510a!important;border-color:#efc781!important}
.notice.rc19-waiting strong,.notice.rc19-waiting div{color:inherit!important}

/* Dashboard hero cleanup. */
body[data-page="home"] .page-head .eyebrow{display:none!important}
body[data-page="home"] .page-head .muted{display:none!important}
body[data-page="home"] .hero-card{padding:22px 24px}
body[data-page="home"] .hero-card .eyebrow{display:none!important}
body[data-page="home"] .hero-card>.muted{display:none!important}
body[data-page="home"] .hero-card .row.spread{gap:14px;align-items:center;margin-bottom:14px}
body[data-page="home"] .hero-card .btn.block{margin-top:0!important}

/* Hire context: no credit pill on an individual hire; cleaner internal spacing. */
.hire-context-card{padding:18px 20px}
.hire-context-top{margin-bottom:16px}
.hire-context-grid{row-gap:14px;column-gap:18px}
.hire-context-status{margin-top:16px;padding-top:14px}
body[data-page="hires"] .hire-context-card>.hire-context-top .credit-pill{display:none!important}

/* Account hierarchy. */
body[data-page="account"]>.wrap>.page-head,body[data-page="account"] .wrap>.page-head{display:none!important}
body[data-page="account"] .hero-card{padding:24px}
body[data-page="account"] .hero-card .eyebrow{display:none!important}
body[data-page="account"] .hero-card .metric{font-size:1.15rem!important;line-height:1.35!important;font-weight:750!important;margin-top:8px!important}
body[data-page="account"] .rc19-membership-features{margin-top:12px;display:flex;gap:7px;flex-wrap:wrap}
.rc19-credit-balance{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.rc19-credit-balance strong{font-size:2rem;line-height:1;color:#10233f}
.rc19-buy-credits-link{margin-top:12px}

/* Better inspection/form hierarchy. */
.condition-title>strong,.equipment-row-head strong{display:block;margin-bottom:2px}
.condition-new-choice,.equipment-status-under{margin-top:10px!important}
.issue-entry-head{margin-bottom:14px!important}
.issue-entry-head strong{font-size:.92rem!important}
.issue-entry>label:first-of-type{display:block;margin-top:8px}
.issue-entry textarea{margin-top:6px}
.form-section .card-title>.chip{display:none!important}
.rc19-existing-add{margin:10px 0 2px}

/* Touch-friendly stepped sliders while underlying select stays authoritative. */
.rc19-step-select{margin-top:8px}
.rc19-step-select-track{position:relative;display:grid;grid-template-columns:repeat(var(--rc19-steps),1fr);gap:6px}
.rc19-step-select-track:before{content:"";position:absolute;left:4%;right:4%;top:17px;height:3px;background:#dbe4ec;border-radius:4px;z-index:0}
.rc19-step-option{position:relative;z-index:1;border:0;background:transparent;padding:0 2px 2px;min-width:0;cursor:pointer;color:#64748b;font:inherit;font-size:.72rem;font-weight:700;text-align:center}
.rc19-step-option:before{content:"";display:block;width:18px;height:18px;margin:9px auto 7px;border-radius:50%;background:#fff;border:3px solid #b8c6d4;box-shadow:0 0 0 3px #fff}
.rc19-step-option.is-selected{color:#08784f}
.rc19-step-option.is-selected:before{background:#0aa36c;border-color:#0aa36c}
select.rc19-select-source{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}

/* Canonical waiting card. */
.waiting-stage{max-width:720px;margin:18px auto;background:#fff;border:1px solid var(--wp19-line);border-radius:20px;padding:26px;text-align:center;box-shadow:0 10px 26px rgba(16,35,63,.06)}
.waiting-stage .waiting-spinner{margin:0 auto 16px}
.waiting-stage h1{font-size:1.35rem;line-height:1.25;margin:6px auto 10px;max-width:580px}
.waiting-stage .notice{margin-top:18px;text-align:left}
.identity-confirm-card>p{font-size:1rem!important;line-height:1.5;color:#10233f!important;font-weight:720;margin:2px 0 16px!important}

/* Signing cleanup. */
.renter-sign-acks{margin-top:0}
.renter-sign-acks>h3{display:none!important}
.renter-sign-acks .checkline{margin-bottom:10px}
.sign-summary-section+.sign-summary-section{margin-top:16px}

/* Report header compaction. */
.rc19-report-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.rc19-report-header-actions .btn{margin:0!important}
.report-actions-top.rc19-empty-actions{display:none!important}

/* Support guide flow. */
.rc19-guide-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;padding:4px 0}
.rc19-guide-step{position:relative;border:1px solid var(--wp19-line);border-radius:16px;background:#fff;padding:16px;min-height:145px}
.rc19-guide-step:not(:last-child):after{content:"›";position:absolute;right:-13px;top:50%;transform:translateY(-50%);width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#0aa36c;color:#fff;font-weight:900;z-index:3}
.rc19-guide-number{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e8f8f2;color:#08784f;font-weight:900;margin-bottom:11px}
.rc19-guide-step h3{margin:0 0 6px;font-size:.96rem}
.rc19-guide-step p{margin:0;color:#64748b;font-size:.8rem;line-height:1.45}
.rc19-guide-card{padding:20px!important}

/* Shared SVG destructive controls. */
.rc19-icon-button{display:inline-grid!important;place-items:center!important;width:34px!important;height:34px!important;padding:0!important;border-radius:10px!important}
.rc19-icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Public launch polish. */
.public-footer .brand-wheel,.public-footer .brand-pass,.public-footer-brand{color:#fff!important}
.public-footer .brandmark{filter:brightness(0) invert(1)}
.public-footer .footer-links{gap:16px!important;display:flex!important;flex-wrap:wrap!important}
.public-utility-hero,.support-hero{border-radius:24px}

/* All mobile fields remain >=16px to stop focus auto-zoom without disabling pinch zoom. */
@media(max-width:760px){
  input,select,textarea{font-size:16px!important}
  .wrap{gap:12px}
  .card,.portal-card,.form-section .card{padding:16px}
  .portal-card-head,.portal-card-body{padding:16px}
  .rc19-header-account{gap:6px}
  .rc19-user-name{max-width:88px;font-size:.76rem}
  .rc19-plan-badge{padding:3px 7px;font-size:.66rem}
  .rc19-header-logout{padding:7px 8px;font-size:.7rem}
  .public-header nav{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important}
  .public-header nav .btn.secondary{display:inline-flex!important}
  .rc19-guide-flow{grid-template-columns:1fr}
  .rc19-guide-step{min-height:0;padding-left:58px}
  .rc19-guide-number{position:absolute;left:14px;top:14px}
  .rc19-guide-step:not(:last-child):after{content:"↓";left:21px;right:auto;top:auto;bottom:-20px;transform:none}
  body:not([data-page="home"]):not([data-page="account"]) .page-head.rc19-page-hero,
  body:not([data-page="home"]):not([data-page="account"]) .page-head[data-rc19-hero]{padding:19px 18px;border-radius:20px}
}
