/* Opt-in components. Legacy validated pages keep their layout; portals consume the same tokens. */
:where(.ui-scope),.portal-panel-page{box-sizing:border-box;background:var(--app-bg);color:var(--app-text);font:500 18px/1.6 var(--ui-font);margin:0}
:where(.ui-scope) *,:where(.ui-scope) *:before,:where(.ui-scope) *:after{box-sizing:border-box}
:where(.ui-scope) [hidden]{display:none!important}:where(.ui-scope) a{color:var(--app-link);text-decoration:none}:where(.ui-scope) a:hover{text-decoration:underline}
:where(.ui-scope) :is(button,input,select,textarea){font-family:var(--ui-font);font-size:13px}
:where(.ui-scope) :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #159c58;outline-offset:3px}
:where(.ui-scope) :is(button,.button):not(:where(.locale-picker-option,.tutorial-filter,.fq-tutorial,.sa-button,.app-theme-toggle,.xp-btn)){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--ui-control-height);padding:10px 16px;border:1px solid var(--app-border);border-radius:var(--ui-control-radius);background:var(--app-surface);color:var(--app-link);font-weight:700;line-height:1.45;text-decoration:none;cursor:pointer;transition:background-color .16s,color .16s,border-color .16s,box-shadow .16s}
:where(.ui-scope) :is(button,.button):not(:where(.locale-picker-option,.tutorial-filter,.fq-tutorial,.sa-button,.app-theme-toggle,.xp-btn)):hover:not(:disabled){background:var(--app-link);color:var(--app-surface);border-color:var(--app-link);text-decoration:none}
:where(.ui-scope) :is(button.primary,.button.primary,button[type=submit]:not(.secondary):not(.danger):not(.text-link)){background:#10a144;border-color:#10a144;color:#fff}
:where(.ui-scope) :is(button.primary,.button.primary,button[type=submit]:not(.secondary):not(.danger):not(.text-link)):hover:not(:disabled){background:#087d36;border-color:#087d36;color:#fff}
:where(.ui-scope) button.danger{background:var(--ui-danger-bg);color:var(--ui-danger-ink);border-color:var(--ui-danger-line)}
:where(.ui-scope) button.danger:hover:not(:disabled){background:var(--ui-danger-ink);color:var(--app-surface)}
:where(.ui-scope) button:disabled{opacity:.5;cursor:default;box-shadow:none;transform:none}
:where(.ui-scope) form button:not([type]):not(.secondary):not(.danger):not(.text-link){background:#10a144;border-color:#10a144;color:#fff}
:where(.ui-scope) form button:not([type]):not(.secondary):not(.danger):not(.text-link):hover:not(:disabled){background:#087d36;border-color:#087d36;color:#fff}
:where(.ui-scope) :is(.text-link,button.link){background:transparent;border:0;min-height:0;padding:6px 0;color:var(--app-link);text-decoration:underline}
:where(.ui-scope) :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:var(--ui-control-height);padding:10px 12px;border:1px solid var(--app-border);border-radius:var(--ui-control-radius);background:var(--app-surface);color:var(--app-text);font-weight:400;line-height:1.45;box-shadow:none}
:where(.ui-scope) :is(input,textarea)::placeholder{color:var(--app-muted);opacity:.85}
:where(.ui-scope) :is(input,select,textarea):is(:disabled,[readonly]){background:var(--app-surface-soft);color:var(--app-muted);cursor:default;opacity:1}
:where(.ui-scope) textarea{min-height:110px;resize:vertical}:where(.ui-scope) :is(input[type=checkbox],input[type=radio]){display:inline-block;width:17px;height:17px;min-height:17px;margin:2px 7px 0 0;padding:0;accent-color:var(--ui-green);vertical-align:middle;flex:none}
:where(.ui-scope) label,:where(.ui-scope) .form label{display:block;margin-bottom:6px;color:var(--app-text);font-size:12px;font-weight:700}
:where(.ui-scope) .form label{display:grid;gap:6px}:where(.ui-scope) .form{display:grid;gap:16px}:where(.ui-scope) .form .checks,:where(.ui-scope) .check{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
:where(.ui-scope) :is(.card,.panel,.ui-card){min-width:0;border:1px solid var(--app-border);border-radius:var(--ui-radius);background:var(--app-surface);padding:20px;margin:0 0 18px;box-shadow:none}
:where(.ui-scope) h1{font-family:var(--ui-font);font-size:clamp(27px,3vw,36px);font-weight:750;line-height:1.2;letter-spacing:-.02em;color:var(--app-text);margin:0 0 7px}
:where(.ui-scope) :is(.lead,p.lead){margin:0 0 16px;max-width:none;color:var(--app-muted);font-size:14px;font-weight:500;line-height:1.55}
:where(.ui-scope) :is(h2,h3){font-family:var(--ui-font);color:inherit;font-weight:700;line-height:1.2}:where(.ui-scope) h2{font-size:16px}:where(.ui-scope) h3{font-size:14px}
:where(.ui-scope) :is(.card,.panel,.ui-card)>h2{font-size:16px;line-height:1.4;margin:0 0 16px;padding:0 0 12px 13px;border:0;border-bottom:1px solid var(--ui-title-line);position:relative}
:where(.ui-scope) :is(.card,.panel,.ui-card)>h2:before{content:'';position:absolute;left:0;top:0;width:4px;height:21px;border-radius:3px;background:linear-gradient(var(--ui-teal),var(--ui-green))}
:where(.ui-scope) :is(.muted,small,.portal-wallet-muted){color:var(--app-muted)}:where(.ui-scope) small{font-size:12px}:where(.ui-scope) p{line-height:1.6}
:where(.ui-scope) table{width:100%;border-collapse:collapse;background:var(--app-surface);font-size:12px;color:var(--app-text)}
:where(.ui-scope) :is(td,th){padding:12px;border-bottom:1px solid var(--app-border);text-align:left;vertical-align:top;white-space:nowrap}:where(.ui-scope) th{background:var(--app-surface-soft);color:var(--app-muted);font-size:11px;font-weight:700}
:where(.ui-scope) tbody tr:hover{background:var(--app-hover)}:where(.ui-scope) :is(.scroll,.table-wrap){overflow:auto;max-width:100%;min-width:0}:where(.ui-scope) .empty{text-align:center;padding:30px 12px;color:var(--app-muted)}
:where(.ui-scope) :is(.stat,.metric){min-width:0;border:1px solid var(--app-border);border-radius:var(--ui-radius);background:var(--app-surface);color:var(--app-text);padding:20px;transition:transform .18s,background-color .18s}
:where(.ui-scope) :is(a.stat,a.metric,.analyst-stat):hover{transform:translateY(-3px);background:var(--app-hover);text-decoration:none}
:where(.ui-scope) :is(.tag,.badge){display:inline-block;padding:3px 8px;border-radius:6px;background:var(--app-surface-soft);color:var(--app-link);font-size:11px;white-space:nowrap}
:where(.ui-scope) dialog{width:min(900px,calc(100% - 28px));max-height:92dvh;border:1px solid var(--app-border);border-radius:14px;padding:24px;background:var(--app-surface);color:var(--app-text)}:where(.ui-scope) dialog::backdrop{background:#0d1d16aa}
:where(.ui-scope) .dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--app-border);margin-bottom:20px}:where(.ui-scope) .icon{width:34px;min-width:34px;min-height:34px;height:34px;padding:0;font-size:20px;line-height:1}
:where(.ui-scope) #dialog-close{position:sticky;top:0;float:right;z-index:3;margin:0 0 4px 8px;min-height:34px;padding:2px 9px;font-size:20px}
:where(.ui-scope) details:not(.ui-navbar details):not(.app-account-menu):not(.locale-picker):not(.tutorial-topic-list):not(.onboarding-step):not(.portal-language-panel){border:1px solid var(--app-border);border-radius:8px;margin:14px 0;padding:12px}:where(.ui-scope) summary:not(.locale-picker-trigger){cursor:pointer;font-weight:700}:where(.ui-scope) pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--app-surface-soft);padding:14px;border-radius:8px;font:12px/1.6 monospace;max-height:500px;overflow:auto}
.ui-alert{--alert-bg:var(--ui-info-bg);--alert-ink:var(--ui-info-ink);--alert-line:var(--ui-info-line);display:flex;align-items:center;gap:10px;margin:12px 0 14px;padding:11px 13px;border:1px solid var(--alert-line);border-radius:10px;background:var(--alert-bg);color:var(--alert-ink);font:500 12px/1.45 var(--ui-font);box-shadow:0 2px 8px #14282009}
.ui-alert[data-kind=warning]{--alert-bg:var(--ui-warning-bg);--alert-ink:var(--ui-warning-ink);--alert-line:var(--ui-warning-line)}.ui-alert[data-kind=success]{--alert-bg:var(--ui-success-bg);--alert-ink:var(--ui-success-ink);--alert-line:var(--ui-success-line)}.ui-alert[data-kind=error]{--alert-bg:var(--ui-danger-bg);--alert-ink:var(--ui-danger-ink);--alert-line:var(--ui-danger-line)}
.ui-alert-icon{display:block;flex:0 0 18px;width:18px;height:18px;color:inherit}.ui-alert-copy{flex:1;min-width:0}.ui-alert :is(p,strong,small,a){color:inherit;font:inherit}.ui-alert p{margin:0}.ui-alert a{text-decoration:underline}.ui-alert-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-left:auto}
:where(.ui-scope) .ui-alert .ui-alert-action{min-height:30px;padding:5px 10px;border:1px solid currentColor;border-radius:7px;background:transparent;color:var(--alert-ink);font:700 11px/1.45 var(--ui-font)}:where(.ui-scope) .ui-alert .ui-alert-action:is(:hover,:focus-visible):not(:disabled){background:var(--alert-ink);color:var(--alert-bg)}
:where(.ui-scope) #feedback{position:static;transform:none;max-width:none;width:calc(100% - 24px);margin:12px auto;z-index:auto;box-shadow:none}:where(.ui-scope) #feedback:empty{display:none}
:where(.ui-scope) .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}:where(.ui-scope) .row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}:where(.ui-scope) .actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}
@media(max-width:650px){:where(.ui-scope) :is(input,select,textarea){font-size:16px}:where(.ui-scope) :is(.card,.panel,.ui-card){padding:16px}:where(.ui-scope) .grid{grid-template-columns:1fr}.ui-alert{flex-wrap:wrap}.ui-alert-actions{width:100%}}
@media(prefers-reduced-motion:reduce){:where(.ui-scope) *, :where(.ui-scope) *:before,:where(.ui-scope) *:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Shared form contract: every control keeps the same size, focus and disabled state. */
:where(.ui-scope) select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23748f82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;padding-right:38px}
:where(.ui-scope) label.ui-checkbox,:where(.ui-scope) .form label.mgm-check{display:flex;align-items:flex-start;gap:9px;grid-template-columns:none;font-weight:400;line-height:1.6;margin:0}
:where(.ui-scope) label.ui-checkbox>input,:where(.ui-scope) .form label.mgm-check>input{flex:0 0 17px;margin:3px 0 0;width:17px;height:17px;min-height:17px}
:where(.ui-scope) label.ui-checkbox>span,:where(.ui-scope) .form label.mgm-check>span{display:block;min-width:0;flex:1;line-height:1.6}
:where(.ui-scope) label.ui-checkbox a,:where(.ui-scope) .form label.mgm-check a{display:inline;text-decoration:underline}
:where(.ui-scope) input[type=range]{padding:0;min-height:24px;height:24px;accent-color:var(--ui-green);background:transparent;border:0}
:where(.ui-scope) .locale-picker-trigger svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

.portal-analysis-progress{display:flex;padding:0;margin:22px 0;list-style:none;gap:4px;min-width:0}.portal-analysis-progress li{flex:1;min-width:0;position:relative;text-align:center;padding:0 4px;color:var(--app-muted);font-size:11px;line-height:1.4}.portal-analysis-progress li:before{content:'';position:absolute;top:13px;height:1px;background:var(--app-border);left:-50%;right:50%;z-index:0}.portal-analysis-progress li:first-child:before{display:none}.portal-analysis-progress li:is(.is-done,.is-current):before{background:#0c7b57;height:2px;top:12.5px}.portal-analysis-progress li>span{display:grid;position:relative;z-index:1;place-items:center;border:1px solid var(--app-border);background:var(--app-surface);width:28px;height:28px;margin:0 auto 8px;border-radius:50%;font-size:12px}.portal-analysis-progress li.is-current>span,.portal-analysis-progress li.is-done>span{background:#0c7b57;border-color:#0c7b57;color:#fff}.portal-analysis-progress li.is-current strong,.portal-analysis-progress li.is-done strong{color:var(--app-text)}.portal-analysis-progress li strong{display:block;overflow-wrap:anywhere}.portal-analysis-progress li small{display:block;margin-top:3px;font-size:10px}

/* Form rhythm: label 6px control, helper 6px, fields 16px, actions 20px. */
:where(.ui-scope) .form{display:grid;gap:16px}:where(.ui-scope) .form>label:not(.mgm-check):not(.ui-checkbox){display:grid;gap:6px;margin:0}:where(.ui-scope) .field{margin:0 0 16px}:where(.ui-scope) .field>label{display:block;margin:0 0 6px}:where(.ui-scope) .field-help,:where(.ui-scope) .field-counter{display:block;margin:6px 0 0;color:var(--app-muted);font-size:11px;line-height:1.45}:where(.ui-scope) .field-counter{text-align:right}:where(.ui-scope) .actions{margin-top:20px}:where(.ui-scope) .card>p{margin:0 0 16px}:where(.ui-scope) .locale-picker{padding:0!important;border:0!important;margin:0!important}:where(.ui-scope) .ui-alert-action,:where(.ui-scope) .adv-notice-action{text-decoration:none!important}:where(.ui-scope) .mgm-check{font-weight:400!important;line-height:1.5}:where(.ui-scope) .mgm-check input{margin-top:2px}

:where(.ui-scope) .field-counter{font-weight:400}:where(.ui-scope) [hidden]{display:none!important}

/* Action feedback is a full row inside its section, never a page-top toast. */
[data-card-feedback]{box-sizing:border-box;grid-column:1 / -1;flex-basis:100%;width:100%;min-width:0;margin:12px 0!important}.ui-alert[hidden],[data-card-feedback][hidden]{display:none!important}.ui-alert .ui-alert-actions a{text-decoration:none}:where(.ui-scope) .form>.ui-alert{margin:0}:where(.ui-scope) .portal-receiving-card .form{gap:12px}:where(.ui-scope) .portal-receiving-card .actions{margin-top:0}:where(.ui-scope) .portal-receiving-card .portal-referral-choice{margin:0;padding:12px}:where(.ui-scope) .portal-receiving-card .portal-referral-choice p{margin:6px 0 10px}:where(.ui-scope) .portal-receiving-card .portal-referral-choice h3{margin:0}:where(.ui-scope) .portal-receiving-card>p{margin-bottom:12px}

/* Semantic statuses shared with the domain's referral/subscription badges. */
:where(.ui-scope) .ui-status,.mgm-status{display:inline-block;align-self:center;padding:3px 7px;border-radius:5px;font-size:11px;font-weight:650;line-height:1.5;white-space:nowrap;background:var(--ui-success-bg);color:var(--ui-success-ink)}
:where(.ui-scope) .ui-status[data-ui-status=pending],.mgm-status:is(.pending,.holding){background:var(--ui-warning-bg)!important;color:var(--ui-warning-ink)!important}:where(.ui-scope) .ui-status[data-ui-status=cancelled],.mgm-status:is(.cancelled,.reversed){background:var(--ui-danger-bg)!important;color:var(--ui-danger-ink)!important}

.mgm-page .mgm-status{background:var(--ui-success-bg);color:var(--ui-success-ink)}

/* Administrative section forms use the same right-aligned primary action. */
:where(.ui-scope) form.section-form>button[type=submit]{display:flex;margin-left:auto}

/* Accessible shared on/off switch, including keyboard focus and disabled state. */
:where(.ui-scope) input[role=switch]{appearance:none!important;position:relative;flex:0 0 40px!important;width:40px!important;height:22px!important;min-height:22px!important;border:1px solid var(--app-border);border-radius:12px;background:var(--app-surface-soft);padding:0;cursor:pointer}:where(.ui-scope) input[role=switch]:before{content:'';position:absolute;width:16px;height:16px;left:2px;top:2px;background:var(--app-muted);border-radius:50%;transition:transform .15s}:where(.ui-scope) input[role=switch]:checked{background:#087c59;border-color:#087c59}:where(.ui-scope) input[role=switch]:checked:before{transform:translateX(18px);background:#fff}:where(.ui-scope) input[role=switch]:disabled{opacity:.5;cursor:default}

:where(.ui-scope) .portal-visibility-switch{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.5;color:var(--app-text)}:where(.ui-scope) .portal-visibility-switch input[role=switch]{margin:0;vertical-align:middle;align-self:center}.portal-visibility-switch>span{font:inherit;cursor:default}
:where(.ui-scope) .portal-visibility-missing{align-items:flex-start;margin:0 0 12px}:where(.ui-scope) .portal-visibility-missing .ui-alert-icon{margin-top:1px}:where(.ui-scope) .portal-visibility-missing ul{margin:4px 0 0;padding-left:18px}:where(.ui-scope) .portal-visibility-missing li{margin:2px 0}

/* Supporting card copy stays smaller than body text across all portals. */
:where(.ui-scope) .card-subtitle{font-size:14px;font-weight:400;line-height:1.65;color:var(--app-muted)}

/* Shared read-only data table, including authenticated domain settings. */
.app-table-wrap{max-width:100%;overflow:auto}
/* The payment-history table is the reference for owner-facing data tables. */
:where(.app-table-wrap) .app-data-table{width:100%;border-collapse:collapse;background:var(--app-surface,#fff);white-space:normal;font-size:12px;color:var(--app-text,#182723)}
:where(.app-table-wrap) .app-data-table :is(th,td){padding:18px 13px;border:0;border-bottom:1px solid #edf1ee;text-align:left;vertical-align:middle;line-height:1.6}
:where(.app-table-wrap) .app-data-table thead th{padding-block:13px;border-block:1px solid #e6ece8;background:#f7faf8!important;color:#65766d;font-size:11px!important;font-weight:600}
.app-data-table tr[hidden]{display:none!important}
html[data-theme=dark] body :where(.app-table-wrap) .app-data-table :is(th,td){background:var(--app-surface)!important;color:var(--app-text);border-color:var(--app-border)}
html[data-theme=dark] body :where(.app-table-wrap) .app-data-table thead th{background:var(--app-surface-soft)!important;color:var(--app-muted)}
.app-empty-state{display:grid;min-height:64px;place-items:center;margin:0 0 14px;padding:14px;border:1px solid #e6cf86;border-radius:8px;background:#fff8e4;color:#664a06;font-size:12px;font-weight:400;text-align:center}
html[data-theme=dark] body .app-empty-state{background:#38331d!important;color:var(--app-warning)!important;border-color:#877341!important}

/* Optional mobile history layout: the same row spacing as subscription history. */
@media(max-width:560px){
 .app-data-table.app-data-table--responsive,.app-data-table--responsive tbody{display:block}
 .app-data-table--responsive thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .app-data-table--responsive tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px 14px;padding:18px 13px;border-top:1px solid #e6ece8}
 .app-data-table.app-data-table--responsive td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
 .app-data-table--responsive .app-table-primary{grid-column:1;grid-row:1;font-weight:600}
 .app-data-table--responsive .app-table-secondary{grid-column:1/-1;grid-row:2;color:var(--app-muted);font-size:11px}
 .app-data-table--responsive .app-table-details{grid-column:1/-1;grid-row:3}
 .app-data-table--responsive .app-table-state{grid-column:2;grid-row:1;text-align:right}
 .app-data-table--responsive .app-table-actions{grid-column:1/-1;grid-row:4}
}

/* Named layer makes this contract authoritative over unlayered legacy button rules.
   Only these shared action families participate; icon/navigation controls retain their layout. */
@layer app-actions {
 :is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary) {
  --action-paper:var(--app-surface,#fff);--action-ink:#10a144;--action-bg:#10a144;--action-text:#fff;--action-line:#10a144;
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:42px!important;padding:10px 16px!important;border:1px solid var(--action-line)!important;border-radius:7px!important;
  background:var(--action-bg)!important;color:var(--action-text)!important;-webkit-text-fill-color:var(--action-text)!important;
  font-family:var(--ui-font,Inter,sans-serif)!important;font-size:13px!important;font-weight:700!important;line-height:1.45!important;text-decoration:none!important;
  box-shadow:none!important;transform:none!important;cursor:pointer;
 }
 :is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary):is(.ghost,.ui-scope .actions>button:not(.primary):not([type=submit]),.ui-scope .portal-language-add>button,.secondary,.sa-secondary,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn) {--action-ink:var(--app-link,#006550);--action-bg:var(--action-paper);--action-text:var(--action-ink);--action-line:var(--app-border,#a7cbbf)}
 :is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary):hover:not(:disabled):not([aria-disabled=true]) {background:var(--action-text)!important;color:var(--action-bg)!important;-webkit-text-fill-color:var(--action-bg)!important;border-color:var(--action-ink)!important;box-shadow:none!important}
 :is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary):focus-visible {outline:2px solid var(--action-ink)!important;outline-offset:3px!important}
/* Explicit large variant for prominent calls to action on public pages (e.g. recruitment landings). Same colors and states; only size changes. */
.ui-scope :is(button,.button).primary.app-action-large{min-height:54px!important;padding:14px 30px!important;font-size:17px!important}
 :is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary):disabled,:is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary)[aria-disabled=true] {opacity:.55!important;cursor:not-allowed!important;box-shadow:none!important}
 :is(.ui-scope .actions>button,.ui-scope .portal-language-add>button,.app-action-button,.sa-button,.xp-btn,.pay-button:not(.danger),.dre-primary-btn,.advisory-workspace .btn,.dre-save-btn,.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-save,.dre-editor-edit,.dre-editor-cancel,.dre-editor-edit-btn,.dre-editor-cancel-btn,.ui-scope button.primary,.ui-scope button.secondary,.ui-scope .button.primary,.ui-scope .button.secondary)[hidden] {display:none!important}
}
/* Issue report modal (ui.js): the form card sits directly in the shared dialog. */
.report-issue-modal dialog{width:min(640px,calc(100% - 28px))}
.report-issue-modal dialog::backdrop{background:rgba(23,32,28,.55)}
.report-issue-modal .report-issue-card{border:0;margin:0;padding:6px 4px 2px}
.report-issue-modal .report-issue-card h1{font-size:22px;line-height:1.3;margin:0 0 6px}
.report-issue-modal .report-issue-card .form>div:first-child{display:grid;gap:14px}
.report-issue-modal .report-issue-card label{display:grid;gap:6px;font-weight:600}
.report-issue-modal .report-issue-card :is(input,textarea){width:100%}
.report-issue-modal .report-issue-card .app-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.report-issue-modal .ui-alert{margin:0 0 14px}
.report-issue-modal .report-issue-card h1+p{color:var(--app-muted);font-size:14.5px;line-height:1.55;margin:0 0 18px}
/* Loading screen between pages (#spinner, ui.js). Same look as the original screen: translucent grey overlay and a
   white ring with the green top. Not scoped, so it covers any page of any area. */
#spinner{display:none;position:fixed;inset:0;background:rgba(170,170,170,.8);z-index:99999}
#spinner .spinner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
#spinner .spinx{width:60px;height:60px;border:8px solid #fff;border-top-color:var(--clr1,#16a34a);border-radius:50%;animation:adviaas-loading-spin 1.2s linear infinite}
@keyframes adviaas-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#spinner .spinx{animation-duration:3s}}
