

body {
    background-color: var(--color-body-background);
    color: var(--color-text);
}


[hidden] {
    display: none !important;
}

a,
a:visited {
    color: var(--color-link);
    font-weight: normal;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-link-hover);
    text-decoration: none;
}

a:active {
    color: var(--color-link-pressed);
}


.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

a:disabled,
a[disabled] {
    color: var(--color-link-disabled);
    cursor: not-allowed;
}


.icon-arrow-down::before,
.icon-arrow-up::before,
.icon-arrow-left::before,
.icon-arrow-right::before {
    font-family: "tabler-icons";
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    display: inline-block;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-arrow-down::before {
    content: "\ea5f";
}

.icon-arrow-up::before {
    content: "\ea62";
}

.icon-arrow-left::before {
    content: "\ea60";
}

.icon-arrow-right::before {
    content: "\ea61";
}




.login-card {
    max-width: 420px;
    width: 100%;
    padding: 2.75rem 2.5rem;
    border-radius: var(--radius-2xl);
    background: var(--login-card-bg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}


.login-card__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.login-card__logo {
    display: block;
    width: auto;
    height: 38px;
    max-width: 100%;
    object-fit: contain;
}

.login-card__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--color-text-strong);
    text-align: center;
}

.login-card__subtitle {
    margin: -0.5rem 0 0;
    font-size: var(--text-body);
    color: var(--color-text-muted);
    text-align: center;
}


.login-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.login-card__row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: var(--text-body);
    color: var(--color-text);
}

.login-card__row label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-card__row input[type="text"],
.login-card__row input[type="password"] {
    border-radius: var(--radius-lg);
    border: 1px solid var(--login-field-border);
    padding: 0.65rem 0.85rem;
    font-size: var(--text-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--color-surface);
    box-sizing: border-box;
}

.login-card__row input[type="text"]:focus,
.login-card__row input[type="password"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--login-focus-ring);
}

.login-card__reset {
    text-align: right;
}

.login-card__reset a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.login-card__reset a:hover,
.login-card__reset a:focus {
    text-decoration: underline;
}


.login-card__actions {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-card__actions input[type="submit"] {
    width: 100%;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: var(--color-surface);
    font-size: var(--text-body);
    font-weight: 700;
    cursor: pointer;
}

.login-card__errornote {
    border-radius: var(--radius-xl);
    padding: 0.85rem 1rem;
    background: var(--login-error-bg);
    border: 1px solid var(--login-error-bd);
    color: var(--login-error-fg);
    font-size: var(--text-body);
    text-align: center;
    margin: 0 auto 1.2rem;
    max-width: 420px;
}


body.login {
    background: var(--login-backdrop);
}

body.login #header,
body.login .breadcrumbs,
body.login #user-tools,
body.login .content-nav {
    display: none;
}

body.login #container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
    background: transparent;
    width: auto;
}

body.login #content,
body.login .content-layout,
body.login .content-main.login-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: transparent;
}

body.login .content-main.login-content {
    width: min(450px, 100%);
}

body.login .content-main.login-content .login-card {
    margin: 0 auto;
}

body.login .messages {
    width: min(450px, 100%);
    margin: 0 auto 1rem;
}

body.login .errornote {
    margin-bottom: 1rem;
}




.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--app-sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--color-body-background);
    border-right: 1px solid var(--color-neutral-200);
    z-index: 200;
    box-shadow: var(--shadow-inset-hairline), 0 0 0 1px rgba(15, 23, 42, 0.02);
    transition: width 0.2s ease;
}

body.has-app-sidebar #container {
    padding-left: var(--app-sidebar-width) !important;
    min-height: 100vh;
    box-sizing: border-box;
    transition: padding-left 0.2s ease;
    
    min-width: 0;
}


.app-sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    min-height: var(--app-topbar-height);
    border-bottom: 1px solid var(--color-neutral-200);
    flex-shrink: 0;
}

.app-sidebar__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    min-width: 0;
}

.app-sidebar__logo {
    display: block;
    width: auto;
    height: 38px;
    max-width: 100%;
    object-fit: contain;
}

.app-sidebar__logo-mark {
    display: none; 
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.app-sidebar__collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    flex-shrink: 0;
}

.app-sidebar__collapse:hover {
    background: var(--color-neutral-100);
    color: var(--color-text);
}

.app-sidebar__collapse-icon {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}


.app-sidebar__nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}


.app-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font: inherit;
    font-size: var(--nav-item-size);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s var(--ease-spring), color 0.18s var(--ease-spring);
    position: relative;
}

.app-sidebar__item:hover,
.app-sidebar__item:focus-visible {
    background: var(--color-neutral-100);
    color: var(--color-primary);
    outline: none;
}


.app-sidebar__item:focus-visible {
    box-shadow: var(--shadow-focus);
}

.app-sidebar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color 0.15s ease;
}


.app-sidebar__icon .ti {
    font-size: 18px;
    line-height: 1;
    color: currentColor;
}

.app-sidebar__item:hover .app-sidebar__icon,
.app-sidebar__item:focus-visible .app-sidebar__icon {
    color: var(--color-primary);
}

.app-sidebar__label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}


.app-sidebar__link.is-active {
    background: var(--shell-active-ground);
    color: var(--color-primary);
}

.app-sidebar__link.is-active .app-sidebar__icon {
    color: var(--color-primary);
}


.app-sidebar__group {
    display: flex;
    flex-direction: column;
}

.app-sidebar__chevron {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.app-sidebar__group.is-open > .app-sidebar__group-toggle .app-sidebar__chevron {
    transform: rotate(180deg);
}

.app-sidebar__sublist {
    list-style: none;
    margin: 0.1rem 0 0.2rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.app-sidebar__group.is-open > .app-sidebar__sublist {
    max-height: 1000px;
}

.app-sidebar__subitem {
    display: block;
    padding: 0.45rem 0.8rem 0.45rem 3rem;
    border-radius: var(--radius-md);
    color: var(--nav-item-muted);
    font-size: var(--nav-item-size);
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.18s var(--ease-spring), color 0.18s var(--ease-spring),
        box-shadow 0.18s var(--ease-spring);
}


.app-sidebar__subitem:link,
.app-sidebar__subitem:visited {
    color: var(--nav-item-muted);
}

.app-sidebar__subitem:hover,
.app-sidebar__subitem:focus-visible {
    background: var(--color-neutral-100);
    color: var(--color-primary);
    outline: none;
}


.app-sidebar__subitem:focus-visible {
    box-shadow: var(--shadow-focus);
}


.app-sidebar__subitem.is-active {
    color: var(--color-primary);
    font-weight: 600;
    background: var(--shell-active-ground-soft);
    border-radius: var(--radius-md);
}


.app-sidebar__user {
    flex-shrink: 0;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--color-neutral-200);
}

.app-sidebar__user .header-user {
    width: 100%;
}

.app-sidebar__user .header-user__trigger {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-md);
}

.app-sidebar__user .header-user__trigger:hover {
    background: var(--color-neutral-100);
}

.app-sidebar__user .header-user__info {
    flex: 1 1 auto;
}

.app-sidebar__user .header-user__name {
    max-width: none;
}

.app-sidebar__user .header-user__chevron {
    margin-left: auto;
}


.app-sidebar__user .header-user__actions {
    top: auto;
    bottom: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    transform: translateY(6px);
}

.app-sidebar__user .header-user.is-open .header-user__actions {
    transform: translateY(0);
}


body.has-app-sidebar.app-sidebar-collapsed #container {
    padding-left: var(--app-sidebar-rail) !important;
}

body.app-sidebar-collapsed .app-sidebar {
    width: var(--app-sidebar-rail);
}

body.app-sidebar-collapsed .app-sidebar__top {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem 0.4rem;
}

body.app-sidebar-collapsed .app-sidebar__logo {
    display: none;
}

body.app-sidebar-collapsed .app-sidebar__logo-mark {
    display: block;
}

body.app-sidebar-collapsed .app-sidebar__collapse-icon {
    transform: rotate(180deg);
}

body.app-sidebar-collapsed .app-sidebar__nav {
    padding: 0.75rem 0.4rem 1rem;
}

body.app-sidebar-collapsed .app-sidebar__item {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

body.app-sidebar-collapsed .app-sidebar__label,
body.app-sidebar-collapsed .app-sidebar__chevron,
body.app-sidebar-collapsed .app-sidebar__sublist {
    display: none;
}

body.app-sidebar-collapsed .app-sidebar__user {
    padding: 0.6rem 0.4rem;
}

body.app-sidebar-collapsed .app-sidebar__user .header-user__trigger {
    justify-content: center;
    padding: 0.4rem;
}

body.app-sidebar-collapsed .app-sidebar__user .header-user__info,
body.app-sidebar-collapsed .app-sidebar__user .header-user__chevron {
    display: none;
}

body.app-sidebar-collapsed .app-sidebar__user .header-user__actions {
    left: 0;
    right: auto;
    min-width: 210px;
}




.header-user {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.header-user__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
}

.header-user__trigger:focus-visible {
    box-shadow: var(--shadow-focus);
}

.header-user.is-open .header-user__trigger {
    background: var(--color-neutral-100);
    box-shadow: var(--shadow-md);
}

.header-user__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: linear-gradient(140deg, var(--shell-active-ground) 0%, var(--shell-avatar-tint) 100%);
    border: 1px solid var(--shell-avatar-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.header-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-user__avatar-initials {
    font-size: var(--text-body);
    letter-spacing: 0.04em;
}

.header-user__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.header-user__name {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.header-user__position {
    font-size: var(--text-label);
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.7;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.header-user__chevron {
    font-size: 0.75rem;
    color: var(--color-text);
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.header-user.is-open .header-user__chevron {
    transform: rotate(180deg);
}

.header-user__actions {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    background: var(--color-body-background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateY(-6px);
}

.header-user.is-open .header-user__actions {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-user__actions li {
    width: 100%;
    list-style: none;
}

.header-user__actions li + li {
    border-top: 1px solid var(--color-border);
}

.header-user__actions a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--color-text);
    font-size: var(--text-body);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-user__actions a:hover,
.header-user__actions a:focus {
    background: var(--color-neutral-100);
    color: var(--color-link-hover);
}


.app-models {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-models__section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1.75rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-models__header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.app-models__eyebrow {
    display: none;
}

.app-models__title h2 {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--color-text-strong);
}

.app-models__title h2 a {
    color: inherit;
    text-decoration: none;
}

.app-models__title h2 a:hover,
.app-models__title h2 a:focus {
    color: var(--color-primary);
}

.app-models__description {
    margin: 0.25rem 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-body);
}

.app-models__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}

.app-model-card {
    background: var(--color-body-background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-hairline-strong);
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 180px;
    overflow: hidden;
}

.app-model-card__header {
    background: var(--color-body-background);
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

.app-model-card__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-circle);
    background: var(--shell-active-ground);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.app-model-card__icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.app-model-card__icon-svg .ti {
    font-size: var(--text-title);
    line-height: 1;
    color: currentColor;
}

.app-model-card__info {
    flex: 1;
    min-width: 0;
}

.app-model-card__footer {
    background: var(--color-card-footer-background);
    padding: 0.75rem 1.25rem;
    border-top: none;
}



#container .breadcrumbs {
    
    padding: var(--space-5) 40px var(--space-2);
    margin: 0;
    font-size: var(--nav-crumb-size);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
    color: var(--nav-crumb-color);
    background: transparent;
    border: none;
}

#container .breadcrumbs a {
    color: var(--nav-crumb-link);
    text-transform: none;
    text-decoration: none;
}

#container .breadcrumbs a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


#container .breadcrumbs .breadcrumbs__sep {
    color: var(--nav-crumb-sep);
    margin: 0 var(--nav-crumb-gap);
}


body.has-app-sidebar #content {
    padding-top: var(--space-1);
}




.page-header__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.page-header__title {
    margin: 0;
    font-size: var(--nav-title-size);
    font-weight: var(--nav-title-weight);
    line-height: var(--leading-tight);
    color: var(--nav-title-color);
}


.ds-overview__identity > .page-header {
    width: 100%;
}


.page-header__title-cluster {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    min-width: 0;
}

.page-header__title-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-body);
}

.page-header__title-dot {
    color: var(--color-text-subtle);
}


.ds-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    
    flex-wrap: wrap;
    row-gap: var(--space-3);
    padding: 0; 
    
    margin-bottom: var(--space-5);
    max-width: 100%;
    box-sizing: border-box;
}

.ds-app-header__title {
    flex: 0 0 auto;
}

.ds-app-header__title h1 {
    margin: 0;
    font-size: var(--nav-title-size);
    font-weight: var(--nav-title-weight);
    color: var(--nav-title-color);
    line-height: var(--leading-tight);
}

.ds-app-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .ds-app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .ds-app-header__title h1 {
        font-size: var(--text-title);
    }

    .ds-app-header__actions {
        flex-direction: column;
        align-items: stretch;
    }
}



#footer.admin-footer {
    padding: 12px 24px;
    text-align: right;
    font-size: var(--text-caption);
    line-height: 1.4;
    color: var(--admin-footer-color);
    opacity: 0.85;
}

#footer.admin-footer .admin-footer__commit {
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
}


body.has-app-sidebar #container {
    display: flex;
    flex-direction: column;
}

body.has-app-sidebar #content {
    flex: 1 0 auto;
}

body.has-app-sidebar #footer.admin-footer {
    flex: 0 0 auto;
    margin-top: auto;
}




.ds-table-wrapper {
    background: transparent;
    
    max-width: 100%;
    overflow-x: auto;
}


.ds-table-wrapper--reference {
    max-width: 100%;
    overflow-x: auto;
}


.ds-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    font-size: var(--text-label);
    margin: 0;
}


.ds-table thead th {
    padding: 10px 14px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-header-background);
    border-bottom: 0.5px solid var(--color-border);
    white-space: nowrap;
}

.ds-table thead a {
    color: var(--color-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.ds-table thead a:hover,
.ds-table thead a:focus {
    color: var(--color-primary);
}


.ds-table .sort-indicator {
    opacity: 0.45;
    font-size: var(--text-caption);
    margin-left: 3px;
    display: inline-block;
    line-height: 1;
    color: currentColor;
}

.ds-table th.sorted .sort-indicator {
    opacity: 1;
}


.ds-table tbody td {
    padding: 11px 14px;
    font-size: var(--text-label);
    color: var(--color-text);
    border-bottom: 0.5px solid var(--color-border);
    vertical-align: middle;
}

.ds-table tbody tr:last-child td {
    border-bottom: none;
}


.ds-table tbody tr,
.ds-table tbody tr:nth-child(odd),
.ds-table tbody tr:nth-child(even) {
    background-color: transparent;
}

.ds-table tbody tr:hover {
    background: var(--color-neutral-100);
}


.ds-table__row--link {
    cursor: pointer;
}


.ds-table tbody td:first-child a {
    color: var(--color-link);
    font-weight: 600;
}

.ds-table tbody td:first-child a:hover {
    text-decoration: underline;
}


.ds-table .num {
    color: var(--color-text-subtle);
    font-variant-numeric: tabular-nums;
}

.ds-table .qty {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ds-table .muted {
    color: var(--color-text-subtle);
}


.ds-table__actions-col,
.ds-table__actions-cell {
    text-align: center;
    vertical-align: middle;
}

.ds-table__edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px 5px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.ds-table tbody tr:hover .ds-table__edit-link,
.ds-table__edit-link:focus,
.ds-table__edit-link:focus-visible,
.ds-table__edit-link:focus-within {
    opacity: 1;
}

.ds-table__edit-link:hover,
.ds-table__edit-link:focus-visible {
    color: var(--color-primary);
    background: var(--color-neutral-100);
}

.ds-table__edit-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

button.ds-table__edit-link {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    margin: 0;
}

.ds-table__edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ds-table__edit-icon .ti {
    font-size: 16px;
    color: currentColor;
    line-height: 1;
}


.ds-table__empty {
    padding: 24px 14px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-label);
}


.ds-table--reference {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

.ds-table--changelist {
    table-layout: auto;
    width: 100%;
    max-width: 100%;
}

.ds-table--reference thead th:first-child:not(.ds-table__col--row-number),
.ds-table--reference tbody td:first-child:not(.ds-table__col--row-number),
.ds-table--changelist thead th:first-child,
.ds-table--changelist tbody td:first-child {
    width: 45%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.ds-table--reference th,
.ds-table--reference td,
.ds-table--changelist th,
.ds-table--changelist td {
    min-width: 0;
}

.ds-table--reference th.ds-table__col--row-number,
.ds-table--reference td.ds-table__col--row-number {
    width: 72px;
}

.ds-table--reference th.ds-table__col--fill,
.ds-table--reference td.ds-table__col--fill {
    width: auto;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    color: var(--color-text);
}

.ds-table--reference th.ds-table__col--is-active,
.ds-table--reference td.ds-table__col--is-active {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.ds-table--reference th.ds-table__actions-col,
.ds-table--reference td.ds-table__actions-cell {
    width: 52px;
    white-space: nowrap;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

.ds-table--changelist th.ds-table__actions-col,
.ds-table--changelist td.ds-table__actions-cell {
    width: 72px;
    white-space: nowrap;
}


.ds-table--compact thead th {
    padding: 8px 12px;
}

.ds-table--compact tbody td {
    padding: 6px 12px;
}

.ds-table--compact tbody tr:hover {
    background: transparent;
}

.ds-table--compact input,
.ds-table--compact select {
    height: 32px;
    padding: 0 8px;
    width: 100%;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-label);
    font-family: inherit;
}

.ds-table--compact input:focus,
.ds-table--compact select:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--color-primary);
}


.ds-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
    
    padding: var(--space-3) 0;
    border-top: 0.5px solid var(--color-border);
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.ds-table-pagination__info {
    color: var(--color-text-muted);
}

.ds-table-pagination__controls {
    display: flex;
    align-items: center;
}

.ds-table-pagination__pages {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ds-table-pagination__current {
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


.ds-table-pagination__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 9px;
    border-radius: var(--radius-md);
    color: var(--color-link);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ds-table-pagination__link .ti {
    font-size: 16px;
    line-height: 1;
}

.ds-table-pagination__link:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}


@media (pointer: coarse) {
    .ds-table-pagination__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
}

.ds-table-pagination__link:hover {
    background: var(--color-neutral-100);
}

.ds-table-pagination__link--disabled,
.ds-table-pagination__link--disabled:hover {
    color: var(--color-text-subtle);
    background: transparent;
    cursor: default;
}




.ds-search--header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 34px;
    padding: 0 10px;
    width: auto;
    min-width: 300px;
    max-width: 400px;
    flex: 0 1 auto;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-search--header:focus-within {
    box-shadow: var(--shadow-focus);
    border-color: var(--color-primary);
}

.ds-search--header .ds-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-subtle);
}

.ds-search--header .ds-search__icon .ti {
    font-size: 15px;
    line-height: 1;
    color: currentColor;
}

.ds-search--header .ds-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0;
    font-size: var(--text-label);
    font-family: inherit;
    color: var(--color-text);
}


.ds-search--header .ds-search__input:focus-visible {
    outline: none;
}

.ds-search--header .ds-search__input::placeholder {
    color: var(--color-text-subtle);
}


.cl-filter {
    height: 34px;
    padding: 0 38px 0 12px;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--text-label);
    font-family: inherit;
    color: var(--color-text-muted);
    background-color: var(--color-surface);
    cursor: pointer;
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2364748b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206l6%20-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.cl-filter:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--color-primary);
}

.cl-filter--active {
    color: var(--color-primary);
    border-color: var(--color-primary);
}


.ds-app-header__add-button,
.ds-app-header__extra-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ds-search--header {
        width: 100%;
        max-width: none;
    }

    .ds-app-header__add-button,
    .ds-app-header__extra-button {
        width: 100%;
        justify-content: center;
    }
}




.ds-overview {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: 0;
}


.ds-overview__identity {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}


.ds-passport__card {
    background: transparent;
    padding: 0;
}


.ds-passport__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}


.ds-passport__card-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-6);
    align-items: start;
}


.ds-passport__column {
    display: contents;
}

.ds-passport__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ds-passport__field--wide {
    grid-column: 1 / -1;
}


.ds-passport__term {
    margin: 0;
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.ds-passport__definition {
    margin: 0;
    font-size: var(--text-body);
    color: var(--color-text);
    word-break: break-word;
}


.ds-passport__muted {
    color: var(--color-text-subtle);
}


.ds-passport__link {
    color: var(--color-link);
}

.ds-passport__link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ds-passport__card-content {
        grid-template-columns: 1fr;
    }
}




.ds-status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}




.ds-status-tag--success,
.ds-status-tag--trained {
    background: var(--tone-success-solid);
    color: var(--color-surface);
}


.ds-status-tag--error {
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
}


.ds-status-tag--warning {
    background: var(--tone-warning-bg);
    color: var(--tone-warning-fg);
}


.ds-status-tag--unknown,
.ds-status-tag--started,
.ds-status-tag--processing,
.ds-status-tag--draft,
.ds-status-tag--marked {
    background: var(--tone-unknown-bg);
    color: var(--tone-unknown-fg);
}


.ds-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    margin-right: var(--space-2);
    vertical-align: middle;
    flex-shrink: 0;
}

.ds-status-dot--active {
    background: var(--tone-success-solid);
}

.ds-status-dot--inactive {
    background: var(--color-destructive);
}


.ds-status-dot--success {
    background: var(--tone-success-solid);
}

.ds-status-dot--error {
    background: var(--color-destructive);
}

.ds-status-dot--unknown {
    background: var(--tone-warning-fg);
}




.btn {
    font-family: inherit;
    font-size: var(--text-label);
    line-height: var(--leading-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 7px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 0.5px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s var(--ease-spring);
}


.btn::before,
.btn::after {
    content: none;
}

.btn:hover {
    background: var(--color-neutral-100);
}

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

.btn:disabled,
.btn[aria-disabled="true"],
.btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.btn:active:not(:disabled):not(.btn--disabled) {
    transform: scale(0.98);
}


.btn__text {
    display: inline-block;
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn__icon .ti {
    font-size: 18px;
    line-height: 1;
}

.btn__icon--left {
    margin-right: calc(-1 * var(--space-1));
}

.btn__icon--right {
    margin-left: calc(-1 * var(--space-1));
}


.btn--icon {
    padding: 7px 9px;
}


@media (pointer: coarse) {
    .btn--icon {
        min-width: 44px;
        min-height: 44px;
    }
}


.btn--primary.btn--filled {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

.btn--primary.btn--filled:hover:not(:disabled):not(.btn--disabled) {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn--primary.btn--filled:active:not(:disabled):not(.btn--disabled),
.btn--primary.btn--filled:focus-visible:not(:disabled):not(.btn--disabled) {
    background: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}

.btn--primary.btn--filled:disabled,
.btn--primary.btn--filled.btn--disabled {
    background: var(--color-primary-disabled);
    border-color: var(--color-primary-disabled);
}

.btn--primary.btn--outlined {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--primary.btn--outlined:hover:not(:disabled):not(.btn--disabled) {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn--primary.btn--outlined:active:not(:disabled):not(.btn--disabled),
.btn--primary.btn--outlined:focus-visible:not(:disabled):not(.btn--disabled) {
    color: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}

.btn--primary.btn--outlined:disabled,
.btn--primary.btn--outlined.btn--disabled {
    background: var(--color-header-background);
    color: var(--color-text-subtle);
    border-color: var(--color-border-strong);
}


.btn--secondary.btn--filled {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

.btn--secondary.btn--filled:hover:not(:disabled):not(.btn--disabled) {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn--secondary.btn--filled:active:not(:disabled):not(.btn--disabled),
.btn--secondary.btn--filled:focus-visible:not(:disabled):not(.btn--disabled) {
    background: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}

.btn--secondary.btn--filled:disabled,
.btn--secondary.btn--filled.btn--disabled {
    background: var(--color-primary-disabled);
    border-color: var(--color-primary-disabled);
}

.btn--secondary.btn--outlined {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary.btn--outlined:hover:not(:disabled):not(.btn--disabled) {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn--secondary.btn--outlined:active:not(:disabled):not(.btn--disabled),
.btn--secondary.btn--outlined:focus-visible:not(:disabled):not(.btn--disabled) {
    color: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}

.btn--secondary.btn--outlined:disabled,
.btn--secondary.btn--outlined.btn--disabled {
    background: var(--color-header-background);
    color: var(--color-text-subtle);
    border-color: var(--color-border-strong);
}


.btn--tertiary.btn--outlined,
.btn--tertiary.btn--filled {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn--tertiary.btn--outlined:hover:not(:disabled):not(.btn--disabled),
.btn--tertiary.btn--filled:hover:not(:disabled):not(.btn--disabled) {
    background: var(--color-neutral-100);
}

.btn--tertiary.btn--outlined:active:not(:disabled):not(.btn--disabled),
.btn--tertiary.btn--outlined:focus-visible:not(:disabled):not(.btn--disabled),
.btn--tertiary.btn--filled:active:not(:disabled):not(.btn--disabled),
.btn--tertiary.btn--filled:focus-visible:not(:disabled):not(.btn--disabled) {
    background: var(--color-neutral-200);
}

.btn--tertiary.btn--outlined:disabled,
.btn--tertiary.btn--outlined.btn--disabled,
.btn--tertiary.btn--filled:disabled,
.btn--tertiary.btn--filled.btn--disabled {
    background: var(--color-header-background);
    color: var(--color-text-subtle);
}



.btn--destructive.btn--outlined {
    background: var(--color-surface);
    color: var(--color-destructive);
    border-color: var(--color-destructive-border); 
}

.btn--destructive.btn--outlined:hover:not(:disabled):not(.btn--disabled) {
    background: var(--color-destructive-bg); 
    color: var(--color-destructive-hover);
}

.btn--destructive.btn--outlined:active:not(:disabled):not(.btn--disabled),
.btn--destructive.btn--outlined:focus-visible:not(:disabled):not(.btn--disabled) {
    color: var(--color-destructive-pressed);
    border-color: var(--color-destructive-pressed);
}

.btn--destructive.btn--outlined:disabled,
.btn--destructive.btn--outlined.btn--disabled {
    background: var(--color-header-background);
    color: var(--color-destructive-disabled);
    border-color: var(--color-destructive-border);
}


.btn--destructive.btn--filled {
    background: var(--color-destructive);
    color: var(--color-surface);
    border-color: var(--color-destructive);
}

.btn--destructive.btn--filled:hover:not(:disabled):not(.btn--disabled) {
    background: var(--color-destructive-hover);
    border-color: var(--color-destructive-hover);
}

.btn--destructive.btn--filled:active:not(:disabled):not(.btn--disabled),
.btn--destructive.btn--filled:focus-visible:not(:disabled):not(.btn--disabled) {
    background: var(--color-destructive-pressed);
    border-color: var(--color-destructive-pressed);
}

.btn--destructive.btn--filled:disabled,
.btn--destructive.btn--filled.btn--disabled {
    background: var(--color-destructive-disabled);
    border-color: var(--color-destructive-disabled);
}


.btn__icon-circle {
    width: 24px;
    height: 24px;
    margin-right: -4px;
    border-radius: var(--radius-circle);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18); 
    transition: transform 0.25s var(--ease-spring), background-color 0.25s var(--ease-spring);
}

.btn__icon-circle .ti {
    font-size: 15px;
    line-height: 1;
}

.btn--primary.btn--filled:hover:not(:disabled):not(.btn--disabled) .btn__icon-circle {
    transform: translate(2px, -1px) scale(1.06);
    background: rgba(255, 255, 255, 0.28); 
}




.ds-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none; 
}

.ds-modal[aria-hidden="false"] {
    pointer-events: auto;
}

.ds-modal__backdrop {
    position: fixed;
    inset: 0;
    background: var(--drawer-scrim);
    opacity: 0;
    transition: var(--drawer-fade);
}

.ds-modal[aria-hidden="false"] .ds-modal__backdrop {
    opacity: 1;
}

.ds-modal__dialog {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    max-height: 100vh;
    width: var(--drawer-width);
    max-width: 100vw;
    background: var(--color-surface);
    box-shadow: var(--drawer-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    transform: translateX(100%);
    transition: var(--drawer-slide);
}

.ds-modal[aria-hidden="false"] .ds-modal__dialog {
    transform: translateX(0);
}


.ds-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 0.5px solid var(--color-border);
}

.ds-modal__header h2 {
    margin: 0;
    font-size: var(--text-body); 
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
}


.ds-modal__close {
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ds-modal__close .ti,
.ds-modal__close svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ds-modal__close:hover {
    background: var(--color-neutral-100);
    color: var(--color-text);
}

.ds-modal__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}


.ds-modal__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
}

.ds-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


.ds-modal__default-url {
    display: none;
}

body.ds-modal-open {
    overflow: hidden;
}



html.ds-popup-page,
body.ds-popup-page {
    background: var(--color-surface);
    overflow: hidden !important;
    height: 100%;
    width: 100%;
}

body.ds-popup-page #header,
body.ds-popup-page #user-tools,
body.ds-popup-page #app-sidebar,
body.ds-popup-page .breadcrumbs,
body.ds-popup-page .content-nav {
    display: none;
}

body.ds-popup-page #container {
    padding-left: 0 !important;
}

body.ds-popup-page #content,
body.ds-popup-page #content-main {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

body.ds-popup-page .content-layout {
    display: block;
    height: 100%;
}

body.ds-popup-page .content-main {
    width: 100%;
}

body.ds-popup-page .ds-popup {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--color-surface);
    overflow: hidden;
}


body.popup {
    background: var(--color-surface);
}

body.popup .content-nav {
    display: none;
}


.ds-popup__card {
    width: min(600px, 100%);
    height: 100%;
    max-height: 100%;
    background: var(--color-surface);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ds-popup__header {
    display: none; 
}

.ds-popup__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.ds-popup__subtitle {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-label);
}


.ds-popup__body {
    flex: 1;
    min-height: 0;
    padding: var(--space-5);
    background: var(--color-surface);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ds-popup__body::-webkit-scrollbar {
    display: none;
}

.ds-popup__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ds-popup__fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}


.ds-popup__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ds-popup__label {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    line-height: 1.4;
}

.ds-popup__required {
    color: var(--color-destructive);
    margin-left: var(--space-1);
}

.ds-popup__control input:not([type="checkbox"]):not([type="radio"]),
.ds-popup__control select,
.ds-popup__control textarea {
    width: 100%;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-body);
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-popup__control input:not([type="checkbox"]):not([type="radio"]):focus,
.ds-popup__control select:focus,
.ds-popup__control textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

.ds-popup__control input::placeholder,
.ds-popup__control textarea::placeholder {
    color: var(--color-text-subtle);
}


.ds-popup__control select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.ds-popup__control textarea {
    min-height: 96px;
    resize: vertical;
}

.ds-popup__help {
    margin: var(--space-1) 0 0;
    font-size: var(--text-caption);
    color: var(--color-text-subtle);
    line-height: 1.4;
}


.ds-popup__errors,
.ds-popup__nonfield-errors ul {
    list-style: none;
    margin: var(--space-1) 0 0;
    padding: 0;
    color: var(--color-destructive);
    font-size: var(--text-caption);
}

.ds-popup__nonfield-errors {
    background: var(--tone-error-bg);
    border: 0.5px solid var(--color-destructive-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    color: var(--tone-error-fg);
    font-size: var(--text-caption);
}

.ds-popup__field--error .ds-popup__control input,
.ds-popup__field--error .ds-popup__control select,
.ds-popup__field--error .ds-popup__control textarea {
    border-color: var(--color-destructive);
}


.ds-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding-top: var(--space-2);
    margin-top: var(--space-2);
}

.ds-popup__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-header-background);
    flex-shrink: 0;
}


.ds-popup__submit.btn,
.ds-popup__submit.button {
    background: var(--color-primary);
    color: var(--color-surface);
    border: 0.5px solid var(--color-primary);
}

.ds-popup__submit.btn:hover,
.ds-popup__submit.button:hover,
.ds-popup__submit.btn:focus-visible,
.ds-popup__submit.button:focus-visible {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.ds-popup__submit.btn:active,
.ds-popup__submit.button:active {
    background: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}

.ds-popup__cancel.btn,
.ds-popup__cancel.button,
.ds-modal__cancel.btn,
.ds-modal__cancel.button {
    border: none !important;
    background: transparent !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
}

.ds-popup__cancel.btn:hover,
.ds-popup__cancel.button:hover,
.ds-popup__cancel.btn:focus-visible,
.ds-popup__cancel.button:focus-visible,
.ds-modal__cancel.btn:hover,
.ds-modal__cancel.button:hover,
.ds-modal__cancel.btn:focus-visible,
.ds-modal__cancel.button:focus-visible {
    background: var(--color-neutral-100) !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
    border: none !important;
}


.ds-modal .select2-container,
.ds-modal .select2-dropdown {
    z-index: 1200;
}



body.ds-modal-placeholder #header,
body.ds-modal-placeholder .breadcrumbs,
body.ds-modal-placeholder .content-title,
body.ds-modal-placeholder .object-tools,
body.ds-modal-placeholder .ds-tabs {
    display: none !important;
}

body.popup.ds-modal-placeholder {
    background: var(--color-surface);
}

body.popup.ds-modal-placeholder .content-nav {
    display: none;
}

body.popup.ds-modal-placeholder .content-main {
    width: 100%;
}

.ds-modal-placeholder__wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: var(--color-neutral-100);
}


.ds-modal-placeholder__card {
    width: min(840px, 100%);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14); 
    padding: var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ds-modal-placeholder__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--color-text);
}

.ds-modal-placeholder__subtitle {
    margin: var(--space-1) 0 0;
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.ds-modal-placeholder__body p {
    margin: 0;
    font-size: var(--text-body);
    color: var(--color-text-body);
}

.ds-modal-placeholder__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: var(--space-3);
    border-top: 0.5px solid var(--color-border);
}


.ds-modal-placeholder__alert {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.ds-modal-placeholder__alert--error {
    background: var(--tone-error-bg);
    border: 0.5px solid var(--color-destructive-border);
    color: var(--tone-error-fg);
}


.ds-modal-placeholder__fieldset {
    margin: var(--space-4) 0;
}

.ds-modal-placeholder__upload-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.ds-modal-placeholder__field-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.ds-modal-placeholder__result {
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: 0.5px solid #bfe0c5;
    background: var(--tone-success-bg);
    border-radius: var(--radius-md);
}

.ds-modal-placeholder__spaced {
    margin-top: var(--space-2);
}

.ds-modal-placeholder__debug-pre {
    white-space: pre-wrap;
}


.profile-view {
    margin-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.profile-view__chart,
.profile-view__table {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.profile-view__chart {
    min-height: 260px;
    max-height: 260px;
}

.profile-view__chart canvas {
    
    height: 100% !important;
}

.profile-view__chart-title {
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.profile-view__table-el {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-label);
}

.profile-view__table-el th,
.profile-view__table-el td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 0.5px solid var(--color-border);
    text-align: left;
}

.profile-view__table-el th {
    font-weight: 600;
    background: var(--color-header-background);
    color: var(--color-text);
}

.profile-view__table-el tr:last-child td {
    border-bottom: none;
}



.edit-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100; 
    pointer-events: none; 
}

.edit-drawer[aria-hidden="false"] {
    pointer-events: auto;
}


.edit-drawer__overlay {
    position: absolute;
    inset: 0;
    background: var(--drawer-scrim);
    opacity: 0;
    transition: var(--drawer-fade);
}

.edit-drawer[aria-hidden="false"] .edit-drawer__overlay {
    opacity: 1;
}


.edit-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: var(--drawer-width);
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    box-shadow: var(--drawer-shadow);
    transform: translateX(100%);
    transition: var(--drawer-slide);
}

.edit-drawer[aria-hidden="false"] .edit-drawer__panel {
    transform: translateX(0);
}


.edit-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 0.5px solid var(--color-border);
}


.edit-drawer__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
}


.edit-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1);
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.edit-drawer__close .ti,
.edit-drawer__close svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.edit-drawer__close:hover {
    background: var(--color-neutral-100);
    color: var(--color-text);
}

.edit-drawer__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}


.edit-drawer__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.edit-drawer__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

body.edit-drawer-open {
    overflow: hidden;
}




.ds-tabs {
    display: inline-flex;
    gap: 0;
    flex-wrap: wrap;
    background: var(--color-surface);
    
    border-bottom: 1px solid var(--color-border);
}

.ds-tabs__tab {
    position: relative;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600; 
    font-size: var(--text-label);
    white-space: nowrap;
    padding: 10px 14px; 
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    
    border-bottom: 2px solid transparent;
    margin-bottom: -1px; 
}


.ds-tabs__tab:hover,
.ds-tabs__tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}


.ds-tabs__tab:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.ds-tabs__tab:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .ds-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ds-tabs__tab {
        flex: 1 1 auto;
        min-width: fit-content;
        text-align: center;
    }
}


.ds-tab-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ds-tab-content__panel {
    display: none;
    background: transparent;
    padding: 0;
}

.ds-tab-content__panel.is-active {
    display: block;
}

.ds-tab-content__placeholder {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--color-text-body);
}

.ds-tab-content__placeholder h2 {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.ds-tab-content__placeholder p {
    margin: 0;
    font-size: var(--text-body);
}


.ds-tab-placeholder,
.ds-tab-empty {
    background: transparent;
    padding: var(--space-5);
    color: var(--color-text-muted);
    text-align: center;
}

.ds-tab-placeholder h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.ds-tab-placeholder p,
.ds-tab-empty {
    margin: 0;
    font-size: var(--text-body);
}


.ds-tab-empty.is-hidden,
.ds-tab-empty[hidden] {
    display: none;
}




.ds-popup__control.ds-square-with-unit {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.ds-popup__control.ds-square-with-unit input:not([type="checkbox"]):not([type="radio"]) {
    flex: 1 1 auto;
    width: auto;
}

.ds-popup__control.ds-square-with-unit select {
    flex: 0 0 auto;
    width: auto;
    min-width: 5.5rem;
}


body.change-form:not(.app-auth) .form-row.field-square.field-square_unit .flex-container.form-multiline {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}

body.change-form:not(.app-auth) .form-row.field-square.field-square_unit .fieldBox.field-square {
    flex: 1 1 auto;
}

body.change-form:not(.app-auth) .form-row.field-square.field-square_unit .fieldBox.field-square_unit {
    flex: 0 0 auto;
}

body.change-form:not(.app-auth) .form-row.field-square.field-square_unit .fieldBox.field-square_unit select {
    width: auto;
}




body.change-form:not(.app-auth) #content-main > .page-header {
    max-width: 960px;
    margin: 0 0 var(--space-5);
}

body.change-form:not(.app-auth) #content-main > .page-header .page-header__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--leading-tight);
}


body.change-form:not(.app-auth) .content-main {
    max-width: 960px;
}

body.change-form:not(.app-auth) .content-main > h1 {
    margin: 0 0 var(--space-5);
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--leading-tight);
}


body.change-form:not(.app-auth) #content-main > form > div > fieldset.module.aligned,
body.change-form:not(.app-auth) #content-main > form > fieldset.module.aligned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
    align-items: start;
    
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-6);
    margin: 0;
    box-shadow: var(--shadow-xs);
}


body.change-form:not(.app-auth) #content-main > form fieldset.module.aligned > h2,
body.change-form:not(.app-auth) #content-main > form fieldset.module.aligned > .description {
    grid-column: 1 / -1;
    margin: 0;
}

body.change-form:not(.app-auth) #content-main > form fieldset.module.aligned > h2 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

body.change-form:not(.app-auth) #content-main > form fieldset.module.aligned > .description {
    font-size: var(--text-label);
    color: var(--color-text-muted);
}


body.change-form:not(.app-auth) #content-main > form fieldset.module.aligned .form-row.wide,
body.change-form:not(.app-auth) #content-main > form fieldset.module.aligned .form-row:has(textarea) {
    grid-column: 1 / -1;
}


body.change-form:not(.app-auth) fieldset.module.aligned .form-row {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

body.change-form:not(.app-auth) .form-row .field-box {
    width: 100%;
    margin: 0;
    padding: 0;
}


body.change-form:not(.app-auth) fieldset.module.aligned .form-row .flex-container {
    display: block;
}

body.change-form:not(.app-auth) fieldset.module.aligned .form-row:has(input[type="checkbox"]) .flex-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

body.change-form:not(.app-auth) fieldset.module.aligned .form-row:has(input[type="checkbox"]) label {
    margin: 0;
}


body.popup.change-form:not(.app-auth) #content-main > form > div > fieldset.module.aligned,
body.popup.change-form:not(.app-auth) #content-main > form > fieldset.module.aligned {
    grid-template-columns: 1fr;
    border: none;
    box-shadow: none;
    border-radius: 0;
}


body.popup.change-form:not(.app-auth) .inline-group > fieldset.module {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

body.popup .page-header {
    display: none;
}

@media (max-width: 920px) {
    body.change-form:not(.app-auth) #content-main > form > div > fieldset.module.aligned,
    body.change-form:not(.app-auth) #content-main > form > fieldset.module.aligned {
        grid-template-columns: 1fr;
    }
}



body.change-form:not(.app-auth) .submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: flex-start;
    max-width: 960px;
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin: var(--space-5) 0 0;
    padding: var(--space-4) var(--space-5);
    border-top: 0.5px solid var(--color-border);
    background: var(--color-header-background);
    box-shadow: none;
}


body.change-form:not(.app-auth) .form-actions__cancel {
    max-width: 960px;
    margin: 0;
    padding: 0 var(--space-5) var(--space-4);
    background: var(--color-header-background);
}

body.change-form:not(.app-auth) .form-actions__cancel-link {
    display: inline-flex;
}


body.change-form:not(.app-auth) .submit-row input[type="submit"],
body.change-form:not(.app-auth) .submit-row a.deletelink,
body.change-form:not(.app-auth) .submit-row .deletelink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border-strong);
    font-size: var(--text-label);
    line-height: var(--leading-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}


body.change-form:not(.app-auth) .submit-row input[type="submit"].default {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-surface);
}

body.change-form:not(.app-auth) .submit-row input[type="submit"].default:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

body.change-form:not(.app-auth) .submit-row input[type="submit"].default:active,
body.change-form:not(.app-auth) .submit-row input[type="submit"].default:focus {
    background-color: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}


body.change-form:not(.app-auth) .submit-row input[type="submit"]:not(.default) {
    background-color: var(--color-surface);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

body.change-form:not(.app-auth) .submit-row input[type="submit"]:not(.default):hover {
    background-color: var(--color-neutral-100);
}


body.change-form:not(.app-auth) .submit-row a.deletelink,
body.change-form:not(.app-auth) .submit-row .deletelink {
    background-color: var(--color-surface);
    border-color: var(--color-destructive-border); 
    color: var(--color-destructive);
}

body.change-form:not(.app-auth) .submit-row a.deletelink:hover,
body.change-form:not(.app-auth) .submit-row .deletelink:hover {
    background-color: var(--color-destructive-bg); 
    color: var(--color-destructive-hover);
}

body.change-form:not(.app-auth) .submit-row input[type="submit"]:focus-visible,
body.change-form:not(.app-auth) .submit-row a.deletelink:focus-visible,
body.change-form:not(.app-auth) .submit-row .deletelink:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


body.change-form:not(.app-auth) .inline-group {
    grid-column: 1 / -1;
    margin: var(--space-5) 0 0;
}

body.change-form:not(.app-auth) .inline-group > fieldset.module {
    display: block;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    background: var(--color-surface);
}

body.change-form:not(.app-auth) .inline-group .inline-heading {
    margin: 0 0 var(--space-4);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}


body.change-form:not(.app-auth) .inline-group table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-body);
}

body.change-form:not(.app-auth) .inline-group thead th {
    padding: var(--space-2) var(--space-3);
    text-align: left;
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 0.5px solid var(--color-border-strong);
    white-space: nowrap;
}

body.change-form:not(.app-auth) .inline-group tbody td {
    padding: var(--space-2) var(--space-3);
    border-bottom: 0.5px solid var(--color-border);
    vertical-align: top;
}

body.change-form:not(.app-auth) .inline-group tbody tr:hover td {
    background: var(--color-neutral-100);
}


body.change-form:not(.app-auth) .inline-group .inline-related + .inline-related {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 0.5px solid var(--color-border);
}

body.change-form:not(.app-auth) .inline-group .inline-related > h3 {
    margin: 0 0 var(--space-3);
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text-muted);
}


body.app-facility.model-facility.change-form .changeform-navigation,
body.app-facility.model-facility.change-form .changeform-navigation.initialized,
body.app-facility.model-facility.change-form .object-tools,
body.app-facility.model-facility.change-form .object-tools.initialized,
body.app-facility.model-facility.change-form ul.object-tools,
body.app-facility.model-facility.change-form ul.object-tools.initialized,
body.app-facility.model-facilitytype.change-form .changeform-navigation,
body.app-facility.model-facilitytype.change-form .changeform-navigation.initialized,
body.app-facility.model-facilitytype.change-form .object-tools,
body.app-facility.model-facilitytype.change-form .object-tools.initialized,
body.app-facility.model-facilitytype.change-form ul.object-tools,
body.app-facility.model-facilitytype.change-form ul.object-tools.initialized {
    display: none !important;
}




body.change-form fieldset.module.aligned .form-row label,
body.change-form fieldset.module.aligned .aligned label {
    float: none;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0 0 var(--space-1);
    padding: 0;
    text-align: left;
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text);
}


body.change-form fieldset.module.aligned .form-row label.required::after {
    content: " *";
    color: var(--color-destructive);
    font-weight: 600;
}


body.change-form .form-row input.vTextField,
body.change-form .form-row input[type="text"],
body.change-form .form-row input[type="number"],
body.change-form .form-row input[type="email"],
body.change-form .form-row input[type="url"],
body.change-form .form-row input[type="password"],
body.change-form .form-row input[type="date"],
body.change-form .form-row input[type="datetime-local"],
body.change-form .form-row input[type="time"],
body.change-form .form-row select,
body.change-form .form-row textarea,
body.change-form .form-row textarea.vLargeTextField {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit; 
    font-size: var(--text-body);
    line-height: var(--leading-body);
    height: 36px;
    padding: 0 0.625rem;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.change-form .form-row input.vTextField:focus,
body.change-form .form-row input[type="text"]:focus,
body.change-form .form-row input[type="number"]:focus,
body.change-form .form-row input[type="email"]:focus,
body.change-form .form-row input[type="url"]:focus,
body.change-form .form-row input[type="password"]:focus,
body.change-form .form-row input[type="date"]:focus,
body.change-form .form-row input[type="datetime-local"]:focus,
body.change-form .form-row input[type="time"]:focus,
body.change-form .form-row select:focus,
body.change-form .form-row textarea:focus,
body.change-form .form-row textarea.vLargeTextField:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}


body.change-form .form-row input:disabled,
body.change-form .form-row select:disabled,
body.change-form .form-row textarea:disabled {
    background-color: var(--color-neutral-100);
    color: var(--color-text-subtle);
    cursor: not-allowed;
}

body.change-form .form-row input::placeholder,
body.change-form .form-row textarea::placeholder {
    color: var(--color-text-subtle);
}


body.change-form .form-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2364748b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206l6%20-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}


body.change-form .form-row select[multiple],
body.change-form .form-row select[size] {
    background-image: none;
    padding-right: 0.75rem;
}


body.change-form .form-row textarea,
body.change-form .form-row textarea.vLargeTextField {
    height: auto;
    min-height: 7.5rem;
    padding: 0.5rem 0.625rem;
    resize: vertical;
}


body.change-form .form-row input[type="checkbox"],
body.change-form .form-row input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
    vertical-align: middle;
}


body.change-form .form-row.errors input,
body.change-form .form-row.errors select,
body.change-form .form-row.errors textarea {
    border-color: var(--color-destructive);
}

body.change-form .form-row.errors input:focus,
body.change-form .form-row.errors select:focus,
body.change-form .form-row.errors textarea:focus {
    box-shadow: 0 0 0 3px rgba(242, 46, 46, 0.2); 
}


body.change-form .form-row .errorlist {
    margin: var(--space-1) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-caption);
    line-height: 1.4;
    color: var(--color-destructive);
}


body.change-form .errornote {
    margin: 0 0 var(--space-4);
    padding: 0.625rem 0.875rem;
    border: 0.5px solid var(--color-destructive-border); 
    border-radius: var(--radius-md);
    background: var(--color-destructive-bg); 
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-destructive);
}


body.change-form .form-row .help,
body.change-form .form-row .helptext {
    margin: var(--space-1) 0 0;
    padding: 0;
    font-size: var(--text-caption);
    line-height: 1.4;
    color: var(--color-text-muted);
}



body.change-form .form-row .related-widget-wrapper,
body.change-form .form-row .related-widget-wrapper .select2-container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}


body.change-form .related-widget-wrapper .related-lookup,
body.change-form .related-widget-wrapper .add-related,
body.change-form .related-widget-wrapper .change-related,
body.change-form .related-widget-wrapper .delete-related,
body.change-form .related-widget-wrapper .view-related,
body.change-form .related-widget-wrapper-link.view-related {
    display: none !important;
}




body.change-form .select2-container--admin-autocomplete .select2-selection--single {
    height: 36px;
    box-sizing: border-box;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: var(--text-body);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.change-form .select2-container--admin-autocomplete .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding-left: 0.75rem;
    padding-right: 2.25rem;
    color: var(--color-text);
}

body.change-form
    .select2-container--admin-autocomplete
    .select2-selection--single
    .select2-selection__placeholder {
    color: var(--color-text-subtle);
}


body.change-form .select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 0.75rem;
    width: 16px;
}

body.change-form .select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow b {
    border: none;
    width: 16px;
    height: 16px;
    margin: 0;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2364748b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206l6%20-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}


body.change-form .select2-container--admin-autocomplete .select2-selection--multiple {
    min-height: 36px;
    box-sizing: border-box;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: var(--text-body);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.change-form
    .select2-container--admin-autocomplete
    .select2-selection--multiple
    .select2-selection__rendered {
    padding: 0.25rem 0.5rem;
}


body.change-form .select2-container--admin-autocomplete .select2-selection__choice {
    background: var(--color-neutral-100);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: var(--text-label);
    padding: 0.125rem 0.5rem;
}


body.change-form
    .select2-container--admin-autocomplete.select2-container--focus
    .select2-selection--single,
body.change-form
    .select2-container--admin-autocomplete.select2-container--open
    .select2-selection--single,
body.change-form
    .select2-container--admin-autocomplete.select2-container--focus
    .select2-selection--multiple,
body.change-form
    .select2-container--admin-autocomplete.select2-container--open
    .select2-selection--multiple {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}


body.change-form .select2-container--admin-autocomplete .select2-dropdown {
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); 
    overflow: hidden;
    background: var(--color-surface);
}


body.change-form .select2-container--admin-autocomplete .select2-search--dropdown {
    padding: var(--space-2);
}

body.change-form .select2-container--admin-autocomplete .select2-search__field {
    box-sizing: border-box;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 0.375rem 0.625rem;
    font-size: var(--text-body);
    color: var(--color-text);
    outline: none;
}

body.change-form .select2-container--admin-autocomplete .select2-search__field:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}


body.change-form .select2-container--admin-autocomplete .select2-results__option {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-body);
    color: var(--color-text);
}


body.change-form
    .select2-container--admin-autocomplete
    .select2-results__option--highlighted[aria-selected] {
    background: var(--color-neutral-100);
    color: var(--color-text);
}


body.change-form .select2-container--admin-autocomplete .select2-results__option[aria-selected="true"] {
    background: var(--shell-active-ground-soft);
    color: var(--color-text);
}


body.change-form .select2-container--admin-autocomplete .select2-results__message {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-caption);
    color: var(--color-text-subtle);
}




body.app-auth.model-user.change-form .content-nav,
body.app-auth.model-user.change-form aside.content-nav,
body.app-auth.model-user.change-form .changeform-navigation,
body.app-auth.model-user.change-form .changeform-navigation.initialized,
body.app-auth.model-user.change-form .object-tools,
body.app-auth.model-user.change-form .object-tools.initialized {
    display: none !important;
}


body.app-auth.model-user.change-form .content-main {
    width: 100%;
    max-width: 100%;
}


body.app-auth.model-user.change-form #content-main > .page-header {
    max-width: 960px;
    margin: 0 0 var(--space-5);
}

body.app-auth.model-user.change-form #content-main > .page-header .page-header__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--leading-tight);
}


body.app-auth.model-user.change-form #content-main > form > div > fieldset.module.aligned,
body.app-auth.model-user.change-form #content-main > form > fieldset.module.aligned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
    align-items: start;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-6);
    margin: 0 0 var(--space-4);
    box-shadow: var(--shadow-xs);
}

body.app-auth.model-user.change-form #content-main > form fieldset.module.aligned > h2,
body.app-auth.model-user.change-form #content-main > form fieldset.module.aligned > .description {
    grid-column: 1 / -1;
    margin: 0;
}

body.app-auth.model-user.change-form #content-main > form fieldset.module.aligned > h2 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

body.app-auth.model-user.change-form #content-main > form fieldset.module.aligned > .description {
    font-size: var(--text-label);
    color: var(--color-text-muted);
}


body.app-auth.model-user.change-form #content-main > form fieldset.module.aligned .form-row.wide,
body.app-auth.model-user.change-form #content-main > form fieldset.module.aligned .form-row:has(textarea) {
    grid-column: 1 / -1;
}


body.app-auth.model-user.change-form fieldset.module.aligned .form-row {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

body.app-auth.model-user.change-form .form-row .field-box {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.app-auth.model-user.change-form fieldset.module.aligned .form-row .flex-container {
    display: block;
}

body.app-auth.model-user.change-form fieldset.module.aligned .form-row:has(input[type="checkbox"]) .flex-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

body.app-auth.model-user.change-form fieldset.module.aligned .form-row:has(input[type="checkbox"]) label {
    margin: 0;
}


body.app-auth.model-user.change-form #content-main > form > p {
    max-width: 960px;
    margin: 0 0 var(--space-4);
    font-size: var(--text-label);
    color: var(--color-text-muted);
}


body.app-auth.model-user.change-form .field-password1 ul,
body.app-auth.model-user.change-form .field-usable_password p.help,
body.app-auth.model-user.change-form .field-password2 p.help,
body.app-auth.model-user.change-form .field-username p.help {
    display: none !important;
}

body.app-auth.model-user.change-form .form-row.errors .help,
body.app-auth.model-user.change-form .form-row.errors ul.help,
body.app-auth.model-user.change-form .form-row.errors ul,
body.app-auth.model-user.change-form .form-row.errors .helptext,
body.app-auth.model-user.change-form .field-box.errors .help,
body.app-auth.model-user.change-form .field-box.errors ul,
body.app-auth.model-user.change-form .form-row.errors .field-password1 ul,
body.app-auth.model-user.change-form .form-row.errors .field-password1 .help,
body.app-auth.model-user.change-form .form-row.errors .field-password2 .help,
body.app-auth.model-user.change-form .form-row.errors .field-username .help,
body.app-auth.model-user.change-form .form-row.errors .field-usable_password .help {
    display: block !important;
}


body.app-auth.model-user.change-form .form-row .errorlist,
body.app-auth.model-user.change-form .field-box .errorlist {
    display: block !important;
}


body.app-auth.model-user.change-form .user-change-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}


body.app-auth.model-user.change-form .changeform-tabs {
    display: none !important;
}


body.app-auth.model-user.change-form .user-change-form .ds-tab-content__panel fieldset.module {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-6);
    margin: 0 0 var(--space-4);
    box-shadow: var(--shadow-xs);
}

body.app-auth.model-user.change-form .user-change-form .ds-tab-content__panel fieldset.module:last-child {
    margin-bottom: 0;
}

body.app-auth.model-user.change-form .user-change-form .ds-tab-content__panel fieldset.module > h2 {
    margin: 0 0 var(--space-4);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}


body.app-auth.model-user.change-form .user-change-form .form-row {
    display: block;
    margin: 0 0 var(--space-4);
}

body.app-auth.model-user.change-form .user-change-form .form-row:last-child {
    margin-bottom: 0;
}

body.app-auth.model-user.change-form .user-change-form .form-row .flex-container {
    display: block;
}

body.app-auth.model-user.change-form .user-change-form .form-row:has(input[type="checkbox"]) .flex-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

body.app-auth.model-user.change-form .user-change-form .form-row label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 var(--space-1);
    text-align: left;
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text);
}

body.app-auth.model-user.change-form .user-change-form .form-row:has(input[type="checkbox"]) label {
    margin: 0;
}

body.app-auth.model-user.change-form .js-userprofile-inline {
    margin: 0;
}


body.app-auth.model-user.change-form .field-password #id_password p:first-child {
    display: none !important;
}

body.app-auth.model-user.change-form .field-password #id_password::before {
    content: "****************";
    display: block;
    padding: var(--space-2) 0;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

body.app-auth.model-user.change-form .field-password input[type="hidden"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}


body.app-auth.model-user.change-form .submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: flex-start;
    max-width: 960px;
    margin: var(--space-5) 0 0;
    padding: var(--space-4) var(--space-5);
    border-top: 0.5px solid var(--color-border);
    background: var(--color-header-background);
    box-shadow: none;
}

body.app-auth.model-user.change-form .submit-row input[type="submit"],
body.app-auth.model-user.change-form .submit-row a.deletelink,
body.app-auth.model-user.change-form .submit-row .deletelink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border-strong);
    font-size: var(--text-label);
    line-height: var(--leading-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.app-auth.model-user.change-form .submit-row input[type="submit"].default {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-surface);
}

body.app-auth.model-user.change-form .submit-row input[type="submit"].default:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

body.app-auth.model-user.change-form .submit-row input[type="submit"].default:active,
body.app-auth.model-user.change-form .submit-row input[type="submit"].default:focus {
    background-color: var(--color-primary-pressed);
    border-color: var(--color-primary-pressed);
}

body.app-auth.model-user.change-form .submit-row input[type="submit"]:not(.default) {
    background-color: var(--color-surface);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

body.app-auth.model-user.change-form .submit-row input[type="submit"]:not(.default):hover {
    background-color: var(--color-neutral-100);
}

body.app-auth.model-user.change-form .submit-row a.deletelink,
body.app-auth.model-user.change-form .submit-row .deletelink {
    background-color: var(--color-surface);
    border-color: var(--color-destructive-border); 
    color: var(--color-destructive);
}

body.app-auth.model-user.change-form .submit-row a.deletelink:hover,
body.app-auth.model-user.change-form .submit-row .deletelink:hover {
    background-color: var(--color-destructive-bg); 
    color: var(--color-destructive-hover);
}

body.app-auth.model-user.change-form .submit-row input[type="submit"]:focus-visible,
body.app-auth.model-user.change-form .submit-row a.deletelink:focus-visible,
body.app-auth.model-user.change-form .submit-row .deletelink:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


body.app-auth.model-user.change-form .related-widget-wrapper .related-lookup,
body.app-auth.model-user.change-form .related-widget-wrapper .add-related,
body.app-auth.model-user.change-form .related-widget-wrapper .change-related,
body.app-auth.model-user.change-form .related-widget-wrapper .delete-related,
body.app-auth.model-user.change-form .related-widget-wrapper .view-related,
body.app-auth.model-user.change-form .related-widget-wrapper-link.view-related {
    display: none !important;
}




.ds-tab-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}


.ds-profiles,
.ds-characteristics {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ds-schedule {
    margin-top: var(--space-2);
}


.ds-profiles__filters,
.ds-characteristics__filters,
.ds-characteristics__filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-end;
}

.ds-characteristics__filters {
    justify-content: space-between;
}

.ds-profiles__field,
.ds-characteristics__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 220px;
    font-size: var(--text-label);
}

.ds-profiles__field span,
.ds-characteristics__field span {
    font-weight: 600;
    color: var(--color-text-strong);
}


.ds-profiles__field input,
.ds-characteristics__field select,
.ds-characteristics__field input {
    height: 34px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border-strong);
    padding: 0 var(--space-3);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-label);
    font-family: inherit;
}

.ds-profiles__field input:focus,
.ds-characteristics__field select:focus,
.ds-characteristics__field input:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--color-primary);
}


.ds-characteristics__run {
    height: 34px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-family: inherit;
    font-size: var(--text-label);
    padding: 0 var(--space-5);
    cursor: pointer;
    margin-left: auto;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.ds-characteristics__run:hover:not([disabled]) {
    background: var(--color-primary-hover);
}

.ds-characteristics__run[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.ds-profiles__calendar-button {
    height: 34px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border-strong);
    background: var(--color-header-background);
    padding: 0 var(--space-4);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: var(--text-label);
    color: var(--color-text);
}


.ds-profiles__status,
.ds-characteristics__status {
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border);
    padding: 10px 14px;
    font-size: var(--text-label);
    background: var(--color-header-background);
    color: var(--color-text);
}

.ds-profiles__status[hidden],
.ds-characteristics__status[hidden] {
    display: none;
}

.ds-profiles__status[data-tone="error"],
.ds-characteristics__status[data-tone="error"] {
    border-color: var(--tone-error-bg);
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
}

.ds-profiles__status[data-tone="muted"],
.ds-characteristics__status[data-tone="muted"] {
    color: var(--color-text-muted);
}

.ds-profiles__status-text {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: var(--text-label);
    color: var(--color-text);
}

.ds-profiles__status-text[data-state="done"] {
    color: var(--tone-success-fg);
}

.ds-profiles__status-text[data-state="progress"] {
    color: var(--tone-warning-fg);
}

.ds-profiles__status-text[data-state="error"] {
    color: var(--tone-error-fg);
}


.ds-characteristics__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-header-background);
}

.ds-characteristics__meta-item span {
    display: block;
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.ds-characteristics__meta-item strong {
    font-size: var(--text-body);
    color: var(--color-text-strong);
}


.ds-profiles__chart,
.ds-characteristics__chart {
    padding: var(--space-5);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    flex-direction: column;
}

.ds-profiles__chart[hidden],
.ds-characteristics__chart[hidden] {
    display: none;
}

.ds-profiles__chart-header {
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-text-strong);
}

.ds-characteristics__chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.ds-characteristics__reset-zoom {
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-link);
    font-size: var(--text-caption);
    line-height: 1.2;
    font-family: inherit;
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.ds-characteristics__reset-zoom:hover {
    background: var(--color-neutral-100);
}

.ds-profiles__chart canvas,
.ds-characteristics__chart canvas {
    flex: 1;
    max-height: 300px;
}


.ds-classification {
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    background: var(--color-surface);
    margin-bottom: var(--space-5);
}

.ds-classification__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
}

.ds-classification__subtitle {
    margin: var(--space-2) 0 var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--text-label);
}

.ds-classification__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-4);
}

.ds-classification__charts {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ds-classification__chart {
    width: 100%;
    box-sizing: border-box;
    background: var(--color-header-background);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.ds-classification__chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text-strong);
}

.ds-classification__chart canvas {
    max-height: 320px;
}

.ds-classification__insights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.ds-classification__table {
    flex: 1 1 100%;
    width: 100%;
}

.ds-classification__table-title {
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text-strong);
}


.ds-classification__table .ds-classification__receiver-type-name-col,
.ds-classification__table .ds-classification__receiver-type-name-cell {
    width: calc(100% - 72px);
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}


.ds-recommendations {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ds-recommendations__toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.ds-recommendations__status {
    color: var(--color-text-muted);
    font-size: var(--text-label);
}

.ds-recommendations__status[data-tone="error"] {
    color: var(--tone-error-fg);
}

.ds-recommendations__tabs {
    display: flex;
    gap: var(--space-2);
    border-bottom: 0.5px solid var(--color-border);
    padding-bottom: var(--space-2);
}

.ds-recommendations__tab {
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-label);
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
}

.ds-recommendations__tab.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}


.ds-recommendations__panel {
    display: none;
}

.ds-recommendations__panel.is-active {
    display: block;
}


.facility-receivers-table__actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-3);
}

.facility-receivers-table__add {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: inherit;
    font-size: var(--text-label);
    cursor: pointer;
    transition: background 0.15s ease;
}

.facility-receivers-table__add:hover {
    background: var(--color-primary-hover);
}

.facility-receivers-table__add-icon {
    font-weight: 700;
    line-height: 1;
}


.ds-chart-stub,
.ds-chart-stub__group,
.ds-chart-stub__output {
    display: none;
}

.ds-chart-stub__controls {
    display: flex;
    gap: var(--space-4);
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.ds-chart-stub__label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.ds-chart-stub__series {
    margin-top: var(--space-2);
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.ds-chart-stub__series-toggle {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.ds-chart-stub__canvas {
    height: 320px;
    margin-top: 10px;
}

.ds-chart-stub__canvas--harm {
    margin-top: 18px;
}




.ds-tree {
    list-style: none;
    margin: 0;
    padding: var(--space-2);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.ds-tree__type {
    list-style: none;
}


.ds-tree__type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 7px 10px;
    border-radius: var(--radius-md);
    font-size: var(--text-label);
    color: var(--color-text);
    cursor: pointer;
}

.ds-tree__type-header:hover {
    background: var(--color-neutral-100);
}

.ds-tree__type-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ds-tree__badge {
    flex: 0 0 auto;
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-neutral-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 1px 8px;
    font-variant-numeric: tabular-nums;
}


.ds-tree__toggle {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    border-radius: var(--radius-xs);
}

.ds-tree__toggle-icon {
    font-size: 16px;
    transition: transform 0.15s ease;
    display: inline-flex;
}

.ds-tree__type.collapsed .ds-tree__toggle-icon {
    transform: rotate(-90deg);
}


.ds-tree__facilities {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--space-1);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ds-tree__type.collapsed .ds-tree__facilities {
    display: none;
}

.ds-tree__facility {
    list-style: none;
}

.ds-tree__facility a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 7px 10px 7px 30px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-label);
    position: relative;
}

.ds-tree__facility a:hover,
.ds-tree__facility a:focus {
    background: var(--color-neutral-100);
}

.ds-tree__facility a:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}


.ds-tree__facility a.active {
    background: #e6f1fb;
    color: var(--color-primary);
    font-weight: 600;
}

.ds-tree__facility a.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    border-radius: 2px;
    background: var(--color-primary);
}


.ds-tree__empty {
    list-style: none;
    padding: 7px 10px;
    font-size: var(--text-label);
    color: var(--color-text-muted);
}




.ds-labeled {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ds-labeled__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
}


.ds-labeled__create-form {
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ds-labeled__create-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
}

.ds-labeled__create-row {
    display: flex;
    align-items: flex-end;
    gap: var(--space-3);
}

.ds-labeled__create-row .ds-labeled__field {
    flex: 1;
}

.ds-labeled__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 220px;
    font-size: var(--text-label);
}

.ds-labeled__field span {
    font-weight: 600;
    color: var(--color-text-strong);
}

.ds-labeled__status-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 140px;
}

.ds-labeled__status-wrap span:first-child {
    font-weight: 600;
    color: var(--color-text-strong);
}


.ds-labeled__save,
.ds-labeled__auto-segment,
.ds-labeled__intervals-add {
    min-width: 140px;
    height: 34px;
    border: 0.5px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-family: inherit;
    font-size: var(--text-label);
    font-weight: 600;
    padding: 0 var(--space-3);
    cursor: pointer;
}

.ds-labeled__auto-segment,
.ds-labeled__intervals-add {
    min-width: 0;
}

.ds-labeled__save:hover,
.ds-labeled__auto-segment:hover,
.ds-labeled__intervals-add:hover {
    background: var(--color-neutral-100);
}

.ds-labeled__train {
    min-width: 140px;
    height: 34px;
    border: 0.5px solid var(--tone-success-fg);
    color: var(--tone-success-fg);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-family: inherit;
    font-size: var(--text-label);
    font-weight: 600;
    cursor: pointer;
}

.ds-labeled__train:disabled {
    border-color: var(--color-border-strong);
    color: var(--color-text-subtle);
    cursor: not-allowed;
}

.ds-labeled__train-feedback {
    align-self: center;
    font-size: var(--text-label);
    color: var(--color-text-body);
}

.ds-labeled__train-feedback[data-tone="error"] {
    color: var(--tone-error-fg);
}

.ds-labeled__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 34px;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-body);
    font-family: inherit;
    font-size: var(--text-label);
    text-decoration: none;
    padding: 0 var(--space-3);
    margin-right: auto;
}

.ds-labeled__cancel:hover {
    background: var(--color-neutral-100);
}


.ds-labeled__status {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border);
    background: var(--color-header-background);
    font-size: var(--text-label);
    color: var(--color-text);
}

.ds-labeled__status[data-tone="error"] {
    background: var(--tone-error-bg);
    border-color: var(--tone-error-bg);
    color: var(--tone-error-fg);
}


.ds-labeled__chart {
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    background: var(--color-surface);
    height: 360px;
    display: flex;
    flex-direction: column;
}

.ds-labeled__chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-weight: 600;
    color: var(--color-text-strong);
}

.ds-labeled__reset-zoom {
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-link);
    font-family: inherit;
    font-size: var(--text-label);
    padding: 6px 10px;
    cursor: pointer;
}

.ds-labeled__reset-zoom:hover {
    background: var(--color-neutral-100);
}

#facility-labeled-chart {
    width: 100%;
    flex: 1;
    max-height: 320px;
}

.ds-labeled__meta {
    font-size: var(--text-label);
    color: var(--color-text-muted);
}


.ds-labeled__selection-lists {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.ds-labeled__devices,
.ds-labeled__characteristics {
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
    box-sizing: border-box;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    background: var(--color-header-background);
}

.ds-labeled__devices-header,
.ds-labeled__characteristics-header {
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--color-text-strong);
}

.ds-labeled__characteristics-note {
    margin-bottom: var(--space-2);
    font-size: var(--text-caption);
    color: var(--color-text-muted);
}

.ds-labeled__list-search {
    width: 100%;
    box-sizing: border-box;
    height: 34px;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 0 10px;
    margin-bottom: var(--space-2);
    font-size: var(--text-label);
    font-family: inherit;
    background: var(--color-surface);
}

.ds-labeled__list-search:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--color-primary);
}

.ds-labeled__devices-list,
.ds-labeled__characteristics-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    max-height: 168px;
    overflow-y: auto;
    padding-right: 2px;
}

.ds-labeled__device-item,
.ds-labeled__characteristic-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: var(--space-2);
    font-size: var(--text-label);
    line-height: var(--leading-body);
    cursor: pointer;
}


.ds-labeled__device-item input[type="checkbox"],
.ds-labeled__characteristic-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-xs);
    accent-color: var(--color-primary);
    flex-shrink: 0;
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    display: inline-block;
    visibility: visible;
    opacity: 1;
    cursor: pointer;
}

.ds-labeled__devices-empty,
.ds-labeled__devices-loading,
.ds-labeled__devices-error,
.ds-labeled__characteristics-empty,
.ds-labeled__characteristics-loading,
.ds-labeled__characteristics-error {
    font-size: var(--text-label);
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
}

.ds-labeled__devices-error,
.ds-labeled__characteristics-error {
    color: var(--tone-error-fg);
}


.ds-labeled__intervals {
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: var(--space-3);
}

.ds-labeled__intervals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-weight: 600;
    color: var(--color-text-strong);
}

.ds-labeled__intervals-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ds-labeled__intervals-i-threshold {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-label);
    color: var(--color-text-body);
}

.ds-labeled__intervals-i-threshold span {
    white-space: nowrap;
}

.ds-labeled__intervals-i-threshold input {
    width: 5.5rem;
    height: 34px;
    box-sizing: border-box;
    padding: 0 var(--space-2);
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--text-label);
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}


.ds-labeled__intervals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-label);
    margin: 0;
}

.ds-labeled__intervals-table th {
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--color-text-muted);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    padding: 8px 12px;
    border-bottom: 0.5px solid var(--color-border);
    background: var(--color-header-background);
}

.ds-labeled__intervals-table td {
    padding: 6px 12px;
    border-bottom: 0.5px solid var(--color-border);
    vertical-align: middle;
}

.ds-labeled__intervals-table tbody tr:last-child td {
    border-bottom: none;
}


.ds-labeled__intervals-table td input,
.ds-labeled__intervals-table td select {
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    padding: 0 var(--space-2);
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-label);
    font-family: inherit;
}

.ds-labeled__intervals-table td input:focus,
.ds-labeled__intervals-table td select:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--color-primary);
}


.ds-labeled__interval-connection-place-cell {
    display: none;
}

.ds-labeled--show-connection-place .ds-labeled__interval-connection-place-cell {
    display: table-cell;
}


.ds-labeled__interval-color {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ds-labeled__interval-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-xs);
    border: 0.5px solid var(--color-border-strong);
    display: inline-block;
    flex-shrink: 0;
}


.ds-labeled__intervals-delete {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-circle);
    border: 0.5px solid var(--color-border-strong);
    background: var(--color-neutral-100);
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.ds-labeled__intervals-delete:hover {
    background: var(--tone-error-bg);
    border-color: var(--tone-error-bg);
    color: var(--tone-error-fg);
}

.ds-labeled__intervals-delete svg,
.ds-labeled__intervals-delete .ti {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}


.ds-labeled__footer {
    position: sticky;
    bottom: 0;
    margin: var(--space-4) calc(-1 * var(--space-4)) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border-top: 0.5px solid var(--color-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    z-index: 5;
}


#time-data-markup-save-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    background: rgba(255, 255, 255, 0.82);
    cursor: wait;
}

#time-data-markup-save-overlay[hidden] {
    display: none;
}

#time-data-markup-save-overlay .tdm-spinner {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-circle);
    border: 4px solid var(--color-neutral-100);
    border-top-color: var(--color-primary);
    animation: tdm-save-spin 0.9s linear infinite;
}

#time-data-markup-save-overlay .tdm-text {
    font-size: var(--text-body);
    color: var(--color-text);
    font-weight: 600;
}

@keyframes tdm-save-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}




.reports-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}


.reports-dashboard__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
    gap: var(--space-4);
    margin: 0;
}

.reports-dashboard__metric {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: 16px 18px;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.reports-dashboard__metric-label {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

.reports-dashboard__metric-value {
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}


.reports-dashboard__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
    align-items: start;
}

.reports-dashboard__columns > article {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: 16px 18px;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.reports-dashboard__subtitle {
    margin: 0;
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text);
}

.reports-dashboard__list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-body);
    color: var(--color-text-body);
}

.reports-dashboard__list--compact {
    font-size: var(--text-label);
}


.reports-dashboard__charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-4);
    align-items: start;
}

.reports-dashboard__chart-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: 16px 18px;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.reports-dashboard__chart-title {
    margin: 0;
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text);
}

.reports-dashboard__chart-canvas {
    position: relative;
    width: 100%;
    min-height: 260px;
}

.reports-dashboard__chart-canvas canvas {
    width: 100% !important;
    height: auto;
    display: block;
}


.reports-dashboard__current-report {
    color: var(--color-text);
    font-weight: 600;
}


.reports-dashboard__export-dropdown {
    position: relative;
}

.reports-dashboard__export-trigger {
    list-style: none;
}

.reports-dashboard__export-trigger::-webkit-details-marker {
    display: none;
}

.reports-dashboard__export-chevron {
    display: inline-flex;
    color: var(--color-text-subtle);
}

.reports-dashboard__export-menu {
    position: absolute;
    top: calc(100% + var(--space-1));
    right: 0;
    z-index: 20;
    min-width: 200px;
    margin: 0;
    padding: var(--space-1);
    list-style: none;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.reports-dashboard__export-menu li {
    margin: 0;
}

.reports-dashboard__export-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-body);
    color: var(--color-text);
}

.reports-dashboard__export-link:hover,
.reports-dashboard__export-link:focus {
    background: var(--color-neutral-100);
    color: var(--color-text);
    text-decoration: none;
}

@media (max-width: 640px) {
    .reports-dashboard__export-menu {
        right: auto;
        left: 0;
    }
}




.constructor {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}


.constructor__tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 0.5px solid var(--color-border);
}

.constructor__tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-family: inherit;
    font-size: var(--text-label);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5px;
}

.constructor__tab:hover {
    color: var(--color-text);
}

.constructor__tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.constructor__panel {
    display: none;
}

.constructor__panel.is-active {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.constructor__panel-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.constructor__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
}

.constructor__hint {
    margin: 0;
    font-size: var(--text-body);
    color: var(--color-text-muted);
}


.constructor__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.constructor__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-5);
    align-items: start;
}

.constructor__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}


.constructor__sources {
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
}

.constructor__sources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 13px 16px;
    background: var(--color-header-background);
    border-bottom: 0.5px solid var(--color-border);
}


.constructor__counter {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-neutral-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 1px 8px;
    font-variant-numeric: tabular-nums;
}


.constructor__sources-list {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
}

.constructor__source-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 16px;
    border-bottom: 0.5px solid var(--color-border);
    font-size: var(--text-label);
    cursor: pointer;
}

.constructor__source-row:last-child {
    border-bottom: none;
}

.constructor__source-row:hover {
    background: var(--color-neutral-100);
}

.constructor__source-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex: 0 0 auto;
}

.constructor__source-row__meta {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
}

.constructor__sources-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    font-size: var(--text-label);
    color: var(--color-text-subtle);
}


.constructor__status {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-label);
}

.constructor__status[hidden] {
    display: none;
}

.constructor__status[data-tone="error"] {
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
}

.constructor__status[data-tone="success"] {
    background: var(--tone-success-bg);
    color: var(--tone-success-fg);
}

.constructor__actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

@media (max-width: 920px) {
    .constructor__grid {
        grid-template-columns: 1fr;
    }
}


.profile-create {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-create__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.profile-create__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.profile-create__grid[hidden] {
    display: none;
}

.profile-create__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.profile-create__field[hidden] {
    display: none;
}

.profile-create__radio-group {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-create__radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.profile-create__radio {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 10px;
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--text-label);
    cursor: pointer;
}

.profile-create__radio input[type="radio"] {
    accent-color: var(--color-primary);
}

.profile-create__status {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-label);
}

.profile-create__status[data-tone="error"] {
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
}

.profile-create__status[data-tone="info"] {
    background: var(--tone-info-bg);
    color: var(--tone-info-fg);
}

.profile-create__actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}


.profile-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.profile-detail__meta {
    margin-top: var(--space-1);
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.profile-detail__head-actions {
    display: flex;
    gap: var(--space-2);
    flex: 0 0 auto;
}

.profile-detail__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: var(--space-2) var(--space-5);
    padding: var(--space-4);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.profile-detail__table-wrap {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .profile-detail__head {
        flex-direction: column;
    }
    .profile-detail__stats {
        grid-template-columns: 1fr;
    }
}





.typical-profile-modal,
.forecast-profile-modal,
.model-training-modal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: var(--color-neutral-100);
}


.typical-profile-modal__card,
.forecast-profile-modal__card,
.model-training-modal__card {
    width: min(520px, 100%);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}


.typical-profile-modal__title,
.forecast-profile-modal__title,
.model-training-modal__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
}

.typical-profile-modal__help,
.typical-profile-modal__hint {
    margin: 0;
    font-size: var(--text-label);
    color: var(--color-text-muted);
    line-height: 1.45;
}


.typical-profile-modal__form,
.forecast-profile-modal__form,
.model-training-modal__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.typical-profile-modal__field,
.forecast-profile-modal__field,
.model-training-modal__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.typical-profile-modal__field label,
.forecast-profile-modal__field label,
.model-training-modal__field label {
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text-muted);
}


.typical-profile-modal__field select,
.typical-profile-modal__field input[type="datetime-local"],
.typical-profile-modal__field input[type="date"],
.typical-profile-modal__field input[type="text"],
.forecast-profile-modal__field select,
.forecast-profile-modal__field input[type="datetime-local"],
.forecast-profile-modal__field input[type="date"],
.forecast-profile-modal__field input[type="text"],
.model-training-modal__field select,
.model-training-modal__field input[type="datetime-local"],
.model-training-modal__field input[type="date"],
.model-training-modal__field input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-family: inherit;
    font-size: var(--text-body);
    color: var(--color-text);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
}

.typical-profile-modal__field select:focus,
.typical-profile-modal__field input:focus,
.forecast-profile-modal__field select:focus,
.forecast-profile-modal__field input:focus,
.model-training-modal__field select:focus,
.model-training-modal__field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}


.typical-profile-modal__range,
.forecast-profile-modal__range,
.model-training-modal__range {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.typical-profile-modal__range input,
.forecast-profile-modal__range input,
.model-training-modal__range input {
    flex: 1;
}


.typical-profile-modal__actions,
.forecast-profile-modal__actions,
.model-training-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}


.typical-profile-modal__status,
.forecast-profile-modal__status,
.model-training-modal__status {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-label);
}

.typical-profile-modal__status[hidden],
.forecast-profile-modal__status[hidden],
.model-training-modal__status[hidden] {
    display: none;
}

.typical-profile-modal__status[data-tone="error"],
.forecast-profile-modal__status[data-tone="error"],
.model-training-modal__status[data-tone="error"] {
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
}

.typical-profile-modal__status[data-tone="info"],
.forecast-profile-modal__status[data-tone="info"],
.model-training-modal__status[data-tone="info"] {
    background: var(--tone-info-bg);
    color: var(--tone-info-fg);
}


.forecast-model-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.forecast-model-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.forecast-model-detail__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
}

.forecast-model-detail__meta {
    margin-top: var(--space-1);
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.forecast-model-detail__actions {
    display: flex;
    gap: var(--space-2);
    flex: 0 0 auto;
}

.forecast-model-detail__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: var(--space-2) var(--space-5);
    padding: var(--space-4);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.forecast-model-detail__metrics {
    padding: var(--space-4);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.forecast-model-detail__metrics h2 {
    margin: 0 0 var(--space-3);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.forecast-model-detail__metrics-warning {
    margin-bottom: var(--space-3);
    padding: 10px 14px;
    border: 0.5px solid var(--color-border);
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
    border-radius: var(--radius-md);
    font-size: var(--text-label);
}

.forecast-model-detail__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-label);
}

.forecast-model-detail__table th,
.forecast-model-detail__table td {
    padding: 9px 12px;
    border-bottom: 0.5px solid var(--color-border);
    text-align: left;
}

.forecast-model-detail__table th {
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--color-text-muted);
    font-weight: 600;
}

.forecast-model-detail__table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .forecast-model-detail__head {
        flex-direction: column;
    }
    .forecast-model-detail__stats {
        grid-template-columns: 1fr;
    }
}




.authorization-overview {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.authorization-overview__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}


.authorization-stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: 16px 18px;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

.authorization-stat-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.authorization-stat-card__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--tone-info-bg);
    color: var(--color-primary);
}

.authorization-stat-card__icon-svg {
    width: 20px;
    height: 20px;
}

.authorization-stat-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.authorization-stat-card__name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.authorization-stat-card__name-link {
    color: var(--color-link);
}

.authorization-stat-card__name-link:hover,
.authorization-stat-card__name-link:focus {
    text-decoration: underline;
}

.authorization-stat-card__badge {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-neutral-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 1px 8px;
    font-variant-numeric: tabular-nums;
}

.authorization-stat-card__description {
    font-size: var(--text-label);
    color: var(--color-text-muted);
}


.authorization-panel {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.authorization-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--color-border);
}

.authorization-panel__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.authorization-panel__subtitle {
    margin: var(--space-1) 0 0;
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.authorization-panel__actions {
    display: flex;
    gap: var(--space-2);
    flex: 0 0 auto;
}

.authorization-panel__body {
    padding: var(--space-4) var(--space-5) var(--space-5);
}


.authorization-person {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.authorization-person__avatar {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tone-info-bg);
    color: var(--color-primary);
    font-size: var(--text-caption);
    font-weight: 600;
}

.authorization-person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.authorization-person__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.authorization-person__name {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.authorization-person__meta {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
}

.authorization-table__muted {
    color: var(--color-text-subtle);
}


.authorization-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    font-weight: 600;
    white-space: nowrap;
}

.authorization-status--success {
    background: var(--tone-success-bg);
    color: var(--tone-success-fg);
}

.authorization-status--muted {
    background: var(--tone-unknown-bg);
    color: var(--tone-unknown-fg);
}

.authorization-status--warning {
    background: var(--tone-warning-bg);
    color: var(--tone-warning-fg);
}

.authorization-status--info {
    background: var(--tone-info-bg);
    color: var(--tone-info-fg);
}


.authorization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.authorization-tag,
.authorization-pill {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-neutral-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
}

.authorization-tag__link {
    color: var(--color-link);
}

.authorization-tag__link:hover,
.authorization-tag__link:focus {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.authorization-empty-state {
    padding: var(--space-5);
    text-align: center;
    font-size: var(--text-label);
    color: var(--color-text-subtle);
}


.access-matrix-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.access-matrix-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.access-matrix-page__actions {
    display: flex;
    gap: var(--space-2);
}

.access-matrix-tools {
    display: flex;
    align-items: flex-end;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.access-matrix-role-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.access-matrix-role-form__label {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

.access-matrix-table-wrapper {
    overflow-x: auto;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.access-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-label);
}

.access-matrix-table th,
.access-matrix-table td {
    padding: 10px 14px;
    border-bottom: 0.5px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.access-matrix-table th {
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--color-text-muted);
    font-weight: 600;
    background: var(--color-header-background);
}

.access-matrix-table tbody tr:last-child td {
    border-bottom: none;
}

.access-matrix-table__object-label {
    font-weight: 600;
    color: var(--color-text);
}

.access-matrix-facilities {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.access-matrix-facilities__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.access-matrix-facilities__hint {
    margin: 0;
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.access-matrix-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}


.access-level-control {
    display: inline-flex;
    gap: var(--space-1);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 2px;
    background: var(--color-neutral-100);
}

.access-level-pill {
    position: relative;
    cursor: pointer;
}


.access-level-pill__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.access-level-pill__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    border: 1px solid transparent;
    font-variant-numeric: tabular-nums;
    transition: background 0.15s, color 0.15s;
}

.access-level-pill:hover .access-level-pill__label {
    background: var(--color-surface);
    color: var(--color-text);
}

.access-level-pill__input:focus-visible + .access-level-pill__label {
    outline: none;
    box-shadow: var(--shadow-focus);
}


.access-level-pill--read .access-level-pill__input:checked + .access-level-pill__label {
    background: var(--tone-info-bg);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.access-level-pill--write .access-level-pill__input:checked + .access-level-pill__label {
    background: var(--tone-success-bg);
    color: var(--tone-success-fg);
    border-color: var(--tone-success-solid);
}

.access-level-pill--blocked .access-level-pill__input:checked + .access-level-pill__label {
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
    border-color: var(--tone-error-fg);
}

.access-level-pill--disabled .access-level-pill__input:checked + .access-level-pill__label,
.access-level-pill--inherit .access-level-pill__input:checked + .access-level-pill__label {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}


.access-matrix-form--readonly .access-level-pill {
    cursor: default;
}

.access-matrix-form--readonly .access-level-pill__input:disabled + .access-level-pill__label {
    opacity: 0.55;
}

.access-matrix-form--readonly .access-level-pill__input:checked + .access-level-pill__label {
    opacity: 1;
}


.access-level-select--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (max-width: 1024px) {
    .authorization-panel__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .authorization-overview__stats {
        grid-template-columns: 1fr;
    }
}




.object-history-panel {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}

.object-history-panel__backdrop {
    position: fixed;
    inset: 0;
    background: var(--drawer-scrim);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.object-history-panel__drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: var(--drawer-width);
    max-width: 100vw;
    background: var(--color-surface);
    box-shadow: var(--drawer-shadow);
    transform: translateX(100%);
    transition: transform 0.25s var(--ease-spring, ease);
    display: flex;
    flex-direction: column;
}

.object-history-panel.is-open {
    pointer-events: auto;
}

.object-history-panel.is-open .object-history-panel__backdrop {
    opacity: 1;
}

.object-history-panel.is-open .object-history-panel__drawer {
    transform: translateX(0);
}

.object-history-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 0.5px solid var(--color-border);
}

.object-history-panel__title {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
}

.object-history-panel__close {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-xs);
    display: flex;
}

.object-history-panel__close:hover {
    background: var(--color-neutral-100);
    color: var(--color-text);
}

.object-history-panel__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.object-history-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5);
}

.object-history-panel__placeholder {
    margin: 0;
    padding: var(--space-5) 0;
    text-align: center;
    font-size: var(--text-label);
    color: var(--color-text-subtle);
}

.object-history-panel__error {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--tone-error-bg);
    color: var(--tone-error-fg);
    font-size: var(--text-label);
}

body.object-history-panel-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .object-history-panel__drawer {
        width: 100vw;
    }
}


.breadcrumbs-history {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-history__dropdown {
    position: relative;
}


.breadcrumbs-history__toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    color: var(--color-text-muted);
    cursor: pointer;
}

.breadcrumbs-history__toggle::-webkit-details-marker {
    display: none;
}

.breadcrumbs-history__toggle::marker {
    content: "";
}

.breadcrumbs-history__toggle:hover,
.breadcrumbs-history__toggle:focus {
    background: var(--color-neutral-100);
    color: var(--color-text);
}

.breadcrumbs-history__icon {
    display: inline-flex;
    color: var(--color-text-subtle);
}

.breadcrumbs-history__dropdown:not([open]) .breadcrumbs-history__menu {
    display: none;
}

.breadcrumbs-history__menu {
    position: absolute;
    top: calc(100% + var(--space-1));
    left: 0;
    z-index: 30;
    min-width: 190px;
    margin: 0;
    padding: var(--space-1);
    list-style: none;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.breadcrumbs-history__menu li {
    margin: 0;
}

.breadcrumbs-history__action {
    appearance: none;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-body);
    color: var(--color-text);
    cursor: pointer;
}

.breadcrumbs-history__action:hover,
.breadcrumbs-history__action:focus {
    background: var(--color-neutral-100);
    color: var(--color-text);
}



.measurement-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-3);
    padding: var(--space-3) 0;
}

.measurement-filters__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.measurement-filters__label {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

.measurement-filters__control {
    height: 34px;
    min-width: 150px;
}

.measurement-filters__control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}


.measurement-filters__control:not([value=""]):valid {
    border-color: var(--color-primary);
}

.measurement-filters__reset {
    color: var(--color-link);
    font-size: var(--text-label);
    align-self: center;
}

.measurement-filters__reset:hover,
.measurement-filters__reset:focus {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.measurement-filters__reset[hidden] {
    display: none;
}


.measurement-filters__count {
    margin: 0 0 0 auto;
    align-self: center;
    font-size: var(--text-label);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}




.ds-table__download-icon::before {
    content: "\2B07"; 
    font-size: 1rem;
    line-height: 1;
}




.dash-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0 0 var(--space-6);
}

.dash-hero__eyebrow {
    margin: 0;
    font-size: var(--text-caption);
    color: var(--color-text-muted);
}

.dash-hero__title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    color: var(--color-text-strong);
}

.dash-hero__sub {
    margin: 0;
    font-size: var(--text-body);
    color: var(--color-text-muted);
}


.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
    gap: var(--space-4);
    margin: 0;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.dash-stat__value {
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
}

.dash-stat__label {
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text);
}

.dash-stat__sub {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
}


.dash-stat--alert .dash-stat__value {
    color: var(--tone-warning-fg);
}


.dash-no-roles {
    padding: var(--space-5) 0;
}

.dash-no-roles__text,
.dash-empty {
    margin: 0;
    font-size: var(--text-body);
    color: var(--color-text-muted);
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
