:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f5f7f9;
    --line: #e8edf1;
    --line-strong: #d8e0e6;
    --ink: #1f2730;
    --ink-soft: #5f6874;
    --ink-muted: #9aa3ad;
    --accent: #49aee9;
    --accent-soft: #eaf7fd;
    --green: #5fad6b;
    --green-soft: #edf8ef;
    --yellow: #c78a2b;
    --yellow-soft: #fff5e5;
    --purple: #7e72d8;
    --purple-soft: #f1effc;
    --red: #d85b57;
    --red-soft: #fff0ee;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(31, 39, 48, .07);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.performer-body,
body.auth-body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.performer-shell {
    min-height: 100vh;
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    width: 218px;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.sidebar-brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.profile-status-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 28px 0 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(95, 173, 107, .14);
}

.status-label,
.status-value {
    display: block;
}

.status-label {
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 680;
    text-transform: uppercase;
}

.status-value {
    margin-top: 2px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 720;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    padding: 0 11px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.sidebar-link i {
    width: 20px;
    color: var(--ink-muted);
    text-align: center;
    font-size: 16px;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.is-active {
    color: var(--ink);
    background: var(--surface-soft);
}

.sidebar-link.is-active i {
    color: var(--accent);
}

.sidebar-logout {
    margin-top: auto;
    border: 1px solid var(--line);
    color: var(--red);
    background: #fff;
}

.sidebar-logout i {
    color: var(--red);
}

.mobile-topbar,
.mobile-nav {
    display: none;
}

.performer-main {
    width: min(1180px, calc(100% - 278px));
    margin-left: 218px;
    padding: 32px clamp(28px, 5vw, 64px) 56px;
}

.performer-main-profile {
    width: min(1460px, calc(100% - 250px));
}

.dashboard-header,
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
    font-weight: 720;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.12;
    font-weight: 760;
}

.page-subtitle,
.panel-help {
    margin: 7px 0 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.panel,
.auth-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel {
    padding: 18px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-title {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 720;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-soft);
    background: var(--surface);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat-icon,
.material-mini-icon,
.media-icon,
.credit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--accent);
    background: var(--accent-soft);
}

.stat-value,
.stat-label {
    display: block;
}

.stat-value {
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    font-weight: 740;
}

.stat-label {
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.audition-list,
.timeline-list,
.application-table,
.media-list,
.cv-entry-list,
.cv-sections,
.credit-list {
    display: grid;
    gap: 10px;
}

.audition-card,
.timeline-row,
.application-row,
.media-item,
.cv-entry,
.credit-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.audition-card {
    grid-template-columns: minmax(0, 1fr) auto;
}

.audition-title,
.history-title,
.media-title {
    display: block;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.audition-meta,
.history-meta,
.media-meta {
    display: block;
    margin-top: 4px;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
}

.audition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.audition-tags span,
.date-pill,
.soft-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 680;
}

.audition-tags span {
    color: var(--ink-soft);
    background: #fff;
}

.audition-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.date-pill {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.text-action {
    color: var(--accent);
    font-size: 13px;
    font-weight: 680;
    text-decoration: none;
}

.timeline-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 700;
}

.application-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.soft-status.status-accepted {
    color: var(--green);
    background: var(--green-soft);
}

.soft-status.status-pending {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.soft-status.status-new {
    color: var(--accent);
    background: var(--accent-soft);
}

.profile-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.profile-banner {
    position: relative;
    min-height: 190px;
    background:
        linear-gradient(120deg, rgba(73, 174, 233, .78), rgba(126, 114, 216, .58)),
        url("/logos/auditionflow_logo.png");
    background-position: center;
    background-size: cover;
}

.floating-edit-button {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
    background: rgba(31, 39, 48, .58);
    box-shadow: 0 10px 25px rgba(31, 39, 48, .18);
}

.banner-edit-button {
    right: 18px;
    top: 18px;
}

.profile-photo-shell {
    position: relative;
    width: 126px;
    height: 126px;
    margin-top: -54px;
}

.profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 0 22px 22px;
}

.profile-stage-name {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 720;
}

.profile-stage-name:empty {
    display: none;
}

.profile-photo {
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    border: 5px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #7e72d8, #49aee9);
    background-size: 160% 160%;
    font-size: 34px;
    font-weight: 740;
}

.profile-photo-image {
    background-position: center;
    background-size: cover;
}

.photo-edit-button {
    right: 2px;
    bottom: 4px;
}

.profile-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    align-items: start;
}

.profile-main-column,
.profile-side-column {
    display: grid;
    gap: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.soft-field {
    min-height: 64px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.soft-label,
.form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 620;
}

.soft-value {
    display: block;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.required-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-radius: 50%;
    vertical-align: 1px;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(216, 91, 87, .14);
}

.empty-state {
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.bio-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-badge {
    display: inline-grid;
    gap: 2px;
    min-width: 118px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
}

.skill-name {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
}

.skill-category {
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 550;
}

.modal-shell {
    width: min(720px, calc(100% - 32px));
    max-height: min(760px, calc(100vh - 32px));
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
}

.modal-shell-wide {
    width: min(920px, calc(100% - 32px));
}

.modal-shell::backdrop {
    background: rgba(31, 39, 48, .42);
    backdrop-filter: blur(3px);
}

.modal-card {
    display: grid;
    gap: 18px;
    max-height: min(760px, calc(100vh - 32px));
    padding: 18px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.modal-head,
.modal-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-actions {
    align-items: center;
    justify-content: flex-end;
}

.image-picker-grid,
.skill-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.banner-picker-grid {
    grid-template-columns: 1fr;
}

.image-choice,
.skill-option,
.type-option {
    cursor: pointer;
}

.image-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.image-choice input,
.skill-option input,
.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.image-choice:has(input:checked),
.image-choice.is-selected {
    border-color: #a5dff6;
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .12);
}

.image-thumb {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    color: #fff;
    background-size: cover;
    background-position: center;
    font-size: 18px;
}

.banner-thumb {
    width: 104px;
    height: 58px;
}

.image-preview-a {
    background: linear-gradient(145deg, #7e72d8, #49aee9);
}

.image-preview-b {
    background: linear-gradient(145deg, #5fad6b, #49aee9);
}

.image-preview-c {
    background: linear-gradient(145deg, #d85b57, #c78a2b);
}

.image-preview-d {
    background: linear-gradient(145deg, #1f2730, #7e72d8);
}

.image-preview-e {
    background: linear-gradient(145deg, #49aee9, #c78a2b);
}

.image-position-editor {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.position-preview {
    margin: 0;
    background-position: 50% 44%;
}

.position-controls {
    display: grid;
    gap: 8px;
}

.range-control {
    min-height: 34px;
    padding: 0;
}

.skill-editor {
    display: grid;
    gap: 14px;
}

.skill-editor-group {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.skill-editor-group h3 {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 720;
}

.skill-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.skill-option:has(input:checked),
.skill-option.is-selected {
    border-color: var(--ink);
    background: #f7f8f8;
}

.skill-option-indicator {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: transparent;
    background: #fff;
}

.skill-option:has(input:checked) .skill-option-indicator,
.skill-option.is-selected .skill-option-indicator {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
}

.type-option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-option span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--surface-soft);
    font-size: 13px;
    font-weight: 680;
}

.type-option:has(input:checked) span {
    border-color: #a5dff6;
    color: var(--ink);
    background: var(--accent-soft);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.media-column {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.media-column > summary,
.show-more-media > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    color: var(--ink);
    font-size: 13px;
    font-weight: 680;
    list-style: none;
}

.media-column > summary span:last-child,
.show-more-media > summary {
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 560;
}

.media-list {
    margin-top: 12px;
}

.media-empty {
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 560;
}

.media-item {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 9px;
    overflow: hidden;
    background: #fff;
}

.media-item-content {
    transition: filter .16s ease, opacity .16s ease;
}

.media-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    background: rgba(247, 248, 248, .78);
    transition: opacity .16s ease;
}

.media-item:hover .media-item-content,
.media-item:focus-within .media-item-content {
    filter: grayscale(1);
    opacity: .32;
}

.media-item.is-overlay-dismissed .media-item-content {
    filter: none;
    opacity: 1;
}

.media-item:hover .media-item-overlay,
.media-item:focus-within .media-item-overlay {
    opacity: 1;
    pointer-events: auto;
}

.media-item.is-overlay-dismissed .media-item-overlay {
    opacity: 0;
    pointer-events: none;
}

.media-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 39, 48, .12);
}

.media-action-button:hover,
.media-action-button:focus-visible {
    border-color: var(--ink);
}

.media-action-danger {
    color: var(--red);
}

.media-action-danger:hover,
.media-action-danger:focus-visible {
    border-color: var(--red);
}

.provider-youtube {
    color: #e53935;
    background: #fff0ef;
}

.provider-spotify {
    color: #1db954;
    background: #ecfff4;
}

.provider-audio {
    color: var(--purple);
    background: var(--purple-soft);
}

.provider-video {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.provider-file {
    color: var(--accent);
    background: var(--accent-soft);
}

.show-more-media {
    margin-top: 10px;
}

.cv-entry-groups,
.cv-entry-group {
    display: grid;
    gap: 14px;
}

.cv-entry-groups {
    gap: 20px;
}

.cv-entry-group h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 820;
}

.cv-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.cv-entry-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cv-entry-kicker,
.cv-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-entry-kicker span,
.cv-tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
}

.cv-entry h4 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.cv-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.4;
}

.cv-entry-meta strong {
    color: var(--ink);
    font-weight: 800;
}

.cv-entry p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.cv-entry-actions {
    display: flex;
    gap: 6px;
}

.cv-section {
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.cv-section h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.cv-section ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.credit-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.account-grid {
    display: grid;
    gap: 18px;
}

.account-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.account-login-form {
    min-width: 0;
}

.account-login-fields {
    grid-template-columns: 1fr;
}

.account-login-panel {
    display: grid;
    gap: 18px;
}

.account-password-block {
    display: grid;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.account-password-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.account-password-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 760;
}

.account-password-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 17px;
}

.account-password-fields {
    grid-template-columns: 1fr;
    gap: 10px;
}

.language-panel {
    margin-bottom: 18px;
}

.account-overview-grid .language-panel {
    margin-bottom: 0;
}

.language-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.password-language-picker {
    margin-bottom: 20px;
}

.language-flag-button {
    position: relative;
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--surface-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.language-flag-button img,
.language-fallback-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.language-flag-button img {
    display: block;
    object-fit: cover;
}

.language-fallback-flag {
    display: inline-grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: 10px;
}

.language-flag-button.is-current {
    border-color: #a5dff6;
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .12);
}

.current-language-mark {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
}

.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius);
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    text-decoration: none;
}

.button-primary {
    border: 1px solid var(--accent);
    color: #fff;
    background: var(--accent);
}

.button-danger {
    border-color: var(--red);
    background: var(--red);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.form-card,
.content-card {
    padding: 0;
}

.narrow-form {
    max-width: 620px;
}

.single-column {
    grid-template-columns: 1fr;
}

.form-field {
    display: grid;
    align-content: start;
    gap: 6px;
    margin-bottom: 14px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.cv-type-step {
    display: grid;
    gap: 14px;
}

.cv-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.cv-type-card {
    display: grid;
    justify-items: start;
    gap: 12px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--surface-soft);
    font: inherit;
    font-size: 16px;
    font-weight: 820;
    text-align: left;
    cursor: pointer;
}

.cv-type-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cv-type-card:hover,
.cv-type-card:focus-within,
.cv-type-card:focus-visible,
.cv-type-card:has(input:checked) {
    border-color: #9bdcf5;
    background: var(--accent-soft);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .12);
}

.cv-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    color: var(--accent);
    background: #fff;
    font-size: 22px;
}

.form-control,
.form-select {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    box-shadow: inset 0 1px 0 rgba(31, 39, 48, .03);
}

.form-textarea {
    width: 100%;
    min-height: 118px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(31, 39, 48, .03);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 0;
    border-color: #b7e3f6;
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .14);
}

.upload-dropzone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 124px;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink-soft);
    background: var(--surface-soft);
    cursor: pointer;
}

.upload-dropzone input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-dropzone.is-dragging,
.upload-dropzone:focus-within {
    border-color: #9bdcf5;
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .12);
}

.upload-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    color: var(--accent);
    background: #fff;
    font-size: 22px;
}

.upload-dropzone-title,
.upload-dropzone-meta {
    display: block;
}

.upload-dropzone-title {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 720;
}

.upload-dropzone-meta {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 560;
}

.media-visibility-toggle {
    width: fit-content;
}

.field-error,
.validation-summary {
    color: var(--red);
    font-size: 12px;
}

.notice {
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 760;
}

.notice-success {
    color: var(--green);
    background: var(--green-soft);
}

.notice-danger {
    color: var(--red);
    background: var(--red-soft);
}

.toast-region {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 50px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    box-shadow: 0 18px 38px rgba(31, 39, 48, .14);
    pointer-events: auto;
    animation: toastIn .18s ease-out;
}

.app-toast-success {
    border-color: #c8e8cf;
}

.app-toast-success > i {
    color: var(--green);
}

.app-toast-danger {
    border-color: #f1c7c5;
}

.app-toast-danger > i {
    color: var(--red);
}

.app-toast-warning {
    border-color: #f0d391;
}

.app-toast-warning > i {
    color: #b7791f;
}

.app-toast span {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.app-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .16s ease, transform .16s ease;
}

.toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    color: var(--ink-muted);
    background: transparent;
}

.toast-close:hover,
.toast-close:focus-visible {
    color: var(--ink);
    background: var(--surface-soft);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-danger-panel {
    margin-top: 10px;
    border-color: #f1c5c2;
    background: var(--red-soft);
    box-shadow: none;
}

.account-danger-panel .form-control {
    border-color: #eba8a4;
    background: #fff;
}

.account-delete-disclosure {
    margin-top: 18px;
}

.account-delete-disclosure > summary {
    list-style: none;
}

.account-delete-disclosure > summary::-webkit-details-marker {
    display: none;
}

.account-delete-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    color: var(--red);
    font-size: 13px;
    font-weight: 720;
    cursor: pointer;
}

.account-delete-summary:hover,
.account-delete-summary:focus-visible {
    color: #b94743;
    outline: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-delete-summary i {
    font-size: 13px;
    transition: transform .16s ease;
}

.account-delete-disclosure[open] .account-delete-summary i {
    transform: rotate(180deg);
}

.settings-list {
    display: grid;
    gap: 10px;
}

.setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.switch {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
}

.switch input {
    position: absolute;
    opacity: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #b8c1c8;
    cursor: pointer;
}

.switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s ease;
}

.switch input:checked + span {
    background: var(--accent);
}

.switch input:checked + span::after {
    transform: translateX(18px);
}

.auth-shell {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 100vh;
    padding: 28px 18px;
    background: var(--bg);
}

.auth-brand {
    display: inline-flex;
    margin-bottom: 22px;
}

.auth-brand img {
    display: block;
    max-width: 166px;
    max-height: 74px;
    object-fit: contain;
}

.auth-card {
    width: calc(100vw - 36px);
    max-width: 410px;
    padding: 28px;
}

@media (max-width: 540px) {
    .auth-card {
        max-width: 354px;
    }
}

.auth-title {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 760;
}

.login-header {
    margin-bottom: 22px;
    text-align: center;
}

.login-form {
    display: grid;
}

.login-remember-row {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 18px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    margin: 0;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 620;
}

.login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.auth-text {
    margin: 10px 0 20px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 650;
}

.auth-footer-text {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: center;
}

.auth-footer-text a,
.auth-actions a {
    color: var(--accent);
}

.login-link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 620;
}

.login-link-row a {
    color: var(--accent);
    text-decoration: none;
}

.login-link-row a:hover,
.login-link-row a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-error {
    margin: 12px 0 0;
    line-height: 1.4;
    font-weight: 650;
}

.auth-language-picker {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.auth-language-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 22px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.auth-language-button img,
.auth-language-fallback {
    width: 24px;
    height: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: #fff;
}

.auth-language-button img {
    display: block;
    object-fit: cover;
}

.auth-language-fallback {
    display: inline-grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: 8px;
    font-weight: 760;
}

.auth-language-button:hover,
.auth-language-button:focus-visible {
    outline: 0;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .65);
}

.auth-language-button.is-current {
    border-color: #9bdcf5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(73, 174, 233, .12);
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-bottom: 0;
    color: var(--ink-soft);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.check-row:has(input:checked) {
    border-color: #a5dff6;
    color: var(--ink);
    background: var(--accent-soft);
}

.check-row input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
}

.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.range-field {
    --range-thumb-size: 18px;
    --range-thumb-half: calc(var(--range-thumb-size) / 2);
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.range-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 720;
}

.range-slider-shell {
    position: relative;
    min-height: 34px;
    padding: 12px var(--range-thumb-half);
}

.range-slider-track {
    position: absolute;
    left: var(--range-thumb-half);
    right: var(--range-thumb-half);
    top: 50%;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--line-strong);
}

.range-slider-track span {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--accent);
}

.range-slider-input {
    position: absolute;
    left: var(--range-thumb-half);
    top: 4px;
    z-index: 2;
    width: calc(100% - var(--range-thumb-size));
    height: 26px;
    margin: 0;
    appearance: none;
    pointer-events: none;
    background: transparent;
}

.range-slider-input::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
}

.range-slider-input::-moz-range-track {
    height: 5px;
    background: transparent;
}

.range-slider-input::-webkit-slider-thumb {
    width: var(--range-thumb-size);
    height: var(--range-thumb-size);
    margin-top: -7px;
    appearance: none;
    pointer-events: auto;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(31, 39, 48, .18);
    cursor: grab;
}

.range-slider-input::-moz-range-thumb {
    width: var(--range-thumb-size);
    height: var(--range-thumb-size);
    pointer-events: auto;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(31, 39, 48, .18);
    cursor: grab;
}

.range-slider-input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .2), 0 2px 8px rgba(31, 39, 48, .18);
}

.range-slider-input:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(73, 174, 233, .2), 0 2px 8px rgba(31, 39, 48, .18);
}

.range-option-row {
    display: grid;
    grid-template-columns: repeat(var(--range-option-count), minmax(0, 1fr));
    justify-items: center;
    gap: 0;
    padding: 0 var(--range-thumb-half);
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 620;
}

.range-option-row span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.range-empty {
    min-height: 44px;
    padding: 12px;
    border-radius: var(--radius);
    color: var(--ink-muted);
    background: var(--surface-soft);
    font-size: 13px;
    font-weight: 650;
}

.profile-onboarding-actions {
    margin-top: 16px;
}

@media (max-width: 1180px) {
    .info-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .dashboard-sidebar {
        display: none;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 66px;
        padding: 10px 18px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(14px);
    }

    .mobile-logo {
        display: block;
        max-width: 148px;
        max-height: 42px;
        object-fit: contain;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--ink);
        background: var(--surface);
        font: inherit;
        font-size: 13px;
        font-weight: 680;
    }

    .mobile-nav {
        display: none;
        padding: 10px 18px 14px;
        border-bottom: 1px solid var(--line);
        background: #fff;
    }

    .mobile-nav.is-open {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-nav-link,
    .mobile-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        color: var(--ink-soft);
        background: var(--surface-soft);
        text-decoration: none;
        font-size: 13px;
        font-weight: 760;
    }

    .mobile-nav-link.is-active {
        color: #fff;
        background: var(--accent);
    }

    .performer-main {
        width: min(100% - 32px, 780px);
        margin-left: auto;
        margin-right: auto;
        padding: 24px 0 42px;
    }

    .account-overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .profile-page-grid,
    .profile-identity {
        grid-template-columns: 1fr;
    }

    .profile-photo-shell {
        margin-top: -64px;
    }
}

@media (max-width: 620px) {
    .performer-main {
        width: min(100% - 24px, 780px);
    }

    .dashboard-header,
    .page-header,
    .panel-head,
    .audition-card,
    .application-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stats-strip,
    .info-grid,
    .media-grid,
    .image-picker-grid,
    .skill-option-grid,
    .image-position-editor,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 26px;
    }

    .button-row,
    .auth-actions {
        display: grid;
        justify-content: stretch;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }
}
