/* ==========================================================================
   Artrela account — v2 skin
   Loaded after the page's existing stylesheets. Markup, IDs and script are
   unchanged; this file only restyles them to the approved design.
   ========================================================================== */

body.acct-v2 {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    display: block;
    min-height: 100vh;
}
body.acct-v2 *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.material-icons) { font-family: inherit; }
body.acct-v2 a { color: inherit; }

/* ---------- Loader ---------- */
body.acct-v2 #preloader-container { background: var(--bg); }
body.acct-v2 #preloader-container.opaque { background: var(--bg); opacity: 1; }
body.acct-v2 #preloader-container.hide { opacity: 0; }

/* ---------- Header (pill, like the site) ---------- */
body.acct-v2 > .header:not(.tabs) {
    position: relative; z-index: 20;
    max-width: 1360px; margin: 20px auto 0; width: calc(100% - 80px);
    height: 56px; padding: 0 12px 0 24px;
    background: var(--nav-bg); border-radius: 999px; box-shadow: var(--nav-shadow);
    display: flex; align-items: center; justify-content: space-between;
}
body.acct-v2 > .header:not(.tabs) .brand { display: inline-flex; align-items: flex-end; gap: 1px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; color: var(--fg); text-decoration: none; }
body.acct-v2 .acct-brand-mark { height: 14px; width: auto; margin-bottom: 2px; }
body.acct-v2 > .header:not(.tabs) .header-wrapper { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; }
body.acct-v2 .user-image .image-container { width: 36px; height: 36px; border-radius: 999px; background: var(--tile); border: 0; }
body.acct-v2 .user-menu { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); padding: 6px; }
body.acct-v2 .user-menu-item { color: var(--fg); background: transparent; border-radius: 8px; font-size: 14px; }
body.acct-v2 .user-menu-item:hover { background: var(--tile); }
body.acct-v2 .user-menu-seperator { background: var(--rule); }
body.acct-v2 .user-image-info .name-container-user { color: var(--fg); font-weight: 500; }
body.acct-v2 .user-image-info .name-container-email { color: var(--fg-2); }

/* ---------- Page frame + title + tabs ---------- */
body.acct-v2 .header.tabs { background: transparent; border: 0; padding: 0; margin: 0 auto; max-width: 1100px; width: 100%; height: auto; display: block; position: static; box-shadow: none; }
body.acct-v2 .tab-content { padding: 48px 40px 96px; display: block; height: auto; overflow: visible; }
.acct-title { display: flex; flex-direction: column; gap: 6px; }
.acct-title__h { margin: 0; font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--fg); }
body.acct-v2 .tab-items { display: flex; flex-wrap: nowrap; gap: 4px; margin: 28px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; background: transparent; }
body.acct-v2 .tab-items::-webkit-scrollbar { display: none; }
body.acct-v2 .tab-item { position: relative; background: transparent !important; border: 0 !important; border-radius: 0 !important; margin: 0; padding: 0; flex: none; }
body.acct-v2 .tab-item a, body.acct-v2 .tab-item .menu-link { display: inline-flex; padding: 12px 14px 14px; font-size: 14px; font-weight: 500; color: var(--fg-2) !important; white-space: nowrap; text-decoration: none; background: transparent !important; }
body.acct-v2 .tab-item.selected a, body.acct-v2 .tab-item.selected .menu-link { color: var(--fg) !important; }
body.acct-v2 .tab-item.selected::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fg); }
body.acct-v2 .tab-item:hover a { color: var(--fg) !important; }
body.acct-v2 .tab-pages { padding-top: 32px; background: transparent; border: 0; }
body.acct-v2 .tab-page { background: transparent; color: var(--fg); }

/* ---------- Detail rows: label on the left, value + Edit on the right, inside one card ---------- */
body.acct-v2 .contact-form-row { display: block; margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); width: 100%; }
body.acct-v2 .tab-page .contact-form-row:first-of-type { border-top: 0; }
body.acct-v2 .contact-form-row-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; margin: 0; padding: 0; }
body.acct-v2 .field-label { margin: 0; font-size: 14px; font-weight: 500; color: var(--fg); text-transform: none; letter-spacing: 0; }
body.acct-v2 .field-label::first-letter { text-transform: uppercase; }
body.acct-v2 .edit-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; min-height: 36px; font-size: 15px; color: var(--fg); }
body.acct-v2 .edit-label label { margin: 0; font-size: 15px; font-weight: 400; color: var(--fg); }
body.acct-v2 .edit-link, body.acct-v2 .link-ex, body.acct-v2 .manage-link, body.acct-v2 .delete-link {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--fg) !important; background: var(--tile); text-decoration: none; margin: 0; white-space: nowrap;
}
body.acct-v2 .delete-link { color: #d75758 !important; }
body.acct-v2 .edit-link:hover, body.acct-v2 .link-ex:hover { opacity: 0.8; }
body.acct-v2 .image-container { border-radius: 999px; background: var(--tile); border: 0; overflow: hidden; color: var(--fg); }
body.acct-v2 .edit-label .image-container { width: 44px; height: 44px; }
body.acct-v2 .image-container img { object-fit: cover; }

/* ---------- Buttons: squared, like the form pages ---------- */
body.acct-v2 .submit-button, body.acct-v2 .w-button, body.acct-v2 input[type=submit], body.acct-v2 button.btn-submit {
    height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
    background: var(--accent); color: var(--accent-fg); font-size: 14px; font-weight: 500; line-height: 44px; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
}
body.acct-v2 .btn-cancel, body.acct-v2 #refresh-members, body.acct-v2 [id^=refresh], body.acct-v2 .button-sm.margin-left { background: var(--tile); color: var(--fg); }
body.acct-v2 .button-sm { height: 36px; line-height: 36px; padding: 0 14px; font-size: 13px; }
body.acct-v2 #delete-user, body.acct-v2 [id*=Delete][type=submit], body.acct-v2 [id*=delete][type=submit], body.acct-v2 [id*=cancel-subscription] { background: transparent; color: #d75758; border: 1px solid currentColor; }
body.acct-v2 .submit-area { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 16px; padding: 0; background: transparent; border: 0; }
body.acct-v2 .tab-page > div > .submit-area:last-of-type { margin: 20px 0 0; }
body.acct-v2 .margin-right, body.acct-v2 .margin-left { margin: 0; }

/* ---------- Tables (team, plugins, sites, apps, invoices, history) ---------- */
body.acct-v2 .tab-page table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; font-size: 14px; color: var(--fg); }
body.acct-v2 .tab-page thead tr { background: transparent; border: 0; }
body.acct-v2 .tab-page th { padding: 14px 16px 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--rule); text-align: left; background: transparent; }
body.acct-v2 .tab-page th.center, body.acct-v2 .tab-page td.center { text-align: center; }
body.acct-v2 .tab-page td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; background: transparent; color: var(--fg); }
body.acct-v2 .tab-page tbody tr:last-child td { border-bottom: 0; }
body.acct-v2 .tab-page tr:hover td { background: transparent; }
body.acct-v2 .tab-page td .image-container { width: 36px; height: 36px; font-size: 12px; font-weight: 600; }
body.acct-v2 .teamMemberEmailValue1 { font-weight: 500; }
body.acct-v2 .teamMemberEmailValue2 { font-size: 12px; color: var(--fg-2); }
body.acct-v2 .tab-page input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--fg); margin: 0; }
body.acct-v2 .tab-page td.actions { white-space: nowrap; text-align: right; }
body.acct-v2 .tab-page td.actions a { margin-left: 6px; }
body.acct-v2 .tab-page td i, body.acct-v2 .tab-page td em { color: var(--fg-2); }

/* status chips used by the script (ok / warning / error) */
body.acct-v2 .ok, body.acct-v2 .warning, body.acct-v2 .error:not(.error-label) { border-radius: 6px; }

/* ---------- Errors ---------- */
body.acct-v2 .error-label { color: #d75758; font-size: 13px; text-align: left; margin-top: 10px; background: transparent; }

/* ---------- Subscription detail rows ---------- */
body.acct-v2 .contact-form-section { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 20px 24px; margin-bottom: 20px; color: var(--fg); }
body.acct-v2 .contact-form-row-details-label { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; }
body.acct-v2 .contact-form-row-details-label:first-child { border-top: 0; }
body.acct-v2 .contact-form-row-details-label label { margin: 0; font-weight: 500; color: var(--fg); }
body.acct-v2 .contact-form-row-details-label span, body.acct-v2 .contact-form-row-details-value { color: var(--fg-2); }

/* ---------- Modals ---------- */
body.acct-v2 .modal { background: rgba(15, 15, 15, 0.55); }
body.acct-v2 .modal-dialog { max-width: 480px; width: calc(100% - 40px); }
body.acct-v2 .modal-content { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); padding: 0; overflow: hidden; }
body.acct-v2 .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; border: 0; background: transparent; }
body.acct-v2 .modal-title { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
body.acct-v2 .btn-close { width: 32px; height: 32px; border-radius: 8px; background: var(--tile); color: var(--fg); border: 0; display: inline-flex; align-items: center; justify-content: center; }
body.acct-v2 .modal-body { padding: 12px 24px; color: var(--fg); }
body.acct-v2 .modal-input, body.acct-v2 .modal-input-ex { margin: 0 0 14px; }
body.acct-v2 .modal label, body.acct-v2 .modal .field-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
body.acct-v2 .text-field, body.acct-v2 .w-input, body.acct-v2 .modal select, body.acct-v2 .modal textarea {
    width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 12px;
    background: var(--bg); color: var(--fg); font-size: 15px; box-shadow: none; margin: 0;
}
body.acct-v2 .modal textarea { height: auto; min-height: 96px; padding: 12px 16px; }
body.acct-v2 .text-field:focus, body.acct-v2 .w-input:focus, body.acct-v2 .modal select:focus, body.acct-v2 .modal textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
body.acct-v2 .modal-footer { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 10px; padding: 12px 24px 24px; border: 0; background: transparent; }
body.acct-v2 .modal-footer .error-label { margin: 0 auto 0 0; align-self: center; }
body.acct-v2 .signup-remember-me { color: var(--fg-2); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    body.acct-v2 > .header:not(.tabs) { width: calc(100% - 32px); margin-top: 16px; }
    body.acct-v2 .tab-content { padding: 32px 24px 72px; }
    body.acct-v2 .contact-form-row-inner { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    body.acct-v2 .tab-page table { display: block; overflow-x: auto; }
}
@media (max-width: 600px) {
    body.acct-v2 > .header:not(.tabs) { height: 52px; padding: 0 8px 0 18px; }
    body.acct-v2 .tab-content { padding: 24px 20px 56px; }
    .acct-title__h { font-size: 26px; }
    body.acct-v2 .submit-area { flex-wrap: wrap; }
}

/* ---------- Undo the old app-shell layout (absolute, scrolling panes) so the page flows ---------- */
body.acct-v2 #tabPages { display: block; position: static; overflow: visible; flex: none; height: auto; }
body.acct-v2 .tab-page { position: static; overflow: visible; margin: 0; flex: none; inset: auto; }
body.acct-v2 .tab-page:not(.selected) { display: none; }
body.acct-v2 .tab-page.selected { display: flex; flex-direction: column; gap: 0; }
body.acct-v2 .tab-content { display: block; flex: none; max-width: none; min-width: 0; }
body.acct-v2 h1, body.acct-v2 .acct-title__h { text-transform: none; font-family: var(--font-body); }
body.acct-v2 .acct-title .eyebrow { margin: 0; }

/* ---------- Message boxes (alerts from the shared UI library) ---------- */
body.acct-v2 .messagebox-vail { background: rgba(15, 15, 15, 0.55); }
body.acct-v2 .messagebox { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); min-width: 320px; max-width: min(440px, calc(100% - 40px)); overflow: hidden; }
body.acct-v2 .messagebox .messagebox-header { background: transparent; border: 0; padding: 18px 20px 0; }
body.acct-v2 .messagebox .messagebox-header span { color: var(--fg); font-size: 17px; font-weight: 500; }
body.acct-v2 .messagebox .messagebox-header button { background: var(--tile); color: var(--fg); border-radius: 8px; }
body.acct-v2 .messagebox .messagebox-body, body.acct-v2 .messagebox .messagebox-message { color: var(--fg); background: transparent; font-size: 15px; line-height: 1.5; padding: 14px 20px; text-align: left; }
body.acct-v2 .messagebox .messagebox-footer { background: transparent; border: 0; padding: 0 20px 20px; display: flex; justify-content: flex-end; gap: 10px; }
body.acct-v2 .messagebox .messagebox-footer button { height: 40px; min-width: 72px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-fg); font-size: 14px; font-weight: 500; }

/* ---------- Toolbars above lists: one button height ---------- */
body.acct-v2 .submit-area .submit-button, body.acct-v2 .submit-area input[type=submit], body.acct-v2 .submit-area button { height: 36px; line-height: 36px; padding: 0 14px; font-size: 13px; margin: 0; }
body.acct-v2 .submit-area select, body.acct-v2 .tab-page select { height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--rule); border-radius: 10px; background-color: var(--surface); color: var(--fg); font-size: 13px; min-width: 200px; }

/* ---------- Status cells (ok / warning / error set by the script) ---------- */
body.acct-v2 .tab-page td.ok, body.acct-v2 .tab-page td .ok, body.acct-v2 .tab-page .invoiceStatus.ok,
body.acct-v2 .tab-page td.warning, body.acct-v2 .tab-page td .warning, body.acct-v2 .tab-page .invoiceStatus.warning,
body.acct-v2 .tab-page td.error, body.acct-v2 .tab-page td .error:not(.error-label), body.acct-v2 .tab-page .invoiceStatus.error {
    background: transparent !important; color: var(--fg) !important; height: auto !important; padding-top: 14px; padding-bottom: 14px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
body.acct-v2 .tab-page .ok::before, body.acct-v2 .tab-page .warning::before, body.acct-v2 .tab-page .error:not(.error-label)::before {
    content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; background: #3fae5a;
}
body.acct-v2 .tab-page .warning::before { background: #e3a008; }
body.acct-v2 .tab-page .error:not(.error-label)::before { background: #d75758; }
body.acct-v2 .tab-page td img { max-height: 24px; width: auto; vertical-align: middle; }
body.acct-v2 input[type=submit][value="Refresh"], body.acct-v2 input[value="Refresh"], body.acct-v2 button[value="Refresh"] { background: var(--tile) !important; color: var(--fg) !important; }

/* modal frame fixes */
body.acct-v2 .modal { z-index: 1000; }
body.acct-v2 .modal-dialog { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
body.acct-v2 .btn-close i { display: none; }
body.acct-v2 .btn-close::before { content: ""; width: 12px; height: 12px; background:
    linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
body.acct-v2 .modal-body > p, body.acct-v2 .modal-body-information { color: var(--fg-2); font-size: 14px; }
body.acct-v2 .btn-close { font-size: 0; }

/* chips that sit on a card need their own tone in dark mode (tile == card there) */
body.acct-v2 { --on-card: #EBEBEB; }
body.acct-v2.theme-dark { --on-card: #2E2E2E; }
body.acct-v2 .edit-link, body.acct-v2 .link-ex, body.acct-v2 .manage-link, body.acct-v2 .delete-link,
body.acct-v2 .image-container, body.acct-v2 .btn-close, body.acct-v2 .btn-cancel,
body.acct-v2 .messagebox .messagebox-header button,
body.acct-v2 input[value="Refresh"] { background: var(--on-card) !important; }

/* ==========================================================================
   Mockup layout: label column + card per section, inline editors
   ========================================================================== */
body.acct-v2 .tab-page > div:first-child:not(.submit-area):not(.modal) { background: transparent; border: 0; padding: 0; }
body.acct-v2 .pane { display: flex; flex-direction: column; gap: 32px; }
body.acct-v2 .sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
body.acct-v2 .sec__label .h4 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--fg); text-transform: none; }
body.acct-v2 .sec__label p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-2); max-width: 240px; }
body.acct-v2 .box { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
body.acct-v2 .box__head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
body.acct-v2 .box__head .av { width: 52px; height: 52px; border-radius: 999px; background: var(--on-card); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; flex: none; overflow: hidden; }
body.acct-v2 .box__head .av--sq { border-radius: 12px; }
body.acct-v2 .box__head .av img { width: 100%; height: 100%; object-fit: cover; }
body.acct-v2 .box__head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.acct-v2 .box__head .who label { margin: 0; font-size: 16px; font-weight: 500; color: var(--fg); }
body.acct-v2 .box__head .who label + label { font-size: 13px; font-weight: 400; color: var(--fg-2); }
body.acct-v2 .box__head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.acct-v2 .value-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.acct-v2 .value-row__value { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; color: var(--fg); }
body.acct-v2 .value-row__value label { margin: 0; font-size: 15px; font-weight: 400; }
body.acct-v2 .value-row__pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--on-card); font-size: 12px; font-weight: 500; }
body.acct-v2 .value-row__pill::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #3fae5a; }
body.acct-v2.not-verified .value-row__pill { display: none; }
body.acct-v2 .pending-note { font-size: 12px; color: var(--fg-3); }
body.acct-v2 .pending-note label { margin: 0; font-size: 12px; font-weight: 500; color: #e3a008; }
body.acct-v2 .note { font-size: 13px; color: var(--fg-2); }
body.acct-v2 .btn--danger { background: transparent !important; color: #d75758 !important; border: 1px solid currentColor; }
body.acct-v2 .edit-link.btn { height: 36px; line-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--on-card) !important; color: var(--fg) !important; text-decoration: none; }

/* inline editors: the same modal elements, rendered inside the card instead of over the page */
body.acct-v2 .modal.inline { position: static; display: none; background: transparent; padding: 0; margin: 0; }
body.acct-v2 .modal.inline.show { display: block; }
body.acct-v2 .modal.inline .modal-dialog { max-width: none; width: 100%; }
body.acct-v2 .modal.inline .modal-content { background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; box-shadow: none; }
body.acct-v2 .modal.inline .modal-body { padding: 18px 18px 4px; }
body.acct-v2 .modal.inline .modal-body > p { margin: 0 0 14px; font-size: 13px; color: var(--fg-2); }
body.acct-v2 .modal.inline .modal-input, body.acct-v2 .modal.inline .modal-input-ex, body.acct-v2 .modal.inline .modal-body > div { margin: 0 0 12px; }
body.acct-v2 .modal.inline .inline-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
body.acct-v2 .modal.inline .text-field, body.acct-v2 .modal.inline .w-input { background: var(--surface); }
body.acct-v2 .modal.inline .modal-footer { padding: 8px 18px 18px; }
body.acct-v2 .modal.inline .image-drop .image-container { width: 96px; height: 96px; margin: 0 auto; }
body.acct-v2.show-modal { overflow: auto !important; }

/* list sections: toolbar moves under the table like the mockup's card footer */
body.acct-v2 .box--list { padding: 0 24px; gap: 0; }
body.acct-v2 .box--list .submit-area { order: 2; margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); justify-content: flex-end; }
body.acct-v2 .box--list table { order: 1; border: 0; border-radius: 0; background: transparent; }
body.acct-v2 .box--list .error-label { order: 3; padding-bottom: 12px; }
body.acct-v2 .box--list th:first-child, body.acct-v2 .box--list td:first-child { padding-left: 0; }
body.acct-v2 .box--list th:last-child, body.acct-v2 .box--list td:last-child { padding-right: 0; }
body.acct-v2 .box--list td.actions a, body.acct-v2 .box--list td.actions .edit-link { height: 30px; line-height: 30px; padding: 0 10px; }
body.acct-v2 .box--list .default-row { display: none; }

/* subscription: keep its sections, in cards */
body.acct-v2 .pane--subscription { gap: 20px; }
body.acct-v2 .pane--subscription .contact-form-section { margin: 0; }

/* page header status line (filled by the script when available) */
body.acct-v2 .acct-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
body.acct-v2 .acct-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); padding-bottom: 6px; }
body.acct-v2 .acct-status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #3fae5a; }

/* tabs: one scrolling row at every width */
body.acct-v2 .tab-item[hidden] { display: none; }

@media (max-width: 860px) {
    body.acct-v2 .sec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.acct-v2 .sec__label p { max-width: none; }
    body.acct-v2 .box { padding: 18px; }
    body.acct-v2 .box--list { padding: 0 18px; }
    body.acct-v2 .box__head { flex-wrap: wrap; }
    body.acct-v2 .box__head-actions { width: 100%; justify-content: flex-start; }
    body.acct-v2 .value-row { flex-wrap: wrap; }
    body.acct-v2 .acct-title { flex-direction: column; align-items: flex-start; gap: 8px; }
}
body.acct-v2 .acct-title > div { margin-right: auto; text-align: left; }
body.acct-v2 .acct-status[hidden] { display: none; }
body.acct-v2 .box__head:last-child, body.acct-v2 .box__head:has(+ .modal.inline:not(.show):last-child), body.acct-v2 .box__head:has(+ .modal.inline:not(.show) + .modal.inline:not(.show)) { border-bottom: 0; padding-bottom: 0; }

/* subscription sections */
body.acct-v2 .box .plan-name-section { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; }
body.acct-v2 .box .contact-form-row-details-label { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14px; }
body.acct-v2 .box .contact-form-row-details-label label { margin: 0; font-weight: 500; color: var(--fg); }
body.acct-v2 .box .plan-total-section { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
body.acct-v2 .box .submit-area { justify-content: flex-end; margin: 0; }
body.acct-v2 .box #sectionPaymentMethod, body.acct-v2 .box #sectionPlanStatus { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--fg-2); }
body.acct-v2 .box #sectionPaymentMethod .field-label, body.acct-v2 .box #sectionPlanStatus .field-label { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
body.acct-v2 .box--usage { gap: 0; padding: 4px 24px; }
body.acct-v2 .box--usage .usage-data { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 14px; }
body.acct-v2 .box--usage .usage-data:first-child { border-top: 0; }
body.acct-v2 .box--usage .usage-data > label, body.acct-v2 .box--usage .usage-data .field-label { display: block; margin: 0 0 6px; font-weight: 500; color: var(--fg); }
body.acct-v2 .box--usage .usage-used, body.acct-v2 .box--usage .usage-available, body.acct-v2 .box--usage .usage-data-amount { color: var(--fg-2); }
body.acct-v2 .box .invoice-data { width: 100%; }
body.acct-v2 #modalUpdateProfileName .modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
body.acct-v2 #modalUpdateProfileName .modal-body > p { grid-column: 1 / -1; }
body.acct-v2 .modal.inline .modal-footer + .error-label:empty { display: none; }
@media (max-width: 600px) { body.acct-v2 #modalUpdateProfileName .modal-body { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Read-only state checkboxes → text labels (the script still sets the hidden inputs) ---------- */
body.acct-v2 .box--list td.center:has(> input[type=checkbox]) { text-align: left; white-space: nowrap; }
body.acct-v2 .box--list td.center > input[type=checkbox] { display: none; }
body.acct-v2 .box--list td.center:has(> input[type=checkbox])::after { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--on-card); font-size: 12px; font-weight: 500; color: var(--fg); }
body.acct-v2 .box--list td:has(> .teamMemberAccepted:not(:checked))::after { content: "Invited"; color: var(--fg-2); }
body.acct-v2 .box--list td:has(> .teamMemberAccepted:checked)::after { content: "Active"; }
body.acct-v2 .box--list td:has(> .teamMemberIsAdministrator:checked)::after { content: "Admin"; }
body.acct-v2 .box--list td:has(> .teamMemberIsOwner:checked)::after { content: "Owner"; }
body.acct-v2 .box--list td:has(> .teamMemberDisabled:checked)::after { content: "Disabled"; color: #d75758; }
body.acct-v2 .box--list td:has(> .siteActive:checked)::after, body.acct-v2 .box--list td:has(> .appActive:checked)::after { content: "Active"; }
body.acct-v2 .box--list td:has(> .siteActive:not(:checked))::after, body.acct-v2 .box--list td:has(> .appActive:not(:checked))::after { content: "Inactive"; color: var(--fg-2); }
body.acct-v2 .box--list td:has(> .sitePublished:checked)::after, body.acct-v2 .box--list td:has(> .appPublished:checked)::after { content: "Live"; }
body.acct-v2 .box--list td:has(> .sitePublished:not(:checked))::after, body.acct-v2 .box--list td:has(> .appPublished:not(:checked))::after { content: "Draft"; color: var(--fg-2); }
/* green dot on the positive states */
body.acct-v2 .box--list td:has(> .teamMemberAccepted:checked)::before, body.acct-v2 .box--list td:has(> .siteActive:checked)::before, body.acct-v2 .box--list td:has(> .appActive:checked)::before,
body.acct-v2 .box--list td:has(> .sitePublished:checked)::before, body.acct-v2 .box--list td:has(> .appPublished:checked)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: #3fae5a; margin-right: 6px; vertical-align: 1px; }
/* the cells that hold nothing for this row collapse */
body.acct-v2 .box--list td:has(> .teamMemberIsAdministrator:not(:checked)), body.acct-v2 .box--list td:has(> .teamMemberIsOwner:not(:checked)), body.acct-v2 .box--list td:has(> .teamMemberDisabled:not(:checked)) { padding-left: 0; padding-right: 0; width: 0; }
body.acct-v2 .box--list td:has(> .teamMemberIsAdministrator:not(:checked))::after, body.acct-v2 .box--list td:has(> .teamMemberIsOwner:not(:checked))::after, body.acct-v2 .box--list td:has(> .teamMemberDisabled:not(:checked))::after { display: none; }
/* one "Status" heading over the state columns */
body.acct-v2 #pageTeamMembers th.center, body.acct-v2 #pageSites th.center, body.acct-v2 #pageApps th.center { text-align: left; }
body.acct-v2 #pageTeamMembers th.center div, body.acct-v2 #pageApps th.center div, body.acct-v2 #pageSites th.center div { font-size: 0; }
body.acct-v2 #pageTeamMembers th:nth-child(3) div::after, body.acct-v2 #pageApps th:nth-child(3) div::after, body.acct-v2 #pageSites th:nth-child(4) div::after { content: "Status"; font-size: 11px; }
/* list images that have no source yet */
body.acct-v2 .box--list img:not([src]), body.acct-v2 .box--list img[src=""] { visibility: hidden; }

/* ---------- Header nav + footer (site chrome) ---------- */
body.acct-v2 > .header:not(.tabs) .menu { display: flex; align-items: center; gap: 24px; margin: 0 24px 0 32px; padding: 0; list-style: none; }
body.acct-v2 > .header:not(.tabs) .menu li { margin: 0; }
body.acct-v2 > .header:not(.tabs) .menu a, body.acct-v2 .acct-nav__studio { font-size: 13px; font-weight: 500; color: var(--fg-2); text-decoration: none; }
body.acct-v2 > .header:not(.tabs) .header-wrapper { flex: 1; }
body.acct-v2 .acct-nav__studio { margin-left: auto; }
body.acct-v2 .acct-nav__cta { margin-left: 24px; border-radius: 999px !important; height: 36px !important; line-height: 36px !important; }
body.acct-v2 .user-image { margin-left: 16px; }
body.acct-v2 .acct-footer { max-width: 1100px; margin: 0 auto; padding: 0 40px 28px; }
body.acct-v2 .acct-footer .site-footer__inner { font-size: 12px; color: var(--fg-2); }
@media (max-width: 860px) { body.acct-v2 > .header:not(.tabs) .menu, body.acct-v2 .acct-nav__studio { display: none; } body.acct-v2 .acct-nav__cta { margin-left: auto; } body.acct-v2 .acct-footer { padding: 0 24px 24px; } }

/* 3. Sites: app count reads as a subline under the name */
body.acct-v2 #pageSites th:nth-child(3) div { font-size: 11px; }
body.acct-v2 #pageSites th:nth-child(3) div::after { content: none; }
body.acct-v2 .siteAppCount { font-size: 13px; color: var(--fg-2) !important; background: transparent !important; padding: 0 !important; height: auto !important; }
/* 5. Invoices: Date · Number · Total · Status · Details */
body.acct-v2 #pageInvoices th:nth-child(3), body.acct-v2 #pageInvoices td:nth-child(3),
body.acct-v2 #pageInvoices th:nth-child(4), body.acct-v2 #pageInvoices td:nth-child(4) { display: none; }
body.acct-v2 #pageInvoices table { table-layout: auto; width: 100%; }
body.acct-v2 #pageInvoices td, body.acct-v2 #pageInvoices td div { font-size: 14px !important; }
/* 6. Activity: event + date only */
body.acct-v2 #pageEvents th:nth-child(4), body.acct-v2 #pageEvents td:nth-child(4) { display: none; }
body.acct-v2 #pageEvents td:nth-child(3) { white-space: nowrap; color: var(--fg-2); }
/* subscription plan summary rows */
body.acct-v2 .box .plan-name-section .edit-link { height: 36px; line-height: 36px; }

body.acct-v2 .acct-footer .site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
body.acct-v2 .acct-footer .site-footer__links { display: flex; gap: 20px; }
body.acct-v2 .acct-footer a { color: var(--fg-2); text-decoration: none; font-size: 12px; }
/* agreement lines in the Add dialogs: plain links, not chips */
body.acct-v2 .modal .agreement a, body.acct-v2 .modal p a.link-ex { display: inline; height: auto; padding: 0; background: transparent !important; text-decoration: underline; font-size: inherit; font-weight: 500; }

/* ---------- Account only: tighter corners (cards 14, dialogs 14, fields 8, buttons 8, chips 4); nav pill unchanged ---------- */
body.acct-v2 .box, body.acct-v2 .box--list, body.acct-v2 .box--usage, body.acct-v2 .contact-form-section,
body.acct-v2 .modal-content, body.acct-v2 .messagebox, body.acct-v2 .user-menu, body.acct-v2 .tab-page table { border-radius: 14px; }
body.acct-v2 .modal.inline .modal-content { border-radius: 10px; }
body.acct-v2 .text-field, body.acct-v2 .w-input, body.acct-v2 .modal select, body.acct-v2 .modal textarea,
body.acct-v2 .submit-area select, body.acct-v2 .tab-page select, body.acct-v2 .modal.inline .text-field { border-radius: 8px; }
body.acct-v2 .submit-button, body.acct-v2 .w-button, body.acct-v2 input[type=submit], body.acct-v2 button.btn-submit,
body.acct-v2 .btn-cancel, body.acct-v2 .edit-link.btn, body.acct-v2 .edit-link, body.acct-v2 .link-ex, body.acct-v2 .manage-link, body.acct-v2 .delete-link,
body.acct-v2 .btn--danger, body.acct-v2 .messagebox .messagebox-footer button, body.acct-v2 .btn-close,
body.acct-v2 .messagebox .messagebox-header button, body.acct-v2 .user-menu-item { border-radius: 8px; }
body.acct-v2 .value-row__pill, body.acct-v2 .box--list td.center:has(> input[type=checkbox])::after, body.acct-v2 .pill { border-radius: 4px; }
body.acct-v2 .box__head .av--sq { border-radius: 10px; }
body.acct-v2 .acct-nav__cta { border-radius: 999px !important; }
body.acct-v2 .box__head .av, body.acct-v2 .image-container, body.acct-v2 .user-image .image-container { border-radius: 999px; }
body.acct-v2 .acct-nav__cta, body.acct-v2 .acct-nav__cta:hover { color: var(--accent-fg) !important; background: var(--accent) !important; }

/* lists stay tables on desktop and laptop widths (the old CSS turns them into scrolling blocks under 1280px) */
@media (min-width: 861px) {
    body.acct-v2 .box--list table { display: table; width: 100%; table-layout: auto; overflow: visible; }
    body.acct-v2 .box--list th, body.acct-v2 .box--list td { padding-left: 10px; padding-right: 10px; }
    body.acct-v2 .box--list th:first-child, body.acct-v2 .box--list td:first-child { padding-left: 0; }
    body.acct-v2 .box--list th:last-child, body.acct-v2 .box--list td:last-child { padding-right: 0; }
    body.acct-v2 .box--list td { white-space: normal; }
    body.acct-v2 .box--list td.actions { white-space: nowrap; }
    body.acct-v2 .box--list .teamMemberEmailValue1, body.acct-v2 .box--list .siteNameValue { white-space: nowrap; }
}
body.acct-v2 .box--list { overflow-x: auto; }
@media (min-width: 861px) {
    body.acct-v2 .sec:has(> .box--list) { grid-template-columns: 200px minmax(0, 1fr); }
    body.acct-v2 .box--list td.center:has(> input[type=checkbox]) { padding-left: 4px; padding-right: 4px; }
    body.acct-v2 .box--list td.actions a, body.acct-v2 .box--list td.actions .edit-link { margin-left: 4px; padding: 0 9px; }
}
