/* FairWatt Permits: landing, account and job pages (on top of proposal.css and planset.css). */
.permits .linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 0; }
.pm-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.pm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-row h1 { margin: 0; }
.pm-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .pm-form { grid-template-columns: 1fr 1fr; } }
.pm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.pm-files { display: grid; gap: 14px; }
.pm-files .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pm-logo { height: 48px; width: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }
.pm-tabs { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; }
.pm-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; }
.pm-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pm-planes { width: 100%; margin-top: 10px; } .pm-planes input { width: 100%; min-height: 40px; }
.pm-combos { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pm-combos legend { font-weight: 700; margin-bottom: 6px; }
.pm-combo { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; cursor: pointer; font-weight: 400 !important; }
.pm-combo input { margin-top: 4px; width: 18px; height: 18px; min-height: 0; flex: none; }
.pm-combo small { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.pm-combo:has(input:checked) { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(14, 124, 102, .18); }
.pm-roof { max-height: 520px; overflow: auto; border-radius: 12px; border: 1px solid var(--line); background: #eef2f1; }
.pm-roof svg { display: block; }
.pm-roof polygon { cursor: pointer; }
.pm-roof .pn { fill: rgba(14, 124, 102, .72); stroke: #fff; stroke-width: .5; }
.pm-roof .pg { fill: rgba(255, 255, 255, .18); stroke: rgba(255, 255, 255, .7); stroke-width: .4; }
.pm-verify { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .pm-verify input { min-height: 36px; min-width: 180px; }
.pm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pm-kpis a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); background: var(--bg); border-radius: 12px; padding: 14px; }
.pm-kpis b { font-size: 26px; } .pm-kpis span { font-size: 13px; color: var(--dim); }
.pm-cross { text-align: center; margin: 18px 0 28px; } .pm-cross a { color: var(--dim); }
.pm-foot { padding-top: 6px; padding-bottom: 28px; }
.status.pm-st-awaiting-payment, .status.pm-st-payment-pending { background: #fdecc8; }
.status.pm-st-survey { background: #fdecc8; } .status.pm-st-generate, .status.pm-st-review { background: #e8eefb; }
.status.pm-st-adoption { background: #efe3fb; } .status.pm-st-released, .status.pm-st-filed { background: #d8f3e3; color: #135c39; } .status.pm-st-approved { background: #0E7C66; color: #fff; }
.pm-receipt dl { margin-bottom: 12px; }
/* landing */
.pm-hero { padding: 42px 0 18px; max-width: 820px; }
.pm-hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 6px 0 12px; letter-spacing: -.01em; }
.pm-eyebrow { color: var(--amber); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin: 0; }
.pm-sub { font-size: 18px; color: var(--dim); max-width: 720px; }
.pm-hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.pm-grid { display: grid; grid-template-columns: 1fr; gap: 6px 22px; }
@media (min-width: 760px) { .pm-grid { grid-template-columns: 1fr 1fr; } }
.pm-grid h3 { margin: 10px 0 4px; font-size: 16px; } .pm-grid ul { margin: 0; padding-left: 18px; } .pm-grid li { margin: 3px 0; }
.pm-tiers { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 10px; }
@media (min-width: 760px) { .pm-tiers { grid-template-columns: 1fr 1fr; } }
.pm-tier { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; display: flex; flex-direction: column; }
.pm-tier-main { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(14, 124, 102, .15); }
.pm-tier h3 { margin: 0; } .pm-price { font-size: 34px; font-weight: 800; margin: 6px 0; } .pm-price small { font-size: 14px; color: var(--dim); font-weight: 600; }
.pm-tier ul { padding-left: 18px; flex: 1; } .pm-tier li { margin: 4px 0; font-size: 14.5px; }
.pm-steps li { margin: 6px 0; }
.pm-faq { border-top: 1px solid var(--line); padding: 10px 0; } .pm-faq summary { font-weight: 700; cursor: pointer; min-height: 32px; } .pm-faq p { margin: 6px 0 0; color: var(--dim); }
.pm-cta { text-align: center; }

/* Draft Horse chrome (2026-11-13): navy bar, white logo, red accent. */
.p-top.dh-top { background: #122B4D; border-bottom: 3px solid #C2402F; }
.dh-top .brand { gap: 14px; }
.dh-top .dh-logo { height: 40px; width: auto; display: block; }
.dh-top .brand small, .dh-top .st-nav a, .dh-top .st-nav .linkish { color: #fff; }
.dh-top .st-nav a:hover, .dh-top .st-nav .linkish:hover { color: #F3C9C2; }
.dh-top .st-nav a.btn-sm { background: #C2402F; color: #fff; border-color: #C2402F; }
.dh-entry .dh-found input { border-color: #C2402F; background: #FFF7F5; }

/* Order status (Draft Horse). */
.dh-status { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #E8EEF6; color: #122B4D; }
.dh-status.dh-st-revision_requested, .dh-status.dh-st-awaiting_payment { background: #FBE7E3; color: #8E2A1D; }
.dh-status.dh-st-released, .dh-status.dh-st-delivered, .dh-status.dh-st-revised { background: #DDF1E4; color: #135C39; }
.dh-timeline { list-style: none; padding: 0; margin: 18px 0; border-left: 3px solid #D9DEE6; }
.dh-timeline li { position: relative; padding: 0 0 16px 18px; color: #6B7686; }
.dh-timeline li::before { content: ""; position: absolute; left: -9px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #D9DEE6; }
.dh-timeline li.done { color: #14213D; } .dh-timeline li.done::before { background: #122B4D; border-color: #122B4D; }
.dh-timeline li.now { color: #14213D; } .dh-timeline li.now::before { background: #C2402F; border-color: #C2402F; }
/* Site requests queue (admin, 2026-11-15) */
.status.st-req-new { background: #C2402F; color: #fff; } .status.st-req-replied, .status.st-req-quoted { background: #fdecc8; }
.status.st-req-won { background: #d8f3e3; color: #135c39; } .status.st-req-lost, .status.st-req-spam, .status.st-req-test { background: #eceff3; color: #56698A; }

/* Draft Horse equipment picker: module, inverter, racking chosen separately */
.dh-pick .grid3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.dh-pick .grid3 label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.dh-pick select { width: 100%; min-width: 0; }
.pm-form .dh-pick label.pm-check { display: flex; flex-direction: row; gap: 8px; align-items: center; font-weight: 400; margin-top: 8px; }
.dh-pick .pm-check input { width: 18px; height: 18px; min-height: 0; flex: none; }
.dh-pick select option:disabled { color: #9aa3ad; }
