/*
 * Account workspace: shell, Products, shared forms and modal surfaces.
 * Viewport and motion overrides live in ateam-account-responsive.css.
 */

/* ==========================================================================
   Workspace defaults and startup feedback
   ========================================================================== */

.account-workspace {
    background: var(--color-background);
    line-height: 1.5;
}

.account-startup {
    margin: 40px;
    color: var(--color-muted);
}

.account-workspace button:disabled {
    cursor: default;
}

.account-workspace textarea,
.account-workspace select {
    font: inherit;
}

.account-workspace a {
    text-decoration: none;
}

/* ==========================================================================
   Shared account table row hover
   ========================================================================== */

/* Paint cells as well as the row so account/status backgrounds cannot hide the highlight. */
.account-workspace:not(.saas-workspace) table > tbody > tr:hover,
.account-workspace:not(.saas-workspace) table > tbody > tr:hover > :is(th, td) {
    background-color: #edf9ff;
}

/* ==========================================================================
   Persistent header, branding and organization link
   ========================================================================== */

/* The stable header and sidebar frame the changing section, rather than rebuilding with it. */

.account-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 88px;
    padding: 10px 28px 10px 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-surface);
}

.account-brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
}

.account-brand img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.account-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-transform: uppercase;
}

.account-brand-copy strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.account-brand-copy > span {
    font-size: 11px;
    letter-spacing: 5px;
}

.account-portal-label {
    padding-left: 24px;
    border-left: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 18px;
    font-weight: 600;
}

.account-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    margin-left: auto;
}

.account-organization-link {
    max-width: 260px;
    overflow: hidden;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.account-organization-link:hover {
    color: var(--color-blue);
}

/* ==========================================================================
   Shared circular employee avatars
   ========================================================================== */

.account-avatar {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--color-blue), #059ae9);
    color: white;
    font-size: 17px;
    font-weight: 600;
}

.account-avatar.is-neutral {
    background: #eff4f9;
    color: #657f98;
}

/* ==========================================================================
   Current-user menu and mobile navigation trigger
   ========================================================================== */

.account-user-menu {
    position: relative;
    padding-left: 24px;
    border-left: 1px solid var(--color-line);
}

.account-user-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: var(--color-navy);
    cursor: pointer;
    list-style: none;
}

.account-user-summary::-webkit-details-marker {
    display: none;
}

.account-user-name {
    max-width: 200px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user-summary > i {
    color: var(--color-blue);
    font-size: 11px;
}

.account-user-popover {
    position: absolute;
    z-index: 8;
    top: calc(100% + 16px);
    right: 0;
    width: 230px;
    padding: 8px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 32px rgb(8 43 86 / 12%);
}

.account-menu-caption {
    display: block;
    padding: 8px 12px 12px;
    overflow-wrap: anywhere;
    color: var(--color-muted);
    font-size: 12px;
}

.account-user-popover a,
.account-user-popover button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font-size: 13px;
    text-align: left;
}

.account-user-popover a:hover,
.account-user-popover button:hover {
    background: #edf6ff;
    color: var(--color-blue-dark);
}

.account-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: white;
    color: var(--color-navy);
}

/* ==========================================================================
   Workspace columns, sidebar navigation and main content
   ========================================================================== */

.account-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 88px);
}

.account-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    align-self: start;
    min-height: calc(100vh - 88px);
    padding: 24px 12px;
    border-right: 1px solid var(--color-line);
    background: linear-gradient(180deg, #fff, #f8fbfe);
}

.account-nav-group + .account-nav-group {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
}

.account-nav-caption {
    margin: 0 12px 12px;
    color: #657f99;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 48px;
    margin-top: 5px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 500;
}

.account-nav-item i {
    width: 20px;
    font-size: 19px;
    text-align: center;
}

.account-nav-item:hover {
    background: #eef6ff;
}

.account-nav-item.is-active {
    background: linear-gradient(110deg, #e7f5ff, #e1f3fe);
    color: var(--color-blue-dark);
    font-weight: 600;
}

/* Shared Account/SaaS navigation totals and reply-attention indicators. */
.workspace-nav-metrics {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    margin-left: auto;
}
.workspace-nav-count {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-blue);
    color: white;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}
.workspace-unanswered-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #dc3545;
    box-shadow: 0 0 0 2px white;
    vertical-align: middle;
}
.workspace-nav-metrics[hidden],
.workspace-unanswered-dot[hidden] {
    display: none;
}


.account-sidebar-footer {
    margin-top: auto;
    padding: 64px 10px 4px;
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.9;
}

.account-main {
    min-width: 0;
    width: 100%;
    max-width: 1660px;
    padding: 18px 28px 32px;
}

/* ==========================================================================
   SaaS preview controls and sample-data indicator
   ========================================================================== */

.account-preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 11px;
}

.account-preview-bar p,
.account-preview-bar label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.account-preview-badge {
    padding: 4px 9px;
    border: 1px solid #cce3f8;
    border-radius: 6px;
    background: #edf6ff;
    color: #396f9f;
    font-weight: 600;
}

.account-preview-bar select {
    min-height: 34px;
    max-width: 100%;
    padding: 5px 28px 5px 9px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: white;
    color: var(--color-text);
    font-size: 11px;
}

/* ==========================================================================
   Shared section banners, template warning and banner actions
   ========================================================================== */

.account-section-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #6a829a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* Shared section banners: one title/subtitle layout with an optional action or metric. */

.account-section-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 160px;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 30px 32px;
    border-radius: 18px;
    background: linear-gradient(115deg, #082b56, #09477f 65%, #082b56);
    color: white;
    box-shadow: 0 12px 28px rgb(8 43 86 / 8%);
}

.account-banner-contours {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    stroke: #67caff;
    stroke-width: 1;
    opacity: 0.28;
    pointer-events: none;
}

.account-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.account-banner-copy h1,
.account-template-banner .account-banner-copy h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.account-banner-copy p {
    max-width: 64ch;
    margin: 10px 0 0;
    color: #d8ecff;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* The template notice inherits section banner sizing, spacing and responsive geometry. */

.account-template-banner {
    background: linear-gradient(115deg, #352653, #514070 65%, #352653);
    box-shadow: 0 12px 28px rgb(53 38 83 / 8%);
}

.account-template-banner .account-banner-contours {
    stroke: #d0b8ef;
}

.account-template-banner .account-banner-copy p {
    max-width: none;
    color: #efe6fa;
}

.account-template-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 7px;
    background: #e9e1f2;
    color: #493165;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.account-banner-aside {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: 40%;
    min-width: 0;
    text-align: right;
}

.account-banner-metric {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.account-banner-meta {
    margin: 0;
    color: #d8ecff;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.account-banner-button {
    width: auto;
    min-height: 44px;
    padding: 10px 18px;
    border-color: #d8ecff;
    background: white;
    color: var(--color-navy);
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgb(0 0 0 / 8%);
}

.account-banner-button:hover:not(:disabled) {
    background: #eef7ff;
}

.account-banner-button:focus-visible {
    outline-color: white;
}

/* ==========================================================================
   Product cards, connection status and subscription actions
   ========================================================================== */

.account-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #d8e9f9;
    border-radius: 14px;
    background: white;
    box-shadow: 0 3px 12px rgb(8 43 86 / 2%);
}

.account-product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-bottom: 14px;
    color: var(--color-navy);
}

.account-product-subscription {
    margin-top: 10px;
}

.account-product-logo img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 100%;
    object-fit: contain;
}

/* PROPOSALS includes transparent padding; compensate to align the visible artwork. */

.account-product-logo img[src$="proposals-logo.png"] {
    height: 31px;
}

.account-product-description {
    flex: 1;
    margin: 0 0 18px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.65;
}

.account-product-access {
    margin: 0 0 16px;
    border-top: 1px solid var(--color-line);
}

.account-product-access > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 54px;
    padding: 10px 0;
}

.account-product-access > div + div {
    border-top: 1px solid #edf2f8;
}

.account-product-access dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.account-product-access dt > i {
    width: 16px;
    color: #2f628e;
    font-size: 17px;
    text-align: center;
}

.account-product-access dd {
    margin: 0;
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.account-status.is-available {
    background: #e0f5e9;
    color: #236841;
}

.account-status.is-muted {
    background: #eff3f8;
    color: #536c85;
}

.account-button-outline {
    border-color: var(--color-blue);
    background: white;
    color: var(--color-blue-dark);
}

.account-button-outline:hover {
    background: #eff7ff;
}

/* ==========================================================================
   Organization and profile summary links
   ========================================================================== */

.account-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 18px;
    margin-top: 18px;
}

.account-summary-card {
    min-width: 0;
    padding: 17px 20px;
    border: 1px solid #d8e9f9;
    border-radius: 14px;
    background: white;
}

.account-summary-card h2 {
    margin: 0 0 12px;
    color: var(--color-navy);
    font-size: 15px;
}

.account-summary-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.account-summary-content > p {
    flex: 1 1 150px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.account-summary-content strong,
.account-summary-content > p > span {
    display: block;
}

.account-summary-content strong {
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
}

.account-summary-content > p > span {
    color: var(--color-muted);
    font-size: 11px;
}

.account-summary-content > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 15px;
    border-left: 1px solid var(--color-line);
    font-size: 12px;
    white-space: nowrap;
}

.account-summary-content > a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Shared form headings, multiline inputs and save actions
   ========================================================================== */

.account-form-heading h2 {
    margin: 0 0 4px;
    color: var(--color-navy);
    font-size: 17px;
}

.account-form-heading > p {
    margin: 0 0 22px;
    color: var(--color-muted);
    font-size: 12px;
}

.account-form-heading:not(:first-child) {
    margin-top: 12px;
}

.account-textarea {
    display: block;
    width: 100%;
    min-height: 125px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-field);
    background: #fbfdff;
    color: var(--color-navy);
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
}

.account-textarea:focus {
    border-color: var(--color-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(8 124 229 / 11%);
}

.account-textarea[aria-invalid="true"] {
    border-color: var(--color-error);
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}

.account-form-actions > p {
    margin: 0;
    color: var(--color-muted);
    font-size: 11px;
}

.account-form-actions > div,
.account-dialog-actions {
    display: flex;
    gap: 12px;
}

.account-form-actions .button {
    width: auto;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 12px;
}

.account-workspace .form-message.is-success {
    border-color: #bce3cc;
    background: #edf9f1;
    color: #236841;
}

/* ==========================================================================
   Native dialog viewport, shared rounded surface and focus controls
   ========================================================================== */

/* Native modal dialogs provide keyboard focus containment and Escape behavior. */

/* Modal viewport owns scrolling; its complete visual panel remains in normal flow. */

html:has(> body.account-workspace):not(.has-account-modal) {
    scrollbar-gutter: stable;
}

html.has-account-modal,
html.has-account-modal > body {
    overflow: hidden;
    scrollbar-gutter: auto;
}

.account-dialog {
    --dialog-width: 520px;
    --dialog-padding: 28px;
    --dialog-radius: 18px;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 0;
    background: transparent;
    color: var(--color-text);
}

.account-dialog[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Only the top modal reserves a gutter; lower dialogs keep their scroll position. */

.account-dialog.is-covered {
    overflow-y: hidden;
    scrollbar-gutter: auto;
}

.account-modal-surface {
    flex: 0 0 auto;
    width: min(var(--dialog-width), 100%);
    margin-block: auto;
    padding: var(--dialog-padding);
    border: 1px solid var(--color-line);
    border-radius: var(--dialog-radius);
    background: white;
    box-shadow: 0 24px 100px rgb(8 43 86 / 25%);
}

.account-dialog::backdrop {
    background: rgb(8 30 54 / 40%);
}

.account-dialog h2 {
    margin: 0 0 12px;
    color: var(--color-navy);
    font-size: 23px;
    line-height: 1.4;
}

.account-dialog-description,
.account-notice-dialog p {
    margin: 0 0 24px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.8;
}

.account-dialog-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.account-icon-button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: white;
    color: var(--color-muted);
}

.account-icon-button:hover {
    background: #eff7ff;
}

.account-dialog-icon,
.account-pending-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #eaf5ff;
    color: var(--color-blue);
    font-size: 22px;
}

.account-dialog-actions .button {
    flex: 1;
    width: auto;
}

/* ==========================================================================
   Session-loading, access-denied and empty-section messages
   ========================================================================== */

.account-pending {
    max-width: 660px;
    margin-top: 24px;
    padding: 38px;
    border: 1px solid #d8e9f9;
    border-radius: 14px;
    background: white;
}

.account-pending h1 {
    margin: 0 0 10px;
    color: var(--color-navy);
    font-size: 30px;
}

.account-pending p,
.account-empty {
    color: var(--color-muted);
    font-size: 14px;
}

.account-pending .account-pending-note {
    margin: 24px 0;
    font-size: 12px;
}

.account-pending .button {
    width: auto;
}

.account-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 30px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: white;
}

/* ==========================================================================
   Trial activation banner
   ========================================================================== */

/* First-account Trial promotion: a green section banner with one clear activation action. */

.account-trial-card {
    background: linear-gradient(115deg, #0a513f, #14734b 65%, #0b5a43);
    box-shadow: 0 12px 28px rgb(10 81 63 / 10%);
}

.account-trial-card .account-banner-contours {
    stroke: #a0edbc;
    opacity: 0.12;
}

.account-trial-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.account-trial-card h2 {
    margin: 0 0 10px;
    color: white;
    font-size: clamp(26px, 2.5vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

.account-trial-card p {
    max-width: 650px;
    margin: 0;
    color: #f3fcf6;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.account-trial-card > .button {
    flex-shrink: 0;
    border-color: #d6f7e4;
    color: #0a513f;
}

.account-trial-card > .button:hover:not(:disabled) {
    background: #e5f6ec;
}

/* ==========================================================================
   Whole-ecosystem product offer
   ========================================================================== */

/* Full-width ecosystem offer: three product marks and one shared subscription entry point. */

.account-ecosystem-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(120deg, white, #f1f8ff);
}

.account-ecosystem-copy {
    min-width: 0;
}

.account-ecosystem-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin-bottom: 20px;
}

.account-ecosystem-logos img {
    display: block;
    width: auto;
    height: 22px;
    max-width: 100%;
    object-fit: contain;
}

.account-ecosystem-logos img[src$="proposals-logo.png"] {
    height: 24px;
}

.account-ecosystem-card h2 {
    margin: 0 0 10px;
    color: var(--color-navy);
    font-size: 24px;
}

.account-ecosystem-card .account-product-description {
    max-width: 680px;
    margin-bottom: 16px;
}

.account-ecosystem-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--color-muted);
    font-size: 12px;
}

.account-ecosystem-card > .button {
    flex-shrink: 0;
    width: auto;
}

.account-ecosystem-managed {
    max-width: 230px;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================================================
   Enrollment dialog heading, product branding and term fields
   ========================================================================== */

/* Subscription selection uses one native modal for plan terms, Trial confirmation and checkout feedback. */

.account-enrollment-dialog {
    --dialog-width: 760px;
}

/* Enrollment headings keep product marks readable and the close control in the upper-right corner. */

.account-enrollment-heading {
    align-items: flex-start;
    margin-bottom: 16px;
}

.account-enrollment-heading h2 {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
}

.account-enrollment-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    max-width: 100%;
}

.account-enrollment-brand img {
    display: block;
    width: auto;
    height: 26px;
    max-width: 100%;
    object-fit: contain;
}

.account-enrollment-brand img[src$="proposals-logo.png"] {
    height: 29px;
}

.account-enrollment-close {
    margin-left: auto;
}

.account-enrollment-product-description {
    margin-bottom: 12px;
    color: var(--color-text);
}

.account-enrollment-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-enrollment-fields label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
}

.account-enrollment-fields select,
.account-enrollment-fields input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    background: white;
    color: var(--color-text);
    font: inherit;
}

.account-enrollment-fields select:focus-visible,
.account-enrollment-fields input:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

.account-enrollment-fields input:disabled {
    background: #f2f6fa;
    color: var(--color-muted);
}

/* ==========================================================================
   Selectable plan cards, prices, seats and integration badges
   ========================================================================== */

/* Native radio cards preserve keyboard selection and expose all commercial terms before checkout. */

.account-plan-options {
    min-width: 0;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.account-plan-options legend {
    margin-bottom: 12px;
    padding: 0;
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
}

.account-plan-list {
    display: grid;
    gap: 12px;
}

.account-plan-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: white;
    cursor: pointer;
}

.account-plan-card:hover:not(.is-unavailable) {
    border-color: var(--color-blue);
}

.account-plan-card.is-selected {
    border-color: var(--color-blue);
    background: #f0f8ff;
    box-shadow: 0 0 0 1px var(--color-blue);
}

.account-plan-card:focus-within {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.account-plan-card.is-unavailable {
    background: #f6f8fa;
    color: var(--color-muted);
    cursor: default;
}

.account-plan-card > input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--color-blue);
}

.account-plan-content {
    flex: 1;
    min-width: 0;
}

.account-plan-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    color: var(--color-navy);
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.account-plan-price {
    font-size: 15px;
    font-weight: 600;
}

.account-plan-price small {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 400;
}

.account-plan-seats {
    display: block;
    margin-top: 5px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
}

.account-plan-integrations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.account-plan-core {
    color: var(--color-muted);
    font-size: 12px;
}

.account-integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 1px solid #dfebf4;
    border-radius: 7px;
    background: white;
    color: var(--color-navy);
    font-size: 11px;
    line-height: 1.5;
}

.account-integration-badge img {
    width: 64px;
    height: 32px;
    object-fit: contain;
}

/* ==========================================================================
   Selected-plan description, integrations and price summary
   ========================================================================== */

/* Selected plan details retain text labels when decorative integration logos are unavailable. */

.account-enrollment-details {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}

.account-enrollment-details > h3 {
    margin: 0 0 12px;
    color: var(--color-navy);
    font-size: 17px;
    line-height: 1.5;
}

.account-enrollment-description {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.7;
}

.account-enrollment-description p {
    margin: 0 0 12px;
}

.account-enrollment-description h4 {
    margin: 18px 0 10px;
    color: var(--color-navy);
    font-size: 13px;
}

.account-integration-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.account-integration-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: white;
}

.account-integration-detail img {
    width: 104px;
    max-width: 100%;
    height: 36px;
    margin-bottom: 5px;
    object-fit: contain;
    object-position: left center;
}

.account-integration-detail strong {
    color: var(--color-navy);
    font-size: 12px;
}

.account-integration-detail span {
    font-size: 11px;
    overflow-wrap: anywhere;
}

.account-enrollment-summary {
    margin: 20px 0;
    padding: 16px;
    border-radius: 12px;
    background: #f2f7fc;
}

.account-enrollment-summary p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
}

.account-enrollment-summary p:last-child {
    margin-bottom: 0;
}

.account-enrollment-summary strong {
    text-align: right;
}

.account-enrollment-total {
    padding-top: 12px;
    border-top: 1px solid var(--color-line);
    color: var(--color-navy);
}
