/* Working sections: one task surface, explicit concert context. */
[hidden] { display: none !important; }
.site-header .yandex-login { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
@media (max-width: 1100px) {
  html[data-layout="desktop"] .site-header { flex-wrap: wrap; gap: 8px; }
  html[data-layout="desktop"] .site-header > nav { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
}
.brand-dark { display: none !important; }
.brand { background: transparent; }
.theme-toggle { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: .8rem; }
.site-header { padding-block: 12px; gap: 16px; }
.site-header > nav, .nav-links { gap: 14px; }
.site-header .brand { flex-basis: 205px; width: 205px; height: 44px; }
.site-header .account-name { display: none; }
.nav-cabinets > div { min-width: 240px; max-height: min(70vh, 550px); overflow-y: auto; }
.nav-menu-group { padding: 8px 11px 2px; font-size: .75rem; color: var(--muted); }
.nav-cabinets a { display: flex; align-items: center; justify-content: space-between; }
.queue-badge { display: inline-grid; place-items: center; min-width: 22px; padding: 1px 6px; border-radius: 20px; background: var(--wine); color: #fff; font-size: .75rem; margin-left: 6px; }
.mobile-menu-sheet { position: fixed; z-index: 45; inset: auto 12px 82px; max-height: 65vh; overflow-y: auto; padding: 18px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 40px #0003; }
.mobile-menu-sheet a { display: block; padding: 13px 8px; text-decoration: none; }
.mobile-menu-sheet header { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-sheet button { min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.workspace-shell { background: var(--paper-soft); grid-template-columns: 212px minmax(0, 1fr); }
.workspace-shell .admin-side { position: sticky; top: 82px; align-self: start; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--paper); padding: 20px 12px; }
.workspace-shell .admin-side a { padding: 9px 10px; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; }
.workspace-shell .admin-side a.active { background: var(--paper-soft); border-left: 3px solid var(--wine); }
.workspace-nav-label { margin: 22px 10px 8px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.workspace-shell .admin-main { padding: 0 28px 40px; min-width: 0; }
.workspace-context { position: sticky; z-index: 14; top: 82px; padding: 20px 0 14px; background: var(--paper-soft); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.workspace-context .eyebrow { margin-bottom: 6px; }
.workspace-shell .workspace-context h1 { font-size: 1.8rem; color: var(--ink); line-height: 1.2; letter-spacing: -.03em; }
.workspace-context-meta { margin: 7px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.workspace-section-picker { display: none; }
.workspace-shell h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.02em; }
.workspace-shell h3 { font-size: 1.12rem; line-height: 1.35; }
.workspace-shell .panel { padding: 20px; margin: 0 0 18px; }
.workspace-shell .admin-section { margin: 0; }
.workspace-shell .section-head { margin-bottom: 20px; align-items: center; }
.workspace-shell .field label, .workspace-shell .field-hint { font-size: .875rem; }
.workspace-shell .field input, .workspace-shell .field select { min-height: 44px; }
.workspace-shell .admin-stats { gap: 10px; margin: 22px 0; }
.admin-stat-link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.admin-stat-link:hover { text-decoration-thickness: 3px; }
.admin-stat-link:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.workspace-shell .admin-card { background: var(--paper); border: 1px solid var(--line); }
.attention-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; line-height: 1.4; }
.attention-row:last-child { border-bottom: 0; }
.attention-row > span { color: var(--wine); flex-shrink: 0; }
.workspace-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.notification-panel { margin-top: 22px !important; }
.notification-panel p { line-height: 1.6; max-width: 65ch; }
.queue-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr); gap: 12px; margin: 18px 0; }
.queue-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: .875rem; }
.queue-toolbar input, .queue-toolbar select { min-height: 46px; width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.application-disclosure { border-top: 1px solid var(--line); }
.application-disclosure > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; }
.application-disclosure > summary strong, .application-disclosure > summary small { display: block; }
.application-disclosure > summary small { color: var(--muted); margin-top: 5px; }
.application-disclosure > summary .status { white-space: normal; }
.application-details { padding: 0 0 18px; }
.application-details > p { line-height: 1.6; }
.application-details .band-leader-form { margin-top: 18px; }
.workspace-cycle summary { cursor: pointer; min-height: 30px; }
.workspace-cycle p { line-height: 1.6; max-width: 65ch; }
.workspace-bottom { display: none; }
.group-directory { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); }
.group-directory-item { display: flex; align-items: center; gap: 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.group-directory-item:last-child { border-bottom: 0; }
.group-directory-item .group-directory-card { min-height: 94px; padding: 16px 20px; flex: 1; border: 0; }
.group-directory-card h2 { font-size: 1.2rem; line-height: 1.2; }
.group-directory-card .eyebrow { margin-bottom: 6px; font-size: .75rem; }
.group-directory-card p { font-size: .875rem; }
.group-directory-delete { position: static; margin-right: 20px; flex-shrink: 0; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.catalog-filters button { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 10px 14px; min-height: 44px; cursor: pointer; }
.catalog-filters button[aria-pressed="true"] { border-color: var(--wine); background: var(--paper-soft); }
.group-directory-item.catalog-group-row { display: block; }
.catalog-group-heading { display: flex; align-items: center; gap: 12px; }
.catalog-group-heading .group-directory-card { min-width: 0; }
.catalog-group-heading h2 { overflow-wrap: anywhere; }
.catalog-group-actions { padding: 0 20px 16px; display: grid; gap: 12px; }
.catalog-group-actions:empty { display: none; }
.catalog-group-actions summary { cursor: pointer; width: fit-content; min-height: 44px; align-content: center; }
.catalog-lineup-form { padding-top: 16px; display: grid; gap: 14px; }
.catalog-lineup-form fieldset { border: 1px solid var(--line); min-width: 0; padding: 12px; }
.catalog-lineup-form .check { padding-block: 8px; }
.catalog-lineup-form .field { max-width: 320px; }
.catalog-lineup-form .button { justify-self: start; }
.catalog-moderation .application-details { padding-inline: 0; }
.catalog-concert-context { padding: 14px 16px; border-left: 3px solid var(--wine); background: var(--paper-soft); line-height: 1.6; }
.leader-status-message { background: var(--paper-soft); border-left: 4px solid var(--wine); padding: 18px 20px; margin: 18px 0; line-height: 1.6; }
.leader-status-message h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.12rem; }
.leader-status-message p { margin: 0; }
.leader-page .page-title h1, .groups-page .page-title h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; }
.leader-page .application-card { margin-bottom: 24px; }
.leader-page .application-card h2 { font-size: 1.5rem; line-height: 1.2; }
.leader-page .application-card .lineup-form h3 { margin-top: 0; }
.leader-page .lineup-form .field { max-width: 520px; }
.leader-page .lineup-checks { display: grid; gap: 4px; }
.leader-page .lineup-checks .check { padding: 8px 0; }
.leader-permanent-groups { margin-top: 32px; }
.leader-permanent-groups .actions { margin: 12px 0 22px; }
.archive-preview-empty { padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.archive-preview-empty p { color: var(--muted); line-height: 1.6; }
.home-compact .hero-copy { min-height: 420px; padding: 40px 34px; }
.home-compact .hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
.home-compact .event-poster { min-height: 420px; }
.home-compact .hero.hero-with-artwork { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); align-items: start; background: var(--sand); }
.poster-artwork { min-width: 0; }
.poster-artwork > img { display: block; width: 100%; height: auto; }
.home-compact .hero-copy.poster-artwork-actions { min-height: 0; gap: 24px; padding: 32px; }
.poster-artwork-actions .actions { display: flex; flex-direction: column; align-items: stretch; }
.poster-artwork-actions .project-links { display: flex; flex-direction: column; align-items: start; }
.admin-poster-preview { display: block; width: min(100%, 220px); height: auto; margin-block: 18px; }
.poster-upload-form { display: flex; flex-direction: column; align-items: start; gap: 16px; }
.poster-upload-form .field { width: 100%; }
.event-poster-settings > [data-remove-poster] { margin-top: 20px; }
html[data-layout="mobile"] .home-compact .hero.hero-with-artwork { grid-template-columns: minmax(0, 1fr); }
html[data-layout="mobile"] .home-compact .hero-copy.poster-artwork-actions { min-height: 0; padding: 24px 22px; }
.home-compact .archive-preview { padding-block: 28px; }
.home-compact .archive-preview .archive-card-body { min-height: 180px; }
.unsaved-banner { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.workspace-context-change { padding: 14px; border: 1px solid var(--pink); background: var(--paper); }
.archive-admin-event > details > summary { cursor: pointer; list-style: none; }
.archive-admin-event > details > summary .admin-form-head { margin-bottom: 0; }
.archive-admin-event > details[open] > summary { margin-bottom: 20px; }
.archive-admin-event h2 { font-size: 1.5rem; }
.archive-admin-event { padding: 20px; }
.archive-toolbar { margin: 20px 0; }
html[data-theme="dark"] .admin-side { background: var(--paper); }
html[data-theme="dark"] .mini-button:not(.primary), html[data-theme="dark"] .button:not(.primary), html[data-theme="dark"] .panel h2, html[data-theme="dark"] .section h2, html[data-theme="dark"] .admin-side h2, html[data-theme="dark"] .nav-cabinets summary { color: var(--pink); }
html[data-theme="dark"] .mini-button:not(.primary), html[data-theme="dark"] .button:not(.primary) { border-color: #99546C; }

html[data-theme="dark"] { color-scheme: dark; --paper: #242320; --paper-soft: #191816; --ink: #F5F0E8; --muted: #C3BCB3; --line: #49453E; }
html[data-theme="dark"] .brand-light { display: none !important; }
html[data-theme="dark"] .brand-dark { display: block !important; }
html[data-theme="dark"] .site-header { background: #191816f5; }
html[data-theme="dark"] .mobile-nav { background: #242320f5; }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] nav a:hover, html[data-theme="dark"] nav a[aria-current="page"], html[data-theme="dark"] .admin-card strong, html[data-theme="dark"] .attention-row > span, html[data-theme="dark"] .layout-toggle { color: var(--pink); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .hero-copy { color: #1D1D1B; }
html[data-theme="dark"] .hero-copy .eyebrow, html[data-theme="dark"] .hero-copy .project-links a { color: #A91E51; }
html[data-theme="dark"] .hero-copy .button:not(.primary) { color: #1D1D1B; border-color: #1D1D1B; }
html[data-theme="dark"] .status, html[data-theme="dark"] .feedback { background: #3D3021; color: var(--ink); }
html[data-theme="dark"] .feedback.error { background: #3B1B28; color: #F4B8CE; }
html[data-theme="dark"] .admin-side a.active { color: var(--ink); }
html[data-theme="dark"] .technical-peak-list > span,
html[data-theme="dark"] .technical-instruments > span { background: var(--paper-soft); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
html[data-theme="dark"] .technical-rider-band strong,
html[data-theme="dark"] .technical-summary article > strong { color: var(--pink); }
html[data-theme="dark"] .technical-rider-header { background: var(--paper-soft); color: var(--muted); }
.workspace-shell .technical-rider-table { padding: 0; }
html[data-layout="mobile"] .workspace-shell .technical-rider-table { padding: 0; }
html[data-layout="mobile"] .workspace-shell .technical-rider-row > div { display: block; }
html[data-layout="mobile"] .workspace-shell .technical-rider-row > div::before { display: block; margin-bottom: 8px; }
html[data-layout="mobile"] .workspace-shell .technical-instruments > span { display: inline-block; margin: 0 4px 6px 0; }
html[data-layout="mobile"] .workspace-shell .technical-equipment-item + .technical-equipment-item { margin-top: 12px; }
html[data-theme="dark"] .admin-band-card > summary strong, html[data-theme="dark"] .page-title .eyebrow { color: var(--pink); }
html[data-theme="dark"] .hero-copy .hero-lead { color: #39342f; }
html[data-theme="dark"] .jam-screen-page { --ink: #1D1D1B; --paper: #fff; --paper-soft: #FFF8EE; --muted: #655F59; --line: rgba(29,29,27,.22); }
html[data-theme="dark"] .jam-screen-page.jam-screen-dark { --ink: #F5F0E8; --paper: #242320; --paper-soft: #191816; --muted: #C3BCB3; --line: #49453E; }

html[data-layout="mobile"] .site-header { gap: 8px; flex-wrap: wrap; min-height: 65px; }
html[data-layout="mobile"] .site-header .brand { flex-basis: 146px; width: 146px; height: 33px; }
html[data-layout="mobile"] .site-header > nav { gap: 5px; flex-wrap: wrap; }
html[data-layout="mobile"] .theme-toggle, html[data-layout="mobile"] .layout-toggle { font-size: .75rem; padding: 7px; }
html[data-layout="mobile"] .mobile-nav { justify-content: space-between; overflow: visible; }
html[data-layout="mobile"] .mobile-nav a, html[data-layout="mobile"] .mobile-nav button { flex: 1 1 0; min-width: 0; min-height: 64px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 650; padding: 8px 4px; }
html[data-layout="mobile"] .workspace-shell .admin-side { display: none; }
html[data-layout="mobile"] .workspace-shell .admin-main { padding: 0 14px 92px; overflow: visible; }
html[data-layout="mobile"] .workspace-context { top: var(--header-height, 100px); padding: 14px 0 12px; display: flex; flex-direction: row; gap: 10px; }
html[data-layout="mobile"] .workspace-shell .workspace-context h1 { font-size: 1.25rem; line-height: 1.25; }
html[data-layout="mobile"] .workspace-context .eyebrow { font-size: .7rem; letter-spacing: .06em; }
html[data-layout="mobile"] .workspace-context-meta { font-size: .8rem; }
html[data-layout="mobile"] .workspace-context .status { font-size: .7rem; padding: 6px; }
html[data-layout="mobile"] .workspace-section-picker { display: grid; gap: 6px; margin: 0 0 22px; font-size: .875rem; }
html[data-layout="mobile"] .workspace-section-picker select { width: 100%; min-height: 48px; padding: 10px; font-size: 16px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
html[data-layout="mobile"] .workspace-shell .panel { padding: 16px; }
html[data-layout="mobile"] .workspace-shell .section-head { display: grid; gap: 10px; }
html[data-layout="mobile"] .workspace-shell .attention-row { font-size: .875rem; }
html[data-layout="mobile"] .workspace-shell h2 { font-size: 1.35rem; }
html[data-layout="mobile"] .workspace-bottom { position: fixed; z-index: 35; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); display: flex; border-top: 1px solid var(--line); background: var(--paper); padding-bottom: env(safe-area-inset-bottom); }
html[data-layout="mobile"] .workspace-bottom a, html[data-layout="mobile"] .workspace-bottom button { display: grid; place-items: center; flex: 1; min-width: 0; min-height: 62px; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); font-size: .8rem; text-decoration: none; }
html[data-layout="mobile"] .workspace-bottom a[aria-current] { color: var(--wine); background: var(--paper-soft); font-weight: 750; }
html[data-theme="dark"][data-layout="mobile"] .workspace-bottom a[aria-current] { color: var(--pink); }
html[data-layout="mobile"] .workspace-quick-actions { display: grid; }
html[data-layout="mobile"] .queue-toolbar { grid-template-columns: 1fr; }
html[data-layout="mobile"] .application-disclosure > summary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
html[data-layout="mobile"] .application-disclosure > summary .status { justify-self: start; }
html[data-layout="mobile"] .group-directory-item { display: grid; gap: 0; }
html[data-layout="mobile"] .group-directory-item .group-directory-card { min-height: 100px; padding: 16px; }
html[data-layout="mobile"] .group-directory-delete { margin: 0 16px 14px; width: auto; }
html[data-layout="mobile"] .home-compact .hero-copy { min-height: 390px; padding: 30px 22px; }
html[data-layout="mobile"] .home-compact .event-poster { min-height: 310px; }
html[data-layout="mobile"] .archive-preview .archive-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
html[data-layout="mobile"] .archive-preview .archive-card { flex: 0 0 88%; scroll-snap-align: start; }
