/*
 * StrongerAccess design kit (BH prod #472).
 *
 * Every value here is taken from the SOREGON Figma file, section
 * "100126 - Marketplace > Clients" (node 19160:79020). Do not eyeball new
 * values: read them from Figma and add them as tokens.
 *
 * Figma draws a border INSIDE the box, so it takes no layout space. CSS
 * borders do. Wherever a box has a border, its padding here is the Figma
 * padding minus the border width (24 becomes 23, 12 becomes 11, and so on).
 *
 * Screens are built from the Blade components in
 * resources/views/components/access/. Screens do not add their own colours,
 * font sizes or radii.
 */

.sa {
    /* colour */
    --sa-primary: #535BFF;
    --sa-pin-ehr: #F97316;
    --sa-pin-other: #1E3A8A;
    --sa-pin-verified: #166534;
    --sa-primary-hover: #4147CC;
    --sa-primary-tint: #EEECFF;
    --sa-primary-tint-soft: #F9F8FF;
    --sa-primary-border: #AEB2FF;
    --sa-teal: #00AC97;
    --sa-pink: #DA3F8F;
    --sa-yellow: #EFAF00;
    --sa-amber: #FFBB00;
    --sa-sky: #50C5FF;
    --sa-blue: #006FFF;
    --sa-danger: #C20003;
    --sa-alert-dot: #FF0000;
    --sa-ink: #1F2A3D;
    --sa-text: #6D7584;
    --sa-muted: #A3AABE;
    --sa-border: #EAEBF5;
    --sa-divider: #E4E5F0;
    --sa-bg: #F5F6FA;
    --sa-surface: #FFFFFF;
    --sa-surface-hidden: #F2F2F2;

    /* shape */
    --sa-radius-sm: 3px;
    --sa-radius: 5px;
    --sa-radius-md: 8px;
    --sa-radius-lg: 10px;
    --sa-radius-pill: 50px;
    --sa-shadow-chrome: 0 0 6px rgba(0, 0, 0, 0.12);
    --sa-shadow-pop: 0 4px 4px rgba(0, 0, 0, 0.25);

    /* layout */
    --sa-sidebar-width: 253px;
    --sa-header-height: 72px;

    margin: 0;
    background: var(--sa-bg);
    color: var(--sa-text);
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 19px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.sa *,
.sa *::before,
.sa *::after {
    box-sizing: border-box;
}

.sa a {
    color: var(--sa-primary);
    text-decoration: none;
}

.sa a:hover {
    color: var(--sa-primary-hover);
}

.sa [x-cloak] {
    display: none !important;
}

/* Native fieldset/legend carry no chrome; the kit's labels and stacks do the grouping. */
.sa fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sa legend { padding: 0; float: left; width: 100%; }
.sa legend + * { clear: both; }

/* ---------------------------------------------------------------- type */

.sa-h1 { margin: 0; font-size: 24px; line-height: 28px; font-weight: 400; color: var(--sa-ink); }
.sa-h2 { margin: 0; font-size: 20px; line-height: 23px; font-weight: 400; color: var(--sa-ink); }
.sa-h2--strong { font-weight: 600; }
.sa-h3 { margin: 0; font-size: 18px; line-height: 21px; font-weight: 400; color: var(--sa-ink); }
.sa-body { margin: 0; font-size: 16px; line-height: 19px; color: var(--sa-text); }
.sa-small { margin: 0; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-tiny { margin: 0; font-size: 12px; line-height: 14px; color: var(--sa-text); }
.sa-ink { color: var(--sa-ink); }
.sa-muted { color: var(--sa-muted); }
.sa-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sa-strong { font-weight: 700; color: var(--sa-ink); }
.sa-section-label { margin: 0; font-size: 16px; line-height: 19px; font-weight: 700; color: var(--sa-teal); }

.sa-stack { display: flex; flex-direction: column; }
.sa-row { display: flex; align-items: center; }
.sa-row--wrap { flex-wrap: wrap; }
.sa-text-anywhere { overflow-wrap: anywhere; }
.sa-gap-4 { gap: 4px; } .sa-gap-8 { gap: 8px; } .sa-gap-12 { gap: 12px; } .sa-gap-16 { gap: 16px; }
.sa-gap-24 { gap: 24px; } .sa-gap-32 { gap: 32px; }
.sa-space-8 { flex: none; height: 8px; }
.sa-grow { flex: 1 1 auto; min-width: 0; }
/* a Figma line has no height, so the rule must not push what follows down by its 1px */
.sa-divider { border: 0; border-top: 1px solid var(--sa-border); margin: 0 0 -1px; }

/* ---------------------------------------------------------------- icons */

.sa-icon {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    flex: none;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: var(--sa-muted);
    user-select: none;
}

.sa-icon--filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.sa-icon--16 { font-size: 16px; } .sa-icon--20 { font-size: 20px; } .sa-icon--32 { font-size: 32px; } .sa-icon--64 { font-size: 64px; }

/* icon chip: the tinted square behind a section or row icon */
.sa-chip { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: var(--sa-radius-md); background: var(--sa-primary-tint); }
.sa-chip .sa-icon { font-size: 20px; color: var(--sa-primary); }
.sa-chip--lg { width: 64px; height: 64px; }
.sa-chip--lg .sa-icon { font-size: 32px; }
.sa-chip--teal { background: rgba(0, 172, 151, 0.10); } .sa-chip--teal .sa-icon { color: var(--sa-teal); }
.sa-chip--pink { background: rgba(218, 63, 143, 0.10); } .sa-chip--pink .sa-icon { color: var(--sa-pink); }
.sa-chip--yellow { background: rgba(239, 175, 0, 0.20); } .sa-chip--yellow .sa-icon { color: var(--sa-yellow); }
.sa-chip--blue { background: rgba(0, 111, 255, 0.10); } .sa-chip--blue .sa-icon { color: var(--sa-blue); }
.sa-chip--blue-strong { background: rgba(0, 111, 255, 0.20); } .sa-chip--blue-strong .sa-icon { color: var(--sa-blue); }

/* ---------------------------------------------------------------- buttons */

.sa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 40px; padding: 11px 23px;
    border: 1px solid transparent; border-radius: var(--sa-radius);
    font-family: inherit; font-size: 14px; line-height: 16px; font-weight: 600;
    white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sa-btn .sa-icon { font-size: 16px; color: inherit; }
.sa-btn--icon-gap { gap: 4px; }
.sa-btn--primary, .sa a.sa-btn--primary { background: var(--sa-primary); border-color: var(--sa-primary); color: #FFFFFF; }
.sa .sa-btn--primary:hover { background: var(--sa-primary-hover); border-color: var(--sa-primary-hover); color: #FFFFFF; }
.sa-btn--secondary, .sa a.sa-btn--secondary { background: #FFFFFF; border-color: var(--sa-primary); color: var(--sa-primary); }
.sa .sa-btn--secondary:hover { background: var(--sa-primary-tint); color: var(--sa-primary); }
.sa-btn--tertiary, .sa a.sa-btn--tertiary { background: #FFFFFF; border-color: var(--sa-border); color: var(--sa-primary); }
.sa .sa-btn--tertiary:hover { border-color: var(--sa-primary-border); color: var(--sa-primary); }
.sa-btn--block { display: flex; width: 100%; }
.sa-btn--wrap { height: auto; min-height: 40px; white-space: normal; text-align: center; }
.sa-btn:focus-visible, .sa-toggle-btn:focus-visible, .sa-input:focus-visible, .sa-link-btn:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-btn:disabled, .sa-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* text button, e.g. Cancel beside a primary button */
.sa-link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; line-height: 16px; font-weight: 400; color: var(--sa-primary); cursor: pointer; }
.sa-link-btn:hover { color: var(--sa-primary-hover); }

/* on/off filter button */
.sa-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 11px 23px; border-radius: var(--sa-radius);
    border: 1px solid var(--sa-border); background: #FFFFFF;
    font-family: inherit; font-size: 14px; line-height: 16px; font-weight: 600; color: var(--sa-text);
    white-space: nowrap; cursor: pointer;
}
.sa-toggle-btn[aria-pressed="true"] { border: 2px solid var(--sa-primary); padding: 10px 22px; color: var(--sa-primary); }

/* ---------------------------------------------------------------- cards */

.sa-card { display: flex; flex-direction: column; gap: 8px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-card--loose { gap: 24px; }
.sa-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.sa-card__title { display: flex; align-items: center; gap: 12px; }

/* list row inside a card */
.sa-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-list-row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 11px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); color: inherit; }
.sa a.sa-list-row { color: inherit; }
.sa a.sa-list-row:hover { border-color: var(--sa-primary-border); }
.sa-list-row--roomy { padding: 23px; min-height: 94px; }
.sa-list-row__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sa-list-row__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sa-list-row__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* "View All" strip at the foot of a card */
.sa-card-foot { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 11px 23px; background: var(--sa-primary-tint); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }

/* ---------------------------------------------------------------- tiles */

.sa-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px; }
.sa-tile { position: relative; display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); text-align: left; font-family: inherit; color: inherit; }
.sa-tile--stacked { flex-direction: column; align-items: flex-start; min-height: 150px; }
button.sa-tile, .sa a.sa-tile { cursor: pointer; }
.sa .sa-tile[aria-pressed="true"], .sa-tile--selected { border: 2px solid var(--sa-primary); padding: 22px; background: var(--sa-primary-tint); }
.sa-tile__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sa-tile__check { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; }
.sa-tile__check .sa-icon { color: var(--sa-teal); }
.sa-tile__arrow { margin-left: auto; }
.sa-tile--action { justify-content: center; background: var(--sa-primary-tint); }
.sa-tile--bar { min-height: 64px; padding: 11px 23px; }
/* a whole card as a link */
.sa-row-link, .sa a.sa-row-link { display: block; color: inherit; text-decoration: none; }
.sa a.sa-row-link:hover .sa-account { border-color: var(--sa-primary-border); }
.sa-link { color: var(--sa-primary); }
/* the sign-up choices: three across */
.sa-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sa-choice-grid .sa-tile { width: 100%; }

/* ---------------------------------------------------------------- pills, tags, statuses */

.sa-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 3px 11px; border-radius: var(--sa-radius-pill); font-size: 14px; line-height: 16px; color: var(--sa-text); white-space: nowrap; }
.sa-pill .sa-icon { font-size: 16px; color: var(--sa-text); }
.sa-pill--warning { background: rgba(239, 175, 0, 0.20); border: 1px solid var(--sa-yellow); }
.sa-pill--neutral { background: var(--sa-bg); border: 1px solid var(--sa-muted); }
.sa-pill--success { background: rgba(0, 172, 151, 0.10); border: 1px solid var(--sa-teal); }
.sa-pill--teal { background: rgba(0, 172, 151, 0.10); border: 1px solid var(--sa-teal); color: var(--sa-teal); }

.sa-tag { display: inline-flex; align-items: center; height: 22px; padding: 4px 12px; border-radius: var(--sa-radius); font-size: 12px; line-height: 14px; font-weight: 600; color: #FFFFFF; white-space: nowrap; background: var(--sa-yellow); }
.sa-tag--teal { background: var(--sa-teal); } .sa-tag--danger { background: var(--sa-danger); } .sa-tag--muted { background: var(--sa-muted); }

.sa-status { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 19px; white-space: nowrap; }
.sa-status .sa-icon { font-size: 24px; color: inherit; }
.sa-status--current { color: var(--sa-primary); }
.sa-status--active { color: var(--sa-teal); }
.sa-status--deactivated { color: var(--sa-muted); }

/* inline notice bar with actions (link pending, rejected, deactivated) */
.sa-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 11px; border-radius: var(--sa-radius-lg); font-size: 14px; line-height: 16px; }
.sa-notice__text { display: inline-flex; align-items: center; gap: 4px; }
.sa-notice__text .sa-icon { font-size: 16px; color: inherit; }
.sa-notice__actions { display: inline-flex; align-items: center; gap: 12px; color: var(--sa-primary); white-space: nowrap; }
.sa-notice--danger { background: rgba(194, 0, 3, 0.10); border: 1px solid var(--sa-danger); color: var(--sa-danger); }
.sa-notice--success { background: rgba(0, 172, 151, 0.10); border: 1px solid var(--sa-teal); color: var(--sa-ink); }
.sa-notice--success .sa-icon { color: var(--sa-teal); }
.sa-notice--warning { background: rgba(239, 175, 0, 0.20); border: 1px solid var(--sa-yellow); color: var(--sa-text); }
.sa-notice--info { background: #fff; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); color: var(--sa-text); }
.sa-notice--info .sa-icon { color: var(--sa-text); }

/* ---------------------------------------------------------------- avatars */

.sa-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 37px; height: 37px; border-radius: 50%; overflow: hidden; background: var(--sa-text); color: #FFFFFF; font-size: 18px; line-height: 21px; font-weight: 400; }
.sa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sa-avatar--lg { width: 64px; height: 64px; font-size: 36px; line-height: 42px; }
.sa-avatar--amber { background: var(--sa-amber); } .sa-avatar--primary { background: var(--sa-primary); }
.sa-avatar--pink { background: var(--sa-pink); } .sa-avatar--sky { background: var(--sa-sky); }
.sa-avatar--teal { background: var(--sa-teal); } .sa-avatar--muted { background: var(--sa-muted); }

/* ---------------------------------------------------------------- forms */

.sa-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sa-label { font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-input { width: 100%; height: 40px; padding: 0 12px; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-ink); appearance: none; }
.sa-input::placeholder { color: var(--sa-muted); }
/* Native file controls share the secondary button treatment, with room to wrap. */
.sa-input[type=file] { height: auto; padding: 6px 12px; line-height: 24px; }
.sa-input[type=file]::file-selector-button {
    margin-right: 12px; padding: 7px 15px;
    border: 1px solid var(--sa-primary); border-radius: var(--sa-radius);
    background: var(--sa-surface); color: var(--sa-primary);
    font-family: inherit; font-size: 14px; line-height: 16px; font-weight: 600;
    cursor: pointer;
}
.sa-input[type=file]::file-selector-button:hover { background: var(--sa-primary-tint); }
.sa-input[type=file]:focus-visible::file-selector-button { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
/* Keep the native date picker and its indicator legible on light surfaces. */
.sa-input[type=date] { height: 40px; padding: 0 12px; font-family: inherit; font-size: 14px; line-height: 16px; color-scheme: light; }
.sa-input[type=date]::-webkit-datetime-edit { color: var(--sa-ink); }
.sa-input[type=date]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.sa-input[type=date][data-empty=true]::-webkit-datetime-edit,
.sa-input[type=date]:invalid::-webkit-datetime-edit { color: var(--sa-muted); }
.sa-input[type=date]::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; border-radius: var(--sa-radius-sm); }
.sa-input[type=date]:focus::-webkit-calendar-picker-indicator { background-color: var(--sa-primary-tint); }

.sa-input:focus { border-color: var(--sa-primary); outline: none; box-shadow: 0 0 0 3px rgba(83, 91, 255, 0.15); }
.sa-input--invalid { border-color: var(--sa-danger); }
select.sa-input { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23A3AABE'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.sa-input:invalid, select.sa-input.sa-input--empty { color: var(--sa-muted); }
.sa-field__error { font-size: 14px; line-height: 16px; color: var(--sa-danger); }
.sa-field__hint { font-size: 14px; line-height: 16px; color: var(--sa-muted); }
.sa-form-grid { display: grid; gap: 12px; }
.sa-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sa-check { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 14px; line-height: 16px; color: var(--sa-text); cursor: pointer; }
.sa-check input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; cursor: pointer; }
.sa-check__box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-sm); }
.sa-check__box .sa-icon { font-size: 14px; color: #FFFFFF; display: none; font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 20; }
.sa-check input:checked + .sa-check__box { background: var(--sa-primary); border-color: var(--sa-primary); }
.sa-check input:checked + .sa-check__box .sa-icon { display: inline-block; }
.sa-check input:focus-visible + .sa-check__box { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-check--radio .sa-check__box { border-radius: 50%; }
.sa-check--radio input:checked + .sa-check__box::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }
.sa-check--strong { font-weight: 600; color: var(--sa-ink); }

.sa-switch { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 16px; color: var(--sa-primary); cursor: pointer; }
.sa-switch input { position: absolute; opacity: 0; width: 32px; height: 16px; margin: 0; cursor: pointer; }
.sa-switch__track { position: relative; flex: none; width: 32px; height: 16px; border-radius: var(--sa-radius-pill); background: var(--sa-border); transition: background-color .15s ease; }
.sa-switch__track::after { content: ''; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; transition: transform .15s ease; }
.sa-switch input:checked + .sa-switch__track { background: var(--sa-primary); }
.sa-switch input:checked + .sa-switch__track::after { transform: translateX(16px); }
.sa-switch input:focus-visible + .sa-switch__track { outline: 2px solid var(--sa-primary); outline-offset: 2px; }

/* password strength */
.sa-meter { display: flex; align-items: center; gap: 12px; max-width: 662px; font-size: 14px; line-height: 16px; }
.sa-meter__label { order: 2; flex: none; min-width: 54px; }
.sa-meter__track { position: relative; flex: 1 1 auto; height: 8px; border-radius: var(--sa-radius-pill); background: var(--sa-primary-tint); overflow: hidden; }
.sa-meter__bar { position: absolute; inset: 0 auto 0 0; border-radius: var(--sa-radius-pill); background: var(--sa-danger); transition: width .15s ease; }
/* the password rules sentence: a rule turns red while it is not met */
.sa-requirements { margin: 0; font-size: 14px; line-height: 16px; letter-spacing: -0.14px; color: var(--sa-muted); }
.sa-requirements .sa-unmet { color: var(--sa-danger); }
.sa-meter--weak { color: var(--sa-danger); }
.sa-meter--fair { color: var(--sa-yellow); } .sa-meter--fair .sa-meter__bar { background: var(--sa-yellow); }
.sa-meter--strong { color: var(--sa-teal); } .sa-meter--strong .sa-meter__bar { background: var(--sa-teal); }

/* step progress across the top of the sign-up card */
.sa-steps { display: flex; gap: 12px; }
.sa-steps__step { flex: 1 1 0; height: 4px; background: var(--sa-primary-tint); }
.sa-steps__step--done { background: var(--sa-primary); }

/* bordered note with a large icon, e.g. "Account deactivation" */
.sa-callout { display: flex; align-items: flex-start; gap: 12px; padding: 23px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-callout > .sa-icon { font-size: 32px; color: var(--sa-ink); }

/* "nothing here yet" box inside a card */
.sa-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 23px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); text-align: center; }
.sa-empty__text { display: flex; flex-direction: column; gap: 4px; }

/* numbered explanation list */
.sa-numbered { display: flex; align-items: flex-start; gap: 12px; }
.sa-numbered__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sa-primary-tint); font-size: 16px; line-height: 19px; color: var(--sa-primary); }

/* ---------------------------------------------------------------- panels */

/* the white card used by sign-up screens, questionnaires and modals */
.sa-panel { display: flex; flex-direction: column; gap: 32px; width: 100%; padding: 47px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-lg); }
.sa-panel--600 { max-width: 600px; } .sa-panel--800 { max-width: 800px; }
.sa-panel--1100 { max-width: 1100px; } .sa-panel--1200 { max-width: 1200px; }
.sa-panel__head { display: flex; flex-direction: column; gap: 4px; }
.sa-panel__foot { display: flex; flex-direction: column; gap: 24px; }
.sa-panel__foot--close { margin-top: -8px; }
.sa-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sa-panel__actions--split { justify-content: space-between; }
/* centred message, e.g. "Account created successfully" */
.sa-message { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sa-message > .sa-icon { font-size: 64px; color: var(--sa-teal); }
.sa-message__text { display: flex; flex-direction: column; gap: 4px; }

/* margin:auto on the panel centres it when it fits and scrolls from the top when it does not */
.sa-modal-backdrop { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: rgba(31, 42, 61, 0.45); overflow-y: auto; }
.sa-modal-backdrop > .sa-panel { margin: auto; }

/* account card: Manage Accounts and the person picker */
.sa-account { display: flex; flex-direction: column; gap: 16px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-account--current { background: var(--sa-primary-tint); border-color: var(--sa-primary); }
.sa-account--linked { background: var(--sa-primary-tint-soft); }
/* A tinted summary block that is not itself a card needs room between its text and the tint (BH #78). */
div.sa-account--linked { padding: 16px 20px; border-radius: var(--sa-radius-md, 8px); }
.sa-account--selected { border: 2px solid var(--sa-primary); padding: 22px; }
.sa-account--done { background: rgba(0, 172, 151, 0.10); border-color: var(--sa-teal); }
.sa-account--compact { padding: 11px 23px; }
.sa-account--compact.sa-account--selected { padding: 10px 22px; }
.sa-account__main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sa-account__aside { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.sa-account__seat { display: block; width: 110px; height: 20px; }
.sa-account__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sa-account__lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-account__type { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 19px; color: var(--sa-text); }
.sa-account__org { font-size: 14px; line-height: 16px; color: var(--sa-muted); font-style: italic; }
.sa-account--muted .sa-h2, .sa-account--muted .sa-account__type { color: var(--sa-muted); }
/* accounts managed by the one above them */
.sa-account-group { display: flex; flex-direction: column; gap: 8px; padding-left: 41px; }

/* questionnaire accordion step */
.sa-accordion { display: flex; flex-direction: column; gap: 16px; padding: 23px; background: var(--sa-bg); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-accordion[open], .sa-accordion--open { padding-bottom: 39px; }
.sa-accordion--done { background: rgba(0, 172, 151, 0.10); border-color: var(--sa-teal); }
.sa-accordion__head { display: flex; align-items: center; gap: 16px; width: 100%; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; list-style: none; }
.sa-accordion__head::-webkit-details-marker { display: none; }
.sa-accordion__head .sa-icon { font-size: 16px; }
.sa-accordion[open] > .sa-accordion__head .sa-icon { transform: rotate(90deg); }
.sa-accordion__body { display: flex; flex-direction: column; gap: 16px; padding: 0 24px; }
.sa-accordion__body > .sa-divider { border-top-color: var(--sa-divider); }

/* slide-out (filters) */
.sa-slideout { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1040; display: flex; flex-direction: column; width: 540px; max-width: 100vw; background: #FFFFFF; box-shadow: var(--sa-shadow-pop); }
.sa-slideout__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 40px; overflow-y: auto; }
.sa-slideout__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 24px 48px; border-top: 1px solid var(--sa-border); }

/* small pop-over menu (the ... menu on a resource) */
.sa-menu { display: flex; flex-direction: column; min-width: 129px; padding: 4px 0; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow-pop); }
.sa-menu__item { display: block; padding: 12px 16px; border: 0; background: none; font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-primary); text-align: left; cursor: pointer; white-space: nowrap; }
.sa-menu__item:hover { background: var(--sa-primary-tint); }

/* button with a pop-up list under it, e.g. "Add Linked Account" */
.sa-dropdown { position: relative; display: inline-flex; }
.sa-popmenu { position: absolute; top: calc(100% + 7px); right: 11px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 13px 20px; background: #FFFFFF; border-radius: var(--sa-radius); box-shadow: var(--sa-shadow-pop); }
.sa-popmenu::before { content: ""; position: absolute; top: -7px; right: 21px; width: 15px; height: 15px; background: #FFFFFF; border-radius: 2px 0 0 0; transform: rotate(45deg); }
.sa-popmenu__item, .sa a.sa-popmenu__item { position: relative; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; line-height: 20px; color: var(--sa-primary); text-align: right; white-space: nowrap; cursor: pointer; }
.sa-popmenu__item:hover, .sa a.sa-popmenu__item:hover { color: var(--sa-primary-hover); text-decoration: underline; }

/* appointment card */
.sa-appt { display: flex; flex-direction: column; gap: 16px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); min-width: 0; }
a.sa-appt { color: inherit; text-decoration: none; cursor: pointer; }
a.sa-appt:hover { color: inherit; }
a.sa-appt:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-appt--today { background: var(--sa-primary-tint); }
.sa-appt__main { display: flex; align-items: flex-start; gap: 16px; }
.sa-appt__date { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.sa-appt__month { font-size: 12px; line-height: 14px; font-weight: 600; color: var(--sa-text); text-transform: uppercase; }
.sa-appt__day { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: var(--sa-radius-md); background: var(--sa-pink); font-size: 20px; line-height: 23px; font-weight: 600; color: #FFFFFF; }
.sa-appt__lines { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sa-appt__where { white-space: pre-line; }
.sa-appt__emphasis { font-weight: 500; color: var(--sa-ink); }
.sa-appt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px; }

/* resource card in the Find Resources list */
.sa-resource { display: flex; flex-direction: column; gap: 12px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); }
.sa-resource--hidden { background: var(--sa-surface-hidden); }
.sa-resource__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; }
.sa-resource__name { margin: 0; font-size: 16px; line-height: 19px; font-weight: 700; color: var(--sa-teal); }
.sa-resource__more { padding: 0; border: 0; background: none; cursor: pointer; }
.sa-resource__more .sa-icon { font-size: 20px; color: var(--sa-text); }

/* ---------------------------------------------------------------- shell */

.sa-shell { min-height: 100vh; }

.sa-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1020; display: flex; align-items: center; justify-content: flex-end; gap: 24px; height: var(--sa-header-height); padding: 3px 40px 0 calc(var(--sa-sidebar-width) + 29px); background: #FFFFFF; border-bottom: 1px solid var(--sa-border); box-shadow: var(--sa-shadow-chrome); }
.sa-header--viewing-as { background: var(--sa-primary-tint); border-bottom-color: var(--sa-primary-border); }
.sa-header__viewing { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-header__tools { display: flex; align-items: center; gap: 14px; }
.sa-header__icon { position: relative; display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer; }
.sa-header__dot { position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sa-alert-dot); border: 1px solid #FFFFFF; }
.sa-header__me { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.sa-header__me-lines { display: flex; flex-direction: column; gap: 2px; }
.sa-header__me-type { display: inline-flex; align-items: center; gap: 4px; }
.sa-header__me-type .sa-icon { font-size: 16px; }
.sa-header__menu { position: absolute; top: calc(var(--sa-header-height) - 8px); right: 40px; z-index: 1030; }

.sa-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1025; display: flex; flex-direction: column; gap: 24px; width: var(--sa-sidebar-width); padding: 20px 11px 20px 12px; background: #FFFFFF; border-right: 1px solid var(--sa-border); box-shadow: var(--sa-shadow-chrome); }
.sa-sidebar__logo { display: block; width: 202px; height: 31px; margin-left: 14px; }
.sa-sidebar__logo img { display: block; width: 202px; height: 31px; }
.sa-sidebar__collapse { position: absolute; top: 22px; left: 238px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--sa-border); background: #FFFFFF; cursor: pointer; }
.sa-sidebar__collapse .sa-icon { font-size: 20px; transform: rotate(90deg); }
.sa-nav { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa .sa-nav__link { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--sa-radius); font-size: 14px; line-height: 16px; font-weight: 400; color: var(--sa-text); }
.sa-nav__link .sa-icon { font-size: 16px; color: var(--sa-text); }
.sa-nav__link .sa-nav__chev { margin-left: auto; font-size: 12px; }
.sa .sa-nav__link:hover { background: var(--sa-primary-tint); color: var(--sa-text); }
.sa .sa-nav__link--active, .sa .sa-nav__link--active:hover { background: var(--sa-primary); font-weight: 700; color: #FFFFFF; }
.sa-nav__link--active .sa-icon { color: #FFFFFF; }
.sa-nav__sub { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; padding: 0 0 0 36px; list-style: none; }
.sa .sa-nav__sublink { display: block; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa .sa-nav__sublink--active { font-weight: 700; color: var(--sa-primary); }

.sa-main { display: flex; flex-direction: column; gap: 24px; min-height: 100vh; padding: calc(var(--sa-header-height) + 24px) 40px 48px calc(var(--sa-sidebar-width) + 29px); }
/* Request an appointment (Figma 19160:49441, 49744, 49787) */
.sa-request { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.sa-request__provider { display: flex; flex-direction: column; gap: 22px; padding: 11px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-request__provider--selected { border: 2px solid var(--sa-primary); padding: 10px; }
.sa-request__provider--compact { flex-direction: row; align-items: flex-start; gap: 16px; }
.sa-request__half { flex: 1 1 0; padding-left: 11px; padding-right: 11px; }
.sa-request__bar { position: sticky; bottom: -24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto -24px -24px; padding: 11px 24px; background: var(--sa-primary-tint); border-top: 1px solid var(--sa-border); }
.sa-detail__request { position: fixed; top: var(--sa-header-height); right: 0; bottom: 0; left: auto; }
.sa-request__cancel { padding: 15px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-filter-pill { display: inline-flex; align-items: center; height: 32px; padding: 8px 12px; border: 0; border-radius: var(--sa-radius-lg); background: var(--sa-primary-tint); font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-text); cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sa-filter-pill[aria-pressed="true"] { background: var(--sa-primary); color: #FFFFFF; font-weight: 700; }
.sa-request__times { position: absolute; top: 36px; left: 0; z-index: 30; min-width: 200px; }
.sa-request__times .sa-check { display: flex; width: 100%; }
.sa-chiplet { display: inline-flex; align-items: center; height: 18px; padding: 1px 7px; border: 1px solid; border-radius: var(--sa-radius-pill); font-size: 12px; line-height: 14px; }
.sa-chiplet--online { background: rgba(0, 172, 151, 0.10); border-color: var(--sa-teal); color: var(--sa-teal); }
.sa-chiplet--in-person { background: var(--sa-primary-tint); border-color: var(--sa-primary); color: var(--sa-primary); }
.sa-textarea { height: auto; min-height: 96px; padding: 11px 12px; resize: vertical; line-height: 16px; }
.sa-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Find Resources: list panel beside a full-height map (Figma 19160:48024) */
.sa-main--map { display: block; padding: var(--sa-header-height) 0 0 var(--sa-sidebar-width); }
.sa-find { position: relative; display: flex; height: calc(100vh - var(--sa-header-height)); }
.sa-find__list { flex: 0 0 431px; display: flex; flex-direction: column; overflow-y: auto; background: var(--sa-surface); border-right: 1px solid var(--sa-border); }
.sa-find__head { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 12px 24px 12px 24px; }
.sa-find__crumb { padding: 0 24px 8px; }
.sa-find__filters { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-text); cursor: pointer; white-space: nowrap; }
.sa-find__notice { padding: 0 24px 12px; }
.sa-find .sa-resource { border-width: 0 0 1px; }
.sa-find .sa-resource--selected { box-shadow: inset 4px 0 0 var(--sa-primary); }
.sa-find__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sa-find__meta .sa-small { display: inline-flex; align-items: center; gap: 4px; }
.sa-find__more { align-self: flex-start; }
.sa-find__menu { position: absolute; right: 0; top: 26px; z-index: 20; }
.sa-find__empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; }
.sa-find__load { display: flex; justify-content: center; padding: 24px; }
.sa-find__map { flex: 1 1 auto; position: relative; min-width: 0; }
.sa-find__canvas { position: absolute; inset: 0; z-index: 0; background: var(--sa-bg); }
.sa-find__panel { position: absolute; top: 0; bottom: 0; left: 431px; z-index: 500; display: flex; flex-direction: column; gap: 16px; width: 400px; max-width: 100%; padding: 24px; overflow-y: auto; background: var(--sa-surface); box-shadow: var(--sa-shadow-pop); }
.sa-find__panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sa-find__filters-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sa-find__filter { display: flex; flex-direction: column; gap: 12px; }
.sa-find__filter > .sa-divider { margin: 12px 0; }
.sa-find__filter-title { margin: 0; font-size: 16px; line-height: 19px; font-weight: 600; color: var(--sa-ink); }
.sa-modal-backdrop--side { align-items: stretch; justify-content: flex-start; padding: 0; }
.sa-slideout--left { left: 0; right: auto; }
/* map pins (BugHerd #35): a drop pin coloured by listing kind. The selected one grows and keeps its colour, so the kind still reads. */
.sa-pin { background: none; border: 0; color: var(--sa-pin-other); }
.sa-pin svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; transition: transform .12s ease-out; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.sa-pin--ehr { color: var(--sa-pin-ehr); }
.sa-pin--verified { color: var(--sa-pin-verified); }
.sa-pin--selected svg { transform: scale(1.35); filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55)); }
.sa-pin-legend { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px 12px; list-style: none; background: #FFFFFF; border-radius: var(--sa-radius-md); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 13px; line-height: 16px; color: var(--sa-ink); pointer-events: none; }
.sa-pin-legend__item { display: flex; align-items: center; gap: 8px; }
.sa-pin-legend__swatch { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.sa-pin-legend__swatch--verified { background: var(--sa-pin-verified); }
.sa-pin-legend__swatch--ehr { background: var(--sa-pin-ehr); }
.sa-pin-legend__swatch--other { background: var(--sa-pin-other); }
.sa-pre { white-space: pre-line; }
/* resource page */
/* The resource page is one white sheet (Figma Frame 624: padding 0/24/24/24, 12 between head, tabs and content; the content starts 24 under the tabs). */
.sa-detail { display: flex; flex-direction: column; gap: 12px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-detail__body { padding-top: 12px; }
.sa-detail__head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sa-detail__back { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 52px; color: var(--sa-text); }
.sa-detail__action { flex: none; }
/* Pill tabs (Figma 19160:48132): 32 tall, padding 8/12, radius 10, 4 apart; the active one is primary with white 700 text. */
.sa-tabs { display: flex; gap: 4px; overflow-x: auto; }
.sa-tabs__tab { padding: 8px 12px; border: 0; border-radius: var(--sa-radius-lg); background: var(--sa-primary-tint); font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-text); white-space: nowrap; cursor: pointer; }
.sa-tabs__tab--active { background: var(--sa-primary); font-weight: 700; color: #FFFFFF; }
.sa-tabs__tab--off { color: var(--sa-muted); cursor: default; }
.sa a.sa-tabs__tab,
.sa a.sa-tabs__tab:hover { color: var(--sa-text); }
.sa a.sa-tabs__tab--active,
.sa a.sa-tabs__tab--active:hover { color: var(--sa-surface); }
.sa-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sa-gallery__item { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.sa-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sa-radius-md); }
.sa-gallery__video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 3; border-radius: var(--sa-radius-md); background: var(--sa-primary-tint); }
.sa-gallery__video .sa-icon { font-size: 48px; color: var(--sa-primary); }
.sa-my-resources__filter { align-self: flex-end; width: 312px; max-width: 100%; }
.sa-my-resources__filter .sa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* two-pane page (My Files): list on the left, white detail pane flush to the header and the right edge */
.sa-main--split { flex-direction: row; gap: 24px; padding: var(--sa-header-height) 0 0 calc(var(--sa-sidebar-width) + 24px); }
.sa-split__list { display: flex; flex-direction: column; gap: 24px; flex: 0 0 527px; padding: 24px 0; }
.sa-split__pane { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; padding: 24px 32px; background: var(--sa-surface); }
.sa-split__pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sa-split__preview { flex: 1 1 auto; min-height: 480px; background: var(--sa-bg); border-radius: var(--sa-radius-md); overflow: hidden; }
.sa-split__preview img, .sa-split__preview iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; object-fit: contain; }
/* one document in the list */
.sa-doc { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-lg); text-align: left; font-family: inherit; color: inherit; cursor: pointer; }
.sa-doc--selected { border-color: var(--sa-primary); }
.sa-doc--missing { background: var(--sa-border); }
.sa-doc__lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sa-doc__name { font-size: 14px; line-height: 16px; font-weight: 700; color: var(--sa-ink); }
.sa-doc__meta { font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-doc__aside { display: inline-flex; align-items: center; gap: 12px; flex: none; line-height: 1; }
.sa-doc__aside > span { display: inline-flex; }
.sa-doc__more { display: inline-flex; height: 24px; padding: 0; border: 0; background: none; line-height: 1; cursor: pointer; }
.sa-doc__more .sa-icon { font-size: 24px; color: var(--sa-text); }
/* file drop zone in the upload dialog */
.sa-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 155px; padding: 24px; background: #FFFFFF; border: 1px dashed var(--sa-muted); text-align: center; cursor: pointer; }
.sa-dropzone--static { cursor: default; }
.sa-dropzone--over { border-color: var(--sa-primary); background: var(--sa-primary-tint-soft); }
.sa-dropzone .sa-icon { font-size: 32px; color: var(--sa-primary); }
.sa-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sa-dropzone:focus-within { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-main__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-bottom: -12px; }
.sa-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* sidebar folded away on a wide screen: the round button stays to bring it back */
.sa-shell--collapsed { --sa-sidebar-width: 0px; }
.sa-shell--collapsed .sa-sidebar { transform: translateX(-253px); width: 253px; }
.sa-shell--collapsed .sa-sidebar__collapse { left: 261px; }
.sa-shell--collapsed .sa-sidebar__collapse .sa-icon { transform: rotate(-90deg); }
.sa-sidebar { transition: transform .2s ease; }

/* signed-out pages: one centred panel on the grey page */
.sa-guest { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 100px 16px; }
.sa-guest--middle { justify-content: center; padding: 48px 16px; }
.sa-logo-lg { display: block; width: 271px; height: 41px; }
.sa-guest__body { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sa-guest__alt { margin: 24px 0 0; font-size: 14px; line-height: 16px; color: var(--sa-text); text-align: center; }

/* My Account: form column and the profile image panel. */
.sa-account-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sa-account-page__form,
.sa-account-page__image { min-width: 0; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 991.98px) {
    .sa { --sa-sidebar-width: 0px; }
    .sa-sidebar, .sa-shell--collapsed .sa-sidebar { transform: translateX(-100%); width: 253px; }
    .sa-sidebar--open { transform: translateX(0); }
    .sa-sidebar__collapse { display: none; }
    .sa-header { padding: 0 16px; }
    .sa-header__burger { display: inline-flex; margin-right: auto; }
    .sa-header__menu { right: 16px; }
    .sa-main { padding: calc(var(--sa-header-height) + 16px) 16px 32px; gap: 16px; }
    .sa-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .sa-account-page { grid-template-columns: minmax(0, 1fr); }
    .sa-account-page__image { order: -1; }
    .sa-panel { padding: 24px; gap: 24px; }
    .sa-guest { padding: 24px 16px; }
    .sa-form-grid--2, .sa-form-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .sa-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sa-logo-lg { width: 202px; height: 31px; }
    .sa-card { padding: 15px; }
    .sa-list-row__text { white-space: normal; }
    .sa-main__title, .sa-card__head { flex-wrap: wrap; }
    .sa-main--split { flex-direction: column; padding: var(--sa-header-height) 0 0; }
    .sa-main--map { padding: var(--sa-header-height) 0 0; }
    .sa-find { flex-direction: column; height: auto; }
    .sa-find__list { flex: 0 0 auto; border-right: 0; overflow: visible; }
    .sa-find__map { flex: 0 0 360px; height: 360px; }
    .sa-find__panel { position: fixed; top: var(--sa-header-height); left: 0; right: 0; bottom: 0; width: auto; }
    .sa-split__list { flex: 0 0 auto; padding: 16px; }
    .sa-split__pane { padding: 16px; }
    .sa-account { padding: 15px; }
    .sa-account__main { flex-wrap: wrap; }
    .sa-account__who { flex: 1 1 220px; }
    .sa-account-group { padding-left: 16px; }
    .sa-popmenu { right: auto; left: 0; align-items: flex-start; }
    .sa-popmenu::before { right: auto; left: 21px; }
    .sa-header__me-lines { display: none; }
    .sa-slideout__body { padding: 24px 16px; }
    .sa-slideout__foot { padding: 16px; }
    .sa-notice { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .sa-detail { padding: 15px; }
    .sa-choice-grid { grid-template-columns: minmax(0, 1fr); }
    .sa-tile--stacked { min-height: 0; }
}

@media (min-width: 992px) {
    .sa-header__burger { display: none; }
}

/* ---------------------------------------------------------------- notifications
   Header bell and /access/notifications. Measurements from the portal panel
   (Figma 10141:106100): 604px, radius 16, padding 32/32/40, shadow --sa-shadow-pop.
   The 1px rule sits 12px under the text; 24px separates one item from the next.
   Phone uses the same 991.98px breakpoint as the header burger. */

.sa-notify-root { position: relative; display: inline-flex; flex: none; }
.sa-notify {
    box-sizing: border-box;
    width: 604px;
    max-width: calc(100vw - 32px);
    padding: 32px 32px 40px;
    background: var(--sa-surface);
    border-radius: 16px;
    box-shadow: var(--sa-shadow-pop);
    overflow-x: hidden;
}
.sa-notify-root .sa-notify {
    position: fixed;
    top: var(--sa-header-height);
    right: 40px;
    z-index: 1030;
    max-height: calc(100vh - var(--sa-header-height) - 16px);
    overflow-y: auto;
}
.sa-notify-sample { max-width: 100%; }
.sa-notify-sample .sa-notify {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    max-width: 100%;
    max-height: none;
    overflow: visible;
}
.sa-notify__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 32px; }
.sa-notify__heading { margin: 0; font-size: 20px; line-height: 23px; font-weight: 700; color: var(--sa-ink); }
.sa-notify__close { display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer; }
.sa-notify__close .sa-icon { font-size: 24px; color: var(--sa-ink); }
.sa-notify__list { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; }
.sa-notify__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "date ." "title arrow" "body .";
    /* Figma 10141:106100: 8px between date, title and body; 20px from the body to the rule; 28px before the arrow */
    column-gap: 28px;
    row-gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0 0 19px; /* 20 minus the 1px rule, which a Figma line does not take */
    border: 0;
    border-bottom: 1px solid var(--sa-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.sa-notify__item:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-notify__date { grid-area: date; font-size: 14px; line-height: 16px; color: var(--sa-muted); }
.sa-notify__title { grid-area: title; min-width: 0; overflow-wrap: anywhere; font-size: 18px; line-height: 20px; font-weight: 700; color: var(--sa-primary); }
.sa-notify__item--read .sa-notify__title { color: var(--sa-ink); font-weight: 400; }
.sa-notify__item--unread .sa-notify__title { color: var(--sa-primary); font-weight: 700; }
.sa-notify__body { grid-area: body; min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-notify__arrow { grid-area: arrow; align-self: center; justify-self: end; font-size: 20px; color: var(--sa-primary); }
.sa-notify__empty { margin: 0; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-notify__foot { margin-top: 32px; }
.sa-notify__pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 991.98px) {
    .sa-notify-root .sa-notify {
        right: 0;
        left: 0;
        width: auto;
        max-width: none;
        max-height: calc(100vh - var(--sa-header-height));
    }
}

/* ------------------------------------------------- person switcher (Figma 19160:50122) */
/* The avatar menu: the signed-in person, the family accounts they may act for (indented), then the account links. */
/* Figma: 254 wide, 24 padding inside a stroke that takes no space, so 23 inside our 1px border. */
.sa-switcher { display: flex; flex-direction: column; gap: 16px; width: 254px; padding: 23px; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow-pop); }
.sa-switcher__people { display: flex; flex-direction: column; gap: 16px; }
.sa-switcher__linked { display: flex; flex-direction: column; gap: 16px; padding: 0 12px; }
.sa-switcher__row { display: flex; align-items: flex-start; gap: 4px; width: 100%; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; color: var(--sa-text); cursor: pointer; }
.sa-switcher__row[disabled], .sa-switcher__row--static { cursor: default; }
.sa-switcher__row[aria-current="true"] .sa-switcher__name { color: var(--sa-primary); font-weight: 500; }
.sa-switcher__lines { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.sa-switcher__name { font-size: 14px; line-height: 16px; overflow-wrap: anywhere; }
.sa-switcher__row > .sa-pill { flex: 0 0 auto; margin-left: 8px; }
.sa-switcher__type { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 14px; }
.sa-switcher__type .sa-icon { font-size: 16px; color: var(--sa-muted); }
.sa-switcher__org { font-size: 12px; line-height: 14px; color: var(--sa-muted); }
.sa-switcher__rule { height: 0; margin: 0; border: 0; border-top: 1px solid var(--sa-border); }
.sa-switcher__links { display: flex; flex-direction: column; gap: 8px; }
.sa-switcher__link { display: block; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-primary); text-align: left; cursor: pointer; text-decoration: none; }
.sa-switcher__link:hover { text-decoration: underline; }

/* ------------------------------------------------- resource documents (Figma 19160:48387) */
/* One required-document row: 60 tall, Figma padding 12 inside a 1px border (11 in CSS),
   radius 10. Two lines stay 4 apart via .sa-doc__lines; the more button stays 24 via .sa-doc__more. */
.sa-doc--sheet { min-height: 60px; padding: 11px; cursor: default; }

/* ------------------------------------------------- My Drive (Figma 19160:48740) */
/* The title, then the Drive frame filling the rest of the page: 1607 x 906 on the 1920 frame, 24 under the title. */
.sa-drive { display: flex; flex-direction: column; gap: 24px; flex: 1 1 auto; min-height: 0; }
.sa-drive__frame { flex: 1 1 auto; width: 100%; min-height: 600px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); background: var(--sa-surface); }
.sa-drive__phone { display: none; }
@media (max-width: 991.98px) {
    /* Desktop only for now (call 2025-11-05): phones get the message, not the frame. */
    .sa-drive__frame { display: none; }
    .sa-drive__phone { display: block; }
}

/* ------------------------------------------------- My Calendar (Figma 19160:48401 / 48611)
   Appended only. Toolbar is 40 tall; the shell already insets the page.
   Week grid: 48 header, 69 gutter, 80 per hour from 7am to 5pm, items 8 in
   from the column edge. Segmented toggles are Figma 1464/115 (40 tall:
   8 padding + 4 + 16 line + 4 + 8). Phone rules sit at the bottom. */
.sa-appt--muted { background: var(--sa-border); }
.sa-panel--500 { max-width: 500px; }

.sa-segmented {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 8px;
    background: var(--sa-surface);
    border-radius: var(--sa-radius-sm);
}
.sa-segmented__item {
    padding: 4px 8px;
    border: 0;
    border-radius: var(--sa-radius-sm);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--sa-text);
    cursor: pointer;
}
.sa-segmented__item--active { background: var(--sa-bg); color: var(--sa-primary); font-weight: 700; }
.sa-segmented__item:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }

.sa-cal { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sa-cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.sa-cal-toolbar__lead { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sa-cal-toolbar__tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.sa-cal-banner { flex: 0 1 auto; }
.sa-cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sa-ink);
    cursor: pointer;
}
.sa-cal-nav .sa-icon { font-size: 16px; color: var(--sa-ink); }
.sa-cal-title-phone { display: none; }

.sa-cal-sheet { background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); min-width: 0; }
.sa-cal-head { display: grid; height: 48px; }
.sa-cal-head--week, .sa-cal-body--week { grid-template-columns: 69px repeat(7, minmax(0, 1fr)); }
.sa-cal-head--day, .sa-cal-body--day { grid-template-columns: 69px minmax(0, 1fr); }
.sa-cal-head__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-left: 1px solid var(--sa-border);
    font-size: 14px;
    line-height: 16px;
    color: var(--sa-text);
}
.sa-cal-head__num { font-weight: 700; }
.sa-cal-head__cell--today { background: var(--sa-primary); color: var(--sa-surface); border-left-color: var(--sa-primary); }
.sa-cal-body { display: grid; border-bottom: 1px solid var(--sa-border); }
.sa-cal-gutter { position: relative; }
.sa-cal-col { position: relative; min-width: 0; border-left: 1px solid var(--sa-border); }
.sa-cal-slot { position: relative; height: 80px; border-top: 1px solid var(--sa-border); }
.sa-cal-col .sa-cal-slot::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    border-top: 1px solid var(--sa-border);
}
.sa-cal-slot__label, .sa-cal-end {
    position: absolute;
    right: 8px;
    font-size: 14px;
    line-height: 16px;
    color: var(--sa-text);
    white-space: nowrap;
}
.sa-cal-slot__label { top: 0; transform: translateY(-50%); }
.sa-cal-end { bottom: 0; transform: translateY(50%); }

.sa-cal-item {
    position: absolute;
    top: var(--top);
    height: var(--h);
    left: 8px;
    right: 8px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2px 4px 2px 6px;
    background: color-mix(in srgb, var(--sa-teal) 20%, transparent);
    border-left: 2px solid var(--sa-teal);
    font-size: 10px;
    line-height: 12px;
    font-weight: 500;
    color: var(--sa-ink);
    text-decoration: none;
}
.sa-cal-item:hover { color: var(--sa-ink); }
.sa-cal-item__title { font-weight: 700; }
.sa-cal-item--pending { background: var(--sa-border); border-left-color: var(--sa-muted); }
.sa-cal-item--of2, .sa-cal-item--of3, .sa-cal-item--of4 { right: auto; }
.sa-cal-item--of2 { width: calc((100% - 16px) / 2); }
.sa-cal-item--of2.sa-cal-item--c0 { left: 8px; }
.sa-cal-item--of2.sa-cal-item--c1 { left: calc(8px + (100% - 16px) / 2); }
.sa-cal-item--of3 { width: calc((100% - 16px) / 3); }
.sa-cal-item--of3.sa-cal-item--c0 { left: 8px; }
.sa-cal-item--of3.sa-cal-item--c1 { left: calc(8px + (100% - 16px) / 3); }
.sa-cal-item--of3.sa-cal-item--c2 { left: calc(8px + 2 * (100% - 16px) / 3); }
.sa-cal-item--of4 { width: calc((100% - 16px) / 4); }
.sa-cal-item--of4.sa-cal-item--c0 { left: 8px; }
.sa-cal-item--of4.sa-cal-item--c1 { left: calc(8px + (100% - 16px) / 4); }
.sa-cal-item--of4.sa-cal-item--c2 { left: calc(8px + 2 * (100% - 16px) / 4); }
.sa-cal-item--of4.sa-cal-item--c3 { left: calc(8px + 3 * (100% - 16px) / 4); }

.sa-cal-month { background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); overflow: hidden; }
.sa-cal-month__head, .sa-cal-month__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sa-cal-month__head .sa-cal-head__cell { height: 48px; border-bottom: 1px solid var(--sa-border); }
.sa-cal-month__head .sa-cal-head__cell:first-child { border-left: 0; }
.sa-cal-month__cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    min-height: 112px;
    padding: 4px;
    border-top: 1px solid var(--sa-border);
    border-left: 1px solid var(--sa-border);
}
.sa-cal-month__week .sa-cal-month__cell:first-child { border-left: 0; }
.sa-cal-month__cell--outside { background: var(--sa-bg); }
.sa-cal-month__num { align-self: flex-start; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-cal-month__cell--outside .sa-cal-month__num { color: var(--sa-muted); }
.sa-cal-month__num--today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sa-primary);
    color: var(--sa-surface);
}
.sa-cal-item--bar { position: static; top: auto; left: auto; right: auto; width: auto; height: 24px; }
.sa-cal-more { font-size: 10px; line-height: 12px; font-weight: 500; color: var(--sa-text); }

.sa-cal-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 800px; }
.sa-cal-section { display: flex; flex-direction: column; gap: 12px; }
.sa-cal-section h2 { font-weight: 400; } /* Figma: 16/19 regular ink section titles */
.sa-cal-section__head { display: flex; flex-direction: column; gap: 4px; }
.sa-cal-card { position: relative; }
.sa-cal-menu { position: absolute; top: 12px; right: 12px; z-index: 2; }

.sa-cal-dialog.sa-panel { gap: 24px; }
.sa-cal-dialog__body { display: flex; flex-direction: column; gap: 24px; }
.sa-cal-dialog__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sa-cal-note { height: 141px; min-height: 141px; }
.sa-cal-dialog__submit { width: 176px; flex: none; }

/* Invite referral pop-up. Figma padding minus the 1px border: 24 → 23, 12 → 11. */
.sa-invite__top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.sa-invite__later {
    border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
    font-size: 14px; line-height: 16px; font-weight: 600; color: var(--sa-primary);
}
.sa-invite__later:hover { color: var(--sa-primary-hover); }
.sa-invite__close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border: 0; background: none; padding: 0; cursor: pointer;
}
.sa-invite__close .sa-icon { font-size: 16px; color: var(--sa-text); }
.sa-invite__service {
    display: flex; align-items: center; gap: 16px; padding: 23px;
    background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md);
}
.sa-invite__service:has(input:checked), .sa-invite__person:has(input:checked) { border-color: var(--sa-primary); box-shadow: inset 0 0 0 1px var(--sa-primary); }
.sa-invite__jump { display: inline-flex; flex: none; }
.sa-invite__jump .sa-icon { color: var(--sa-text); }
.sa-invite__person {
    display: flex; align-items: center; gap: 12px; padding: 11px 23px;
    background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md);
}
.sa-invite__person-main { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sa-invite__person-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sa-invite__add {
    display: flex; justify-content: center; align-items: center; gap: 16px;
    padding: 11px 23px; border-radius: var(--sa-radius-md); background: var(--sa-primary-tint-soft);
}
.sa-invite__add-btn { width: 161px; padding-left: 12px; padding-right: 12px; }
.sa-invite__decline { width: 134px; flex: none; }
.sa-invite__grow { flex: 1 1 auto; }
.sa-invite__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sa-invite__done-icon { font-size: 64px; color: var(--sa-teal); }
.sa-invite__done .sa-btn { margin-top: 28px; width: 100%; }
.sa-cal-phone-only { display: none; }

@media (max-width: 991.98px) {
    .sa-cal-toolbar, .sa-cal-toolbar__tools { flex-wrap: wrap; justify-content: flex-start; }
    .sa-cal-modes .sa-segmented__item:not([data-value="day"]) { display: none; }
    .sa-cal-modes .sa-segmented__item[data-value="day"] { background: var(--sa-bg); color: var(--sa-primary); }
    .sa-cal-title-wide { display: none; }
    .sa-cal-title-phone { display: inline; }
    .sa-cal-grid--week .sa-cal-phone-hide { display: none; }
    .sa-cal-grid--week .sa-cal-head,
    .sa-cal-grid--week .sa-cal-body { grid-template-columns: 69px minmax(0, 1fr); }
    .sa-cal-desktop-only { display: none; }
    .sa-cal-phone-only { display: block; }
    .sa-cal-list { max-width: none; }
    .sa-modal-backdrop:has(.sa-invite-dialog) { padding: 0; }
    .sa-invite-dialog.sa-panel { max-width: none; width: 100%; }
    .sa-invite__person-line { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------- schedule appointment (Figma 19160:45648 / 50598 / 45755) */

.sa-schedule-host.sa-find__panel {
    position: fixed; top: var(--sa-header-height); right: 0; bottom: 0; left: auto;
    width: 552px; padding: 48px; gap: 24px;
}
.sa-schedule { display: flex; flex-direction: column; gap: 24px; }
.sa-schedule__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sa-schedule__actions { display: flex; flex-direction: column; gap: 12px; }
.sa-schedule__places, .sa-schedule__times { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-schedule__note { height: 141px; min-height: 141px; }

.sa-provider-card, .sa-provider-pick {
    display: flex; align-items: center; gap: 16px; width: 100%;
    padding: 12px; border: 1px solid var(--sa-border); border-radius: 8px;
    background: var(--sa-surface); text-align: left; color: inherit;
}
.sa-provider-pick { font-family: inherit; cursor: pointer; }
.sa-provider-pick[aria-pressed="true"] { border-color: var(--sa-primary); }

.sa-review-card {
    width: 100%; max-width: 456px; padding: 12px;
    border: 1px solid var(--sa-border); border-radius: 8px; background: var(--sa-surface);
}
.sa-review-card__who { display: flex; align-items: flex-start; gap: 22px; }
.sa-review-card__name { margin: 0; font-size: 16px; line-height: 19px; font-weight: 700; color: var(--sa-ink); }
.sa-review-card__resource { margin: 0; font-size: 14px; line-height: 16px; color: var(--sa-ink); }

.sa-month { display: flex; flex-direction: column; gap: 16px; }
.sa-month__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sa-month__nav { display: flex; align-items: center; gap: 8px; }
.sa-month__chevron {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 0; background: none; color: var(--sa-ink); cursor: pointer;
}
.sa-month__chevron:disabled { color: var(--sa-muted); cursor: default; }
.sa-month__grid { display: grid; grid-template-columns: repeat(7, 24px); column-gap: 48px; row-gap: 28px; }
.sa-month__dow { width: 24px; font-size: 14px; line-height: 16px; color: var(--sa-text); text-align: center; }
.sa-month__day {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; padding: 0; border: 0; background: none;
    font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-ink);
}
button.sa-month__day { cursor: pointer; }
.sa-month__day--muted { color: var(--sa-muted); }
.sa-month__day--today { font-weight: 700; color: var(--sa-primary); }
.sa-month__day--selected { border-radius: 50%; background: var(--sa-primary); color: var(--sa-surface); font-weight: 700; }

.sa-booked { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.sa-booked__mark { color: var(--sa-teal); }
.sa-booked__actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.sa-booked__dash { width: 139px; flex: none; }

@media (max-width: 991.98px) {
    .sa-schedule-host.sa-find__panel {
        position: fixed; top: var(--sa-header-height); bottom: 0;
        width: auto; left: 0; right: 0; padding: 24px;
    }
    .sa-month__grid { column-gap: 8px; row-gap: 16px; }
}

/* ---------------------------------------------------------------- consent (round C1, from docs/access/specs/consent-screens) */
/* Added once by Claude before C1 so this file stays frozen for the nine agents. Rows use the existing
   .sa-list-row; the prototype's .sa-steps/.sa-step are .sa-consent-steps/.sa-consent-step here, because
   .sa-steps already names the sign-up progress bar. */
.sa-btn--outline { background: #FFFFFF; color: var(--sa-primary); }
.sa-btn--outline:hover { background: var(--sa-primary-tint); color: var(--sa-primary); }
.sa-btn--danger { background: var(--sa-danger); border-color: var(--sa-danger); color: #FFFFFF; }
.sa-btn--danger:hover { background: #9C0002; border-color: #9C0002; }
.sa-btn--danger-outline { background: #FFFFFF; border-color: var(--sa-danger); color: var(--sa-danger); }
.sa-btn--danger-outline:hover { background: rgba(194, 0, 3, 0.06); color: var(--sa-danger); }
.sa-pill--primary { background: var(--sa-primary-tint); border: 1px solid var(--sa-primary); color: var(--sa-primary); }
.sa-pill--act { background: rgba(0, 111, 255, 0.10); border: 1px solid var(--sa-blue); color: #0052BD; }
.sa-pill--danger { background: rgba(194, 0, 3, 0.08); border: 1px solid var(--sa-danger); color: var(--sa-danger); }
.sa-select { width: 100%; height: 40px; padding: 0 12px; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); font-family: inherit; font-size: 14px; line-height: 16px; color: var(--sa-ink); }
.sa-alert { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid; border-radius: var(--sa-radius-md); font-size: 14px; line-height: 18px; }
.sa-alert--info { background: var(--sa-primary-tint-soft); border-color: var(--sa-primary-border); color: var(--sa-ink); }
.sa-alert--warn { background: rgba(239, 175, 0, 0.12); border-color: var(--sa-yellow); color: #4A3600; }
.sa-alert--ok { background: rgba(0, 172, 151, 0.10); border-color: var(--sa-teal); color: #00533F; }
.sa-alert--danger { background: rgba(194, 0, 3, 0.06); border-color: var(--sa-danger); color: #6D0002; }
.sa-tile.is-on { border-color: var(--sa-primary); background: var(--sa-primary-tint-soft); box-shadow: inset 0 0 0 1px var(--sa-primary); }
.sa-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sa-scope__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-seg { display: inline-flex; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); overflow: hidden; }
.sa-seg button { height: 28px; padding: 0 10px; border: 0; background: #FFFFFF; font-family: inherit; font-size: 12px; color: var(--sa-text); cursor: pointer; }
.sa-seg button.is-on { background: var(--sa-primary); color: #FFFFFF; font-weight: 600; }
.sa-consent-steps { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 16px; }
.sa-consent-step { display: flex; align-items: center; gap: 8px; color: var(--sa-muted); }
.sa-consent-step__n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--sa-border); border-radius: 50%; background: #FFFFFF; font-size: 12px; font-weight: 600; }
.sa-consent-step.is-on { color: var(--sa-ink); font-weight: 600; }
.sa-consent-step.is-on .sa-consent-step__n { background: var(--sa-primary); border-color: var(--sa-primary); color: #FFFFFF; }
.sa-consent-step.is-done .sa-consent-step__n { background: var(--sa-teal); border-color: var(--sa-teal); color: #FFFFFF; }
.sa-consent-text { max-height: 150px; overflow: auto; padding: 12px 14px; background: var(--sa-bg); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); font-size: 13px; line-height: 18px; color: var(--sa-ink); }
.sa-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 16px; }
.sa-table th { padding: 10px 12px; border-bottom: 1px solid var(--sa-border); text-align: left; font-weight: 600; color: var(--sa-text); white-space: nowrap; }
.sa-table td { padding: 12px; border-bottom: 1px solid var(--sa-border); color: var(--sa-ink); vertical-align: top; }
.sa-modal__box { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #FFFFFF; border-radius: var(--sa-radius-lg); box-shadow: var(--sa-shadow-pop); }
@media (max-width: 760px) { .sa-scope { grid-template-columns: 1fr; } }

/* Consent round C1 fixes (str5). Kept last so the show/hide helpers win over earlier display rules. */
.sa-history-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sa-history-table .sa-table { min-width: 560px; }
.sa-record-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sa-history-concern { background: var(--sa-primary-tint-soft); border-color: var(--sa-primary-border); }
.sa-pinned-footer { display: none; }
.sa-phone-only { display: none; }
@media (max-width: 767.98px) {
    .sa-desktop-only { display: none; }
    .sa-phone-only { display: revert; }
    .sa-modal-backdrop:has(> .sa-modal__box--sheet) { padding: 0; }
    .sa-modal__box--sheet { align-self: flex-end; max-width: none; border-radius: var(--sa-radius-lg) var(--sa-radius-lg) 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
    .sa-pinned-footer { display: block; position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--sa-bg); border-top: 1px solid var(--sa-border); }
    .sa-pinned-footer .sa-btn { width: 100%; }
}
@media print {
    .sa-record-toolbar { display: none; }
}

/* ---------------------------------------------------------------- organization round O0 (spec §9.3, §9.4) */
/* Header banner: the organization's name and who is acting there. Sits left of the header tools. */
.sa-org-banner { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
.sa-org-banner__name { font-size: 16px; line-height: 19px; font-weight: 600; color: var(--sa-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-org-banner__acting { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-switcher__seat { width: 100%; }
.sa-switcher__row[disabled] .sa-switcher__name { color: var(--sa-primary); font-weight: 500; }
/* A teleported wrapper that must not paint the page background behind a backdrop. */
.sa--bare { background: none; }
/* table: builds on .sa-table (consent round) with a scrolling wrapper, row actions, pagination. */
.sa-table-wrap { display: flex; flex-direction: column; gap: 16px; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sa-table-wrap .sa-table { min-width: 560px; }
.sa-table tbody tr:last-child td { border-bottom: 0; }
.sa-table tbody tr:hover td { background: var(--sa-primary-tint-soft); }
.sa-table__th--right, .sa-table__right { text-align: right; }
.sa-table th.sa-table__th--right { text-align: right; } /* beats .sa-table th { text-align: left } */
/* Staff pages render inside the EHR shell, whose custom.css pads every first and last
   table cell (tr td:first-child { padding-left: 47px !important }). Keep .sa-table's own padding. */
.sa-table > thead > tr > th:first-child, .sa-table > tbody > tr > td:first-child { padding-left: 12px !important; }
.sa-table > thead > tr > th:last-child, .sa-table > tbody > tr > td:last-child { padding-right: 12px; }
.sa-table__th--actions { text-align: right; width: 1%; }
.sa-table__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; }
/* On a <td> itself, flex pulls the cell out of the table: the buttons dropped below their row and ran off the edge. Keep the cell a cell. */
td.sa-table__actions { display: table-cell; text-align: right; }
td.sa-table__actions > a, td.sa-table__actions > button { display: inline-flex; }
td.sa-table__actions > * + * { margin-top: 8px; margin-left: 20px; }
td.sa-table__actions .sa-btn { white-space: normal; max-width: 180px; height: auto; min-height: 40px; padding-block: 6px; line-height: 16px; text-align: center; }
.sa-table__muted { color: var(--sa-text); }
.sa-table__pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* Stacked table (default; :stack="false" opts out). Under the sa-phone-only breakpoint each body row is a card:
   first cell = title, other cells labelled from data-label (set by the component's Alpine from the <th>s),
   actions cell = a wrapping button row at the bottom. Without JS the cards still stack, just unlabelled. */
@media (max-width: 767.98px) {
    .sa-table-wrap--stack { overflow-x: visible; }
    .sa-table-wrap--stack > .sa-table { min-width: 0; }
    .sa-table-wrap--stack > .sa-table,
    .sa-table-wrap--stack > .sa-table > tbody > tr,
    .sa-table-wrap--stack > .sa-table > tbody > tr > td { display: block; }
    .sa-table-wrap--stack > .sa-table > tbody { display: flex; flex-direction: column; gap: 12px; }
    .sa-table-wrap--stack > .sa-table > thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .sa-table-wrap--stack > .sa-table > tbody > tr { display: flex; flex-direction: column; gap: 8px; padding: 15px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td { padding: 0; border-bottom: 0; text-align: left; overflow-wrap: anywhere; }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td:first-child { padding-left: 0 !important; }
    .sa-table-wrap--stack > .sa-table > tbody > tr:hover > td { background: none; }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td:first-child { font-size: 16px; line-height: 19px; font-weight: 600; }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; line-height: 14px; font-weight: 600; color: var(--sa-text); }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td[data-label='']::before,
    .sa-table-wrap--stack > .sa-table > tbody > tr > td:first-child::before { display: none; }
    /* Mark placeholder cells explicitly; desktop retains every column. */
    .sa-table-wrap--stack > .sa-table > tbody > tr > td[data-empty='true'],
    .sa-table-wrap--stack > .sa-table > tbody > tr > td:empty { display: none; }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td.sa-table__actions,
    .sa-table-wrap--stack > .sa-table > tbody > tr > td[data-sa-cell='actions'],
    .sa-table-wrap--stack > .sa-table > tbody > tr > td:has(> .sa-table__actions) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--sa-border); white-space: normal; }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td.sa-table__actions::before,
    .sa-table-wrap--stack > .sa-table > tbody > tr > td[data-sa-cell='actions']::before,
    .sa-table-wrap--stack > .sa-table > tbody > tr > td:has(> .sa-table__actions)::before { display: none; }
    .sa-table-wrap--stack > .sa-table > tbody > tr > td > .sa-table__actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; white-space: normal; }
    /* The stacked card spaces actions with gap; the desktop margin would double it (BH #74). */
    .sa-table-wrap--stack > .sa-table > tbody > tr > td.sa-table__actions > * + * { margin: 0; }
}
/* tabs: .sa-tabs and .sa-tabs__tab exist (resource page); only the count bubble is new. */
.sa-tabs__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: var(--sa-radius-pill); background: var(--sa-surface); font-size: 12px; line-height: 14px; font-weight: 700; color: var(--sa-primary); }
.sa-tabs__tab--active .sa-tabs__count { background: var(--sa-surface); color: var(--sa-primary); }
/* slideout: .sa-slideout, __body and __foot exist (find filters); the head with a close button is new. */
.sa-modal-backdrop--end { justify-content: flex-end; }
.sa-slideout__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 40px 40px 0; }
.sa-slideout__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--sa-text); cursor: pointer; }
.sa-slideout__close:hover { background: var(--sa-primary-tint); color: var(--sa-primary); }
/* stat: a count with a label, the organization dashboard tiles. */
.sa-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.sa-stat { display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 23px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); color: inherit; }
.sa-stat--link:hover { border-color: var(--sa-primary-border); background: var(--sa-primary-tint-soft); color: inherit; }
.sa-stat__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sa-stat__value { font-size: 24px; line-height: 28px; font-weight: 700; color: var(--sa-ink); }
.sa-stat__label { font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-stat__hint { font-size: 12px; line-height: 14px; color: var(--sa-muted); }
.sa-stat__arrow { color: var(--sa-muted); }
/* role-badge: a provider role chip. */
.sa-role-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 3px 11px; border: 1px solid var(--sa-primary-border); border-radius: var(--sa-radius-pill); background: var(--sa-primary-tint); font-size: 12px; line-height: 14px; font-weight: 600; color: var(--sa-primary); white-space: nowrap; }
.sa-role-badge--access { border-color: var(--sa-teal); background: rgba(0, 172, 151, 0.10); color: var(--sa-teal); }
.sa-role-badge__category { font-weight: 400; color: var(--sa-text); }
/* reason: an ask row (category · item, domain pill, level pill, the organization's reason). */
.sa-reason { display: flex; flex-direction: column; gap: 8px; padding: 11px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); background: var(--sa-surface); }
.sa-reason--act { border-color: var(--sa-blue); }
.sa-reason__what { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-reason__category { font-size: 16px; line-height: 19px; font-weight: 600; color: var(--sa-ink); }
.sa-reason__item { font-weight: 400; color: var(--sa-text); }
.sa-reason__why { margin: 0; font-size: 14px; line-height: 16px; color: var(--sa-text); }
.sa-reason__actions { display: flex; align-items: center; gap: 12px; }
.sa-reason-list { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 991.98px) {
    .sa-org-banner__acting { display: none; }
    .sa-slideout__head { padding: 24px 16px 0; }
}

/* Label/value groups and long Attention labels in credentialing screens. */
.sa-label-values { margin: 0; }
.sa-label-values > div { display: flex; flex-direction: column; gap: 0.25rem; }
.sa-label-values dd { margin: 0; overflow-wrap: anywhere; }
.sa-attention { min-width: 10rem; }
.sa-attention .sa-pill { height: auto; min-height: 1.5rem; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Request panels retain a usable backdrop at desktop and phone widths. */
.sa-request-backdrop { justify-content: flex-end; }
.sa-request-backdrop > .sa-find__panel { position: relative; inset: auto; height: 100%; width: min(25rem, calc(100% - 1rem)); }

/* Add a client: keep long names, emails, and actions inside phone-width cards. */
.sa-addclient__page, .sa-addclient__result { min-width: 0; overflow-wrap: anywhere; }
.sa-addclient__page fieldset { min-width: 0; }
.sa-addclient__result .sa-field { min-width: 0; }
.sa-addclient__actions > .sa-btn, .sa-addclient__actions > .sa-link-btn { max-width: 100%; height: auto; min-height: 40px; white-space: normal; text-align: center; }
/* Provider directory. Filters sit beside the cards on a wide screen and stack at phone width. */
.sa-directory { min-width: 0; max-width: 100%; }
.sa-directory__layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.sa-directory__filters { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sa-directory__cards { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sa-directory__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); color: inherit; text-decoration: none; min-width: 0; max-width: 100%; }
.sa-directory__card:hover { border-color: var(--sa-primary-border); color: inherit; }
.sa-directory__card--static:hover { border-color: var(--sa-border); }
.sa-directory__photo { min-width: 0; }
.sa-directory__photo .sa-avatar { width: 112px; height: 140px; border-radius: var(--sa-radius-md); font-size: 32px; line-height: 38px; }
.sa-directory__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sa-directory__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.sa-directory__name { margin: 0; font-size: 18px; line-height: 22px; font-weight: 700; color: var(--sa-ink); overflow-wrap: anywhere; }
.sa-directory__title { margin: 0; font-size: 14px; line-height: 18px; color: var(--sa-text); overflow-wrap: anywhere; }
.sa-directory__bio { margin: 0; font-size: 14px; line-height: 18px; color: var(--sa-text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sa-directory__facts { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.sa-directory__fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-directory__fact-label { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--sa-ink); }
.sa-directory__fact dd { margin: 0; font-size: 14px; line-height: 18px; color: var(--sa-text); overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .sa-directory__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .sa-directory__card { grid-template-columns: minmax(0, 1fr); }
    .sa-directory__photo .sa-avatar { width: 96px; height: 120px; }
}
/* Private profile photo controls fit the account card at phone widths. */
.sa-profile-photo .sa-dropzone { gap: 12px; min-width: 0; }
.sa-profile-photo .sa-avatar--lg { width: 128px; height: 128px; max-width: 100%; }
.sa-profile-photo progress { width: 100%; accent-color: var(--sa-primary); }
.sa-profile-photo__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-profile-photo .sa-field__error { margin: 0; overflow-wrap: anywhere; }

/* Account navigation review #27 and #45: reserve space for seat actions and wrap long names. */
.sa-switcher { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 90px); padding: 16px; overflow-y: auto; }
.sa-switcher__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
.sa-switcher__row > .sa-avatar { width: 40px; height: 40px; }
.sa-switcher__row > .sa-pill { margin-left: 0; }
.sa-switcher__type { display: grid; grid-template-columns: 16px minmax(0, 1fr); overflow-wrap: anywhere; }
.sa-switcher__seat { min-width: 0; }
.sa-switcher__row--seat { padding: 12px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); background: var(--sa-surface); }
.sa-switcher__row--seat:not(:disabled):hover { border-color: var(--sa-primary-border); background: var(--sa-primary-tint-soft); }
.sa-switcher__row--seat:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-switcher__row--seat:disabled { background: var(--sa-primary-tint-soft); }
.sa-switcher__open { align-self: center; color: var(--sa-primary); font-size: 14px; line-height: 20px; font-weight: 500; }
.sa-account-destinations { gap: 16px; }
.sa-account-destinations .sa-stat { min-width: 0; padding: 16px; gap: 12px; text-decoration: none; }
.sa-account-destinations .sa-stat__value { font-size: 18px; line-height: 24px; overflow-wrap: anywhere; }
.sa-account-destinations .sa-stat__label { line-height: 20px; overflow-wrap: anywhere; }
.sa-account-destinations .sa-stat:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
/* Provider credentialing dashboard, section controls and compact completion row. */
.sa-credentialing-dashboard { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.sa-credentialing-dashboard .sa-stat { min-width: 0; align-items: flex-start; }
.sa-credentialing-dashboard .sa-stat__value { overflow-wrap: anywhere; }
.sa-credentialing-dashboard .sa-stat__hint { line-height: 1.5; overflow-wrap: anywhere; margin-top: 6px; }
.sa-credentialing-section-title { flex-wrap: wrap; margin-bottom: 0; }
.sa-credentialing-section-title > .sa-h1 { min-width: 0; overflow-wrap: anywhere; }
.sa-credentialing-section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sa-credentialing-section-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sa-credentialing-section-nav .sa-btn > span { display: inline-flex; align-items: center; gap: 4px; }
.sa-credentialing-finished { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); background: var(--sa-surface); font-size: 14px; line-height: 1.5; }
.sa-credentialing-finished > .sa-icon { color: var(--sa-teal); flex: 0 0 auto; }
.sa-credentialing-finished > strong { color: var(--sa-ink); }
.sa-credentialing-finished > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .sa-credentialing-section-actions { width: 100%; }
    .sa-credentialing-section-nav { width: 100%; justify-content: space-between; }
    .sa-credentialing-finished > span { flex-basis: 100%; }
}

/* Insurer inbox: contain wide tables and keep released identity columns in view. */
.sa-insurer-inbox { min-width: 0; max-width: 100%; }
.sa-insurer-inbox__summary { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.sa-insurer-inbox__summary .sa-stat { min-width: 0; padding: 16px; gap: 12px; overflow-wrap: anywhere; }
.sa-insurer-inbox__stat--active { border-color: var(--sa-primary); background: var(--sa-primary-tint-soft); box-shadow: inset 0 0 0 1px var(--sa-primary); }
.sa-insurer-inbox__filters > * { min-width: 0; max-width: 100%; }
.sa-insurer-inbox__filters input, .sa-insurer-inbox__filters select { max-width: 100%; }
.sa-insurer-inbox__table { min-width: 0; max-width: 100%; }
.sa-insurer-inbox__messages { min-height: 40px; min-width: 40px; justify-content: center; gap: 4px; }
.sa-insurer-inbox__messages .sa-tabs__count { margin-left: 0; }
.sa-card[id="requests-for-information"], .sa-card[id="messages"] { scroll-margin-top: calc(var(--sa-header-height) + 16px); }
@media (min-width: 768px) {
    .sa-insurer-inbox__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sa-insurer-inbox__table { --sa-inbox-name: 180px; --sa-inbox-npi: 120px; --sa-inbox-org: 180px; --sa-inbox-type: 90px; }
    .sa-insurer-inbox__table > .sa-table { table-layout: fixed; min-width: 1090px; border-collapse: separate; border-spacing: 0; }
    .sa-insurer-inbox__table th, .sa-insurer-inbox__table td { overflow-wrap: anywhere; background: var(--sa-surface); }
    .sa-insurer-inbox__table th { white-space: normal; overflow-wrap: normal; }
    .sa-insurer-inbox__table th:nth-child(-n+4), .sa-insurer-inbox__table td:nth-child(-n+4) { position: sticky; z-index: 1; }
    .sa-insurer-inbox__table th:nth-child(-n+4) { z-index: 2; }
    .sa-insurer-inbox__table th:nth-child(1), .sa-insurer-inbox__table td:nth-child(1) { left: 0; width: var(--sa-inbox-name); }
    .sa-insurer-inbox__table th:nth-child(2), .sa-insurer-inbox__table td:nth-child(2) { left: var(--sa-inbox-name); width: var(--sa-inbox-npi); }
    .sa-insurer-inbox__table th:nth-child(3), .sa-insurer-inbox__table td:nth-child(3) { left: calc(var(--sa-inbox-name) + var(--sa-inbox-npi)); width: var(--sa-inbox-org); }
    .sa-insurer-inbox__table th:nth-child(4), .sa-insurer-inbox__table td:nth-child(4) { left: calc(var(--sa-inbox-name) + var(--sa-inbox-npi) + var(--sa-inbox-org)); width: var(--sa-inbox-type); border-right: 1px solid var(--sa-border); }
    .sa-insurer-inbox__table th:nth-child(5) { width: 170px; }
    .sa-insurer-inbox__table th:nth-child(6) { width: 70px; }
    .sa-insurer-inbox__table th:nth-child(7) { width: 150px; }
    .sa-insurer-inbox__table th:nth-child(8) { width: 130px; }
    .sa-insurer-inbox__table tbody tr:hover td { background: var(--sa-primary-tint-soft); }
    .sa-insurer-inbox__table td > .sa-link-btn { max-width: 100%; white-space: normal; text-align: left; }
    .sa-insurer-inbox__table td:nth-child(5) > .sa-pill { margin-bottom: 4px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sa-insurer-inbox__table { --sa-inbox-name: 160px; --sa-inbox-npi: 120px; --sa-inbox-org: 160px; --sa-inbox-type: 100px; }
}
@media (max-width: 767.98px) {
    .sa-insurer-inbox__table .sa-table__pagination > .sa-row { flex-wrap: wrap; }
    .sa-insurer-inbox__table td > .sa-link-btn { max-width: 100%; white-space: normal; text-align: left; }
}

/* Insurer credential overview and focused area review, November 2026. */
.sa-review-overview { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sa-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.sa-review-heading > * { min-width: 0; overflow-wrap: anywhere; }
.sa-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sa-review-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 23px; color: var(--sa-ink); text-decoration: none; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); transition: border-color .15s, box-shadow .15s; }
.sa a.sa-review-tile { color: var(--sa-ink); }
.sa a.sa-review-tile:hover { border-color: var(--sa-primary); box-shadow: var(--sa-shadow-chrome); }
a.sa-review-tile:focus-visible { outline: 3px solid var(--sa-primary); outline-offset: 3px; }
.sa-review-tile--unreleased { background: var(--sa-surface-hidden); }
.sa-review-tile__top, .sa-review-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sa-review-tile__icon { display: inline-flex; padding: 8px; color: var(--sa-primary); background: var(--sa-primary-tint); border-radius: var(--sa-radius-md); }
.sa-review-tile h2 { font-size: 18px; line-height: 24px; margin: 0; overflow-wrap: anywhere; }
.sa-review-tile__summary { margin: 0; overflow-wrap: anywhere; }
.sa-review-tile__foot { margin-top: auto; }
.sa-review-area { min-width: 0; padding-bottom: 16px; }
.sa-review-area__navigation, .sa-review-document__toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sa-review-area__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 24px; }
.sa-review-area__layout > *, .sa-review-area .sa-card, .sa-review-area .sa-table-wrap { min-width: 0; }
.sa-review-area .sa-card { overflow-wrap: anywhere; }
.sa-review-area__layout--summary { display: block; }
.sa-review-area__layout--summary > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.sa-review-document { display: block; width: 100%; height: 680px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); background: var(--sa-surface-hidden); }
.sa-review-document--image { height: auto; max-height: 800px; object-fit: contain; }
.sa-review-details { display: grid; gap: 16px; margin: 0; }
.sa-review-details dt { color: var(--sa-muted); font-size: 12px; line-height: 18px; }
.sa-review-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
@media (min-width: 1100px) and (min-height: 780px) {
    .sa-review-overview { height: calc(100dvh - var(--sa-header-height) - 80px); }
    .sa-review-grid { flex: 1; min-height: 0; grid-template-rows: repeat(3, minmax(0, 1fr)); }
    .sa-review-tile { gap: 8px; padding: 19px; }
}
@media (max-width: 1099px) {
    .sa-review-area__layout { grid-template-columns: minmax(0, 1fr); }
    .sa-review-area__layout > aside { order: -1; }
    .sa-review-area__layout--summary > aside { display: flex; }
}
@media (max-width: 767px) {
    .sa-review-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .sa-review-grid { grid-template-columns: minmax(0, 1fr); }
    .sa-review-tile { min-height: 200px; padding: 19px; }
    .sa-review-overview { padding-bottom: 16px; }
    .sa-review-document { height: 520px; }
    .sa-review-area__navigation > * { max-width: 100%; white-space: normal; text-align: left; }
}

/* Review fixes: phones see the table without scrolling past six tall tiles; a lone last dashboard tile fills its row. */
@media (max-width: 767.98px) {
    .sa-insurer-inbox__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sa-insurer-inbox__summary .sa-stat { padding: 12px; }
    .sa-insurer-inbox__summary .sa-chip, .sa-insurer-inbox__summary .sa-stat__arrow { display: none; }
}
@media (min-width: 1100px) {
    .sa-credentialing-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sa-credentialing-dashboard > .sa-stat:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* Organization Terms of Service: legal text, at registration and on its own page. */
.sa-consent-text--long { max-height: 340px; }
.sa-legal { font-size: 14px; line-height: 22px; color: var(--sa-ink); overflow-wrap: anywhere; }
.sa-legal h1 { margin: 0 0 16px; font-size: 24px; line-height: 30px; font-weight: 600; }
.sa-legal h2 { margin: 24px 0 8px; font-size: 17px; line-height: 24px; font-weight: 600; }
.sa-legal h3 { margin: 16px 0 6px; font-size: 14px; line-height: 22px; font-weight: 600; }
.sa-legal p { margin: 0 0 10px; }
.sa-legal ul, .sa-legal ol { margin: 0 0 10px; padding-left: 22px; }
.sa-legal ul { list-style: disc; }
.sa-legal ol { list-style: decimal; }
.sa-legal li { margin-bottom: 4px; }
.sa-legal li p { margin: 0; }
.sa-consent-text.sa-legal { font-size: 13px; line-height: 19px; }
.sa-consent-text.sa-legal h1 { font-size: 17px; line-height: 24px; }
.sa-consent-text.sa-legal h2 { margin-top: 16px; font-size: 14px; line-height: 20px; }
.sa-consent-text.sa-legal h3 { font-size: 13px; line-height: 19px; }
.sa-terms-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
@media print {
    .sa-legal__actions, .sa-panel__foot { display: none; }
    .sa-guest { padding: 0; }
    .sa-panel { border: 0; padding: 0; box-shadow: none; }
}

/* Searchable single choice (insurance plan): one field that filters its own list (BH #79). */
.sa-combo { position: relative; }
.sa-combo__box { position: relative; }
.sa-combo__input { padding-right: 40px; }
.sa-combo__chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--sa-text); pointer-events: none; }
.sa-combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 260px; overflow-y: auto; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); box-shadow: var(--sa-shadow-chrome); }
.sa-combo__opt { padding: 8px 14px; cursor: pointer; color: var(--sa-ink); line-height: 20px; }
.sa-combo__opt[aria-selected='true'] { font-weight: 600; color: var(--sa-primary); }
.sa-combo__opt--active { background: var(--sa-primary-tint); }
.sa-combo__opt--clear { color: var(--sa-text); border-bottom: 1px solid var(--sa-divider); }
.sa-combo__empty { padding: 8px 14px; color: var(--sa-text); }

/* An organization's own form in My Files: name, who asked, status, then actions (BH #84). */
.sa-org-form { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-org-form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sa-org-form__file { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.sa-org-form__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }


/* Long checklists: a field to narrow the options (BH StrongerAccess #81). */
.sa-narrow { max-width: 360px; }

/* ==========================================================================
   BH-access-85 free first consultations. Each section adds its rules ONLY
   inside its own block below, so parallel work merges cleanly.
   ========================================================================== */

/* == consult:hours (organization consultation hours) == */
.sa-consult-hours { min-width: 0; }
.sa-consult-hours__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sa-consult-hours__card { display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow-wrap: anywhere; }
.sa-consult-hours__week { display: flex; flex-direction: column; margin: 0; }
.sa-consult-hours__day { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sa-border); }
.sa-consult-hours__day dd { margin: 0; min-width: 0; }
.sa-consult-hours__window { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.sa-consult-hours__controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.sa-consult-hours__controls > .sa-field { flex: 1 1 125px; min-width: 0; }
.sa-consult-hours__next { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-consult-hours__chip { padding: 4px 10px; border-radius: 999px; background: var(--sa-primary-50, #EEF0FF); color: var(--sa-ink); font-size: 14px; }
.sa-consult-hours__day { align-items: baseline; }
.sa-consult-hours__window .sa-link-btn, .sa-consult-hours__window button { min-height: 32px; }
@media (min-width: 1200px) {
    .sa-consult-hours__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
/* == end consult:hours == */

/* == consult:calendar-connection (outside calendar in and out) == */

.sa-consult-cal { width: 100%; max-width: 40rem; min-width: 0; }
.sa-consult-cal__url { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.sa-consult-cal__code { flex: 1 1 12rem; min-width: 0; margin: 0; padding: 8px 12px; background: var(--sa-bg); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); font: inherit; color: var(--sa-ink); }
.sa-consult-cal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sa-consult-cal__feedline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 480px) {
    .sa-consult-cal__actions > .sa-btn { flex: 1 1 100%; white-space: normal; height: auto; min-height: 40px; text-align: center; }
}

.sa-consult-cal__confirm { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }

/* == end consult:calendar-connection == */

/* == consult:booking (directory open times and client booking) == */

.sa-consult-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; min-width: 0; }
.sa-consult-offer .sa-btn { max-width: 100%; height: auto; min-height: 40px; white-space: normal; text-align: center; }
.sa-consult-offer--compact { align-items: stretch; gap: 6px; }
.sa-consult-offer--compact .sa-strong { font-size: 14px; font-weight: 600; }
.sa-consult-booking { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; overflow-wrap: anywhere; }
.sa-consult-booking__panel { border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); padding: 20px; }
.sa-consult-booking__progress { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--sa-text); }
.sa-consult-booking__progress [aria-current="step"] { color: var(--sa-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.sa-consult-booking__day { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--sa-border); }
.sa-consult-booking__times { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.sa-consult-booking__times .sa-btn { min-height: 44px; }
.sa-consult-booking__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sa-consult-booking__actions .sa-btn { min-height: 44px; white-space: normal; }
.sa-consult-booking__reason { min-height: 120px; resize: vertical; }
.sa-consult-booking__checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sa-consult-booking__checkbox input { flex: 0 0 auto; margin-top: 4px; width: 18px; height: 18px; }
.sa-consult-booking__intake { white-space: pre-wrap; }
.sa-consult-booking p { margin: 0; }
.sa-consult-booking__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sa-consult-booking__provider { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 64px; padding: 12px 44px 12px 16px; text-align: left; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); color: var(--sa-ink); cursor: pointer; font: inherit; }
.sa-consult-booking__provider:hover, .sa-consult-booking__provider:focus-visible { border-color: var(--sa-primary); outline: none; box-shadow: 0 0 0 3px rgba(80, 90, 255, .15); }
.sa-consult-booking__provider-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--sa-primary); }
.sa-consult-booking__with { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sa-consult-booking__crisis { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-left: 4px solid var(--sa-danger); background: #FFFFFF; border-radius: var(--sa-radius-md); }
.sa-consult-booking__crisis summary { cursor: pointer; color: var(--sa-primary); min-height: 32px; display: flex; align-items: center; }
.sa-consult-booking__crisis details[open] summary { margin-bottom: 8px; }
.sa-consult-booking__facts { display: grid; gap: 10px; margin: 0; }
.sa-consult-booking__facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 16px; }
.sa-consult-booking__facts dt { color: var(--sa-text); font-size: 14px; }
.sa-consult-booking__facts dd { margin: 0; font-weight: 500; min-width: 0; }
@media (max-width: 600px) { .sa-consult-booking__facts > div { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .sa-consult-booking { padding: 16px 0 32px; }
    .sa-consult-booking__panel { padding: 16px; }
    .sa-consult-booking__actions { flex-direction: column; align-items: stretch; }
    .sa-consult-booking__actions--submit { flex-direction: column-reverse; }
    .sa-detail__action:has(.sa-consult-offer) { max-width: 100%; min-width: 0; }
}


/* == end consult:booking == */

/* == consult:video (StrongerAccess video room) == */

.sa-cv-body { min-height: 100vh; background: var(--sa-bg); }
.sa-cv-header { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 24px; background: #FFFFFF; border-bottom: 1px solid var(--sa-border); box-shadow: var(--sa-shadow-chrome); }
.sa-cv-header__logo { display: block; height: 32px; width: auto; }
.sa-cv-header__org { padding-left: 16px; border-left: 1px solid var(--sa-divider); font-size: 14px; line-height: 18px; color: var(--sa-ink); overflow-wrap: anywhere; }
.sa-cv { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 24px 40px; box-sizing: border-box; }
.sa-cv-intro { display: flex; flex-direction: column; gap: 6px; }
.sa-cv-intro__eyebrow { text-transform: none; font-weight: 600; color: var(--sa-primary); }
.sa-cv-intro__time { display: flex; align-items: center; gap: 6px; }
.sa-cv-intro__time .sa-icon { font-size: 18px; color: var(--sa-primary); }
.sa-cv-state { align-items: center; gap: 12px; padding: 40px 24px; text-align: center; }
.sa-cv-state__icon { font-size: 40px; color: var(--sa-primary); }
.sa-cv-prejoin { gap: 16px; max-width: 640px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.sa-cv-preview { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sa-ink); border-radius: var(--sa-radius-md); }
.sa-cv-preview__empty { color: #FFFFFF; }
.sa-cv-preview .OT_publisher, .sa-cv-self .OT_publisher { position: absolute !important; inset: 0; }
.sa-cv-devices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sa-cv-prejoin__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sa-cv-error { color: var(--sa-danger); font-size: 14px; line-height: 18px; }
.sa-cv-call { display: flex; flex-direction: column; gap: 12px; }
.sa-cv-call[hidden], .sa-cv-state[hidden], .sa-cv-prejoin[hidden], .sa-cv-error[hidden] { display: none; }
.sa-cv-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 260px); min-height: 280px; overflow: hidden; background: var(--sa-ink); border-radius: var(--sa-radius-lg); }
.sa-cv-remote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sa-cv-remote__waiting { margin: 0; padding: 0 24px; color: #FFFFFF; font-size: 16px; line-height: 22px; text-align: center; }
.sa-cv-remote__waiting[hidden] { display: none; }
.sa-cv-remote__stream { position: absolute; inset: 0; }
.sa-cv-remote__stream .OT_subscriber { position: absolute !important; inset: 0; }
.sa-cv-remote__label { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; background: rgba(31, 42, 61, 0.72); border-radius: var(--sa-radius-pill); color: #FFFFFF; font-size: 13px; line-height: 16px; }
.sa-cv-self { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 22%; min-width: 120px; max-width: 240px; aspect-ratio: 4 / 3; overflow: hidden; background: #000000; border: 2px solid #FFFFFF; border-radius: var(--sa-radius-md); box-shadow: var(--sa-shadow-pop); }
.sa-cv-controls { display: flex; justify-content: center; gap: 16px; padding: 8px 0; }
.sa-cv-control { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--sa-border); border-radius: 50%; background: #FFFFFF; color: var(--sa-ink); cursor: pointer; }
.sa-cv-control .sa-icon { font-size: 26px; color: inherit; }
.sa-cv-control:hover { background: var(--sa-primary-tint); }
.sa-cv-control:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.sa-cv-control--off { background: var(--sa-ink); border-color: var(--sa-ink); color: #FFFFFF; }
.sa-cv-control--off:hover { background: #2E3B52; }
.sa-cv-control--leave { background: var(--sa-danger); border-color: var(--sa-danger); color: #FFFFFF; }
.sa-cv-control--leave:hover { background: #9C0002; border-color: #9C0002; }
.sa-cv-crisis { padding: 12px 16px; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); font-size: 14px; line-height: 18px; color: var(--sa-ink); }
.sa-cv-crisis summary { cursor: pointer; color: var(--sa-primary); }
.sa-cv-crisis__body { padding-top: 12px; }
@media (max-width: 640px) {
    .sa-cv-header { padding: 8px 16px; }
    .sa-cv-header__logo { height: 26px; }
    .sa-cv { padding: 16px 16px 32px; gap: 16px; }
    .sa-cv-devices { grid-template-columns: 1fr; }
    .sa-cv-prejoin__actions .sa-btn { width: 100%; }
    .sa-cv-stage { aspect-ratio: 3 / 4; max-height: calc(100vh - 220px); }
    .sa-cv-self { width: 32%; min-width: 96px; right: 8px; bottom: 8px; }
    .sa-cv-controls { position: sticky; bottom: 0; z-index: 5; background: var(--sa-bg); padding: 12px 0; }
}

/* == end consult:video == */

/* == consult:calendars (client and organization calendars, upsell) == */

.sa-consult-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sa-consult-connect {
    align-self: center;
    overflow-wrap: anywhere;
}

.sa-consult-panel {
    margin-top: 8px;
}

.sa-consult-upsell {
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .sa-consult-actions > .sa-btn,
    .sa-consult-actions > a.sa-btn {
        flex: 1 1 100%;
    }
}

/* == end consult:calendars == */

/* == drive:page == */
/* My Drive (BugHerd #26). Tokens only; layout follows the desktop list and the phone list, action sheet and add sheet. */
.sa-drive-page { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 100%; }
.sa-drive-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; position: relative; z-index: 6; }
.sa-drive-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sa-drive-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sa-drive-head__actions .sa-btn { height: 44px; min-height: 44px; }
.sa-drive-head__actions .sa-dropdown > .sa-btn::before { content: "add"; font-family: "Material Symbols Outlined"; font-size: 18px; font-weight: normal; line-height: 1; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.sa-drive-lead { margin: 0; }
.sa-drive-lead--phone { display: none; }
.sa-drive-lead--warn { color: #9A4A00; }

.sa-drive-search { display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 280px; max-width: 100%; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); background: var(--sa-surface); color: var(--sa-text); min-width: 0; }
.sa-drive-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; box-shadow: none; font: inherit; font-size: 14px; line-height: 16px; color: var(--sa-ink); }
.sa-drive-search input::placeholder { color: var(--sa-muted); }
.sa-drive-search .sa-icon { font-size: 18px; color: var(--sa-text); }
.sa-drive-search:focus-within { border-color: var(--sa-primary); box-shadow: 0 0 0 3px rgba(83, 91, 255, 0.15); }
.sa-drive-search--phone { display: none; }
.sa-drive-tabs--phone { display: none; }

.sa-drive-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-drive-card--over { border-color: var(--sa-primary); }
.sa-drive-card__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--sa-border); }
.sa-drive-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; padding: 14px 20px 6px; font-size: 14px; line-height: 18px; }
.sa-drive-crumbs__sep { color: var(--sa-text); }
.sa-drive-crumbs__here { color: var(--sa-ink); }
.sa-drive-deleted { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 0; }
.sa-drive-deleted .sa-small { margin: 0; }

.sa-drive-page .sa-table-wrap { overflow: visible; }
.sa-drive-page .sa-table-wrap .sa-table { min-width: 0; }
.sa-drive-page .sa-table th:first-child,
.sa-drive-page .sa-table td:first-child { padding-left: 20px; }
.sa-drive-page .sa-table th:last-child,
.sa-drive-page .sa-table td:last-child { padding-right: 8px; }
.sa-drive-page .sa-table th.sa-table__th--actions { width: 68px; color: transparent; }
.sa-drive-page .sa-table__muted { font-variant-numeric: tabular-nums; }
.sa-drive-menu--open { z-index: 5; }
.sa-drive-page tr:has(.sa-drive-menu--open) { position: relative; z-index: 4; }
.sa-drive-page .sa-popmenu__item.sa-drive-danger,
.sa-drive-page .sa-popmenu__item.sa-drive-danger:hover { color: var(--sa-danger); }

.sa-drive-name,
.sa-drive-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--sa-ink); text-decoration: none; }
.sa a.sa-drive-name:hover,
.sa a.sa-drive-row__main:hover { color: var(--sa-ink); text-decoration: none; }
.sa-drive-name__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.sa-drive-name__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sa-drive-name__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--sa-ink); }
.sa-drive-name__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 16px; color: var(--sa-text); }
.sa-drive-name__line .sa-icon { flex: none; font-size: 16px; color: var(--sa-yellow); }

.sa-drive-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: var(--sa-radius); font-size: 10px; font-weight: 700; letter-spacing: 0.4px; line-height: 1; overflow: hidden; }
.sa-drive-badge .sa-icon { font-size: 20px; color: inherit; }
.sa-drive-badge--doc { background: #E6F0FF; color: #1F4FB8; }
.sa-drive-badge--pdf { background: #FDECEC; color: #A30003; }
.sa-drive-badge--image { background: #E3F6F3; color: #00695C; }
.sa-drive-badge--sheet { background: #E7F5EA; color: #166534; }
.sa-drive-badge--slides { background: #FFF1E0; color: #9A4A00; }
.sa-drive-badge--folder { background: #EEECFF; color: #535BFF; }
.sa-drive-badge--text,
.sa-drive-badge--file { background: #F2F2F2; color: #1F2A3D; }

.sa-drive-more { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--sa-radius); background: none; color: var(--sa-text); cursor: pointer; }
.sa-drive-more:hover { background: var(--sa-primary-tint); }
.sa-drive-more .sa-icon { font-size: 20px; color: inherit; }
.sa-drive-more:focus-visible,
.sa-drive-tree__button:focus-visible,
.sa-drive-action:focus-visible,
.sa-drive-choice:focus-visible,
.sa-drive-fab:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }

.sa-drive-list { display: none; list-style: none; margin: 0; padding: 0; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); overflow: hidden; }
.sa-drive-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 4px 10px 14px; border-bottom: 1px solid var(--sa-border); }
.sa-drive-row:last-child { border-bottom: 0; }
.sa-drive-row__main { flex: 1 1 auto; }

.sa-drive-usage { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--sa-text); font-size: 14px; line-height: 16px; }
.sa-drive-usage__track { display: block; flex: none; width: 160px; max-width: 40%; height: 6px; border-radius: var(--sa-radius-pill); background: var(--sa-primary-tint); overflow: hidden; }
.sa-drive-usage__bar { display: block; height: 100%; background: var(--sa-primary); }
.sa-drive-usage__label { font-variant-numeric: tabular-nums; }
.sa-drive-usage--warn .sa-drive-usage__bar { background: var(--sa-yellow); }
.sa-drive-usage--warn .sa-drive-usage__label { color: #9A4A00; }
.sa-drive-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.sa-drive-hint { font-size: 13px; line-height: 16px; color: var(--sa-text); }

.sa-drive-drop { position: absolute; inset: 8px; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px; border: 2px dashed var(--sa-primary); border-radius: var(--sa-radius); background: rgba(238, 236, 255, 0.94); color: var(--sa-primary); font-size: 16px; font-weight: 600; text-align: center; }
.sa-drive-drop p { margin: 0; }

.sa-drive-uploads { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 20px 4px; }
.sa-drive-uploads .sa-strong { margin: 0; }
.sa-drive-upload { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sa-drive-upload__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; font-size: 14px; line-height: 18px; color: var(--sa-ink); }
.sa-drive-upload__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-drive-upload__status { flex: none; color: var(--sa-text); font-variant-numeric: tabular-nums; }
.sa-drive-meter { display: block; height: 6px; border-radius: var(--sa-radius-pill); background: var(--sa-primary-tint); overflow: hidden; }
.sa-drive-meter__bar { display: block; height: 100%; width: 0; background: var(--sa-primary); }
.sa-drive-meter__bar.is-done { background: var(--sa-teal); }
.sa-drive-meter__bar.is-error { background: var(--sa-danger); }

.sa-drive-panel,
.sa-drive-confirm { display: flex; flex-direction: column; gap: 12px; margin: 12px 20px; padding: 16px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); background: var(--sa-primary-tint-soft); }
.sa-drive-confirm { background: var(--sa-surface); border-color: var(--sa-danger); }
.sa-drive-panel__actions,
.sa-drive-confirm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sa-drive-tree { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.sa-drive-tree__button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; padding-left: calc(12px + var(--sa-drive-depth, 0) * 16px); border: 0; border-radius: var(--sa-radius); background: none; font: inherit; font-size: 15px; line-height: 18px; color: var(--sa-ink); text-align: left; cursor: pointer; }
.sa-drive-tree__button:hover { background: var(--sa-surface); }

.sa-drive-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 20px 24px; }
.sa-drive-empty .sa-btn { min-height: 44px; }

.sa-drive-fab { display: none; position: fixed; right: 16px; bottom: 24px; z-index: 40; align-items: center; gap: 8px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: var(--sa-radius-pill); background: var(--sa-primary); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; box-shadow: 0 4px 12px rgba(83, 91, 255, 0.35); cursor: pointer; }
.sa-drive-fab .sa-icon { font-size: 20px; color: #fff; }

.sa-drive-sheet { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; }
.sa-drive-sheet__backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(31, 42, 61, 0.45); cursor: pointer; }
.sa-drive-sheet__panel { position: relative; display: flex; flex-direction: column; gap: 14px; max-height: min(80vh, 640px); padding: 10px 16px calc(28px + env(safe-area-inset-bottom, 0px)); overflow: auto; border-radius: 16px 16px 0 0; background: var(--sa-surface); }
.sa-drive-sheet__grip { align-self: center; width: 40px; height: 4px; border-radius: var(--sa-radius-pill); background: var(--sa-divider); }
.sa-drive-sheet__file { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 4px 14px; border-bottom: 1px solid var(--sa-border); }
.sa-drive-sheet__uploads { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 6px; border-top: 1px solid var(--sa-border); }
.sa-drive-sheet__uploads .sa-drive-uploads,
.sa-drive-sheet .sa-drive-uploads { padding: 0; }
.sa-drive-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sa-drive-choice { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); background: var(--sa-surface); color: var(--sa-ink); font: inherit; font-size: 15px; font-weight: 500; line-height: 18px; text-align: left; cursor: pointer; }
.sa-drive-choice .sa-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sa-primary-tint); color: var(--sa-primary); font-size: 18px; }
.sa-drive-action { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 0 8px; border: 0; border-radius: var(--sa-radius); background: none; color: var(--sa-ink); font: inherit; font-size: 16px; line-height: 20px; text-align: left; text-decoration: none; cursor: pointer; }
.sa a.sa-drive-action,
.sa a.sa-drive-action:hover { color: var(--sa-ink); text-decoration: none; }
.sa-drive-action.sa-drive-danger,
.sa a.sa-drive-action.sa-drive-danger,
.sa a.sa-drive-action.sa-drive-danger:hover { color: var(--sa-danger); }
.sa-drive-action .sa-icon { width: 24px; font-size: 20px; color: inherit; }
.sa-drive-newdoc__list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sa-drive-sheet .sa-drive-newdoc__list { align-items: stretch; }
.sa-drive-sheet .sa-tiny { margin: 0; }

@media (min-width: 768px) {
    .sa-drive-fab,
    .sa-drive-sheet { display: none !important; }
}

@media (max-width: 767.98px) {
    .sa-drive-page { padding-bottom: 88px; }
    .sa-drive-head__actions,
    .sa-drive-lead--desk,
    .sa-drive-card__bar,
    .sa-drive-card__foot,
    .sa-drive-table { display: none; }
    .sa-drive-lead--phone { display: block; }
    .sa-drive-search--phone { display: flex; width: 100%; height: 44px; }
    .sa-drive-search--phone input { font-size: 15px; }
    .sa-drive-tabs--phone { display: block; min-width: 0; }
    .sa-drive-tabs--phone .sa-tabs { gap: 6px; }
    .sa-drive-tabs--phone .sa-tabs__tab { min-height: 44px; border-radius: var(--sa-radius-pill); }
    .sa-drive-card { background: transparent; border: 0; }
    .sa-drive-list { display: block; }
    .sa-drive-badge { width: 40px; height: 40px; }
    .sa-drive-crumbs a,
    .sa-drive-crumbs__here { display: inline-flex; align-items: center; min-height: 44px; }
    .sa-drive-page .sa-btn,
    .sa-drive-page .sa-link-btn { min-height: 44px; }
    .sa-drive-fab { display: inline-flex; }
    .sa-drive-deleted,
    .sa-drive-uploads,
    .sa-drive-crumbs { padding-left: 0; padding-right: 0; }
    .sa-drive-panel,
    .sa-drive-confirm { margin-left: 0; margin-right: 0; }
}
.sa-drive-newdoc__form { display: contents; }
.sa-drive-newdoc__form > button { font: inherit; cursor: pointer; text-align: left; }
/* == /drive:page == */

/* == drive:viewer == */
.sa-drive-viewer { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sa-drive-viewer__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sa-drive-viewer__identity { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 360px; }
.sa-drive-viewer__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; flex-shrink: 0; font-size: 14px; font-weight: 500; }
.sa-drive-viewer__badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--sa-radius); font-size: 10px; font-weight: 700; }
.sa-drive-viewer__badge--pdf { background: #FDECEC; color: #A30003; }
.sa-drive-viewer__badge--image { background: #E3F6F3; color: #00695C; }
.sa-drive-viewer__details { min-width: 0; }
.sa-drive-viewer__title { font-size: 20px; line-height: 24px; font-weight: 500; overflow-wrap: anywhere; }
.sa-drive-viewer__meta { margin: 4px 0 0; color: var(--sa-text); font-size: 13px; line-height: 20px; }
.sa-drive-viewer__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-drive-viewer__actions .sa-btn { min-height: 44px; }
.sa-drive-viewer__panel { display: flex; align-items: center; justify-content: center; width: 100%; height: max(70vh, calc(100dvh - 208px)); min-height: 70vh; overflow: hidden; background: #FFFFFF; border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); }
.sa-drive-viewer__pdf { display: block; width: 100%; height: 100%; border: 0; }
.sa-drive-viewer__image { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) {
    .sa-main.sa-drive-viewer-main { padding-left: 0; padding-right: 0; }
    .sa-drive-viewer__header { flex-direction: column; align-items: stretch; padding: 0 16px; gap: 16px; }
    .sa-drive-viewer__identity { display: grid; grid-template-columns: 40px minmax(0, 1fr); flex-basis: auto; gap: 8px 12px; }
    .sa-drive-viewer__back { grid-column: 1 / -1; justify-self: start; }
    .sa-drive-viewer__actions .sa-btn { flex: 1; }
    .sa-drive-viewer__panel { border-radius: 0; }
}
/* == /drive:viewer == */

/* == drive:editor == */
/* My Drive editor (BugHerd #26): Collabora framed alone under a StrongerAccess header. */
.sa-main--editor { min-height: 100vh; min-height: 100dvh; gap: 0; padding: calc(var(--sa-header-height) + 20px) 32px 24px calc(var(--sa-sidebar-width) + 32px); }
.sa-drive-editor { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-height: 0; min-width: 0; }
.sa-drive-editor__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sa-drive-editor__title { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.sa .sa-drive-editor__back { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 8px; border-radius: var(--sa-radius); font-size: 14px; font-weight: 500; color: var(--sa-primary); text-decoration: none; flex: 0 0 auto; }
.sa .sa-drive-editor__back:hover { background: var(--sa-primary-tint); color: var(--sa-primary-hover); text-decoration: none; }
.sa-drive-editor__back .sa-icon { font-size: 20px; }
.sa-drive-editor__badge { flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--sa-radius); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; letter-spacing: 0.2px; background: #E6F0FF; color: #1F4FB8; }
.sa-drive-editor__badge--sheet { background: #E3F6EC; color: #11734B; }
.sa-drive-editor__badge--slides { background: #FFEFE3; color: #B4530A; }
.sa-drive-editor__badge--text { background: #EEF0F6; color: #434B5C; }
.sa-drive-editor__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-drive-editor__h1 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 500; color: var(--sa-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-drive-editor__status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; color: var(--sa-text); }
.sa-drive-editor__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sa-muted); flex: 0 0 auto; }
.sa-drive-editor__status[data-state="saved"] .sa-drive-editor__dot { background: var(--sa-teal); }
.sa-drive-editor__status[data-state="saving"] .sa-drive-editor__dot { background: var(--sa-primary); }
.sa-drive-editor__status[data-state="unsaved"] .sa-drive-editor__dot { background: var(--sa-yellow); }
.sa-drive-editor__status[data-state="failed"] .sa-drive-editor__dot { background: var(--sa-danger); }
.sa-drive-editor__status[data-state="failed"] { color: var(--sa-danger); }
.sa-drive-editor__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-drive-editor__actions .sa-btn { min-height: 44px; }
.sa-drive-editor__panel { flex: 1 1 auto; display: flex; min-height: 70vh; background: var(--sa-surface); border: 1px solid var(--sa-border); border-radius: var(--sa-radius-md); overflow: hidden; }
.sa-drive-editor__frame { display: block; flex: 1 1 auto; width: 100%; height: 100%; min-height: 70vh; border: 0; background: var(--sa-surface); }
.sa-drive-editor__form[hidden] { display: none; }
.sa-drive-editor__fallback { display: flex; justify-content: center; }

/* Desktop: the editor fills exactly the window under the header, so Collabora (which sizes itself to its frame) never leaves a strip or makes the page scroll. */
@media (min-width: 768px) {
    .sa-main--editor { height: 100vh; height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
    .sa-drive-editor__panel { min-height: 480px; }
    .sa-drive-editor__frame { min-height: 0; height: 100%; }
}

@media (max-width: 767.98px) {
    .sa-main--editor { padding: calc(var(--sa-header-height) + 12px) 16px 16px; }
    .sa-drive-editor { gap: 12px; }
    .sa-drive-editor__bar { flex-direction: column; align-items: stretch; }
    .sa-drive-editor__title { flex: 0 0 auto; gap: 10px; flex-wrap: wrap; }
    .sa .sa-drive-editor__back { padding: 0 8px 0 0; }
    .sa-drive-editor__name { flex: 1 1 0; }
    .sa-drive-editor__h1 { font-size: 18px; line-height: 22px; }
    .sa-drive-editor__actions > .sa-btn { flex: 1 1 0; }
    .sa-drive-editor__panel { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; min-height: calc(100dvh - var(--sa-header-height) - 160px); }
    .sa-drive-editor__frame { min-height: max(70vh, calc(100dvh - var(--sa-header-height) - 160px)); }
}
/* == /drive:editor == */

/* ==========================================================================
   Organization verification (2026-11-09). Each section adds rules ONLY
   inside its own block below.
   ========================================================================== */

/* == orgverify:applicant (registration, claim and verification steps) == */

.sa-orgverify {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.sa-orgverify__lead,
.sa-orgverify__hint {
    margin: 0;
    overflow-wrap: anywhere;
}

.sa-orgverify__checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sa-orgverify__check {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sa-border);
    min-width: 0;
}

.sa-orgverify__check:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sa-orgverify__label,
.sa-orgverify__status {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sa-orgverify__status {
    flex: none;
    font-weight: 600;
    color: var(--sa-ink);
}

.sa-orgverify__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.sa-orgverify__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 640px) {
    .sa-orgverify__check {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sa-orgverify__actions > .sa-btn,
    .sa-orgverify__actions > button.sa-btn {
        flex: 1 1 100%;
    }
}

/* == end orgverify:applicant == */

/* == orgverify:staff (staff review queue) == */



/* == end orgverify:staff == */

/* == orgverify:gate (waiting banners and notices) == */

.sa-orgverify-banner__notice {
    display: block;
    margin-top: 4px;
}

.sa-orgverify-invite-blocked {
    max-width: 320px;
}

/* == end orgverify:gate == */

/* ---------------------------------------------------------------- org verification (staff detail) */
.sa-ov { max-width: 1100px; }
.sa-ov__facts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: stretch; }
.sa-ov__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 0; }
.sa-ov__dl > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sa-ov__dl > .sa-ov__wide { grid-column: 1 / -1; }
.sa-ov__dl dt { margin: 0; font-size: 14px; line-height: 16px; font-weight: 400; color: var(--sa-text); }
.sa-ov__dl dd { margin: 0; font-size: 16px; line-height: 19px; color: var(--sa-ink); overflow-wrap: anywhere; }
.sa-ov__phone { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--sa-primary); text-decoration: none; font-variant-numeric: tabular-nums; }
a.sa-ov__phone { align-self: flex-start; }
a.sa-ov__phone:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
    .sa-ov__facts { grid-template-columns: minmax(0, 1fr); }
    .sa-ov__dl { grid-template-columns: minmax(0, 1fr); }
}

/* === verification-settings === */
.sa-vs { max-width: 1100px; }
.sa-vs__pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sa-vs__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sa-vs__head .sa-switch { font-size: 16px; line-height: 19px; font-weight: 600; gap: 8px; }
.sa-vs__confirm { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--sa-primary-border); border-radius: var(--sa-radius-md); background: var(--sa-primary-tint-soft); }
.sa-vs__source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sa-vs__mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--sa-ink); margin-left: 8px; }
.sa-vs__sub { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.sa-vs__days { max-width: 220px; }
.sa-vs .sa-table__actions .sa-btn { white-space: nowrap; }
.sa-vs .sa-field { max-width: 480px; }
.sa-vs__dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.sa-vs__dl > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sa-vs__dl dt { margin: 0; font-size: 14px; line-height: 16px; font-weight: 400; color: var(--sa-text); }
.sa-vs__dl dd { margin: 0; font-size: 16px; line-height: 19px; color: var(--sa-ink); overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .sa-vs__dl { grid-template-columns: minmax(0, 1fr); }
    .sa-vs .sa-field, .sa-vs__days { max-width: none; }
}
/* === end verification-settings === */
