/* Component dimensions; colors follow workspace/Bootstrap theme tokens. */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


html {
    position: relative;
    min-height: 100%;
}


.login-shell {
    min-height: calc(100vh - 190px);
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.login-card {
    width: min(100%, 420px);
    padding: 2.5rem;
    border: 1px solid var(--workspace-line);
    border-radius: 1rem;
}

.login-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: .8rem;
    color: #fff;
    background: var(--workspace-accent);
    font-size: 1.4rem;
    font-weight: 700;
}

.login-eyebrow {
    margin-bottom: .25rem;
    color: var(--workspace-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-card h1 {
    margin-bottom: .5rem;
    font-size: 2rem;
    font-weight: 700;
}

.login-copy {
    margin-bottom: 2rem;
    color: var(--workspace-muted);
}

.login-alternative {
    margin: 1.5rem 0 0;
    color: var(--workspace-muted);
    text-align: center;
}

.user-list-card {
    border-radius: 1rem;
}

.host-list-card {
    border-radius: 1rem;
}

.host-list-card thead th {
    padding: 1rem 1.25rem;
    border-bottom-width: 1px;
    color: var(--workspace-muted);
    background: var(--bs-tertiary-bg);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.host-list-card tbody td {
    padding: 1rem 1.25rem;
}

.host-url {
    color: var(--workspace-muted);
    white-space: nowrap;
}

.host-actions-column {
    width: 5rem;
}

.host-actions-button {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--workspace-line);
    color: var(--workspace-muted);
    font-size: 1.1rem;
    line-height: 1;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.module-tile,
.module-empty-state {
    border-radius: 1rem;
}

.module-tile {
    min-height: 210px;
}


.module-tile--hidden {
    min-height: 180px;
}

.module-tile .card-body {
    padding: 1.35rem;
}

.module-health {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--workspace-muted);
    white-space: nowrap;
}

.module-health-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    box-shadow: 0 0 0 .2rem rgba(108, 117, 125, .12);
}

.module-health-dot--healthy {
    background: #198754;
    box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .13);
}

.module-health-dot--unhealthy {
    background: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .13);
}

.module-health-dot--unknown {
    background: #8b95a5;
}

.module-description {
    margin: 1.2rem 0 1.5rem;
    overflow-wrap: anywhere;
}

.module-type-badge {
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: .4rem;
    color: var(--workspace-muted);
    background: var(--bs-tertiary-bg);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.module-actions-button {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--workspace-line);
    color: var(--workspace-muted);
    line-height: 1;
}


.user-list-card thead th {
    padding: 1rem 1.25rem;
    border-bottom-width: 1px;
    color: var(--workspace-muted);
    background: var(--bs-tertiary-bg);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.user-list-card tbody td {
    padding: 1rem 1.25rem;
}

.user-id-column {
    width: 8rem;
}

.user-actions-column {
    width: 5rem;
}

.user-actions-button {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--workspace-line);
    color: var(--workspace-muted);
    font-size: 1.1rem;
    line-height: 1;
}

.access-table th,
.access-table td {
    min-width: 5.5rem;
}

.access-table th:first-child {
    min-width: 10rem;
}

.access-table .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
}

@media (max-width: 575.98px) {
    .user-table-responsive {
        overflow-x: auto;
    }
}

.validation-summary-valid {
    display: none;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.host-actions-button, .user-actions-button, .module-actions-button { background: var(--bs-tertiary-bg); }
