*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-app);
    background: var(--bgc-app);
    color: var(--text-white);
}

.collab-main {
    display: flex;
    flex-direction: column;
}

.collab-hero {
    width: var(--full-width);
    background: var(--bgc-gradient-tunedr);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    display: flex;
    justify-content: center;
    border-radius: var(--border-radius);
}

.collab-hero__inner {
    max-width: 860px;
    width: var(--full-width);
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-hero__title {
    margin: 0;
    font-size: var(--font-size-big-title);
    font-weight: var(--font-weight);
    line-height: var(--line-height);
    background: linear-gradient(
        120deg,
        var(--text-white) 25%,
        var(--text-tunedr) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.collab-list {
    max-width: auto;
    width: var(--full-width);
    margin: 0 auto;
    padding: 10px 14px;
    flex: 1;
}

.collab-list__title {
    margin: 0;
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    text-transform: uppercase;
    color: var(--text-grey);
}

.collab-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.collab-toolbar .collab-toolbar__btn-desktop {
    margin-top: 0;
}

.collab-controls {
    padding-top: 8px;
}

@media (max-width: 900px) {
    .collab-toolbar__btn-desktop {
        margin-top: 0.75rem;
        width: var(--size-icons-l);
        min-width: var(--size-icons-l);
        max-width: var(--size-icons-l);
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--middle-border);
        font-size: max(16px, var(--font-size-text));
        background: none;
        border: 1px solid var(--border-color);
        color: var(--text-white);
    }

    .collab-toolbar__btn-desktop span {
        display: inline;
    }

    .collab-toolbar__btn-desktop svg {
        display: none;
    }
}

@media (max-width: 900px) {
    .collab-toolbar__btn-desktop span {
        display: none;
    }

    .collab-toolbar__btn-desktop svg {
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .collab-toolbar__btn-desktop {
        display: inline;
        gap: 0.6rem;
        flex-wrap: nowrap;
    }

    .collab-toolbar__btn-desktop {
        margin-top: 0.75rem;
        width: var(--size-icons-l);
        min-width: var(--size-icons-l);
        max-width: var(--size-icons-l);
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--middle-border);
        font-size: max(16px, var(--font-size-text));
        background: none;
        border: 1px solid var(--border-radius);
        color: var(--text-white);
    }

    .collab-toolbar__btn-desktop span {
        display: none;
    }

    .collab-toolbar__btn-desktop svg {
        display: block;
        margin: 0 auto;
    }
}

.collab-controls .collab-toolbar {
    margin-bottom: 0;
}

@media (min-width: 641px) {
    .collab-toolbar__btn-desktop {
        width: auto;
        padding: 0.7rem 1rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-radius);
        background: var(--bgc-input-div);
        color: var(--text-white);
        font-family: var(--font-family-app);
        font-size: max(16px, var(--font-size-text));
        outline: none;
        transition:
            border-color var(--motion-fast) var(--ease-out),
            background var(--motion-fast) var(--ease-out),
            transform var(--motion-fast) var(--ease-out);
        box-sizing: border-box;
        transition-duration: var(--transition-duration);
        cursor: pointer;
        margin-top: 0.75rem;
        flex-shrink: 0;
        min-width: 180px;
        max-width: var(--full-width);
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    @media (hover: hover) {
        .collab-toolbar__btn-desktop:hover {
            opacity: var(--opacity-btn-hover);
        }
    }
}

.collab-toolbar__btn-mobile {
    display: none;
    flex-shrink: 0;
    width: var(--size-icons-l);
    height: var(--size-icons-l);
    border-radius: var(--middle-border);
    background: none;
    color: var(--text-white);
    border: 1px solid var(--border-radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition:
        opacity var(--motion-fast) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
}

.collab-toolbar__btn-mobile svg {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
}

@media (hover: hover) {
    .collab-toolbar__btn-mobile:hover {
        opacity: var(--opacity-btn-hover);
    }
}

.collab-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cc {
    --cc-accent: var(--text-tunedr);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--side-border);
    border-radius: var(--border-radius);
    background: var(--bgc-input-div);
    transition:
        border-color var(--motion-fast) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
}

.cc--green {
    --cc-accent: var(--success);
}

.cc--amber {
    --cc-accent: var(--color-bookmark-active);
}

.cc--pink {
    --cc-accent: var(--color-hearth-active);
}

@media (hover: hover) {
    .cc:hover {
        border-color: var(--text-grey);
    }
}

.collab-view {
    display: none;
}

.collab-view__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-grey);
    cursor: pointer;
    transition:
        color var(--motion-fast) var(--ease-out),
        border-color var(--motion-fast) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
}

.collab-view__btn svg {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
}

@media (hover: hover) {
    .collab-view__btn:hover {
        color: var(--text-white);
    }
}

.collab-view__btn.is-active {
    border-color: var(--side-border);
    color: var(--text-white);
}

.collab-view__btn:focus-visible {
    outline: 2px solid var(--text-tunedr);
    outline-offset: 2px;
}

.cc__head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cc__avatar-link {
    flex-shrink: 0;
    border-radius: var(--middle-border);
}

.cc__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--side-border);
    border-radius: var(--middle-border);
    background: var(--bgc-app);
    color: var(--text-grey);
    object-fit: cover;
}

.cc__avatar svg {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
}

.cc__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cc__username {
    overflow: hidden;
    color: var(--text-white);
    font-size: 14px;
    font-weight: var(--font-weight);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (hover: hover) {
    .cc__username:hover {
        text-decoration: underline;
    }
}

.cc__date {
    color: var(--text-grey);
    font-size: 12px;
}

.cc__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc__tag {
    padding: 4px 12px;
    border-radius: var(--full-border);
    background: var(--side-border);
    color: var(--text-white);
    font-size: 12px;
    font-weight: var(--font-weight);
    line-height: var(--line-height);
}

.cc__tag--style {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--cc-accent);
    color: var(--cc-accent);
}

.cc__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.cc__obj-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc__obj {
    max-height: 4.5em;
    overflow: hidden;
    color: var(--text-white);
    font-size: 14px;
    line-height: var(--line-height);
    white-space: pre-wrap;
    word-break: break-word;
}

.cc__obj.is-expanded {
    max-height: 10000px;
}

.cc__obj-toggle {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-grey);
    font-family: var(--font-family-app);
    font-size: 12px;
    font-weight: var(--font-weight);
    cursor: pointer;
}

@media (hover: hover) {
    .cc__obj-toggle:hover {
        color: var(--text-white);
    }
}

.cc__media {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid var(--side-border);
    border-radius: var(--border-radius);
    background: var(--bgc-app);
    cursor: pointer;
    transition: border-color var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
    .cc__media:hover {
        border-color: var(--text-grey);
    }
}

.cc__media.is-playing {
    border-color: var(--cc-accent);
    background: color-mix(in srgb, var(--cc-accent) 8%, var(--bgc-app));
}

.cc__play {
    position: relative;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--middle-border);
    background: var(--text-white);
    color: var(--bgc-app);
    transition:
        background-color var(--motion-fast) var(--ease-out),
        color var(--motion-fast) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
}

.cc__play-icon,
.cc__pause-icon {
    display: grid;
    place-items: center;
}

.cc__play svg {
    width: 16px;
    height: 16px;
}

.cc__media.is-playing .cc__play {
    background: var(--cc-accent);
    color: var(--bgc-app);
}

.cc__progress {
    flex: 1;
    column-gap: 8px;
}

.cc__progress .tdr-audio-progress__time {
    font-size: 12px;
}

.cc__media.is-playing .cc__time {
    color: var(--text-white);
}

.cc__footer {
    display: flex;
    justify-content: flex-end;
}

.cc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--side-border);
    border-radius: var(--full-border);
    background: transparent;
    color: var(--text-white);
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    cursor: pointer;
    transition:
        background-color var(--motion-fast) var(--ease-out),
        color var(--motion-fast) var(--ease-out),
        border-color var(--motion-fast) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
    .cc__btn:hover {
        border-color: var(--text-white);
        background: var(--text-white);
        color: var(--bgc-app);
    }
}

.cc__btn:focus-visible,
.cc__obj-toggle:focus-visible,
.cc__username:focus-visible,
.cc__avatar-link:focus-visible {
    outline: 2px solid var(--text-tunedr);
    outline-offset: 2px;
}

.collab-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    gap: 20px;
}

.collab-empty__text {
    margin: 0;
    color: var(--text-grey);
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
}

.btn-submit {
    width: var(--full-width);
    padding: 0.8rem 1.2rem;
    font-size: max(16px, var(--font-size-text));
    background: var(--bgc-white);
    color: var(--text-black);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight);
    border: none;
    margin-top: 0.5rem;
    cursor: pointer;
    transition:
        opacity var(--motion-base) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
    .btn-submit:hover {
        opacity: var(--opacity-btn-hover);
        transform: scale(1.02);
    }
}

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

.page-content {
    position: relative;
}

.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--sidebar-width, 320px);
    right: 0;
    background: var(--bgc-modale-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .modal {
        left: 0;
        padding: 0.5rem;
    }
}

.modal-box {
    background: var(--bgc-modale);
    border: 2px solid var(--side-border);
    border-radius: var(--border-radius);
    width: var(--full-width);
    max-width: 460px;
    padding: 1.8rem;
    position: relative;
}

.modal-box--stepper {
    background: var(--bgc-modale);
    border-color: var(--side-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 540px;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: var(--position-cross);
    right: var(--position-cross);
    width: var(--size-icons-l);
    height: var(--size-icons-l);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-grey);
    transition:
        color var(--motion-fast) var(--ease-out),
        background var(--motion-fast) var(--ease-out);
    background: none;
    border: none;
}

.modal-close svg {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
}

@media (hover: hover) {
    .modal-close:hover {
        color: var(--text-white);
    }
}

.modal-box__header {
    margin-bottom: 1.5rem;
}

.modal-box__title {
    margin: 0;
    font-family: var(--font-family-app);
    font-size: var(--font-size-title);
    font-weight: var(--font-weight);
    color: var(--text-white);
}

.modal-box__sub {
    margin: 4px 0 0;
    font-size: var(--font-size-text);
    color: var(--text-grey);
}

.stepper-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stepper-dot {
    width: 20px;
    height: 3px;
    border-radius: var(--border-radius);
    background: var(--side-border);
    transition:
        background var(--motion-base) var(--ease-out),
        width var(--motion-base) var(--ease-out);
}

.stepper-dot--active {
    background: var(--text-tunedr);
    width: 32px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-field {
    display: flex;
    flex-direction: column;
}

.modal-label {
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    color: var(--text-white);
    text-transform: uppercase;
}

.modal-label__optional {
    font-weight: var(--font-weight);
    margin-left: 0.3rem;
    text-transform: none;
}

.modal-hint {
    display: block;
    font-size: var(--font-size-text);
    color: var(--text-grey);
    margin-top: -0.15rem;
    margin-bottom: 0.05rem;
    line-height: var(--line-height);
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-input {
    width: var(--full-width);
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--side-border);
    background: var(--bgc-input-div);
    color: var(--text-white);
    font-family: var(--font-family-app);
    font-size: max(16px, var(--font-size-text));
    outline: none;
    box-sizing: border-box;
}

.modal-input::placeholder {
    color: var(--text-grey);
}

.modal-input:focus {
    border: 1px solid var(--border-color);
}

.modal-input.input-error {
    border: 2px solid var(--danger-error) !important;
}

.modal-input--textarea {
    min-height: 80px;
    resize: none;
    line-height: var(--line-height);
    white-space: pre-wrap;
}

.label-input {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.char-counter {
    align-self: flex-end;
    font-size: var(--font-size-text);
    color: var(--text-grey);
    margin-top: 0.25rem;
}

.char-counter.is-near {
    color: var(--warning);
}

.char-counter.is-full {
    color: var(--danger-error);
}

.char-counter--textarea {
    margin-top: 0.3rem;
}

.field-error {
    display: block;
    font-size: var(--font-size-text);
    color: var(--danger-error);
    font-weight: var(--font-weight);
    text-align: start;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--bgc-input-div);
    border: 1px dashed var(--text-grey);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition:
        border-color var(--motion-fast) var(--ease-out),
        background var(--motion-fast) var(--ease-out);
}

.file-upload:focus {
    border: 1px dashed var(--border-color);
}

@media (hover: hover) {
    .file-upload:hover {
        border-color: var(--text-white);
    }
}

.file-upload__icon {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
    color: var(--text-grey);
    flex-shrink: 0;
}

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

.file-upload__cta {
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    color: var(--text-white);
    cursor: pointer;
}

.file-upload__hint {
    font-size: var(--font-size-text);
    color: var(--text-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stepper-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.8rem 0 0.5rem;
}

.stepper-btn {
    width: var(--size-icons-l);
    height: var(--size-icons-l);
    border-radius: var(--border-radius);
    color: var(--text-grey);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        border-color var(--motion-fast) var(--ease-out),
        color var(--motion-fast) var(--ease-out),
        transform var(--motion-fast) var(--ease-out);
    background: none;
}

@media (hover: hover) {
    .stepper-btn:hover {
        color: var(--text-white);
    }
}

.stepper-btn svg {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
}

@media (hover: hover) {
    .stepper-btn:hover svg {
        width: calc(var(--size-icons-xs) - 2px);
        height: calc(var(--size-icons-xs) - 2px);
    }
}

.stepper-btn:active {
    transform: scale(0.95);
}

.stepper-count {
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    color: var(--text-grey);
    min-width: 44px;
    text-align: center;
}

.audio-warn-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.audio-warn-btn {
    width: var(--full-width);
    justify-content: center;
    font-family: var(--font-family-app);
    font-size: max(16px, var(--font-size-text));
    font-weight: var(--font-weight);
    border-radius: var(--border-radius);
    padding: 0.7rem 1rem;
    cursor: pointer;
    border: none;
    background: var(--bgc-input-div);
}

.audio-warn-btn--pick {
    background: var(--bgc-input-div);
    color: var(--text-white);
}

@media (hover: hover) {
    .audio-warn-btn--pick:hover {
        opacity: var(--opacity-btn-hover);
    }
}

.audio-warn-btn--submit {
    background: var(--bgc-white);
    color: var(--text-black);
}

@media (hover: hover) {
    .audio-warn-btn--submit:hover {
        opacity: var(--opacity-btn-hover);
    }
}

@media (max-width: 1000px) {
    .collab-toolbar__btn-desktop {
        display: none !important;
    }

    .collab-toolbar__btn-mobile {
        display: inline-flex !important;
    }
}

@media (min-width: 1001px) {
    .collab-toolbar__btn-desktop {
        display: inline-flex !important;
    }

    .collab-toolbar__btn-mobile {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .collab-hero__inner {
        justify-content: flex-start;
    }

    .modal-box {
        padding: 1.4rem 1.25rem;
        border-radius: var(--border-radius);
    }

    .modal-box__title {
        font-size: var(--font-size-title);
    }

    .cc__volume {
        width: var(--size-icons-l);
    }
}

@media (max-width: 400px) {
    .modal {
        padding: 0.6rem;
    }

    .modal-box {
        padding: 1.2rem 1rem;
        border-radius: var(--border-radius);
    }
}

.modal-publish-btn {
    width: var(--full-width);
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    background: var(--bgc-white);
    color: var(--text-black);
    font-family: var(--font-family-app);
    font-size: max(16px, var(--font-size-text));
    outline: none;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    cursor: pointer;
    transition-duration: var(--transition-duration);
    border: none;
    font-weight: var(--font-weight);
}

@media (hover: hover) {
    .modal-publish-btn:hover {
        opacity: var(--opacity-btn-hover);
    }
}

.nm-scan__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nm-scan__header { margin-bottom: 2rem; }

.nm-scan__title {
    margin: 0 0 .5rem;
    font-family: var(--font-family-app);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
}

.nm-scan__sub {
    margin: 0;
    font-size: .95rem;
    color: var(--text-grey);
}

.nm-scan__steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.nm-scan__step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--border-radius);
    border: 1.5px solid transparent;
    transition: border-color var(--motion-base) var(--ease-out), background var(--motion-base) var(--ease-out);
}

.nm-scan__step.is-active {
    border-color: var(--side-border);
    background: var(--bgc-input-div);
}

.nm-scan__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

.nm-scan__wait  { width: 22px; height: 22px; color: var(--text-grey); display: block; }
.nm-scan__spinner { width: 22px; height: 22px; color: var(--text-white); display: none; animation: tdr-spin var(--motion-spin) linear infinite; }
.nm-scan__check { width: 22px; height: 22px; color: var(--success); display: none; }
.nm-scan__x     { width: 22px; height: 22px; color: var(--danger-error); display: none; }

.nm-scan__step.is-active .nm-scan__wait    { display: none; }
.nm-scan__step.is-active .nm-scan__spinner { display: block; }
.nm-scan__step.is-done   .nm-scan__wait    { display: none; }
.nm-scan__step.is-done   .nm-scan__check   { display: block; }
.nm-scan__step.is-error  .nm-scan__wait    { display: none; }
.nm-scan__step.is-error  .nm-scan__spinner { display: none; }
.nm-scan__step.is-error  .nm-scan__x       { display: block; }
.nm-scan__step.is-error  .nm-scan__label   { color: var(--danger-error); }

.nm-scan__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.nm-scan__label {
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font-family-app);
    color: var(--text-grey);
    transition: color var(--motion-base) var(--ease-out);
}

.nm-scan__step.is-active .nm-scan__label,
.nm-scan__step.is-done   .nm-scan__label { color: var(--text-white); }

.nm-scan__sublabel { font-size: .8rem; color: var(--text-grey); }

.nm-scan__error-msg {
    display: none;
    width: 100%;
    margin-top: 1.2rem;
    padding: .75rem 1rem;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: var(--border-radius);
    color: #ef4444;
    font-size: .88rem;
    text-align: left;
    line-height: 1.45;
}

.nm-scan__error-msg.is-visible { display: block; }

.nm-scan__close-btn {
    margin-top: 1.2rem;
    padding: .6rem 1.4rem;
    background: none;
    border: 1.5px solid var(--side-border);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-size: .9rem;
    font-family: var(--font-family-app);
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
    align-self: center;
}

@media (hover: hover) {
    .nm-scan__close-btn:hover {
        background: var(--bgc-input-div);
        border-color: var(--border-color);
    }
}

@media (min-width: 768px) {
    .collab-controls {
        padding-top: 24px;
    }
}

@media (min-width: 1100px) {
    .collab-controls .collab-toolbar {
        box-sizing: border-box;
        max-width: 880px;
        margin: 0 auto;
        padding: 0 var(--pad-x);
    }

    .collab-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .collab-view {
        display: inline-flex;
        order: 2;
        gap: 4px;
        margin-left: auto;
    }

    .collab-toolbar > .tdr-search {
        order: 3;
        margin-left: 0;
    }

    .collab-cards--list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .collab-cards--list .cc {
        display: grid;
        grid-template-areas:
            "head body footer"
            "tags body footer";
        grid-template-columns: 240px minmax(0, 1fr) auto;
        grid-template-rows: auto 1fr;
        column-gap: 24px;
        row-gap: 12px;
        align-items: start;
    }

    .collab-cards--list .cc__head {
        grid-area: head;
    }

    .collab-cards--list .cc__tags {
        grid-area: tags;
    }

    .collab-cards--list .cc__body {
        grid-area: body;
    }

    .collab-cards--list .cc__footer {
        grid-area: footer;
        align-self: center;
    }
}

@media (min-width: 1100px) and (hover: hover) {
    .cc:hover {
        transform: translateY(-2px);
    }
}
