/*
 * Client portal only, on top of admin.css. Clients come here to do something
 * (pay, decide, get help), so the page leads with that.
 */

.is-portal :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.is-portal .sidebar :focus-visible { outline-color: var(--amber); }
.is-portal .bookings-table tr[data-href] { cursor: pointer; }
.is-portal .bookings-table tr[data-href]:hover td { background: var(--paper); }

.pt-sub { margin-top: 0.3rem; font-size: 0.86rem; color: var(--muted); }
.pt-link { color: var(--green); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.pt-link:hover { text-decoration: underline; }

/* Balances: what's owed gets the most room */
.pt-tiles.is-balance { grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); }
.pt-breakdown { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; }

/* Overview: the work on the left, help and history on the right */
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.pt-column { min-width: 0; }

/* To do, and the shorter lists */
.pt-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 1.4rem; overflow: hidden; }
.pt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--surf); }
.pt-card-head h2 { font-family: var(--f-display); font-size: 1rem; font-weight: 800; }
.pt-card-body { padding: 0.95rem 1.2rem; }
.pt-card-body p { font-size: 0.86rem; }
.pt-rows { list-style: none; margin: 0; padding: 0; }
.pt-rows > li { border-bottom: 1px solid var(--surf); }
.pt-rows > li:last-child { border-bottom: 0; }
.pt-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.2rem; min-width: 0; color: inherit; text-decoration: none; }
a.pt-row:hover { background: var(--paper); }
.pt-row-icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: var(--amber-l); color: #8a5600; font-size: 0.82rem; }
.pt-row.is-alert .pt-row-icon { background: var(--red-l); color: var(--red); }
.pt-row.is-info .pt-row-icon { background: var(--blue-l); color: var(--blue); }
.pt-row-main { flex: 1; min-width: 0; }
.pt-row-main strong { display: block; font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.pt-row-main span { display: block; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.pt-row-side { flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.9rem; font-weight: 600; }
.pt-row-side .pt-status { display: block; width: fit-content; margin: 0.2rem 0 0 auto; font-weight: 500; }
.pt-row-side .pt-interest { font-weight: 600; }
.pt-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; flex-shrink: 0; }
.pt-clear { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.2rem; font-size: 0.9rem; color: var(--muted); }
.pt-clear i { color: var(--green); font-size: 1.05rem; }
.pt-card-foot { padding: 0.7rem 1.2rem; border-top: 1px solid var(--surf); font-size: 0.8rem; color: var(--muted); }
.pt-card-foot a { color: var(--green); }
.pt-card > p.hint { margin: 0 !important; padding: 0.7rem 1.2rem; border-top: 1px solid var(--surf); font-size: 0.8rem; color: var(--muted); }

/* Details that are there when wanted */
.pt-fold { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 0.9rem; }
.pt-fold > summary { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1.2rem; cursor: pointer; list-style: none; border-radius: var(--r); }
.pt-fold > summary::-webkit-details-marker { display: none; }
.pt-fold > summary:hover { background: var(--paper); }
.pt-fold > summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.65rem; color: var(--muted); transition: transform .15s; }
.pt-fold[open] > summary::after { transform: rotate(180deg); }
.pt-fold[open] > summary { border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid var(--surf); }
.pt-fold-body { padding: 1rem 1.2rem; }
.pt-fold-body > .form-card { border: 0; box-shadow: none; padding: 0; margin: 0; }
.pt-fold-body > .form-card > h2 { display: none; }
.pt-fold-group { margin-bottom: 1.4rem; }

/* Comment and send appear once they've picked their stars */
.pt-rate { padding: 0.95rem 1.2rem; }
.pt-rate .portal-stars label { font-size: 1.9rem; }
@supports selector(:has(*)) {
    .pt-rate:not(:has(input:checked)) .pt-rate-more { display: none; }
}

/* Tickets: one list down a phone rather than a sideways board */
.is-portal .tk-col { min-height: 9rem; }
.pt-report { scroll-margin-top: 5rem; }

/* Phones: the four places clients go most, always in reach */
.pt-tabbar { display: none; }

@media (max-width: 1100px) {
    .pt-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pt-tiles.is-balance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pt-tiles.is-balance > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .is-portal .main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
    .pt-tabbar {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -18px rgba(13,31,18,0.45);
    }
    .pt-tabbar a, .pt-tabbar button {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
        min-height: 58px; padding: 0.35rem 0.1rem; border: 0; background: none; color: var(--muted);
        font: inherit; font-size: 0.66rem; font-weight: 600; text-decoration: none; cursor: pointer;
    }
    .pt-tabbar i { font-size: 1.05rem; }
    .pt-tabbar .is-active { color: var(--green); }
    .pt-tabbar .is-active::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
    .pt-tabbar-count { position: absolute; top: 0.35rem; left: calc(50% + 0.35rem); min-width: 1.15rem; padding: 0 0.25rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.6rem; line-height: 1.15rem; text-align: center; }
}

@media (max-width: 720px) {
    .pt-tiles.is-balance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-tiles.is-balance > :last-child { grid-column: 1 / -1; }
    .pt-row { flex-wrap: wrap; padding: 0.8rem 1rem; }
    .pt-row-main { flex-basis: calc(100% - 10rem); }
    .pt-row-icon + .pt-row-main { flex-basis: calc(100% - 3rem); }
    .pt-row > .btn, .pt-row-actions { margin-left: calc(34px + 0.85rem); min-height: 38px; }
    .pt-row-actions { justify-content: flex-start; }
    .pt-row-actions.is-plain { width: 100%; margin-left: 0; }
    .pt-row-actions.is-plain .btn, .pt-row-actions.is-plain form { flex: 1; }
    .pt-row-actions.is-plain form .btn { width: 100%; }
    .pt-row-actions.is-plain .btn { justify-content: center; min-height: 42px; }
    .is-portal .page-header .btn { min-height: 42px; }
    .pt-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .pt-actions .btn { justify-content: center; }
    .pt-card-head, .pt-card-body, .pt-rate, .pt-fold > summary, .pt-fold-body { padding-left: 1rem; padding-right: 1rem; }
    .is-portal .tk-board { grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
    .is-portal .tk-col { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) { .pt-fold > summary::after { transition: none; } }

/* ── Support plan page (and the plan card on the overview and account pages) ── */
.sp-plan { position: relative; }
.sp-plan-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.sp-plan-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--green-l); color: var(--green); font-size: 1.05rem; }
.sp-plan.is-suspended .sp-plan-icon { background: var(--red-l); color: var(--red); }
.sp-plan.is-upcoming .sp-plan-icon { background: var(--blue-l); color: var(--blue); }
.sp-plan-title { flex: 1; min-width: 0; }
.sp-plan-title h2 { margin: 0; }
.sp-plan-title p { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--muted); }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 0 0 1rem; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-s); overflow: hidden; }
.sp-facts > div { background: var(--paper); padding: 0.65rem 0.9rem; }
.sp-facts dt { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sp-facts dd { margin: 0.2rem 0 0; font-size: 0.88rem; font-weight: 600; }
.sp-subhead { font-family: var(--f-display); font-size: 0.85rem; font-weight: 800; margin: 0 0 0.55rem; }
.sp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; align-content: start; }
.sp-checks li { position: relative; padding-left: 1.7rem; font-size: 0.88rem; line-height: 1.4; }
.sp-checks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 0.1rem; width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 50%; background: var(--green-l); color: var(--green); font-size: 0.6rem; }
.sp-checks li strong { font-weight: 600; }
.sp-checks li span { display: block; white-space: pre-line; font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
.sp-plan .sp-checks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem 1.4rem; }
.sp-note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.65rem 0.85rem; border-radius: var(--r-s); background: var(--amber-l); color: #6b4500; font-size: 0.85rem; }
.sp-note i { margin-top: 0.2rem; }
.sp-cancel { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--surf); }
.sp-cancel summary { cursor: pointer; width: fit-content; font-size: 0.82rem; color: var(--muted); }
.sp-cancel summary:hover { color: var(--red); }
.sp-cancel form { margin-top: 0.7rem; }
.sp-agree { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0 0 0.8rem; font-size: 0.8rem; font-weight: 400; line-height: 1.45; color: var(--muted); cursor: pointer; }
.sp-agree input { margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--green); }

/* Hours meter inside a ledger cell */
.ledger-cell .sp-meter { display: block; height: 6px; margin: 0.55rem 0 0.15rem; border-radius: 3px; background: var(--surf); overflow: hidden; }
.sp-meter i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.ledger-cell.is-warn .sp-meter i { background: #c27f00; }
.ledger-cell.is-alert .sp-meter i { background: var(--red); }

.sp-empty { display: flex; gap: 1rem; align-items: flex-start; }
.sp-empty h2 { margin: 0 0 0.3rem; }
.sp-empty p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.9rem; max-width: 60ch; }

/* Plans to choose from */
.sp-plans { margin: 2rem 0 1.4rem; scroll-margin-top: 1rem; }
.sp-plans-head { margin-bottom: 1rem; }
.sp-plans-head h2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; }
.sp-plans-head p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.sp-tiers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.sp-tier { position: relative; display: flex; flex-direction: column; margin: 0; padding: 1.4rem 1.3rem 1.2rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.sp-tier:hover { border-color: var(--rule-2); box-shadow: 0 1px 0 rgba(13,31,18,0.04), 0 16px 36px -20px rgba(13,31,18,0.45); }
.sp-tier::before { content: ''; position: absolute; left: 1.3rem; top: 0; width: 34px; height: 3px; background: var(--amber); border-radius: 0 0 2px 2px; }
.sp-tier.is-current { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.sp-tier.is-current::before { background: var(--green); }
.sp-ribbon { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-tier h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 800; padding-right: 6rem; }
.sp-term { margin: 0.15rem 0 0.9rem; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sp-price { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; margin: 0; }
.sp-price strong { font-family: var(--f-display); font-size: clamp(1.3rem, 4.5vw, 1.55rem); font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sp-price span { font-size: 0.85rem; color: var(--muted); }
.sp-price-note { margin: 0.2rem 0 1.1rem; font-size: 0.8rem; color: var(--green); font-weight: 600; }
.sp-tier .sp-checks { flex: 1; margin-bottom: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--surf); }
.sp-tier-foot { margin-top: auto; }
.sp-tier-foot .btn-save { width: 100%; justify-content: center; }
.sp-cycle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 0 0.8rem; padding: 3px; border: 0; border-radius: 999px; background: var(--surf); }
.sp-cycle label { position: relative; display: block; padding: 0.45rem 0.5rem; border-radius: 999px; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.sp-cycle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sp-cycle label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13,31,18,0.15); }
.sp-cycle label:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 1px; }
.sp-secure { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; font-size: 0.78rem; color: var(--muted); }
.sp-secure i { margin-top: 0.2rem; color: var(--green); }

/* FAQ */
.sp-faq { margin: 2rem 0 1rem; }
.sp-faq h2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; margin-bottom: 0.8rem; }
.sp-faq details { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 0.5rem; }
.sp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; color: var(--muted); transition: transform .2s var(--ease); }
.sp-faq details[open] summary::after { transform: rotate(180deg); }
.sp-faq details p { margin: 0; padding: 0 1.1rem 1rem; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.sp-faq details a { color: var(--green); font-weight: 600; }

@media (max-width: 600px) {
    .sp-plan-head { align-items: flex-start; gap: 0.6rem; }
    .sp-plan-head .sp-plan-icon { display: none; }
    .sp-plan-title h2 { font-size: 1rem; }
    .sp-empty { flex-direction: column; }
    .sp-tier h3 { padding-right: 0; }
    .sp-ribbon { position: static; width: fit-content; margin-bottom: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { .sp-tier, .sp-faq summary::after { transition: none; } }

/* Account: the company's portal users */
.pt-team { list-style: none; margin: 0; padding: 0; }
.pt-team li { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--surf); flex-wrap: wrap; }
.pt-team li:last-child { border-bottom: 0; }
.pt-team-who { flex: 1; min-width: 12rem; }
.pt-team-who strong { display: block; font-size: 0.9rem; }
.pt-team-who strong small { font-weight: 400; color: var(--muted); }
.pt-team-who > span { display: block; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.av-portal-hours { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem 1.2rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }

/* Account: who you are, then your company and team beside your security */
.ac-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.3rem 1rem; margin-bottom: 1.3rem; padding: 1.3rem 1.5rem; color: #fff; border-radius: 16px;
    background: radial-gradient(120% 140% at 100% 0%, rgba(255,180,0,0.18), transparent 55%), repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 56px), linear-gradient(135deg, var(--navy), var(--green-d));
    box-shadow: 0 18px 40px -26px rgba(10,22,40,0.7); }
.ac-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--amber); color: var(--navy); font-family: var(--f-display); font-size: 1.45rem; font-weight: 800; }
.ac-who { min-width: 0; }
.ac-who h1 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.ac-who p { margin-top: 0.1rem; font-size: 0.88rem; opacity: 0.78; overflow-wrap: anywhere; }
.ac-org { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; text-align: right; }
.ac-org small { font-size: 0.78rem; opacity: 0.78; }
.ac-role { grid-column: 2 / -1; font-size: 0.8rem; opacity: 0.68; }

.ac-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 1.3rem; align-items: start; }
.ac-layout.is-single { grid-template-columns: minmax(0, 640px); }
.ac-hero.is-single { max-width: 640px; }
.ac-layout .pt-card { margin-bottom: 1.3rem; }
.ac-side { position: sticky; top: calc(var(--alert-h, 0px) + 1rem); }
.pt-card-head small { display: block; font-size: 0.76rem; font-weight: 400; color: var(--muted); }
.ac-title { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.ac-logo { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.ac-action { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.65rem; border: 1px solid var(--rule); border-radius: var(--r-s); color: var(--green); font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.ac-action:hover { border-color: var(--green); background: var(--green-l); }

.ac-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.95rem 1.4rem; padding: 1rem 1.2rem 1.15rem; }
.ac-facts .is-wide { grid-column: 1 / -1; }
.ac-facts dt { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ac-facts dd { margin-top: 0.12rem; font-size: 0.92rem; white-space: pre-line; overflow-wrap: anywhere; }
.ac-facts dd.is-empty { color: var(--muted); font-style: italic; }

.ac-team { list-style: none; margin: 0; padding: 0; }
.ac-team li { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.2rem; border-bottom: 1px solid var(--surf); }
.ac-team li:last-child { border-bottom: 0; }
.ac-team li.is-blocked { opacity: 0.6; }
.ac-member { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--green-l); color: var(--green); font-weight: 700; font-size: 0.85rem; }
.ac-member-who { flex: 1; min-width: 0; }
.ac-member-who strong { display: block; font-size: 0.88rem; font-weight: 600; }
.ac-member-who strong small { font-weight: 400; color: var(--muted); }
.ac-member-who > span { display: block; font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ac-member-tags { display: flex; gap: 0.3rem; flex-shrink: 0; }

.ac-setting { display: flex; gap: 0.7rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--surf); }
.ac-setting strong { font-size: 0.9rem; }
.ac-setting p { margin-top: 0.15rem; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.ac-setting-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--green-l); color: var(--green); font-size: 0.88rem; }

.ac-password summary { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.2rem; cursor: pointer; list-style: none; transition: background .15s; }
.ac-password summary::-webkit-details-marker { display: none; }
.ac-password summary:hover { background: var(--paper); }
.ac-password summary > span:nth-child(2) { flex: 1; min-width: 0; }
.ac-password summary strong { display: block; font-size: 0.9rem; }
.ac-password summary small { display: block; font-size: 0.78rem; color: var(--muted); }
.ac-chevron { color: var(--muted); font-size: 0.75rem; transition: transform .2s var(--ease); }
.ac-password[open] .ac-chevron { transform: rotate(180deg); }
.ac-password form { display: grid; gap: 0.7rem; padding: 0.2rem 1.2rem 1.1rem; }
.ac-password input[aria-invalid="true"] { border-color: var(--red); }
.ac-error { margin-top: 0.25rem; font-size: 0.78rem; color: var(--red); }
.ac-rules { list-style: none; margin: 0; padding: 0; font-size: 0.78rem; color: var(--muted); }
.ac-rules li { display: flex; align-items: center; gap: 0.4rem; padding: 0.08rem 0; transition: color .15s; }
.ac-rules i { font-size: 0.4rem; }
.ac-rules li.is-met { color: var(--green); font-weight: 600; }
.ac-rules li.is-met i::before { content: '\f00c'; }
.ac-rules li.is-met i { font-size: 0.68rem; }
.ac-save { justify-content: center; width: 100%; }

.ac-noplan { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.85rem 1.2rem; }
.ac-noplan p { flex: 1; min-width: 12rem; font-size: 0.9rem; }

@media (max-width: 1080px) {
    .ac-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ac-layout.is-single { grid-template-columns: minmax(0, 640px); }
    .ac-side { position: static; }
}
@media (max-width: 560px) {
    .ac-hero { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
    .ac-org { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; margin-top: 0.4rem; }
    .ac-role { grid-column: 1 / -1; margin-top: 0.2rem; }
    .ac-facts { grid-template-columns: minmax(0, 1fr); }
    .ac-team li { flex-wrap: wrap; }
    .ac-member-tags { margin-left: calc(34px + 0.75rem); }
}

/* Phones: a row that's a link shows a chevron, not a second line holding a button.
   Rows with their own buttons (View, Pay) keep them, sized for thumbs. */
@media (max-width: 720px) {
    a.pt-row { flex-wrap: nowrap; }
    a.pt-row .pt-row-main { flex-basis: auto; }
    a.pt-row > .btn { margin-left: 0; min-height: 0; padding: 0; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; flex-shrink: 0;
        border: 0; background: none; color: var(--muted); font-size: 0; }
    a.pt-row > .btn i { font-size: 0.85rem; }
    a.pt-row.is-alert > .btn { color: var(--red); }
    a.pt-row:active { background: var(--paper); }
    .pt-row-actions.is-plain { width: auto; margin-left: auto; }
    .pt-row-actions.is-plain .btn { min-height: 38px; padding: 0.45rem 0.8rem; }
    .pt-row:has(> .pt-row-actions.is-plain) .pt-row-main { flex-basis: calc(100% - 9rem); }
}
