.tut-profile-body {
    --tut-profile-panel-padding: var(--tut-space-7);
}

.tut-profile-body [hidden] {
    display: none !important;
}

.tut-dealer-account__avatar.is-current {
    box-shadow: inset 0 -3px 0 var(--tut-color-accent);
}

.tut-profile-main {
    align-content: start;
}

.tut-profile-hero {
    align-items: center;
}

.tut-profile-access-note {
    margin: 0;
}

.tut-profile-layout {
    align-items: start;
    display: grid;
    gap: var(--tut-space-6);
    grid-template-columns: 300px minmax(0, 1fr);
}

.tut-profile-organizations {
    background: var(--tut-color-bg);
    border: 1px solid var(--tut-color-border);
    display: grid;
    gap: var(--tut-space-5);
    padding: var(--tut-space-6);
    position: sticky;
    top: 220px;
}

.tut-profile-organizations__header,
.tut-profile-panel__header,
.tut-profile-actions {
    align-items: center;
    display: flex;
    gap: var(--tut-space-5);
    justify-content: space-between;
}

.tut-profile-organizations__header > div,
.tut-profile-panel__header > div {
    display: grid;
    gap: var(--tut-space-2);
}

.tut-profile-limit {
    align-items: center;
    background: var(--tut-color-text);
    color: var(--tut-color-bg);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    min-width: 42px;
    padding: 0 8px;
}

.tut-profile-organization-list {
    display: grid;
    gap: var(--tut-space-3);
}

.tut-profile-organization {
    background: var(--tut-color-surface);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    color: var(--tut-color-text);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: var(--tut-space-2);
    min-height: 112px;
    padding: var(--tut-space-4);
    text-align: left;
    transition:
        background-color var(--tut-transition),
        border-color var(--tut-transition);
    width: 100%;
}

.tut-profile-organization:hover {
    border-color: var(--tut-color-border-strong);
}

.tut-profile-organization.is-active {
    background: var(--tut-color-bg);
    border-color: var(--tut-color-border);
    border-left-color: var(--tut-color-accent);
}

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

.tut-profile-organization > span:not(.tut-profile-organization__topline),
.tut-profile-organization small {
    color: var(--tut-color-muted);
}

.tut-profile-organization__contract {
    color: var(--tut-color-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.tut-profile-organization__balance {
    align-items: center;
    border-top: 1px solid var(--tut-color-border);
    display: flex;
    font-size: 13px;
    gap: var(--tut-space-2);
    justify-content: space-between;
    margin-top: var(--tut-space-2);
    padding-top: var(--tut-space-3);
}

.tut-profile-organization__balance strong {
    color: inherit;
    font-size: 14px;
    white-space: nowrap;
}

.tut-profile-organization__balance--debt {
    color: var(--tut-color-danger) !important;
}

.tut-profile-organization__balance--overpayment {
    color: var(--tut-color-success) !important;
}

.tut-profile-organization__balance--zero,
.tut-profile-organization__balance--unknown {
    color: var(--tut-color-muted) !important;
}

.tut-profile-status-dot {
    background: var(--tut-color-warning);
    border-radius: 50%;
    flex: 0 0 auto;
    height: 9px;
    margin-top: 5px;
    width: 9px;
}

.tut-profile-status-dot--success {
    background: var(--tut-color-success);
}

.tut-profile-form {
    display: grid;
    gap: var(--tut-space-5);
    min-width: 0;
}

.tut-profile-balance-panel {
    border-top: 4px solid var(--tut-color-danger);
}

.tut-profile-balance-panel.is-overpayment {
    border-top-color: var(--tut-color-success);
}

.tut-profile-balance-panel.is-zero,
.tut-profile-balance-panel.is-unknown {
    border-top-color: var(--tut-color-border-strong);
}

.tut-profile-balance {
    align-items: center;
    background: var(--tut-color-danger-soft);
    display: grid;
    gap: var(--tut-space-5);
    grid-template-columns: 40px minmax(190px, auto) minmax(0, 1fr);
    padding: var(--tut-space-6);
}

.tut-profile-balance--overpayment {
    background: var(--tut-color-success-soft);
}

.tut-profile-balance--zero,
.tut-profile-balance--unknown {
    background: var(--tut-color-surface);
}

.tut-profile-balance > .tut-icon {
    color: var(--tut-color-danger);
    height: 36px;
    width: 36px;
}

.tut-profile-balance--overpayment > .tut-icon {
    color: var(--tut-color-success);
}

.tut-profile-balance--zero > .tut-icon,
.tut-profile-balance--unknown > .tut-icon {
    color: var(--tut-color-muted);
}

.tut-profile-balance__amount,
.tut-profile-balance__meta {
    display: grid;
    gap: var(--tut-space-1);
}

.tut-profile-balance__amount > span,
.tut-profile-balance__meta > span {
    color: var(--tut-color-muted);
    font-size: 14px;
}

.tut-profile-balance__amount strong {
    color: var(--tut-color-danger);
    font-family: var(--tut-font-display);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
    white-space: nowrap;
}

.tut-profile-balance--overpayment .tut-profile-balance__amount strong {
    color: var(--tut-color-success);
}

.tut-profile-balance--zero .tut-profile-balance__amount strong,
.tut-profile-balance--unknown .tut-profile-balance__amount strong {
    color: var(--tut-color-text);
}

.tut-profile-balance__meta {
    border-left: 1px solid rgb(47 47 47 / 15%);
    padding-left: var(--tut-space-5);
}

.tut-profile-balance-hint {
    margin: 0;
}

.tut-profile-panel {
    background: var(--tut-color-bg);
    border: 1px solid var(--tut-color-border);
    display: grid;
    gap: var(--tut-space-6);
    padding: var(--tut-profile-panel-padding);
}

.tut-profile-panel__header {
    border-bottom: 1px solid var(--tut-color-border);
    padding-bottom: var(--tut-space-5);
}

.tut-profile-form-grid {
    display: grid;
    gap: var(--tut-space-5);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tut-profile-field--wide {
    grid-column: span 1;
}

.tut-profile-contact-panel {
    min-width: 0;
}

.tut-profile-contact-review {
    background: var(--tut-color-warning-soft);
    border-left: 4px solid var(--tut-color-warning);
    color: var(--tut-color-text);
    display: grid;
    gap: var(--tut-space-3);
    padding: var(--tut-space-5);
}

.tut-profile-contact-review__topline,
.tut-profile-contact-group__header {
    align-items: flex-start;
    display: flex;
    gap: var(--tut-space-4);
    justify-content: space-between;
}

.tut-profile-contact-review p,
.tut-profile-contact-note {
    margin: 0;
}

.tut-profile-contact-review dl {
    display: grid;
    gap: var(--tut-space-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.tut-profile-contact-review dl > div {
    display: grid;
    gap: var(--tut-space-1);
    min-width: 0;
}

.tut-profile-contact-review dt {
    color: var(--tut-color-muted);
    font-size: 13px;
}

.tut-profile-contact-review dd {
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.tut-profile-contact-groups {
    align-items: start;
    display: grid;
    gap: var(--tut-space-5);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tut-profile-contact-group {
    align-content: start;
    border: 1px solid var(--tut-color-border);
    display: grid;
    gap: var(--tut-space-4);
    min-width: 0;
    padding: var(--tut-space-5);
}

.tut-profile-contact-group__header > div {
    display: grid;
    gap: var(--tut-space-1);
    min-width: 0;
}

.tut-profile-contact-count {
    align-items: center;
    background: var(--tut-color-surface-strong);
    color: var(--tut-color-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    min-width: 38px;
    padding: 0 var(--tut-space-2);
}

.tut-profile-contact-list {
    display: grid;
    gap: var(--tut-space-3);
}

.tut-profile-contact-row {
    background: var(--tut-color-surface);
    border: 1px solid var(--tut-color-border);
    display: grid;
    gap: var(--tut-space-3);
    min-width: 0;
    padding: var(--tut-space-4);
}

.tut-profile-contact-row.is-pending {
    background: var(--tut-color-warning-soft);
    border-color: color-mix(in srgb, var(--tut-color-warning) 35%, var(--tut-color-border));
}

.tut-profile-contact-row__field {
    min-width: 0;
}

.tut-profile-contact-row__preferences {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--tut-space-5);
}

.tut-profile-contact-choice {
    font-size: 13px;
}

.tut-profile-contact-remove {
    align-items: center;
    align-self: start;
    background: transparent;
    border: 0;
    color: var(--tut-color-danger);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: fit-content;
}

.tut-profile-contact-remove:hover {
    text-decoration-thickness: 2px;
}

.tut-profile-contact-remove:focus-visible {
    outline: 3px solid var(--tut-color-focus);
    outline-offset: 3px;
}

.tut-profile-contact-remove:disabled {
    color: var(--tut-color-muted);
    cursor: not-allowed;
    opacity: .55;
}

.tut-profile-contact-add {
    align-self: start;
    justify-self: start;
}

.tut-profile2-body .tut-global-account-alert {
    display: none;
}

.tut-profile-same-address {
    grid-column: 1 / -1;
    padding-bottom: 0;
}

.tut-profile-upload {
    align-items: center;
    background: var(--tut-color-surface);
    border: 1px dashed var(--tut-color-border-strong);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--tut-space-2);
    justify-content: center;
    min-height: 180px;
    padding: var(--tut-space-7);
    text-align: center;
    transition:
        background-color var(--tut-transition),
        border-color var(--tut-transition);
}

.tut-profile-upload:hover,
.tut-profile-upload.is-dragging {
    background: var(--tut-color-accent-soft);
    border-color: var(--tut-color-accent);
}

.tut-profile-upload input {
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.tut-profile-upload .tut-icon {
    color: var(--tut-color-accent);
    height: 30px;
    width: 30px;
}

.tut-profile-upload span {
    color: var(--tut-color-muted);
    font-size: 14px;
}

.tut-profile-file-list {
    display: grid;
    gap: var(--tut-space-3);
}

.tut-profile-file {
    align-items: center;
    border: 1px solid var(--tut-color-border);
    display: grid;
    gap: var(--tut-space-4);
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: var(--tut-space-3);
}

.tut-profile-file__preview {
    align-items: center;
    background: var(--tut-color-surface-strong);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.tut-profile-file > span:nth-child(2) {
    display: grid;
    gap: var(--tut-space-1);
    min-width: 0;
}

.tut-profile-file small {
    color: var(--tut-color-muted);
}

.tut-profile-commission {
    align-items: center;
    background: var(--tut-color-surface);
    border-left: 4px solid var(--tut-color-success);
    display: grid;
    gap: var(--tut-space-5);
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: var(--tut-space-5);
}

.tut-profile-commission > .tut-icon {
    color: var(--tut-color-success);
    height: 28px;
    width: 28px;
}

.tut-profile-commission.is-inactive {
    border-left-color: var(--tut-color-border-strong);
}

.tut-profile-commission.is-inactive > .tut-icon {
    color: var(--tut-color-muted);
}

.tut-profile-commission p {
    color: var(--tut-color-muted);
    margin: var(--tut-space-2) 0 0;
    max-width: 760px;
}

.tut-profile-contract-type {
    color: var(--tut-color-accent);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: var(--tut-space-1);
    text-transform: uppercase;
}

.tut-profile-actions {
    background: var(--tut-color-bg);
    border: 1px solid var(--tut-color-border);
    box-shadow: 0 10px 35px rgb(47 47 47 / 10%);
    padding: var(--tut-space-4) var(--tut-space-5);
}

.tut-profile-save-state {
    align-items: center;
    color: var(--tut-color-success);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: var(--tut-space-2);
}

.tut-profile-save-state.is-dirty {
    color: var(--tut-color-warning);
}

.tut-profile-save-state.is-pending {
    color: var(--tut-color-warning);
}

.tut-profile-save-state .tut-icon {
    height: 18px;
    width: 18px;
}

.tut-profile-toast {
    align-items: flex-start;
    background: var(--tut-color-text);
    bottom: var(--tut-space-5);
    color: var(--tut-color-bg);
    display: grid;
    gap: var(--tut-space-3);
    grid-template-columns: 22px minmax(0, 1fr);
    max-width: 390px;
    padding: var(--tut-space-4) var(--tut-space-5);
    position: fixed;
    right: var(--tut-space-5);
    z-index: 300;
}

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

.tut-profile-toast > div {
    display: grid;
    gap: var(--tut-space-1);
}

.tut-profile-toast span {
    color: var(--tut-color-border);
    font-size: 14px;
}

.tut-profile-toast.is-error {
    background: var(--tut-color-danger);
}

@media (max-width: 1280px) {
    .tut-profile-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .tut-profile-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .tut-profile-layout {
        grid-template-columns: 1fr;
    }

    .tut-profile-organizations {
        position: static;
    }

    .tut-profile-organization-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .tut-profile-contact-groups {
        grid-template-columns: 1fr;
    }

    .tut-profile-balance {
        gap: var(--tut-space-4);
        grid-template-columns: 32px minmax(155px, .7fr) minmax(0, 1.3fr);
        padding: var(--tut-space-5);
    }

    .tut-profile-balance > .tut-icon {
        height: 30px;
        width: 30px;
    }

    .tut-profile-balance__amount,
    .tut-profile-balance__meta {
        min-width: 0;
    }

    .tut-profile-balance__meta {
        overflow-wrap: anywhere;
        padding-left: var(--tut-space-4);
    }

    .tut-profile-commission {
        align-items: start;
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .tut-profile-commission > .tut-button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .tut-profile-body {
        --tut-profile-panel-padding: var(--tut-space-5);
    }

    .tut-profile-panel__header,
    .tut-profile-actions,
    .tut-profile-commission {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .tut-profile-balance {
        align-items: start;
        grid-template-columns: 32px minmax(0, 1fr);
        padding: var(--tut-space-5);
    }

    .tut-profile-balance > .tut-icon {
        height: 30px;
        width: 30px;
    }

    .tut-profile-balance__meta {
        border-left: 0;
        border-top: 1px solid rgb(47 47 47 / 15%);
        grid-column: 1 / -1;
        padding-left: 0;
        padding-top: var(--tut-space-4);
    }

    .tut-profile-commission > .tut-button {
        grid-column: auto;
        width: 100%;
    }

    .tut-profile-panel__header,
    .tut-profile-actions {
        flex-direction: column;
    }

    .tut-profile-actions .tut-cluster,
    .tut-profile-actions .tut-button {
        width: 100%;
    }

    .tut-profile-contact-review dl {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    .tut-profile-organization-list {
        grid-template-columns: 1fr;
    }

    .tut-profile-file {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .tut-profile-file .tut-badge {
        grid-column: 2;
        justify-self: start;
    }

    .tut-profile-toast {
        bottom: var(--tut-space-3);
        left: var(--tut-space-3);
        max-width: none;
        right: var(--tut-space-3);
    }

    .tut-profile-contact-group {
        padding: var(--tut-space-4);
    }

    .tut-profile-contact-group__header,
    .tut-profile-contact-review__topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .tut-profile-contact-row__preferences {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    .tut-profile-organization,
    .tut-profile-upload {
        transition: none;
    }
}
