/* Layout only. Colour, type, buttons, fields, cards come from SM360.UI.
   The Portal's interim AA roles live in css/thruu-tokens.css, the only Portal file that may own a colour. */

.sm360-form-row.thruu-compact {
    align-items: flex-end;
    flex-wrap: wrap;
}

.thruu-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.75rem;
    margin-bottom: var(--sm360-space-3);
}

.thruu-stat {
    background: var(--sm360-white);
    border: 1px solid var(--sm360-border-secondary);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.thruu-stat.is-alert { border-color: var(--thruu-status-danger-text); background: var(--sm360-bg-primary); }
.thruu-stat.is-warn { border-color: var(--thruu-status-warning-text); background: var(--sm360-bg-primary); }

.thruu-stat-label { color: var(--sm360-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
.thruu-stat-value { font-size: 1.35rem; font-weight: 600; color: var(--sm360-text-primary); font-variant-numeric: tabular-nums; font-family: var(--sm360-font-heading); }
.thruu-stat-note { color: var(--sm360-text-muted); font-size: 0.78rem; }

.thruu-goal { display: flex; flex-direction: column; gap: 0.5rem; }
.thruu-goal-figure { display: flex; align-items: baseline; gap: 0.5rem; }
.thruu-goal-figure strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; font-family: var(--sm360-font-heading); }
.thruu-goal-figure span { color: var(--sm360-text-muted); font-size: 0.85rem; }

.thruu-goal-bar {
    background: var(--sm360-border-secondary);
    border-radius: 999px;
    height: 0.5rem;
    overflow: hidden;
}

.thruu-goal-fill { display: block; height: 100%; background: var(--sm360-teal); }

.thruu-goal-pace {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--sm360-text-muted);
    font-size: 0.82rem;
}

.thruu-pace-behind { color: var(--thruu-status-danger-text); }
.thruu-pace-ahead { color: var(--thruu-status-success-text); }

.thruu-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.thruu-today-card {
    background: var(--sm360-white);
    border: 1px solid var(--sm360-border-secondary);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
}

.thruu-today-card.is-alert { border-color: var(--thruu-status-danger-text); }

.thruu-today-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.thruu-today-head h2 { font-size: 1rem; margin: 0; }
.thruu-today-count { background: color-mix(in srgb, var(--sm360-text-primary) 8%, transparent); border-radius: 999px; font-size: 0.72rem; padding: 0.05rem 0.45rem; }

.thruu-today-empty { color: var(--sm360-text-muted); font-size: 0.82rem; margin: 0.5rem 0 0; }

.thruu-today-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.5rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-top: 1px solid var(--sm360-bg-tertiary);
    text-decoration: none;
}

.thruu-today-name { color: var(--sm360-text-primary); font-weight: 600; }
.thruu-today-name:hover { text-decoration: underline; }
.thruu-today-meta { display: flex; gap: 0.6rem; color: var(--sm360-text-muted); font-size: 0.78rem; grid-column: 1; }
.thruu-today-value { color: var(--sm360-text-secondary); font-size: 0.8rem; grid-row: 1; grid-column: 2; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mentora platform bank administration follows the SDK admin plate: a narrow
   bank navigator, a spacious editor, and explicit draft/release state. */
.mentora-admin-page { max-width: 1440px; }
.mentora-admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.mentora-admin-kicker { color: var(--sm360-text-muted); font-size: .75rem; letter-spacing: .06em; margin: 0 0 .25rem; text-transform: uppercase; }
.mentora-release-badge, .mentora-status { border: 1px solid var(--sm360-border-primary); border-radius: 999px; display: inline-flex; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; white-space: nowrap; }
.mentora-release-badge, .status-draft { background: var(--sm360-bg-primary); border-color: var(--thruu-status-warning-text); color: var(--thruu-status-warning-text); }
.mentora-admin-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mentora-admin-sidebar { border-right: 1px solid var(--sm360-border-secondary); display: flex; flex-direction: column; gap: .2rem; padding: .35rem .9rem .35rem 0; }
/* issue 891: every bank sidebar link is a 52px touch target (min-height and min-width), so it never shrinks to its text. */
.mentora-admin-sidebar a { align-items: center; border-radius: .35rem; box-sizing: border-box; color: var(--sm360-text-secondary); display: flex; min-height: 52px; min-width: 52px; padding: .45rem .55rem; text-decoration: none; }
.mentora-admin-sidebar a:hover, .mentora-admin-sidebar a.is-current { background: var(--sm360-bg-tertiary); color: var(--sm360-text-primary); font-weight: 600; }
.mentora-admin-sidebar-title { color: var(--sm360-text-primary); font-size: .78rem; font-weight: 700; margin: 0 0 .35rem; }
.mentora-admin-sidebar-section { border-top: 1px solid var(--sm360-border-secondary); margin-top: .7rem; padding-top: .9rem; }
.mentora-admin-content { min-width: 0; }
.mentora-admin-toolbar, .mentora-admin-card-heading, .mentora-admin-actions, .mentora-validation-row { align-items: center; display: flex; gap: .75rem; justify-content: space-between; }
.mentora-admin-toolbar { margin-bottom: 1rem; }
.mentora-admin-toolbar h2, .mentora-admin-card h3, .mentora-admin-card h4 { margin: 0; }
.mentora-admin-toolbar p, .mentora-admin-card-heading p { color: var(--sm360-text-muted); font-size: .86rem; margin: .25rem 0 0; }
.mentora-admin-card { background: var(--sm360-white); border: 1px solid var(--sm360-border-secondary); border-radius: .65rem; margin-bottom: 1rem; padding: 1rem; }
.inset-card { background: var(--sm360-bg-secondary); margin: 1rem 0 0; }
.mentora-admin-notice { background: var(--sm360-bg-primary); border: 1px solid var(--thruu-status-info-text); border-radius: .5rem; color: var(--thruu-status-info-text); margin-bottom: 1rem; padding: .7rem .85rem; }
.mentora-admin-notice.warning { background: var(--sm360-bg-primary); border-color: var(--thruu-status-warning-text); color: var(--thruu-status-warning-text); }
.mentora-admin-table { border-collapse: collapse; margin-top: 1rem; width: 100%; }
.mentora-admin-table th, .mentora-admin-table td { border-bottom: 1px solid var(--sm360-border-secondary); padding: .65rem .5rem; text-align: left; vertical-align: middle; }
.mentora-admin-table th { color: var(--sm360-text-muted); font-size: .73rem; letter-spacing: .03em; text-transform: uppercase; }
.mentora-admin-table.compact th, .mentora-admin-table.compact td { padding: .45rem .5rem; }
.mentora-admin-table code, .mentora-admin-card code { color: var(--sm360-text-secondary); font-size: .84em; }
/* #1631: the manifest digest is a 64-character token; it wraps instead of widening the Releases card at 360px. */
.mentora-admin-detail { overflow-wrap: anywhere; }
.mentora-admin-table tr[data-case-highlight='true'] { background: var(--sm360-bg-secondary); }
.mentora-admin-table tr[data-case-highlight='true']:focus { outline: 2px solid var(--sm360-teal); outline-offset: -2px; }
.mentora-form-grid, .mentora-admin-form-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-top: 1rem; }
.mentora-admin-field, .mentora-admin-form-grid label { color: var(--sm360-text-secondary); display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; gap: .35rem; margin-top: .85rem; }
.mentora-admin-field input, .mentora-admin-field textarea, .mentora-admin-form-grid input, .mentora-admin-form-grid select { background: var(--sm360-bg-primary); border: 1px solid var(--sm360-border-primary); border-radius: .35rem; color: var(--sm360-text-primary); font: inherit; font-weight: 400; padding: .55rem .65rem; }
.mentora-admin-fieldset { border: 1px solid var(--sm360-border-secondary); border-radius: .4rem; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; padding: .75rem; }
.mentora-admin-fieldset legend { color: var(--sm360-text-secondary); font-size: .82rem; font-weight: 600; padding: 0 .3rem; }
.mentora-admin-tabs { border-bottom: 1px solid var(--sm360-border-secondary); display: flex; gap: .3rem; margin-top: 1rem; }
.mentora-admin-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--sm360-text-muted); cursor: pointer; padding: .55rem .7rem; }
.mentora-admin-tabs button.is-current { border-bottom-color: var(--thruu-status-info-text); color: var(--thruu-status-info-text); font-weight: 600; }
.mentora-admin-tabs button.has-warning { color: var(--thruu-status-warning-text); }
.mentora-button, .mentora-link-button { cursor: pointer; font: inherit; }
.mentora-button { border: 1px solid var(--sm360-border-primary); border-radius: .4rem; padding: .55rem .8rem; }
.mentora-button-primary { background: var(--thruu-action); border-color: var(--thruu-action); color: var(--thruu-on-action); }
.mentora-button-secondary { background: var(--sm360-white); color: var(--sm360-text-secondary); }
.mentora-button-danger { background: var(--sm360-white); border-color: var(--thruu-status-danger-text); color: var(--thruu-status-danger-text); }
.mentora-button:disabled { cursor: not-allowed; opacity: .5; }
.mentora-link-button { background: transparent; border: 0; color: var(--thruu-status-info-text); padding: 0; }
.mentora-admin-actions { justify-content: flex-end; margin-top: 1rem; }
.mentora-check { color: var(--thruu-status-success-text); font-weight: 600; }
.mentora-validation-row { color: var(--sm360-text-muted); font-size: .82rem; justify-content: flex-start; margin-top: .65rem; }
.mentora-admin-preview { background: var(--sm360-bg-secondary); border-left: 3px solid var(--sm360-text-muted); margin-top: 1rem; padding: .75rem .9rem; }
.mentora-admin-preview p { font-size: 1.05rem; margin: .45rem 0; }
.muted-copy, .mentora-admin-preview small { color: var(--sm360-text-muted); font-size: .78rem; }
.status-live { background: var(--sm360-bg-primary); border-color: var(--thruu-status-success-text); color: var(--thruu-status-success-text); }
.status-warn { background: var(--sm360-bg-primary); border-color: var(--thruu-status-warning-text); color: var(--thruu-status-warning-text); }
.status-retired { background: var(--sm360-bg-tertiary); color: var(--sm360-text-secondary); }
.mentora-check-list { display: grid; gap: .45rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.mentora-check-list .pass { color: var(--thruu-status-success-text); }
.mentora-check-list .warn { color: var(--thruu-status-warning-text); }
.mentora-check-list .hold { color: var(--thruu-status-danger-text); }
.mentora-diff-row { display: flex; gap: .6rem; padding: .35rem 0; }
.diff-added { color: var(--thruu-status-success-text); font-weight: 600; }
.diff-changed { color: var(--thruu-status-warning-text); font-weight: 600; }
.diff-retired { color: var(--thruu-status-danger-text); font-weight: 600; }
@media (max-width: 760px) {
    .mentora-admin-header { flex-direction: column; }
    .mentora-admin-layout { grid-template-columns: 1fr; }
    .mentora-admin-sidebar { border-bottom: 1px solid var(--sm360-border-secondary); border-right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 .75rem; }
    .mentora-admin-sidebar-title { grid-column: 1 / -1; }
    .mentora-admin-sidebar-section { border-top: 0; margin-top: 0; padding-top: .45rem; }
    .mentora-admin-table { display: block; max-width: 100%; overflow-x: auto; }
    /* #1631: inside the two named regions the wrapper is the scroll region (and the focus stop), so the table itself
       does not scroll twice. Long ids wrap instead of being clipped at 360px, including in dark mode. */
    .mentora-admin-scroll .mentora-admin-table { display: table; overflow: visible; }
    .mentora-admin-scroll .mentora-admin-table code,
    .mentora-admin-scroll .mentora-admin-table td,
    .mentora-admin-scroll .mentora-admin-table th { overflow-wrap: anywhere; }
}

/* #1631: the two named table wrappers are focusable scroll regions, so a keyboard user can reach every column. */
.mentora-admin-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.mentora-admin-scroll:focus-visible {
    outline: 2px solid var(--sm360-focus-ring, currentColor);
    outline-offset: 2px;
}
.thruu-today-more { color: var(--sm360-text-muted); font-size: 0.78rem; margin: 0.5rem 0 0; }

.sm360-form-row.thruu-compact > .sm360-form-group {
    flex: 0 1 16rem;
    max-width: 16rem;
    min-width: 12rem;
}

.sm360-form-row.thruu-compact > div {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.thruu-board-picker {
    min-width: 14rem;
}

.thruu-board-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sm360-space-5, 1.5rem);
    align-items: baseline;
    color: var(--sm360-text-muted);
    font-size: 0.85rem;
    margin: 0 0 var(--sm360-space-3);
}

.thruu-board-toolbar strong {
    color: var(--sm360-text-primary);
    font-size: 1rem;
}

.thruu-board {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: var(--sm360-space-4);
}

.thruu-col {
    flex: 0 0 288px;
    background: var(--sm360-bg-secondary);
    border: 1px solid var(--sm360-border-secondary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 21rem);
}

.thruu-col.is-won { background: var(--sm360-bg-primary); border-color: var(--thruu-status-success-text); }
.thruu-col.is-lost { background: var(--sm360-bg-primary); border-color: var(--thruu-status-danger-text); }

.thruu-col-header {
    position: relative;
    padding: 0.75rem 0.75rem 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--sm360-text-primary) 6%, transparent);
}

.thruu-col-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thruu-col-name { font-weight: 600; }
.is-won .thruu-col-name { color: var(--thruu-status-success-text); }
.is-lost .thruu-col-name { color: var(--thruu-status-danger-text); }

.thruu-col-count {
    background: color-mix(in srgb, var(--sm360-text-primary) 8%, transparent);
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 0.05rem 0.45rem;
}

.thruu-col-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--sm360-text-muted);
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.thruu-col-add {
    position: absolute;
    top: 0.55rem;
    right: 0.6rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--sm360-text-secondary);
}

.thruu-col-add:hover { color: var(--thruu-status-success-text); }

.thruu-col-add-form {
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--sm360-text-primary) 6%, transparent);
}

.thruu-col-add-actions { display: flex; gap: 0.5rem; }

.thruu-col-body {
    padding: 0.6rem 0.6rem 0.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 90px;
}

.thruu-col-empty {
    color: var(--sm360-text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 1.2rem 0;
}

.thruu-deal {
    background: var(--sm360-white);
    border: 1px solid var(--sm360-border-secondary);
    border-radius: 8px;
    padding: 0.6rem 0.65rem;
    cursor: grab;
    box-shadow: var(--sm360-shadow-sm);
}

.thruu-deal:hover { border-color: var(--sm360-text-muted); }
.thruu-deal.is-dragging { opacity: 0.45; }

.thruu-deal.is-drop-before {
    border-top: 2px solid var(--sm360-teal);
    margin-top: -1px;
}

.thruu-deal-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.thruu-deal-name {
    font-weight: 600;
    color: var(--sm360-text-primary);
    text-decoration: none;
    flex: 1 1 auto;
}

.thruu-deal-name:hover { text-decoration: underline; }
.thruu-deal-value { font-weight: 600; font-size: 0.85rem; }

.thruu-deal-sub {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--sm360-text-muted);
    font-size: 0.78rem;
    margin: 0.2rem 0 0;
}

.thruu-deal-value-line { color: var(--sm360-text-muted); font-size: 0.75rem; margin: 0; }

.thruu-deal-activity {
    color: var(--sm360-text-secondary);
    font-size: 0.78rem;
    margin: 0.35rem 0 0;
}

.thruu-modal-backdrop {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--sm360-text-primary) 45%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.thruu-modal {
    background: var(--sm360-white);
    border-radius: 12px;
    padding: 1.25rem;
    width: min(24rem, 92vw);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thruu-modal-title { margin: 0; font-size: 1.05rem; }
.thruu-modal-actions { display: flex; gap: 0.5rem; }

.thruu-link {
    border: 0;
    background: none;
    color: var(--thruu-status-success-text);
    cursor: pointer;
    margin-left: 0.75rem;
    text-decoration: underline;
}

.thruu-board-totals,
.thruu-stage-totals {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sm360-space-4);
    color: var(--sm360-text-muted);
    font-size: 0.85rem;
    margin: var(--sm360-space-3) 0 0;
}

.thruu-stage-totals {
    margin: 0 0 var(--sm360-space-3);
}

/* issue 1106: the stage's methodology guidance: plain text, no controls. */
.thruu-stage-guidance {
    margin: 0 0 var(--sm360-space-3);
    font-size: 0.85rem;
    color: var(--sm360-text-muted);
}

.thruu-stage-guidance p {
    margin: var(--sm360-space-1, 0.25rem) 0;
}

.thruu-stage-guidance-prompts {
    margin: 0;
    padding-left: 1.25rem;
}

.thruu-lead-value {
    margin: 0.25rem 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.thruu-lead-value span {
    font-weight: 400;
    color: var(--sm360-text-muted);
}

.thruu-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.25rem 0;
}

.thruu-label {
    border-radius: 999px;
    color: var(--sm360-text-primary);
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
}

.thruu-health {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    background: var(--sm360-text-muted);
}

.thruu-health-scheduled { background: var(--sm360-text-muted); }
.thruu-health-today { background: var(--sm360-success); }
.thruu-health-none { background: var(--sm360-warning); }
.thruu-health-overdue { background: var(--sm360-danger); }
.thruu-health-rotting { background: var(--sm360-danger); }
.thruu-health-closed { background: var(--sm360-blue); }

.thruu-narrow {
    max-width: 6rem;
}

.thruu-label-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.thruu-next-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    background: var(--sm360-bg-primary);
    border: 1px solid var(--thruu-status-success-text);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.thruu-owner {
    background: var(--sm360-bg-tertiary);
    border-radius: 999px;
    color: var(--sm360-text-secondary);
    font-size: 0.68rem;
    padding: 0.05rem 0.4rem;
    white-space: nowrap;
}

.thruu-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.thruu-timeline-row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem;
    border-top: 1px solid var(--sm360-bg-tertiary);
    padding-top: 0.4rem;
    font-size: 0.85rem;
}

.thruu-timeline-when { color: var(--sm360-text-muted); }

.thruu-deal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 0.4rem;
    white-space: nowrap;
}

.thruu-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 22rem;
}

.thruu-column-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

/* Product journey composition; colors and controls stay on SDK tokens. */
.thruu-page-actions { display: flex; flex-wrap: wrap; gap: var(--sm360-space-2); align-items: center; }
.thruu-anchor { scroll-margin-top: 7rem; }
.thruu-contact-company { display: block; color: var(--sm360-text-muted); margin-top: var(--sm360-space-1); }
.thruu-contact-deals .thruu-deal-link { display: flex; flex-wrap: wrap; gap: var(--sm360-space-1) var(--sm360-space-2); }
.thruu-contact-deals .thruu-deal-link strong { flex-basis: 100%; }
.thruu-contact-form { flex-wrap: wrap; align-items: flex-end; }
.thruu-contact-form > .sm360-form-group { flex: 1 1 12rem; }
.thruu-deal-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sm360-space-4); }
.thruu-disclosure > summary { cursor: pointer; color: var(--sm360-text-primary); font-weight: 600; padding: var(--sm360-space-2) 0; }
.thruu-disclosure[open] > summary { margin-bottom: var(--sm360-space-4); }
.thruu-board-navigation { display: grid; gap: var(--sm360-space-2); margin-bottom: var(--sm360-space-4); }
.thruu-board:focus-visible, .thruu-disclosure > summary:focus-visible { outline: 2px solid var(--sm360-teal); outline-offset: 3px; }
.thruu-stat-row-empty { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thruu-stat-row-empty .thruu-stat { padding: var(--sm360-space-3); }

/* #63 — discovery question bank: desktop keeps the table, narrow shows cards.
   These base rules must precede the media query so the narrow override wins. */
.thruu-bank-cards { display: none; }
.thruu-bank-card {
    display: grid;
    gap: var(--sm360-space-2);
    border: 1px solid var(--sm360-border-primary);
    border-radius: 8px;
    padding: var(--sm360-space-3);
}

@media (max-width: 640px) {
    .thruu-contact-form { flex-direction: column; align-items: stretch; }
    .thruu-contact-form > .sm360-form-group { flex: auto; width: 100%; }
    .sm360-table-container .thruu-contact-table, .sm360-table-container .thruu-activity-table { min-width: 0; white-space: normal; }
    .thruu-contact-table, .thruu-contact-table tbody,
    .thruu-activity-table, .thruu-activity-table tbody { display: block; width: 100%; }
    .thruu-contact-table thead, .thruu-activity-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .thruu-contact-table tr, .thruu-activity-table tr { display: flex; flex-direction: column; padding: var(--sm360-space-3) 0; border-bottom: 1px solid var(--sm360-border-primary); }
    .thruu-contact-table td, .thruu-activity-table td { display: block; width: 100%; min-width: 0; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; border: 0; padding: var(--sm360-space-2); }
    .thruu-contact-table td[data-label]::before, .thruu-activity-table td[data-label]::before { content: attr(data-label); display: block; color: var(--sm360-text-muted); font-size: 0.75rem; margin-bottom: var(--sm360-space-1); }
    .thruu-contact-table select, .thruu-contact-table input { max-width: 100%; }
    /* #65 — the Plan improvement table stacks into label/value cards at 360px. */
    .sm360-table-container .thruu-output-table { min-width: 0; white-space: normal; }
    .thruu-output-table, .thruu-output-table tbody { display: block; width: 100%; }
    .thruu-output-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .thruu-output-table tr { display: flex; flex-direction: column; padding: var(--sm360-space-3) 0; border-bottom: 1px solid var(--sm360-border-primary); }
    .thruu-output-table td { display: block; width: 100%; min-width: 0; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; border: 0; padding: var(--sm360-space-2); }
    .thruu-output-table td[data-label]::before { content: attr(data-label); display: block; color: var(--sm360-text-muted); font-size: 0.75rem; margin-bottom: var(--sm360-space-1); }
    .thruu-output-table td .sm360-btn { width: 100%; }
    /* #65 — the Onboarding tab strip scrolls inside the page at narrow widths instead of
       overflowing the SDK content area and displacing the whole page horizontally. */
    .thruu-onboard-tabs .sm360-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .thruu-stat-row-empty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .thruu-stat-row-empty .thruu-stat-value { font-size: 1rem; }
    .thruu-stat-row-empty .thruu-stat-label { font-size: 0.7rem; }
    .thruu-bank-table { display: none; }
    .thruu-bank-cards { display: grid; gap: var(--sm360-space-3); }
}


/* One-step deal panel and inline product (B75). Narrowly scoped to the new surfaces. */
.thruu-modal-wide {
    width: min(40rem, 94vw);
    max-height: 90vh;
    overflow-y: auto;
}

.thruu-party {
    border: 1px solid var(--sm360-border-primary, var(--sm360-border-secondary));
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.thruu-party legend {
    font-weight: 600;
    padding: 0 0.25rem;
}

.thruu-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.75rem;
}

.thruu-col-add-hint {
    color: var(--sm360-text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 640px) {
    .thruu-modal-wide {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .thruu-modal-actions {
        flex-direction: column;
    }
}

/* issue 420 Mentora interview (MENTORA-02): rail | question | what we know. Layout only. */
.thruu-interview-header { margin-bottom: var(--sm360-space-4, 1rem); }
.thruu-interview-breadcrumb,
.thruu-interview-eyebrow { color: var(--sm360-text-muted); font-size: 0.8rem; margin: 0; }
.thruu-interview-eyebrow { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.thruu-interview-note { color: var(--sm360-text-muted); font-size: 0.85rem; }

.thruu-interview-layout {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) minmax(16rem, 20rem);
    gap: var(--sm360-space-5, 1.5rem);
    align-items: start;
}

.thruu-interview-main { display: flex; flex-direction: column; gap: var(--sm360-space-3, 0.75rem); min-width: 0; }
.thruu-interview-card {
    border: 1px solid var(--sm360-border-secondary);
    border-radius: 12px;
    padding: var(--sm360-space-5, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: var(--sm360-space-3, 0.75rem);
}

.thruu-interview-question { font-size: 1.5rem; line-height: 1.25; margin: 0; }
.thruu-interview-why { border-left: 3px solid currentColor; padding: 0.5rem 0.75rem; margin: 0; }
.thruu-interview-form { display: flex; flex-direction: column; gap: var(--sm360-space-3, 0.75rem); }
.thruu-interview-field { display: flex; flex-direction: column; gap: 0.25rem; }
.thruu-interview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border-top: 1px solid var(--sm360-border-secondary); padding-top: var(--sm360-space-3, 0.75rem); }
.thruu-interview-spacer { flex: 1 1 auto; }
.thruu-interview-footer { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--sm360-text-muted); font-size: 0.85rem; }

.thruu-link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; align-self: flex-start; }
.thruu-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.thruu-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem; }
.thruu-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--sm360-border-primary);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
}
.thruu-choice.is-selected { border-width: 2px; }
.thruu-range-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.thruu-shares { display: flex; flex-direction: column; gap: 0.5rem; }
.thruu-share-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, 12rem) 4.5rem; align-items: center; gap: 0.75rem; }
.thruu-share-value { text-align: right; }
.thruu-list-editor { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.25rem; margin: 0; }
.thruu-list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.thruu-list-row .thruu-interview-field { flex: 1 1 14rem; }

.thruu-confirm-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--sm360-border-secondary); border-radius: 10px; }
.thruu-confirm-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.75rem 0.9rem; }
.thruu-confirm-list .thruu-confirm-row + .thruu-confirm-row { border-top: 1px solid var(--sm360-border-secondary); }
.thruu-confirm-label { display: block; color: var(--sm360-text-muted); font-size: 0.85rem; }
.thruu-confirm-from { display: block; color: var(--sm360-text-muted); font-size: 0.8rem; }
.thruu-confirm-actions { display: flex; gap: 0.4rem; align-items: center; }
.thruu-confirm-basis { margin: 0; padding-left: 0.75rem; border-left: 3px solid var(--sm360-border-primary); font-style: italic; }

.thruu-section-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.thruu-rail-step { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 10px; }
.thruu-rail-step.is-current { border: 1px solid currentColor; font-weight: 600; }
.thruu-rail-marker { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 999px; border: 1px solid currentColor; font-size: 0.75rem; }

.thruu-facts { border: 1px solid var(--sm360-border-secondary); border-radius: 12px; padding: var(--sm360-space-4, 1rem); }
.thruu-facts-header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.thruu-facts-title { font-size: 1.05rem; margin: 0; }
.thruu-facts-section { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; margin: var(--sm360-space-3, 0.75rem) 0 0.25rem; }
.thruu-facts ul { list-style: none; padding: 0; margin: 0; }
.thruu-fact { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0; border-top: 1px solid var(--sm360-border-secondary); }
.thruu-fact-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.thruu-fact-label, .thruu-fact-source { color: var(--sm360-text-muted); font-size: 0.85rem; }
.thruu-facts-phone-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
.thruu-facts.is-collapsed .thruu-facts-body { display: none; }
.thruu-facts-sheet-close, .thruu-facts-scrim, .thruu-facts-waiting-chip { display: none; }

@media (max-width: 960px) {
    .thruu-interview-layout { grid-template-columns: minmax(0, 1fr); }
    .thruu-section-rail ol { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .thruu-interview-card { padding: var(--sm360-space-4, 1rem); }
    .thruu-interview-question { font-size: 1.25rem; }
    .thruu-share-row { grid-template-columns: minmax(0, 1fr) 4.5rem; }
    .thruu-share-row input[type="range"] { grid-column: 1 / -1; }
    .thruu-facts-desktop-toggle { display: none; }
    .thruu-facts-phone-toggle { display: inline-flex; }
    .thruu-facts .thruu-facts-body,
    .thruu-facts.is-collapsed .thruu-facts-body { display: none; }
    .thruu-facts-waiting-chip { display: inline-flex; margin-left: 0.35rem; }
    /* The phone panel is a bottom sheet over a scrim; the count chip opens it, Close, Escape or the scrim closes it. */
    .thruu-facts.is-expanded .thruu-facts-scrim { display: block; position: fixed; inset: 0; background: color-mix(in srgb, var(--sm360-text-primary) 45%, transparent); z-index: 40; }
    .thruu-facts.is-expanded .thruu-facts-body {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
        max-height: 70vh; overflow-y: auto; padding: var(--sm360-space-4, 1rem);
        background: var(--sm360-white); color: inherit;
        border-radius: 16px 16px 0 0; box-shadow: var(--sm360-shadow-lg);
    }
    .thruu-facts.is-expanded .thruu-facts-sheet-close { display: inline-block; float: right; min-height: 2.75rem; }
}

/* issue 837 "Review business profile": a read-only side drawer in the same tab; full width on a phone. */
.thruu-profile-link-row { margin: 0; }
.thruu-profile-scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--sm360-text-primary) 35%, transparent); z-index: 40; }
/* #2281: the side drawer starts below the shell's app bar. The bar is a flex item at z-index 200 and covers the top
   --header-height pixels, so a top: 0 drawer lost its title and Close control under it; the mobile sidebar uses the
   same offset (below the bar), and 40/41 stay the drawer's existing pair. */
.thruu-profile-drawer {
    position: fixed; top: var(--header-height); right: 0; bottom: 0; z-index: 41;
    width: min(28rem, 100vw); overflow-y: auto; box-sizing: border-box;
    padding: var(--sm360-space-4, 1rem);
    background: var(--sm360-white); color: inherit;
    border-left: 1px solid var(--sm360-border-secondary); box-shadow: var(--sm360-shadow-lg);
    display: flex; flex-direction: column; gap: var(--sm360-space-3, 0.75rem);
}
.thruu-profile-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.thruu-profile-header .thruu-link-button { min-height: 2.75rem; padding: 0 0.5rem; }
.thruu-profile-list { list-style: none; padding: 0; margin: 0; }
.thruu-fact-chip { align-self: flex-start; border: 1px solid var(--sm360-border-primary); border-radius: 999px; padding: 0.15rem 0.7rem; font-weight: 600; overflow-wrap: anywhere; }
.thruu-profile-footer { border-top: 1px solid var(--sm360-border-secondary); padding-top: var(--sm360-space-3, 0.75rem); display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
@media (max-width: 640px) {
    .thruu-profile-drawer { width: 100vw; border-left: 0; }
}

/* issue 420 D12 consent: Allow and Not now carry equal weight. Layout only. */
.thruu-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 13rem)); gap: 0.5rem; }
.thruu-consent-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* TD9: one independent loading block per Today section; no text, announced as busy. */
.thruu-section-placeholder {
  background: linear-gradient(90deg, color-mix(in srgb, var(--sm360-text-primary) 5%, transparent), color-mix(in srgb, var(--sm360-text-primary) 10%, transparent), color-mix(in srgb, var(--sm360-text-primary) 5%, transparent));
  background-size: 200% 100%;
  border-radius: 8px;
  margin: 0 0 1rem;
  min-height: 4.5rem;
  animation: thruu-section-placeholder 1.4s ease-in-out infinite;
}

@keyframes thruu-section-placeholder {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .thruu-section-placeholder { animation: none; }
}

/* Mentora Agree step: differing-answer highlight (issue 634, MENTORA-01 §11 AH3, AH5).
   Three cues per group so colour is never the only one: badge text, a shape icon and a left-border
   pattern (solid, dashed, dotted, double; the pattern cycles after four groups, the badge text never
   does). One neutral token pair, no red/green. The border and badge outline use the primary text
   token for a 3:1 contrast against the row in light and dark; forced colours use the system text colour. */
.thruu-answers-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sm360-space-2); }
.thruu-answers-heading h4 { margin: 0; }
.thruu-answers-refresh[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.thruu-answers-summary { margin: var(--sm360-space-2) 0 0; font-weight: 600; }
.thruu-answers-legend { margin: var(--sm360-space-1) 0 var(--sm360-space-2); padding-left: var(--sm360-space-5, 1.5rem); }
.thruu-answers-table { width: 100%; }
.thruu-answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--sm360-text-primary, currentColor);
    border-radius: 999px;
    padding: 0 0.5rem;
    margin-right: var(--sm360-space-1, 0.25rem);
    color: var(--sm360-text-primary, inherit);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.thruu-answer-icon { flex: none; }
.thruu-answer-row > td:first-child { border-left-width: 4px; border-left-color: var(--sm360-text-primary, currentColor); }
.thruu-answer-row.thruu-answer-group-0 > td:first-child { border-left-style: solid; }
.thruu-answer-row.thruu-answer-group-1 > td:first-child { border-left-style: dashed; }
.thruu-answer-row.thruu-answer-group-2 > td:first-child { border-left-style: dotted; }
.thruu-answer-row.thruu-answer-group-3 > td:first-child { border-left-style: double; border-left-width: 6px; }
@media (forced-colors: active) {
    .thruu-answer-badge { border-color: CanvasText; color: CanvasText; }
    .thruu-answer-row > td:first-child { border-left-color: CanvasText; }
}
@media (max-width: 640px) {
    .thruu-answers-table { display: block; overflow-x: auto; }
}

.mentora-admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.mentora-overview-tile h3 { margin: 0 0 .5rem; }
.mentora-overview-count { font-size: 1.75rem; font-weight: 600; margin: 0; }

/* issue 901: the inherited Mentora Home actions (Add a sales context, Continue the interview, the Waiting on you context links) are 52px touch targets. */
.thruu-mentora-home .sm360-btn, .thruu-mentora-home a.sm360-btn, .thruu-mentora-home [data-testid="mentora-home-waiting"] a { align-items: center; box-sizing: border-box; display: inline-flex; min-height: 52px; min-width: 52px; }

/* issue 892: the inherited Today controls (Mine, Team, Set next step, Complete, Open deal) are 52px touch targets. Scoped to the Today page only.
   issue 1170: and the other .thruu-link controls on Today: the Done dismiss button, the Full agenda link and the Team name buttons. */
.thruu-today-page .sm360-btn, .thruu-today-page .thruu-queue-actions a.thruu-link, .thruu-today-page .thruu-done button.thruu-link, .thruu-today-page .thruu-queue > a.thruu-link, .thruu-today-page .thruu-team-table th button.thruu-link { align-items: center; box-sizing: border-box; display: inline-flex; min-height: 52px; min-width: 52px; }

/* issue 1563: the Team table is wider than a 360px viewport (416px there). At phone widths it now fits the card: a
   fixed layout with explicit column shares, compact padding and wrapping cells, so the pace column is readable without
   clipping and the page never widens. The card stays a focusable scroll region as a fallback if any content still
   exceeds the width (for example a very long translated string), so overflow is contained rather than pushed to the page. */
.thruu-today-page .thruu-today-card.thruu-team {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.thruu-today-page .thruu-today-card.thruu-team:focus-visible {
    outline: 2px solid var(--sm360-focus-ring, currentColor);
    outline-offset: 2px;
}

.thruu-today-page .thruu-team-table {
    min-width: 26rem;
}

@media (max-width: 480px) {
    .thruu-today-page .thruu-team-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        font-size: 0.78rem;
    }

    .thruu-today-page .thruu-team-table th,
    .thruu-today-page .thruu-team-table td {
        padding: 0.25rem 0.2rem;
        overflow-wrap: anywhere;
        vertical-align: top;
    }

    .thruu-today-page .thruu-team-table th:nth-child(1) { width: 26%; }
    .thruu-today-page .thruu-team-table th:nth-child(2),
    .thruu-today-page .thruu-team-table th:nth-child(3) { width: 9%; }
    .thruu-today-page .thruu-team-table th:nth-child(4) { width: 11%; }
    .thruu-today-page .thruu-team-table th:nth-child(5) { width: 18%; }
    .thruu-today-page .thruu-team-table th:nth-child(6) { width: 27%; }
}

/* issue 1211: the issue 367 shell brand-name contrast override was removed once the pinned SDK carried
   sm360-sdk issue 936 (1.0.0-beta.39434143163.1 sets --sm360-brand-name: the SDK brand-name value, about 4.5:1 on white). */

/* Login layout (moved from Login.razor; SDK tokens only). */
.login-page {
        min-height: 100vh;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: var(--sm360-bg-secondary);
        font-family: var(--sm360-font-sans);
        color: var(--sm360-text-primary);
    }
    .login-card {
        width: 100%;
        max-width: 420px;
        background: var(--sm360-white);
        border: 1px solid var(--sm360-border-primary);
        border-radius: 12px;
        padding: 32px;
        box-shadow: var(--sm360-shadow-lg);
    }
    .login-kicker {
        margin: 0 0 8px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--thruu-status-success-text);
    }
    .login-card h1 {
        margin: 0 0 8px;
        font-size: 1.75rem;
        letter-spacing: -0.03em;
    }
    .login-copy {
        margin: 0 0 24px;
        color: var(--sm360-text-secondary);
        line-height: 1.5;
    }
    .login-alert {
        margin: 0 0 16px;
        padding: 12px 14px;
        border-radius: 8px;
        background: var(--sm360-bg-primary);
        color: var(--thruu-status-danger-text);
        font-size: 0.9375rem;
        line-height: 1.45;
    }
    .login-btn,
    .login-btn-secondary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        box-sizing: border-box;
    }
    .login-btn {
        background: var(--thruu-action);
        color: var(--thruu-on-action);
    }
    .login-btn:hover { background: var(--thruu-action-hover); }
    .login-btn-secondary {
        margin-top: 10px;
        background: var(--sm360-white);
        color: var(--sm360-text-primary);
        border: 1px solid var(--sm360-border-primary);
    }
    .login-btn-secondary:hover { background: var(--sm360-bg-secondary); }
