.cashew-dashboard,
.cashew-brand-hero,
.cashew-panel,
.cashew-card,
.cashew-friend-finder,
.cashew-composer,
.cashew-wall-post,
.cashew-invites,
.cashew-messages,
.cashew-poll,
.cashew-profile-song,
.cashew-profile-song-form {
    --cashew-orange: #f79a12;
    --cashew-gold: #ffc02a;
    --cashew-deep-orange: #ef7900;
    --cashew-ink: #1f1f1f;
    --cashew-cream: #fff6df;
    --cashew-line: #f1c66a;
    --cashew-muted: #745b37;
}

.cashew-route-shell,
.cashew-profile,
.cashew-members-directory,
.cashew-edit-profile,
.cashew-profile__section,
.cashew-member-card {
    --cashew-orange: #f79a12;
    --cashew-gold: #ffc02a;
    --cashew-deep-orange: #ef7900;
    --cashew-ink: #1f1f1f;
    --cashew-cream: #fff6df;
    --cashew-line: #f1c66a;
    --cashew-muted: #745b37;
}

.cashew-route-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 20px;
}

.cashew-profile {
    display: grid;
    gap: 18px;
}

.cashew-profile__cover {
    align-items: end;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, .82), rgba(255, 255, 255, .9)),
        url("../images/cashew-banner-soft.png") center / cover;
    border: 2px solid var(--cashew-ink);
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 240px;
    padding: 20px;
}

.cashew-profile__identity {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.cashew-avatar {
    border: 3px solid var(--cashew-gold);
    border-radius: 999px;
    height: auto;
}

.cashew-profile__identity h1 {
    margin: 0;
}

.cashew-profile__identity p {
    color: var(--cashew-muted);
    font-weight: 800;
    margin: 4px 0 0;
}

.cashew-profile__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cashew-profile__section,
.cashew-edit-profile,
.cashew-members-directory {
    background: #fffaf0;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    padding: 18px;
}

.cashew-profile__section h2,
.cashew-members-directory h1,
.cashew-edit-profile h2 {
    margin-top: 0;
}

.cashew-profile__custom {
    background: #fff;
    overflow-wrap: anywhere;
}

.cashew-edit-profile {
    display: grid;
    gap: 12px;
}

.cashew-edit-profile label {
    display: grid;
    font-weight: 800;
    gap: 6px;
}

.cashew-edit-profile input[type="text"],
.cashew-edit-profile input[type="file"],
.cashew-edit-profile select,
.cashew-edit-profile textarea {
    border: 1px solid #e6ae48;
    border-radius: 6px;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

.cashew-edit-profile button {
    background: var(--cashew-ink);
    border: 1px solid var(--cashew-ink);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    justify-self: start;
    padding: 10px 14px;
}

.cashew-member-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 16px;
}

.cashew-member-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.cashew-member-card {
    background: #fff;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.cashew-member-card a {
    align-items: center;
    color: var(--cashew-ink);
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    text-decoration: none;
}

.cashew-member-card span {
    color: var(--cashew-muted);
    font-size: .9rem;
    font-weight: 700;
}

.cashew-dashboard {
    display: grid;
    gap: 24px;
}

.cashew-brand-hero {
    background:
        linear-gradient(90deg, rgba(255, 250, 240, .86), rgba(255, 255, 255, .88)),
        url("../images/cashew-banner-soft.png") center / cover;
    border: 2px solid var(--cashew-ink);
    border-radius: 8px;
    box-shadow: 0 8px 0 rgba(31, 31, 31, .12);
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
}

.cashew-brand-hero__inner {
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(31, 31, 31, .12);
    border-radius: 8px;
    display: flex;
    gap: 20px;
    min-height: 140px;
    padding: 18px 22px;
    width: min(100%, 760px);
}

.cashew-brand-hero img {
    display: block;
    height: auto;
    max-width: min(420px, 55%);
}

.cashew-brand-hero p {
    color: var(--cashew-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.cashew-panel {
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    padding: 20px;
    background: #fffaf0;
}

.cashew-panel h2 {
    color: var(--cashew-ink);
    margin-top: 0;
}

.cashew-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.cashew-card {
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cashew-card__media {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: var(--cashew-cream) url("../images/cashew-banner-soft.png") center / cover;
    color: var(--cashew-ink);
    display: flex;
    font-weight: 700;
    justify-content: center;
    text-decoration: none;
}

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

.cashew-card__body {
    padding: 14px;
}

.cashew-card__body h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.cashew-card__body p,
.cashew-empty {
    color: var(--cashew-muted);
    margin: 0;
}

.cashew-polls {
    display: grid;
    gap: 16px;
}

.cashew-poll {
    background: #fff;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.cashew-poll h3 {
    margin: 0 0 12px;
}

.cashew-poll__option {
    background: #fff;
    border: 1px solid #e6ae48;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    min-height: 44px;
    overflow: hidden;
    padding: 10px 12px;
    position: relative;
    text-align: left;
    width: 100%;
}

.cashew-poll__option span,
.cashew-poll__option strong {
    position: relative;
    z-index: 1;
}

.cashew-poll__option i {
    background: linear-gradient(90deg, rgba(255, 192, 42, .4), rgba(247, 154, 18, .35));
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
    transition: width 160ms ease;
}

.cashew-poll__total,
.cashew-alert {
    color: var(--cashew-muted);
    margin: 10px 0 0;
}

.cashew-alert {
    color: #9a3412;
}

.cashew-poll.is-loading {
    opacity: .7;
}

.cashew-profile-song {
    margin: 16px 0;
}

.cashew-profile-song__label {
    color: var(--cashew-deep-orange);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cashew-profile-song__embed {
    aspect-ratio: 16 / 9;
    background: var(--cashew-ink);
    border: 2px solid var(--cashew-ink);
    border-radius: 8px;
    overflow: hidden;
    width: min(100%, 560px);
}

.cashew-profile-song__embed iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.cashew-profile-song-form {
    background: #fffaf0;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    margin-top: 16px;
    padding: 16px;
}

.cashew-profile-song-form h3 {
    margin: 0 0 12px;
}

.cashew-profile-song-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.cashew-profile-song-form__row {
    display: flex;
    gap: 8px;
}

.cashew-composer label,
.cashew-message-form label,
.cashew-friend-search label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.cashew-composer,
.cashew-message-form {
    display: grid;
    gap: 10px;
}

.cashew-composer textarea,
.cashew-message-form textarea,
.cashew-message-form select,
.cashew-composer select {
    border: 1px solid #e6ae48;
    border-radius: 6px;
    padding: 10px 12px;
    width: 100%;
}

.cashew-composer__actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.cashew-friend-search__row {
    display: flex;
    gap: 8px;
}

.cashew-friend-search input[type="search"],
.cashew-profile-song-form input[type="url"] {
    border: 1px solid #e6ae48;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
}

.cashew-friend-search button,
.cashew-button,
.cashew-composer button,
.cashew-message-form button,
.cashew-vote-button,
.cashew-profile-song-form button {
    background: var(--cashew-ink);
    border: 1px solid var(--cashew-ink);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
    white-space: nowrap;
}

.cashew-post-feed {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.cashew-wall-post {
    background: #fff;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    padding: 14px;
}

.cashew-wall-post header,
.cashew-wall-post footer {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.cashew-wall-post header span {
    background: var(--cashew-cream);
    border: 1px solid var(--cashew-line);
    border-radius: 999px;
    color: var(--cashew-muted);
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 8px;
}

.cashew-wall-post__content {
    line-height: 1.55;
    margin: 12px 0;
}

.cashew-wall-post__content > *:first-child {
    margin-top: 0;
}

.cashew-wall-post__content > *:last-child {
    margin-bottom: 0;
}

.cashew-wall-post footer {
    justify-content: flex-start;
}

.cashew-vote-button {
    min-width: 72px;
}

.cashew-ranked-posts {
    display: grid;
    gap: 18px;
}

.cashew-ranked-posts h3 {
    margin: 0 0 10px;
}

.cashew-invites,
.cashew-messages {
    display: grid;
    gap: 14px;
}

.cashew-invite-list,
.cashew-message-list {
    display: grid;
    gap: 10px;
}

.cashew-invite-code,
.cashew-message {
    background: #fff;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    padding: 12px;
}

.cashew-invite-code {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.cashew-invite-code strong {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    letter-spacing: .04em;
}

.cashew-invite-code span {
    color: var(--cashew-muted);
    font-weight: 700;
}

.cashew-button {
    display: inline-block;
    text-decoration: none;
}

.cashew-friend-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.cashew-friend-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--cashew-line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px;
}

.cashew-friend-card__main {
    align-items: center;
    color: var(--cashew-ink);
    display: flex;
    font-weight: 800;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.cashew-friend-card__main img {
    border: 2px solid var(--cashew-gold);
    border-radius: 999px;
    flex: 0 0 auto;
}

.cashew-friend-card__main span {
    overflow-wrap: anywhere;
}

.cashew-friend-card__action {
    flex: 0 0 auto;
}

.cashew-friend-card__action form {
    margin: 0;
}

.cashew-friend-card__action--split {
    display: flex;
    gap: 8px;
}

.cashew-friend-card__action .friendship-button,
.cashew-friend-card__action .generic-button {
    margin: 0;
}

.cashew-friend-card__action a,
.cashew-friend-card__action button {
    background: var(--cashew-ink);
    border: 1px solid var(--cashew-ink);
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: 8px 10px;
    text-decoration: none;
}

.cashew-friend-status {
    background: var(--cashew-cream);
    border: 1px solid var(--cashew-line);
    border-radius: 999px;
    color: var(--cashew-muted);
    display: inline-block;
    font-weight: 800;
    padding: 8px 10px;
}

.cashew-friend-requests {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.cashew-friend-requests h3 {
    margin: 6px 0 0;
}

.cashew-help,
.cashew-profile-song-form__status {
    color: var(--cashew-muted);
    margin: 8px 0 0;
}

@media (max-width: 640px) {
    .cashew-brand-hero {
        padding: 14px;
    }

    .cashew-brand-hero__inner {
        align-items: flex-start;
        display: grid;
        min-height: 0;
    }

    .cashew-brand-hero img {
        max-width: 100%;
    }

    .cashew-friend-search__row,
    .cashew-composer__actions,
    .cashew-profile-song-form__row {
        display: grid;
    }

    .cashew-friend-card {
        align-items: flex-start;
        display: grid;
    }

    .cashew-profile__cover,
    .cashew-profile__identity {
        align-items: flex-start;
        display: grid;
    }
}
