/* =============================================================================
 * The owner pages' stylesheet: the owner console (/owner/*) and its plain card pages.
 *
 * Plan ui-consistency: these pages look like the Google/Microsoft GWT app. Every value here is the app's own,
 * named after the app rule it copies (buttons.css, controls.css, layout.css, settings-page.css, ...), and read
 * through the tokens.css custom properties wherever one holds that exact value. The GWT app is the reference and
 * never changes for these pages: scripts/ui-consistency-guard.sh in the superproject checks it.
 *
 * Linked by OwnerPages.write with CacheBuster.bust (StaticAssetVersioningFilter only rewrites *.html), after
 * tokens.css and roboto-font.css. The console frame's rules are always loaded, so a page whose frame fails keeps its
 * cards, tables and pop-ups styled.
 * ============================================================================= */

/* --- Every owner page ----------------------------------------------------- */

/* the app's content text (layout.css .contentPanel: 14px, #36373C); the console's pages take the Settings
   screens' 13px (.console-page) */
body {
    margin: 0;
    font-family: var(--ada-font-family-base, Roboto, Arial, sans-serif);
    font-size: var(--ada-font-size-md);
    line-height: 1.5;
    background: var(--ada-color-bg);
    color: var(--ada-color-text);
}

h1,h2,h3 {
    color: var(--ada-color-text);
    font-weight: var(--ada-font-weight-medium);
}

/* controls.css .link: the hover keeps the colour, no underline */
a {
    color: var(--ada-color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--ada-color-primary);
    text-decoration: none;
}

/* the plain card (sign-in notices, errors, invitations): layout.css .adaCard */
.owner-card {
    max-width: 36rem;
    margin: 4rem auto;
    padding: var(--ada-space-6);
    background: var(--ada-color-white);
    border: 1px solid var(--ada-color-border-card);
    border-radius: var(--ada-radius-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* the app's screen title (layout.css .screenHeader) */
.owner-card h1 {
    font-size: 22px;
    font-weight: var(--ada-font-weight-bold);
    line-height: 26px;
    margin: 0 0 var(--ada-space-4);
}

/* a section of the plain card: the Settings card title (settings-page.css .settingsCardTitle) */
.owner-card h2 {
    font-size: 17px;
    font-weight: var(--ada-font-weight-medium);
    margin: var(--ada-space-6) 0 var(--ada-space-2);
}

.owner-card p {
    line-height: 1.5;
}

/* Buttons: buttons.css. .owner-btn is .blueButton; .secondary .transparentBlueButton; .neutral .blackButton;
   .danger .transparentRedButton; .ghost .blueLink; .sm .smallBlueButton. */
.owner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: var(--ada-radius-btn);
    background: var(--ada-color-primary);
    color: var(--ada-color-white);
    font-family: inherit;
    font-size: var(--ada-font-size-md);
    font-weight: var(--ada-font-weight-normal);
    letter-spacing: 0.1px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.14s;
}

.owner-btn:hover {
    background: var(--ada-color-primary-hover);
    color: var(--ada-color-white);
    text-decoration: none;
}

/* the app has no focus ring; a keyboard-only one is kept (never shown on a mouse click) */
.owner-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 112, 231, 0.3);
}

.owner-btn:disabled {
    background: var(--ada-grey-100);
    color: #BEC3CA;
    border: 1px solid #ECECEC;
    cursor: default;
}

/* .transparentBlueButton: no hover change */
.owner-btn.secondary,
.owner-btn.secondary:hover {
    background: transparent;
    color: var(--ada-color-primary);
    border: 1px solid var(--ada-color-primary);
}

/* .blackButton */
.owner-btn.neutral {
    padding: 0 15px;
    background: var(--ada-color-white);
    color: var(--ada-color-text);
    border: 1px solid var(--ada-color-border-card);
    box-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.04);
}

.owner-btn.neutral:hover {
    background: var(--ada-grey-100);
    color: var(--ada-color-text);
}

/* .transparentRedButton: what deletes or ends something */
.owner-btn.danger {
    background: var(--ada-color-white);
    color: var(--ada-color-danger-text);
    border: 1px solid var(--ada-color-danger-border);
    box-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.04);
}

.owner-btn.danger:hover {
    background: #FEEBEE;
    color: var(--ada-color-danger-text);
}

/* .blueLink: a text button */
.owner-btn.ghost,
.owner-btn.ghost:hover {
    height: 32px;
    padding: 0 4px;
    background: transparent;
    color: var(--ada-color-primary);
    border: none;
    font-size: var(--ada-font-size-base);
    font-weight: var(--ada-font-weight-medium);
    letter-spacing: normal;
}

/* .smallBlueButton */
.owner-btn.sm {
    height: 30px;
    padding: 0 20px;
    font-size: var(--ada-font-size-base);
}

.owner-btn.neutral.sm {
    padding: 0 15px;
}

.owner-btn.ghost.sm {
    padding: 0 4px;
}

.owner-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.owner-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--ada-color-border);
}

.owner-list strong {
    font-weight: var(--ada-font-weight-medium);
    color: var(--ada-color-text);
}

.owner-list form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

/* helper and note text: settings-page.css .settingsPageNote (#777777) */
.owner-muted {
    color: var(--ada-color-text-note);
    font-size: var(--ada-font-size-base);
}

.owner-form label {
    display: block;
    margin: 16px 0 6px;
    font-weight: var(--ada-font-weight-medium);
    font-size: var(--ada-font-size-base);
    color: var(--ada-color-text);
}

/* Inputs: controls.css .inputBox (.owner-input: one outside a form, e.g. the MCP page's address) */
.owner-form input[type=text],.owner-form input[type=email],.owner-form textarea,.owner-input {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--ada-color-border-card);
    border-radius: var(--ada-radius-btn);
    box-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.04);
    font: inherit;
    font-size: var(--ada-font-size-md);
    color: var(--ada-color-text);
    background: var(--ada-color-white);
}

.owner-input.wide {
    max-width: none;
}

/* a label with its field on the same line (<label>Currency <select>), outside .owner-form's stacked labels */
.owner-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--ada-font-size-base);
    font-weight: var(--ada-font-weight-medium);
    color: var(--ada-color-text);
}

.owner-inline .owner-input {
    width: 280px;
}

.owner-form textarea {
    height: auto;
    max-width: 640px;
    padding: 8px 10px;
}

.owner-form .owner-choice {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0;
    font-weight: var(--ada-font-weight-normal);
    font-size: var(--ada-font-size-md);
    color: var(--ada-color-text);
}

/* Selects: controls.css .dropdownBox, with its arrow (commons controls/arrow-down.svg, #757575) */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--ada-color-border-card);
    border-radius: var(--ada-radius-btn);
    box-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.04);
    background: var(--ada-color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5.833'%3E%3Cpath fill='%23757575' d='M4.988,5.833c-0.276,0-0.538-0.11-0.72-0.303L0.18,1.203c-0.269-0.298-0.233-0.742,0.081-0.999S1.052-0.03,1.335,0.256L4.91,4.041c0.02,0.021,0.048,0.033,0.078,0.033s0.059-0.012,0.078-0.033l3.574-3.785C8.82,0.057,9.102-0.036,9.376,0.013s0.498,0.233,0.586,0.48c0.087,0.247,0.024,0.519-0.165,0.71L5.71,5.529C5.527,5.722,5.264,5.833,4.988,5.833z'/%3E%3C/svg%3E") no-repeat right 10px center / 9px;
    font: inherit;
    font-size: var(--ada-font-size-md);
    color: var(--ada-color-text);
    text-overflow: ellipsis;
    cursor: pointer;
}

/* a select beside small buttons: the small button's 30px */
select.sm {
    height: 30px;
    font-size: var(--ada-font-size-base);
}

select:disabled {
    background-color: #F3F3F3;
    color: #8F8F8F;
    cursor: default;
}

input[type=checkbox],input[type=radio] {
    accent-color: var(--ada-color-primary);
}

/* keyboard focus only (the app shows none) */
input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline: none;
    border-color: var(--ada-color-primary);
    box-shadow: 0 0 0 2px rgba(5, 112, 231, 0.3);
}

/* Notices: the warning panel, the app's orange (#FFAF24); a done message is .console-confirm */
.owner-panel {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--ada-color-warning);
    border-radius: var(--ada-radius-md);
    background: #FFFFE6;
}

.owner-panel p {
    margin: 0;
}

.owner-panel p+p,.owner-panel p+form,.owner-panel p+details {
    margin-top: 6px;
}

.owner-panel.info {
    border-color: #B0E5FF;
    background: var(--ada-color-white);
}

.owner-panel.neutral {
    border-color: var(--ada-color-border-card);
    background: var(--ada-color-bg-subtle);
}

.owner-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* notification destinations (plan zapier-notifications, D2): each provider's "Add", opened in place */
.owner-add {
    margin: 0 0 12px;
}

/* 2026-10-26 (user): the add buttons side by side, each opening its how-to in a pop-up */
.owner-adds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    margin: 0 0 12px;
}

.owner-adds>.owner-add {
    margin: 0;
}

.tool-icon {
    flex: none;
    width: 16px;
    height: 16px;
}

/* 2026-10-26 (user): the logins' card, a column per destination */
.login-table-wrap {
    overflow-x: auto;
}

.login-table {
    width: 100%;
    border-collapse: collapse;
}

.login-table th,.login-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

/* its header: the grid's (CellTable.css .cellTableHeader: #F2F2F2, 11px weight 500 #757575) */
.login-table thead th {
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--ada-grey-100);
    font-size: var(--ada-font-size-xs);
    font-weight: var(--ada-font-weight-medium);
    color: #757575;
    white-space: nowrap;
}

.login-table thead .tool-icon {
    vertical-align: -3px;
    margin-right: 6px;
}

.login-table tbody th {
    font-weight: var(--ada-font-weight-normal);
}

.login-table tbody th,.login-table tbody td {
    border-top: 1px solid var(--ada-color-border);
    font-size: var(--ada-font-size-base);
}

/* the card's padding (.console-card) */
.login-table th:first-child {
    padding-left: var(--ada-space-6);
}

.login-table th:last-child,.login-table td:last-child {
    padding-right: var(--ada-space-6);
}

.login-table form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.owner-list .owner-row {
    justify-content: flex-end;
}

/* Status pills: api-keys.css .cardHeaderPill (a full pill, 12px, weight 400), coloured per state with the app's
   status colours: grey, warning #FFAF24 (text #8A5A00, experiments.css .warning), info blue, success #30BD69
   (text #1C9932) */
.owner-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--ada-radius-pill);
    font-size: var(--ada-font-size-sm);
    font-weight: var(--ada-font-weight-normal);
    line-height: 14px;
    vertical-align: middle;
    background: var(--ada-grey-100);
    color: var(--ada-color-text-note);
}

.owner-pill.warn::before,.owner-pill.info::before,.owner-pill.active::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.owner-pill.warn {
    background: #FFFFE6;
    color: #8A5A00;
}

.owner-pill.warn::before {
    background: var(--ada-color-warning);
}

.owner-pill.info,.owner-pill.tint {
    background: var(--ada-color-primary-subtle);
    color: var(--ada-color-primary);
}

.owner-pill.info::before {
    background: var(--ada-color-primary);
}

.owner-pill.active {
    background: #E7F7EE;
    color: var(--ada-color-success-dark);
}

.owner-pill.active::before {
    background: var(--ada-color-app-success);
}

/* A status in words (Merchant Center's): the pill's dot before plain text (plan ui-consistency Phase 3) */
.owner-status {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.owner-status::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ada-grey-400);
    transform: translateY(-1px);
}

.owner-status.ok::before {
    background: var(--ada-color-app-success);
}

.owner-status.warn::before {
    background: var(--ada-color-warning);
}

.owner-status.info::before {
    background: var(--ada-color-primary);
}

.pf-icon {
    height: 16px;
    width: auto;
    vertical-align: -3px;
    margin-right: 6px;
}

/* --- Sign-in and sign-up pages (plan ui-consistency Phase 4) ------------------------------------------------
 * The sign-in host pages (index.html, the Bing host's index.html, meta-login.html, bing-signin.html) are the plain
 * card above (.owner-card) on <body class="owner-signin">. account-create.html and the owner sign-up page keep the
 * legacy page's layout (style.css: its header, columns and testimonials) on <body class="owner-legacy-form">, whose
 * type and controls below take the app's values. ------------------------------------------------------------- */

/* the Adalysis logo above a plain card's title */
.owner-logo {
    display: block;
    height: 28px;
    margin-bottom: var(--ada-space-6);
}

/* a sign-in card: the plain card, as wide as a provider button needs */
.owner-signin .owner-card {
    max-width: 28rem;
}

.owner-signin .owner-card h1 + p {
    margin: 0 0 var(--ada-space-6);
}

/* An identity provider's button (Google, Microsoft, Facebook): Google's light theme for "Sign in with Google"
   (developers.google.com/identity/branding-guidelines: white, a 1px #747775 edge, #1F1F1F text at 14 / 20 medium,
   12px before the mark, 10px after it, 12px after the text; rectangular shapes allowed, no height or corner fixed),
   at the app's button height and corners (buttons.css: 36px, 10px). The three providers share it, each with its own
   mark. */
.owner-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    background: var(--ada-color-white);
    border: 1px solid #747775;
    border-radius: var(--ada-radius-btn);
    color: #1F1F1F;
    font-family: inherit;
    font-size: var(--ada-font-size-md);
    font-weight: var(--ada-font-weight-medium);
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

.owner-provider-btn:hover {
    background: var(--ada-grey-100);
    color: #1F1F1F;
    text-decoration: none;
}

.owner-provider-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 112, 231, 0.3);
}

.owner-provider-btn svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.owner-providers {
    display: flex;
    flex-direction: column;
    gap: var(--ada-space-3);
}

.owner-providers + .owner-muted {
    margin: var(--ada-space-5) 0 0;
}

/* an error the sign-in page was sent back with: the app's red (.errorMessage #DE4B4B) */
.owner-error {
    margin: 0 0 var(--ada-space-4);
    padding: 12px 14px;
    color: var(--ada-color-text);
    background: #FDEAEA;
    border: 1px solid var(--ada-color-app-danger);
    border-radius: var(--ada-radius-md);
}

/* The legacy sign-up form (account-create.html, OwnerSignupPage). Roboto through style.css's own html.--fn-roboto;
   style.css's controls read these custom properties, set here to the app's: inputs controls.css .inputBox (36px,
   10px corners, #E0E0E0, 14px #36373C), the button buttons.css .blueButton (36px, 10px, 14px weight 400). */
.owner-legacy-form {
    --button-height: 36px;
    --button-padding: 20px;
    --input-height: 36px;
    --input-radius: 10px;
    --input-border-color: var(--ada-color-border-card);
    --input-font-size: var(--ada-font-size-md);
    --input-color: var(--ada-color-text);
}

.owner-legacy-form .button {
    white-space: nowrap;
    border-radius: var(--ada-radius-btn);
    font-size: var(--ada-font-size-md);
    font-weight: var(--ada-font-weight-normal);
    letter-spacing: 0.1px;
    transition: background-color 0.14s;
}

.owner-legacy-form .button:hover {
    background: var(--ada-color-primary-hover);
}

.owner-legacy-form .button:active {
    transform: none;
}

/* .blueButton:disabled (style.css marks its own !important) */
.owner-legacy-form .button:disabled {
    color: #BEC3CA !important;
    background: var(--ada-grey-100) !important;
    box-shadow: inset 0 0 0 1px #ECECEC !important;
}

.owner-legacy-form .input__label {
    font-size: var(--ada-font-size-base);
    font-weight: var(--ada-font-weight-medium);
}

.owner-legacy-form .input__field {
    padding: 0 10px;
    font-weight: var(--ada-font-weight-normal);
    box-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.04);
}

.owner-legacy-form .input__field:focus {
    border-color: var(--ada-color-primary);
}

/* the title: the app's screen title (22px bold); its line under it a note (.settingsPageNote, 14px here) */
.owner-legacy-form .create-account__capt {
    font-size: 22px;
    line-height: 26px;
    font-weight: var(--ada-font-weight-bold);
}

.owner-legacy-form .create-account__desc {
    font-size: var(--ada-font-size-md);
    color: var(--ada-color-text-note);
}

/* --- The console frame (phase 15): the rail, the menu, the page, its cards, tabs, tables and pop-ups.
 * Plan ui-consistency Phase 2: each part copies the GWT app. The rail is navigation.css .platformRail /
 * .railButton; the menu the app's sidebar (navigation.css .sideBar); the page and its cards the Settings screens
 * (settings-page.css); the tabs the Integrations screen's strip (styles.css .toggleButtonsPanel); the tables the
 * grid (CellTable.css); the pop-ups NewPopupPanel (popup.css .bluePopup, common.css .blockingBackground).
 * Every selector is under .console or a console-* class. ------------------------------------------------- */

body.console {
    background: var(--ada-color-bg);
}

.console-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* the platform rail: navigation.css .platformRail, .railButton */
.console-rail {
    flex: none;
    width: 64px;
    box-sizing: border-box;
    background: var(--ada-color-white);
    border-right: 1px solid var(--ada-color-border);
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.rail-form {
    margin: 0;
}

.rail-btn {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: var(--ada-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.rail-btn:hover {
    background-color: var(--ada-grey-100);
}

.rail-btn:focus-visible {
    outline: 2px solid var(--ada-color-primary);
    outline-offset: 2px;
}

.rail-active,.rail-active:hover {
    background-color: var(--ada-color-white);
    border-color: var(--ada-color-primary);
    box-shadow: 0 0 0 1px var(--ada-color-primary);
    cursor: default;
}

.rail-sep {
    width: 28px;
    height: 1px;
    background: var(--ada-color-border);
    margin: 0 0 10px;
}

.console-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* the menu: the app's sidebar (navigation.css .sideBar: #F1F3F4, 14px / 21px, a #D9E1EB edge;
   AccountNavigationSideBar.WIDTH 200) */
.console-menu {
    flex: none;
    width: 200px;
    box-sizing: border-box;
    background: #F1F3F4;
    border-right: 1px solid var(--ada-color-border);
    display: flex;
    flex-direction: column;
    font-size: var(--ada-font-size-md);
    line-height: 21px;
    color: var(--ada-color-text);
    user-select: none;
}

.console-account {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--ada-color-border);
}

.console-account-name {
    font-weight: var(--ada-font-weight-medium);
    color: var(--ada-color-text);
    word-break: break-word;
}

/* .sideBarItemsPanel: 7px either side */
.console-nav {
    list-style: none;
    margin: 0;
    padding: 8px 7px;
    display: flex;
    flex-direction: column;
}

/* a first-level item: 32px high, 8px corners, hover #E8E8E8, selected blue on pale blue */
.console-nav a {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--ada-radius-xl);
    color: var(--ada-color-text);
    text-decoration: none;
}

.console-nav a:hover {
    background: var(--ada-grey-200);
    color: var(--ada-color-text);
    text-decoration: none;
}

.console-nav a.selected,.console-nav a.selected:hover {
    background: var(--ada-color-primary-subtle);
    color: var(--ada-color-primary);
}

.console-nav-foot {
    margin-top: auto;
    padding: 8px 7px 12px;
}

/* the page: settings-page.css .settingsPagePanel (padding 30 / 15 / 40, 13px, line 18px, at most 900px wide);
   a page with a data table takes the width, as Change history does (.settingsPagePanelWide) */
.console-page {
    flex: 1 1 auto;
    min-width: 0;
    padding: 30px 15px 40px;
    box-sizing: border-box;
    max-width: 900px;
    font-size: var(--ada-font-size-base);
    line-height: 18px;
}

.console-page:has(.console-table) {
    max-width: none;
}

/* .settingsPageTitle: 21px, weight 500, 6px above the page's note (.settingsPageNote: 24px under it) */
.console-page h1 {
    font-size: 21px;
    line-height: normal;
    font-weight: var(--ada-font-weight-medium);
    margin: 0 0 var(--ada-space-6);
}

.console-page h1:has(+ .owner-muted) {
    margin-bottom: 6px;
}

.console-page h1 + .owner-muted {
    margin: 0 0 var(--ada-space-6);
    max-width: 640px;
}

/* .settingsCardTitle: 17px, weight 500 */
.console-page h2 {
    font-size: 17px;
    line-height: normal;
    font-weight: var(--ada-font-weight-medium);
    margin: 24px 0 12px;
}

.console-page p {
    line-height: 18px;
}

.console-menubar {
    display: none;
}

/* settings-page.css .settingsCard: white, #E0E0E0, 16px corners, 24px padding, no shadow */
.console-card {
    background: var(--ada-color-white);
    border: 1px solid var(--ada-color-border-card);
    border-radius: var(--ada-radius-card);
    margin: 0 0 var(--ada-space-5);
}

.console-page .console-card>h2 {
    margin: 0;
    padding: var(--ada-space-6) var(--ada-space-6) 0;
}

.console-card-body {
    padding: 16px var(--ada-space-6) var(--ada-space-6);
}

.console-card-body>:first-child {
    margin-top: 0;
}

.console-card-body>:last-child {
    margin-bottom: 0;
}

.console-card-body.flush {
    padding: 8px 0 0;
}

.console-card-body.flush .owner-list {
    margin: 0;
}

.console-card-body.flush .owner-list li {
    padding: 14px var(--ada-space-6);
}

.console-card-body.flush .owner-list li:first-child {
    border-top: 0;
}

.console-card-body.flush>p {
    margin: 0;
    padding: 6px var(--ada-space-6) 16px;
}

.console-card-pad {
    padding: 6px var(--ada-space-6) 14px;
}

.console-card-pad>:first-child {
    margin-top: 0;
}

.console-card-pad>:last-child {
    margin-bottom: 0;
}

/* change 10: the invitation's email and role on one row */
.invite-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    align-items: flex-end;
}

.invite-head>div {
    flex: 1 1 260px;
    max-width: 420px;
}

.invite-head>div.invite-role {
    flex: 0 1 240px;
}

.invite-head select {
    width: 100%;
}

/* the Integrations screen's tab strip: styles.css .toggleButtonsPanel / .toggleButton (14px, weight 500,
   0 13px 13px), the selected one blue over 2px; 30px under it (IntegrationsPanel.TAB_STRIP_MARGIN_BOTTOM_PX) */
.console-tabs {
    display: flex;
    border-bottom: 1px solid var(--ada-color-border);
    margin: 0 0 30px;
    overflow: hidden;
}

.console-tab {
    padding: 0 13px 13px;
    color: var(--ada-color-text);
    font-size: var(--ada-font-size-md);
    font-weight: var(--ada-font-weight-medium);
    line-height: normal;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.console-tab:hover {
    color: var(--ada-color-text);
    text-decoration: none;
}

.console-tab[aria-current],.console-tab[aria-current]:hover {
    color: var(--ada-color-primary);
    border-bottom-color: var(--ada-color-primary);
    cursor: default;
}

/* Data tables: the app's grid (CellTable.css): a #D9E1EB frame with 8px corners and #D9E1EB lines; the header
   #F2F2F2 at 11px weight 500 #757575, padding 10px 5px; cells 13px, padding 8px 5px. The frame is drawn on the
   table itself (no clipping wrapper), so the access log's sticky column keeps working. */
.console-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ada-color-border);
    border-radius: var(--ada-radius-xl);
    font-size: var(--ada-font-size-sm);
    color: var(--ada-color-text);
    margin: 0 0 16px;
}

.console-table th,.console-table td {
    border-left: 1px solid var(--ada-color-border);
    border-top: 1px solid var(--ada-color-border);
}

.console-table tr> :first-child {
    border-left: 0;
}

.console-table> :first-child>tr:first-child> * {
    border-top: 0;
}

.console-table> :first-child>tr:first-child> :first-child {
    border-top-left-radius: 7px;
}

.console-table> :first-child>tr:first-child> :last-child {
    border-top-right-radius: 7px;
}

.console-table> :last-child>tr:last-child> :first-child {
    border-bottom-left-radius: 7px;
}

.console-table> :last-child>tr:last-child> :last-child {
    border-bottom-right-radius: 7px;
}

.console-table th {
    padding: 10px 5px;
    background: var(--ada-grey-100);
    font-size: var(--ada-font-size-xs);
    font-weight: var(--ada-font-weight-medium);
    color: #757575;
    text-align: left;
    vertical-align: bottom;
}

.console-table td {
    padding: 8px 5px;
    font-size: var(--ada-font-size-base);
    background: var(--ada-color-white);
}

.console-table .num {
    text-align: right;
}

/* a table folded inside another's cell (Merchant Center's sub-accounts): its own grid frame, under its summary
   (the separate borders no longer double up as the collapsed ones did) */
.console-table .console-table {
    margin: 8px 0 0;
}

.console-steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.console-steps>li {
    counter-increment: step;
    position: relative;
    padding-left: 36px;
}

.console-steps>li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: var(--ada-radius-pill);
    background: var(--ada-color-primary-subtle);
    color: var(--ada-color-primary);
    font-size: var(--ada-font-size-base);
    font-weight: var(--ada-font-weight-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-steps>li>p:first-child {
    margin-top: 2px;
}

.console-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px 24px;
}

.console-field-label {
    font-size: var(--ada-font-size-sm);
    color: var(--ada-color-text-note);
}

/* Pop-ups (change 9 and after): NewPopupPanel. popup.css .bluePopup: white, 6px corners, the app's shadow,
   padding 20px 5px 5px; its header 18px weight 500 #36373C with "✕ Close" at 12px bold on the right; behind it
   common.css .blockingBackground (black at 25%). */
.console-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 16px;
    overflow: auto;
    box-sizing: border-box;
}

.console-modal-box {
    background: var(--ada-color-white);
    border-radius: var(--ada-radius-lg);
    width: 100%;
    max-width: 720px;
    box-shadow: 0 2px 7px 2px rgba(0, 0, 0, 0.16);
    padding: 20px 5px 5px;
    box-sizing: border-box;
    font-size: var(--ada-font-size-md);
    color: var(--ada-color-text);
}

.console-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 10px;
}

.console-page .console-modal-head h2,.console-modal-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: var(--ada-font-weight-medium);
    line-height: normal;
    color: var(--ada-color-text);
}

/* the header's Close: the app's close icon (popup images/close.svg) and "Close", 12px bold; the link's own
   text (×) stays for screen readers through its aria-label */
.console-modal-close {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0;
    line-height: normal;
    color: var(--ada-color-text);
    text-decoration: none;
    cursor: pointer;
}

.console-modal-close::before {
    content: "";
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 10 10'%3E%3Cpolygon fill='%232F5070' points='12.6666667 4.27333333 11.7266667 3.33333333 8 7.06 4.27333333 3.33333333 3.33333333 4.27333333 7.06 8 3.33333333 11.7266667 4.27333333 12.6666667 8 8.94 11.7266667 12.6666667 12.6666667 11.7266667 8.94 8'/%3E%3C/svg%3E") no-repeat center / 10px 10px;
}

.console-modal-close::after {
    content: "Close";
    font-size: var(--ada-font-size-sm);
    font-weight: var(--ada-font-weight-bold);
}

.console-modal-close:hover {
    color: var(--ada-color-text);
    text-decoration: none;
}

.console-modal-body {
    padding: 0 10px 10px;
}

/* 2026-10-19: a rail button's "no login" pop-up, shown while the address names it */
.console-notice {
    display: none;
}

.console-notice:target {
    display: flex;
}

.console-notice .console-modal-box {
    max-width: 440px;
}

/* 2026-10-26 (user): a notification destination's "Add", its how-to and form in a pop-up */
.console-notice.console-modal-form .console-modal-box {
    max-width: 560px;
}

.console-modal-form h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-modal-form ol {
    margin: 12px 0 4px;
    padding-left: 20px;
}

/* owner migration 020: the Team page's access log popup, a month's grid (wider than the other popups; its person
   column stays in place while the days scroll) */
.console-modal-wide .console-modal-box {
    max-width: 1180px;
}

/* 2026-11-06 (user): the Team page's forms in pop-ups (invite, change access, remove): the body scrolls within
   the window and the buttons stay pinned under it, so Save is never below the fold; the page behind does not
   scroll while one is open */
.console-modal-sheet .console-modal-box {
    max-width: 960px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.console-modal-sheet.console-modal-small .console-modal-box {
    max-width: 520px;
}

.console-modal-sheet .console-modal-box>form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

.console-modal-sheet .console-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 6px 10px 10px;
}

.console-modal-sheet .console-modal-body>:first-child {
    margin-top: 0;
}

.console-modal-sheet .console-modal-body>:last-child {
    margin-bottom: 0;
}

.console-modal-foot {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 10px 10px;
    border-top: 1px solid var(--ada-color-border-subtle);
}

body:has(.console-modal-sheet) {
    overflow: hidden;
}

/* the Team page's actions above the team, and what the last change did */
.console-actions {
    margin: 0 0 20px;
}

/* plan ui-consistency Phase 3: the one "Saved" / done message of every owner page (a row's own "Saved" stays a
   green pill beside the row); the app's success green (#30BD69) as its edge, on the success pill's tint, in the
   app's text colour so it reads as well as the page around it */
.console-confirm {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--ada-color-app-success);
    border-radius: var(--ada-radius-md);
    background: #E7F7EE;
    color: var(--ada-color-text);
}

.console-confirm p {
    margin: 0;
}

.console-confirm p+p {
    margin-top: 6px;
}

.access-log-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.access-log-wrap {
    overflow-x: auto;
    margin: 0 0 12px;
}

.access-log {
    width: auto;
    min-width: 100%;
    margin: 0;
}

.access-log th.who {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: left;
    vertical-align: top;
}

.access-log tbody th.who {
    background: var(--ada-color-white);
    font-size: var(--ada-font-size-base);
    font-weight: var(--ada-font-weight-normal);
    color: var(--ada-color-text);
}

.access-log th.day,.access-log td.day {
    width: 22px;
    min-width: 22px;
    height: auto;
    padding: 4px 0;
    text-align: center;
}

.access-log td.we,.access-log th.we {
    background: var(--ada-color-bg);
}

.access-log td.on {
    color: var(--ada-color-primary);
    cursor: default;
}

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

/* change 9: the team's access table (a row per login; "No access" greys its ad accounts out, no script) */
.access-table td {
    vertical-align: top;
}

.access-table select {
    max-width: 100%;
}

/* change 10 (user): the Ad accounts column takes the room (its lists hold the most) */
.access-table .col-login {
    width: 30%;
}

.access-table .col-level {
    width: 150px;
}

.access-table td.acc>select {
    width: 100%;
    max-width: 420px;
}

.access-table .acc-sub {
    margin-top: 8px;
}

.access-table summary {
    cursor: pointer;
    color: var(--ada-color-primary);
}

/* the chosen ad accounts' list: an inner box (settings-page.css .settingsInnerBox) */
.access-table .acc-list {
    max-height: 220px;
    overflow: auto;
    margin: 6px 0 0;
    padding: 4px 8px;
    border: 1px solid var(--ada-color-border-card);
    border-radius: var(--ada-radius-2xl);
}

.access-table tr:has(select.lvl option[value=NONE]:checked) td.acc {
    opacity: .45;
}

/* change 10 (user): the manager account's choice and the chosen ad accounts show only with that choice
   (no script; a browser without :has shows both, as before) */
@supports selector(:has(a)) {
    .access-table td.acc .acc-mgr,.access-table td.acc .acc-chosen {
        display: none;
    }

    .access-table td.acc:has(option[value=MANAGER]:checked) .acc-mgr {
        display: block;
    }

    .access-table td.acc:has(option[value=SELECTED]:checked) .acc-chosen {
        display: block;
    }
}

.owner-saved {
    margin-left: 4px;
}

/* a narrow screen: the menu folds behind "Menu", a small neutral button (buttons.css .blackButton at the small
   button's 30px) */
@media (max-width:760px) {
    .console-menu {
        display: none;
        position: absolute;
        top: 0;
        left: 64px;
        bottom: 0;
        z-index: 2;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    }

    .console-shell {
        position: relative;
    }

    .console-toggle:checked~.console-menu {
        display: flex;
    }

    .console-menubar {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        height: 30px;
        margin: 0 0 12px;
        padding: 0 15px;
        border: 1px solid var(--ada-color-border-card);
        border-radius: var(--ada-radius-btn);
        box-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.04);
        background: var(--ada-color-white);
        color: var(--ada-color-text);
        font-size: var(--ada-font-size-base);
        font-weight: var(--ada-font-weight-normal);
        cursor: pointer;
    }

    .console-page {
        padding: 16px;
    }

    .owner-list li {
        flex-wrap: wrap;
    }

    .owner-list .owner-row {
        justify-content: flex-start;
    }

    .console-fields {
        grid-template-columns: minmax(0,1fr);
    }
}
