.portal-shell{--ink:#16324f;--muted:#60758b;--line:#dce5ef;--portal-accent:#2563eb;--appearance-contrast:#fff;background:#f1f5f9;color:var(--ink)}
.portal-shell .app-sidebar{background:#f5f8fc;border-right:1px solid var(--line);color:var(--ink)}
.portal-shell .sidebar-links button,.portal-shell .sidebar-links summary{color:var(--ink);background:transparent}
.portal-shell .sidebar-links svg{color:var(--portal-accent)}
.portal-shell .sidebar-links button[aria-current=page]{background:#e7efff;color:var(--portal-accent);border-left:3px solid var(--portal-accent)}
.portal-shell .sidebar-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.portal-shell .sidebar-brand img{max-width:210px;max-height:60px;object-fit:contain}
.portal-shell .portal-brand-caption{display:flex;flex-direction:column;gap:4px}
.portal-shell .portal-brand-caption strong{font-size:22px}
.portal-shell .portal-brand-caption small{color:var(--muted);font-size:12px}
.portal-shell .panel{background:white;border:1px solid var(--line);border-radius:8px;box-shadow:none}
.portal-shell.has-sidebar>main{padding:28px 30px}
.portal-shell button:not(.secondary):not([data-section]):not([role=tab]):not(.manager-name){background:var(--portal-accent);color:var(--appearance-contrast);border-radius:5px}
.portal-shell button.secondary{background:white;color:var(--ink);border:1px solid #a9bbce;border-radius:5px}
.portal-shell :is(input,select,textarea){border-color:#a9bbce;border-radius:5px;color:var(--ink)}
.portal-shell :is(input,select,textarea,button,summary):focus-visible{outline:2px solid var(--portal-accent);outline-offset:-2px}
.portal-shell input[type=checkbox],.portal-shell input[type=radio]{accent-color:var(--portal-accent)}
.portal-shell th{background:#f5f8fc;color:var(--muted)}
.portal-shell .integration-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:22px}
.portal-shell .integration-tabs button[role=tab]{background:transparent;color:var(--ink);border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 18px;width:auto}
.portal-shell .integration-tabs button[aria-selected=true]{color:var(--portal-accent);border-bottom-color:var(--portal-accent)}
.portal-shell .integration-tabs button:disabled,.portal-shell .app-sidebar button:disabled{opacity:.45;cursor:not-allowed}
.portal-shell .didit-organization-card,.portal-shell [data-tenant-flows]{padding:28px 30px;border:1px solid #dce5ef;border-radius:4px;background:white;margin-top:20px}
.portal-shell .didit-organization-card h2,.portal-shell [data-tenant-flows] h2{font-size:24px;margin:0 0 28px;padding-bottom:22px;border-bottom:1px solid #dce5ef}
.portal-shell .didit-organization-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(260px,1fr);gap:36px;align-items:start}
.portal-shell .didit-organization-layout form{margin:0;min-width:0}
.portal-shell .didit-organization-card .integration-policy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.portal-shell .didit-organization-card label,.portal-shell [data-tenant-flows] label{display:block;font-size:14px;font-weight:600;line-height:1.5;margin:0}
.portal-shell .didit-organization-card input,.portal-shell [data-tenant-flows] select{display:block;box-sizing:border-box;width:100%;height:50px;margin:10px 0 0;padding:10px 14px;font-weight:400;background:white}
.portal-shell .organization-id-control{display:flex;gap:8px;margin-top:10px;align-items:stretch}
.portal-shell .organization-id-control input{flex:1;min-width:0;width:0;margin:0}
.portal-shell .organization-id-control button{height:50px;margin:0;display:inline-flex;align-items:center;justify-content:center}
.portal-shell .didit-connection{border-left:1px solid #dce5ef;padding-left:34px}
.portal-shell .didit-connection h3,.portal-shell .tenant-didit-columns h3{font-size:17px;margin:0 0 24px}
.portal-shell .didit-organization-card p,.portal-shell [data-tenant-flows] p{font-size:14px;line-height:1.6;color:var(--muted);margin:20px 0}
.portal-shell .didit-organization-card .actions,.portal-shell [data-tenant-flows] .actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.portal-shell .didit-organization-card .actions button,.portal-shell [data-tenant-flows] .actions button{width:auto;flex:0 0 auto;min-height:44px;padding:10px 20px;margin:0;font-size:14px}
.portal-shell .tenant-didit-columns{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.portal-shell .tenant-flow-column{border-left:1px solid #dce5ef;padding-left:36px}
.portal-shell .tenant-flow-column label+label{margin-top:24px}
.portal-shell .tenant-didit-columns h3{color:var(--muted)}
.portal-shell [data-tenant-flows] form>.actions{border-top:1px solid #dce5ef;padding-top:20px;justify-content:flex-end}
.portal-shell .didit-organization-card [data-connected=true]{color:#137052;background:#eaf6f0;padding:8px 12px;display:inline-block;border-radius:4px;margin:0 0 4px}
.portal-shell .didit-organization-card [data-connected=true]:before{content:'\25cf';margin-right:8px}
@media(max-width:1050px){.portal-shell .didit-organization-layout{grid-template-columns:1fr}.portal-shell .didit-connection{padding:20px 0 0;border-left:0;border-top:1px solid #dce5ef}}
@media(max-width:900px){.portal-shell.has-sidebar>main{margin-left:0;padding:20px 16px}}
@media(max-width:650px){.portal-shell .tenant-didit-columns,.portal-shell .didit-organization-card .integration-policy-fields{grid-template-columns:1fr}.portal-shell .tenant-flow-column{padding:20px 0 0;border-left:0;border-top:1px solid #dce5ef}.portal-shell .didit-organization-card,.portal-shell [data-tenant-flows]{padding:20px}}
/* Identity setup uses the full workspace, not the narrow sign-in panel. */
.portal-shell.has-sidebar #app:has(.didit-organization-card){display:block;min-width:0}
.portal-shell.has-sidebar #app>.panel:has(.didit-organization-card){width:100%;max-width:none;margin:0;padding:28px;min-width:0}
.portal-shell .didit-organization-layout>* ,.portal-shell .tenant-didit-columns>*{min-width:0}
.portal-shell #didit-organization{width:100%;max-width:none}
.portal-shell #didit-organization .organization-id-control button{min-width:44px!important;width:44px!important;flex:0 0 44px!important;padding:8px!important}
@media(min-width:1051px) and (max-width:1350px){.portal-shell .didit-organization-layout{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:24px}.portal-shell .didit-organization-card .integration-policy-fields{grid-template-columns:1fr}.portal-shell .didit-connection{padding-left:24px}}
@media(max-width:650px){.portal-shell.has-sidebar #app>.panel:has(.didit-organization-card){padding:16px}}
.portal-shell.has-sidebar #app:has(#provider-settings){display:block;min-width:0}
.portal-shell.has-sidebar #app>.panel:has(#provider-settings){width:100%;max-width:none;padding:28px;margin:0}
.portal-shell #provider-settings.integration-editor{padding:28px 30px;border-radius:8px;margin-top:28px}
.portal-shell #provider-settings h2{font-size:24px;margin:8px 0 26px}
.portal-shell #provider-settings .integration-key-grid{gap:12px 34px}
.portal-shell #provider-settings .integration-key{padding:0 0 28px;min-width:0}
.portal-shell #provider-settings .integration-key label{font-size:14px;margin:18px 0 0;line-height:1.5}
.portal-shell #provider-settings .integration-key input{flex:1;min-width:0;height:48px;min-height:48px;margin:0;padding:10px 14px}
.portal-shell #provider-settings .integration-key button{height:48px;min-height:48px;margin:0}
.portal-shell #provider-settings .actions button{flex:0 0 auto;width:auto;min-height:44px;padding:10px 20px}
@media(max-width:700px){.portal-shell #provider-settings .integration-key-grid{grid-template-columns:1fr}.portal-shell #provider-settings.integration-editor{padding:18px}}
.portal-shell.has-sidebar #app:has(.portal-manager){display:block;min-width:0}
.portal-shell #app>.portal-manager-panel{width:100%;max-width:none;padding:28px;margin:0}
.portal-shell .manager-heading{display:flex;justify-content:space-between;gap:24px;align-items:start;margin-bottom:24px}
.portal-shell .manager-tools{display:flex;gap:12px;flex-shrink:0}
.portal-shell .manager-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(140px,1fr)) auto;gap:14px;align-items:end;margin:0 0 24px;max-width:none}
.portal-shell .manager-filters label{margin:0;min-width:0}
.portal-shell .manager-filters input,.portal-shell .manager-filters select{margin-top:8px;width:100%;height:50px}
.portal-shell .manager-table{width:100%;border-collapse:collapse;font-size:14px}
.portal-shell .manager-table th,.portal-shell .manager-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:center}
.portal-shell .manager-table th:first-child,.portal-shell .manager-table td:first-child{text-align:left}
.portal-shell .manager-name{background:transparent;color:var(--ink);min-height:28px;padding:0;border:0;box-shadow:none;font-size:14px}
.portal-shell .manager-table-scroll{border:1px solid var(--line);border-radius:6px;overflow:auto}
.portal-shell [data-manager-message]:empty{display:none}
.portal-shell [data-purger]{margin-bottom:16px}
@media(max-width:1300px){.portal-shell .manager-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.portal-shell .manager-heading{flex-direction:column}.portal-shell .manager-filters{grid-template-columns:1fr}.portal-shell #app>.portal-manager-panel{padding:16px}}
/* Navigation keeps the corporate palette independently of company appearance. */
.portal-shell .app-sidebar{--ink:#16324f;--muted:#60758b;--accent:#2563eb;--portal-accent:#2563eb;--appearance-contrast:#fff;background:#f5f8fc;color:#16324f}
.portal-shell .app-sidebar .sidebar-links button,.portal-shell .app-sidebar .sidebar-links summary{color:#16324f}
.portal-shell .app-sidebar .sidebar-links svg{color:#2563eb}
.portal-shell .app-sidebar .sidebar-links button[aria-current=page]{color:#2563eb;background:#e7efff;border-left-color:#2563eb}
.portal-shell .app-sidebar .sidebar-links button:hover:not(:disabled),.portal-shell .app-sidebar .sidebar-links summary:hover{background:#e7efff;color:#2563eb}
.portal-shell .manager-pagination{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:26px;padding-top:20px;width:100%}
.portal-shell .manager-pagination [data-page]{order:-1;margin-right:auto;font-size:14px;color:var(--ink)}
.portal-shell .manager-pagination button{flex:0 0 auto;width:auto;min-width:124px;min-height:50px;margin:0;padding:12px 22px}
@media(max-width:600px){.portal-shell .manager-pagination{flex-wrap:wrap;justify-content:flex-end}.portal-shell .manager-pagination [data-page]{flex-basis:100%;margin-bottom:6px}.portal-shell .manager-pagination button{min-width:110px}}

/* Shared user administration layout. */
.portal-shell .console-users-panel{padding:0;border:0;background:none;margin:0;max-width:none}
.users-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.users-heading h1{font-size:20px;letter-spacing:-.5px;margin:8px 0}.users-heading p{max-width:76ch;font-size:13px;line-height:1.7;margin:0 0 16px}.users-breadcrumb{display:flex;align-items:center;gap:8px;font-size:11px;color:#60758b}.portal-shell .users-breadcrumb button{background:none;color:#60758b;border:0;padding:0;min-height:20px;font-size:11px;font-weight:400;box-shadow:none}
.console-users button{min-height:32px;border-radius:5px;padding:7px 12px;font-size:12px;gap:6px}.console-users button:not(.secondary){background:#2563eb}.users-heading>button{white-space:nowrap;margin-top:4px}.users-summary{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:18px}.users-summary>div{display:flex;flex-wrap:wrap;gap:24px;flex:1;font-size:12px;color:#60758b}.users-summary button{background:none;border:0;color:#60758b}
#user-editor{background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px;margin:16px 0}.editor-heading{display:flex;justify-content:space-between;align-items:center}.editor-heading h2{font-size:15px;font-weight:600;margin:0}.editor-heading button{border:0;min-width:28px;padding:2px;background:none}#user-editor p{font-size:12px;margin:8px 0 14px;line-height:1.6}#user-editor small{font-size:11px;color:#60758b;display:block;margin:5px 0 12px}.user-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}#user-editor label{font-size:11px;margin:12px 0 5px;font-weight:500}.console-users input,.console-users select{min-height:34px;border-radius:5px;font-size:12px;padding:7px 10px}.required-mark{color:#ba3030}.role-description{padding:9px 12px;background:#f1f5f9;border-radius:4px;color:#2563eb}.editor-actions{display:flex;gap:8px;margin-top:18px}.console-users #editor-error{color:#a52f21}.users-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin-top:16px}.console-users .users-tabs button{background:none;color:#60758b;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 4px;font-weight:400}.console-users .users-tabs button[aria-pressed=true]{color:#2563eb;border-bottom-color:#2563eb}.users-filters{display:grid;grid-template-columns:minmax(0,1fr) 150px 160px;gap:10px;margin:16px 0}.console-users .user-table-wrap{margin:0;background:#fff;border:1px solid var(--line);border-radius:6px}.console-user-table{font-size:12px}.console-user-table th{background:#f1f5f9;font-weight:500;font-size:10px;padding:10px 14px}.console-user-table td{padding:16px 14px;vertical-align:middle}.console-user-table td:first-child{width:52%}.user-person{display:flex;align-items:center;gap:12px}.user-initials{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f1f5f9;color:#2563eb;font-size:11px;flex-shrink:0}.user-self{color:#60758b;font-weight:400}.console-user-table small{font-size:11px;margin-top:3px}.access-pill{display:inline-block;padding:3px 7px;border-radius:12px;background:#f1f5f9;color:#60758b;font-size:10px;white-space:nowrap}.access-pill[data-state=active]{background:#edfbf5;color:#087456;border:1px solid #bfe9d6}.access-pill[data-state=invited]{background:#f1f5f9;color:#60758b}.access-pill[data-state=paused]{background:#fff4df;color:#845900}.console-user-table .user-actions{min-width:170px;text-align:right}.console-user-table .user-actions button{font-size:11px;min-height:30px;padding:5px 8px;margin:2px}.users-empty{text-align:center;color:#60758b}.console-users .local-invitation{margin:12px 0;padding-top:8px}
@media(max-width:650px){.users-heading{gap:12px;flex-wrap:wrap}.users-heading h1{font-size:20px}.users-summary{flex-wrap:wrap}.users-summary>div{flex-basis:100%;gap:12px}.user-name-fields{grid-template-columns:1fr;gap:0}.users-filters{grid-template-columns:1fr 1fr}.users-filters input{grid-column:1/-1}.console-user-table{min-width:670px}#user-editor{padding:14px}}
.portal-shell.has-sidebar #app:has(.console-users){display:block;min-width:0}
.portal-shell #app>.console-users-panel{width:100%;max-width:none;padding:20px 0;border:0;background:transparent}
.portal-shell .users-breadcrumb{display:none}
.portal-shell .users-heading h1{font-size:30px;margin:0 0 16px}
.portal-shell .users-heading p{font-size:14px}
.portal-shell .console-users button{font-size:14px;min-height:42px;padding:9px 16px}
.portal-shell .users-summary{padding:16px 0}
.portal-shell .users-summary>div{font-size:14px}
.portal-shell .users-filters{grid-template-columns:minmax(0,1fr) 190px 200px;gap:12px;margin:20px 0}
.portal-shell .console-users input,.portal-shell .console-users select{font-size:14px;min-height:48px}
.portal-shell .console-user-table{width:100%;border-collapse:collapse;font-size:14px}
.portal-shell .console-user-table th{font-size:14px;padding:15px 18px;text-align:left}
.portal-shell .console-user-table small{font-size:13px;display:block}
.portal-shell .console-user-table .user-actions button{font-size:13px;min-height:40px}
.portal-shell .console-users .users-tabs button{background:transparent!important;color:var(--muted);padding:12px 16px}
.portal-shell .console-users .users-tabs button[aria-pressed=true]{color:#2563eb;border-bottom-color:#2563eb}
.portal-shell #user-editor label{font-size:14px}
.portal-shell .access-pill{font-size:12px}
@media(max-width:700px){.portal-shell .users-filters{grid-template-columns:1fr}.portal-shell .users-heading{flex-wrap:wrap}.portal-shell .users-summary{flex-wrap:wrap}.portal-shell .users-summary>div{flex-basis:100%}}
/* Content tabs follow company appearance; sidebar navigation remains corporate. */
.portal-shell .console-users .users-tabs{gap:12px;padding-bottom:0}
.portal-shell .console-users .users-tabs button{background:var(--portal-accent)!important;color:var(--appearance-contrast)!important;border:1px solid transparent;border-bottom:3px solid transparent;border-radius:5px 5px 0 0;padding:10px 18px;font-weight:600}
.portal-shell .console-users .users-tabs button[aria-pressed=true]{color:var(--appearance-contrast)!important;border-bottom-color:currentColor}
.portal-shell .console-users .users-tabs button[aria-pressed=false]{opacity:.8}
.portal-shell .console-users .users-tabs button:hover{opacity:1}

main:has(.report-recipients){display:block}.portal-shell .report-recipients{width:100%;max-width:none;box-sizing:border-box}.recipient-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.recipient-columns section{min-width:0;padding:20px;border:1px solid #d6e0ed;border-radius:8px}.recipient-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}.recipient-row input{min-width:0;flex:1;margin:0}.recipient-row button,.recipient-columns button,.report-recipients .actions button{width:auto;flex:none}.report-recipients .actions{display:flex;justify-content:flex-end;margin-top:24px}@media(max-width:760px){.recipient-columns{grid-template-columns:1fr}}

main:has(.appearance-settings),main:has(.report-recipients){display:block}.panel:has(.appearance-settings),.panel:has(.report-recipients){width:100%;max-width:none;box-sizing:border-box}.appearance-branding-row{display:flex;align-items:center;gap:30px;margin:28px 0}.appearance-logo-picker{display:flex;align-items:center;gap:26px;flex:1;min-width:0;padding:24px;background:#fff;border:1px solid #d6e0ed;border-radius:8px}.appearance-logo-thumb{width:188px;height:124px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#f6f8fa;border:1px solid #d6e0ed;border-radius:6px}.appearance-logo-thumb img{max-width:90%;max-height:90%;object-fit:contain}.appearance-logo-actions,.appearance-colors{display:flex;gap:12px}.appearance-logo-actions button,.appearance-settings .actions button{width:auto;flex:none}.appearance-colors label{display:grid;gap:8px}.appearance-colors input[type=color]{width:96px;height:52px;padding:10px}.appearance-settings .actions{display:flex;gap:14px;flex-wrap:wrap}.appearance-logo-controls small{display:block;margin-top:12px}@media(max-width:1000px){.appearance-branding-row{flex-direction:column;align-items:stretch}.appearance-colors{justify-content:flex-start}}@media(max-width:560px){.appearance-logo-picker{flex-direction:column;align-items:flex-start}.appearance-logo-actions{flex-wrap:wrap}}

.portal-shell .appearance-settings{width:100%;max-width:none;min-width:0}.portal-shell .appearance-settings>form{width:100%;max-width:none}

main:has(.tenant-subscription){display:block}.panel:has(.tenant-subscription){width:100%;max-width:none}.tenant-subscription header{padding:0;border:0;background:transparent}.tenant-subscription header p{margin:8px 0 20px}.subscription-badge{padding:6px 12px;border-radius:6px;background:#e8f7f1;color:#08705d}.tenant-contract{display:grid;grid-template-columns:repeat(2,1fr);text-align:center;gap:20px;padding:24px 0;border-block:1px solid #d6e0ed;margin:20px 0}.tenant-contract strong{display:block;margin-top:10px}.tenant-allowances{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tenant-allowances article{text-align:center;padding:24px;background:#f1f5f9;border:1px solid #d6e0ed;border-radius:8px}.tenant-allowances h2{font-size:19px}.tenant-allowances b{font-size:28px}.tenant-subscription .actions button{flex:none;width:auto}.tenant-subscription table{width:100%;border-collapse:collapse;text-align:center}.tenant-subscription th,.tenant-subscription td{padding:14px;border-bottom:1px solid #d6e0ed}.tenant-subscription [data-detail]{margin-top:24px}@media(max-width:650px){.tenant-contract,.tenant-allowances{grid-template-columns:1fr}}

.tenant-subscription .subscription-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}.tenant-subscription .subscription-detail-heading button{width:auto;flex:none}.tenant-subscription [data-detail]{margin-top:0}

.subscription-detail-heading:has(.subscription-return),.consumption-heading:has(.subscription-return){display:flex;flex-direction:column;align-items:flex-start;gap:20px}.subscription-return,.portal-shell button.subscription-return{background:#2563eb!important;color:#fff!important;width:auto!important;flex:none!important;min-height:42px;padding:10px 18px;border:1px solid transparent;border-radius:4px}.subscription-return:hover:not(:disabled){background:#1d4ed8!important}

main:has(.completion-settings){display:block}.panel:has(.completion-settings){width:100%;max-width:none}.completion-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px}.completion-columns section{border:1px solid #d6e0ed;border-radius:8px;padding:24px;min-width:0}.completion-columns h2{font-size:22px}.completion-toggle{display:flex;align-items:center;gap:10px}.completion-toggle input{width:auto}.completion-settings .actions button{flex:none;width:auto}@media(max-width:760px){.completion-columns{grid-template-columns:1fr}}

main:has(.user-access-settings){display:block}.portal-shell .panel:has(.user-access-settings){width:100%;max-width:none}.user-access-settings{width:100%;max-width:none}.user-access-settings>h1{margin-top:24px}.access-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px}.access-settings-grid section{padding:24px;border:1px solid #dce5ef;border-radius:8px;background:#fff;min-width:0}.access-settings-grid h2{font-size:21px;margin:0 0 8px}.access-settings-grid label{display:block;margin:20px 0 8px;font-weight:600}.access-unit{display:flex;align-items:center;border:1px solid #a9bbce;border-radius:5px;overflow:hidden}.portal-shell .access-unit input{margin:0;border:0;border-radius:0;min-width:0;flex:1;width:100%}.access-unit span{padding:0 16px;color:#60758b}.access-settings-grid select{width:100%;margin:0}.access-settings-grid small{display:block;margin-top:20px;color:#60758b;line-height:1.6}.access-settings-actions{display:flex;justify-content:flex-end;border-top:1px solid #dce5ef;padding-top:20px;margin-top:24px}.access-settings-actions button{width:auto;min-width:110px}.user-access-settings [role=status]:empty{display:none}@media(max-width:760px){.access-settings-grid{grid-template-columns:1fr}}

body button.navigation-return{background:#2563eb!important;color:#fff!important;border:1px solid transparent;border-radius:4px;min-height:42px;padding:10px 18px;width:auto!important;flex:none!important;font-size:14px;box-shadow:none}body button.navigation-return:hover:not(:disabled){background:#1d4ed8!important}body button.navigation-return:focus-visible{outline:2px solid #16324f;outline-offset:3px}.navigation-return-row{display:block;margin-bottom:22px}

main:has(.api-documentation),main:has(.api-keys){display:block}.panel:has(.api-documentation),.panel:has(.api-keys){width:100%;max-width:none}.api-documentation h1{margin-top:24px}.api-documentation table{width:100%;border-collapse:collapse}.api-documentation th,.api-documentation td{text-align:left;padding:12px;border-bottom:1px solid #dce5ef}.api-documentation pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5f9;padding:18px;border-radius:6px;max-height:480px;overflow:auto}.api-documentation form{max-width:none}.api-documentation textarea{width:100%;font-family:monospace}.api-documentation details{margin:24px 0}.api-documentation form button{width:auto;margin:10px 0}.api-doc-actions{margin:16px 0}

.api-keys>form{margin:24px 0;padding:24px;border:1px solid #dce5ef;border-radius:8px;max-width:none}.api-keys .key-expiry-toggle{display:flex;align-items:center;gap:10px;margin:20px 0}.api-keys .key-expiry-toggle input{width:auto}.key-expiry-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.api-keys .actions button{flex:none;width:auto}.api-keys [data-create]{margin:20px 0}@media(max-width:600px){.key-expiry-fields{grid-template-columns:1fr}}

.api-key-value { display:flex; align-items:center; gap:8px; min-width:260px; }
.api-key-value input { min-width:0; width:100%; font-family:monospace; }
.api-key-value button { flex:0 0 auto; width:42px; padding:8px; display:grid; place-items:center; }

.api-keys > [data-refresh] { display: block; margin: 16px 0; }
.api-keys .manager-table td .actions { margin: 0; }

.api-keys .api-key-icon { display:inline-grid; place-items:center; width:40px; height:40px; min-width:40px; padding:8px; flex:0 0 auto; }
.api-keys .api-key-icon[data-delete] { color:#b42318; }

.api-key-list-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; }
.api-key-list-toolbar > button { margin:0; width:auto; flex:0 0 auto; }

.api-reference-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;margin-top:24px;align-items:start}
.api-reference-nav{position:sticky;top:16px;background:#f3f7fc;border:1px solid #d7e2f0;padding:16px;border-radius:8px}
.api-reference-nav>strong{display:block;font-size:20px;margin-bottom:20px;color:#123454}
.api-reference-nav>strong small{font-size:12px;color:#526b86;margin-left:8px}
.api-reference-nav h3{font-size:13px;color:#526b86;margin:24px 8px 8px}
.api-documentation .api-reference-nav button{display:grid;grid-template-columns:1fr auto;text-align:left;width:100%;background:transparent;color:#173858;border:0;border-radius:5px;padding:12px 10px;margin:4px 0;gap:8px;font-size:14px;box-shadow:none}
.api-documentation .api-reference-nav button[aria-current="true"]{background:#e3edff;color:#174dcc;box-shadow:inset 3px 0 #275df5}
.api-reference-nav button code{grid-column:1/-1;font-size:11px;overflow-wrap:anywhere;color:#526b86}
.api-reference-content{min-width:0}
.api-reference-content table{width:100%;border-collapse:collapse}
.api-reference-content th,.api-reference-content td{text-align:left;padding:12px;border-bottom:1px solid #e0e7ef}
.api-reference-content h2{font-size:26px}
.api-reference-content h3{font-size:17px;margin-top:24px}
.api-endpoint-path{display:flex;align-items:center;gap:12px;background:#f3f7fc;border:1px solid #d7e2f0;padding:16px;overflow-wrap:anywhere}
.method-badge{font:700 12px monospace;padding:4px 6px;border-radius:4px}
.method-get{color:#1755b4;background:#e1edff}
.method-post{color:#14704c;background:#ddf4e9}
.api-endpoint-auth{border-left:3px solid #275df5;padding:12px 16px;background:#f3f7fc}
.api-reference-detail form{margin-top:20px}
.api-reference-content pre{background:#15283f;color:#e1edff;padding:20px;border-radius:6px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.api-documentation{max-width:none;width:100%}
@media(max-width:850px){.api-reference-layout{grid-template-columns:1fr;gap:20px}.api-reference-nav{position:static}.api-reference-content{overflow-x:auto}}

body .api-documentation .api-reference-nav button { background:transparent !important; color:#173858 !important; }
body .api-documentation .api-reference-nav button:hover { background:#edf2fa !important; }
body .api-documentation .api-reference-nav button[aria-current="true"] { background:#e3edff !important; color:#174dcc !important; }
body .api-documentation .api-reference-nav button:focus-visible { outline:2px solid #275df5; outline-offset:2px; }


.api-reference-nav h3 { padding:10px 12px; margin:20px 0 8px; border:1px solid #d2ddeb; border-radius:6px; background:#f7f9fc; box-shadow:0 2px 4px rgba(25,55,90,.09); }


.portal-shell .login-recovery-link{text-align:right;margin:12px 0 22px}.portal-shell .login-recovery-link a{color:#245bea;text-decoration:underline;text-underline-offset:3px;font-size:14px}.portal-shell .login-recovery-link a:hover{color:#173c9c}

.portal-shell .portal-login-password{display:flex;gap:10px;align-items:stretch}.portal-shell .portal-login-password input{flex:1;min-width:0;margin:0}.portal-shell .portal-login-password button{width:48px;flex:0 0 48px;margin:0;padding:0;display:grid;place-items:center}

body :is(input,select,textarea){border-color:#a9bbce!important}body :is(input,select,textarea):focus,body :is(input,select,textarea):focus-visible{border-color:#2563eb!important;outline:2px solid #2563eb!important;outline-offset:-2px;box-shadow:none!important}body input:is([type=checkbox],[type=radio]){accent-color:#2563eb!important}.drive-connection{border:1px solid #dce5ef;padding:24px;border-radius:8px}.drive-reports{width:100%}
