body:has(.admin-chrome),
body:has(.portal-chrome),
body:has(.admin-auth-page) {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.admin-chrome :is(h1, h2, h3, h4, h5, h6),
.portal-chrome :is(h1, h2, h3, h4, h5, h6),
.admin-auth-page :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    color: var(--ink);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}
.admin-chrome h1,
.portal-chrome h1,
.admin-auth-page h1 {
    font-size: var(--text-2xl);
    line-height: 32px;
}
.admin-chrome h2,
.portal-chrome h2,
.admin-auth-page h2 {
    font-size: var(--text-xl);
    line-height: 28px;
}
.admin-chrome h3,
.portal-chrome h3,
.admin-auth-page h3 {
    font-size: var(--text-lg);
    line-height: 24px;
}
.admin-chrome h4,
.portal-chrome h4,
.admin-auth-page h4 {
    font-size: var(--text-md);
    line-height: 24px;
}
.admin-chrome h5,
.portal-chrome h5,
.admin-auth-page h5 {
    font-size: var(--text-base);
    line-height: 20px;
}
.admin-chrome h6,
.portal-chrome h6,
.admin-auth-page h6 {
    font-size: var(--text-xs);
    line-height: 16px;
}
.admin-chrome p,
.portal-chrome p,
.admin-auth-page p {
    margin: 0 0 var(--space-3);
    color: var(--ink-2);
}
.admin-chrome p:last-child,
.portal-chrome p:last-child,
.admin-auth-page p:last-child {
    margin-bottom: 0;
}
.admin-chrome small,
.portal-chrome small {
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: 16px;
}
.admin-chrome code,
.portal-chrome code {
    font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
    font-size: 0.9em;
}
.admin-chrome :is(td, th, .admin-kpi-value, .admin-num, time),
.portal-chrome :is(td, th, .admin-kpi-value, .admin-num, time) {
    font-variant-numeric: tabular-nums;
}
:is(.admin-chrome, .portal-chrome) .admin-kpi-value {
    letter-spacing: -0.03em;
}
:where(.admin-chrome, .portal-chrome, .admin-auth-page) a:not([class]) {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 2px;
}
:where(.admin-chrome, .portal-chrome, .admin-auth-page) a:not([class]):hover {
    text-decoration-color: currentColor;
}
.admin-chrome :focus-visible,
.portal-chrome :focus-visible,
.admin-auth-page :focus-visible {
    outline: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
}
.admin-chrome ::selection,
.portal-chrome ::selection {
    background: var(--accent-soft);
    color: var(--ink);
}
.admin-chrome ::-webkit-scrollbar,
.portal-chrome ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.admin-chrome ::-webkit-scrollbar-thumb,
.portal-chrome ::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: var(--radius-full);
    background-clip: content-box;
    background-color: var(--line-strong);
}
@media (pointer: coarse) {
    :is(.admin-chrome, .portal-chrome, .admin-auth-page) .admin-btn {
        min-height: 44px;
    }
    :is(.admin-chrome, .portal-chrome, .admin-auth-page) .admin-btn--icon {
        min-width: 44px;
    }
    :is(.admin-chrome, .portal-chrome, .admin-auth-page)
        :is(
            .admin-input,
            .admin-field input:where(:not([type="checkbox"]):not([type="radio"])),
            .admin-field select,
            .admin-form input:where(:not([type="checkbox"]):not([type="radio"])),
            .admin-form select,
            .admin-datatable-search input,
            .admin-datatable-filter select,
            .admin-datatable-pagesize select
        ) {
        min-height: 44px;
    }
    :is(.admin-chrome, .portal-chrome) :is(.admin-sidebar-item, .admin-sidebar-subitem) {
        min-height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .admin-chrome *,
    .portal-chrome *,
    .admin-auth-page *,
    .admin-modal2 *,
    .admin-drawer *,
    .admin-toast-region * {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
html[data-motion="reduced"] .admin-chrome *,
html[data-motion="reduced"] .portal-chrome *,
html[data-motion="reduced"] .admin-auth-page *,
html[data-motion="reduced"] .admin-modal2,
html[data-motion="reduced"] .admin-modal2 *,
html[data-motion="reduced"] .admin-drawer,
html[data-motion="reduced"] .admin-drawer *,
html[data-motion="reduced"] .admin-toast-region *,
html[data-motion="reduced"] .fss-sheet,
html[data-motion="reduced"] .fss-sheet * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
}
@media print {
    .admin-chrome,
    .portal-chrome {
        display: block;
        background: #fff;
    }
    .admin-topheader,
.admin-skip-link,
.admin-page-header-actions,
.admin-datatable-controls,
.admin-datatable-footer,
.admin-toast-region {
        display: none !important;
    }
    .admin-content {
        max-width: none;
        padding: 0;
    }
    .admin-card,
.admin-datatable-wrap {
        border-color: #d4d4d4;
        box-shadow: none;
        break-inside: avoid;
    }
}
.admin-chrome {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--canvas);
}
.admin-chrome[data-sidebar-collapsed="true"] {
    grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr);
}
.admin-chrome:not(.portal-chrome) {
    --sidebar-w: 240px;
    --sidebar-w-collapsed: 64px;
    --topbar-h: 52px; 
    --page-pad: 32px; 
    --admin-bnav-h: 0px;
    background: var(--canvas);
}
.admin-chrome:not(.portal-chrome):not([data-has-user]) {
    grid-template-columns: minmax(0, 1fr);
}
.admin-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.admin-chrome > .admin-content > :not(.admin-topheader):not(.portal-alert-banner) {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
}
.admin-chrome > .admin-content {
    padding-bottom: var(--space-8);
}
.admin-shell,
.admin-shell-wide {
    display: flex;
    width: 100%;
    max-width: var(--content-max);
    flex-direction: column;
    gap: var(--stack);
    margin: 0 auto;
    padding: var(--page-pad);
    background: none;
}
.admin-skip-link {
    position: absolute;
    z-index: var(--z-skip);
    top: -60px;
    left: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    color: var(--ink);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}
.admin-skip-link:focus-visible {
    top: var(--space-2);
}
.admin-prefs :is(button):focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.admin-prefs {
    display: grid;
    gap: 2px;
}
@media (max-width: 1023px) {
    .admin-chrome:not(.portal-chrome) {
        --page-pad: 16px;
        --admin-bnav-h: calc(64px + env(safe-area-inset-bottom));
        
        --fss-bottom-nav-h: var(--admin-bnav-h);
        --fss-actionbar-safe: 0px;
        grid-template-columns: minmax(0, 1fr);
    }
    
    html:has(.admin-chrome[data-has-user]:not(.portal-chrome)) {
        --bottom-nav-h: 64px;
    }
    html:has(.admin-chrome[data-has-user]:not(.portal-chrome) .fss-actionbar[data-variant="fixed"]) {
        --bottom-nav-h: 120px;
    }
    .admin-chrome > .admin-content > :not(.admin-topheader) {
        padding-inline: 0;
    }
}
@media (max-width: 1020px) {
    .admin-shell,
.admin-shell-wide {
        padding: var(--space-6);
    }
}
@media (max-width: 640px) {
    .admin-shell,
    .admin-shell-wide {
        padding: var(--space-4);
    }
}
.portal-chrome .admin-content {
    background: none;
}
.portal-lang-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2);
}
.portal-lang-field-label {
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0;
    text-transform: none;
}
.portal-lang-floating {
    position: fixed;
    z-index: var(--z-sticky);
    top: var(--space-4);
    right: var(--space-4);
}
.portal-lang-trigger {
    display: inline-flex;
    height: var(--control-md);
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: #f7f8fa;
    cursor: pointer;
    font-size: var(--text-xs);
}
.portal-lang-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
}
.portal-lang-trigger-code {
    font-weight: var(--font-semibold);
    text-transform: uppercase;
}
.admin-btn--md {
    height: var(--control-md);
}
.admin-btn--secondary.admin-btn--icon {
    color: var(--ink-2);
}
.admin-btn--danger:active:not(:disabled) {
    background: color-mix(in srgb, var(--danger-bg), var(--danger) 14%);
    transform: scale(0.98);
}
.admin-btn--link.admin-btn--icon {
    width: auto;
    height: auto;
}
.admin-btn:disabled:not([data-loading]) {
    border-color: transparent;
    background: var(--surface-2);
    box-shadow: none;
    color: var(--ink-disabled);
    cursor: not-allowed;
}
.admin-field,
.admin-form label:not(.admin-checkbox):not(.admin-switch):not(.admin-radio-list-option) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-1-5);
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 16px;
}
.admin-field[data-invalid] .admin-field-label {
    color: var(--danger);
}
.admin-field[data-invalid] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
    border-color: var(--danger);
}
.admin-form-help {
    display: block;
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: var(--font-regular);
    line-height: 16px;
}
.admin-form-help > svg {
    display: inline;
    margin-right: var(--space-1);
    vertical-align: -2px;
}
.admin-field-error,
.admin-form-error {
    color: var(--danger);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 16px;
}
.admin-field-error > svg {
    width: 14px;
    height: 14px;
    flex: none;
    margin-top: 1px;
}
.admin-input,
.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-form input:where(:not([type="checkbox"]):not([type="radio"])),
.admin-form select,
.admin-form textarea,
.admin-datatable-search input,
.admin-datatable-filter select,
.admin-datatable-pagesize select {
    width: 100%;
    height: var(--input-h);
    padding: 0 var(--space-3);
    border: 1px solid var(--line-field);
    border-radius: var(--radius-sm);
    background: var(--surface);
    
    box-shadow: var(--shadow-1);
    color: var(--ink);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: 20px;
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.admin-field textarea,
.admin-form textarea {
    height: auto;
    min-height: 112px;
    padding: var(--space-2) var(--space-3);
    line-height: var(--leading-normal);
    resize: vertical;
}
:where([data-density="compact"]) :is(.admin-field, .admin-form) textarea {
    min-height: 96px;
}
:is(.admin-field, .admin-form) textarea:not([rows]) {
    max-height: 320px;
    field-sizing: content;
}
.admin-input:hover,
.admin-form :is(input, select, textarea):hover:not(:disabled) {
    border-color: #a1a1aa;
}
.admin-input:focus,
.admin-field :is(input, select, textarea):focus,
.admin-form :is(input, select, textarea):focus {
    border-color: var(--focus-ring-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring-color) 28%, transparent);
    outline: none;
}
/* A control inside a field with a prefix or suffix ("€", "min"): the field draws the one focus ring around control and affix, so the
   control itself draws none (otherwise two rings sit inside each other). Attribute selectors: no new .admin-* override for the ratchet. */
[class~="admin-field-control"][class~="admin-field-control"] > :is(input, select):is(:focus, :focus-visible) {
    outline: none;
    box-shadow: none;
}
.admin-input[aria-invalid="true"],
.admin-form :is(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--danger);
}
.admin-input[data-state="warning"] {
    border-color: var(--warning);
}
.admin-input:disabled,
.admin-form :is(input, select, textarea):disabled {
    border-color: var(--line);
    background: var(--surface-2);
    color: var(--ink-disabled);
    cursor: not-allowed;
}
.admin-form :is(input, textarea)::placeholder {
    color: var(--ink-3);
}
.admin-form :is(input[type="checkbox"], input[type="radio"]) {
    width: 16px;
    height: 16px;
    accent-color: var(--selection-ink);
}
.admin-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.admin-form-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.32fr);
}
@media (max-width: 680px) {
    .admin-form-grid,
    .admin-field-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.admin-passkey-card,
.admin-wide-card {
    
    padding: var(--card-pad, var(--space-5));
    border-radius: var(--radius-md);
    background: var(--surface);
    
    box-shadow: var(--shadow-1);
}
@media (max-width: 640px) {
    .admin-card,
.admin-passkey-card,
.admin-wide-card {
        padding: var(--space-4);
    }
}
:is(.admin-card, .admin-wide-card, .admin-workspace-panel) > * {
    min-width: 0;
}
.admin-section-toolbar > svg + div {
    flex: 1;
}
@media (max-width: 760px) {
    .admin-section-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    
    
}
@media (max-width: 640px) {
    :is(.admin-chrome, .portal-chrome, .admin-auth-page) .admin-page-header h1 {
        font-size: 24px;
        line-height: 28px;
    }
}
@media (max-width: 1023px) {
    .admin-chrome:not(.portal-chrome) .admin-page-header-primary[data-mobile-bar] {
        display: none;
    }
    .admin-chrome:not(.portal-chrome) .admin-page-header[data-bar-overflow] {
        position: relative;
    }
    .admin-chrome:not(.portal-chrome) .admin-page-header[data-bar-overflow] > .admin-page-header-actions {
        position: absolute;
        top: 0;
        right: 0;
        min-height: 0;
    }
    .admin-chrome:not(.portal-chrome) .admin-page-header[data-bar-overflow] > .admin-page-header-copy {
        padding-right: calc(44px + var(--space-2));
    }
}
.admin-datatable[data-variant="plain"],
.admin-card > .admin-datatable,
.admin-wide-card > .admin-datatable {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.admin-datatable-search {
    position: relative;
    display: block;
    max-width: 360px;
    flex: 1 1 280px;
}
.admin-datatable-search input {
    height: var(--control-md);
    padding-left: 34px;
    
    border-color: var(--line-field);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.admin-datatable-search input:hover {
    border-color: color-mix(in srgb, var(--line-field), var(--ink) 12%);
}
.admin-datatable-search input:focus {
    border-color: var(--focus-ring-color);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring-color) 28%, transparent);
    outline: none;
}
.admin-datatable-filter-multi-list .admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2-5, 10px);
    min-height: var(--control-md);
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background-color var(--motion-fast, 120ms) var(--ease-out, ease);
}
.admin-datatable-filter-multi-list .admin-checkbox-label input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    flex: none;
    accent-color: var(--selection-ink);
    cursor: pointer;
}
.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}
.admin-data-table th {
    height: var(--thead-h);
    padding: 0 var(--space-3);
    border-bottom: 1px solid var(--line);
    
    background: var(--sidebar-bg);
    color: var(--ink-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: 0;
    line-height: 18px;
    text-align: left;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}
.admin-data-table td {
    height: var(--row-h);
    
    padding: 0 var(--space-3);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    line-height: 20px;
    vertical-align: middle;
}
.admin-data-table td:has(> .admin-datatable-cellmain) {
    padding-block: var(--space-1-5);
}
.admin-data-table tbody tr:last-child td {
    border-bottom: 0;
}
.admin-data-table tbody tr td {
    transition: background-color var(--dur-fast) var(--ease-out);
}
/* Row hover and the row pointer come from ONE rule in fss-core ui.css; do not add a second one here. */
.admin-data-table th button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.admin-data-table a {
    color: inherit;
    text-decoration: none;
}
.admin-data-table a:hover {
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 2px;
}
.admin-datatable[data-variant="plain"] .fss-cardlist,
.admin-card > .admin-datatable .fss-cardlist {
    gap: 0;
}
.admin-datatable[data-variant="plain"] .fss-card,
.admin-card > .admin-datatable .fss-card {
    padding: var(--space-3) 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
}
.admin-datatable[data-variant="plain"] .fss-card[data-swipe],
.admin-card > .admin-datatable .fss-card[data-swipe] {
    padding: 0;
}
.admin-datatable[data-variant="plain"] .fss-card:last-child,
.admin-card > .admin-datatable .fss-card:last-child {
    border-bottom: 0;
}
@media (max-width: 1023px) {
    .admin-datatable[data-mobile]:not([data-variant="plain"]):not(.admin-card > .admin-datatable) .fss-cardlist {
        gap: var(--space-2);
    }
    .admin-datatable[data-mobile]:not([data-variant="plain"]):not(.admin-card > .admin-datatable) .fss-card {
        border-radius: var(--radius-md);
    }
    .admin-datatable[data-mobile] .admin-datatable-search {
        max-width: none;
        flex: 1 1 160px;
    }
}
@container fss-datatable (max-width: 767px) {
    .admin-datatable-search {
        max-width: none;
        flex: 1 1 160px;
    }
}
@media (max-width: 760px) {
    .admin-datatable-search {
        max-width: none;
        flex-basis: 100%;
    }
}
.admin-status-badge[data-tone="accent"] {
    background: var(--surface-2);
    color: var(--ink-2);
}
.admin-status-badge[data-size="sm"] .admin-status-badge-dot {
    width: 5px;
    height: 5px;
}
.admin-tab2[hidden] {
    display: none;
}
.admin-tab2 {
    display: inline-flex;
    height: 44px;
    flex: none;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--ink-3);
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.admin-tab2:active {
    color: var(--ink);
}
.admin-tab2[data-active="true"],
.admin-tab2[aria-selected="true"] {
    border-bottom-color: var(--selection-ink);
    color: var(--ink);
    font-weight: var(--font-medium);
}
.admin-tabs2[data-motion] .admin-tab2[data-active="true"],
.admin-tabs2[data-motion] .admin-tab2[aria-selected="true"] {
    border-bottom-color: transparent;
}
.admin-tab2 {
    position: relative;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.admin-banner[data-variant="inline"]:is([data-tone="neutral"], [data-tone="accent"]) {
    border-left-color: var(--line-strong);
}
@media (max-width: 760px) {
    .admin-banner {
        flex-wrap: wrap;
    }
    /* Basis 0: with the default `auto` a long text claimed its own full line and the icon stood alone above the title.
       The action row below it is placed by fss-core (<= 640 px); above that it simply sits beside the text. */
    .admin-banner-body {
        flex: 1 1 0;
    }
}
@media (pointer: coarse) {
    .admin-banner-actions a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }
}
.admin-spin {
    animation: admin-spin 0.9s linear infinite;
}
.admin-datatable-cellmain {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-1);
}
.admin-datatable-cellmain > strong,
.admin-datatable-cellmain > b {
    overflow: hidden;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-datatable-cellmain > span {
    overflow: hidden;
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-money {
    display: inline;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-weight: var(--font-semibold);
    white-space: nowrap;
}
.admin-checkbox-label,
.admin-form label.admin-checkbox-label:not(.admin-checkbox):not(.admin-switch):not(.admin-datatable-filter-multi-list *) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
}
.admin-form .admin-checkbox-label:not(.admin-datatable-filter-multi-list *) input {
    width: 16px;
    height: 16px;
    min-height: 0;
}
.admin-card-heading.compact h2 {
    margin: 0;
    font-size: var(--text-md);
}
.admin-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}
@media (pointer: coarse) {
    :is(
            .admin-combobox-trigger,
            .admin-datatable-preset,
            .admin-datatable-more,
            .admin-datatable-columns,
            .admin-datatable-filter,
            .admin-tab2
        ) {
        min-height: 44px;
    }
    :is(
            .admin-banner-close,
            .admin-toast-close,
            .admin-toast-undo,
            .admin-pagination-btn,
            .admin-back-link,
            .admin-datatable-sort,
            .admin-drawer-close,
            .admin-modal2-close
        ) {
        position: relative;
    }
    :is(
            .admin-banner-close,
            .admin-toast-close,
            .admin-toast-undo,
            .admin-pagination-btn,
            .admin-back-link,
            .admin-datatable-sort,
            .admin-drawer-close,
            .admin-modal2-close
        )::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: max(100%, 44px);
        height: max(100%, 44px);
        content: "";
        transform: translate(-50%, -50%);
    }
}
.fss-rail {
    --rail-x: 10px;
    position: relative;
}
.fss-rail::before {
    position: absolute;
    top: var(--rail-top, 0);
    bottom: var(--rail-bottom, 0);
    left: var(--rail-x);
    width: 3px;
    border-radius: 3px;
    background: var(--line);
    content: "";
    pointer-events: none;
}
.fss-rail-node {
    --node-ring: var(--line-strong);
    position: relative;
    display: block;
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--surface);
    
    box-shadow:
        inset 0 0 0 1.5px var(--node-ring),
        0 0 0 2px var(--rail-bg, var(--surface));
}
.fss-rail-node[data-state="done"] {
    background: var(--ink);
    box-shadow: 0 0 0 2px var(--rail-bg, var(--surface));
}
.fss-rail-node[data-state="now"] {
    background: var(--accent);
    box-shadow:
        inset 0 0 0 1.5px var(--selection-ink),
        0 0 0 4px var(--accent-soft);
}
.fss-rail-node[data-state="open"][data-tone="danger"] { --node-ring: var(--danger); }
.fss-rail-node[data-state="open"][data-tone="warning"] { --node-ring: var(--warning); }
.fss-rail-node[data-state="open"][data-tone="info"] { --node-ring: var(--info); }
.fss-rail-node[data-state="open"][data-tone="success"] { --node-ring: var(--success); }
.fss-rail-node[data-state="handled"] { --node-ring: var(--selection-ink); }
@media (pointer: coarse) {
    :is(
            .admin-text-link,
            .admin-card-action,
            .admin-inline-link,
            .admin-record-chip,
            .fss-timeline-title a,
            .admin-empty-state-action a:not(.admin-btn)
        ) {
        position: relative;
    }
    :is(
            .admin-text-link,
            .admin-card-action,
            .admin-inline-link,
            .admin-record-chip,
            .fss-timeline-title a,
            .admin-empty-state-action a:not(.admin-btn)
        )::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: max(100%, 44px);
        height: max(100%, 44px);
        content: "";
        transform: translate(-50%, -50%);
    }
}
:is(.admin-chrome, .portal-chrome) .fss-eyebrow {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
    line-height: 16px;
}
.admin-auth-page {
    
    --control-md: 40px;
    --control-lg: 44px;
    --input-h: 44px;
    --input-h-sm: 40px;
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-10) var(--space-4);
    background: var(--night);
    overflow: hidden;
}
.admin-auth-page::before {
    width: 200px;
    height: 42px;
    background: url("/branding/logo-horizontal-white.svg") no-repeat center / contain;
    content: "";
}
.admin-auth-panel {
    position: relative;
    display: flex;
    width: min(100%, 420px);
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-6) var(--space-6) calc(var(--space-6) + 20px);
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-3);
}
.admin-auth-panel::before {
    position: absolute;
    top: var(--space-8);
    bottom: var(--space-6);
    left: 20px;
    width: 3px;
    border-radius: 3px;
    background: var(--line);
    content: "";
    pointer-events: none;
}
.admin-auth-panel.admin-auth-panel-wide {
    width: min(100%, 560px);
}
.admin-auth-panel h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: var(--font-semibold);
    line-height: var(--lh-h1);
}
.admin-auth-panel h1::before {
    position: absolute;
    top: 12px;
    left: -26.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        inset 0 0 0 1.5px var(--selection-ink),
        0 0 0 4px var(--accent-soft);
    content: "";
}
.admin-auth-panel > p {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.admin-auth-panel .admin-kicker {
    justify-self: start;
}
.admin-auth-panel form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
@media (max-width: 480px) {
    .admin-auth-page {
        justify-content: flex-start;
        padding: var(--space-8) 0 0;
        gap: var(--space-5);
    }
    .admin-auth-page::before {
        align-self: flex-start;
        margin-left: var(--space-8);
    }
    .admin-auth-panel,
    .admin-auth-panel.admin-auth-panel-wide {
        width: 100%;
        flex: 1 1 auto;
        padding: var(--space-6) var(--space-4) var(--space-8) 32px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .admin-auth-panel::before {
        top: var(--space-6);
        bottom: var(--space-8);
        left: 14px;
    }
    .admin-auth-panel h1::before {
        left: -20.5px;
    }
}
.admin-code-input {
    position: relative;
}
.admin-code-input input.admin-code-input-field,
.admin-code-input input.admin-code-input-field:is(:hover, :focus, :focus-visible, [aria-invalid="true"]) {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: transparent;
    font-size: 16px;
    letter-spacing: 0;
    outline: none;
    appearance: none;
    
    transition: background-color 600000s 0s;
}
.admin-code-input-field::selection {
    background: transparent;
}
.admin-code-input-slots {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    gap: var(--space-2);
    pointer-events: none;
}
.admin-code-input-slot {
    display: inline-flex;
    width: 40px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-field);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}
.admin-code-input-slot[data-active] {
    border-color: var(--focus-ring-color);
    box-shadow: var(--focus-ring);
}
@media (max-width: 400px) {
    .admin-code-input-slots {
        gap: var(--space-1-5);
    }
    .admin-code-input-slot {
        width: 36px;
        height: 42px;
        font-size: var(--text-md);
    }
}
.admin-auth-stack {
    display: grid;
    gap: var(--space-5);
}
.portal-oidc-scopes {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-oidc-scopes li {
    display: grid;
    gap: 2px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
}
.portal-oidc-scopes span {
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.admin-auth-stack .portal-oidc-continue {
    height: auto;
    min-height: 44px;
    padding-block: 10px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
@media (max-width: 760px) {
    .admin-drawer-body .admin-form > .admin-form-actions,
    .admin-drawer-body > .admin-form-actions {
        bottom: calc(var(--space-4) * -1);
        margin: var(--space-4) calc(var(--space-4) * -1) calc(var(--space-4) * -1);
        padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
    }
}
.mail-settings-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.mail-settings-hint {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.mail-settings-actions-row {
    display: flex;
    justify-content: flex-end;
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
}
.admin-form label.mail-settings-inline-checkbox.mail-settings-inline-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
}
.mail-settings-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-3);
}
.mail-settings-inline-form label {
    min-width: 180px;
}
.mail-settings-subsection {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.mail-settings-subhead {
    color: var(--ink-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}
.mail-settings-rules {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.mail-settings-rule {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
}
.mail-settings-rule-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.mail-settings-rule-name {
    flex: 1 1 220px;
    min-width: 0;
}
.mail-settings-rule-move {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: auto;
}
.mail-settings-match {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
.mail-settings-match select {
    width: auto;
}
.mail-settings-condition,
.mail-settings-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.mail-settings-condition select,
.mail-settings-condition input,
.mail-settings-action select,
.mail-settings-action input {
    width: auto;
    min-width: 140px;
    flex: 1 1 160px;
}
.mail-settings-forwarding {
    margin-top: var(--space-2);
}
.mail-settings-policy-columns {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.mail-settings-policy-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.mail-settings-policy-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
}
.mail-settings-policy-list code {
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mail-settings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.mail-settings-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}
.mail-settings-list > li > div:first-child {
    flex: 1 1 220px;
    min-width: 0;
}
.mail-settings-list-desc {
    color: var(--ink-2);
}
.mail-settings-row-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: auto;
}
.mail-settings-disposable-form,
.mail-settings-app-password-form {
    align-items: flex-end;
}
.mail-settings-protocols {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    border: 0;
}
.mail-settings-protocols legend {
    width: 100%;
    margin-bottom: var(--space-1);
    color: var(--ink-2);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}
@media (max-width: 640px) {
    .mail-settings-list > li,
    .mail-settings-policy-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .mail-settings-row-actions {
        margin-left: 0;
    }
}
.admin-passkey-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-2);
}
.admin-drawer-body .admin-passkey-card {
    padding: 0;
    border: 0;
    background: none;
}
.admin-copyblock-body > .admin-btn {
    flex: 0 0 auto;
}
.admin-card ol.admin-muted {
    margin: var(--space-3) 0;
    padding-left: var(--space-6);
    list-style: decimal;
}
.admin-ticket-composer {
    border-top: 1px solid var(--line);
    padding-top: var(--space-4);
}
.admin-ticket-composer {
    scroll-margin-top: calc(var(--topbar-h) + var(--space-4));
}
.admin-data-table td:last-child:has(> .admin-btn, > button, > form, > .portal-table-actions) {
    text-align: right;
}
.portal-vat-status {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin: 4px 0 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-2);
    line-height: 1.5;
}
.portal-vat-status svg {
    flex: 0 0 auto;
    margin-top: 3px;
}
.portal-vat-status[data-state="mismatch"] {
    color: var(--warning);
}
.portal-vat-status[data-state="invalid"] {
    color: var(--danger);
}
.portal-ticket-message-body {
    color: var(--ink);
    line-height: 1.65;
}
.portal-ticket-message-body p,
.portal-ticket-message-body ul,
.portal-ticket-message-body ol,
.portal-ticket-message-body blockquote,
.portal-ticket-message-body pre {
    margin: 0 0 var(--space-3);
}
.portal-ticket-message-body > :last-child {
    margin-bottom: 0;
}
.portal-ticket-message-body a {
    color: var(--selection-ink);
    font-weight: 600;
}
.voip-voice-avatar {
    --voice-size: 40px;
    position: relative;
    display: inline-block;
    flex: none;
    width: var(--voice-size);
    height: var(--voice-size);
    overflow: hidden;
    border-radius: 50%;
    background: var(--voice-c2);
    isolation: isolate;
}
.voip-voice-avatar::before {
    position: absolute;
    inset: -30%;
    content: "";
    background:
        radial-gradient(circle at 30% 28%, var(--voice-c1) 0 18%, transparent 52%),
        radial-gradient(circle at 72% 70%, var(--voice-c3) 0 16%, transparent 50%),
        conic-gradient(from var(--voice-angle), var(--voice-c1), var(--voice-c2), var(--voice-c3), var(--voice-c1));
    filter: blur(calc(var(--voice-size) * 0.14));
}
.voip-voice-avatar::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n)'/%3E%3C/svg%3E");
    box-shadow: inset 0 0 0 1px rgb(16 19 23 / 0.06);
    opacity: 0.18;
    mix-blend-mode: soft-light;
}
.voip-voice-avatar[data-playing]::before {
    animation: voip-voice-swirl 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .voip-voice-avatar[data-playing]::before {
        animation: none;
    }
}
.voip-voice-orb {
    position: relative;
    display: inline-grid;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    place-items: center;
}
.voip-voice-orb:disabled {
    cursor: default;
}
.voip-voice-orb:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}
.voip-voice-orb-icon {
    position: absolute;
    display: grid;
    width: 42%;
    height: 42%;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.88);
    color: var(--ink);
    place-items: center;
    transition: transform var(--dur-fast) var(--ease-out);
}
.voip-voice-orb:hover .voip-voice-orb-icon {
    transform: scale(1.06);
}
.voip-voice-orb:disabled .voip-voice-orb-icon {
    display: none;
}
.voip-tts-help {
    display: block;
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: 18px;
}
.voip-tts-help[data-over] {
    color: var(--danger);
}
.voip-tts-cost {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--text-sm);
    line-height: 20px;
}
.voip-tts-cost p {
    margin: 0;
}
.voip-tts-cost strong {
    color: var(--ink);
}
.registrar-contact-kind {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.registrar-contact-kind legend {
    width: 100%;
    margin-bottom: var(--space-1);
    padding: 0;
    font-weight: 600;
}
.portal-banner-slot {
    padding: var(--page-pad);
    padding-bottom: 0;
}
.portal-lang-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2);
}
.portal-lang-field-label {
    color: var(--ink-2); 
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}
.portal-lang-field[data-pending="true"] {
    opacity: 0.72;
}
.portal-lang-floating {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 60;
}
.portal-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 170ms ease, border-color 170ms ease, color 170ms ease;
}
.portal-lang-trigger:hover,
.portal-lang-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(199, 255, 74, 0.4);
    color: #ffffff;
}
.portal-lang-trigger:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.portal-lang-trigger > svg {
    color: #ffffff; 
}
.portal-lang-trigger-code {
    letter-spacing: 0.02em;
}
.portal-lang-floating[data-pending="true"] .portal-lang-trigger {
    opacity: 0.72;
}
.portal-table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.portal-missing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-complete-hint {
    margin-top: var(--space-3);
}
.admin-data-table td:last-child > .portal-table-actions {
    justify-content: flex-end;
}
.portal-onboarding {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 0;
}
.portal-onboarding-card {
    padding: clamp(20px, 4vw, 32px);
}
.portal-onboarding-head {
    margin-bottom: 18px;
}
.portal-onboarding-head h1 {
    margin: 6px 0 4px;
}
.portal-onboarding form h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}
.portal-onboarding-stepcount {
    font-size: 0.8rem;
    color: var(--ink-2);
}
.portal-onboarding-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.portal-ticket-form {
    gap: var(--space-4);
}
.portal-upload-field {
    display: grid;
    gap: var(--space-3);
}
.portal-content-secret {
    align-items: flex-end;
}
.portal-content-secret > label {
    flex: 1 1 auto;
    min-width: 0;
}
.portal-content-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-end;
    margin-bottom: var(--space-3);
}
.portal-chrome .admin-datatable-cellmain > .admin-status-badge {
    align-self: flex-start;
}
@media (max-width: 640px) {
    .portal-content-toolbar {
        justify-content: stretch;
    }
    .portal-content-toolbar > * {
        flex: 1 1 auto;
    }
}
.portal-content-note {
    margin: 0 0 var(--space-3);
}
.portal-content-editor-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}
.portal-content-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: flex-end;
}
@media (max-width: 1023px) {
    .portal-content-editor-bar {
        margin-bottom: var(--space-3);
    }
}
.portal-content-editor-main,
.portal-content-editor-side {
    display: grid;
    align-content: start;
    gap: var(--space-4);
    min-width: 0;
}
.portal-content-editor-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.portal-content-fieldset {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    min-width: 0;
}
.portal-content-fieldset legend {
    padding: 0 6px;
    font-weight: 500;
}
.portal-content-checklist {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-content-checklist--grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.portal-content-check {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}
.portal-content-check input {
    flex: none;
    width: auto;
}
.portal-content-cover {
    display: grid;
    gap: var(--space-2);
    justify-items: start;
}
.portal-content-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9; /* the box is known before the picture arrives (no jump in the editor); max-height still caps it */
    max-height: 180px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.portal-content-preview {
    display: grid;
    gap: var(--space-3);
}
.portal-content-preview-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.portal-content-preview-excerpt {
    color: var(--ink-2);
    font-size: 1.0625rem;
}
.portal-content-preview img {
    max-width: 100%;
    height: auto;
}
.portal-content-upload {
    margin-bottom: var(--space-4);
}
.portal-content-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .portal-content-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    }
}
.portal-content-media-item {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    min-width: 0;
}
.portal-content-media-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-3);
}
.portal-content-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-content-media-thumb picture,
.portal-content-alt-preview picture {
    display: contents;
}
.portal-content-media-noalt {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    min-height: 24px;
}
.portal-content-alt-preview {
    display: grid;
    place-items: center;
    max-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-content-alt-preview img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}
.portal-content-alt [data-over] {
    color: var(--danger);
}
.portal-content-media-menu {
    position: absolute;
    top: var(--space-1);
    right: var(--space-1);
}
.portal-content-media-menu-trigger {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.portal-content-media-menu-trigger svg {
    padding: 4px;
    box-sizing: content-box;
    border-radius: var(--radius-full, var(--radius-full));
    /* A dark translucent disc with a white dots icon reads on a light picture as well as on a dark one (the 44px button stays the touch target). */
    background: color-mix(in oklab, var(--night) 66%, transparent);
    color: var(--white);
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--white) 28%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.portal-content-media-menu-trigger:hover svg { background: color-mix(in oklab, var(--night) 82%, transparent); }
.portal-content-media-menu-trigger:focus-visible {
    outline: 2px solid var(--selection-ink);
    outline-offset: -2px;
}
.portal-content-media-meta {
    display: grid;
    justify-items: start;
    gap: 2px;
    min-width: 0;
}
.portal-content-media-meta strong {
    max-width: 100%;
    overflow: hidden;
    font-size: var(--text-small, 0.8125rem);
    font-weight: var(--font-medium, 500);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-content-media-meta small {
    color: var(--ink-3);
    overflow-wrap: anywhere;
}
.portal-content-media-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}
.portal-content-media-bar-search {
    flex: 1 1 280px;
    min-width: 0;
}
.portal-content-submission {
    display: grid;
    gap: var(--space-4);
}
.portal-content-secret {
    display: grid;
    gap: var(--space-3);
}
@media (max-width: 1023px) {
    .portal-chrome .admin-page-header:has(> .admin-page-header-actions > .admin-page-header-overflow:only-child) {
        position: relative;
    }
    .portal-chrome .admin-page-header:has(> .admin-page-header-actions > .admin-page-header-overflow:only-child) > .admin-page-header-actions {
        position: absolute;
        top: 0;
        right: 0;
        min-height: 0;
    }
    .portal-chrome .admin-page-header:has(> .admin-page-header-actions > .admin-page-header-overflow:only-child) > .admin-page-header-copy {
        padding-right: calc(44px + var(--space-2));
    }
}
.admin-form label.portal-content-check:not(.admin-checkbox):not(.admin-switch) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2);
    min-height: 32px;
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: 20px;
}
.admin-form label.portal-content-check input {
    width: 16px;
    height: 16px;
    min-height: 0;
}
@media (pointer: coarse) {
    .admin-form label.portal-content-check:not(.admin-checkbox):not(.admin-switch) {
        min-height: 44px;
    }
}
.portal-content-pagination {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-4);
}
.portal-content-editor-status {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}
.portal-content-blocks {
    display: grid;
    gap: var(--space-3);
}
.portal-content-block {
    border-radius: var(--radius-sm);
    background: var(--surface);
    min-width: 0;
}
.portal-content-block-head {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--line);
}
.portal-content-block-actions,
.portal-content-block-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}
.portal-content-block-body {
    padding: var(--space-3);
    min-width: 0;
}
.portal-content-block-fields {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
}
.portal-content-block-media {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}
.portal-content-block-thumb {
    display: block;
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-2);
}
.portal-content-gallery-items {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-content-gallery-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: var(--space-3);
    align-items: start;
}
.portal-content-gallery-item .portal-content-block-thumb {
    width: 96px;
    height: 64px;
}
.portal-content-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-3);
}
.portal-content-column {
    min-width: 0;
}
.portal-content-revisions {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-content-revision {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}
.portal-content-revision-main {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}
.portal-content-revision-main small {
    color: var(--ink-3);
}
.portal-content-revision-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .portal-content-gallery-item {
        grid-template-columns: 1fr;
    }
}
.portal-content-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--text-sm);
}
.portal-content-variables {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-content-variables li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.portal-content-variable {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.portal-content-variable:hover,
.portal-content-variable:focus-visible {
    border-color: var(--ink-3);
}
.portal-content-variable code {
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
}
.portal-content-variable small {
    color: var(--ink-3);
}
.portal-content-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-content-mail-preview {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-4);
}
.portal-content-mail-frame {
    width: 100%;
    height: 520px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
.portal-content-ai {
    display: grid;
    gap: 16px;
}
.portal-content-ai-slot {
    display: flex;
    justify-content: flex-end;
}
.portal-sms-counter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: calc(var(--space-2) * -1);
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-sms-counter-error {
    color: var(--danger);
    font-weight: 600;
}
.portal-sms-when {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-sms-sendat {
    display: grid;
    gap: var(--space-1);
    max-width: 320px;
    text-align: left;
}
.portal-sms-terms-list {
    display: grid;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding-left: 1.2em;
}
.portal-sms-terms-note {
    margin: 0;
}
.portal-sms-confirm {
    display: grid;
    gap: var(--space-3);
}
.portal-sms-file {
    display: grid;
    gap: var(--space-1);
}
.portal-sms-import-result {
    display: grid;
    gap: var(--space-2);
}
.portal-sms-invalid {
    max-height: 220px;
    margin: 0;
    padding-left: 1.2em;
    overflow: auto;
    font-size: var(--text-sm);
}
.portal-chrome.admin-chrome {
    --canvas: var(--canvas-portal);
    --portal-nav-h: 0px;
    grid-template-columns: 240px minmax(0, 1fr);
    background: var(--canvas);
    font-size: var(--text-body-lg);
    line-height: var(--lh-body-lg);
}
.portal-side {
    --rail-bg: var(--sidebar-bg);
    align-self: stretch;
    border-right: 1px solid var(--line);
    
    background: var(--sidebar-bg);
}
.portal-nav.fss-rail::before {
    display: none;
}
.portal-side-inner {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-4) var(--space-3);
    overflow: hidden auto;
}
.portal-side-brand {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--space-2);
}
.portal-side-brand .logo-image {
    width: auto;
    height: 30px;
}
.portal-nav {
    --rail-top: 8px;
    --rail-bottom: 8px;
    display: grid;
    gap: 2px;
    padding: var(--space-1) 0;
}
.portal-nav-row {
    position: relative;
}
.portal-nav-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: var(--space-3);
    margin-left: 0;
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-align: left;
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.portal-nav-link:hover {
    background: var(--nav-hover);
    color: var(--ink);
}
.portal-nav-row[data-active] > .portal-nav-link {
    background: var(--nav-active);
    color: var(--ink);
    font-weight: var(--font-medium);
}
.portal-nav-row[data-active]:has(.portal-nav-sublink[data-active]) > .portal-nav-link {
    background: none;
}
.portal-nav-link > svg {
    flex: none;
}
.portal-nav-label {
    min-width: 0;
    flex: 1 1 auto;
}
.portal-nav-chevron {
    color: var(--ink-3);
    transition: transform var(--dur-fast) var(--ease-out);
}
.portal-nav-row[data-open] > .portal-nav-link .portal-nav-chevron {
    transform: rotate(90deg);
}
.fss-rail-node.portal-nav-node {
    position: absolute;
    top: 14px;
    left: -10px;
    width: 3px;
    height: 16px;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), var(--ink) 18%);
}
.portal-nav-sub {
    overflow: hidden;
}
.portal-nav-sub-inner {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 2px 0 4px 32px;
}
.portal-nav-sub-inner::before {
    position: absolute;
    top: 0;
    bottom: 24px;
    left: 21px;
    width: 1px;
    background: var(--line);
    content: "";
    pointer-events: none;
}
.portal-nav-sublink {
    position: relative;
}
.portal-nav-sublink::before {
    position: absolute;
    top: 50%;
    left: -13.5px;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--line-field);
    content: "";
    pointer-events: none;
    transform: translateY(-50%);
}
.portal-nav-sublink[data-active]::before {
    background: var(--accent);
    box-shadow: 0 0 0 1.5px var(--ink);
}
.portal-nav-sublink {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
}
.portal-nav-sublink:hover {
    background: var(--nav-hover);
    color: var(--ink);
}
.portal-nav-sublink[data-active] {
    background: var(--nav-active);
    color: var(--ink);
    font-weight: var(--font-medium);
}
.portal-top-start {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    overflow: hidden;
}
.portal-top-end {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-2);
}
.portal-top-action {
    display: inline-flex;
    height: 36px;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.portal-stacko-mark {
    flex: 0 0 auto;
    filter: brightness(0);
    opacity: 0.72;
}
.portal-chrome.portal-focus {
    display: block;
    --portal-nav-h: 0px;
}
.portal-focus-head {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--page-pad);
}
.portal-focus .admin-content {
    max-width: 960px;
    margin: 0 auto;
    padding-inline: var(--page-pad);
}
.portal-top-action:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.portal-top-action:focus-visible,
.portal-credit-chip:focus-visible,
.portal-user:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-credit-chip {
    display: inline-flex;
    height: 36px;
    flex: none;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-3) 0 10px;
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--ink);
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out);
}
.portal-credit-chip:hover {
    background: var(--surface-2);
}
.portal-credit-chip > svg {
    flex: none;
    color: var(--ink-2);
}
.portal-credit-chip-count {
    font-variant-numeric: tabular-nums;
}
.portal-credit-chip[data-tone="danger"] {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger);
}
.portal-credit-chip[data-tone="danger"] > svg {
    color: currentColor;
}
.portal-usermenu {
    position: relative;
    display: inline-flex;
}
.portal-user {
    display: inline-flex;
    max-width: 240px;
    height: 36px;
    min-width: 0;
    align-items: center;
    gap: var(--space-2);
    padding: 0 6px 0 4px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: none;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-base);
    transition: background var(--dur-fast) var(--ease-out);
}
.portal-user:hover,
.portal-user[aria-expanded="true"] {
    background: var(--surface-2);
}
.portal-user > svg {
    flex: none;
    color: var(--ink-3);
}
.portal-user-name {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-usermenu-popover {
    position: absolute;
    z-index: var(--z-popover);
    top: calc(100% + var(--space-2));
    right: 0;
    display: grid;
    width: 312px;
    padding: var(--space-1);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}
.portal-usermenu-popover :is(a, button) {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-base);
    text-align: left;
    text-decoration: none;
}
.portal-usermenu-popover :is(a, button):hover {
    background: var(--surface-2);
}
.portal-usermenu-popover form {
    margin: 0;
}
.portal-usermenu-popover .portal-lang-field {
    padding: var(--space-2) var(--space-3);
}
.portal-usermenu-popover .admin-prefs {
    min-width: 0;
}
.portal-more-prefs {
    border-top: 1px solid var(--line);
    padding-top: var(--space-2);
}
.portal-chrome.admin-chrome > .admin-content > .portal-top {
    position: sticky;
    z-index: var(--z-sticky);
    top: 0;
    display: flex;
    width: 100%;
    max-width: none;
    height: 52px; 
    flex: none;
    align-items: center;
    margin-inline: 0;
    gap: var(--space-4);
    padding: 0 var(--space-6);
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
}
.portal-top > * {
    min-width: 0;
}
.portal-top > .portal-top-end {
    min-width: auto;
}
@media (max-width: 1279px) {
    .portal-top-action-label,
    .portal-user-name {
        display: none;
    }
    .portal-top-action {
        width: 36px;
        justify-content: center;
        padding: 0;
    }
}
.portal-mtop,
.portal-bnav,
.portal-paybar {
    display: none;
}
@media (max-width: 1023px) {
    .portal-chrome.admin-chrome {
        --portal-nav-h: calc(64px + env(safe-area-inset-bottom));
        
        --fss-bottom-nav-h: var(--portal-nav-h);
        --fss-actionbar-safe: 0px;
        grid-template-columns: minmax(0, 1fr);
        
        grid-template-rows: auto minmax(0, 1fr);
    }
    html:has(.portal-chrome[data-has-user]) {
        --bottom-nav-h: 64px;
    }
    html:has(.portal-chrome[data-has-user][data-pay-bar]) {
        --bottom-nav-h: 128px;
    }
    html:has(.portal-chrome[data-has-user] .fss-actionbar[data-variant="fixed"]) {
        --bottom-nav-h: 120px;
    }
    .portal-side,
    .portal-chrome.admin-chrome > .admin-content > .portal-top,
    .portal-banner-slot {
        display: none;
    }
    .portal-mtop {
        position: sticky;
        z-index: var(--z-sticky);
        top: 0;
        display: flex;
        height: 48px;
        align-items: center;
        gap: var(--space-3);
        padding: 0 var(--space-4);
        border-bottom: 1px solid var(--line);
        background: var(--surface);
    }
    .portal-mtop-brand .logo-image {
        width: auto;
        height: 24px;
    }
    .portal-mtop .portal-credit-chip {
        height: 32px;
        margin-left: auto;
        padding: 0 10px 0 8px;
    }
    .portal-mtop-title {
        overflow: hidden;
        min-width: 0;
        padding-left: var(--space-3);
        border-left: 1px solid var(--line);
        color: var(--ink-2);
        font-size: var(--text-small);
        font-weight: var(--font-medium);
        line-height: 18px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .portal-chrome.admin-chrome > .admin-content > :not(.portal-top):not(.portal-banner-slot) {
        padding-inline: var(--space-4);
    }
    .portal-chrome.admin-chrome > .admin-content {
        padding-bottom: calc(var(--portal-nav-h) + var(--space-4));
    }
    .portal-chrome.admin-chrome[data-pay-bar]:not(:has(.fss-actionbar[data-variant="fixed"])) > .admin-content {
        padding-bottom: calc(var(--portal-nav-h) + 64px + var(--space-4));
    }
    .portal-paybar {
        position: fixed;
        z-index: var(--z-sticky);
        right: 0;
        bottom: var(--portal-nav-h);
        left: 0;
        display: block;
        padding: var(--space-2) var(--space-4);
        border-top: 1px solid var(--line);
        background: var(--surface);
    }
    .portal-chrome:has(.fss-actionbar[data-variant="fixed"]) .portal-paybar {
        display: none;
    }
    .portal-bnav {
        --rail-bg: var(--night);
        position: fixed;
        z-index: var(--z-sticky);
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: var(--portal-nav-h);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--night);
    }
    .portal-bnav[data-cols="5"] {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .portal-bnav::before {
        position: absolute;
        top: 0;
        right: var(--space-3);
        left: var(--space-3);
        height: 3px;
        border-radius: 3px;
        background: var(--ink-2);
        content: "";
        pointer-events: none;
    }
    .portal-bnav-item {
        position: relative;
        display: flex;
        min-height: 64px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: var(--space-2) 0 0;
        border: 0;
        background: none;
        color: #aeb6af; 
        cursor: pointer;
        font: inherit;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .portal-bnav-item[data-active] {
        color: #ffffff;
    }
    .portal-bnav-item:focus-visible {
        border-radius: var(--radius-sm);
        box-shadow: inset 0 0 0 2px var(--accent);
    }
    .portal-bnav-icon {
        position: relative;
        display: inline-flex;
        height: 24px;
        align-items: center;
    }
    .portal-bnav-label {
        font-size: var(--text-caption);
        font-weight: var(--font-medium);
        line-height: 16px;
    }
    .portal-bnav-item[data-active] .portal-bnav-label {
        font-weight: var(--font-semibold);
    }
    .fss-rail-node.portal-bnav-node {
        position: absolute;
        top: -2.5px;
        left: calc(50% - 4px);
        box-shadow:
            inset 0 0 0 1.5px var(--night),
            0 0 0 3px rgba(199, 255, 74, 0.3);
    }
}
.portal-more-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0 var(--space-3);
}
.portal-more-user-copy {
    display: grid;
    min-width: 0;
    line-height: 1.3;
}
.portal-more-user-copy strong {
    overflow: hidden;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-more-user-copy small {
    overflow: hidden;
    color: var(--ink-3);
    font-size: var(--text-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-more-list {
    display: grid;
}
.portal-more-list--account {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
}
.portal-more-row {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: var(--space-4);
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-body-lg);
    font-weight: var(--font-medium);
    text-align: left;
    text-decoration: none;
}
.portal-more-row > svg:first-child {
    flex: none;
    color: var(--ink-2);
}
.portal-more-row > svg:last-child:not(:first-child) {
    margin-left: auto;
    color: var(--ink-3);
}
.portal-more-row > span {
    min-width: 0;
}
.portal-more-row[data-active] {
    background: var(--nav-active);
    font-weight: var(--font-semibold);
}
.portal-more-row--logout {
    margin-top: var(--space-2);
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: var(--danger);
}
.portal-more-row--logout > svg:first-child {
    color: var(--danger);
}
.portal-more-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0 0 var(--space-2) 40px;
}
.portal-more-chip {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: var(--control-fill);
    color: var(--ink);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
}
.portal-more-chip[data-active] {
    border-color: var(--selection-ink);
    background: var(--accent-soft);
    font-weight: var(--font-semibold);
}
.portal-more .portal-lang-field {
    padding: var(--space-3) var(--space-2);
}
.portal-credit-more {
    display: flex;
    justify-content: center;
    padding-top: var(--space-3);
}
.portal-credit-footer {
    margin: 0;
    font-size: var(--text-sm);
}
.portal-sms-credit-line {
    margin-top: 0.25rem;
}
@media (max-width: 1023px) {
    .portal-chrome[data-pay-bar] .portal-header-pay {
        display: none;
    }
}
.portal-billing-settings {
    display: grid;
    gap: var(--space-3);
    scroll-margin-top: var(--space-6);
}
.portal-invoice-layout {
    display: grid;
    gap: var(--stack-cards);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
    .portal-invoice-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}
.portal-invoice-card {
    display: grid;
    gap: var(--space-4);
}
.portal-invoice-from {
    margin: 0;
    color: var(--ink);
    font-weight: var(--font-semibold);
}
.portal-invoice-from span {
    color: var(--ink-3);
    font-weight: var(--font-regular);
}
.portal-invoice-figure {
    display: grid;
    gap: var(--space-1);
}
.portal-invoice-figure-label {
    color: var(--ink-2);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
.portal-invoice-figure-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
}
.portal-invoice-amount {
    color: var(--ink);
    font-size: var(--text-display-xl);
    line-height: var(--lh-display-xl);
}
.portal-invoice-when {
    margin: 0;
    color: var(--ink-2);
}
.portal-invoice-when[data-overdue] {
    color: var(--danger);
    font-weight: var(--font-medium);
}
.portal-invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.portal-invoice-hint {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
.portal-invoice-lines {
    border-top: 1px solid var(--line);
    padding-top: var(--space-3);
}
.portal-invoice-lines summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    color: var(--ink);
    cursor: pointer;
    font-weight: var(--font-semibold);
    list-style: none;
}
.portal-invoice-lines summary::-webkit-details-marker {
    display: none;
}
.portal-invoice-lines summary small {
    color: var(--ink-2);
    font-size: var(--text-small);
    font-weight: var(--font-regular);
}
.portal-invoice-lines summary:focus-visible {
    border-radius: var(--radius-sm);
    outline: none;
    box-shadow: var(--focus-ring);
}
.portal-invoice-line-list {
    display: grid;
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
}
.portal-invoice-line-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
}
.portal-invoice-line-desc {
    min-width: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.portal-invoice-line-qty {
    margin-right: 6px;
    color: var(--ink-3);
}
.portal-invoice-line-amount {
    color: var(--ink);
}
.portal-invoice-line-note {
    margin: var(--space-2) 0 0;
    color: var(--ink-3);
    font-size: var(--text-caption);
    line-height: var(--lh-caption);
}
.portal-invoice-totals {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-3) 0 0;
}
.portal-invoice-totals > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    color: var(--ink-2);
}
.portal-invoice-totals dd {
    margin: 0;
}
.portal-invoice-totals > div[data-total] {
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: var(--font-semibold);
}
.portal-invoice-side {
    display: grid;
    gap: var(--stack-cards);
}
.portal-invoice-autopay {
    display: grid;
    justify-items: start;
    gap: var(--space-2);
}
.portal-invoice-autopay h2 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-h3);
    font-weight: var(--font-semibold);
}
.portal-invoice-autopay p {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
@media (max-width: 1023px) {
    .portal-chrome:has(.fss-actionbar[data-variant="fixed"]) .portal-invoice-pay {
        display: none;
    }
}
.portal-thanks {
    display: grid;
    gap: var(--space-4);
    --rail-bg: var(--surface);
}
.portal-thanks-head {
    display: grid;
    align-items: start;
    gap: var(--space-3);
    grid-template-columns: 24px minmax(0, 1fr);
}
.portal-thanks-node {
    position: relative;
    height: 28px;
}
.portal-thanks-node .fss-rail-node {
    position: absolute;
    top: 10px;
    left: 7.5px;
}
.portal-thanks-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-h2);
    font-weight: var(--font-semibold);
    line-height: var(--lh-h2);
}
.portal-thanks-copy p {
    margin: var(--space-1) 0 0;
    color: var(--ink-2);
}
.portal-thanks-figure,
.portal-thanks-next,
.portal-thanks-actions,
.portal-thanks-question {
    padding-left: calc(24px + var(--space-3));
}
.portal-thanks-figure {
    display: grid;
    gap: 2px;
    margin: 0;
}
.portal-thanks-figure-label {
    color: var(--ink-2);
    font-size: var(--text-small);
}
.portal-thanks-amount {
    color: var(--ink);
    font-size: var(--text-display-lg);
    line-height: var(--lh-display-lg);
}
.portal-thanks-next h3 {
    margin: 0 0 var(--space-2);
    color: var(--ink);
    font-size: var(--text-h3);
    font-weight: var(--font-semibold);
}
.portal-thanks-next ul {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding-left: 18px;
    color: var(--ink-2);
}
.portal-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
@media (max-width: 599px) {
    .portal-thanks-figure,
    .portal-thanks-next,
    .portal-thanks-actions,
    .portal-thanks-question {
        padding-left: 0;
    }
}
.portal-voip-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--stack-cards);
}
@media (min-width: 1024px) {
    .portal-voip-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
    .portal-voip-calls {
        grid-column: 1;
        grid-row: 1;
    }
    .portal-voip-numbers {
        grid-column: 1;
        grid-row: 2;
    }
    .portal-voip-users {
        grid-column: 1;
        grid-row: 3;
    }
    .portal-voip-recording {
        grid-column: 1;
        grid-row: 4;
    }
    .portal-voip-start {
        grid-column: 2;
        grid-row: 1;
    }
    .portal-voip-notes {
        grid-column: 2;
        grid-row: 2;
    }
    .portal-voip-layout[data-start="none"] .portal-voip-notes {
        grid-row: 1;
    }
}
.portal-voip-start {
    display: grid;
    gap: var(--space-1);
}
.portal-voip-start-price {
    margin: var(--space-2) 0 0;
    font-family: var(--font-display);
    font-size: var(--text-display-lg);
    font-weight: var(--font-semibold);
    line-height: var(--lh-display-lg);
    letter-spacing: -0.015em;
    color: var(--ink);
}
.portal-voip-start .admin-muted {
    margin: var(--space-2) 0 0;
}
.portal-voip-country {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.portal-voip-dial {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 24px;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink-2);
    text-align: center;
}
.portal-voip-dial svg {
    flex: none;
}
.portal-voip-country-name {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.portal-voip-country-note,
.portal-voip-once {
    white-space: nowrap;
    color: var(--ink-3);
    font-size: var(--text-caption);
    font-weight: var(--font-regular);
    line-height: var(--lh-caption);
}
.portal-voip-country-note.portal-voip-ranges {
    max-width: 44ch;
    white-space: normal;
    overflow-wrap: anywhere;
}
.portal-voip-price {
    display: inline-grid;
    gap: 2px;
    justify-items: end;
}
.portal-voip-price[data-empty="true"] {
    color: var(--ink-3);
}
.portal-voip-excl {
    color: var(--ink);
    font-size: var(--text-h3);
    font-weight: var(--font-semibold);
    line-height: var(--lh-h3);
}
.portal-voip-incl {
    color: var(--ink-3);
    font-size: var(--text-caption);
    line-height: var(--lh-caption);
}
.portal-voip-other-row th,
.portal-voip-other-row td {
    border-top: 1px solid var(--line-strong);
}
.portal-voip-disclaimer {
    margin: var(--space-4) 0 0;
    max-width: 72ch;
    color: var(--ink-3);
    font-size: var(--text-caption);
    line-height: var(--lh-caption);
}
.portal-voip-disclaimer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.portal-voip-notes-list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding-left: 18px;
    color: var(--ink-2);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
@media (max-width: 640px) {
    
    
    
    
    
    
    
    
    
    
    
    .portal-voip-price {
        justify-items: start;
    }
}
.portal-voip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--stack);
}
.portal-voip-step {
    display: grid;
    gap: 2px;
}
.portal-voip-step[data-kind="missing"] .portal-voip-step-label,
.portal-voip-step[data-kind="missing"] .portal-voip-step-icon {
    color: var(--warning);
}
.portal-voip-form .portal-voip-lock {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-voip-cost {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--text-sm);
    line-height: 20px;
}
.portal-voip-cost p {
    margin: 0;
}
.portal-voip-cost strong {
    color: var(--ink);
}
.portal-voip-help {
    display: block;
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: var(--font-regular);
    line-height: 16px;
}
.admin-form label.portal-voip-check > span {
    display: grid;
    gap: 2px;
}
.admin-form label.portal-voip-check > span.portal-voip-cline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}
.admin-form label.portal-voip-check--nested {
    padding-left: var(--space-6);
}
.admin-form label.portal-voip-check:has(input:disabled) {
    color: var(--ink-3);
}
.admin-form.portal-voip-form label.portal-voip-inline:not(.admin-checkbox) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}
.admin-form.portal-voip-form label.portal-voip-inline input {
    width: 84px;
    text-align: right;
}
.portal-voip-countries {
    display: grid;
    max-height: 320px;
    margin: 0;
    padding: var(--space-1) 0;
    border-radius: var(--radius-md);
    list-style: none;
    overflow-y: auto;
}
.portal-voip-countries > li {
    padding: var(--space-1) var(--space-3);
}
.admin-form .portal-voip-countries label.portal-voip-check {
    font-size: var(--text-sm);
}
.portal-voip-player {
    display: grid;
    gap: var(--space-3);
}
.portal-voip-player audio {
    display: block;
    width: 100%;
}
.portal-voip-player p {
    margin: 0;
}
.portal-voip-vm-transcript {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    border-left: 2px solid var(--line-strong);
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}
.portal-voip-vm-transcript p {
    margin-top: var(--space-1);
    color: var(--ink);
    white-space: pre-line;
}
.portal-voip-subnav {
    display: none;
}
@media (max-width: 768px) {
    .portal-voip-subnav {
        display: block;
        margin-inline: calc(-1 * var(--page-pad, 16px));
    }
    .portal-voip-subnav ul {
        display: flex;
        gap: var(--space-2);
        margin: 0;
        padding: 0 var(--page-pad, 16px) var(--space-1);
        list-style: none;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .portal-voip-subnav ul::-webkit-scrollbar {
        display: none;
    }
    .portal-voip-subnav li {
        flex: none;
        scroll-snap-align: center;
    }
    .portal-voip-subnav a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 var(--space-4);
        border-radius: var(--radius-full);
        background: var(--surface-2);
        color: var(--ink-2);
        font-size: var(--text-sm);
        text-decoration: none;
        white-space: nowrap;
    }
    .portal-voip-subnav a[aria-current="page"] {
        background: var(--ink);
        color: var(--surface);
        font-weight: var(--font-semibold);
    }
    .portal-voip-subnav a:focus-visible {
        outline: 2px solid var(--focus-ring-color);
        outline-offset: 2px;
    }
}
.portal-voip-ranges {
    display: grid;
    gap: var(--space-2);
    min-width: 0;
}
.portal-voip-connectbox h3,
.portal-voip-danger h3 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-voip-danger {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
.portal-voip-qr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-voip-app {
    display: grid;
    gap: var(--space-4);
    min-width: 0;
    
    container-type: inline-size;
}
.portal-voip-app-link .admin-btn {
    justify-content: center;
    gap: var(--space-2);
}
.portal-voip-app-link .portal-voip-help {
    margin: 0;
    text-align: center;
    font-size: var(--text-xs);
}
.portal-voip-app-copy .admin-status-badge {
    margin-top: var(--space-1);
}
.portal-voip-app-badges .admin-status-badge {
    margin-top: var(--space-1);
}
@media (max-width: 480px) {
    .portal-voip-app-item > .admin-btn {
        grid-column: 2;
        justify-self: start;
    }
}
.portal-voip-usage {
    display: grid;
    gap: var(--space-4);
}
.portal-voip-usage-month {
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-voip-usage-body {
    display: grid;
    gap: var(--space-3);
}
.portal-voip-usage-figure {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-2);
    margin: 0;
}
.portal-voip-usage-number {
    font-size: var(--text-3xl);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}
.portal-voip-usage-unit {
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-voip-usage-calls {
    flex-basis: 100%;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-voip-usage-plan {
    display: grid;
    gap: var(--space-2);
}
.portal-voip-usage-plantext {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-2);
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-voip-usage-plantext strong {
    color: var(--ink);
    font-weight: 600;
}
.portal-voip-usage-extra,
.portal-voip-usage-users {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-sm);
}
.portal-voip-usage-cost {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-voip-usage-cost dt {
    color: var(--ink);
    font-size: var(--text-sm);
    font-weight: 500;
}
.portal-voip-usage-cost dd {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.portal-voip-usage-note {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-xs);
}
.portal-voip-usage-link {
    justify-self: start;
    font-size: var(--text-sm);
}
.portal-content-form-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}
.portal-content-inline-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
}
.portal-content-appointment {
    display: grid;
    gap: var(--space-4);
}
.portal-content-appointment-status {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    color: var(--ink-2);
}
.portal-content-appointment-notes {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.portal-content-appointment-actions,
.portal-content-appointment-cancel {
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-content-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: var(--space-2);
}
.portal-content-slot {
    min-height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.portal-content-slot:hover {
    background: var(--surface-2);
}
.portal-content-slot[data-selected] {
    border-color: var(--ink);
    background: var(--accent-soft);
    font-weight: var(--font-semibold);
}
.portal-content-slot--ghost {
    justify-self: start;
    color: var(--ink-2);
}
.portal-appt-week {
    display: grid;
    gap: var(--space-4);
}
.portal-appt-week-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: space-between;
}
.portal-appt-week-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-appt-week-filter button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
}
.portal-appt-week-filter button[data-active] {
    border-color: var(--ink);
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: var(--font-semibold);
}
.portal-appt-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--block-color, var(--ink-3));
}
.portal-appt-week-grid {
    display: grid;
    grid-template-columns: 3.25rem repeat(7, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
}
.portal-appt-week-corner,
.portal-appt-week-day {
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.portal-appt-week-day {
    padding: var(--space-2) var(--space-2);
    border-left: 1px solid var(--line);
    color: var(--ink-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-align: center;
}
.portal-appt-week-day[data-today] {
    background: var(--accent-soft);
    color: var(--ink);
}
.portal-appt-week-gutter {
    position: relative;
    height: calc(var(--week-hours) * var(--hour-h));
}
.portal-appt-week-gutter span {
    position: absolute;
    right: var(--space-2);
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: 1;
    transform: translateY(-50%);
}
.portal-appt-week-gutter span:first-child {
    transform: translateY(2px);
}
.portal-appt-week-col {
    position: relative;
    height: calc(var(--week-hours) * var(--hour-h));
    border-left: 1px solid var(--line);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(var(--hour-h) - 1px),
        var(--line) calc(var(--hour-h) - 1px),
        var(--line) var(--hour-h)
    );
}
.portal-appt-week-col[data-today] {
    background-color: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}
.portal-appt-closed {
    color: var(--ink-3);
    font-size: var(--text-xs);
}
.portal-appt-week-col > .portal-appt-closed {
    position: absolute;
    top: var(--space-2);
    right: 0;
    left: 0;
    text-align: center;
}
.portal-appt-block {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 3px 6px 3px 8px;
    border: 0;
    border-left: 3px solid var(--block-color, var(--ink-3));
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--block-color, var(--ink-3)) 13%, var(--surface));
    color: var(--ink);
    font: inherit;
    font-size: var(--text-xs);
    line-height: 1.25;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out);
}
.portal-appt-block:hover,
.portal-appt-block:focus-visible {
    background: color-mix(in srgb, var(--block-color, var(--ink-3)) 24%, var(--surface));
}
.portal-appt-block span {
    font-weight: var(--font-semibold);
}
.portal-appt-block small {
    overflow: hidden;
    color: var(--ink-2);
    font-size: var(--text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-appt-days {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-appt-days li {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
}
.portal-appt-days li:last-child {
    border-bottom: 0;
}
.portal-appt-days li[data-today] > strong::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-radius: var(--radius-full);
    background: var(--accent);
    vertical-align: middle;
}
.portal-appt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-appt-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    min-height: 44px;
    padding: 4px 12px 4px 10px;
    border: 0;
    border-left: 3px solid var(--block-color, var(--ink-3));
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--block-color, var(--ink-3)) 13%, var(--surface));
    color: var(--ink);
    font: inherit;
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
}
.portal-appt-chip small {
    color: var(--ink-2);
    font-size: var(--text-xs);
}
@media (max-width: 760px) {
    .portal-appt-week-grid {
        display: none;
    }
    .portal-appt-days {
        display: block;
    }
    .portal-content-form-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}
.portal-content-note-meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: space-between;
    color: var(--ink-2);
}
.portal-shop-statuscell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.portal-shop-photos {
    display: grid;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
}
.portal-shop-photos li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.portal-shop-photos img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}
.portal-shop-order-main,
.portal-shop-order-side {
    display: grid;
    align-content: start;
    gap: var(--stack-cards);
    min-width: 0;
}
.portal-shop-totals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-4) 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-shop-totals dt {
    color: var(--ink-2);
}
.portal-shop-totals dd {
    margin: 0;
    text-align: right;
}
.portal-shop-line {
    display: block;
}
.portal-shop-payment {
    display: grid;
    gap: var(--space-2);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line);
}
.portal-shop-payment:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.portal-shop-refunds {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-shop-refunds li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.portal-shop-refunds small {
    flex-basis: 100%;
    color: var(--ink-2);
}
@media (pointer: coarse) {
    :is(.portal-mtop-brand) {
        position: relative;
    }
    :is(.portal-mtop-brand)::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: max(100%, 44px);
        height: max(100%, 44px);
        content: "";
        transform: translate(-50%, -50%);
    }
}
.portal-invoice-lines {
    display: grid;
    gap: var(--space-2);
}
.portal-invoice-line {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(4.5rem, 0.6fr) minmax(6rem, 0.9fr) minmax(5rem, 0.7fr) minmax(5.5rem, 0.9fr) auto;
    gap: var(--space-2);
    align-items: center;
}
.portal-invoice-line label {
    display: block;
    margin: 0;
}
.portal-invoice-line input,
.portal-invoice-line select {
    width: 100%;
    min-width: 0;
}
.portal-invoice-line-total {
    text-align: right;
    white-space: nowrap;
}
.portal-invoice-totals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-5);
    margin: 0 0 var(--space-3);
}
.portal-invoice-totals dt {
    color: var(--ink-2);
}
.portal-invoice-totals dd {
    margin: 0;
    text-align: right;
}
@media (max-width: 760px) {
    .portal-invoice-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: var(--space-3);
        border-radius: var(--radius-md);
    }
    .portal-invoice-line > label:first-child {
        grid-column: 1 / -1;
    }
    .portal-invoice-line-total {
        text-align: left;
    }
}
.portal-voip-setup-form {
    display: grid;
    gap: var(--space-6);
    min-width: 0;
}
.portal-voip-setup-block {
    display: grid;
    gap: var(--space-4);
    min-width: 0;
}
.portal-voip-setup-subtitle {
    margin: 0 0 var(--space-2);
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-voip-setup-forward {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-voip-setup-forward > li {
    display: grid;
    gap: var(--space-3);
}
.portal-voip-setup-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}
@media (max-width: 480px) {
    .portal-voip-setup-dates {
        grid-template-columns: minmax(0, 1fr);
    }
}
.portal-voip-setup-periods {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-voip-setup-periods > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-sm);
}
.admin-form.portal-voip-setup-form label.portal-voip-check > span.portal-voip-cline {
    display: grid;
    justify-content: start;
    gap: 2px;
}
.portal-voip-mode {
    display: inline-flex;
    padding: 2px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-voip-mode button {
    min-height: 32px;
    padding: 0 var(--space-3);
    border: 0;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
.portal-voip-mode button:hover {
    color: var(--ink);
}
.portal-voip-mode button[aria-pressed="true"] {
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    font-weight: var(--font-semibold);
}
.portal-voip-mode button:focus-visible {
    outline: 3px solid var(--focus-ring-color);
    outline-offset: 0;
}
.portal-voip-mode[data-busy] {
    opacity: 0.7;
}
@media (pointer: coarse) {
    .portal-voip-mode button {
        min-height: 40px;
    }
}
.portal-contacts-consent {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
.portal-contacts-consent h3 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-contacts-consent-list dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.portal-contacts-consent-list small {
    color: var(--ink-3);
}
.admin-form .portal-contacts-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-contacts-pick {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-contacts-pick li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
}
.portal-contacts-pick label > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.portal-contacts-pick small {
    color: var(--ink-3);
}
.portal-contacts-merge {
    gap: var(--space-5);
}
.portal-contacts-drop {
    display: grid;
    justify-items: center;
    gap: var(--space-2);
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    color: var(--ink-2);
    text-align: center;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.portal-contacts-drop:hover,
.portal-contacts-drop[data-dragging] {
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1.5px var(--accent);
}
.portal-contacts-drop:has(input:focus-visible) {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}
.portal-contacts-drop strong {
    color: var(--ink);
    font-size: var(--text-md);
}
.portal-contacts-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.portal-contacts-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
}
.portal-contacts-summary > div {
    display: grid;
    gap: 2px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-contacts-summary dt {
    color: var(--ink-3);
    font-size: var(--text-xs);
}
.portal-contacts-summary dd {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-lg);
    font-variant-numeric: tabular-nums;
    font-weight: var(--font-semibold);
}
.portal-contacts-columns {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-contacts-columns li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
    align-items: center;
    gap: var(--space-3);
}
.portal-contacts-column-name {
    overflow: hidden;
    color: var(--ink);
    font-weight: var(--font-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-contacts-issues {
    display: grid;
    gap: var(--space-4);
}
.portal-contacts-issues h3 {
    margin: 0 0 var(--space-2);
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-contacts-issues ul {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding-left: var(--space-4);
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-contacts-target {
    max-width: 28rem;
}
@media (max-width: 640px) {
    
    
    .portal-contacts-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .portal-contacts-columns li {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-1);
    }
}
.portal-content-newsletter-progress {
    display: grid;
    gap: var(--space-1);
}
.portal-content-newsletter-progress progress {
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--surface-2);
    accent-color: var(--accent);
}
.portal-content-newsletter-domain {
    display: grid;
    gap: var(--space-2);
    padding-block: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-content-newsletter-domain:first-of-type {
    border-top: 0;
}
.portal-content-newsletter-records {
    overflow-x: auto;
}
.portal-content-newsletter-records code {
    overflow-wrap: anywhere;
    word-break: break-all;
}
.portal-notify-help {
    margin: 0 0 var(--space-3);
    max-width: 62ch;
}
.portal-notify-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-notify-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-6);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line);
}
.portal-notify-copy {
    display: grid;
    min-width: 0;
    flex: 1 1 260px;
    gap: 2px;
}
.portal-notify-copy span {
    color: var(--ink-3);
    font-size: var(--text-small);
}
.portal-notify-channels {
    display: flex;
    flex: none;
    gap: var(--space-5);
}
.portal-notify-switch {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-base);
}
.portal-notify-switch input {
    width: 18px;
    height: 18px;
    min-height: 0;
    accent-color: var(--selection-ink);
}
.portal-notify-switch[data-pending] {
    opacity: 0.6;
}
@media (max-width: 640px) {
    .portal-notify-channels {
        width: 100%;
    }
}
.portal-privacy {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
.portal-privacy h3 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-privacy h4 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}
.portal-privacy-help,
.portal-privacy-legal {
    margin: 0;
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.portal-privacy-actions {
    display: grid;
    gap: var(--space-4);
}
.portal-privacy-actions > div {
    display: grid;
    justify-items: start;
    gap: var(--space-2);
}
.portal-privacy-actions small,
.portal-privacy-request small {
    color: var(--ink-3);
}
.portal-privacy-requests {
    display: grid;
    gap: var(--space-2);
}
.portal-privacy-requests > ul,
.portal-privacy-steps {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-privacy-request {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-privacy-request-head,
.portal-privacy-steps li,
.portal-privacy-request-actions,
.portal-privacy-request-actions form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.portal-privacy.portal-privacy-list {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 0;
}
.portal-privacy-list h2 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
ul.portal-privacy-requests {
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-privacy-timeline {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.portal-contacts-touchpoints {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
.portal-contacts-touchpoints h3 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-contacts-touchpoints-list {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-contacts-touchpoints-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink-2);
}
.portal-contacts-touchpoints-list li > span {
    flex: 1 1 auto;
    min-width: 0;
}
.portal-contacts-touchpoints-open {
    flex: none;
    color: var(--ink);
    font-size: var(--text-sm);
    text-decoration: underline;
}
.portal-call {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.portal-call-reason {
    max-width: 38ch;
}
.portal-call-pane {
    display: grid;
    gap: var(--space-2);
}
.portal-search-trigger {
    display: inline-flex;
    height: 36px;
    min-width: 168px;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-2) 0 var(--space-3);
    
    border: 1px solid var(--line-field);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink-3);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-small);
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.portal-search-trigger:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.portal-search-trigger:focus-visible,
.portal-search-icon:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-search-trigger-label {
    flex: 1 1 auto;
    text-align: left;
}
.portal-search-trigger kbd {
    display: inline-flex;
    height: 20px;
    align-items: center;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--sidebar-bg);
    color: var(--ink-3);
    font: inherit;
    font-size: var(--text-caption);
}
.portal-search-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
}
.portal-mtop .portal-search-icon + .portal-credit-chip {
    margin-left: 0;
}
@media (max-width: 1279px) {
    .portal-search-trigger {
        width: 36px;
        min-width: 0;
        justify-content: center;
        padding: 0;
        border-color: transparent;
        background: none;
    }
    .portal-search-trigger-label,
    .portal-search-trigger kbd {
        display: none;
    }
}
:is(.portal-spotlight, .portal-palette-sheet) kbd {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}
.portal-auto-intro {
    max-width: 62ch;
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-auto-url {
    overflow-wrap: anywhere;
}
.portal-auto-section-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.portal-auto-section-head h2 {
    margin: 0;
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-auto-templates {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-6);
}
.portal-auto-template-grid {
    display: grid;
    gap: var(--stack-cards);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-auto-template {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-3);
}
.portal-auto-template h3 {
    margin: 0 0 var(--space-1);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}
.portal-auto-template p {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-auto-template-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}
.portal-auto-detail-side {
    display: grid;
    align-content: start;
    gap: var(--stack-cards);
    min-width: 0;
}
.portal-auto-detail-main {
    min-width: 0;
}
@media (max-width: 1180px) {
    .portal-auto-detail-side {
        order: -1;
    }
}
.portal-auto-editor {
    display: grid;
    gap: var(--stack-cards);
}
.portal-auto-fields {
    display: grid;
    gap: var(--space-3);
}
.portal-auto-days {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
}
.portal-auto-call-filters {
    padding-top: var(--space-2);
}
.portal-auto-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-1);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    justify-self: start;
}
.admin-form label.portal-auto-segment-option {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    cursor: pointer;
}
.portal-auto-segment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.portal-auto-segment-option span {
    padding: 6px var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: background-color 120ms ease, color 120ms ease;
}
.portal-auto-segment-option input:checked + span {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--ink), transparent 88%);
}
.portal-auto-segment-option input:focus-visible + span {
    outline: 2px solid var(--selection-ink);
    outline-offset: 2px;
}
.portal-auto-text {
    display: grid;
    gap: var(--space-2);
}
.portal-auto-vars {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}
.portal-auto-var {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-full);
    background: var(--control-fill);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--text-caption);
    font-weight: 600;
    cursor: pointer;
}
.portal-auto-var:hover {
    background: var(--control-fill-hover);
    color: var(--ink);
}
.portal-auto-var:focus-visible {
    outline: 2px solid var(--selection-ink);
    outline-offset: 2px;
}
.portal-auto-var span {
    font-family: var(--font-mono);
    color: var(--ink-3);
}
.portal-auto-var-preview {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface);
    color: var(--ink);
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.portal-auto-var-preview span {
    color: var(--ink-3);
    font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
    .portal-auto-segment-option span {
        transition: none;
    }
}
.portal-auto-issues {
    margin: var(--space-1) 0 0;
    padding-left: var(--space-4);
}
.portal-auto-status {
    display: grid;
    gap: var(--space-3);
}
.portal-auto-cost-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-auto-cost-note svg {
    flex: none;
    margin-top: 3px;
    color: var(--warning);
}
.portal-auto-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-auto-cost {
    display: grid;
    gap: var(--space-3);
}
.portal-auto-cost p {
    margin: 0;
}
.portal-auto-cost-total {
    display: grid;
    gap: 2px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-auto-cost-total small {
    color: var(--ink-3);
}
.portal-auto-runs {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-auto-run {
    border-bottom: 1px solid var(--line);
}
.portal-auto-run:last-child {
    border-bottom: 0;
}
.portal-auto-run summary,
.portal-auto-run-flat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 52px;
    padding: var(--space-2) 0;
    cursor: pointer;
    list-style: none;
}
.portal-auto-run-flat {
    cursor: default;
}
.portal-auto-run summary::-webkit-details-marker {
    display: none;
}
.portal-auto-run summary:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-auto-run-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.portal-auto-run-main strong {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
.portal-auto-run-main small {
    color: var(--ink-3);
    font-size: var(--text-caption);
}
.portal-auto-run-body {
    display: grid;
    gap: var(--space-2);
    padding: 0 0 var(--space-3);
}
.portal-auto-steps {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-auto-steps li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
}
.portal-flow-editor {
    gap: var(--space-4);
}
.portal-flow-name {
    display: grid;
    gap: var(--space-2);
}
.portal-flow-issue {
    margin: 0;
    color: var(--warning);
    font-size: var(--text-sm);
}
.portal-flow-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-2);
}
.portal-flow-heading {
    margin: 0;
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-flow-note {
    margin: 0;
}
.portal-flow {
    --gutter: 128px;
    --rail-x: calc(var(--gutter) - 18px);
    --node-y: 24px;
    --rail-bg: var(--canvas);
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-flow-row,
.portal-flow-insert {
    position: relative;
    display: grid;
    grid-template-columns: var(--gutter) minmax(0, 1fr);
}
.portal-flow-row {
    padding-bottom: var(--space-3);
}
.portal-flow-row::before,
.portal-flow-insert::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--rail-x);
    width: 3px;
    background: var(--line);
    content: "";
    pointer-events: none;
}
.portal-flow-row[data-first]::before {
    top: var(--node-y);
    border-radius: 3px 3px 0 0;
}
.portal-flow-row[data-last]::before {
    bottom: calc(100% - var(--node-y));
    border-radius: 0 0 3px 3px;
}
.portal-flow-row[data-wait]::before {
    width: 0;
    border-left: 3px dotted var(--line-strong);
    background: none;
}
.portal-flow-gutter {
    position: relative;
    min-height: calc(var(--node-y) + 8px);
}
.portal-flow-word {
    display: block;
    padding: calc(var(--node-y) - 13px) calc(var(--gutter) - var(--rail-x) + 12px) 0 0;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 24px;
    text-align: right;
    overflow-wrap: anywhere;
}
.portal-flow-row[data-first] .portal-flow-word {
    color: var(--ink);
    font-size: 24px;
}
.portal-flow-row[data-quiet] .portal-flow-word {
    color: var(--ink-3);
}
.portal-flow-row[data-wait] .portal-flow-word {
    color: var(--ink-3);
    font-size: 15px;
}
.portal-flow-node {
    position: absolute;
    top: calc(var(--node-y) - 4px);
    left: calc(var(--rail-x) - 2.5px);
}
.portal-flow-slot {
    min-width: 0;
}
.portal-flow-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition:
        border-color var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}
.portal-flow-card:hover {
    border-color: var(--line-strong);
}
.portal-flow-card[data-selected] {
    border-color: var(--selection-ink);
    box-shadow: 0 0 0 1px var(--selection-ink);
}
.portal-flow-card[data-invalid] {
    border-color: var(--warning-border);
}
.portal-flow-card-open {
    display: flex;
    flex: 1 1 0;
    align-items: flex-start;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-1);
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.portal-flow-card-open:focus-visible,
.portal-flow-wait-open:focus-visible,
.portal-flow-plus:focus-visible,
.portal-flow-pick:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-flow-card-icon {
    display: inline-grid;
    flex: none;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-2);
}
.portal-flow-row[data-first] .portal-flow-card-icon {
    background: var(--night);
    color: var(--surface);
}
.portal-flow-card-text {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-top: 1px;
}
.portal-flow-card-text strong {
    color: var(--ink);
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    line-height: var(--lh-body);
}
.portal-flow-card-detail {
    color: var(--ink-2);
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
}
.portal-flow-card-eyebrow {
    display: none;
    color: var(--ink-3);
    font-size: var(--text-caption);
}
.portal-flow-bubble,
.portal-flow-quote {
    max-width: 46ch;
    margin-top: var(--space-1-5);
    color: var(--ink);
    font-size: var(--text-sm);
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.portal-flow-bubble {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
    background: var(--surface-2);
}
.portal-flow-quote {
    padding-left: var(--space-3);
    border-left: 3px solid var(--line-strong);
    color: var(--ink-2);
}
.portal-flow-card-side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
    max-width: 45%;
    margin-left: auto;
    padding-top: var(--space-1);
}
.portal-flow-card-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
    min-height: 20px;
}
.portal-flow-card-tools {
    display: inline-flex;
    gap: 2px;
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out);
}
.portal-flow-card:hover .portal-flow-card-tools,
.portal-flow-card:focus-within .portal-flow-card-tools,
.portal-flow-wait:hover .portal-flow-card-tools,
.portal-flow-wait:focus-within .portal-flow-card-tools {
    opacity: 1;
}
@media (hover: none) {
    .portal-flow-card-tools {
        opacity: 1;
    }
}
.portal-flow-card-note {
    flex-basis: 100%;
    margin: 0 0 0 calc(32px + var(--space-3) + var(--space-1));
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-flow-issues {
    flex-basis: 100%;
    margin: 0;
    padding: var(--space-2) var(--space-3) var(--space-1) calc(32px + var(--space-3) + var(--space-5));
    color: var(--warning);
    font-size: var(--text-sm);
}
.portal-flow-row[data-dragging] {
    z-index: 2;
}
.portal-flow-row[data-dragging] .portal-flow-card,
.portal-flow-row[data-dragging] .portal-flow-wait {
    box-shadow: var(--shadow-2);
}
.portal-flow-history {
    display: inline-flex;
    gap: 4px;
}
.portal-flow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}
.portal-flow-dot[data-tone="success"] { background: var(--success); }
.portal-flow-dot[data-tone="danger"] { background: var(--danger); }
.portal-flow-dot[data-tone="warning"] { background: var(--warning); }
.portal-flow-dot[data-tone="info"] { background: var(--info); }
.portal-flow-wait {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    max-width: 100%;
    margin-top: calc(var(--node-y) - 20px);
    padding: 2px var(--space-2) 2px 2px;
    border-radius: var(--radius-full);
    background: var(--control-fill);
}
.portal-flow-wait[data-selected] {
    box-shadow: 0 0 0 2px var(--selection-ink);
}
.portal-flow-wait[data-invalid] {
    box-shadow: 0 0 0 1.5px var(--warning-border);
}
.portal-flow-wait-open {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    min-height: 32px;
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-full);
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
}
.portal-flow-wait .portal-flow-issues {
    padding-left: var(--space-3);
}
.portal-flow-insert {
    min-height: 28px;
    margin-top: calc(var(--space-3) * -1);
    margin-bottom: 0;
}
.portal-flow-plus {
    position: absolute;
    top: 2px;
    left: calc(var(--rail-x) - 10.5px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1-5);
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--canvas);
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    color: var(--ink-3);
    cursor: pointer;
    transition:
        background-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out);
}
.portal-flow-plus:hover {
    background: var(--accent);
    box-shadow: inset 0 0 0 1.5px var(--selection-ink);
    color: var(--accent-ink);
    transform: scale(1.12);
}
.portal-flow-insert[data-wide] {
    min-height: 0;
    margin-top: calc(var(--space-2) * -1);
    padding-bottom: var(--space-3);
}
.portal-flow-addlink {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    min-height: 32px;
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-full);
    background: var(--control-fill);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
}
.portal-flow-addlink:hover {
    background: var(--control-fill-hover);
    color: var(--ink);
}
.portal-flow-addlink:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-flow-row[data-dragging] ~ .portal-flow-insert .portal-flow-plus {
    visibility: hidden;
}
.portal-flow-empty,
.portal-flow-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    min-height: 40px;
    padding-top: calc(var(--node-y) - 20px);
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.portal-flow-row[data-fresh] .portal-flow-slot {
    animation: portal-flow-in var(--dur-slow) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
    .portal-flow-row[data-fresh] .portal-flow-slot {
        animation: none;
    }
    .portal-flow-card,
    .portal-flow-card-tools,
    .portal-flow-plus {
        transition: none;
    }
}
.portal-flow-cost {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--info-bg);
    color: var(--ink);
}
.portal-flow-cost svg {
    flex: none;
    margin-top: 2px;
    color: var(--info);
}
.portal-flow-cost p {
    margin: 2px 0 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-flow-dirty {
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.portal-flow-drawer {
    display: grid;
    gap: var(--space-4);
}
.portal-flow-drawer-cost {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--info-bg);
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-flow-picker {
    display: grid;
    gap: var(--space-5);
}
.portal-flow-picker h3 {
    margin: 0 0 var(--space-2);
    color: var(--ink-3);
    font-size: var(--text-caption);
    font-weight: var(--font-semibold);
}
.portal-flow-picker ul {
    display: grid;
    gap: var(--space-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-flow-pick {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.portal-flow-pick:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}
.portal-flow-pick > span:nth-child(2) {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}
.portal-flow-pick strong {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}
.portal-flow-pick small {
    color: var(--ink-2);
    font-size: var(--text-caption);
}
.portal-auto-template--blank {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--card-pad, var(--space-4));
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}
@media (max-width: 640px) {
    .portal-flow {
        --gutter: 28px;
        --rail-x: 8px;
        --node-y: 22px;
    }
    .portal-flow-word {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .portal-flow-card-eyebrow {
        display: block;
    }
    .portal-flow-card {
        padding: var(--space-2);
    }
    .portal-flow-card-open {
        flex-basis: calc(100% - 40px);
        gap: var(--space-2);
    }
    .portal-flow-card-side {
        max-width: none;
        flex-basis: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: calc(32px + var(--space-3));
    }
    .portal-flow-card-note,
    .portal-flow-issues {
        margin-left: 0;
        padding-left: var(--space-3);
    }
}
.portal-shop-bracket {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: var(--space-2) var(--space-3);
    align-items: end;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
}
.portal-shop-bracket:last-child {
    border-bottom: 0;
}
@media (max-width: 640px) {
    .portal-shop-bracket {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.portal-appt-scope {
    display: grid;
    gap: 4px;
    max-width: 420px;
    margin-bottom: 16px;
}
.portal-appt-scope label {
    display: grid;
    gap: 6px;
}
.portal-appt-slot-resources {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
    font-family: var(--font-sans, inherit);
}
.portal-costs {
    display: grid;
    gap: var(--space-4);
}
.portal-costs-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.portal-costs-block {
    display: grid;
    gap: var(--space-3);
    align-content: start;
}
.portal-costs-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: var(--space-2) var(--space-3);
    color: var(--ink-2);
}
.portal-costs-head h3 {
    margin: 0;
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    color: var(--ink);
}
.portal-costs-head p {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
}
.portal-costs-amount {
    font-size: var(--text-md);
    color: var(--ink);
    white-space: nowrap;
}
.portal-costs-rates {
    display: grid;
    gap: var(--space-5, 28px);
    margin-top: var(--space-5, 28px);
}
.portal-costs-rates-head {
    display: grid;
    gap: var(--space-3);
}
.portal-costs-rates-head p {
    margin: 0;
    max-width: 68ch;
}
.portal-costs-jump {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-costs-jump-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--text-sm);
    text-decoration: none;
}
.portal-costs-jump-chip:hover {
    color: var(--ink);
    background: var(--surface-3, var(--surface-2));
}
.portal-costs-jump-chip:focus-visible {
    outline: 2px solid var(--focus-ring, currentColor);
    outline-offset: 2px;
}
.portal-costs-rate-section {
    display: grid;
    gap: var(--space-3);
    align-content: start;
    scroll-margin-top: 72px;
}
.portal-costs-rate-title {
    margin: 0;
    font-size: var(--text-md, 1rem);
    font-weight: var(--font-semibold);
    color: var(--ink);
}
.portal-costs-rate-stack {
    display: grid;
    gap: var(--space-4);
}
.portal-content-lang {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    align-items: center;
    margin-bottom: var(--space-4);
}
.portal-content-review-note {
    color: var(--ink-3);
    font-size: 13px;
}
.portal-content-lang-note {
    flex-basis: 100%;
    order: 9;
    margin: 0;
    color: var(--ink-3);
    font-size: 13px;
}
.portal-content-lang-label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: 600;
}
.portal-content-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 3px;
    list-style: none;
    border-radius: var(--radius-sm);
    background: var(--control-fill);
}
.portal-content-lang-chip {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: calc(var(--radius-sm) - 2px);
    color: var(--ink-2);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: background-color 120ms ease;
}
a.portal-content-lang-chip:hover {
    background: var(--control-fill-hover);
    color: var(--ink);
}
.portal-content-lang-chip[aria-current="true"] {
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-1, 0 1px 2px rgb(0 0 0 / 0.08));
}
.portal-content-lang-code {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
}
.portal-content-lang-name {
    color: var(--ink-3);
}
.portal-content-lang-chip[aria-current="true"] .portal-content-lang-name {
    color: var(--ink-2);
}
.portal-content-lang-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-3);
    flex: none;
}
.portal-content-lang-dot[data-status="published"],
.portal-content-lang-dot[data-status="active"] {
    background: var(--success);
}
.portal-content-lang-dot[data-status="in_review"] {
    background: var(--info);
}
.portal-content-lang-dot[data-status="archived"] {
    background: var(--warning);
}
@media (max-width: 639px) {
    .portal-content-lang-name {
        display: none;
    }
}
.portal-content-review {
    margin-bottom: var(--space-4);
}
.portal-content-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-content-localization {
    display: grid;
    gap: var(--space-3);
    max-width: 560px;
}
.portal-content-localization-locales {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-events-statuscell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.portal-events-section-title {
    margin: var(--space-6) 0 var(--space-1);
    font-size: var(--text-lg);
}
.portal-events-subtitle {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    color: var(--ink-2);
}
.portal-events-registration {
    display: grid;
    gap: var(--space-4);
}
.portal-events-notes {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.portal-events-ticketlist {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-events-ticketlist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
}
.portal-events-visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.portal-events-checkin {
    display: grid;
    gap: var(--space-4);
}
.portal-events-checkin-counter {
    display: grid;
    gap: var(--space-2);
    font-size: var(--text-lg);
}
.portal-events-checkin-bar {
    display: block;
    block-size: 6px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    overflow: hidden;
}
.portal-events-checkin-bar > span {
    display: block;
    block-size: 100%;
    background: var(--accent);
    transition: inline-size 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.portal-events-checkin-search {
    display: grid;
    gap: var(--space-3);
}
.portal-events-checkin-search input[type="search"] {
    inline-size: 100%;
    min-block-size: 52px;
    font-size: var(--text-lg);
}
.portal-events-checkin-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-events-checkin-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
}
.portal-events-checkin-list li[data-checked-in="true"] .portal-events-checkin-who {
    opacity: 0.7;
}
.portal-events-checkin-who {
    display: grid;
    min-inline-size: 0;
}
.portal-events-checkin-who strong,
.portal-events-checkin-who small {
    overflow-wrap: anywhere;
}
.portal-events-checkin-list .admin-btn {
    min-block-size: 48px;
    min-inline-size: 48px;
}
@media (max-width: 640px) {
    .portal-events-checkin-list li {
        grid-template-columns: minmax(0, 1fr);
    }
    .portal-events-checkin-list .admin-btn {
        inline-size: 100%;
    }
}
.portal-legal-editor {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1180px) {
    .portal-legal-editor {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
.portal-legal-frame {
    width: 100%;
    height: 520px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
@media (max-width: 760px) {
    .portal-legal-frame {
        height: 420px;
    }
}
.portal-chatbot-embed h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--text-md);
}
.portal-chatbot-embed {
    display: grid;
    gap: var(--space-2);
}
.portal-chatbot-embed p {
    margin: 0;
}
.portal-voip-appstore {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.fsvoip-appstore-badge {
    display: inline-block;
    flex: none;
    line-height: 0;
}
.portal-voip-rg-danger .portal-voip-danger {
    margin-top: 0;
}
.portal-voip-tts {
    display: grid;
    gap: var(--stack);
    grid-template-areas:
        "rec"
        "compose"
        "all";
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.portal-voip-tts-rec {
    grid-area: rec;
}
.portal-voip-tts-all {
    grid-area: all;
}
.portal-voip-tts-compose {
    grid-area: compose;
}
@media (min-width: 1024px) {
    .portal-voip-tts {
        column-gap: var(--stack);
        row-gap: var(--space-8);
        grid-template-areas:
            "rec compose"
            "all compose";
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
        grid-template-rows: auto 1fr;
    }
    .portal-voip-tts-compose {
        position: sticky;
        top: 72px;
    }
}
.portal-voip-tts-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.portal-voip-tts-group > header h2,
.portal-voip-tts-card > h2 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-h2);
    font-weight: 600;
    line-height: var(--lh-h2);
}
.portal-voip-tts-group > header p {
    max-width: 60ch;
    margin: var(--space-1) 0 0;
    color: var(--ink-2);
    font-size: var(--text-body);
    line-height: var(--lh-body);
}
.portal-voip-tts-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.portal-voip-tts-grid[data-size="large"] {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
@media (min-width: 640px) {
    .portal-voip-tts-grid[data-size="large"] {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
.portal-voip-tts-voice {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow var(--dur-fast) var(--ease-out);
}
.portal-voip-tts-voice[data-size="large"] {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4) var(--space-4);
}
.portal-voip-tts-voice:hover {
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.portal-voip-tts-voice[data-selected] {
    box-shadow: inset 0 0 0 2px var(--accent);
}
.portal-voip-tts-voice-pick {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.portal-voip-tts-voice-pick::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    content: "";
}
.portal-voip-tts-voice .voip-voice-orb {
    z-index: 1;
}
.portal-voip-tts-voice-pick:focus-visible {
    outline: none;
}
.portal-voip-tts-voice-pick:focus-visible::after {
    box-shadow: var(--focus-ring);
}
.portal-voip-tts-voice-name {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink);
    font-size: var(--text-h3);
    font-weight: 600;
    line-height: var(--lh-h3);
}
.portal-voip-tts-voice-check {
    display: inline-grid;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    place-items: center;
}
.portal-voip-tts-voice-meta {
    color: var(--ink-2);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
.portal-voip-tts-voice-desc {
    color: var(--ink-3);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
.portal-voip-tts-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-voip-tts-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.portal-voip-tts-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.portal-voip-tts-form[hidden] {
    display: none;
}
.portal-voip-tts-chosen {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-voip-tts-chosen > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.portal-voip-tts-chosen strong {
    color: var(--ink);
    font-weight: 600;
}
.portal-voip-tts-chosen-label {
    color: var(--ink-3);
    font-size: var(--text-caption);
    line-height: var(--lh-caption);
}
.portal-voip-tts-done {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--success-bg);
}
.portal-voip-tts-done strong {
    color: var(--ink);
}
.portal-voip-tts-done p {
    margin: var(--space-1) 0 0;
    color: var(--ink-2);
    font-size: var(--text-small);
    line-height: var(--lh-small);
}
.portal-voip-tts-done-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.portal-voip-tts-linkbutton {
    padding: 0;
    border: 0;
    background: none;
    color: var(--selection-ink);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
@media (max-width: 1023px) {
    .portal-voip-tts-submit {
        display: none;
    }
}
.portal-domain-dns-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.portal-domain-name-input {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.portal-domain-name-input input {
    flex: 1 1 auto;
    min-width: 0;
}
.portal-domain-name-input span {
    flex: 0 1 auto;
    overflow-wrap: anywhere;
    font-size: var(--text-small);
}
.portal-domain-ns-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.portal-domain-ns-row input {
    flex: 1 1 auto;
    min-width: 0;
}
.portal-domain-transfer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.portal-domain-register-results {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-4) 0 0;
    padding: 0;
    border: 0;
}
.portal-domain-register-results legend {
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--ink);
}
.portal-domain-register-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-2);
}
.portal-domain-register-result[data-available] {
    color: var(--ink);
    cursor: pointer;
}
.portal-domain-register-name {
    overflow-wrap: anywhere;
}
.portal-domain-register-price {
    grid-column: 2 / -1;
    font-size: var(--text-small);
}
.portal-domain-unknown {
    display: grid;
    gap: var(--space-1);
    justify-items: start;
}
.portal-domain-unknown small {
    font-weight: var(--font-regular);
    line-height: 1.4;
}
.portal-domain-ns {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
.portal-domain-ns > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    min-width: 0;
}
.portal-domain-ns code {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
}
.portal-domain-contacts-row .admin-muted {
    font-weight: var(--font-regular);
}
.portal-domain-note {
    margin: var(--space-3) 0 0;
    line-height: 1.5;
}
.portal-domain-actions {
    margin-top: var(--space-4);
}
.portal-domain-card > .admin-card-heading {
    flex-wrap: wrap;
    align-items: flex-start;
}
.portal-domain-card > .admin-card-heading > div {
    flex-basis: 220px;
}
.portal-domain-card > .admin-card-heading > p,
.portal-domain-card > .admin-card-heading p {
    margin: 0;
    color: var(--ink-3);
    line-height: 1.5;
}
.portal-domain-lockstate small {
    font-weight: var(--font-regular);
    line-height: 1.5;
}
@media (pointer: coarse) {
    .portal-search-icon {
        width: 44px;
        height: 44px;
    }
}
.portal-voip-plan {
    display: grid;
    gap: var(--space-4);
}
.portal-voip-plan-current {
    display: grid;
    gap: var(--space-2);
}
.portal-voip-plan-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-3);
    margin: 0;
}
.portal-voip-plan-name span {
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.portal-voip-plan-none {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
    line-height: 20px;
}
.portal-voip-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-voip-plan-list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-voip-plan-offer {
    display: grid;
    gap: var(--space-2);
    justify-items: start;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-voip-plan-offer[data-state="current"] {
    box-shadow: inset 3px 0 0 var(--accent, currentColor);
}
.portal-voip-plan-offer p {
    margin: 0;
}
.portal-domain-dns-valuecell {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}
.portal-redirect-list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-redirect {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.portal-redirect[data-inactive] {
    border-style: dashed;
    border-color: var(--warning-border);
}
.portal-redirect-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
}
.portal-redirect-end {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.portal-redirect-label {
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}
.portal-redirect-host {
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-medium);
    overflow-wrap: anywhere;
}
.portal-redirect-path {
    color: var(--ink-2);
}
.portal-redirect-meta {
    color: var(--ink-3);
    font-size: var(--text-xs);
}
.portal-redirect-wire {
    display: flex;
    align-items: center;
    width: 88px;
    color: var(--ink-2);
}
.portal-redirect-wire-line {
    position: relative;
    flex: 1 1 auto;
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--line-strong);
}
.portal-redirect-wire-line::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--ink);
    content: "";
    transform: translate(-50%, -50%);
}
.portal-redirect-wire svg {
    flex: 0 0 auto;
    margin-left: -3px;
}
.portal-redirect-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-redirect-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
@media (max-width: 640px) {
    .portal-redirect-route {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-2);
    }
    .portal-redirect-wire {
        width: auto;
        height: 32px;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 3px;
    }
    .portal-redirect-wire-line {
        flex: 1 1 auto;
        width: 3px;
        height: auto;
    }
    .portal-redirect-wire-line::before {
        top: 0;
        left: 50%;
    }
    .portal-redirect-wire svg {
        margin: -3px 0 0 -2.5px;
        transform: rotate(90deg);
    }
}
.portal-redirect-form {
    display: grid;
    gap: var(--space-6);
}
.portal-redirect-fieldset {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-redirect-fieldset > legend {
    margin-bottom: var(--space-2);
    padding: 0;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
}
.portal-redirect-source {
    margin: 0;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink);
    overflow-wrap: anywhere;
}
.portal-redirect-advanced > summary {
    cursor: pointer;
    color: var(--ink-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
.portal-redirect-advanced[open] > summary {
    margin-bottom: var(--space-3);
}
.portal-redirect-example {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-3);
    border-left: 3px solid var(--line-strong);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    font-size: var(--text-sm);
}
.portal-redirect-example-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink-2);
    overflow-wrap: anywhere;
}
.portal-redirect-example-line strong {
    color: var(--ink);
    font-weight: var(--font-semibold);
}
.pv-page [data-enter] {
    animation: pv-enter var(--dur-slow) var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * var(--stagger));
}
.pv-overview {
    max-width: 1160px;
}
.pv-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.pv-metrics[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pv-metrics[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pv-metrics[data-count="1"] {
    grid-template-columns: minmax(0, 340px);
}
.pv-metric {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px var(--card-pad) 14px;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.pv-metric:hover {
    border-color: color-mix(in srgb, var(--line), var(--ink) 14%);
    box-shadow: var(--shadow-1);
    transform: translateY(-1px);
}
.pv-metric-value {
    display: block;
    font: 600 26px/32px var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.pv-bars {
    display: flex;
    height: 34px;
    align-items: flex-end;
    gap: 3px;
}
.pv-bars i {
    flex: 1;
    border-radius: 2px;
    background: var(--surface-2);
    transform-origin: bottom;
}
.pv-bars i[data-kind="calls"] {
    background: var(--ink-3);
}
.pv-bars i[data-kind="missed"] {
    background: var(--danger);
}
.pv-bars i[data-kind="now"] {
    background: var(--ink);
}
.pv-bars[data-draw] i {
    animation: pv-grow-y 460ms var(--ease-out) backwards;
    animation-delay: calc(var(--b, 0) * 22ms + 200ms);
}
.pv-life {
    position: relative;
    height: 14px;
}
.pv-life[data-labeled] {
    height: 28px;
}
.pv-life-track,
.pv-life-fill {
    position: absolute;
    top: 6px;
    left: 0;
    height: 2px;
    border-radius: 2px;
}
.pv-life-track {
    right: 4px;
    background: var(--line);
}
.pv-life-fill {
    width: var(--p);
    background: var(--ink);
    transform-origin: left;
}
.pv-life[data-draw] .pv-life-fill {
    animation: pv-grow-x var(--dur-draw) var(--ease-draw) 200ms backwards;
}
.pv-life[data-tone="warning"] .pv-life-fill {
    background: var(--warning);
}
.pv-life[data-tone="danger"] .pv-life-fill {
    background: var(--danger);
}
.pv-life-end {
    position: absolute;
    top: 3px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.pv-life[data-tone="warning"] .pv-life-end {
    box-shadow: inset 0 0 0 1.5px var(--warning);
}
.pv-life[data-tone="danger"] .pv-life-end {
    box-shadow: inset 0 0 0 1.5px var(--danger);
}
.pv-life[data-done] .pv-life-end {
    background: var(--ink);
    box-shadow: none;
}
.pv-life-text {
    position: absolute;
    top: 13px;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 15px;
    white-space: nowrap;
}
.pv-life-text span:first-child {
    overflow: hidden;
    font-family: var(--font-mono);
    text-overflow: ellipsis;
}
.pv-card {
    min-width: 0;
    border-radius: var(--radius-md);
    background: var(--surface);
}
.pv-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pv-row-group {
    position: sticky;
    z-index: 1;
    top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--card-pad) 6px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
    color: var(--ink-3);
    font-size: 12.5px;
}
.pv-rows > .pv-row-group:first-child {
    border-top: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.pv-row-group b {
    color: var(--ink-2);
    font-weight: var(--font-semibold);
}
.pv-row {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1.1fr) minmax(0, 1fr) 110px 16px;
    align-items: center;
    gap: 16px;
    padding: 12px var(--card-pad);
    border-top: 1px solid var(--line);
    transition: background-color var(--dur-fast) var(--ease-out);
}
.pv-rows > .pv-row:first-child {
    border-top: 0;
}
.pv-row[data-linked]:hover {
    background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}
.pv-row[data-linked]:active {
    background: var(--surface-2);
}
.pv-row-main {
    min-width: 0;
}
.pv-row-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: var(--font-medium);
    line-height: 20px;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.pv-row-title,
button.pv-row-title {
    cursor: pointer;
}
a.pv-row-title::after,
button.pv-row-title::after {
    position: absolute;
    inset: 0;
    content: "";
}
a.pv-row-title:focus-visible,
button.pv-row-title:focus-visible {
    outline: none;
}
/* Keyboard focus only: the row hover background plus a slim inset accent. A mouse click shows nothing. */
html:not([data-input="pointer"]) a.pv-row-title:focus-visible::after,
html:not([data-input="pointer"]) button.pv-row-title:focus-visible::after {
    background: color-mix(in srgb, var(--selection-ink) 5%, transparent);
    box-shadow: inset 3px 0 0 var(--selection-ink);
    border-radius: var(--radius-md);
}
.pv-row-sub {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pv-row-sub[data-mono] {
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.pv-row-acts {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}
/* Each row's actions form their own stacking context (z-index: 1), so the next row's actions would paint over an open "..." menu.
   Lift the actions of the row whose menu is open (or has focus inside) above its siblings. */
.pv-row-acts:has(.fss-menu-host [aria-expanded="true"]),
.pv-row-acts:focus-within {
    z-index: var(--z-popover);
}
/* Rows now render fss-core's `.fss-row-acts` (x-pv.row wraps x-fss::row), which the rule above never matched: the next row's "Open webmail"
   and "Wachtwoord" buttons painted over an open "..." menu (Sebas, 8 nov). Lift the whole row whose menu is open above its siblings. */
[class~="fss-row"]:has([class~="fss-menu-host"] [aria-expanded="true"]),
[class~="fss-row-acts"]:has([class~="fss-menu-host"] [aria-expanded="true"]) {
    position: relative;
    z-index: var(--z-popover);
}
.pv-live {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}
.pv-live-pill .admin-status-badge-dot {
    position: relative;
}
.pv-live::after,
.pv-live-pill .admin-status-badge-dot::after {
    position: absolute;
    inset: -3px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0;
}
[data-enter] .pv-live::after,
[data-enter] .pv-live-pill .admin-status-badge-dot::after {
    animation: pv-pulse 1.8s var(--ease-out) 0.9s 2;
}
.pv-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pv-drawer-body > * {
    animation: pv-enter var(--dur-base) var(--ease-out) backwards;
}
.pv-drawer-body > :nth-child(1) {
    animation-delay: 140ms;
}
.pv-drawer-body > :nth-child(2) {
    animation-delay: 180ms;
}
.pv-drawer-body > :nth-child(3) {
    animation-delay: 220ms;
}
.pv-drawer-body > :nth-child(4) {
    animation-delay: 260ms;
}
.pv-drawer-body > :nth-child(n + 5) {
    animation-delay: 300ms;
}
.pv-skel-line {
    display: block;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    animation: pv-skel-pulse 1.4s ease-in-out infinite;
}
.pv-skel-line {
    height: 14px;
}
@media (max-width: 1023px) {
    .pv-overview {
        gap: 28px;
    }
    .pv-overview > .pv-metrics {
        margin-top: 0;
    }
    
    
    .portal-chrome[data-pay-bar] .pv-pay {
        display: none;
    }
    .pv-row-title,
    .pv-row-sub {
        overflow-wrap: anywhere;
        white-space: normal;
    }
    .pv-metrics,
.pv-metrics[data-count="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pv-metrics[data-count="1"] {
        grid-template-columns: minmax(0, 1fr);
    }
    .pv-metric {
        padding: 14px 14px 12px;
    }
    .pv-metric-value {
        font-size: 22px;
        line-height: 28px;
    }
    .pv-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 6px 12px;
    }
    
    
    
    
    
}
@media (prefers-reduced-motion: reduce) {
    .pv-page [data-enter],
.pv-page [data-draw],
.pv-page [data-draw] *,
.pv-page [data-draw]::after,
.pv-page .pv-live::after,
.pv-page .pv-live-pill .admin-status-badge-dot::after,
.pv-drawer-body > *,
.pv-skel-line {
        animation: none !important;
    }
    .pv-metric,
.pv-row,
.pv-pay-label,
.pv-pay-busy {
        transition-duration: 1ms !important;
    }
}
html[data-motion="reduced"] .pv-page [data-enter],
html[data-motion="reduced"] .pv-page [data-draw],
html[data-motion="reduced"] .pv-page [data-draw] *,
html[data-motion="reduced"] .pv-page [data-draw]::after,
html[data-motion="reduced"] .pv-page .pv-live::after,
html[data-motion="reduced"] .pv-page .pv-live-pill .admin-status-badge-dot::after,
html[data-motion="reduced"] .pv-drawer-body > *,
html[data-motion="reduced"] .pv-skel-line {
    animation: none !important;
}
html[data-motion="reduced"] .pv-metric,
html[data-motion="reduced"] .pv-row,
html[data-motion="reduced"] .pv-pay-label,
html[data-motion="reduced"] .pv-pay-busy {
    transition-duration: 1ms !important;
}
.pv-subpage {
    max-width: 1160px;
}
.pv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pv-row[data-variant="invoice"] {
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.5fr) 118px 132px;
}
.pv-inv-vis {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}
.pv-inv-vis > :first-child {
    flex: none;
}
.pv-inv-vis .pv-life {
    min-width: 120px;
    flex: 1;
}
.pv-row[data-soft] .pv-row-title {
    color: var(--ink-2);
}
.pv-row[data-soft] .pv-row-acts {
    visibility: hidden;
}
.pv-drawer-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}
.pv-drawer-hint {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 20px;
}
.pv-drawer-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pv-anchor {
    scroll-margin-top: 64px;
}
.pv-costs {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 32px;
    padding: 20px var(--card-pad);
}
.pv-costs-total {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.pv-costs-cap {
    color: var(--ink-3);
    font-size: 13px;
}
.pv-costs-amount {
    font: 600 34px/40px var(--font-display);
    letter-spacing: -0.015em;
}
.pv-costs-forecast {
    color: var(--ink-3);
    font-size: 13px;
}
.pv-details {
    border-top: 1px solid var(--line);
}
.pv-details > summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 var(--card-pad);
    color: var(--ink-2);
    cursor: pointer;
    font-size: 13.5px;
}
.pv-details > summary:hover {
    color: var(--ink);
}
.pv-details[open] > summary {
    border-bottom: 1px solid var(--line);
}
.pv-details > .portal-costs {
    padding: 16px var(--card-pad) var(--card-pad);
}
.pv-find {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.pv-find-field {
    display: flex;
    min-width: 0;
    min-height: 44px;
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-3);
}
.pv-find-field:focus-within {
    border-color: var(--ink); 
}
.pv-find-field input:is(:focus, :focus-visible) {
    outline: none;
    box-shadow: none;
}
.pv-find-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    outline: none;
}
.pv-find .admin-btn {
    min-height: 44px;
    padding-inline: 20px;
}
.pv-row[data-variant="domain"] {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) 132px 16px;
}
.pv-tld {
    color: var(--ink-3);
}
.pv-dns {
    display: flex;
    flex-direction: column;
    gap: 18px;
    container-type: inline-size;
}
.pv-purpose h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: var(--font-semibold);
}
.pv-purpose p {
    margin: 0 0 8px;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 18px;
}
.pv-rec {
    display: grid;
    grid-template-columns: 58px 76px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.pv-rec-type {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 11.5px;
    text-align: center;
}
.pv-rec-host,
.pv-rec-val {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pv-rec-host {
    color: var(--ink-2);
}
.pv-rec-ttl {
    color: var(--ink-3);
    font-size: 12px;
    white-space: nowrap;
}
.pv-rec-tag {
    grid-column: 3 / -1;
    color: var(--ink-3);
    font-size: 12px;
}
@container (max-width: 400px) {
    .pv-rec {
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }
    .pv-rec-val {
        grid-column: 1 / -1;
    }
}
.pv-redir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.pv-redir[data-inactive] {
    opacity: 0.6;
}
.pv-redir svg {
    flex: none;
    color: var(--ink-3);
}
.pv-redir-from,
.pv-redir-to {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pv-dns-edit {
    align-self: flex-start;
}
@media (max-width: 1023px) {
    .pv-toolbar {
        align-items: stretch;
    }
    
    .pv-metrics[data-count="3"] > :first-child {
        grid-column: 1 / -1;
    }
    .pv-row[data-variant="invoice"] {
        grid-template-areas:
            "lead fig"
            "main fig"
            "vis vis"
            "acts acts";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
    }
    
    .pv-row[data-variant="invoice"] > .pv-row-main {
        grid-area: main;
    }
    
    
    .pv-row[data-variant="invoice"] > .pv-row-acts {
        grid-area: acts;
        justify-content: flex-start;
        margin-top: 6px;
    }
    .pv-row[data-variant="invoice"] .pv-row-acts .admin-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .pv-row[data-variant="invoice"][data-soft] > .pv-row-acts {
        display: none;
    }
    .pv-inv-vis {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .pv-inv-vis .pv-life {
        min-width: 140px;
    }
    .pv-costs {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 16px 14px;
    }
    .pv-costs-amount {
        font-size: 30px;
        line-height: 36px;
    }
    
    .pv-find {
        flex-direction: column;
    }
    .pv-find .admin-btn {
        min-height: 48px;
        justify-content: center;
    }
    .pv-row[data-variant="domain"] {
        grid-template-areas:
            "main fig"
            "vis vis";
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .pv-row[data-variant="domain"] > .pv-row-main {
        grid-area: main;
    }
    
    
    .pv-drawer-actions .admin-btn {
        min-height: 48px;
        flex: 1 1 0;
        justify-content: center;
    }
    .pv-drawer-links .admin-btn,
    .pv-dns-edit {
        min-height: 44px;
    }
}
.pv-row[data-variant="invoice"] .pv-row-title {
    white-space: normal;
}
@media (max-width: 1023px) {
    
    .pv-details > .portal-costs {
        padding: 12px 6px 14px;
    }
    
    .portal-costs-jump-chip {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }
}
.pv-card-body {
    padding: 16px var(--card-pad) var(--card-pad);
}
.pv-card-body + .pv-rows > .pv-row:first-child {
    border-top: 1px solid var(--line);
}
.pv-row:has(> .pv-row-acts) {
    grid-template-columns: 32px minmax(0, 1.1fr) minmax(0, 0.8fr) 96px auto;
}
.pv-subpage.portal-voip {
    --vsec-pad: var(--card-pad, 20px);
}
@media (max-width: 640px) {
    .pv-subpage.portal-voip {
        --vsec-pad: var(--space-4);
    }
}
.pv-subpage.portal-voip .portal-voip-lines:not([data-rail]) {
    margin-inline: calc(-1 * var(--vsec-pad));
}
.pv-subpage.portal-voip .portal-voip-section > .portal-voip-lines:not([data-rail]):last-child {
    margin-bottom: calc(-1 * var(--vsec-pad));
}
.pv-subpage.portal-voip .portal-voip-lines:not([data-rail]) > li,
.pv-subpage.portal-voip .portal-voip-lines:not([data-rail]) > li + li {
    border-top: 1px solid var(--line);
}
.pv-subpage.portal-voip .portal-voip-lines:not([data-rail]) .portal-voip-line {
    min-height: 56px;
    padding: 12px var(--vsec-pad);
    border-radius: 0;
}
.pv-subpage.portal-voip .portal-voip-section > .portal-voip-lines:not([data-rail]):last-child > li:last-child .portal-voip-line {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.pv-subpage.portal-voip button.portal-voip-line:hover,
.pv-subpage.portal-voip a.portal-voip-line:hover {
    background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}
.pv-subpage.portal-voip button.portal-voip-line:active,
.pv-subpage.portal-voip a.portal-voip-line:active {
    background: var(--surface-2);
}
.pv-subpage.portal-voip .portal-voip-line-title {
    font-size: 14.5px;
}
.pv-subpage.portal-voip .portal-voip-line-state {
    font-size: 13px;
}
.pv-subpage.portal-voip .portal-voip-line-chevron {
    transition: transform var(--dur-fast) var(--ease-out);
}
.pv-subpage.portal-voip a.portal-voip-line:hover .portal-voip-line-chevron,
.pv-subpage.portal-voip button.portal-voip-line:hover .portal-voip-line-chevron {
    transform: translateX(2px);
}
.pv-subpage.portal-voip .portal-voip-hero {
    gap: var(--space-4);
}
.pv-subpage.portal-voip .portal-voip-hero .portal-voip-hero-says {
    border-left: 2px solid color-mix(in srgb, var(--ink) 22%, var(--surface));
}
.pv-subpage.portal-voip .portal-voip-hero .portal-voip-hero-status[data-tone="open"] .portal-voip-hero-node {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-bg);
}
@media (max-width: 640px) {
    .pv-subpage.portal-voip .portal-voip-ov-wrap > .pv-metrics[data-count="4"],
    .pv-subpage.portal-voip .portal-voip-ov-wrap > .pv-metrics[data-count="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (pointer: coarse) {
    .pv-subpage.portal-voip .portal-voip-step-link {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }
}
.pv-two {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.pv-turn {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 16px;
}
.pv-turn-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.pv-turn-node i {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-knob);
}
.pv-turn-node[data-active] {
    color: var(--ink);
    font-weight: var(--font-medium);
}
.pv-turn-node[data-active] i {
    border-color: var(--ink);
    background: var(--ink);
}
.pv-turn[data-turn="you"] .pv-turn-node[data-active] i {
    border-color: var(--warning);
    background: var(--warning);
}
.pv-turn-line {
    width: 28px;
    height: 2px;
    border-radius: 1px;
    background: var(--line);
}
.pv-row[data-variant="message"] {
    grid-template-columns: 32px minmax(0, 1.6fr) minmax(0, 1fr) 110px 16px;
}
.pv-row[data-variant="message"] .pv-row-title {
    white-space: normal;
}
.pv-row[data-variant="message"] .pv-row-sub {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}
.pv-deliver {
    display: grid;
    gap: 4px;
}
.pv-deliver-bar {
    display: flex;
    height: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-2);
}
.pv-deliver-bar i {
    display: block;
    height: 100%;
    background: var(--ink-2);
}
.pv-deliver-bar i[data-kind="pending"] {
    background: var(--line-strong);
}
.pv-deliver-bar i[data-kind="failed"] {
    background: var(--danger);
}
.pv-deliver small {
    color: var(--ink-3);
    font-size: 12px;
    line-height: 16px;
}
.pv-row[data-variant="plain"] {
    grid-template-columns: 32px minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
}
.pv-row[data-variant="plain"] > .pv-row-acts {
    flex-wrap: wrap;
}
.pv-row[data-variant="plain"] .pv-row-title {
    white-space: normal;
}
.pv-quote {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
    color: var(--ink);
    font-size: 14px;
    line-height: 21px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.pv-subpage > .admin-card,
.pv-subpage > .admin-wide-card,
.pv-subpage .pv-two > .admin-card,
.pv-subpage .pv-two > div > .admin-card,
.pv-subpage .pv-col > .admin-card {
    border-color: var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: none;
}
.pv-subpage .pv-col {
    display: grid;
    min-width: 0;
    gap: 16px;
}
.pv-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--ink-3);
    font-size: 13.5px;
}
.pv-link-row a {
    color: var(--ink-2);
}
@media (max-width: 1023px) {
    .pv-two {
        grid-template-columns: minmax(0, 1fr);
    }
    
    
    
    .pv-row[data-variant="message"],
    .pv-row[data-variant="plain"] {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }
    .pv-turn {
        flex-wrap: wrap;
    }
}
html[data-motion="reduced"] .pv-turn-node i {
    transition-duration: 1ms !important;
}
.pv-row-note {
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 16px;
    white-space: nowrap;
}
.pv-subpage > * {
    flex-shrink: 0;
}
.pv-row[data-variant="plain"] .pv-row-sub {
    white-space: normal;
}
.pv-turncard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}
.pv-turncard > p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
}
.pv-turncard > p strong {
    color: var(--ink);
}
.pv-card-intro {
    margin: 0;
    padding: 12px var(--card-pad) 0;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 20px;
}
.pv-card .admin-datatable {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
@media (max-width: 1023px) {
    .pv-row[data-variant="plain"],
    .pv-row[data-variant="message"] {
        grid-template-areas:
            "ic main fig"
            "ic vis vis"
            ". acts acts";
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }
    
    .pv-row[data-variant="plain"] > .pv-row-main,
    .pv-row[data-variant="message"] > .pv-row-main {
        grid-area: main;
    }
    
    
    .pv-row[data-variant="plain"] > .pv-row-acts,
    .pv-row[data-variant="message"] > .pv-row-acts {
        grid-area: acts;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .pv-row[data-variant="plain"] .pv-row-acts .admin-btn,
    .pv-row[data-variant="plain"] .pv-row-acts button {
        min-width: 44px;
        min-height: 44px;
    }
}
.pv-row[data-variant="download"] {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
}
.pv-dl-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--ink-3);
    font-size: var(--text-sm);
    white-space: nowrap;
}
@media (max-width: 1023px) {
    .pv-row[data-variant="download"] {
        grid-template-areas:
            "ic main acts"
            "ic vis acts";
        grid-template-columns: 34px minmax(0, 1fr) auto;
        row-gap: 4px;
    }
    
    .pv-row[data-variant="download"] > .pv-row-main {
        grid-area: main;
    }
    
    .pv-row[data-variant="download"] > .pv-row-acts {
        grid-area: acts;
    }
    .pv-dl-meta {
        gap: 8px;
        font-size: var(--text-xs);
    }
    .pv-dl-meta > :last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (max-width: 640px) {
    .pv-dl-label,
    .pv-dl-meta > :last-child {
        display: none;
    }
    .pv-row[data-variant="download"] .pv-row-acts .admin-btn {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
}
.pv-overview.po-overview {
    max-width: 1240px;
}
.po-overview .po-card {
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.po-overview .po-card-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.po-overview .po-card-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
.po-overview .po-card-head h2 a {
    color: inherit;
    text-decoration: none;
}
.po-overview .po-card-head h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.po-overview .po-card-head > .po-sub {
    margin-left: auto;
}
.po-overview .po-sub {
    margin: 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 18px;
}
.po-overview .po-eyebrow {
    margin: 0 0 8px;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.02em;
}
.po-overview .po-more-link {
    color: var(--ink-2);
    font-size: 13px;
    text-decoration: none;
}
.po-overview .po-more-link:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.po-overview .po-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.po-overview .po-btn-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--accent);
}
.po-overview [data-po-enter] {
    animation: po-enter var(--dur-slow) var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * var(--stagger));
}
.po-overview .po-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 6px;
}
.po-overview .po-hero[data-has-invoices] {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.po-overview .po-hello {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-width: 0;
    padding-top: 10px;
}
.po-overview .po-greeting {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.17;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.po-overview .po-greeting em {
    color: var(--ink-2);
    font-style: normal;
}
.po-overview .po-hello-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.po-overview .po-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.po-overview .po-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-out);
}
.po-overview .po-tile:hover {
    border-color: var(--line-field);
}
.po-overview .po-invoices {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-lg);
}
.po-overview .po-amount {
    margin: 2px 0 6px;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}
.po-overview .po-amount span {
    color: var(--ink-3);
    font-size: 28px;
    letter-spacing: -0.02em;
}
.po-overview .po-context {
    margin: 0;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 19px;
}
.po-overview .po-paybar {
    position: relative;
    height: 60px;
    margin: 22px 0 16px;
}
.po-overview .po-paybar-track,
.po-overview .po-paybar-done {
    position: absolute;
    top: 7px;
    left: 0;
    height: 2px;
    border-radius: 1px;
}
.po-overview .po-paybar-track {
    right: 0;
    background: var(--surface-2);
}
.po-overview .po-paybar-done {
    background: var(--ink);
    transform-origin: left;
}
.po-overview [data-po-enter] .po-paybar-done {
    animation: po-grow-x var(--dur-draw) var(--ease-draw) backwards;
    animation-delay: 160ms;
}
.po-overview .po-pin {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 14px;
    white-space: nowrap;
    transform: translateX(-50%);
}
.po-overview .po-pin i {
    width: 12px;
    height: 12px;
    margin: 2px 0 8px;
    border: 2px solid var(--line-field);
    border-radius: var(--radius-full);
    background: var(--surface);
}
.po-overview .po-pin b {
    color: var(--ink);
    font-weight: 500;
}
.po-overview .po-pin[data-kind="sent"] i,
.po-overview .po-pin[data-kind="due"][data-past] i {
    border-color: var(--ink);
    background: var(--ink);
}
.po-overview .po-pin[data-kind="overdue"] {
    color: var(--danger);
}
.po-overview .po-pin[data-kind="overdue"] i {
    border-color: var(--danger);
    background: var(--danger);
}
.po-overview .po-pin[data-kind="today"] i {
    border-color: var(--ink);
    background: var(--accent);
}
.po-overview .po-invoices-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.po-overview .po-invoices-aside {
    margin-left: auto;
    color: var(--ink-2);
    font-size: 12.5px;
}
.po-overview .po-paid {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 22px;
}
.po-overview .po-paid-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--ink);
}
.po-overview .po-paid-title {
    margin: 0 0 2px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.02em;
}
.po-overview .po-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.po-overview .po-services:not([data-count="1"]):not([data-count="2"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.po-overview .po-services-more {
    margin: -4px 0 0;
}
.po-overview .po-services-more[data-mobile-only] {
    display: none;
}
.po-overview .po-site {
    display: flex;
    flex-direction: column;
}
.po-overview .po-fav {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    overflow: hidden;
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
}
.po-overview .po-fav img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.po-overview .po-site-name {
    min-width: 0;
}
.po-overview .po-site-name h2 {
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.po-overview .po-site-name h2 a {
    color: var(--ink);
    text-decoration: none;
}
.po-overview .po-site-name h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.po-overview .po-site-name p {
    overflow: hidden;
    margin: 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.po-overview .po-service {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.po-overview .po-service-figure {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 0;
    color: var(--ink-3);
    font-size: 13px;
}
.po-overview .po-service-figure strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.po-overview .po-service-cta {
    align-self: flex-start;
    margin-top: auto;
}
.po-overview .po-phone {
    display: flex;
    flex-direction: column;
}
.po-overview .po-led {
    position: relative;
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: var(--radius-full);
    background: var(--line-field);
}
.po-overview .po-day {
    position: relative;
    height: 56px;
    margin-top: 6px;
}
.po-overview .po-day-axis {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 1px;
    background: var(--line);
}
.po-overview .po-day-slot {
    position: absolute;
    top: 6px;
    bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    transform: translateX(-50%);
}
.po-overview .po-day-tick {
    width: 3px;
    border-radius: 2px;
    background: var(--ink);
    transform-origin: bottom;
}
.po-overview .po-day-tick[data-missed] {
    background: var(--danger);
}
.po-overview [data-po-enter] .po-day-tick {
    animation: po-grow-y var(--dur-draw) var(--ease-draw) backwards;
    animation-delay: 200ms;
}
.po-overview .po-day-now {
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 1px;
    background: var(--accent-deep);
}
.po-overview .po-day-now span {
    position: absolute;
    top: -3px;
    left: 4px;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 10px;
}
.po-overview .po-day-empty {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--ink-3);
    font-size: 12px;
}
.po-overview .po-day-hours {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 12px;
}
.po-overview .po-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}
.po-overview .po-lower[data-has-domains] {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.po-overview .po-side {
    display: grid;
    align-content: start;
    gap: 16px;
}
.po-overview .po-lower:not([data-has-domains]) .po-side {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.po-overview .po-monthstrip {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
    margin: 16px 0 6px;
    padding: 0;
    list-style: none;
}
.po-overview .po-monthstrip li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 6px 0 5px;
    border-radius: 8px;
}
.po-overview .po-monthstrip li[data-current] {
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
}
.po-overview .po-monthstrip-count {
    height: 16px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}
.po-overview .po-monthstrip-count {
    position: relative;
}
.po-overview .po-monthstrip-count[data-stops]::after {
    content: "";
    position: absolute;
    top: 1px;
    right: -5px;
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--danger);
}
.po-overview .po-monthstrip-bar {
    display: block;
    width: 8px;
    height: 28px;
    border-radius: 4px;
    background: var(--surface-2);
}
.po-overview .po-monthstrip-bar {
    position: relative;
    overflow: hidden;
}
.po-overview .po-monthstrip-bar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(var(--h, 0) * 100%);
    border-radius: 4px;
    background: var(--ink);
}
.po-overview .po-monthstrip-label {
    color: var(--ink-3);
    font-size: 10px;
    line-height: 14px;
    text-transform: lowercase;
}
.po-overview .po-monthstrip li[data-current] .po-monthstrip-label {
    color: var(--ink);
    font-weight: 600;
}
.po-overview .po-domlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.po-overview .po-domlist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.po-overview .po-domlist a {
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.po-overview .po-domlist a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.po-overview .po-domlist-when {
    flex: none;
    margin-left: auto;
    color: var(--ink-3);
    font-size: 12px;
}
.po-overview .po-domlist-when[data-stops] {
    color: var(--danger);
}
.po-overview .po-domains .po-more-link {
    display: inline-block;
    margin-top: 12px;
}
.po-overview .po-cells {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    gap: 3px;
    margin: 14px 0 10px;
}
.po-overview .po-cells i {
    height: 28px;
    border-radius: 4px;
    background: var(--surface-2);
}
.po-overview .po-cells i[data-filled] {
    background: var(--ink);
}
.po-overview .po-feed {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.po-overview .po-feed li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface-2);
}
.po-overview .po-feed li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.po-overview .po-feed-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--ink);
}
.po-overview .po-feed-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    line-height: 19px;
}
.po-overview .po-feed-copy a {
    color: var(--ink);
    text-decoration: none;
}
.po-overview .po-feed-copy a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.po-overview .po-feed-when {
    color: var(--ink-3);
    font-size: 11px;
    line-height: 19px;
}
.po-overview .po-help {
    margin-top: 8px;
}
@media (max-width: 1180px) {
    .po-overview .po-services:not([data-count="1"]):not([data-count="2"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .po-overview .po-lower[data-has-domains] {
        grid-template-columns: minmax(0, 1fr);
    }
    .po-overview .po-lower[data-has-domains] .po-side {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (max-width: 1023px) {
    .po-overview .po-hero[data-has-invoices] {
        grid-template-columns: minmax(0, 1fr);
    }
    .po-overview .po-greeting {
        font-size: 24px;
    }
}
@media (max-width: 720px) {
    .po-overview .po-services,
    .po-overview .po-services:not([data-count="1"]):not([data-count="2"]),
    .po-overview .po-lower[data-has-domains] .po-side,
    .po-overview .po-lower:not([data-has-domains]) .po-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .po-overview .po-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .po-overview .po-site[data-extra] {
        display: none;
    }
    .po-overview .po-services-more[data-mobile-only] {
        display: block;
    }
    .po-overview .po-card,
    .po-overview .po-invoices {
        padding: 16px;
    }
    .po-overview .po-amount {
        font-size: 38px;
    }
    .po-overview .po-amount span {
        font-size: 24px;
    }
    .po-overview .po-invoices-aside {
        margin-left: 0;
        flex-basis: 100%;
    }
    .po-overview .po-monthstrip {
        gap: 2px;
    }
    .po-overview .po-monthstrip-bar {
        width: 6px;
        height: 22px;
    }
    .po-overview .po-monthstrip-label {
        font-size: 9px;
        overflow: hidden;
        max-width: 100%;
    }
    .po-overview .po-cells i {
        height: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .po-overview [data-po-enter],
.po-overview [data-po-enter] .po-paybar-done,
.po-overview [data-po-enter] .po-day-tick {
        animation: none;
    }
}
html[data-motion="reduced"] .po-overview [data-po-enter],
html[data-motion="reduced"] .po-overview [data-po-enter] .po-paybar-done,
html[data-motion="reduced"] .po-overview [data-po-enter] .po-day-tick {
    animation: none;
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] {
    display: block;
    min-width: 0;
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] ul {
    display: flex;
    gap: var(--space-2);
    margin: 0;
    padding: 0 0 var(--space-1);
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] ul::-webkit-scrollbar {
    display: none;
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] li {
    flex: none;
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    white-space: nowrap;
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] a:hover {
    background: var(--surface-pressed);
    color: var(--ink);
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] a[aria-current="page"] {
    background: var(--ink);
    color: var(--surface);
}
:is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] a:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}
@media (max-width: 768px) {
    :is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] {
        margin-inline: calc(-1 * var(--space-4));
    }
    :is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] ul {
        padding-inline: var(--space-4);
    }
}
@media (pointer: coarse) {
    .portal-voip-subnav a,
    :is(.portal-voip-subnav, .portal-subnav)[data-variant="pills"] a {
        min-height: 44px;
    }
}
.portal-voip-pagefoot {
    display: grid;
    gap: var(--space-3);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
@media (min-width: 769px) {
    .portal-voip-pagefoot {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .portal-voip-subnav:not([data-variant="pills"]) {
        margin-inline: calc(-1 * var(--space-4));
    }
    .portal-voip-subnav:not([data-variant="pills"]) ul {
        padding-inline: var(--space-4);
    }
}
.portal-voip-pagefoot p {
    margin: 0;
}
.portal-voip-pagefoot-title {
    color: var(--ink);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}
.portal-voip-pagefoot .portal-voip-mode {
    justify-self: start;
}
.portal-voip-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    min-width: 0;
}
.portal-voip-lines {
    position: relative;
    margin: 0 calc(-1 * var(--space-2));
    padding: 0;
    list-style: none;
}
.portal-voip-lines > li + li {
    border-top: 1px solid var(--line);
}
.portal-voip-lines[data-rail] > li + li {
    border-top: 0;
}
.portal-voip-lines[data-rail]::before {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: calc(var(--space-2) + 10.5px);
    width: 3px;
    border-radius: 3px;
    background: var(--line);
    content: "";
    pointer-events: none;
}
.portal-voip-line {
    --rail-bg: var(--surface);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    grid-template-areas: "title state chev";
    align-items: center;
    column-gap: var(--space-3);
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: var(--space-2);
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    text-decoration: none;
}
.portal-voip-line[data-lead] {
    grid-template-columns: 24px minmax(0, 1fr) auto 16px;
    grid-template-areas: "lead title state chev";
}
div.portal-voip-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title state";
}
div.portal-voip-line[data-lead] {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "lead title state";
}
button.portal-voip-line,
a.portal-voip-line {
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out);
}
button.portal-voip-line:hover,
a.portal-voip-line:hover {
    --rail-bg: var(--surface-2);
    background: var(--surface-2);
}
button.portal-voip-line:focus-visible,
a.portal-voip-line:focus-visible {
    outline: 3px solid var(--focus-ring-color);
    outline-offset: 0;
}
.portal-voip-line-lead {
    display: grid;
    grid-area: lead;
    place-items: center;
    color: var(--ink-2);
}
.portal-voip-line-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-2);
    grid-area: title;
    min-width: 0;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}
.portal-voip-line-state {
    grid-area: state;
    min-width: 0;
    max-width: 20rem;
    overflow: hidden;
    color: var(--ink-2);
    font-size: var(--text-sm);
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-voip-line-state[data-unset] {
    color: var(--ink-3);
}
.portal-voip-line-state[data-emphasize] {
    color: var(--ink);
    font-weight: var(--font-medium);
}
.portal-voip-line-chevron {
    grid-area: chev;
    color: var(--ink-3);
}
.portal-voip-line[data-variant="number"] .portal-voip-line-title {
    flex-wrap: nowrap;
    font-size: var(--text-md);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .portal-voip-line {
        grid-template-columns: minmax(0, 1fr) 16px;
        grid-template-areas:
            "title chev"
            "state chev";
        row-gap: 2px;
    }
    .portal-voip-line[data-lead] {
        grid-template-columns: 24px minmax(0, 1fr) 16px;
        grid-template-areas:
            "lead title chev"
            ". state chev";
    }
    div.portal-voip-line,
    div.portal-voip-line[data-lead] {
        grid-template-columns: 24px minmax(0, 1fr);
        grid-template-areas:
            "lead title"
            ". state";
    }
    .portal-voip-line-state {
        max-width: none;
        text-align: left;
        white-space: normal;
    }
    .portal-voip-lines[data-rail]::before {
        top: 32px;
        bottom: 32px;
    }
}
.portal-voip-hero {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
}
.portal-voip-hero .portal-voip-hero-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 1.5em;
    margin: 0;
    color: var(--ink);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
.portal-voip-hero-node {
    display: block;
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--ink-3);
}
.portal-voip-hero .portal-voip-hero-status[data-tone="open"] .portal-voip-hero-node {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(199, 255, 74, 0.35);
}
.portal-voip-hero-body {
    display: grid;
    gap: var(--space-5);
}
@media (min-width: 900px) {
    .portal-voip-hero-body {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        align-items: start;
        column-gap: var(--space-10);
    }
}
.portal-voip-hero-numbers {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-voip-hero-number {
    color: var(--ink);
    font-size: var(--text-3xl);
    font-variant-numeric: tabular-nums;
    font-weight: var(--font-medium);
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
}
.portal-voip-hero-numbers[data-count="many"] .portal-voip-hero-number {
    font-size: var(--text-2xl);
}
.portal-voip-hero .portal-voip-hero-says {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
    padding-left: var(--space-4);
    border-left: 3px solid var(--accent);
}
.portal-voip-hero-says span {
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.portal-voip-hero-says strong {
    color: var(--ink);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    line-height: 1.35;
}
.portal-voip-hero .portal-voip-hero-empty {
    margin: 0;
    color: var(--ink-3);
}
@media (max-width: 560px) {
    .portal-voip-hero {
        padding: var(--space-5);
    }
    .portal-voip-hero-number {
        font-size: var(--text-2xl);
    }
    .portal-voip-hero-numbers[data-count="many"] .portal-voip-hero-number {
        font-size: var(--text-xl);
    }
}
.portal-voip-hero-story {
    display: grid;
    gap: var(--space-4);
    min-width: 0;
}
.portal-voip-attention {
    display: grid;
    gap: var(--space-3);
    border: 1px solid var(--warning-border);
    background: var(--warning-bg);
}
.portal-voip-attention h2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    color: var(--warning);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}
.portal-voip-attention ul {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-voip-attention li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
}
.portal-voip-attention li + li {
    padding-top: var(--space-3);
    border-top: 1px solid var(--warning-border);
}
.portal-voip-attention li > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 240px;
}
.portal-voip-attention strong {
    color: var(--ink);
    font-size: var(--text-base);
}
.portal-voip-attention p {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-voip-ov {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--stack-cards);
    align-items: start;
}
.portal-voip-ov-main,
.portal-voip-ov-side {
    display: grid;
    gap: var(--stack-cards);
    min-width: 0;
}
@media (min-width: 1100px) {
    .portal-voip-ov {
        grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    }
}
.portal-voip-ov-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--stack-cards);
    min-width: 0;
}
.portal-voip-usage p,
.portal-voip-usage dl {
    margin: 0;
}
.portal-voip-usage .portal-voip-usage-users,
.portal-voip-usage .portal-voip-usage-extra {
    color: var(--ink);
}
@media (pointer: coarse) {
    .portal-voip-mode button {
        min-height: 44px;
    }
    
    .portal-chrome .voip-voice-orb {
        min-width: 44px;
        min-height: 44px;
    }
}
.portal-auto-advanced {
    margin: var(--space-6) 0 0;
    font-size: var(--text-sm);
}
@keyframes admin-spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes voip-voice-swirl {
    to {
        transform: rotate(360deg);
    }
}
@keyframes portal-voip-meter-on {
    from {
        background: var(--line);
    }
}
@keyframes portal-flow-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes pv-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}
@keyframes pv-grow-y {
    from {
        transform: scaleY(0);
    }
}
@keyframes pv-grow-x {
    from {
        transform: scaleX(0);
    }
}
@keyframes pv-pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}
@keyframes pv-skel-pulse {
    50% {
        opacity: 0.55;
    }
}
@keyframes po-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}
@keyframes po-grow-x {
    from {
        transform: scaleX(0);
    }
}
@keyframes po-led {
    from {
        opacity: 0.45;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(2.6);
    }
}
@keyframes po-grow-y {
    from {
        transform: scaleY(0);
    }
}
.logo { display: inline-flex; align-items: center; min-width: 0; }
.logo-image { width: 142px; height: auto; max-height: 40px; flex: 0 0 auto; }
.portal-markdown { max-width: 760px; }
.portal-markdown h1, .portal-markdown h2, .portal-markdown h3 { margin: 1.4em 0 0.5em; }
.portal-markdown p, .portal-markdown ul, .portal-markdown ol { margin: 0 0 1em; line-height: 1.6; }
.portal-markdown a { text-decoration: underline; }
.portal-markdown code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.portal-table-actions { text-align: right; }
.pv-col { display: grid; gap: 16px; }
.pv-col > .pv-card { padding: 20px; }
.portal-lang-field { display: grid; gap: 6px; }
button.admin-tab2 { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.pv-col--flush > .pv-card { padding: 0; }
.portal-notify-help {
    margin: 0 0 var(--space-3);
    max-width: 62ch;
}
.portal-notify-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-notify-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-6);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line);
}
.portal-notify-copy {
    display: grid;
    min-width: 0;
    flex: 1 1 260px;
    gap: 2px;
}
.portal-notify-copy span {
    color: var(--ink-3);
    font-size: var(--text-small);
}
.portal-notify-channels {
    display: flex;
    flex: none;
    gap: var(--space-5);
}
.portal-notify-switch {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-base);
}
.portal-notify-switch input {
    width: 18px;
    height: 18px;
    min-height: 0;
    accent-color: var(--selection-ink);
}
.portal-notify-switch[data-pending] {
    opacity: 0.6;
}
@media (max-width: 640px) {
    .portal-notify-channels {
        width: 100%;
    }
}
.portal-call {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.portal-call-reason {
    max-width: 38ch;
}
.portal-search-trigger {
    display: inline-flex;
    height: 36px;
    min-width: 168px;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-2) 0 var(--space-3);
    
    border: 1px solid var(--line-field);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink-3);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-small);
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.portal-search-trigger:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.portal-search-trigger:focus-visible,
.portal-search-icon:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-search-trigger-label {
    flex: 1 1 auto;
    text-align: left;
}
.portal-search-trigger kbd {
    display: inline-flex;
    height: 20px;
    align-items: center;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--sidebar-bg);
    color: var(--ink-3);
    font: inherit;
    font-size: var(--text-caption);
}
.portal-search-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
}
.portal-mtop .portal-search-icon + .portal-credit-chip {
    margin-left: 0;
}
@media (max-width: 1279px) {
    .portal-search-trigger {
        width: 36px;
        min-width: 0;
        justify-content: center;
        padding: 0;
        border-color: transparent;
        background: none;
    }
    .portal-search-trigger-label,
    .portal-search-trigger kbd {
        display: none;
    }
}
:is(.portal-spotlight, .portal-palette-sheet) kbd {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}
@media (pointer: coarse) {
    .portal-search-icon {
        width: 44px;
        height: 44px;
    }
}
.portal-oidc-scopes {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-oidc-scopes li {
    display: grid;
    gap: 2px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
}
.portal-oidc-scopes span {
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.admin-auth-stack .portal-oidc-continue {
    height: auto;
    min-height: 44px;
    padding-block: 10px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.portal-overview { display: grid; gap: 20px; }
/* --- Mobile shell (< 1024 px), parity with Next portal v3 ------------------------------------------------------------------- */
/* Open-invoice badge on Facturen in the bottom bar (Next modules/portal.css `.portal-bnav-badge`). */
@media (max-width: 1023px) {
    .portal-bnav-badge {
        position: absolute;
        top: -4px;
        left: calc(100% - 6px);
        display: inline-flex;
        min-width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border-radius: var(--radius-full);
        background: var(--danger-solid);
        box-shadow: 0 0 0 2px var(--night);
        color: #ffffff;
        font-size: 11px;
        font-weight: var(--font-semibold);
        line-height: 1;
    }
}
/* The fss-core sheet is teleported without our class: the More content carries `.portal-more` itself (Next `.portal-more .fss-sheet-body`). */
.portal-more-body {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding-bottom: var(--space-4);
}
/* MobileActionBar: the fss-core page header renders `.fss-actionbar[data-fss-actionbar]` without Next's `data-variant="fixed"`. The
   same portal rules as for the fixed bar: it pushes the pay button away, the content gets room for it and floating layers sit above
   it. The bottom bar already carries the safe area, so the action bar does not add it again (Next `--fss-actionbar-safe: 0`). */
@media (max-width: 1023px) {
    html:has(.portal-chrome[data-has-user] [data-fss-actionbar]) {
        --bottom-nav-h: 120px;
    }
    .portal-chrome:has([data-fss-actionbar]) .portal-paybar {
        display: none;
    }
    .portal-chrome.admin-chrome:has([data-fss-actionbar]) > .admin-content {
        padding-bottom: calc(var(--portal-nav-h) + 56px + var(--space-4));
    }
    .portal-chrome [data-fss-actionbar] {
        padding-bottom: var(--space-2);
    }
}
/* Image fallback (portal.js): the placeholder shows once the image failed; a hidden placeholder stays hidden whatever display it sets. */
[data-img-placeholder][hidden],
img[data-img-fallback][hidden] {
    display: none !important;
}
/* nested-cards: nothing inside a card draws its own card.
   An empty state, a table wrapper (Livewire DataTable, `.admin-data-table-wrap`), the mobile card list of a table and a card nested in a
   card render flat, like Next (`EmptyState` in a card, `DataTable variant="plain"`): the ancestor supplies the border, radius and shadow.
   `data-card="true"` is the deliberate escape hatch (as in Next). fss-core's ui.css gives `.admin-empty-state` and `.admin-datatable-wrap`
   their own chrome and Next's opt-out list never covered `.pv-card`, so the list is complete here. tests/Unit/NestedCardsTest.php guards it. */
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card)
    :is(.admin-empty-state, .admin-datatable-wrap, .admin-data-table-wrap, .admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card):not([data-card="true"]),
.admin-empty-state[data-card="false"],
:is(.admin-kpi, .admin-drawer-panel, .admin-modal2-panel)
    :is(.admin-empty-state, .admin-datatable-wrap, .admin-data-table-wrap):not([data-card="true"]) {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card) .fss-datatable .fss-cardlist {
    gap: 0;
}
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card) .fss-datatable .fss-card {
    padding: var(--space-3) 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card) .fss-datatable .fss-card:not([data-selected]) {
    background: none;
}
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card) .fss-datatable .fss-card[data-swipe] {
    padding: 0;
}
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card) .fss-datatable .fss-card:last-child {
    border-bottom: 0;
}
/* A select inside a list row (right side): fixed comfortable width, same height as every field. */
.pv-row-acts .pv-row-select {
    width: 220px;
    max-width: 100%;
}
/* A status badge in a list row never pushes the row wider than the screen. */
/* Overview cards with a list: the list sits flush under the head divider (no empty band, no double line). */
.admin-card[data-flush] > .admin-card-body > .portal-voip-lines,
.pv-subpage.portal-voip .admin-card[data-flush] > .admin-card-body > .portal-voip-lines:not([data-rail]) {
    margin: 0;
}
.admin-card[data-flush] > .admin-card-body > .portal-voip-lines > li:first-child {
    border-top: 0;
}
/* --- Zoeken (⌘K): rustige kop, omlijst zoekveld, "Ik zoek naar"-chips, rijen met een icoon per soort, snel-naar-pillen, toetsenhints --- */
.pq { position: fixed; z-index: 10050; inset: 0; display: grid; align-items: start; justify-items: center; padding: 11vh 16px 16px; }
.pq-backdrop { position: absolute; inset: 0; border: 0; background: color-mix(in srgb, var(--ink) 28%, transparent); backdrop-filter: blur(3px); cursor: default; }
.pq-panel { position: relative; display: flex; flex-direction: column; width: min(620px, 100%); max-height: min(680px, 80vh); overflow: hidden; padding: 18px 20px 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-3); }
@keyframes pq-in { from { opacity: 0; transform: translateY(6px) scale(0.985); } to { opacity: 1; transform: none; } }
.pq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.pq-head h2 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 22px; }
.pq-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius-full); background: var(--control-fill, var(--surface-2)); color: var(--ink-2); cursor: pointer; }
.pq-close:hover { background: var(--control-fill-hover, var(--surface-pressed)); color: var(--ink); }
.pq-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line-field); border-radius: 12px; background: var(--surface); color: var(--ink-3); transition: border-color 0.15s, box-shadow 0.15s; }
.pq-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
.pq-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.pq-field input::-webkit-search-cancel-button { display: none; }
.pq-spinner { width: 14px; height: 14px; border: 2px solid var(--line-field); border-top-color: var(--ink-2); border-radius: var(--radius-full); animation: pq-spin 0.7s linear infinite; }
@keyframes pq-spin { to { transform: rotate(360deg); } }
.pq-label { display: block; margin: 0 0 8px; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.pq-scopes { padding-top: 14px; }
.pq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pq-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-full); background: var(--control-fill, var(--surface-2)); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.pq-chip:hover { background: var(--control-fill-hover, var(--surface-pressed)); color: var(--ink); }
.pq-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.pq-chip-count { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.pq-results { flex: 1; min-height: 0; overflow-y: auto; margin: 10px -12px 0; padding: 4px 12px 8px; overscroll-behavior: contain; }
.pq-intro { margin: 10px 0 4px; color: var(--ink-3); font-size: 13px; }
.pq-group { padding-top: 10px; }
.pq-group .pq-label { margin: 0 0 4px; padding: 0 8px; }
.pq-row { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.pq-row[data-active] { background: var(--surface-2); }
.pq-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }
.pq-icon > span { display: grid; place-items: center; }
.pq-text { display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.pq-text strong { overflow: hidden; flex: none; max-width: 70%; font-size: 14px; font-weight: 500; text-overflow: ellipsis; }
.pq-context { overflow: hidden; color: var(--ink-3); font-size: 13px; text-overflow: ellipsis; }
.pq-context::before { content: "–"; margin-right: 6px; }
.pq-meta { flex: none; color: var(--ink-3); font-size: 12px; }
.pq-enter { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); opacity: 0; }
.pq-row[data-active] .pq-enter { opacity: 1; }
.pq-empty, .pq-note { margin: 14px 8px; color: var(--ink-3); font-size: 13px; }
.pq-quick { padding: 12px 0 16px; border-top: 1px solid var(--line); }
.pq-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-full); background: var(--control-fill, var(--surface-2)); color: var(--ink); font-size: 13px; text-decoration: none; }
.pq-pill:hover { background: var(--control-fill-hover, var(--surface-pressed)); }
.pq-pill svg { color: var(--ink-3); }
.pq-foot { display: flex; gap: 16px; margin: 0 -20px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: 12px; }
.pq-foot kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: 2px; padding: 0 4px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 10px; }
.pq :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pq-field input:focus-visible { outline: none; }
@media (max-width: 640px) {
    .pq { padding: 0; align-items: end; }
    .pq-panel { width: 100%; max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .pq-foot { display: none; }
    .pq-text strong { max-width: 100%; }
    .pq-context { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pq-panel { animation: none; } .pq-spinner { animation-duration: 2s; } }
/* --- Accountmenu (topbalk): identiteit bovenaan, rustige rijen met icoon, groepen met een lijn ertussen, uitloggen in rood --- */
.portal-usermenu.um { flex: none; }
.um-panel { position: absolute; z-index: var(--z-popover); top: calc(100% + 8px); right: 0; width: 288px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-3); transform-origin: top right; }
.um-enter { transition: opacity 0.18s cubic-bezier(.16, 1, .3, 1), transform 0.22s cubic-bezier(.16, 1, .3, 1); }
.um-leave { transition: opacity 0.12s ease-in, transform 0.12s ease-in; }
.um-from { opacity: 0; transform: translateY(-4px) scale(.97); }
.um-to { opacity: 1; transform: none; }
.um-identity { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.um-who { display: flex; flex-direction: column; min-width: 0; }
.um-who strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.um-who small { overflow: hidden; color: var(--ink-3); font-size: 12.5px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.um-group { margin: 0; padding: 4px 0; border-top: 1px solid var(--line); }
.um-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer; transition: background 0.12s, color 0.12s; }
.um-item > span:first-of-type { flex: 1; min-width: 0; }
.um-item svg { flex: none; color: var(--ink-3); transition: color 0.12s; }
.um-item:hover, .um-item:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
.um-item:hover svg, .um-item:focus-visible svg { color: var(--ink); }
.um-static { cursor: default; }
.um-static:hover { background: transparent; color: var(--ink-2); }
.um-static:hover svg { color: var(--ink-3); }
.um-danger, .um-danger svg { color: var(--danger); }
.um-danger:hover, .um-danger:focus-visible { background: var(--danger-bg); color: var(--danger); }
.um-danger:hover svg { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .um-enter, .um-leave { transition: none; } }
/* --- Zijbalk (v6): groepen met een rustige kop en een lijn erboven, compacte rijen met icoon, actief = zacht grijs vlak --- */
.portal-nav { gap: 2px; }
.portal-nav-heading { margin: 14px 12px 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; font-weight: 500; line-height: 16px; }
.portal-nav .portal-nav-link { min-height: 36px; gap: 10px; padding: 0 10px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background 0.12s, color 0.12s; }
.portal-nav .portal-nav-link > svg:first-child { width: 17px; height: 17px; color: var(--ink-3); transition: color 0.12s; }
.portal-nav .portal-nav-link:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.portal-nav .portal-nav-link:hover > svg:first-child { color: var(--ink-2); }
.portal-nav .portal-nav-row[data-active] > .portal-nav-link { background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: none; color: var(--ink); }
.portal-nav .portal-nav-row[data-active] > .portal-nav-link > svg:first-child { color: var(--ink); }
.portal-nav .portal-nav-row[data-active]:has(.portal-nav-sublink[data-active]) > .portal-nav-link { background: none; }
.portal-nav .portal-nav-node { display: none; }
.portal-nav .portal-nav-sub-inner { position: relative; margin: 2px 0 6px 18px; padding-left: 12px; }
.portal-nav .portal-nav-sub-inner::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 1px; background: var(--line); content: ""; }
.portal-nav .portal-nav-sublink { display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; color: var(--ink-3); font-size: 13px; font-weight: 450; text-decoration: none; transition: background 0.12s, color 0.12s; }
.portal-nav .portal-nav-sublink::before { display: none; }
.portal-nav .portal-nav-sublink:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.portal-nav .portal-nav-sublink[data-active] { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font-weight: 500; }
.portal-nav .portal-nav-sublink[data-active]::after { position: absolute; top: 9px; bottom: 9px; left: -12.5px; width: 2px; border-radius: 2px; background: var(--ink); content: ""; }
/* Adres-component (zoeken, samenvatting, handmatig). */
.fss-address { display: grid; gap: var(--space-3); }
.fss-address-row { display: grid; width: 100%; gap: var(--space-4); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.fss-address-row[data-cols="3"] { --cols: 3; }
.fss-address-row[data-cols="1"] { --cols: 1; }
.fss-address-row { align-items: start; }
.fss-address-row > label { margin: 0; }
@media (max-width: 760px) { .fss-address-row { grid-template-columns: minmax(0, 1fr); } }
/* Address field: grid labels must not inherit the stacked-form gap (that rule weighs 0,2,2 via :not([class])),
   and the summary line looks like a regular input so the field does not jump between modes. */
.fss-address .fss-address-row > label:not([class]) { margin: 0; }
.fss-address .fss-address-row { align-items: start; row-gap: var(--field-gap, var(--space-4)); }
/* =====================================================================
   CARD CANON (admin + portal, one anatomy)
   Surface: white, --radius-md, --shadow-1, no border. Inset = --card-pad (density: admin compact 16, portal comfortable 20), also on mobile.
   Head: ONE row, min-height 56, padding 12px --card-pad, hairline divider underneath. Title left (16/600, no icon: title and content share the
   --card-pad line), badge/count/actions right. Body: --card-pad all round. Foot: .admin-card-foot (divider above, actions right).
   Canon markup = <x-fss::card>; .pv-card-head and cards that still carry a bare heading as first child are normalised to it here.
   Not cards (left alone): KPI/stat tiles, dashboard tiles (.admin-today-*), CRM record zones/relationship/holding, billing ageing/months,
   hero/help blocks, banners, drawers, modals.
   ===================================================================== */
:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card):not(#_):not(:is(.admin-card, .pv-card, .admin-wide-card, .admin-workspace-panel, .admin-passkey-card) *) {
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.admin-card:not([data-structured]):not(.pv-card):not(.admin-today-money, .admin-today-mrr, .admin-today-worklist, .admin-today-board, .admin-today-revenue, .crm-record-zone, .crm-relationship, .crm-holding, .billing-ageing, .billing-months),
.admin-wide-card:not([data-structured]):not(.pv-card):not(.admin-card),
.admin-passkey-card:not([data-structured]) {
    padding: var(--card-pad, var(--space-5));
}
.admin-card:not([data-structured]):not(.pv-card):not(.admin-today-money, .admin-today-mrr, .admin-today-worklist, .admin-today-board, .admin-today-revenue, .crm-record-zone, .crm-relationship, .crm-holding, .billing-ageing, .billing-months) > :is(.admin-card-heading, .admin-section-toolbar, .admin-card-head, h2, h3):first-child,
.admin-passkey-card:not([data-structured]) > :is(.admin-card-heading, .admin-section-toolbar, .admin-card-head, h2, h3):first-child {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
    box-sizing: border-box;
    min-height: 56px;
    margin: calc(-1 * var(--card-pad, var(--space-5))) calc(-1 * var(--card-pad, var(--space-5))) var(--card-pad, var(--space-5));
    padding: var(--space-3) var(--card-pad, var(--space-5));
    border-bottom: 1px solid var(--line);
}
.admin-card:not([data-structured]) > :is(h2, h3):first-child {
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    line-height: 24px;
}
:is(.admin-card-head, .pv-card-head, .admin-section-toolbar, .admin-card-heading) :is(h2, h3) {
    margin: 0;
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    line-height: 24px;
}
/* no icon in a card head: the title starts on the content line */
.admin-card-head .admin-card-heading > svg:first-child,
.admin-card-head > svg:first-child,
.admin-section-toolbar > svg:first-child,
.admin-card > .admin-card-heading > svg:first-child,
.admin-card:not([data-structured]) > .admin-section-toolbar .admin-card-heading > svg:first-child {
    display: none;
}
/* Section title inside a card body or form (several sections in one card, no card head): same size as a card title, on the content line. */
/* Same head, when the card is one form and the heading is the form's first child. */
.admin-card:not([data-structured]):not(.pv-card):not(.admin-today-money, .admin-today-mrr, .admin-today-worklist, .admin-today-board, .admin-today-revenue, .crm-record-zone, .crm-relationship, .crm-holding, .billing-ageing, .billing-months) > form:first-child > :is(.admin-card-heading, .admin-section-toolbar, h2, h3):first-child {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
    box-sizing: border-box;
    min-height: 56px;
    margin: calc(-1 * var(--card-pad, var(--space-5))) calc(-1 * var(--card-pad, var(--space-5))) var(--card-pad, var(--space-5));
    padding: var(--space-3) var(--card-pad, var(--space-5));
    border-bottom: 1px solid var(--line);
}
.admin-card:not([data-structured]) > form:first-child > :is(h2, h3):first-child {
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    line-height: 24px;
}
.admin-card > form:first-child > .admin-card-heading > svg:first-child {
    display: none;
}
/* Same head, when the heading follows the hidden inputs (csrf, section) of a form that makes up the card. */
.admin-card:not([data-structured]):not(.pv-card):not(.admin-today-money, .admin-today-mrr, .admin-today-worklist, .admin-today-board, .admin-today-revenue, .crm-record-zone, .crm-relationship, .crm-holding, .billing-ageing, .billing-months) > form:first-child > :is(.admin-card-heading, .admin-section-toolbar, h2, h3):is(input[type="hidden"] + *, input[type="hidden"] + input[type="hidden"] + *) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
    box-sizing: border-box;
    min-height: 56px;
    margin: calc(-1 * var(--card-pad, var(--space-5))) calc(-1 * var(--card-pad, var(--space-5))) var(--card-pad, var(--space-5));
    padding: var(--space-3) var(--card-pad, var(--space-5));
    border-bottom: 1px solid var(--line);
}
.admin-card:not([data-structured]) > form:first-child > :is(h2, h3):is(input[type="hidden"] + *, input[type="hidden"] + input[type="hidden"] + *) {
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    line-height: 24px;
}
.admin-card > form:first-child > .admin-card-heading:is(input[type="hidden"] + *, input[type="hidden"] + input[type="hidden"] + *) > svg:first-child {
    display: none;
}
/* SMS page cards (2026-10-21).
   Lists directly under a card head start flush: no extra top margin and no rounded group header under the divider. */
.admin-card[data-flush] > .admin-card-body > .pv-rows { margin-top: 0; }
.admin-card-head ~ .admin-card-body .pv-rows > .pv-row-group:first-child { border-radius: 0; }
.admin-card-head ~ .admin-card-body .pv-rows > .pv-row-group { background: var(--surface); }
/* A row without status or figure gives its space to the title instead of reserving two empty columns. */
.pv-row:has(> .pv-row-vis:empty):has(> .pv-row-fig:empty) { grid-template-columns: 32px minmax(0, 1fr) auto; }
.pv-row:has(> .pv-row-vis:empty):has(> .pv-row-fig:empty) > :is(.pv-row-vis, .pv-row-fig) { display: none; }
/* Scheduled messages: a calendar date chip, then what goes out and to whom, then a quiet cancel. */
.sms-sched { margin: 0; padding: 0; list-style: none; }
.sms-sched-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: 14px var(--card-pad); border-top: 1px solid var(--line); }
.sms-sched-item:first-child { border-top: 0; }
.sms-sched-date { display: grid; width: 48px; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.sms-sched-month { padding: 3px 0 2px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: var(--font-semibold); line-height: 14px; }
.sms-sched-day { padding: 3px 0 5px; color: var(--ink); font-size: 18px; font-weight: var(--font-semibold); line-height: 22px; }
.sms-sched-main { display: grid; min-width: 0; gap: 2px; }
.sms-sched-meta { display: flex; gap: 6px; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.sms-sched-meta > span:has(+ span)::after { content: ","; }
.sms-sched-title { overflow: hidden; color: var(--ink); font-size: 14.5px; font-weight: var(--font-medium); line-height: 20px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.sms-sched-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.sms-sched-sub { overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.sms-sched-cancel { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 13px; }
.sms-sched-cancel:hover { background: color-mix(in srgb, var(--danger, #c0392b) 8%, transparent); color: var(--danger-ink, var(--danger, #b42318)); }
.sms-sched-cancel:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 1px; }
.sms-sched-cancel:disabled { cursor: default; opacity: .5; }
@media (max-width: 520px) { .sms-sched-cancel span { display: none; } }
/* SMS terms: the points on screen, a consent row that reads as one clickable choice, version beside the action. */
.portal-sms-terms .sms-terms-intro { margin: 0 0 var(--space-4); color: var(--ink-2); }
.sms-terms-points { display: grid; gap: 10px; margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.sms-terms-points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink); font-size: 14px; line-height: 20px; }
.sms-terms-points svg { width: 20px; height: 20px; padding: 3px; border-radius: var(--radius-full); background: var(--surface-2); color: var(--ink-2); }
.portal-sms-terms label.sms-terms-consent { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-2); cursor: pointer; font-size: 14px; line-height: 20px; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.portal-sms-terms label.sms-terms-consent:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.portal-sms-terms label.sms-terms-consent[data-checked] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.portal-sms-terms label.sms-terms-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.sms-terms-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.sms-terms-version { color: var(--ink-3); font-size: 12.5px; }
/* Search and filters belong inside their card, laid out like the DataTable controls: search first, filters next to it. */
:is(.pv-card, .admin-card-body, .pv-card > .pv-scope) > .pv-toolbar > .pv-search-field { order: -1; }
:is(.pv-card, .admin-card-body, .pv-card > .pv-scope) > .pv-toolbar { justify-content: flex-start; padding: 16px var(--card-pad) 12px; }
:is(.pv-card, .admin-card-body, .pv-card > .pv-scope) > .pv-toolbar > span:empty { display: none; }
:is(.pv-card, .admin-card-body, .pv-card > .pv-scope) > .pv-toolbar { border-bottom: 1px solid var(--line); }
:is(.pv-card, .admin-card-body, .pv-card > .pv-scope) > .pv-toolbar ~ .pv-rows { margin-top: 0; }
/* A one-line banner (no title) centres its text, icon and action on one line instead of top-aligning the text. */
.admin-banner:not(:has(.admin-banner-title)) { align-items: center; }
/* A closed submenu takes no space: its inner margins only apply when the group is open (Websites/Telefonie stood 8px further apart). */
.portal-nav .portal-nav-row:not([data-open]) .portal-nav-sub-inner { margin-top: 0; margin-bottom: 0; }
/* Billing card (2026-10-21): built on the DataTable card (toolbar, chips, count, then table) with invoice specifics. */
.portal-billing-card .pv-bill-table th[data-align="right"] { text-align: right; }
.portal-billing-card .pv-bill-table th:first-child, .portal-billing-card .pv-bill-table td:first-child { width: 128px; }
.portal-billing-card .pv-bill-table th:nth-child(3), .portal-billing-card .pv-bill-table td:nth-child(3) { width: 240px; }
.portal-billing-card .pv-bill-table th:nth-child(4), .portal-billing-card .pv-bill-table td:nth-child(4) { width: 120px; }
.portal-billing-card .pv-bill-table th:last-child, .portal-billing-card .pv-bill-table td:last-child { width: 156px; }
.portal-billing-card .pv-bill-row[data-linked] { cursor: pointer; }
.portal-billing-card .pv-bill-number { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.portal-billing-card .pv-bill-title { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: var(--font-medium); text-align: left; cursor: pointer; }
.portal-billing-card .pv-bill-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.portal-billing-card .pv-bill-amount { display: grid; justify-items: end; line-height: 1.25; white-space: nowrap; }
.portal-billing-card .pv-bill-amount b { font-weight: var(--font-semibold); }
.portal-billing-card .pv-bill-amount small { color: var(--ink-3); font-size: 12px; }
.portal-billing-card .pv-bill-row[data-state="paid"] .pv-bill-amount b,
.portal-billing-card .pv-bill-row[data-expected] .pv-bill-amount b,
.portal-billing-card .pv-bill-card[data-state="paid"] .pv-bill-amount b,
.portal-billing-card .pv-bill-card[data-expected] .pv-bill-amount b { color: var(--ink-2); font-weight: var(--font-medium); }
.portal-billing-card .pv-bill-row[data-expected] strong { color: var(--ink-2); }
.portal-billing-card .pv-bill-row .pv-row-acts { align-items: center; gap: 6px; justify-content: flex-end; }
.portal-billing-card .pv-inv-vis { display: flex; align-items: center; gap: 10px; }
.portal-billing-card .pv-inv-when { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.portal-billing-card .pv-inv-when[data-tone="danger"] { color: var(--danger); }
.portal-billing-card .pv-bill-group :is(th, b) { font-weight: var(--font-semibold); }
.portal-billing-card .pv-bill-group > th { padding: 9px 12px 9px 20px; }
.portal-billing-card .pv-bill-group > th > :is(b, span) { display: inline-block; }
.portal-billing-card .pv-bill-group > th > span { float: right; color: var(--ink-3); font-weight: var(--font-regular, 400); }
.portal-billing-card li.pv-bill-group { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 6px; color: var(--ink-3); font-size: 12.5px; }
.portal-billing-card li.pv-bill-group > b { color: var(--ink-2); }
.portal-billing-card .pv-est-date { display: inline-block; padding: 2px 8px; border: 1px dashed color-mix(in srgb, var(--ink-3) 50%, transparent); border-radius: 6px; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.portal-billing-card .pv-bill-card-foot { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.portal-billing-card .pv-bill-card .fss-card-title { overflow: visible; white-space: normal; }
.portal-billing-card .fss-datatable[data-cards] .admin-datatable-toolbar > .admin-datatable-filter { display: flex; }
@media (max-width: 767px) { .portal-billing-card .admin-datatable-toolbar > .admin-datatable-filter { display: flex !important; flex: 1 1 100%; } }
.portal-billing-card .pv-bill-card .fss-card-subtitle { grid-row: 2; }
/* SMS terms: one rhythm inside the card (the generic card body adds 12px between children, which glued the list to the consent box). */
.admin-card.portal-sms-terms .admin-card-body { display: grid; gap: 16px; }
.admin-card.portal-sms-terms .admin-card-body > * { margin: 0; }
.admin-card.portal-sms-terms .admin-card-body > .sms-terms-points { margin-bottom: 4px; }
.admin-card.portal-sms-terms .sms-terms-points li { color: var(--ink-2); }
.admin-card.portal-sms-terms .admin-card-body > .sms-terms-foot { margin-top: 4px; }
/* Websites (plan `portal-websites-content`, phase 1): one page per website with the site header, task tabs, chips and the attention card. */
.pv-site-head-fav { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-3); overflow: hidden; }
.pv-site-head-fav img { width: 20px; height: 20px; object-fit: contain; }
.pv-site-head-domain { min-width: 0; overflow: hidden; color: var(--ink-3); font-size: var(--text-sm); text-overflow: ellipsis; white-space: nowrap; }
.pv-site-head-open { gap: 6px; }
.pv-site-nav { display: grid; gap: 12px; min-width: 0; }
.pv-site-nav > * { min-width: 0; }
.pv-site-third { margin-top: -4px; }
.pv-site-section-head { display: grid; gap: var(--space-1); }
.pv-site-section-head h2 { margin: 0; font-size: var(--text-md); font-weight: var(--font-semibold); color: var(--ink); }
.pv-site-section-head p { margin: 0; color: var(--ink-3); font-size: var(--text-sm); }
.pv-site-grid { display: grid; gap: var(--space-4); align-items: start; min-width: 0; }
.pv-site-grid > * { min-width: 0; }
@media (min-width: 1024px) {
    .pv-site-grid:not([data-solo]) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .pv-site-grid[data-even]:not([data-solo]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pv-attention-slot { display: inline-flex; min-width: 0; }
.pv-attention-more { color: inherit; opacity: .75; }
@media (max-width: 640px) {
    .pv-site-head-open-label { display: none; }
    .pv-site-head-domain { flex-basis: 100%; }
    
    
    
}
/* Content rich-text editor (public/js/content.js): a calm editing surface that reads like the article on a website. */
/* Language chips: flag, name, status dot (components/flag.blade.php). */
.fss-flag {
    display: inline-block;
    flex: none;
    border-radius: 2px;
    vertical-align: -2px;
}
.portal-content-lang-chip .portal-content-lang-dot {
    margin-left: 2px;
}
.portal-content-lang-status {
    color: var(--ink-3);
    font-size: var(--text-xs);
}
.portal-content-lang-chip .portal-content-lang-name {
    color: inherit;
}
/* ---- Content SEO (/websites/{p}/seo): live preview, basics, advanced folded away, sitemap ---------------------------------- */
.pv-seo { display: grid; gap: var(--space-4); }
.pv-seo-preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: var(--space-4);
    padding: var(--card-pad);
}
.pv-seo-serp, .pv-seo-share { min-width: 0; }
.pv-seo-preview figure { display: grid; gap: var(--space-2); min-width: 0; margin: 0; align-content: start; }
.pv-seo-preview figcaption { color: var(--ink-3); font-size: var(--text-caption, 12px); font-weight: var(--font-medium); }
/* Both previews mimic the real thing, so they keep a light surface in either theme. */
.pv-seo-serp-result,
.pv-seo-share-card {
    border: 1px solid #e3e3e0;
    border-radius: 12px;
    background: #fff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
}
.pv-seo-serp-result { display: grid; gap: 4px; padding: 16px 18px; }
.pv-seo-serp-site { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; line-height: 18px; }
.pv-seo-serp-site > span:last-child { display: grid; min-width: 0; }
.pv-seo-serp-site strong { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.pv-seo-serp-dot {
    display: grid;
    width: 26px;
    height: 26px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 12px;
    font-weight: 700;
}
.pv-seo-serp-url { overflow: hidden; color: #4d5156; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pv-seo-preview .pv-seo-serp-title { margin: 6px 0 0; overflow-wrap: anywhere; color: #1a0dab; font-size: 20px; line-height: 26px; }
.pv-seo-preview .pv-seo-serp-desc { margin: 0; color: #4d5156; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.pv-seo-serp-desc:empty::before,
.pv-seo-share-text > span:empty::before { content: '—'; color: #9aa0a6; }
.pv-seo-share-card { overflow: hidden; }
.pv-seo-share-img {
    display: grid;
    aspect-ratio: 1.91 / 1;
    place-items: center;
    background: #f1f3f4;
    color: #5f6469;
    font-size: 13px;
}
.pv-seo-share-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-seo-share-img > span { display: inline-flex; align-items: center; gap: 6px; }
.pv-seo-share-text { display: grid; gap: 2px; padding: 10px 14px 12px; border-top: 1px solid #e3e3e0; font-size: 13px; line-height: 18px; }
.pv-seo-share-host { color: #65676b; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.pv-seo-share-text strong { color: #050505; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.pv-seo-share-text > span:last-child { color: #65676b; overflow-wrap: anywhere; }
.pv-seo-note { margin: 0; padding: 0 var(--card-pad) var(--card-pad); }
.pv-seo-form { display: grid; gap: var(--space-4); padding: var(--card-pad); }
.pv-seo-form > p { margin: 0; }
.pv-seo-form label small.pv-seo-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.pv-seo-count > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-seo-count > span[data-long] { color: var(--warning); }
.pv-seo-image { display: grid; gap: 6px; }
.pv-seo-image-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pv-seo-image small { color: var(--ink-3); font-size: 13px; }
.pv-seo-advanced > .pv-seo-form { padding-top: var(--space-4); }
.pv-seo-advanced-hint { max-width: 68ch; color: var(--ink-2); font-size: 13.5px; line-height: 20px; }
.pv-seo-unsaved { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; }
.pv-seo-unsaved > span { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.pv-seo-sitemap-banner { padding: 12px var(--card-pad) 0; }
.pv-seo-sitemap-find { padding: 12px var(--card-pad) 4px; }
@media (max-width: 760px) {
    .pv-seo-preview-body { grid-template-columns: minmax(0, 1fr); }
    
    
}
/* ---- Content redirects (/websites/{p}/redirects): tester, "old → new" rows, type as a readable choice ---------------------- */
.pv-redir-path code,
.pv-redir-preview code {
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.pv-redir {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 12px var(--card-pad);
    border-bottom: 1px solid var(--line);
}
.pv-redir:last-child { border-bottom: 0; }
.pv-redir-main { display: grid; min-width: 0; flex: 1; gap: 6px; }
.pv-redir-main p { margin: 0; }
.pv-redir-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); }
.pv-redir-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-redir-kind {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    color: var(--ink-2);
    font-size: 12px;
    line-height: 18px;
}
.pv-redir-kind[data-permanent="true"] { border-color: transparent; background: var(--surface-2); color: var(--ink); }
.pv-redir-actions { display: flex; flex: none; align-items: center; gap: 2px; }
.pv-redir-delete:hover { color: var(--danger); }
.pv-redir-preview { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 26px; }
.pv-redir-kinds { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pv-redir-kinds legend { margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: var(--font-medium); }
.admin-form .pv-redir-kinds label.pv-redir-kind-option, .pv-redir-kind-option {
    flex-direction: row;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.pv-redir-kind-option:has(input:checked) { border-color: var(--ink); }
.pv-redir-kind-option:has(input:focus-visible) { outline: 2px solid var(--focus-ring-color, var(--ink)); outline-offset: 2px; }
.pv-redir-kind-option input { margin-top: 3px; flex: none; }
.pv-redir-kind-option > span { display: grid; gap: 2px; }
.pv-redir-kind-option strong { font-size: 14px; font-weight: var(--font-medium); }
.pv-redir-kind-option small { color: var(--ink-3); font-size: 13px; line-height: 18px; }
.pv-redir-code { margin-left: 4px; color: var(--ink-3); font-weight: var(--font-regular); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .pv-redir { align-items: flex-start; }
    
}
/* ---- Content polish: editors, forms and cards (portal-content-polish) -------------------------------------------------------- */
.portal-content-narrow { display: grid; gap: var(--space-3); max-width: 640px; min-width: 0; }
/* The editor action bar (status, Versies, Opslaan) stays at the top while scrolling. */
.portal-content-editor > .portal-content-editor-bar {
    position: sticky;
    top: var(--fss-sticky-top, 0px);
    z-index: 4;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
/* Path field with a leading "/" and the full address under it. */
.portal-content-slug { display: flex; align-items: stretch; min-width: 0; }
.portal-content-slug-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--space-3);
    border: 1px solid var(--line-field, var(--line));
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink-3);
    font-family: var(--font-mono, monospace);
}
.portal-content-slug > input { min-width: 0; flex: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.portal-content-slug-preview { color: var(--ink-2); overflow-wrap: anywhere; }
/* Character counters under SEO fields. */
.portal-content-count, label small.portal-content-count:not(#_) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--ink-3); }
.portal-content-count > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-content-count > span[data-long] { color: var(--warning); }
/* "Blok toevoegen": a full-width dashed button after the last block. */
.portal-content-addblock .fss-menu-host,
.portal-content-addblock .fss-menu-host > span { display: block; width: 100%; }
.portal-content-addblock-button.admin-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border: 1px dashed var(--line-strong, var(--line));
    background: transparent;
    color: var(--ink-2);
}
.portal-content-addblock-button.admin-btn:hover:not(:disabled) { border-color: var(--ink-3); background: var(--surface-2); color: var(--ink); }
/* Cookie settings: fields next to a live preview of the banner. */
.portal-content-privacy-grid { display: grid; gap: var(--space-5, 24px); align-items: start; }
@media (min-width: 1100px) { .portal-content-privacy-grid { grid-template-columns: minmax(0, 640px) minmax(280px, 1fr); } }
.portal-content-banner-preview { display: grid; gap: var(--space-2); min-width: 0; }
@media (min-width: 1100px) { .portal-content-banner-preview { position: sticky; top: calc(var(--fss-sticky-top, 0px) + var(--space-4)); } }
.portal-content-banner-preview-label { color: var(--ink-3); font-size: var(--text-xs); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.portal-content-banner {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
    color: var(--ink);
}
.portal-content-banner > p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); overflow-wrap: anywhere; white-space: pre-line; }
.portal-content-banner-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.portal-content-banner-button {
    padding: 6px 12px;
    border: 1px solid var(--line-strong, var(--line));
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
}
.portal-content-banner-button[data-primary] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
/* Search fields whose wrapper draws the focus state (:focus-within): the input inside draws no second ring (it doubled up). */
:is(.pv-find-field, .portal-kb-search, .pq-field, .fss-combobox-control) input:focus-visible { box-shadow: none; }
/* --- fss-core component shims (WP2): x-pv.row, x-pv.metric, x-pv.meter and x-pv.phases render the fss-core components --- */
/* A row in `ul.pv-rows` is an `.fss-row`: the first one has no top line (fss-core does this for `ul.fss-rows`). */
.pv-rows > .fss-row:first-child { border-top: 0; }
/* A portal-only icon is handed to the row as its lead (see components/pv/row): give it the tile of an fss-core icon lead. */
/* Rows without a link ("plain": tickets, mailboxes): the title and the sub line wrap instead of being cut off. */
.fss-row[data-variant="plain"] :is(.fss-row-title, .fss-row-sub) { white-space: normal; }
/* Hand-made metric tiles that have not moved to x-pv.metric yet look like the fss-core tile they sit next to. */
.pv-metric { min-height: 112px; padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-1); }
/* --- Chrome on fss-core components (WP2) --- */
/* Account menu: the language and motion rows carry an fss-core segmented control and switch at their end. */
.um-static > :is(.admin-segmented, .admin-switch-field) { margin-left: auto; }
.um-static > .admin-switch-field { flex: none; }
.um-identity .fss-avatar { flex: none; }
/* A meter in the status column of a row (mailbox usage): the column has no width of its own. */
.fss-row-status > .fss-meter-wrap { width: 120px; }
/* switch used by the domain and number rows (not the chrome) */
/* Onboarding wizard: one step at a time, fields stacked. */
.portal-onboarding-step { display: grid; gap: var(--space-4); }
/* Number rows (x-pv.row) are fss-core rows: the recording switch sits inline in their actions, like in the pv-row version (voip-parity.css). */
.pv-subpage.portal-voip .fss-row-acts { align-items: center; }
.fss-row-acts .portal-voip-recswitch { width: auto; min-height: var(--control-sm); padding: 0 var(--space-2); border-top: 0; border-radius: var(--radius-sm); white-space: nowrap; }
/* Lime on light surfaces (ADR 0029): lime is a small fill with an ink ring, never a line, border or glow. Drag edges and selection
   rings are ink, brand stripes and progress fills are --brand-ink, the avatar is --accent-soft. The .portal-chrome prefix lets a rule
   beat a page stylesheet that loads later (content-planning.css). */
.portal-contacts-drop[data-dragging] {
    box-shadow: inset 0 0 0 1.5px var(--selection-ink);
}
.portal-voip-tts-voice[data-selected] {
    box-shadow: inset 0 0 0 2px var(--selection-ink);
}
.portal-auto-var-preview {
    border-left-color: var(--brand-ink);
}
.po-overview .po-day-now {
    background: var(--brand-ink);
}
.fss-rail-node.portal-nav-node {
    box-shadow: inset 0 0 0 1px var(--selection-ink);
}
.po-overview .po-btn-dot::before,
.portal-chrome .portal-appt-days li[data-today] > strong::after,
.admin-empty-state-node,
.admin-page-header-next-node,
.portal-voip-tts-voice-check,
.admin-switch-input:checked + .admin-switch-track {
    box-shadow: inset 0 0 0 1.5px var(--selection-ink);
}
.portal-chrome .portal-events-checkin-bar > span {
    background: var(--brand-ink);
}
.portal-chrome .portal-content-newsletter-progress progress {
    accent-color: var(--brand-ink);
}

/* Stacko sheet on a phone ends above the portal bottom bar (fss-core v0.99.1 only knows `.fss-bnav`; the portal bar is `.portal-bnav`).
   The panel sits outside `.portal-chrome` (@persist), so it cannot inherit `--portal-nav-h`: the same height is repeated here. */
@media (max-width: 640px) {
    :root:has(.portal-chrome[data-has-user] .portal-bnav) .fss-assistant-panel {
        --portal-stacko-bar: calc(64px + env(safe-area-inset-bottom, 0px));
        bottom: var(--portal-stacko-bar);
        height: min(86dvh, 720px, calc(100dvh - var(--portal-stacko-bar) - var(--space-4)));
        padding-bottom: 0;
    }
}

/* Design G (plan P2): the open-invoice count sits at the end of the Facturen item of the flat sidebar. */
.portal-nav .portal-nav-count { margin-left: auto; }

/* The Stacko button of the top bar never wraps; below 1280 px only its icon shows (rule above). */

/* Coupons on Facturen (plan coupons, task 11) */
.portal-coupon-success { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); border: 1px solid var(--success); border-radius: 8px; background: var(--success-bg); }
.portal-coupon-success-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--success); color: #fff; }
.portal-coupon-success p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.portal-coupon-new { background: var(--success-bg); }
.portal-coupon-error { margin: 0; color: var(--danger); font-size: 0.875rem; }
.portal-coupon-provisional { color: var(--ink-3); }

/* Coupons page: redeem card + tables (ink lines on light surfaces, ADR 0029). */
.portal-coupons { display: grid; gap: var(--space-4); }
.portal-coupon-redeem { padding-block: var(--space-6); outline: 1px dashed var(--line); outline-offset: -8px; }
.portal-coupon-redeem-body { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-2) var(--space-3); }
@media (min-width: 900px) { .portal-coupon-redeem-body { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: var(--space-8); } }
.portal-coupon-redeem-head { display: flex; gap: var(--space-4); align-items: center; }
.portal-coupon-redeem-head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.portal-coupon-redeem-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 0.875rem; line-height: 1.45; }
.portal-coupon-redeem-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.portal-coupon-form { margin: 0; display: grid; gap: var(--space-2); }
.portal-coupon-inline { display: flex; gap: var(--space-2); align-items: stretch; }
.portal-coupon-input { flex: 1; min-width: 0; height: 52px; padding-inline: var(--space-4); font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.portal-coupon-input::placeholder { color: var(--ink-3); letter-spacing: 0; text-transform: none; font-family: inherit; }
.portal-coupon-inline > button { flex: none; height: 52px; padding-inline: var(--space-6); }
.portal-coupon-blocked { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.portal-coupon-name { font-weight: 600; }
.portal-coupon-left { display: grid; gap: 4px; min-width: 12rem; }
.portal-coupon-dash { color: var(--ink-3); }
.portal-coupon-past > summary { margin-bottom: var(--space-3); }
@media (max-width: 480px) { .portal-coupon-inline { flex-direction: column; } .portal-coupon-inline > button { width: 100%; } }
.portal-coupon-left--card { grid-column: 1 / -1; min-width: 0; margin-top: var(--space-2); }

/* Membership badge placement (x-membership-badge): next to a name, never squeezing it. The badge itself never shrinks (fss-core sets flex: none). */
.portal-name-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-2);
}
.portal-name-row > strong {
    min-width: 0;
}

/* FullStack Direct / Gesprekken (settings page). */

/* FullStack Direct / Gesprekken: the messenger (list + thread + composer). Port of the admin inbox; >= 1024 px list and thread side by side, below the
   list OR (data-open) the thread full screen with a back button. */
.pv-inbox-body {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    height: clamp(480px, calc(100dvh - 20rem), 920px);
    margin-top: var(--space-4);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.pv-inbox-pane {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}
.pv-inbox-pane--list {
    border-right: 1px solid var(--line);
}
.pv-inbox-pane > [wire\:id],
.pv-inbox-pane > div {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.pv-inbox-list {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.pv-inbox-list-search {
    flex: none;
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
}
.pv-inbox-list-search input[type="search"] {
    width: 100%;
}
.pv-inbox-filters {
    display: grid;
    gap: var(--space-2);
}
.pv-inbox-filter-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.pv-inbox-filter-row > label {
    min-width: 0;
    flex: 1 1 auto;
}
.pv-inbox-panel {
    display: grid;
    gap: var(--space-2);
    max-height: 40vh;
    padding: var(--space-3);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.pv-inbox-toolbar {
    flex: none;
    border-bottom: 1px solid var(--line);
}
.pv-inbox-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime, #c7ff4a);
    box-shadow: 0 0 0 1px var(--ink-3);
}
.pv-inbox-check,
.pv-inbox-panel label.pv-inbox-check.pv-inbox-check.pv-inbox-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-2);
}
.pv-inbox-inline-form {
    display: flex;
    align-items: end;
    gap: var(--space-2);
}
.pv-inbox-inline-form > label {
    flex: 1 1 auto;
}
.pv-inbox-state {
    margin: var(--space-3);
}
.pv-inbox-rows {
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}
.pv-inbox-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    color: inherit;
    text-decoration: none;
}
.pv-inbox-row:hover {
    background: var(--control-fill-hover, var(--control-fill));
}
.pv-inbox-row[data-active] {
    background: var(--control-fill, rgba(127, 127, 127, 0.12));
}
.pv-inbox-row-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.pv-inbox-row-head,
.pv-inbox-row-preview {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-2);
}
.pv-inbox-row-name {
    overflow: hidden;
    color: var(--ink);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pv-inbox-row-time {
    margin-left: auto;
    padding-left: var(--space-2);
    color: var(--ink-3);
    font-size: var(--text-sm, 13px);
    white-space: nowrap;
}
.pv-inbox-row-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--ink-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pv-inbox-row-mine {
    color: var(--ink-3);
}
.pv-inbox-row-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--lime, #c7ff4a);
    color: var(--night, #14161a);
    font-size: var(--text-xs, 12px);
    font-weight: 600;
}
.pv-inbox-row-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
}
.pv-inbox-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.pv-inbox-more {
    display: flex;
    justify-content: center;
    padding: var(--space-3);
}
.pv-inbox-thread {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.pv-inbox-thread-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.pv-inbox-thread-empty {
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    padding: var(--space-6);
}
.pv-inbox-thread-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--line);
}
.pv-inbox-thread-who {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.pv-inbox-thread-name {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pv-inbox-thread-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    color: var(--ink-3);
    font-size: var(--text-sm, 13px);
}
.pv-inbox-contact {
    color: var(--ink-3);
}
.pv-inbox-back {
    display: none;
    width: 44px;
    height: 44px;
    flex: none;
    align-items: center;
    justify-content: center;
    margin-left: calc(var(--space-2) * -1);
    border-radius: var(--radius-md);
    color: var(--ink);
    text-decoration: none;
}
.pv-inbox-back:hover {
    background: var(--control-fill);
}
.pv-inbox-actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px var(--space-2);
    padding: var(--space-1) var(--space-4);
}
.pv-inbox-export {
    margin-left: auto;
    font-size: var(--text-sm, 13px);
}
.pv-inbox-chat {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.pv-inbox-chat .fss-thread {
    min-height: 0;
    flex: 1 1 auto;
    gap: 0;
}
.pv-inbox-chat .fss-thread-log {
    min-height: 0;
    flex: 1 1 auto;
    max-height: none;
    padding: var(--space-4);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* A thread is re-rendered as a whole (opening a conversation, a poll, a realtime refresh): fss-core's `fss-rise` entry of every message
       (`animation: fss-rise var(--dur-base)`, from opacity 0) then makes the bubbles flash in washed-out and a frame captured mid-animation
       (or in a tab that was not painting) stays pale. No entry animation in the thread: the custom property only feeds that animation here. */
    --dur-base: 0s;
}
.pv-inbox-reply {
    flex: none;
    max-height: 65%;
    overflow-y: auto;
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.pv-inbox-reply-form textarea {
    min-height: 0;
    resize: none;
}
.pv-inbox-reply-form {
    gap: var(--space-2);
}
.pv-inbox-window {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: var(--ink-3);
    font-size: var(--text-sm, 13px);
}
.pv-inbox-counter {
    margin: 0;
    color: var(--ink-3);
    font-size: var(--text-sm, 13px);
    text-align: right;
}
.pv-inbox-counter[data-over] {
    color: var(--danger, #b42318);
}
.pv-inbox-system {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-2) 0;
    color: var(--ink-3);
    font-size: var(--text-sm, 13px);
    list-style: none;
    text-align: center;
}
.pv-inbox-history-note span {
    padding: 2px var(--space-2);
    opacity: 0.85;
}
.pv-inbox-template-chip {
    color: var(--ink-3);
}
.pv-inbox-templatepicker {
    margin-top: var(--space-2);
}
.pv-inbox-templatepicker-form {
    display: grid;
    gap: var(--space-2);
}
.pv-inbox-templatepicker-cat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}
.pv-inbox-templatepicker-cat small,
.pv-inbox-templatepicker-label {
    color: var(--ink-3);
    font-size: var(--text-sm, 13px);
}
.pv-inbox-templatepicker-preview {
    display: grid;
    gap: 2px;
}
.pv-inbox-template-text {
    margin: 2px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.pv-inbox-newchat {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
/* "Nieuw gesprek": pick a person from the address book (search as you type) instead of typing a number. */
.portal-inbox-pick {
    display: grid;
    gap: var(--space-2);
}
.portal-inbox-pick-list {
    display: grid;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    list-style: none;
}
.portal-inbox-pick-item {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3);
}
.portal-inbox-pick-item + .portal-inbox-pick-item {
    border-top: 1px solid var(--line);
}
.portal-inbox-pick-who {
    display: grid;
    min-width: 0;
    gap: 1px;
    font-size: 14px;
}
.portal-inbox-pick-who > span {
    color: var(--ink-2, var(--ink));
    font-size: 13px;
}
.portal-inbox-pick-phones {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-inbox-pick-phone {
    min-height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.portal-inbox-pick-phone:hover {
    border-color: var(--ink-3, var(--muted));
}
.portal-inbox-pick-phone:focus-visible {
    outline: 2px solid var(--focus-ring-color, var(--ink));
    outline-offset: 2px;
}
/* WhatsApp formatting (App\Support\Inbox\WhatsAppFormat) inside bubbles (.pv-wa wrapper) and template previews. */
.pv-wa code,
.pv-inbox-template-text code {
    padding: 0 0.25em;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, currentColor 10%, transparent);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.92em;
}
.pv-wa code.pv-wa-mono,
.pv-inbox-template-text code.pv-wa-mono {
    display: block;
    margin: 2px 0;
    padding: 4px 8px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.pv-wa blockquote,
.pv-inbox-template-text blockquote {
    margin: 2px 0;
    padding: 0 0 0 8px;
    border-left: 3px solid color-mix(in srgb, currentColor 30%, transparent);
}
.pv-wa ul,
.pv-wa ol,
.pv-inbox-template-text ul,
.pv-inbox-template-text ol {
    margin: 2px 0;
    padding-left: 1.4em;
}
@media (max-width: 1023px) {
    .pv-inbox-body {
        display: block;
        height: auto;
        min-height: 60dvh;
    }
    .pv-inbox-pane--list {
        border-right: 0;
    }
    .pv-inbox-rows {
        max-height: none;
    }
    .pv-inbox-page[data-open] .pv-inbox-pane--list {
        display: none;
    }
    .pv-inbox-page[data-open] .pv-inbox-pane--thread {
        position: fixed;
        z-index: calc(var(--z-overlay, 100) + 5);
        top: var(--inbox-vvt, 0px);
        right: 0;
        left: 0;
        display: flex;
        height: var(--inbox-vvh, 100dvh);
        background: var(--bg, var(--surface));
    }
    .pv-inbox-pane:not(.pv-inbox-pane--list) {
        display: none;
    }
    .pv-inbox-page[data-open] .pv-inbox-back {
        display: inline-flex;
    }
    .pv-inbox-actions {
        flex-wrap: nowrap;
        padding-inline: var(--space-3);
        overflow-x: auto;
    }
    .pv-inbox-actions > * {
        flex: none;
    }
}

/* FullStack Direct: unread count in the More sheet of the classic bottom bar (same place as the sidebar count). */
.portal-more-row > .portal-more-count { margin-left: auto; }
.portal-more-row > .portal-more-count + svg { margin-left: var(--space-2); }

/* FullStack Direct activeren (Task 15) */
.portal-direct-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
}
.portal-direct-price {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}
.portal-direct-price strong {
    font-size: 1.75rem;
    font-weight: 650;
    margin-right: 0.25rem;
}
.portal-direct-cancel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* FullStack Direct: the messenger uses the whole content area on a desktop (Sebas, 29 Oct): no content max-width, and the list + thread fill the
   viewport below the page header and tabs instead of a fixed-height window. */
@media (min-width: 1024px) {
    /* The shell caps every direct child of the content column at --content-max (0,4,0); the repeated class outranks that without
       touching a fss-core selector, so the messenger spans the full content width. */
    main.pv-inbox-page.pv-inbox-page.pv-inbox-page.pv-inbox-page {
        width: 100%;
        max-width: none;
        padding-inline: var(--space-5, 20px);
        padding-bottom: var(--space-4);
    }
    .pv-inbox-page .pv-inbox-body {
        grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
        height: calc(100dvh - 12.5rem);
        min-height: 520px;
    }
}

/* FullStack Direct / Kanalen: a grid of compact channel cards (one per account) plus a dashed "add a channel" card. The channel colour is a
   custom property per card; it tints the icon tile and the top accent. No provider is ever shown here. */
.portal-channel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .portal-channel-grid {
        grid-auto-rows: 1fr;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1280px) {
    .portal-channel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.portal-channel-card {
    --portal-channel-color: var(--ink-3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
    min-height: 8rem;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: inset 0 3px 0 var(--portal-channel-color);
}
.portal-channel-card[data-channel="whatsapp"] {
    --portal-channel-color: #1a9d55;
}
.portal-channel-card[data-channel="sms"] {
    --portal-channel-color: #2f6fed;
}
.portal-channel-card[data-channel="web"] {
    --portal-channel-color: #0f8b8d;
}
.portal-channel-card[data-channel="messenger"] {
    --portal-channel-color: #0a7cff;
}
.portal-channel-card[data-channel="instagram"] {
    --portal-channel-color: #c13584;
}
.portal-channel-card[data-status="disconnected"] {
    opacity: 0.7;
}
.portal-channel-head {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-width: 0;
}
.portal-channel-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    color: var(--portal-channel-color);
    background: color-mix(in srgb, var(--portal-channel-color) 14%, transparent);
}
.portal-channel-id {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.portal-channel-kind {
    color: var(--ink-3);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.portal-channel-name {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: var(--text-md);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-channel-handle {
    margin: 0;
    overflow: hidden;
    color: var(--ink-2);
    font-size: var(--text-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-channel-chips {
    display: flex;
    flex-wrap: wrap;
    min-height: 1.75rem;
    align-items: center;
    gap: var(--space-2);
}
.portal-channel-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    color: var(--ink-2);
    font-size: var(--text-caption);
}
.portal-channel-foot {
    margin: auto 0 0;
    overflow: hidden;
    color: var(--ink-3);
    font-size: var(--text-caption);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-channel-card--add {
    border-style: dashed;
    background: transparent;
    box-shadow: none;
}
.portal-channel-card--add .portal-channel-icon {
    --portal-channel-color: var(--ink-2);
}
.portal-channel-card--add .portal-channel-handle {
    white-space: normal;
}
.portal-channel-add-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* FullStack Direct / Instellingen: two columns at natural height (settings left, labels right), one column below 960 px. */
.portal-inbox-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
    margin-top: var(--space-4);
}
@media (min-width: 960px) {
    .portal-inbox-settings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.portal-inbox-settings-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}
.portal-inbox-retention {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
}
.portal-inbox-retention > .portal-inbox-field-label,
.portal-inbox-retention > small {
    flex: 0 0 100%;
}
.portal-inbox-field-label {
    color: var(--ink);
    font-weight: 600;
}
.portal-inbox-retention > .portal-inbox-days {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    gap: var(--space-2);
    color: var(--ink-2);
}
.portal-inbox-retention > .portal-inbox-days > input {
    width: 7.5rem;
}
.portal-inbox-subscription {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-inbox-labels-empty {
    margin: 0 0 var(--space-3);
    color: var(--ink-3);
    font-size: var(--text-body);
}
.portal-inbox-labels {
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
}
.portal-inbox-labels > li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
}
.portal-inbox-label-dot {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.portal-inbox-label-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-inbox-label-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.portal-inbox-label-add {
    display: flex;
    gap: var(--space-2);
}
.portal-inbox-label-add > input {
    flex: 1;
    min-width: 0;
}
.portal-inbox-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-inbox-swatch {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 28px;
    cursor: pointer;
}
.portal-inbox-swatch > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.portal-inbox-swatch > span:first-of-type {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.portal-inbox-swatch > input:checked + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.portal-inbox-swatch > input:focus-visible + span {
    outline: 2px solid var(--focus-ring-color, currentColor);
    outline-offset: 2px;
}

/* --- Team (plan portal-team Task 7/8): the team page, the join page, the account switcher and the active-customer chip. Mobile first:
   one column on a phone; the cards sit next to each other from 1024 px. Only own `portal-team-*` classes (PortalCssRatchetTest). --- */
.portal-team-stack {
    display: grid;
    gap: var(--space-4);
}
.portal-team-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 2px var(--space-3);
    min-width: 0;
}
.portal-team-email {
    min-width: 0;
    overflow-wrap: anywhere;
}
.portal-team-meta {
    color: var(--ink-3);
}
.portal-team-areas,
.portal-team-join-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.portal-team-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}
.portal-team-actions {
    display: inline-flex;
    margin-left: auto;
}
.portal-team-leave {
    display: flex;
}
.portal-team-limits {
    display: grid;
    gap: var(--space-3);
}
.portal-team-areas-field {
    margin-bottom: 4px;
}
@media (min-width: 640px) {
    .portal-team-limits {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1024px) {
    .portal-team-stack {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
    }
    .portal-team-stack > :first-child {
        grid-row: span 3;
    }
}
/* Account switcher: in the user menu (desktop) and the More sheet (phone). */
.portal-team-switcher {
    padding: 6px;
    border-bottom: 1px solid var(--line);
}
.portal-team-switcher[data-variant="sheet"] {
    margin-bottom: var(--space-3);
    padding: 0 0 var(--space-3);
}
.portal-team-switcher-title {
    margin: 4px 10px 6px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
}
.portal-team-switcher-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portal-team-switcher-item {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.portal-team-switcher[data-variant="sheet"] .portal-team-switcher-item {
    min-height: 52px;
    padding: 4px var(--space-2);
}
button.portal-team-switcher-item:hover,
button.portal-team-switcher-item:focus-visible {
    background: var(--surface-2);
    color: var(--ink);
    outline: none;
}
.portal-team-switcher-item[aria-current="true"] {
    color: var(--ink);
    cursor: default;
}
.portal-team-switcher-copy {
    display: grid;
    flex: 1;
    min-width: 0;
}
.portal-team-switcher-copy strong {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-team-switcher-copy small {
    color: var(--ink-3);
    font-size: 12px;
}
.portal-team-switcher-check {
    display: inline-flex;
    color: var(--ink);
}
/* The active customer in the header (only with two or more customers). */
.portal-team-chip {
    display: inline-flex;
    height: 32px;
    min-width: 0;
    max-width: 9.5rem;
    flex: 0 1 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.portal-team-chip > svg {
    flex: none;
    color: var(--ink-3);
}
.portal-team-chip:hover {
    background: var(--surface-2);
}
.portal-team-chip:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-team-chip-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-team-chip[data-target="menu"] {
    display: none;
}
@media (min-width: 1024px) {
    .portal-team-chip {
        height: 36px;
        max-width: 14rem;
    }
    .portal-team-chip[data-target="menu"] {
        display: inline-flex;
    }
    .portal-team-chip[data-target="sheet"] {
        display: none;
    }
}
/* Join page (auth layout). */
.portal-team-join {
    display: grid;
    gap: var(--space-3);
}
.portal-team-join h1 {
    margin: 0;
    overflow-wrap: anywhere;
}
.portal-team-join p {
    margin: 0;
}
.portal-team-join-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--ink);
}
.portal-team-join-kicker {
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 500;
}
.portal-team-join-areas {
    margin-top: 0;
}
.portal-team-join-note {
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.portal-team-join-alt {
    text-align: center;
}

/* Channel brand logos (x-channel-logo): the icon tile of a channel card is white with a thin border and a light tint of the brand colour, so the logo
   reads in light and dark mode. The top edge keeps following the brand colour. */
.portal-channel-logo {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.portal-channel-card .portal-channel-icon {
    border: 1px solid color-mix(in srgb, var(--portal-channel-color) 28%, var(--line));
    background: color-mix(in srgb, var(--portal-channel-color) 10%, var(--surface));
}
.portal-channel-card[data-channel="telegram"] {
    --portal-channel-color: #26a5e4;
}
.portal-channel-card[data-channel="whatsapp"] {
    --portal-channel-color: #25d366;
}
.portal-channel-card[data-channel="messenger"] {
    --portal-channel-color: #0084ff;
}
.portal-channel-card[data-channel="instagram"] {
    --portal-channel-color: #e4405f;
}
.portal-channel-btn {
    gap: var(--space-2);
}

/* Number for WhatsApp notifications "naar jezelf" (automations): card text, the drawer form and the warning in a WhatsApp step. Mobile first:
   the actions wrap and the buttons in the drawer stretch to the full width on a phone. */
.portal-notifynum-text,
.portal-notifynum-current {
    margin: 0 0 var(--space-3);
}
.portal-notifynum-current {
    font-weight: 600;
}
.portal-notifynum-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-notifynum-form form {
    display: grid;
    gap: var(--space-3);
}
.portal-notifynum-form input[type="tel"] {
    width: 100%;
}
.portal-notifynum-error {
    margin: 0;
    color: var(--danger);
}
.portal-notifynum-missing {
    display: grid;
    gap: var(--space-2);
    justify-items: start;
}
@media (min-width: 640px) {
    .portal-notifynum-form form > button {
        justify-self: start;
    }
}

/* Telegram connect drawer on /inbox/channels: the intro text keeps a gap above the token form. */
.portal-telegram-intro {
    margin: 0 0 var(--space-4);
}

/* Inline rename of a channel card on /inbox/channels (decision D8): pencil next to the name, input with Save/Cancel instead of it. */
.portal-channel-name-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-1);
}
.portal-channel-name-row .portal-channel-name {
    min-width: 0;
}
.portal-channel-rename {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    background: transparent;
    cursor: pointer;
}
.portal-channel-rename:hover,
.portal-channel-rename:focus-visible {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.portal-channel-rename-form {
    display: grid;
    gap: var(--space-2);
    margin: 0;
}
.portal-channel-rename-input {
    width: 100%;
    min-width: 0;
}
.portal-channel-rename-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-channel-rename-error {
    color: var(--danger);
    font-size: var(--text-body);
}

/* Onboarding wizard: required fields. The asterisk comes from the control's own `required` attribute, so the marker and the rule cannot drift.
   Written on element selectors on purpose: the CSS ratchet counts every `.admin-*` selector, and this is page markup, not an override. */
.portal-onboarding-legend, .portal-onboarding-required { margin: 0; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.4; }
.portal-onboarding-required { color: var(--ink-2); font-weight: var(--font-medium); }
.portal-onboarding-star { color: var(--danger); font-weight: var(--font-semibold, 600); }
.portal-onboarding :is(div, label):has(> :is(input, select):required) > :is(label, span):first-child::after { content: " *"; color: var(--danger); font-weight: var(--font-semibold, 600); }
.portal-onboarding div:has(> :is(input, select):required) > label:first-child { display: block; }

/* App switcher (partials/app-switcher, portalApps in portal.js). Mobile first: a bottom sheet with the FullStack apps as tiles; from 1024 px a
   popover under the grid button in the top bar. The marks share one family (dark tile, lime outline, light strokes; public/branding/apps).
   Motion uses the fss-core tokens; reduced motion is handled by the shell rule on `.portal-chrome *` (1 ms). */
.portal-apps-trigger { display: inline-grid; width: 36px; height: 36px; flex: none; place-items: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.portal-apps-trigger:hover, .portal-apps-trigger[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.portal-apps-trigger:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.portal-apps-scrim { position: fixed; z-index: calc(var(--z-modal) + 1); background: color-mix(in srgb, var(--ink) 36%, transparent); inset: 0; }
.portal-apps-panel { position: fixed; z-index: calc(var(--z-modal) + 2); right: 0; bottom: 0; left: 0; display: flex; max-height: min(86dvh, 640px); flex-direction: column; padding-bottom: max(var(--space-3), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); box-shadow: var(--shadow-3); color: var(--ink); overflow: hidden; }
.portal-apps-handle { display: block; width: 36px; height: 4px; flex: none; margin: var(--space-2) auto 0; border-radius: var(--radius-full); background: var(--line); }
.portal-apps-head { display: flex; flex: none; align-items: center; gap: var(--space-1); padding: var(--space-2) var(--space-3) var(--space-1) var(--space-5); }
.portal-apps .portal-apps-title { flex: 1 1 auto; margin: 0; color: var(--ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--font-semibold); letter-spacing: -0.01em; line-height: 1.3; }
.portal-apps-edit { height: 32px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-full); background: var(--surface-2); color: var(--ink); font: inherit; font-size: var(--text-small); font-weight: var(--font-semibold); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.portal-apps-edit:hover { background: var(--surface-pressed); }
.portal-apps-edit[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.portal-apps-close { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: var(--radius-full); background: none; color: var(--ink-2); cursor: pointer; }
.portal-apps-close:hover { background: var(--surface-2); color: var(--ink); }
@media (pointer: coarse) {
    .portal-apps-edit, .portal-apps-close { min-width: 44px; height: 44px; }
}
.portal-apps-edit:focus-visible, .portal-apps-close:focus-visible, .portal-apps-tile:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.portal-apps-body { flex: 1 1 auto; padding: 0 var(--space-3) var(--space-2); overflow-y: auto; overscroll-behavior: contain; }
.portal-apps-section + .portal-apps-section { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.portal-apps .portal-apps-heading { margin: var(--space-3) var(--space-2) var(--space-1); color: var(--ink-3); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--font-medium); letter-spacing: 0; line-height: 1.4; text-transform: none; }
.portal-apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.portal-apps-tile { display: flex; width: 100%; min-height: 112px; flex-direction: column; align-items: center; gap: 1px; padding: var(--space-3) var(--space-1) var(--space-2); border: 0; border-radius: var(--radius-md); background: none; color: inherit; font: inherit; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--dur-fast) var(--ease-hover), transform var(--dur-fast) var(--ease-out); }
.portal-apps-tile:active { transform: scale(0.96); }
.portal-apps-mark { display: block; width: 52px; height: 52px; margin-bottom: var(--space-2); border-radius: 22%; box-shadow: 0 1px 2px rgba(12, 15, 20, 0.14), 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); transition: transform var(--dur-base) var(--ease-pop), box-shadow var(--dur-base) var(--ease-pop); }
/* Hover only for a real pointer: on a phone a tapped tile must not stay highlighted. */
@media (hover: hover) {
    .portal-apps-tile:hover { background: var(--surface-2); }
    .portal-apps-tile:hover .portal-apps-mark { box-shadow: 0 6px 14px -6px rgba(12, 15, 20, 0.4), 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); transform: translateY(-2px); }
}
.portal-apps-label { color: var(--ink); font-size: var(--text-base); font-weight: var(--font-semibold); line-height: 1.25; }
.portal-apps-sub { display: -webkit-box; overflow: hidden; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.portal-apps .portal-apps-empty { margin: 0 var(--space-2) var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-2); color: var(--ink-2); font-size: var(--text-small); line-height: 1.45; }
.portal-apps .portal-apps-hint { margin: var(--space-2) var(--space-2) var(--space-2); color: var(--ink-2); font-size: var(--text-small); line-height: 1.45; }
.portal-apps .portal-apps-error { margin: var(--space-2); color: var(--danger); font-size: var(--text-small); }
.portal-apps-markwrap { position: relative; display: inline-block; }
/* The app of this page: a dot under its mark, like a dock. */
.portal-apps-tile[aria-current] .portal-apps-markwrap::after { position: absolute; bottom: 1px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: var(--radius-full); background: var(--ink-2); content: ""; }
.portal-apps-pin { position: absolute; top: -6px; right: -6px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: var(--radius-full); background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong); color: var(--ink-2); transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.portal-apps-pin svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.portal-apps-pin-check { display: none; }
.portal-apps-pin[data-on] { background: var(--accent); box-shadow: 0 0 0 2px var(--surface); color: var(--accent-ink); animation: portal-apps-pop var(--dur-base) var(--ease-knob); }
.portal-apps-pin[data-on] .portal-apps-pin-plus { display: none; }
.portal-apps-pin[data-on] .portal-apps-pin-check { display: inline; }
@keyframes portal-apps-pop { from { transform: scale(0.6); } to { transform: scale(1); } }
.portal-apps-fade { transition: opacity var(--dur-base) var(--ease-fade); }
.portal-apps-fade-from { opacity: 0; }
.portal-apps-in { transition: transform var(--dur-slow) var(--ease-spring-sheet, var(--ease-out)); }
.portal-apps-out { transition: transform var(--dur-base) var(--ease-in); }
.portal-apps-from { transform: translateY(104%); }
/* Tablet: the sheet keeps a phone-like width instead of stretching three columns across the screen. */
@media (min-width: 640px) and (max-width: 1023px) {
    .portal-apps-panel { right: max(var(--space-4), calc(50% - 240px)); left: max(var(--space-4), calc(50% - 240px)); border: 1px solid var(--line); border-bottom: 0; }
}
@media (min-width: 1024px) {
    .portal-apps-scrim { background: transparent; }
    .portal-apps-panel { top: 60px; right: var(--space-6); bottom: auto; left: auto; width: 348px; max-height: min(560px, calc(100dvh - 88px)); padding-bottom: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-lg); transform-origin: top right; }
    .portal-apps-handle, .portal-apps-close { display: none; }
    .portal-apps-head { padding: var(--space-3) var(--space-3) var(--space-1) var(--space-4); }
    .portal-apps .portal-apps-title { font-size: var(--text-md); }
    .portal-apps-tile { min-height: 104px; }
    .portal-apps-mark { width: 48px; height: 48px; }
    .portal-apps-in { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-pop); }
    .portal-apps-out { transition: opacity var(--dur-fast) var(--ease-in), transform var(--dur-fast) var(--ease-in); }
    .portal-apps-from { opacity: 0; transform: translateY(-6px) scale(0.97); }
}
/* "Apps" in the More sheet: a row with a preview of the marks. */
.portal-more-apps { display: flex; width: 100%; min-height: 56px; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-weight: var(--font-semibold); text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.portal-more-apps:hover { background: var(--surface-2); }
.portal-more-apps:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.portal-more-apps-label { flex: 1 1 auto; }
.portal-more-apps-marks { display: flex; }
.portal-more-apps-marks img { display: block; width: 24px; height: 24px; border-radius: 22%; box-shadow: 0 0 0 2px var(--surface); }
.portal-more-apps-marks img + img { margin-left: -7px; }
.portal-more-apps-chev { flex: none; color: var(--ink-3); }

/* Focus mode of FullStack Direct (/inbox?focus=1, App\Support\DirectFocus): no sidebar, top bar, bottom bar or pay bar; a slim Direct header. */
.portal-chrome.portal-dfocus.portal-dfocus { --portal-nav-h: 0px; --fss-bottom-nav-h: 0px; grid-template-columns: minmax(0, 1fr); }
#portal-main > .portal-dfocus-top { position: sticky; z-index: var(--z-sticky); top: 0; display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: var(--space-3); padding: max(var(--space-2), env(safe-area-inset-top)) var(--space-4) var(--space-2); border-bottom: 1px solid var(--line); background: var(--surface); }
.portal-dfocus-brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--font-semibold); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.portal-dfocus-brand img { display: block; flex: none; border-radius: 22%; }
.portal-dfocus-name-pre { color: var(--ink-3); font-weight: var(--font-medium); }
.portal-dfocus-brand:focus-visible { border-radius: var(--radius-sm); box-shadow: var(--focus-ring); outline: none; }
@media (max-width: 1023px) {
    html:has(.portal-chrome.portal-dfocus[data-has-user]) { --bottom-nav-h: 0px; }
    .portal-chrome.portal-dfocus.portal-dfocus { grid-template-rows: minmax(0, 1fr); }
    .portal-dfocus #portal-main { padding-bottom: var(--space-4); }
}
@media (max-width: 639px) {
    .portal-dfocus-name-pre, .portal-dfocus-enter-label { display: none; }
}
@media (min-width: 640px) {
    #portal-main > .portal-dfocus-top { padding-inline: var(--space-5); }
}

/* =====================================================================
   Customizable dashboard (`/`, feature/dashboard-v2): greeting, shortcut tiles, widget grid, customize mode and the first-visit tour.
   Mobile first: one column and a swipeable row of tiles; two columns from 768 px, three from 1180 px. Only transform and opacity move;
   less motion (OS or html[data-motion="reduced"]) switches every movement off. Prefix `pd-`; cards inside keep their `po-` styles.
   ===================================================================== */
.pd.po-overview { gap: 20px; padding-bottom: 32px; }

/* Head: date, greeting, one status line; the customize button on the right. */
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 4px; }
.pd-hello { min-width: 0; }
.pd-date { margin: 0 0 6px; color: var(--ink-3); font-size: 13px; line-height: 18px; text-wrap: balance; }
.pd .pd-hello .po-greeting { font-size: 26px; line-height: 1.15; }
.pd-status { max-width: 60ch; margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 22px; text-wrap: pretty; }
.pd-hello-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pd-customize {
    display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2);
    font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), border-color var(--dur-fast) var(--ease-hover);
}
.pd-customize:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.pd-customize:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.pd-customize-label { display: none; }
[data-dash-editing] .pd-customize { visibility: hidden; }

/* Shortcut tiles: the FullStack apps first (dark tile, lime glyph), then the parts of the portal. A swipeable row on a phone. */
/* The row bleeds to the screen edge: the portal's mobile gutter is 16px. */
.pd-apps { margin: 0 -16px; }
.pd-apps-list {
    display: flex; gap: 10px; margin: 0; padding: 2px 16px 6px; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
}
.pd-apps-list::-webkit-scrollbar { display: none; }
.pd-apps-list > li { flex: none; scroll-snap-align: start; }
.pd-app {
    position: relative; display: flex; flex-direction: column; gap: 10px; width: 136px; height: 100%; padding: 14px 12px 12px;
    border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
    color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: transform var(--dur-fast) var(--ease-hover), box-shadow var(--dur-fast) var(--ease-hover);
}
.pd-app:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong); }
.pd-app:active { transform: scale(0.98); }
.pd-app:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.pd-app-ic {
    display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--ink-2);
}
.pd-app-ic[data-app="direct"], .pd-app-ic[data-app="hub"] { background: var(--night); color: var(--lime); }
.pd-app-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-app-label { font-size: 13.5px; font-weight: 600; line-height: 18px; text-wrap: balance; }
.pd-app-sub { overflow: hidden; color: var(--ink-3); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pd-app-badge {
    position: absolute; top: 10px; left: 42px; display: grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center;
    border: 2px solid var(--surface); border-radius: var(--radius-full); background: var(--accent); color: var(--accent-ink);
    font-size: 11px; font-weight: 700; line-height: 1;
}

/* The widget grid: one column, two from 768 px, three from 1180 px. A wide widget takes two columns; dense packing fills the gaps. */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row dense; align-items: stretch; gap: 12px; }
.pd-w { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pd-w > :not(.pd-w-tools) { flex: 1 1 auto; }
.pd-w[hidden] { display: none; }
/* A lazy widget that turned out empty (204) leaves nothing behind, not even its cell. */
.pd-w:empty { display: none; }
.pd .pd-grid .po-card { display: flex; flex-direction: column; gap: 12px; }
.pd .pd-grid .po-card > .po-card-head { min-height: 20px; }
.pd .pd-grid .po-actions { margin-top: auto; padding-top: 2px; }
.pd-stub { opacity: 0.6; }
/* Card heading links keep a 44px touch target without pushing the card's content down. */
.pd .pd-grid .po-card-head h2 a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.pd .pd-grid .po-card > * { flex-shrink: 0; }
.pd .pd-grid .po-paybar { height: 52px; margin: 8px 0 0; }
/* In a narrow card the "sent" caption collides with the due date next to it: the sent knot keeps only its date. */
.pd .pd-grid .po-pin[data-kind="sent"] { font-size: 0; }
.pd .pd-grid .po-pin[data-kind="sent"] b { font-size: 11px; }

/* All clear. */
.pd .pd-clear { flex-direction: row; align-items: center; gap: 14px; }
.pd-clear-title { margin: 0 0 2px; font-size: 15px; font-weight: 600; line-height: 20px; }

/* Websites as rows. */
.pd-sitelist { display: flex; flex-direction: column; margin: 0 -8px; padding: 0; list-style: none; }
.pd-site { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.pd-site + .pd-site { box-shadow: inset 0 1px 0 var(--line); }
.pd-site:hover { background: var(--surface-2); }
.pd-site-thumb { position: relative; display: grid; overflow: hidden; width: 56px; height: 36px; place-items: center; border-radius: var(--radius-xs); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pd-site-thumb > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pd-site-thumb > img.pd-site-fav { width: 20px; height: 20px; object-fit: contain; }
.pd-site-initial { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.pd-site-copy { display: flex; flex-direction: column; min-width: 0; }
.pd-site-link { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.pd-site-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pd-site-link:focus-visible { outline: none; }
.pd-site:has(.pd-site-link:focus-visible) { outline: var(--focus-outline); outline-offset: 0; }
.pd-site-meta { display: flex; gap: 8px; overflow: hidden; color: var(--ink-3); font-size: 12.5px; line-height: 18px; white-space: nowrap; }
.pd-site-domain { overflow: hidden; text-overflow: ellipsis; }
.pd-site-package { display: none; }
.pd .pd-site .pd-site-status { position: static; grid-column: 2; justify-self: start; margin-top: -4px; padding: 0; background: none; box-shadow: none; font-size: 12px; }
.pd-site-visit {
    position: relative; z-index: 1; display: grid; grid-row: 1 / span 2; grid-column: 3; width: 32px; height: 32px; place-items: center;
    border-radius: var(--radius-sm); color: var(--ink-3);
}
.pd-site-visit:hover { background: var(--surface); color: var(--ink); }

/* Documents to sign. */
.pd-doclist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pd-doclist li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; line-height: 20px; }
.pd-doc-ic { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info); }
.pd-doc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* FullStack Direct: the unread figure and the newest unread conversations. */
.pd-direct-figure { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.pd-direct-figure strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.pd-direct-figure span { color: var(--ink-3); font-size: 13px; }
.pd-convs { display: flex; flex-direction: column; margin: 0 -8px; padding: 0; list-style: none; }
.pd-conv { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.pd-conv:hover { background: var(--surface-2); }
.pd-conv:focus-visible { outline: var(--focus-outline); outline-offset: 0; }
.pd-conv-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pd-conv-name { overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.pd-conv-channel { overflow: hidden; color: var(--ink-3); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pd-conv-when { color: var(--ink-3); font-size: 12px; }
.pd-conv-ic { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--surface-2); }
.pd-conv-dot { flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--info); }
.pd-sk-figure { display: block; width: 72px; height: 30px; }
.pd-sk-line { display: block; width: 100%; height: 36px; }

/* The mail KPI tile and the limits banner fill their cell. */
.pd-mail { display: flex; }
.pd-mail > * { flex: 1; }
.pd-limits { min-width: 0; }

@media (min-width: 480px) {
    .pd-customize-label { display: inline; }
    .pd-customize { padding: 0 14px; }
    .pd-site-package { display: inline; }
    .pd-site-domain:has(~ .pd-site-package)::after { content: ","; }
}

@media (min-width: 768px) {
    .pd .pd-hello .po-greeting { font-size: 32px; }
    .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pd-w[data-size="wide"] { grid-column: span 2; }
    .pd-site { grid-template-columns: 72px minmax(0, 1fr) auto auto; }
    .pd-site-thumb { width: 72px; height: 45px; }
    .pd .pd-site .pd-site-status { grid-column: 3; margin: 0; }
    .pd-site-visit { grid-row: auto; grid-column: 4; }
}

@media (min-width: 1180px) {
    .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    /* Wide enough for every tile on one row of equal columns; below this the row swipes. */
    .pd-apps { margin: 0; }
    .pd-apps-list { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 12px; padding: 0; overflow: visible; }
    .pd-app { width: auto; }
}

/* ---------- Customize mode (built by public/js/dashboard.js) ---------- */
[data-dash-editing].pd { padding-bottom: 140px; }
[data-dash-editing] .pd-apps, [data-dash-editing] .pd-head .pd-hello, [data-dash-editing] .po-help { opacity: 0.45; }
[data-dash-editing] .pd-w {
    overflow: hidden; border-radius: var(--radius-md); background: var(--surface);
    box-shadow: var(--shadow-1), 0 0 0 1px var(--line-strong);
    transition: box-shadow var(--dur-fast) var(--ease-hover), opacity var(--dur-fast) var(--ease-hover);
}
[data-dash-editing] .pd-w > :not(.pd-w-tools) {
    max-height: 108px; overflow: hidden; pointer-events: none; opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
[data-dash-editing] .pd-w[data-dash-hidden] { box-shadow: 0 0 0 1px var(--line); opacity: 0.7; }
[data-dash-editing] .pd-w[data-dash-hidden] > :not(.pd-w-tools) { opacity: 0.18; }
[data-dash-editing] .pd-w[data-dragging] { z-index: 2; box-shadow: var(--shadow-3), 0 0 0 2px var(--ink); transform: scale(1.01); }
.pd-w-tools { display: flex; flex: none; align-items: center; gap: 4px; min-height: 48px; padding: 4px 6px 4px 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pd-w-name { flex: 1; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pd-w-flag { display: none; padding: 2px 8px; border-radius: var(--radius-full); background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 500; }
.pd-w[data-dash-hidden] .pd-w-flag { display: inline-block; }
.pd-tool {
    display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--ink-2); cursor: pointer;
}
.pd-tool:hover { background: var(--surface-2); color: var(--ink); }
.pd-tool:focus-visible { outline: var(--focus-outline); outline-offset: -2px; }
.pd-tool--grip { cursor: grab; touch-action: none; }
.pd-w[data-dragging] .pd-tool--grip { cursor: grabbing; }
.pd-tool--toggle[aria-pressed="false"] { color: var(--ink-3); }
.pd-w:first-child .pd-tool--up, .pd-w:last-child .pd-tool--down { opacity: 0.35; }
.pd-editbar {
    position: fixed; z-index: var(--z-drawer); right: 12px; bottom: calc(var(--portal-nav-h, 0px) + 12px); left: 12px;
    display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow-3), 0 0 0 1px var(--line);
    animation: pd-rise var(--dur-slow) var(--ease-out) both;
}
.pd-editbar-hint { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 17px; }
.pd-editbar-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pd-editbar-reset { margin-right: auto; }
html:has([data-dash-editing]) .portal-paybar { display: none; }
/* The round Stacko button would sit on the bar; it comes back when arranging is done. */
html:has([data-dash-editing]) button[aria-controls="stacko-panel"] { visibility: hidden; }
@keyframes pd-rise { from { opacity: 0; transform: translateY(12px); } }

@media (min-width: 768px) {
    .pd-editbar { right: auto; left: 50%; width: min(720px, calc(100% - 48px)); flex-direction: row; align-items: center; transform: translateX(-50%); animation-name: pd-rise-center; }
    .pd-editbar-hint { flex: 1; }
    .pd-editbar-reset { margin-right: 0; }
    @keyframes pd-rise-center { from { opacity: 0; transform: translate(-50%, 12px); } }
}

/* ---------- First-visit tour (public/js/dashboard.js) ---------- */
.pd-tour { position: fixed; z-index: var(--z-modal); inset: 0; }
.pd-tour-spot {
    position: fixed; top: 0; left: 0; width: 0; height: 0; border-radius: var(--radius-md); pointer-events: none;
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 9999px color-mix(in srgb, var(--night) 60%, transparent);
    transition: transform var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out);
}
.pd-tour-tip {
    position: fixed; top: 0; left: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: min(360px, calc(100vw - 32px)); padding: 18px;
    border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-3); color: var(--ink);
    transition: transform var(--dur-slow) var(--ease-out);
    animation: pd-fade var(--dur-slow) var(--ease-out) both;
}
.pd-tour-count { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.pd-tour-title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.01em; }
.pd-tour-title:focus { outline: none; }
.pd-tour-body { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 21px; }
.pd-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pd-tour-dots { display: flex; gap: 5px; }
.pd-tour-dots i { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--line-strong); transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.pd-tour-dots i[data-on] { width: 16px; background: var(--ink); }
.pd-tour-acts { display: flex; gap: 6px; }
.pd-tour-acts [hidden] { display: none; }
@keyframes pd-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .pd-app, .pd-customize, .pd-tour-spot, .pd-tour-tip, .pd-tour-dots i, [data-dash-editing] .pd-w { transition: none; }
    .pd-editbar, .pd-tour-tip { animation: none; }
    [data-dash-editing] .pd-w[data-dragging] { transform: none; }
}
html[data-motion="reduced"] .pd-app, html[data-motion="reduced"] .pd-customize, html[data-motion="reduced"] .pd-tour-spot,
html[data-motion="reduced"] .pd-tour-tip, html[data-motion="reduced"] .pd-tour-dots i, html[data-motion="reduced"] [data-dash-editing] .pd-w { transition: none; }
html[data-motion="reduced"] .pd-editbar, html[data-motion="reduced"] .pd-tour-tip { animation: none; }
html[data-motion="reduced"] [data-dash-editing] .pd-w[data-dragging] { transform: none; }
/* Touch screens: every control of the dashboard is at least 44px. */
@media (pointer: coarse) {
    .pd-customize { min-width: 44px; min-height: 44px; }
    .pd-tool { width: 44px; height: 44px; }
}
/* Limit banners (feature/limit-banners): usage of an included quota, the price above it and the membership upsell. Mobile first; the card
   switches to two columns by its OWN width (container query), so it fits a page column, the editor and the overview alike. */
.portal-limits { display: grid; gap: var(--space-3); margin-block: 0 var(--space-5); }
.portal-limits[data-place="calm"] { margin-block: var(--space-5); }
.portal-limit {
    container-type: inline-size;
    position: relative;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    --limit-tone: var(--accent-deep);
}
.portal-limit[data-tone="warning"] { --limit-tone: var(--warning); border-color: var(--warning-border); }
.portal-limit[data-tone="danger"] { --limit-tone: var(--danger); border-color: var(--danger-border); background: color-mix(in srgb, var(--danger-bg) 55%, var(--surface)); }
.portal-limit-body { display: grid; gap: var(--space-4); }
.portal-limit-upsell { align-self: stretch; }
.portal-limit-main { display: grid; gap: var(--space-2); min-width: 0; }
.portal-limit-head { display: flex; align-items: center; gap: var(--space-2-5, 10px); min-width: 0; }
.portal-limit-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    background: var(--surface-2);
}
.portal-limit[data-tone="warning"] .portal-limit-icon { color: var(--warning); background: var(--warning-bg); }
.portal-limit[data-tone="danger"] .portal-limit-icon { color: var(--danger); background: var(--surface); }
.portal-limit-title { margin: 0; min-width: 0; color: var(--ink); font-size: var(--text-md); font-weight: var(--font-semibold); line-height: 1.3; text-wrap: balance; }
.portal-limit-chip {
    flex: none;
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    color: var(--limit-tone);
    background: color-mix(in srgb, var(--limit-tone) 10%, var(--surface));
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 1.5;
}
.portal-limit-stat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-top: var(--space-1); }
.portal-limit .portal-limit-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-1-5); min-width: 0; margin: 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.3; }
.portal-limit-figure strong { color: var(--ink); font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--font-semibold); letter-spacing: -0.03em; }
.portal-limit :is(p, ul) { margin: 0; }
.portal-limit-upsell .portal-limit-cta { background: var(--surface); }
.portal-limit[data-tone="danger"] .portal-limit-figure strong { color: var(--danger); }
.portal-limit-close {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    position: absolute;
    inset: var(--space-2) var(--space-2) auto auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    background: transparent;
    cursor: pointer;
}
.portal-limit[data-closable] { padding-inline-end: calc(var(--space-4) + 2rem); }
.portal-limit-close::before { content: ""; position: absolute; inset: -6px; }
.portal-limit-close:hover { color: var(--ink); background: var(--surface-2); }
/* 100 %: the chip turns solid so "all used" never looks like "almost". */
.portal-limit[data-state="full"] .portal-limit-chip { color: var(--surface); background: var(--limit-tone); }
.portal-limit[data-state="full"][data-tone="warning"] { border-color: color-mix(in srgb, var(--warning) 45%, var(--warning-border)); }
.portal-limit-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.portal-limit-meter {
    position: relative;
    display: block;
    height: 8px;
    margin-block: var(--space-1);
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--surface-2);
}
.portal-limit-meter--sm { height: 4px; margin-block: 0; }
.portal-limit-fill,
.portal-limit-over { position: absolute; inset-block: 0; display: block; transform-origin: left center; }
.portal-limit-fill {
    left: 0;
    width: calc(var(--limit-fill, 0) * 100%);
    border-radius: var(--radius-full);
    background: var(--limit-tone);
    animation: portal-limit-grow 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* What went over the included part: hatched, right after a small notch at the limit. */
.portal-limit-over {
    left: calc(var(--limit-fill, 0) * 100% + 2px);
    width: calc(var(--limit-over, 0) * 100% - 2px);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    background: repeating-linear-gradient(-45deg, var(--limit-tone) 0 3px, color-mix(in srgb, var(--limit-tone) 35%, var(--surface)) 3px 6px);
    animation: portal-limit-grow 500ms 550ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes portal-limit-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .portal-limit-fill, .portal-limit-over { animation: none; } }
html[data-motion="reduced"] :is(.portal-limit-fill, .portal-limit-over) { animation: none; }
.portal-limit-usage { margin: 0; color: var(--ink); font-size: var(--text-base); line-height: 1.45; }
.portal-limit-note { margin: 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; }
.portal-limit-reset { color: var(--ink-3); }
.portal-limit-note .portal-limit-reset:not(:first-child) { margin-left: 0.25em; }
.portal-limit-help { display: inline-flex; align-items: center; gap: var(--space-1); justify-self: start; color: var(--ink); font-size: var(--text-sm); font-weight: var(--font-medium); text-decoration: underline; text-underline-offset: 3px; }
.portal-limit-upsell {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    color: var(--brand-ink);
    background: var(--accent-soft);
}
.portal-limit-upsell-lead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); margin: 0; }
.portal-limit-tier { display: inline-flex; align-items: center; gap: var(--space-1-5); color: var(--brand-ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--font-semibold); letter-spacing: -0.015em; }
.portal-limit-upsell-price { color: var(--brand-ink); font-size: var(--text-sm); }
.portal-limit-perks { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: var(--text-sm); line-height: 1.45; }
.portal-limit-perks li { display: flex; align-items: flex-start; gap: var(--space-2); }
.portal-limit-perks li > svg { flex: none; margin-top: 3px; color: var(--brand-ink); }
.portal-limit-upsell .portal-limit-cta { justify-self: stretch; margin-top: var(--space-1); }
@container (min-width: 640px) {
    .portal-limit[data-upsell] .portal-limit-body { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: stretch; gap: var(--space-5); }
    .portal-limit-upsell .portal-limit-cta { justify-self: start; }
}
/* Overview: the compact card with the limits at or above 80 %. */
.portal-limits-card { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1); }
.portal-limits-card-title { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--ink); font-size: var(--text-md); font-weight: var(--font-semibold); }
.portal-limits-card-title > svg { color: var(--ink-3); }
.portal-limits-card-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-1) var(--space-6, 24px); margin: 0; padding: 0; list-style: none; }
.portal-limits-card-row { --limit-tone: var(--accent-deep); }
.portal-limits-card-row[data-tone="warning"] { --limit-tone: var(--warning); }
.portal-limits-card-row[data-tone="danger"] { --limit-tone: var(--danger); }
.portal-limits-card-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1-5) var(--space-3); padding: var(--space-2); margin-inline: calc(var(--space-2) * -1); border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.portal-limits-card-link:hover { background: var(--surface-2); }
.portal-limits-card-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.portal-limits-card-name { color: var(--ink); font-size: var(--text-base); font-weight: var(--font-medium); }
.portal-limits-card-figure { color: var(--ink-2); font-size: var(--text-sm); }
.portal-limits-card-link .portal-limit-meter { grid-column: 1 / -1; }
.portal-limits-card-sub { grid-column: 1 / -1; color: var(--limit-tone); font-size: var(--text-xs); font-weight: var(--font-medium); }
.portal-limits-card-offer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5); justify-self: start; padding: var(--space-1-5) var(--space-3); border-radius: var(--radius-full); color: var(--brand-ink); background: var(--accent-soft); font-size: var(--text-sm); font-weight: var(--font-medium); text-decoration: none; }
.portal-limits-card-price { color: var(--brand-ink); font-weight: var(--font-regular); font-variant-numeric: tabular-nums; opacity: 0.8; }
.portal-limits-card-offer:hover { background: color-mix(in srgb, var(--accent-soft), var(--accent) 30%); }
.portal-limits-card-offer:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Soft prompt for browser notifications on /inbox (Web Push): a bottom sheet above the bottom bar on a phone, a floating card bottom left (over the nav) from 1024 px. */
.portal-wpp {
    position: fixed; z-index: var(--z-drawer); right: 0; bottom: var(--portal-nav-h, 0px); left: 0; box-sizing: border-box;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-3); align-items: start;
    padding: var(--space-4) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); box-shadow: var(--shadow-3); color: var(--ink);
}
.portal-wpp-anim { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.portal-wpp-off { opacity: 0; transform: translateY(24px); }
.portal-wpp-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--brand-ink); }
.portal-wpp-copy { display: grid; gap: var(--space-1); min-width: 0; }
.portal-wpp-title { margin: 0; color: var(--ink); font-size: var(--text-md); font-weight: var(--font-semibold); line-height: 22px; }
.portal-wpp-text { margin: 0; color: var(--ink-2); font-size: var(--text-base); line-height: 21px; }
.portal-wpp-hint { margin: 0; color: var(--ink-3); font-size: var(--text-sm); line-height: 18px; }
.portal-wpp-error { margin: var(--space-1) 0 0; color: var(--danger); font-size: var(--text-sm); font-weight: var(--font-medium); line-height: 18px; }
.portal-wpp-actions { display: grid; grid-column: 1 / -1; gap: var(--space-2); }
.portal-wpp-actions > * { justify-content: center; min-height: 44px; }
.portal-wp-recheck { display: inline; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: var(--font-medium); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.portal-wp-recheck:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: var(--radius-xs); }
@media (min-width: 1024px) {
    /* A floating card bottom left over the portal nav: it never takes room from the page (an in-flow row pushed the inbox down while the user was clicking) and stays clear of the thread header, the details toggle, the composer and the conversation rows. Width follows the nav; in Direct focus mode (no nav) it is a little wider and sits over the empty bottom corner. The doubled class and the attribute beat the shell rule that gives every child of the content `width: 100%`. */
    .portal-chrome .portal-wpp.portal-wpp[data-web-push-prompt] {
        top: auto; right: auto; bottom: var(--space-3); left: var(--space-3); width: calc(var(--sidebar-w, 240px) - var(--space-6)); padding: var(--space-3) var(--space-3) var(--space-3);
        border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-3); grid-template-columns: minmax(0, 1fr);
    }
    .portal-chrome.portal-dfocus .portal-wpp.portal-wpp[data-web-push-prompt] { width: 320px; }
    .portal-wpp-off { transform: translateY(12px); }
    .portal-wpp-title { font-size: var(--text-base); line-height: 20px; }
    .portal-wpp-text { font-size: var(--text-sm); line-height: 18px; }
    .portal-wpp-hint, .portal-wpp-icon { display: none; }
    .portal-wpp-actions { grid-column: auto; gap: var(--space-1-5); }
    .portal-wpp-actions > * { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-wpp-anim { transition: opacity var(--dur-fast) linear; }
    .portal-wpp-off { transform: none; }
}

/* FullStack Direct / Bedrijfsprofiel (plan FSD v2 N11b): the WhatsApp business profile form next to a live preview of the profile card.
   Phone first: one column, the preview after the form, the save bar stuck above the bottom navigation. From 1024px the preview sits
   beside the form and stays in view. The preview borrows WhatsApp's contact card (grey gaps between white blocks); the form uses the
   normal portal primitives. */
.portal-channel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-bp {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
}
.portal-bp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
}
.portal-bp-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}
.portal-bp-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.portal-bp-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}
.portal-bp-count {
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.portal-bp-count[data-over] {
    color: var(--danger);
    font-weight: var(--font-semibold);
}
.portal-bp textarea {
    resize: vertical;
    min-height: 3.5rem;
    padding-block: var(--space-2);
    line-height: 1.45;
}
.portal-bp [data-invalid] :is(input, textarea, select) {
    border-color: var(--danger);
}
.portal-bp-error {
    margin: 0;
}

/* Photo: the current picture or the crop stage, one at a time. */
.portal-bp-photo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
}
.portal-bp-photo > .portal-bp-error {
    flex: 1 0 100%;
}
.portal-bp-avatar {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, #1a9d55 14%, var(--surface));
    box-shadow: 0 0 0 1px var(--line);
}
.portal-bp-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-bp-avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #14753f;
    font-size: 2.25rem;
    font-weight: var(--font-semibold);
}
.portal-bp-crop {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1 1 14rem;
    max-width: 320px;
}
.portal-bp-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--canvas);
    cursor: grab;
    touch-action: none;
}
.portal-bp-canvas:active {
    cursor: grabbing;
}
.portal-bp-canvas:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}
.portal-bp-zoom {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.portal-bp-zoom input[type="range"] {
    width: 100%;
    min-height: 32px;
    accent-color: #1a9d55;
}
.portal-bp-photo-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.portal-bp-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
}

/* Websites: up to two rows, each with a remove button. */
.portal-bp-websites {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-bp-websites legend {
    padding: 0;
    margin-bottom: var(--space-1-5);
}
.portal-bp-website {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.portal-bp-website input {
    flex: 1 1 auto;
    min-width: 0;
}
.portal-bp-remove {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
}
.portal-bp-remove:hover {
    background: var(--canvas);
    color: var(--danger);
}
.portal-bp-remove:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 1px;
}

/* Save bar: stuck to the bottom of the viewport (above the bottom navigation on a phone). */
.portal-bp-bar {
    position: sticky;
    z-index: var(--z-sticky);
    bottom: calc(var(--portal-nav-h, 0px) + var(--space-2));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 -8px 20px -12px rgba(12, 18, 16, 0.25);
}
.portal-bp-bar-note {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
}
.portal-bp-bar-actions {
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
}

/* Preview: WhatsApp's contact card. */
.portal-bp-aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}
.portal-bp-aside .portal-bp-preview-head h2 {
    font-size: var(--text-base);
}
.portal-bp-aside .portal-bp-preview-head p {
    margin: var(--space-1) 0 0;
    color: var(--ink-3);
    font-size: var(--text-sm);
}
.portal-bp-phone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #e9ecea;
    color: #111b21;
}
.portal-bp-phone > * {
    border-radius: var(--radius-sm);
    background: #fff;
}
.portal-bp-phone-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-5) var(--space-4) var(--space-4);
    text-align: center;
}
.portal-bp-pavatar {
    display: grid;
    width: 84px;
    height: 84px;
    margin-bottom: var(--space-2);
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: #d9fdd3;
    color: #14753f;
    font-size: 2rem;
    font-weight: var(--font-semibold);
}
.portal-bp-pavatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-bp-aside .portal-bp-pname {
    margin: 0;
    color: #111b21;
    max-width: 100%;
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.portal-bp-aside .portal-bp-pphone {
    margin: 0;
    color: #667781;
    font-size: var(--text-sm);
}
.portal-bp-aside .portal-bp-pbadge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin: var(--space-2) 0 0;
    color: #667781;
    font-size: var(--text-xs);
}
.portal-bp-pblock {
    padding: var(--space-3) var(--space-4);
}
.portal-bp-aside .portal-bp-pblock p {
    margin: 0;
    color: #111b21;
    font-size: var(--text-sm);
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.portal-bp-aside .portal-bp-pabout[data-empty] {
    color: #8696a0;
}
.portal-bp-plist {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: var(--space-1) var(--space-4);
    list-style: none;
}
.portal-bp-plist li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    line-height: 1.4;
}
.portal-bp-plist li > svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #667781;
}
.portal-bp-plist li > span {
    min-width: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.portal-bp-aside .portal-bp-plink > span {
    color: #027eb5;
}
@media (min-width: 1024px) {
    .portal-bp-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
    .portal-bp-aside {
        position: sticky;
        top: var(--space-6);
    }
    .portal-bp-bar {
        bottom: var(--space-4);
    }
}
@media (prefers-reduced-motion: no-preference) {
    .portal-bp-bar {
        animation: portal-bp-rise 160ms ease-out;
    }
}
@keyframes portal-bp-rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* FullStack Direct / Kanalen: the "Kanaalteam" row of a channel card and the modal it opens (plan FSD v2 T9). */
.portal-channel-team {
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.portal-channel-team-line {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}
.portal-channel-team-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    color: var(--ink-2);
    background: var(--surface-2, color-mix(in srgb, var(--ink) 6%, transparent));
}
.portal-channel-team-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.portal-channel-team-title {
    color: var(--ink);
    font-size: var(--text-body);
    font-weight: 600;
}
.portal-channel-team-summary {
    color: var(--ink-3);
    font-size: var(--text-caption);
    overflow-wrap: anywhere;
}
.portal-channel-team-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.portal-channel-team-note {
    margin: 0;
}
.portal-channel-team-members {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-channel-team-members legend {
    margin-bottom: var(--space-2);
    padding: 0;
    font-weight: 600;
}
.portal-channel-team-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    list-style: none;
}
.portal-channel-team-list:empty {
    display: none;
}
.portal-channel-team-member {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-3);
}
.portal-channel-team-member + .portal-channel-team-member {
    border-top: 1px solid var(--line);
}
.portal-channel-team-pick {
    flex: 1 1 10rem;
    min-width: 0;
    font-weight: 600;
}
.portal-channel-team-auto {
    flex: none;
    color: var(--ink-2);
}
.portal-channel-team-inactive {
    flex: 1 0 100%;
    color: var(--warning-ink, var(--ink-2));
}
.portal-channel-team-member[data-inactive] .portal-channel-team-pick {
    opacity: 0.7;
}
.portal-channel-team-mode {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-channel-team-mode legend {
    margin-bottom: var(--space-2);
    padding: 0;
    font-weight: 600;
}
.portal-channel-team-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.portal-channel-team-option:has(input:checked) {
    border-color: var(--ink);
    background: var(--surface-2);
}
.portal-channel-team-option:has(input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.portal-channel-team-option:has(input:disabled) {
    cursor: default;
}
.portal-channel-team-option input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
}
.portal-channel-team-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.portal-channel-team-option-text > span {
    font-weight: 600;
}
.portal-channel-team-option-text > small {
    color: var(--ink-3);
    font-size: var(--text-caption);
}
.portal-channel-team-default {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-weight: 600;
}
.portal-channel-team-select {
    width: 100%;
    min-height: 2.5rem;
    padding: 0 var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    font-weight: 400;
}
@media (max-width: 480px) {
    .portal-channel-team-line {
        flex-wrap: wrap;
    }
    .portal-channel-team-text {
        flex: 1 1 10rem;
    }
    .portal-channel-team-member {
        gap: var(--space-1);
    }
    .portal-channel-team-auto {
        flex: 1 0 100%;
        padding-left: calc(16px + var(--space-2));
        font-size: var(--text-caption);
    }
}

/* Channel team modal: native checkboxes and radios follow the portal selection colour. */
.portal-channel-team-form input:is([type="checkbox"], [type="radio"]) {
    accent-color: var(--selection-ink);
}

/* --- Illustrations (design/portal-beautify) -------------------------------------------------------------------------------
   `x-portal.art` (resources/views/components/portal/art.blade.php) draws inline SVG scenes in code: thin ink strokes, white and soft
   surfaces, the lime accent as a highlighter with an ink outline (ADR 0029: no lime lines on light surfaces). The empty-state override
   in resources/views/vendor/fss picks the scene from the core `icon` name. Motion is decorative and tiny: the scene settles in once
   (opacity + 6 px, 200 ms), the accent shape breathes by 2 px and the waves pulse; all of it is off with reduced motion. */
.pa-art {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 136 / 104;
    margin: 0 auto var(--space-1);
    overflow: visible;
    fill: none;
    stroke: var(--ink-4);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pa-in var(--dur-base, 200ms) var(--ease-out, cubic-bezier(0.2, 0, 0, 1)) both;
}

.pa-art .g { fill: var(--surface-2); stroke: none; }
.pa-art .w { fill: var(--surface); }
.pa-art .s { fill: var(--accent-soft); stroke: none; }
.pa-art .a { fill: var(--accent); stroke: var(--ink); }
.pa-art .d { fill: var(--ink-4); stroke: none; }
.pa-art .t { stroke: var(--line-field); }

.pa-art .f {
    transform-box: fill-box;
    transform-origin: center;
    animation: pa-float 4s ease-in-out 600ms infinite;
}

.pa-art .wv { animation: pa-pulse 2.4s ease-in-out infinite; }

div:has(> .pa-art) { padding-block: var(--space-8) var(--space-10); }
div[data-compact]:has(> .pa-art) { padding-block: var(--space-6) var(--space-8); }
div[data-compact]:has(> .pa-art) > .pa-art { width: 148px; }
div[data-kind="filtered"]:has(> .pa-art) > .pa-art { width: 116px; }

@keyframes pa-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pa-float { 50% { transform: translateY(-2px); } }
@keyframes pa-pulse { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
    .pa-art { animation: none; }
    .pa-art .f, .pa-art .wv { animation: none; }
}

html[data-motion="reduced"] .pa-art,
html[data-motion="reduced"] .pa-art .f,
html[data-motion="reduced"] .pa-art .wv { animation: none; }

/* --- Illustrations: dashboard, onboarding and error pages ------------------------------------------------------------------
   `.pd .pd-clear` lost to `.pd .pd-grid .po-card` (column), so the all-clear card stacked its mark above the text; the scene now sits left of it. */
.pd .pd-grid .pd-clear { flex-direction: row; align-items: center; gap: var(--space-4); }
.pd-clear-art { flex: none; width: 104px; margin: 0; }
.pd-clear > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 480px) {
    .pd-clear-art { width: 84px; }
}

.pa-art.pa-art-hero { width: 132px; margin: 0 0 var(--space-3); }

.pa-errorpage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
    justify-items: center;
    align-content: center;
    margin: 0;
    padding: var(--space-6) var(--space-4);
    background: var(--canvas-portal, #f7f7f5);
    color: var(--ink);
    font-family: var(--font-sans);
}

.pa-error {
    display: flex;
    box-sizing: border-box;
    width: min(100%, 440px);
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    text-align: center;
}

.pa-error .pa-art { width: 200px; margin-bottom: var(--space-2); }
.pa-error-code { margin: 0; color: var(--ink-3); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.pa-error h1 { margin: var(--space-1) 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-h1); line-height: 1.15; }
.pa-error-body { max-width: 36ch; margin: 0; color: var(--ink-2); font-size: var(--text-body-lg); line-height: 1.5; }
.pa-error-actions { display: flex; flex-wrap: wrap; justify-content: center; margin-top: var(--space-6); gap: var(--space-2); }

/* --- Sign-in pages: a quiet backdrop and a settling panel (design/portal-beautify) ------------------------------------------
   Only a lime glow rising from the bottom and a faint dot grid that fades towards the edges, drawn with gradients (no image).
   The panel settles in once (opacity + 8 px, 200 ms); both are off for reduced motion. */
.pa-auth {
    isolation: isolate;
    background-image: radial-gradient(70% 50% at 50% 112%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
}

.pa-auth::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 8%) 1px, transparent 1.6px) 0 0 / 24px 24px;
    content: "";
    mask-image: radial-gradient(75% 75% at 50% 45%, #000 20%, transparent 100%);
    pointer-events: none;
}

.pa-auth > section { animation: pa-settle var(--dur-base, 200ms) var(--ease-out, cubic-bezier(0.2, 0, 0, 1)) both; }

@keyframes pa-settle { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
    .pa-auth > section { animation: none; }
}

html[data-motion="reduced"] .pa-auth > section { animation: none; }

/* --- Touch targets (design/portal-beautify) -------------------------------------------------------------------------------
   Controls that the portal draws itself reach 44 px on touch (fss-core's shared controls stay at its own 40 px). Only the box grows;
   the glyph and the text keep their size. */
@media (pointer: coarse), (max-width: 640px) {
    .portal-search-icon,
    .pd-customize,
    .pd-site-visit {
        min-width: 44px;
        min-height: 44px;
    }

    .portal-credit-chip {
        min-height: 44px;
    }

    .pd-site-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* SMS compose, "Wanneer versturen": the date field slides open under the pill control (grid 0fr -> 1fr). */
.portal-sms-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 220ms var(--ease-out, ease), opacity 160ms ease;
}
.portal-sms-reveal[data-open] {
    grid-template-rows: 1fr;
    opacity: 1;
}
.portal-sms-reveal-inner {
    min-height: 0;
    overflow: hidden;
}
.portal-sms-when .portal-sms-sendat {
    margin-top: var(--space-3);
    padding: 1px;
}
@media (max-width: 1023px) {
    .portal-sms-when.portal-sms-when [role="radiogroup"] > label {
        min-height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .portal-sms-reveal {
        transition: none;
    }
}

/* --- App context navigation (feature/app-context-nav) --------------------------------------------------------------------------
   Inside FullStack Direct, Hub or Telefonie the sidebar, bottom bar and Meer sheet carry that app's menu (App\Support\AppNav) and the
   brand is the product: its mark and name instead of the FullStack Studio wordmark. The switch between two apps is a short fade/slide of
   the new menu (transform and opacity only; public/js/motion.js sets [data-app-swap] when the app changes on a soft navigation). */
.portal-side-brand--app {
    min-width: 0;
    gap: var(--space-3);
    color: var(--ink);
    text-decoration: none;
}
.portal-side-appmark {
    display: block;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 22%;
}
.portal-side-appname {
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-side-brand--app:focus-visible {
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-nav .portal-appnav-heading {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.portal-appnav-foot {
    display: grid;
    gap: 2px;
    margin-top: auto;
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
}
.portal-appnav-stacko {
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.portal-appnav-back {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--ink-3);
    font-size: var(--text-sm);
    text-decoration: none;
}
.portal-appnav-back svg {
    flex: none;
    transition: transform var(--dur-base, 200ms) var(--ease-out, ease-out);
}
.portal-appnav-back:hover {
    color: var(--ink);
}
.portal-appnav-back:hover svg {
    transform: translateX(-3px);
}
.portal-appnav-back:focus-visible {
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
    outline: none;
}
.portal-mtop-brand--app {
    min-width: 0;
    gap: var(--space-2);
    color: var(--ink);
    text-decoration: none;
}
.portal-mtop-appmark {
    display: block;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 22%;
}
.portal-mtop-appname {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
@media (max-width: 479px) {
    .portal-mtop-appname {
        display: none;
    }
}
@keyframes portal-app-swap {
    from { opacity: 0; transform: translateX(-10px); }
}
@keyframes portal-app-swap-up {
    from { opacity: 0; transform: translateY(8px); }
}
.portal-side[data-app-swap] .portal-side-brand,
.portal-side[data-app-swap] .portal-appnav-foot {
    animation: portal-app-swap 240ms var(--ease-out, ease-out) both;
}
.portal-side[data-app-swap] .portal-nav-row {
    animation: portal-app-swap 260ms var(--ease-out, ease-out) both;
}
.portal-side[data-app-swap] .portal-nav-row:nth-child(2) { animation-delay: 25ms; }
.portal-side[data-app-swap] .portal-nav-row:nth-child(3) { animation-delay: 50ms; }
.portal-side[data-app-swap] .portal-nav-row:nth-child(4) { animation-delay: 75ms; }
.portal-side[data-app-swap] .portal-nav-row:nth-child(5) { animation-delay: 100ms; }
.portal-side[data-app-swap] .portal-nav-row:nth-child(n+6) { animation-delay: 125ms; }
.portal-appbar[data-app-swap] > * {
    animation: portal-app-swap-up 220ms var(--ease-out, ease-out) both;
}
@media (prefers-reduced-motion: reduce) {
    .portal-side[data-app-swap] .portal-side-brand,
    .portal-side[data-app-swap] .portal-appnav-foot,
    .portal-side[data-app-swap] .portal-nav-row,
    .portal-appbar[data-app-swap] > * {
        animation: none;
    }
    .portal-appnav-back svg { transition: none; }
}
html[data-motion="reduced"] .portal-side[data-app-swap] .portal-side-brand,
html[data-motion="reduced"] .portal-side[data-app-swap] .portal-appnav-foot,
html[data-motion="reduced"] .portal-side[data-app-swap] .portal-nav-row,
html[data-motion="reduced"] .portal-appbar[data-app-swap] > * {
    animation: none;
}

/* ---------- Design loop 1 (30 Oct 2026) ----------
   Overview rows are equal height: the card fills its cell (the rule above stretches it), so a short card no longer floats above dead space.
   A row that swipes sideways hints at it: the right edge fades and the fade is gone at the end of the row (browsers without scroll
   timelines keep a plain row). Card headers on a phone keep their action next to the title instead of dropping it to a second line.
   Written without new .admin-/.fss-/.pv- selectors (CSS ratchet): structure and data attributes only. */
@property --portal-fade-end { syntax: "<length>"; inherits: false; initial-value: 28px; }
@keyframes portal-fade-end { to { --portal-fade-end: 0px; } }
@media (max-width: 1179px) {
    @supports (animation-timeline: scroll(self inline)) {
        .pd-apps-list {
            -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--portal-fade-end)), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - var(--portal-fade-end)), transparent);
            animation: portal-fade-end linear both;
            animation-timeline: scroll(self inline);
            animation-range: calc(100% - 48px) 100%;
        }
    }
}
@media (pointer: coarse) {
    .portal-credit-chip { min-height: 44px; }
    .sms-sched-cancel { min-height: 44px; }
    a.sms-sched-title { padding-block: 12px; margin-block: -12px; }
}

/* Design loop 1, round 2. On a phone an empty state is a hint, not a poster: smaller scene, tighter padding, text kept off the screen edge
   (secondary empty states used to stack to ~250px each on Team and Security). The usage card title follows the other card titles. */
@media (max-width: 640px) {
    .pa-art { width: 124px; }
    div:has(> .pa-art) { padding-block: var(--space-5) var(--space-6); padding-inline: var(--space-5); }
    div[data-compact]:has(> .pa-art) { padding-block: var(--space-4) var(--space-5); }
    div[data-compact]:has(> .pa-art) > .pa-art { width: 104px; }
    div[data-kind="filtered"]:has(> .pa-art) > .pa-art { width: 96px; }
    div:has(> .pa-art) > :is(strong, p) { text-wrap: balance; }
    .portal-chrome .portal-limit-title { font-size: var(--text-md); }
}
/* loop2:start Design loop 2, round 1. Dashboard flows in columns (no stretched cards with blank space), address block without the idle status gap,
   one save button style, contacts/domains/automations on a phone, calm credit tile. */
/* The grid measures its widgets (inline script in overview.blade.php) and gives each a row span of 2px rows, so a short card leaves no hole
   and the next card slides up. Without script, or while customizing, the plain grid above stays. */
@media (min-width: 768px) {
    .pd-grid[data-flow] { grid-auto-rows: 2px; row-gap: 0; margin-bottom: -16px; }
    .pd-grid[data-flow] > .pd-w { align-self: start; grid-row-end: span var(--pd-span, 1); }
    [data-dash-editing] .pd-grid[data-flow] { grid-auto-rows: auto; row-gap: 16px; margin-bottom: 0; }
    [data-dash-editing] .pd-grid[data-flow] > .pd-w { grid-row-end: auto !important; align-self: stretch; }
}
.pa-addr > p[data-state="idle"] { display: none; }
.po-overview .po-credit-figure { margin: 6px 0 2px; color: var(--ink); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.portal-chrome main li[data-interactive] > div:first-child > a { text-decoration: none; }
/* Team: the avatar sits on the name line (not centred against a four-line row) and the row menu stays top right, so role and area chips read as one group. */
.portal-chrome :is([data-team-member], [data-team-invite], [data-team-link]) { position: relative; align-items: flex-start; padding-block: var(--space-3); }
.portal-chrome :is([data-team-member], [data-team-invite], [data-team-link]) > :first-child { margin-top: 2px; }
.portal-chrome :is([data-team-member], [data-team-invite], [data-team-link]) > :nth-child(2) { padding-right: 44px; }
.portal-chrome [data-team-link] > :nth-child(2) { padding-right: 88px; }
.portal-chrome :is([data-team-member], [data-team-invite], [data-team-link]) .portal-team-actions { position: absolute; top: 10px; right: var(--space-3); margin: 0; }
.portal-chrome :is([data-team-member], [data-team-invite], [data-team-link]) .portal-team-foot { margin-top: 6px; }
/* One KPI tile on its own (Websites) stays tile-sized instead of a 976px bar. */
@media (min-width: 768px) {
    .portal-chrome main [data-cols][data-count="1"] { grid-template-columns: minmax(0, 360px); }
}
/* Security: single-line fields do not need 800px; labels and inputs stop at a readable width. */
@media (min-width: 768px) {
    .portal-chrome form[action^="/security/"] label { max-width: 480px; }
}
@media (max-width: 640px) {
    /* An odd last KPI tile (3 or 5 in a two-column grid) takes the full row instead of leaving a hole. */
    .portal-chrome main [data-cols="auto"]:is([data-count="3"], [data-count="5"]) > :last-child { grid-column: 1 / -1; }
    /* Contacts: the company sits on its own line under the number instead of wrapping right-aligned beside the name. */
    .portal-contacts-table li[data-interactive] { grid-template-columns: minmax(0, 1fr) auto; }
    .portal-contacts-table li[data-interactive] > div:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .portal-contacts-table li[data-interactive] > div:nth-child(3):not(:last-child) {
        grid-column: 1 / -1;
        grid-row: 3;
        max-width: none;
        overflow: hidden;
        color: var(--ink-3);
        font-weight: var(--font-regular, 400);
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Domains: the DNS button belongs to the name line, not the middle of the row; names wrap at hyphens, not inside a word. */
    .portal-chrome main li[data-variant="domain"][data-variant] > div:last-child { flex-wrap: nowrap; align-items: center; align-self: start; margin-top: 0; }
    .portal-chrome main li[data-variant="domain"] > div:nth-child(2) { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
    /* Automation templates: one swipeable row instead of five stacked cards. */
    .portal-chrome .portal-auto-template-grid {
        position: relative;
        display: flex;
        gap: var(--space-3);
        margin-inline: calc(var(--space-4) * -1);
        padding: 2px var(--space-4) var(--space-2);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: var(--space-4);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .portal-chrome .portal-auto-template-grid::-webkit-scrollbar { display: none; }
    .portal-chrome .portal-auto-template-grid > li { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
    .portal-chrome .portal-auto-template-body p:not(.portal-auto-template-requires) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .portal-call-card div:last-child > button:only-child { width: 100%; }
}
/* loop2:end */
/* hub-app:start: the website switcher and groups of FullStack Hub, and its focus header. */
.portal-nav .portal-appnav-group { margin-block: var(--space-3) var(--space-1); padding-top: var(--space-3); }
.portal-hubsite { display: grid; min-width: 0; gap: var(--space-1); }
.portal-hubsite[data-variant="side"] { position: relative; margin-bottom: var(--space-2); }
.portal-hubsite[data-variant="side"] .portal-hubsite-panel { position: absolute; z-index: 30; top: calc(100% + var(--space-1)); right: 0; left: 0; box-shadow: var(--shadow-2); }
.portal-hubsite-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-1) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-3); cursor: pointer; font: inherit; text-align: left; }
.portal-hubsite-toggle:hover { border-color: var(--ink-3); }
.portal-hubsite-toggle:focus-visible,
.portal-hubsite-option:focus-visible,
.portal-hubsite-all:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.portal-hubsite-toggle svg { flex: none; }
.portal-hubsite-copy { display: grid; min-width: 0; }
.portal-hubsite-copy small { color: var(--ink-3); font-size: 12px; line-height: 16px; }
.portal-hubsite-copy strong { overflow: hidden; color: var(--ink); font-size: var(--text-sm); font-weight: var(--font-semibold); line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.portal-hubsite-panel { display: grid; gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.portal-hubsite-filter { width: 100%; min-height: 40px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.portal-hubsite-list { display: grid; grid-template-columns: minmax(0, 1fr); max-height: 264px; gap: 2px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.portal-hubsite-option,
.portal-hubsite-all { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-2); border-radius: var(--radius-sm); color: var(--ink); font-size: var(--text-sm); text-decoration: none; }
.portal-hubsite-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-hubsite-option[aria-current] { font-weight: var(--font-semibold); }
.portal-hubsite-option:hover,
.portal-hubsite-all:hover { background: var(--surface-2); }
.portal-hubsite-all { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: var(--ink-3); }
.portal-hubsite-all[aria-current] { color: var(--ink); font-weight: var(--font-semibold); }
.portal-hubsite[data-variant="sheet"] { margin-bottom: var(--space-3); }
.portal-side[data-app="hub"] .portal-appnav-foot { position: sticky; z-index: 1; bottom: 0; margin-bottom: calc(-1 * var(--space-3)); padding-bottom: var(--space-3); background: var(--sidebar-bg); }
/* hub-app:end */
/* loop4:start */
/* Side rail next to a tall form: it follows the scroll instead of leaving a blank column under a short card. */
@media (min-width: 1024px) {
    [data-aside] { position: sticky; top: calc(var(--topbar-h) + var(--space-4)); }
}
/* Phase bars of a website row: every label keeps its own width (the core gives each item an equal share, which cut "Ontwerp" to "Ont..."). */
ol[data-variant="segments"][aria-label] > li[data-state] { flex: 1 1 auto; min-width: max-content; }
ol[data-variant="segments"][aria-label] { gap: var(--space-2); }
/* loop4:end */
/* rest1:start Design round "rest of the portal", round 1. */
/* The dashboard shortcut tiles repeat the sidebar, which is visible from 1024px up (every tile has its widget below as well). They stay on a phone,
   where the bottom bar only has four places. The tour falls back to the sidebar items (public/js/dashboard.js STEPS). */
@media (min-width: 1024px) {
    .pd-apps { display: none; }
}
/* Ticket list: the row shows only who is on turn (the sentence under the title already says it), so a title gets the width instead of a rail with two names.
   The help card next to the list is a fixed side column. */
.tk-lean > :not([data-active]) { display: none; }
@media (min-width: 1024px) {
    .tk-split { grid-template-columns: minmax(0, 1fr) 320px; }
}
/* rest1:end */
/* rest2:start Design round "rest of the portal", round 2. */
/* Dashboard: a wide widget always sits in the first two columns. Without it the wide ones waited for the tallest narrow card in the third column
   and left a blank band under the shorter card beside it; now each side stacks by itself and the narrow cards fill the rest. */
@media (min-width: 1180px) {
    .pd-grid[data-flow] > .pd-w[data-size="wide"] { grid-column: 1 / span 2; }
}
/* rest2:end */
/* rest3:start Design round "rest of the portal", round 3. */
/* One explanatory line under a list instead of the same sentence on every row. */
.dm-note { margin: var(--space-3) var(--space-1) 0; color: var(--ink-3); font-size: var(--text-sm); line-height: 20px; }
/* Domain rows from a tablet up: a very long name is cut with an ellipsis instead of pushing the DNS button to a new line, and the expiry text keeps its room. */
@media (min-width: 640px) {
    .dm-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dm-vis { min-width: 10rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .dm-name { max-width: 30ch; }
}
/* rest3:end */
/* rest3b */
.pd-welcome-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; }
@media (max-width: 479px) {
    [data-first-visit] .pd-clear-art { display: none; }
}
/* rest3b:end */
/* rest4:start */
.bl-hint { margin: calc(-1 * var(--space-2)) var(--space-1) 0; color: var(--ink-3); font-size: var(--text-sm); line-height: 20px; }
/* rest4:end */

/* The reset removes list markers; lists that are real lists (steps, benefits) get them back. */
.portal-direct-list { list-style: disc; }
.portal-direct-list > li::marker { color: var(--ink-3, currentColor); }

/* Text link that acts as a button gets a touch-sized hit area on a phone (44 px), without changing how it looks. */
@media (pointer: coarse) {
    .portal-voip-help > a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }
}

/* <x-search-field> (resources/views/components/search-field.blade.php): the standalone search bar, same look as the fss-core DataTable search.
   fss-core only styles `.admin-datatable-search input` inside the table controls and list-card heads, so the same rules are repeated here for the
   bars that sit anywhere else on a page. */
.pv-search-field {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 360px;
    flex: 1 1 280px;
}
.pv-search-field.pv-search-field--fill {
    max-width: none;
    flex-basis: 100%;
}
.pv-search-field input {
    width: 100%;
    height: var(--control-md);
    padding: 0 var(--space-8) 0 34px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--control-fill);
    box-shadow: none;
    color: var(--ink);
    font: inherit;
}
.pv-search-field input:hover {
    border-color: transparent;
    background: var(--control-fill-hover);
}
.pv-search-field input:focus {
    border-color: var(--focus-ring-color);
    background: var(--surface);
    box-shadow: var(--focus-ring);
    outline: 2px solid transparent;
    outline-offset: 2px;
}
@media (max-width: 760px) {
    .pv-search-field {
        max-width: none;
        flex-basis: 100%;
    }
}
/* A form that holds only a search bar (and hidden fields) above a list. */
.pv-search-form {
    margin-bottom: var(--space-3);
}

/* ---------- A11Y1: the view pills (x-fss::views override) mark the active one with aria-current only (aria-pressed is not allowed on a link) ---------- */

a[data-view][aria-current="page"] {
    background: var(--selection-ink);
    color: var(--surface);
}

a[data-view][aria-current="page"] > [data-count] {
    background: color-mix(in srgb, var(--surface) 18%, transparent);
    color: var(--surface);
}

a[data-view][aria-current="page"] > [data-count][data-zero] {
    background: none;
    color: color-mix(in srgb, var(--surface) 62%, transparent);
}

@media (forced-colors: active) {
    a[data-view][aria-current="page"] {
        border: 1px solid Highlight;
        background: Highlight;
        color: HighlightText;
        forced-color-adjust: none;
    }
}

/* ---------- A11Y1: the title of a row that opens a drawer is a real button (x-fss::row override, `opens`); looks like the plain title, the click handler stays on the <li> ---------- */

button[data-row-open] {
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

button[data-row-open]:focus-visible {
    border-radius: var(--radius-xs);
    box-shadow: var(--focus-ring);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* h1:start WP-H1: the page title in the top bar once the page's own heading has scrolled away (public/js/portal.js). The element is aria-hidden and keeps
   its place in the bar (opacity only), so showing it moves nothing. */
.portal-top-title {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--text-base, 15px);
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
    line-height: 20px;
    opacity: 0;
    pointer-events: none;
    text-overflow: ellipsis;
    transform: translateY(5px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
    visibility: hidden;
    white-space: nowrap;
}
.portal-top-title[data-shown] {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
    .portal-top-title, .portal-top-title[data-shown] { transform: none; transition: none; }
}
html[data-motion="reduced"] .portal-top-title, html[data-motion="reduced"] .portal-top-title[data-shown] { transform: none; transition: none; }
/* h1:end */

/* FullStack Direct settings (plan fsd-app-complete P2): quick replies and the block list sit in the same rows as the labels. */
.portal-inbox-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-inbox-fieldset:disabled {
    opacity: .72;
}
.portal-inbox-quicklist {
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
}
.portal-inbox-quickitem {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
}
.portal-inbox-quickkey {
    flex: none;
    max-width: 40%;
    overflow: hidden;
    padding: 1px var(--space-2);
    border-radius: var(--radius-xs);
    background: var(--sunken);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: var(--text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-inbox-quicktext {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
}
.portal-inbox-quicktext > strong,
.portal-inbox-quicktext > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-inbox-quicktext > small {
    color: var(--ink-3, var(--muted));
}
.portal-inbox-quickbtns {
    display: inline-flex;
    flex: none;
    gap: var(--space-1);
}
.portal-inbox-quickbar {
    margin-top: var(--space-2);
}
.portal-inbox-quickform {
    margin-top: var(--space-3);
}
.portal-inbox-quickform textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}
.portal-inbox-quickshort {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.portal-inbox-quickshort > input {
    flex: 1 1 auto;
}
.portal-inbox-quickchips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1-5, 6px);
    margin: var(--space-1) 0;
}
.portal-inbox-quickchip {
    padding: 2px var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: inherit;
    font: inherit;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: var(--text-sm);
    cursor: pointer;
}
.portal-inbox-quickchip:hover {
    background: var(--sunken);
}
.portal-inbox-quick {
    display: grid;
    gap: var(--space-2);
}
.portal-inbox-quickvars {
    display: grid;
    gap: var(--space-1);
}

/* Verified contacts: the check mark next to a name (plan fsd-app-complete D23). */
.ia-verified {
    display: inline-flex;
    flex: none;
    align-items: center;
    margin-inline-start: 4px;
    color: var(--verified, #1d9bf0);
    vertical-align: -2px;
}

.ia-verified svg {
    display: block;
}

/* The name cell keeps ellipsis on the text, the mark never shrinks away. */
.ia-row-name .ia-verified,
.ia-name .ia-verified {
    vertical-align: -2px;
}

/* App connect pages (FullStack Direct S8, auth layout): confirm, Embedded Signup, page picker and the problem screens. */
.portal-connect {
    display: grid;
    gap: var(--space-3);
}
.portal-connect h1 {
    margin: 0;
    overflow-wrap: anywhere;
}
.portal-connect p {
    margin: 0;
}
.portal-connect-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--ink);
}
.portal-connect-icon[data-tone="warning"] {
    background: color-mix(in srgb, var(--warning, #b45309) 14%, var(--surface));
    color: var(--warning, #b45309);
}
.portal-connect-kicker {
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 500;
}
.portal-connect-who {
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    overflow-wrap: anywhere;
}
.portal-connect-alt {
    text-align: center;
}
.portal-connect-pages {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    border: 0;
}
.portal-connect-pages legend {
    margin-bottom: var(--space-2);
    font-weight: 600;
}
.portal-connect-signup {
    display: grid;
    gap: var(--space-3);
}
.portal-connect-subtitle {
    margin: 0;
    font-size: 15px;
}
.portal-connect-list {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding-left: 1.2em;
    color: var(--ink-2);
}

/* A time of day on its own (x-hub.time-field): the select of the time half of a moment, as a control by itself. Lives in portal.css (not in date-field.css): the VoIP
   and automation pages load no extra stylesheet for it (QualityBudgetTest counts them). */
select.hub-timefield.hub-timefield {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-block: 0;
    padding-inline: var(--space-3) 36px;
    border: 1px solid var(--line-field, var(--line));
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    font-size: var(--text-base);
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
}
select.hub-timefield.hub-timefield:focus-visible { box-shadow: var(--focus-ring); outline: 0; }
select.hub-timefield.hub-timefield:disabled { opacity: .5; }

/* --- Proxy (plan proxy-gateway Task 11): one column on a phone; the endpoint and the usage sit next to each other from 1024 px.
   Only own `portal-proxy-*` classes (PortalCssRatchetTest). --- */
.portal-proxy-stack {
    display: grid;
    gap: var(--space-4);
}
.portal-proxy-top {
    display: grid;
    gap: var(--space-4);
    align-items: start;
}
.portal-proxy-endpoint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin: 0;
}
.portal-proxy-field:first-child {
    grid-column: 1 / -1;
}
.portal-proxy-field {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.portal-proxy-field dt {
    color: var(--ink-3);
    font-size: 12px;
}
.portal-proxy-field dd {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    min-width: 0;
}
.portal-proxy-field code,
.portal-proxy-username code {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 13px;
    overflow-wrap: anywhere;
}
h3.portal-proxy-subtitle.portal-proxy-subtitle {
    margin: var(--space-4) 0 var(--space-2);
    font-size: 13px;
    font-weight: 600;
}
.portal-proxy-note {
    margin: var(--space-3) 0 0;
    color: var(--ink-3);
    font-size: 13px;
}
.portal-proxy-terms {
    max-width: 68ch;
}
.portal-proxy-terms ul {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
    padding-left: 1.2em;
    list-style: disc;
}
.portal-proxy-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px var(--space-3);
    min-width: 0;
}
.portal-proxy-username {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-width: 0;
}
.portal-proxy-meta {
    color: var(--ink-3);
}
.portal-proxy-chart {
    min-height: 200px;
    /* The tooltips of the last bars reach past the card until the chart nudges them back on hover. */
    overflow-x: clip;
}
.portal-proxy-countries {
    display: grid;
    gap: var(--space-2);
}
.portal-proxy-picker {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.portal-proxy-search {
    width: 100%;
}
.portal-proxy-list {
    display: grid;
    gap: var(--space-2);
    max-height: 240px;
    overflow-y: auto;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line, var(--border));
    border-radius: 6px;
}
.portal-proxy-target {
    margin: 0;
}
.portal-proxy-password {
    display: grid;
    gap: var(--space-3);
}
.portal-proxy-label {
    display: block;
    margin-bottom: var(--space-1);
}
@media (min-width: 1024px) {
    .portal-proxy-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
