#content-related {
    display: none;
}

.model-user.change-list #changelist-filter,
.model-user.change-list #toolbar,
.model-user.change-list .actions,
.model-user.change-list .action-checkbox-column,
.model-user.change-list .action-checkbox {
    display: none;
}

.model-agent.change-list #changelist-filter,
.model-agent.change-list #toolbar,
.model-agent.change-list .actions,
.model-agent.change-list .action-checkbox-column,
.model-agent.change-list .action-checkbox {
    display: none;
}

.model-user.change-list #changelist {
    margin-right: 0;
}

.model-agent.change-list #changelist {
    margin-right: 0;
}

#user-tools {
    align-items: center;
    display: flex;
    gap: 4px;
}

#user-tools .flowhub-settings-link {
    align-items: center;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    margin-left: 6px;
    width: 24px;
}

#user-tools .flowhub-settings-link svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.flowhub-home {
    max-width: 1100px;
}

.flowhub-home-section {
    margin: 0 0 36px;
}

.flowhub-home-heading {
    align-items: center;
    background: var(--primary);
    color: var(--header-link-color);
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
}

.flowhub-home-heading h2 {
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.flowhub-home-heading .button,
.flowhub-disabled-button {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 5px 10px;
}

.flowhub-disabled-button {
    cursor: not-allowed;
    opacity: 0.55;
}

.flowhub-settings {
    max-width: 1100px;
}

.flowhub-settings-section {
    margin: 0 0 44px;
}

.flowhub-settings-heading {
    align-items: center;
    background: var(--primary);
    color: var(--header-link-color);
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
}

.flowhub-settings-heading h2 {
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.flowhub-settings-heading .button {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 5px 10px;
}

.flowhub-settings-table {
    margin: 0;
    width: 100%;
}

.flowhub-empty-block {
    border: 1px solid var(--border-color);
    border-top: 0;
    color: var(--body-quiet-color);
    padding: 14px 10px;
}

.flowhub-inline-form {
    margin: 0;
}

.flowhub-inline-form .button {
    white-space: nowrap;
}

.flowhub-form {
    max-width: 900px;
}

.flowhub-form input[type="text"],
.flowhub-form select,
.flowhub-form textarea {
    box-sizing: border-box;
    max-width: 420px;
    width: 100%;
}

.flowhub-form textarea {
    max-width: 720px;
}

.flowhub-form .field-api_key .flex-container {
    align-items: center;
    display: flex;
    gap: 8px;
}

.flowhub-form .field-api_key input[type="text"] {
    max-width: 360px;
}

.flowhub-inline-button {
    white-space: nowrap;
}

.flowhub-client-meta {
    border: 1px solid var(--border-color);
    margin: 0 0 18px;
    padding: 10px 12px;
}

.flowhub-token-box {
    background: var(--darkened-bg);
    border: 1px solid var(--border-color);
    margin: 14px 0;
    max-width: 760px;
    overflow-wrap: anywhere;
    padding: 14px;
}

.flowhub-access-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.flowhub-access-grid .form-row {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
}

.flowhub-access-grid legend {
    font-weight: 700;
    margin: 0 0 8px;
}

.flowhub-access-grid ul {
    list-style: none;
    margin: 0;
    max-height: 240px;
    overflow: auto;
    padding: 0;
}

.flowhub-access-grid li {
    margin: 0 0 6px;
}

@media (max-width: 720px) {
    .flowhub-access-grid {
        grid-template-columns: 1fr;
    }
}

.flowhub-smtp-form {
    max-width: 1060px;
}

.flowhub-smtp-grid {
    display: grid;
    gap: 14px 12px;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.flowhub-smtp-grid .form-row {
    border: 0;
    padding: 0;
}

.flowhub-smtp-grid label,
.flowhub-smtp-grid legend {
    display: block;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 0;
}

.flowhub-smtp-grid input[type="email"],
.flowhub-smtp-grid input[type="number"],
.flowhub-smtp-grid input[type="password"],
.flowhub-smtp-grid input[type="text"] {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
}

.flowhub-password-control {
    align-items: stretch;
    display: flex;
    width: 100%;
}

.flowhub-password-control input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.flowhub-password-toggle {
    align-items: center;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-left: 0;
    border-radius: 0 4px 4px 0;
    color: var(--button-fg);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    justify-content: center;
    padding: 0;
}

.flowhub-password-toggle svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.flowhub-password-toggle .flowhub-eye-off-icon,
.flowhub-password-toggle.is-visible .flowhub-eye-icon {
    display: none;
}

.flowhub-password-toggle.is-visible .flowhub-eye-off-icon {
    display: block;
}

.flowhub-smtp-grid .field-host {
    grid-column: span 2;
}

.flowhub-smtp-grid .field-encryption,
.flowhub-smtp-grid .field-authentication_enabled {
    grid-column: span 2;
}

.flowhub-smtp-grid .field-encryption > div {
    display: flex;
    gap: 16px;
}

.flowhub-smtp-grid .field-encryption label,
.flowhub-smtp-grid .field-authentication_enabled label {
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    margin: 0;
}

@media (max-width: 900px) {
    .flowhub-smtp-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 560px) {
    .flowhub-smtp-grid,
    .flowhub-smtp-grid .field-host,
    .flowhub-smtp-grid .field-encryption,
    .flowhub-smtp-grid .field-authentication_enabled {
        display: block;
    }
}

.submit-row .cancel-link,
.submit-row .flowhub-delete-link,
.submit-row .flowhub-save-button {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 35px;
}

.submit-row .cancel-link {
    line-height: 1;
    padding: 10px 15px;
}

.submit-row .flowhub-save-button {
    line-height: 1;
    padding: 10px 15px;
}

.submit-row .flowhub-save-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.submit-row .flowhub-delete-link {
    margin-left: auto;
    padding: 10px 15px;
}
