:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-soft: #f2f7f4;
  --line: #e3e8e6;
  --line-strong: #d5ddda;
  --text: #101828;
  --muted: #667085;
  --green: #168246;
  --green-dark: #0f6a36;
  --green-soft: #eaf6ef;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --red: #ef4444;
  --red-soft: #fff1f1;
  --orange: #f59e0b;
  --purple: #7c3aed;
  --purple-soft: #f2ecff;
  --shadow: 0 8px 24px rgba(16, 24, 40, .05);
  --radius: 16px;
  --sidebar: 244px;
  --topbar: 92px;
  --mobile-bottom-nav-height: 60px;
  --mobile-content-bottom-space: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 24px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: var(--topbar) 1fr; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; padding: 14px 18px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 360px; }
.logo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--green), var(--green-dark)); color: white; box-shadow: 0 8px 20px rgba(22,130,70,.22); }
.logo-icon { width: 29px; height: 29px; }
.ui-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.brand-title { font-weight: 800; font-size: 20px; display: block; }
.brand-status { color: var(--muted); font-size: 13px; margin-top: 2px; }
.status-dot-mini { display: inline-block; width: 7px; height: 7px; margin: 0 4px 1px; border-radius: 50%; background: var(--green); }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #344054; cursor: pointer; }
.icon-button:hover { background: #f2f4f7; }
.global-search { flex: 1; max-width: 760px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.search-mark { display: inline-grid; place-items: center; color: var(--muted); }
.search-icon { width: 18px; height: 18px; }
.global-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 140px; color: var(--text); }
kbd { border: 1px solid var(--line-strong); background: #f3f5f7; border-radius: 6px; color: var(--muted); padding: 2px 7px; font-size: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.divider { height: 36px; border-left: 1px solid var(--line); }
.profile { border: 0; background: transparent; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile small { display: block; color: var(--muted); margin-top: 2px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-weight: 800; }
.profile-card .chevron { color: var(--muted); display: inline-grid; place-items: center; }
.chevron-icon { width: 16px; height: 16px; }
.sidebar { grid-row: 2; background: rgba(255,255,255,.72); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; color: #42526b; font-weight: 650; margin-bottom: 8px; }
.nav-item > .nav-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 24px; }
.nav-item .ui-icon { width: 21px; height: 21px; }
.nav-item:hover { background: #f3f6f5; }
.nav-item.active { background: var(--green-soft); color: var(--green-dark); }
.collapse { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--muted); padding: 12px 8px; cursor: pointer; }
.content { grid-column: 2; grid-row: 2; padding: 34px 32px 42px; min-width: 0; }
.page-heading { margin-bottom: 24px; }
.page-heading h1, .detail-hero h1 { font-size: 32px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.03em; }
.page-heading p, .detail-hero p, .breadcrumb, .subtle { color: var(--muted); }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); gap: 20px; align-items: center; margin-bottom: 18px; }
.dashboard-hero h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; }
.dashboard-hero p { margin: 0; max-width: 60ch; }
.dashboard-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-stat { min-width: 0; }
.dashboard-search { display: grid; gap: 12px; margin-bottom: 16px; }
.dashboard-search-form { display: grid; gap: 6px; }
.dashboard-search-form label { font-weight: 800; color: #475467; font-size: 13px; }
.dashboard-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.dashboard-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-bottom: 16px; }
.dashboard-sidebar { display: grid; gap: 18px; }
.dashboard-panel { display: grid; gap: 10px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.panel-head h2 { margin: 0; font-size: 18px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.dashboard-program, .dashboard-material { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dashboard-program:hover, .dashboard-material:hover { border-color: #bfd2c8; background: #fbfdfc; }
.dashboard-program-main { display: grid; gap: 3px; min-width: 0; }
.dashboard-program-main small, .dashboard-material-main small { color: var(--muted); overflow-wrap: anywhere; }
.dashboard-program-meta, .dashboard-material-meta { display: grid; justify-items: end; gap: 6px; text-align: right; }
.dashboard-program-meta strong { font-size: 14px; }
.dashboard-program-meta span { font-size: 12px; color: var(--muted); }
.dashboard-badges, .dashboard-material-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.dashboard-material { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-material-main { display: grid; gap: 3px; min-width: 0; }
.attention-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.counter-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: grid; gap: 2px; }
.counter-card b { font-size: 22px; }
.counter-card small { color: var(--muted); line-height: 1.25; }
.quick-link-list { display: grid; gap: 10px; }
.quick-link-list .wide { width: 100%; justify-content: center; }
.dashboard-recent { margin-top: 18px; }
.with-stats { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 16px; }
.stat-card { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 150px; }
.stat-icon { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-weight: 800; font-size: 20px; }
.stat-icon-svg { width: 22px; height: 22px; }
.stat-card b { font-size: 22px; }
.stat-card small { color: var(--muted); }
.filter-card, .table-card, .card, .meta-card, .materials-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-card { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)) auto auto; gap: 16px; padding: 18px; margin-bottom: 20px; align-items: end; }
.library-filter { grid-template-columns: repeat(6, minmax(150px, 1fr)) auto auto; }
.filter-card label { display: grid; gap: 7px; color: #475467; font-weight: 650; font-size: 13px; }
select, input, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; padding: 0 12px; outline: none; color: var(--text); }
select, input { height: 44px; }
textarea { min-height: 120px; padding: 12px; resize: vertical; line-height: 1.45; }
select:focus, input:focus, textarea:focus { border-color: rgba(22,130,70,.45); box-shadow: 0 0 0 4px rgba(22,130,70,.08); }
.admin-write-form { display: grid; gap: 8px; min-width: 180px; }
.admin-write-form .button.small { width: fit-content; }
.button { min-height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; cursor: pointer; }
.button:hover { border-color: #bcc8c3; }
.button.primary { border-color: var(--green); background: linear-gradient(180deg, #18884a, #0f733b); color: white; box-shadow: 0 8px 20px rgba(22,130,70,.22); }
.button.ghost { background: #fff; }
.button.small { min-height: 34px; padding: 7px 14px; color: var(--green-dark); }
.button.big { min-height: 54px; padding: 14px 22px; }
.icon-action {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--green-dark);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.icon-action:hover {
  border-color: var(--green);
  background: var(--green-soft);
}
.icon-action:focus-visible {
  outline: 3px solid rgba(22, 130, 70, .18);
  outline-offset: 2px;
}
.icon-action .action-icon {
  width: 18px;
  height: 18px;
}
.icon-action.danger {
  color: var(--red);
}
.icon-action.danger:hover {
  border-color: var(--red);
  background: var(--red-soft);
}
.toggle-label { display: flex !important; align-items: center; gap: 12px; height: 44px; white-space: nowrap; }
.toggle-label input { display: none; }
.toggle { width: 46px; height: 26px; background: #d0d5dd; border-radius: 999px; position: relative; transition: .2s; }
.toggle::after { content: ""; width: 20px; height: 20px; background: white; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.toggle-label input:checked + .toggle { background: var(--green); }
.toggle-label input:checked + .toggle::after { transform: translateX(20px); }
.table-card { overflow: hidden; }
.catalog-table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; color: #667085; font-weight: 800; background: #fbfcfd; }
td { color: #344054; }
tbody tr:hover { background: #fbfdfc; }
.title-link { color: var(--text); font-weight: 800; }
.title-link:hover { color: var(--green-dark); }
.person-credit-link { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.person-credit-link:hover { color: var(--green); }
.person-credit-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.chip, .mat, .status-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; background: #fff; color: #475467; font-size: 12px; font-weight: 750; margin: 2px; white-space: nowrap; }
.chip.success, .status-badge.ok { background: var(--green-soft); color: var(--green-dark); border-color: #cce9d8; }
.chip.muted { color: var(--muted); background: #f5f7f6; }
.chip.text-role { background: var(--purple-soft); color: var(--purple); border-color: #ded3ff; }
.mat.pdf, .pdf-red { color: var(--red); background: var(--red-soft); border-color: #ffd6d6; }
.mat.audio { color: var(--green-dark); background: var(--green-soft); border-color: #cce9d8; }
.mat.voices { color: var(--blue); background: var(--blue-soft); border-color: #d8e5ff; }
.mat.pronunciation { color: #ea580c; background: #fff2df; border-color: #fed7aa; }
.mat.movements { color: #344054; background: #f2f4f7; border-color: #d0d5dd; }
.mat.player { color: var(--green-dark); background: #eefaf2; border-color: #caead6; }
.mat.icon-only { width: 30px; height: 30px; justify-content: center; padding: 0; }
.mat.icon-only svg { width: 15px; height: 15px; }
.materials-inline { min-width: 0; white-space: nowrap; }
.actions-cell { white-space: nowrap; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: var(--muted); }
.table-footer select { width: 76px; height: 38px; margin-left: 8px; }
.pagination { display: flex; align-items: center; gap: 7px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #475467; }
.pagination .current { color: var(--green-dark); background: var(--green-soft); border: 1px solid #cce9d8; }
.pagination--full { justify-content: center; flex-wrap: nowrap; margin-top: 18px; overflow-x: auto; }
.pagination--full a, .pagination--full span { text-decoration: none; }
.pagination--full .pagination-control { display: inline-flex; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line); background: #fff; padding: 0 8px; flex: 0 0 auto; }
.pagination--full .pagination-control:hover, .pagination--full a:hover { background: var(--green-soft); color: var(--green-dark); }
.pagination--full .pagination-control.is-disabled { opacity: .38; background: #f8faf9; }
.pagination--full .pagination-control .pagination-icon { width: 13px; height: 13px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.detail-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.detail-hero h1 { font-size: 40px; }
.detail-hero p { margin: 4px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.two-column-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.main-column { min-width: 0; }
.right-column, .person-panel { display: grid; gap: 18px; align-content: start; }
.meta-card { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 0; margin-bottom: 20px; padding: 20px; }
.meta-card div { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 10px 16px; border-right: 1px solid var(--line); }
.meta-card div:nth-child(4n), .meta-card div:last-child { border-right: 0; }
.meta-card small { color: var(--muted); font-weight: 650; }
.meta-card b { grid-column: 2; }
.meta-icon { grid-row: 1 / 3; color: var(--green); font-size: 22px; }
.meta-card .wide { grid-column: span 2; }
.materials-card { padding: 20px; margin-bottom: 20px; }
.materials-card h2, .card h2 { margin: 0 0 16px; font-size: 18px; }
.work-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.work-title h1 { font-size: 38px; line-height: 1.1; margin: 0 0 8px; }
.work-title p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-page .materials-card { padding: 0; overflow: hidden; }
.material-admin-section { margin: 0; border-radius: 0; background: #fcfdfd; }
.materials-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.material-admin-form { min-width: 0; }
.material-admin-form label { display: grid; gap: 6px; color: #475467; font-weight: 650; font-size: 13px; }
.material-admin-form select, .material-admin-form input { height: 42px; }
.work-editor-card .section-head { align-items: flex-start; }
.work-editor-heading-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work-editor-heading-line h2 { margin: 0; }
.work-editor-intro { margin: 4px 0 0; }
.work-editor-global-actions { display: grid; gap: 8px; justify-items: end; text-align: right; }
.work-editor-header-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.work-editor-add-material-button { white-space: nowrap; }
.work-editor-add-material-chevron { width: 16px; height: 16px; transition: transform .16s ease; }
.work-editor-card.is-material-composer-open .work-editor-add-material-chevron { transform: rotate(180deg); }
.work-material-composer[hidden], .work-material-composer-panel[hidden] { display: none !important; }
.work-material-composer {
  display: grid;
  gap: 14px;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fbf9;
}
.work-material-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.work-material-composer-head > div { display: grid; gap: 3px; }
.work-material-composer-head strong { font-size: 16px; }
.work-material-composer-head span { color: var(--muted); font-size: 13px; }
.work-material-composer-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.work-material-composer-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.work-material-composer-tabs button:hover { border-color: #b9d4c2; background: #f4faf6; }
.work-material-composer-tabs button[aria-selected="true"] {
  border-color: #8fc7a2;
  background: #eaf7ee;
  color: var(--green-dark);
}
.work-material-composer-tabs button:focus-visible {
  outline: 3px solid rgba(22, 130, 70, .18);
  outline-offset: 2px;
}
.work-material-composer-panels {
  padding: 14px;
  border: 1px solid #dfe9e2;
  border-radius: 12px;
  background: #fff;
}
.work-material-composer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.work-material-composer-form label { display: grid; gap: 6px; min-width: 0; color: #475467; font-size: 13px; font-weight: 650; }
.work-material-composer-form input, .work-material-composer-form select { width: 100%; min-width: 0; height: 40px; }
.work-material-composer-form input[type="file"] { height: auto; min-height: 40px; padding: 7px 9px; }
.work-material-composer-field--wide, .work-material-composer-submit { grid-column: 1 / -1; }
.work-material-composer-submit { justify-content: flex-end; }

.work-editor-card .button:disabled {
  border-color: #d0d5dd;
  background: #eef1f3;
  color: #98a2b3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.work-editor-form { display: grid; gap: 0; }
.work-editor-section { display: grid; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.work-editor-section:last-of-type { border-bottom: 0; }
.work-editor-collapsible.is-collapsed .work-editor-section-body[hidden] { display: none; }
.work-editor-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: -8px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .16s ease;
}
.work-editor-section-head:hover { background: #f7faf8; }
.work-editor-collapsible.is-dirty > .work-editor-section-head .work-editor-toggle::after,
.work-editor-material-group.is-dirty > .work-editor-material-group-head .work-editor-toggle::after {
  content: " • Є зміни";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4e6;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  vertical-align: middle;
}
.work-editor-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.work-editor-toggle-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.work-editor-section-icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--green); }
.work-editor-chevron { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); transition: transform .16s ease; }
.work-editor-collapsible.is-open > .work-editor-section-head .work-editor-chevron,
.work-editor-material-group.is-open > .work-editor-material-group-head .work-editor-chevron { transform: rotate(180deg); }
.work-editor-toggle:hover { color: var(--green-dark); }
.work-editor-toggle:focus-visible {
  outline: 3px solid rgba(22, 130, 70, .18);
  outline-offset: 2px;
  border-radius: 8px;
}
.work-editor-section-head > span { color: var(--muted); font-size: 13px; text-align: right; }
.work-editor-source-grid, .work-editor-author-grid, .work-editor-fields.two-columns,
.work-editor-description-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.work-credit-editor { display: grid; gap: 16px; width: 100%; max-width: 760px; }
.work-credit-role { display: grid; gap: 9px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.work-credit-role.is-disabled { opacity: .62; }
.work-credit-role.is-disabled input[data-person-picker] { background: #f2f4f7; color: var(--muted); cursor: not-allowed; }
.work-credit-role.is-disabled .icon-button,
.work-credit-role.is-disabled .work-credit-add { cursor: not-allowed; }
.work-credit-role:last-child { padding-bottom: 0; border-bottom: 0; }
.work-credit-role-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-credit-role-head h3 { margin: 0; font-size: 15px; }
.work-credit-search { width: 100%; max-width: 420px; }
.work-credit-rows { display: grid; gap: 8px; }
.work-credit-row { display: grid; grid-template-columns: minmax(240px, 1fr) 40px 40px 40px 40px; gap: 8px; align-items: center; }
.work-credit-row .icon-button { display: inline-flex; align-items: center; justify-content: center; justify-self: end; }
.work-credit-row .icon-button .ui-icon { width: 17px; height: 17px; }
.work-credit-row .work-credit-add {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  box-shadow: none;
  font-size: 0;
}
.work-credit-row .work-credit-add:hover { background: #f2f4f7; }
.work-credit-row .work-credit-add-label { display: none; }
.work-credit-row .work-credit-add .action-icon { width: 17px; height: 17px; }
.work-credit-row .icon-button[data-credit-up] .ui-icon { transform: rotate(-90deg); }
.work-credit-row .icon-button[data-credit-down] .ui-icon { transform: rotate(90deg); }
.work-credit-row select { width: 100%; min-width: 0; }
.work-credit-processing-role {
  gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.work-credit-processing-role .work-credit-role-head {
  padding-bottom: 0;
}
.work-credit-processing-role .work-credit-role-head h3 {
  font-size: 15px;
}
.work-credit-processing-row {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .58fr) 40px 40px 40px 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.work-credit-role-head .work-credit-add { flex: 0 0 auto; }
.work-processing-credit-list {
  display: block;
  margin: 0;
  line-height: 1.55;
}
.work-processing-credit-inline { white-space: nowrap; }
.work-processing-credit-type {
  color: var(--muted);
  font-size: .92em;
}
.work-credit-unresolved { display: grid; gap: 3px; padding: 10px 12px; border-left: 3px solid #b7791f; background: #fff8e7; color: #69410d; }
.work-credit-unresolved strong { font-size: 13px; }
.work-credit-unresolved span { font-size: 12px; overflow-wrap: anywhere; }
.work-credit-legacy-clear { justify-self: start; }
.work-credit-folk { display: grid; gap: 10px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.work-credit-folk-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.work-credit-folk-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.work-credit-folk-origin { max-width: 560px; }
.work-credit-role-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.work-credit-clear { color: var(--muted); font-size: 12px; }
.work-editor-source-grid--source .work-editor-source-field--wide {
  grid-column: 1 / -1;
}
.work-editor-source-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.work-editor-source-field span { color: var(--muted); font-size: 12px; font-weight: 700; }
.work-editor-source-field strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.work-editor-source-note { margin: 0 0 12px; }
.work-editor-technical-section { background: #fafafa; }
.work-editor-technical-section .work-editor-source-field { background: #fff; }
.work-editor-history-section { background: #fcfdfd; border-top: 1px solid var(--line); }
.work-editor-field { display: grid; gap: 7px; min-width: 0; color: #475467; font-weight: 700; font-size: 13px; }
.work-editor-field input, .work-editor-field textarea, .work-editor-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.work-editor-field input, .work-editor-field select { height: 42px; padding: 0 12px; }
.work-editor-field textarea { resize: vertical; min-height: 128px; padding: 10px 12px; line-height: 1.45; }
.work-editor-field textarea::placeholder { color: #98a2b3; }
.work-editor-field small, .work-editor-warning { color: var(--muted); font-weight: 500; }
.work-editor-warning { color: var(--orange); }
.work-editor-field.full-width { grid-column: 1 / -1; }
.work-editor-compatibility { align-self: stretch; }
.work-editor-description-grid { align-items: stretch; }
.work-editor-description-field, .work-editor-editorial-field { min-height: 100%; }
.work-editor-description-field textarea, .work-editor-editorial-field textarea[data-auto-grow] { min-height: 62px; max-height: none; overflow-y: hidden; resize: none; }
.work-editor-actions { justify-content: flex-end; padding: 0; border: 0; align-items: center; }
.work-editor-actions-footer { padding: 18px 20px 20px; border-top: 1px solid var(--line); justify-content: space-between; }
.work-editor-actions .subtle { font-size: 12px; }
.work-editor-voice-types { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.voice-type-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px 8px;
}
.voice-type-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  color: var(--text);
  font-weight: 650;
}
.voice-type-option input { width: 16px; height: 16px; margin: 0; }
.work-editor-warning { display: inline-flex; align-items: center; gap: 6px; }
.work-editor-operations-grid { margin-top: 0; padding: 0 20px 18px; border-bottom: 1px solid var(--line); }
.work-editor-operations-grid .material-admin-form { min-width: 0; }
.work-editor-material-group {
  display: grid;
  gap: 12px;
  padding: 16px 20px 18px;
  border-bottom: 1px solid var(--line);
}
.work-editor-material-group:last-child { border-bottom: 0; }
.work-editor-material-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: -6px;
  padding: 6px;
  border-radius: 10px;
  transition: background-color .16s ease;
}
.work-editor-material-group-head:hover { background: #f7faf8; }
.work-editor-material-group-head span { color: var(--muted); font-size: 13px; }
.work-editor-material-group-body { display: grid; gap: 10px; }
.work-editor-material-group-body[hidden] { display: none !important; }
.work-editor-materials-note { margin: 0 20px 4px; }
.work-editor-material-controls {
  display: grid;
  grid-template-columns: minmax(190px, 300px) auto;
  align-items: end;
  gap: 10px;
}
.work-editor-material-reassign { margin-top: 8px; }
.work-editor-material-apply { min-height: 38px; white-space: nowrap; }
.work-editor-material-row.is-private {
  border-color: #d8dde5;
  background: #f8f9fb;
}
.work-editor-material-row.is-private .file-icon { opacity: .72; }
.material-icon-action.is-muted { color: #7d8795; background: #f2f4f7; }
.work-editor-material-action-forms[hidden] { display: none !important; }
.work-editor-mini-field {
  display: grid;
  gap: 6px;
  color: #475467;
  font-weight: 650;
  font-size: 12px;
}
.work-editor-mini-field span { color: var(--muted); }
.work-editor-mini-field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.material-role-select { max-width: 280px; }
.inline-form { display: inline-flex; }
.material-inline-form { margin-left: auto; }
.material-inline-form .button.small { white-space: nowrap; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.material-section { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.material-section:last-child { border-bottom: 0; }
.material-section h3 { margin: 0 0 12px; font-size: 16px; }
.voice-group { margin: 0 0 14px; }
.voice-group:last-child { margin-bottom: 0; }
.voice-group h4 { margin: 0 0 8px; color: var(--green-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.material-row { min-height: 58px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; background: #fff; }
.material-row:last-child { margin-bottom: 0; }
.material-body { min-width: 0; display: grid; gap: 4px; }
.material-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.material-body small { color: var(--muted); overflow-wrap: anywhere; }
.material-body audio { width: 100%; max-width: 420px; height: 34px; margin-top: 4px; }
.material-actions { display: flex; align-items: center; gap: 8px; }
.voice-badge { display: inline-flex; align-items: center; min-width: 28px; justify-content: center; padding: 2px 7px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 850; }
.voice-player-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfcfb);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .04);
}
.voice-player-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}
.voice-player-head h4 { margin: 0 0 4px; font-size: 18px; }
.voice-player-head p { margin: 0; max-width: 56ch; }
.voice-player-current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.voice-player-current .subtle {
  font-size: 12px;
}
.voice-player-current-title { font-size: 15px; line-height: 1.25; }
.voice-player-current-file { color: var(--muted); }
.voice-player-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  gap: 10px;
  align-items: end;
  justify-content: start;
}
.voice-player-field { display: grid; gap: 6px; color: #475467; font-weight: 700; font-size: 13px; }
.voice-player-field span { color: #475467; }
.voice-player-field[hidden],
[data-voice-player] [hidden] { display: none !important; }
.voice-player-select { width: 100%; max-width: 260px; }
.voice-player-media-row {
  display: grid;
  gap: 8px;
  align-items: start;
}
.voice-player-custom {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.voice-player-enhanced .voice-player-custom { display: flex; flex-wrap: wrap; }
.voice-player-enhanced .voice-player-audio { display: none; }
.voice-player-play {
  width: fit-content;
  min-width: 132px;
  white-space: nowrap;
  padding-inline: 12px;
}
.voice-player-play-icon {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}
.voice-player-play .action-icon {
  width: 16px;
  height: 16px;
}
.voice-player-play-icon-pause {
  width: 16px;
  height: 16px;
}
.voice-player-play-label {
  white-space: nowrap;
}
.voice-player-seek-wrap {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1 1 220px;
}
.voice-player-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
  min-width: 40px;
}
.voice-player-seek {
  width: 100%;
  accent-color: var(--green);
}
.voice-player-audio {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  background: #ffffff;
  color-scheme: light;
  border: 1px solid #dbe6df;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 6px 16px rgba(16, 24, 40, .04);
  accent-color: var(--green);
}
.voice-player-audio::-webkit-media-controls-panel {
  background-color: #ffffff !important;
  color-scheme: light;
}
.voice-player-audio::-webkit-media-controls-enclosure { border-radius: 12px; }
.voice-player-download { min-width: 188px; white-space: nowrap; }
.voice-list-player { gap: 14px; }
.public-voice-browser {
  width: min(920px, 100%);
  margin-inline: auto;
  justify-self: center;
  display: grid;
  gap: 18px;
}
.public-voice-switcher {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px;
}
.public-voice-switcher-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.public-voice-switcher-button:hover,
.public-voice-switcher-button:focus-visible { border-color: var(--green); background: #f4faf6; }
.public-voice-switcher-button.is-active,
.public-voice-switcher-button[aria-selected="true"] { border-color: var(--green); background: #eaf6ee; color: var(--green-dark); }
.public-voice-variant { display: grid; gap: 18px; min-width: 0; }
.public-voice-family { min-width: 0; }
.public-voice-family > h3,
.public-voice-family > h4 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.public-voice-family > h3 { padding: 0 0 7px; border-bottom: 1px solid var(--line); }
.public-voice-family > h4 { padding: 10px 0 3px; font-size: 12px; color: var(--muted); }
.public-voice-family .voice-track-list { margin-top: 0; }
.public-voice-family .voice-track-row { min-height: 44px; padding: 6px 0; }
.public-voice-family .voice-track-copy b { font-size: 14px; font-weight: 600; }
.public-voice-family .voice-track-copy { min-width: 0; }
.public-voice-family .voice-track-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-list-player .voice-group {
  display: grid;
  gap: 4px;
  margin: 0;
  width: 100%;
  justify-self: start;
}
.voice-list-player .voice-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.voice-list-player .voice-group-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.voice-list-player .voice-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.voice-list-player .voice-track-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 56px 28px;
  column-gap: 8px;
  align-items: center;
  margin: 0;
  padding: 6px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.voice-list-player .voice-track-row:last-child {
  border-bottom: 0;
}
.voice-list-player .voice-track-row.is-current {
  background: rgba(22, 130, 70, .03);
}
.voice-list-player .voice-track-row.is-playing {
  background: rgba(22, 130, 70, .05);
}
.voice-list-player .voice-track-play,
.voice-list-player .voice-track-download {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
}
.voice-list-player .voice-track-play {
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green-dark);
  padding: 0;
  cursor: pointer;
}
.voice-list-player .voice-track-download {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  justify-self: end;
  text-decoration: none;
}
.voice-list-player .voice-track-play-icon,
.voice-list-player .voice-player-play-icon,
.voice-list-player .voice-player-dock-volume-icon {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}
.voice-list-player .voice-track-play-icon {
  width: 16px;
  height: 16px;
}
.voice-list-player .voice-track-play-icon-play .action-icon,
.voice-list-player .voice-player-play-icon-play .action-icon {
  display: block;
  transform: translateX(0.75px);
}
.voice-list-player .voice-track-play-icon .action-icon {
  width: 14px;
  height: 14px;
}
.voice-list-player .voice-player-play-icon {
  width: 20px;
  height: 20px;
}
.voice-list-player .voice-player-play-icon .action-icon {
  width: 20px;
  height: 20px;
}
.voice-list-player .voice-player-dock-volume-icon {
  color: var(--green-dark);
  width: 18px;
  height: 18px;
}
.voice-list-player .voice-player-dock-volume-icon .action-icon {
  width: 16px;
  height: 16px;
}
.voice-list-player .voice-track-download .action-icon {
  width: 15px;
  height: 15px;
}
.voice-list-player .voice-track-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.voice-list-player .voice-track-copy b {
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.voice-list-player .voice-track-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.voice-list-player .voice-track-duration {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.voice-list-player .voice-track-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  min-width: 0;
  justify-self: end;
}
.voice-list-player .voice-player-bottom {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.voice-list-player .voice-player-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}
.voice-list-player .voice-player-current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.voice-list-player .voice-player-current .subtle {
  font-size: 12px;
}
.voice-list-player .voice-player-current-title { font-size: 15px; line-height: 1.25; }
.voice-list-player .voice-player-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  gap: 10px;
  align-items: end;
  justify-content: start;
}
.voice-list-player .voice-player-media-row {
  display: grid;
  gap: 8px;
  align-items: start;
}
.voice-list-player .voice-player-custom {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.voice-list-player.voice-player-enhanced .voice-player-custom { display: flex; flex-wrap: wrap; }
.voice-list-player.voice-player-enhanced .voice-player-audio { display: none; }
.voice-list-player .voice-player-play {
  width: fit-content;
  min-width: 132px;
  white-space: nowrap;
  padding-inline: 12px;
}
.voice-list-player .voice-player-play .action-icon {
  width: 16px;
  height: 16px;
}
.voice-list-player .voice-player-play-icon {
  display: inline-grid;
  place-items: center;
}
.voice-list-player .voice-player-play-icon-pause {
  width: 16px;
  height: 16px;
}
.voice-list-player .voice-player-play-label {
  white-space: nowrap;
}
.voice-list-player .voice-player-seek-wrap {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1 1 220px;
}
.voice-list-player .voice-player-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
  min-width: 40px;
}
.voice-list-player .voice-player-seek {
  width: 100%;
  accent-color: var(--green);
}
.voice-list-player .voice-player-audio {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  background: #ffffff;
  color-scheme: light;
  border: 1px solid #dbe6df;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 6px 16px rgba(16, 24, 40, .04);
  accent-color: var(--green);
}
.voice-list-player .voice-player-audio::-webkit-media-controls-panel {
  background-color: #ffffff !important;
  color-scheme: light;
}
.voice-list-player .voice-player-audio::-webkit-media-controls-enclosure { border-radius: 12px; }
.voice-list-player .voice-player-download { min-width: 188px; white-space: nowrap; }
.work-panel[data-work-panel="pronunciation"] .pronunciation-layout {
  width: min(920px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 18px;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-section {
  display: grid;
  gap: 6px;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-section + .pronunciation-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-track-list,
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-row:last-child {
  border-bottom: 0;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-link-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-link-row:last-child {
  border-bottom: 0;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-icon .action-icon {
  width: 16px;
  height: 16px;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-link-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-copy b {
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.work-panel[data-work-panel="pronunciation"] .pronunciation-doc-actions {
  display: flex;
  justify-content: end;
}
@media (max-width: 820px) {
  .work-main-column.has-voice-player {
    padding-bottom: 280px;
  }
  .voice-player-dock {
    left: 16px;
    right: 16px;
    bottom: 12px;
    padding: 10px 12px 12px;
  }
  .voice-player-dock-bar {
    grid-template-columns: 52px 1fr;
    gap: 10px 12px;
  }
  .voice-player-dock-copy {
    grid-column: 2;
  }
  .voice-player-dock-seek {
    grid-column: 1 / -1;
  }
  .voice-player-dock-volume {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(96px, 160px);
  }
  .voice-player-dock .voice-player-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  .voice-list-player .voice-track-row {
    grid-template-columns: 30px minmax(0, 1fr) 52px 26px;
  }
}
@media (max-width: 640px) {
  .voice-player-card { padding: 12px; }
}
.materials-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 22px; }
.materials-grid > div { min-width: 0; }
.materials-grid h3 { margin: 0 0 12px; font-size: 14px; }
.file-row { min-height: 54px; display: grid; grid-template-columns: 36px 1fr 24px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.file-row:hover { border-color: #bfd2c8; background: #fbfdfc; }
.file-row small { display: block; color: var(--muted); margin-top: 2px; }
.file-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; }
.file-icon.pdf { color: var(--red); background: var(--red-soft); }
.file-icon.audio { color: var(--green); background: var(--green-soft); }
.download { color: var(--green); font-weight: 900; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-grid .file-row { margin: 0; min-height: 50px; }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { padding: 20px; }
.player-line { display: grid; grid-template-columns: 110px 1fr 190px; gap: 16px; align-items: center; }
.compact-player { grid-template-columns: 86px 1fr 120px; }
.cover { height: 110px; border-radius: 12px; background: linear-gradient(145deg, #7bb28c, #0f5f32); color: white; display: grid; place-items: center; position: relative; overflow: hidden; }
.compact-player .cover { height: 86px; }
.cover span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 28px; }
.cover small { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; }
.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.voice-chips span, .voice-score { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
.player-actions { display: grid; gap: 10px; }
.program-use, .work-mini { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; padding: 10px; border-radius: 10px; border-bottom: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; }
.program-use small, .work-mini small { grid-column: 2; color: var(--muted); }
.program-use em { grid-row: 1 / 3; grid-column: 3; color: var(--muted); font-style: normal; }
.facts-card dl, .person-facts { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 750; text-align: right; }
.quick-actions { display: grid; gap: 8px; }
.quick-actions button { display: flex; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 14px 0; cursor: pointer; text-align: left; }
.programs-layout, .people-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; }
.programs-filter { grid-template-columns: 150px 170px 150px minmax(260px, 1fr) auto; }
.search-label input { margin-top: 7px; }
.list-meta { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 12px; }
.program-card { display: grid; grid-template-columns: 90px minmax(280px, 1fr) 260px 220px; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.date-block { text-align: center; display: grid; gap: 2px; color: var(--muted); }
.date-block b { color: var(--text); font-size: 24px; }
.date-block small { line-height: 1.25; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; margin: 8px auto 0; background: var(--green); }
.status-dot.warn, .status-badge.warn { background: #fff5e6; color: #b45309; border-color: #fed7aa; }
.status-dot.danger, .status-badge.danger { background: var(--red-soft); color: var(--red); border-color: #ffd6d6; }
.program-body h2 { margin: 0 0 6px; }
.preview-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-chips span { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; font-size: 12px; font-weight: 750; }
.program-stats { display: grid; gap: 8px; }
.program-actions { display: grid; gap: 8px; }
.events-card, .updates-card { display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.event-row span { font-size: 22px; font-weight: 900; text-align: center; }
.event-row small { grid-column: 2; color: var(--muted); }
.green-link { display: block; color: var(--green-dark); font-weight: 800; padding: 10px; background: var(--green-soft); border-radius: 10px; text-align: center; }
.update-row { display: grid; grid-template-columns: 1fr auto; gap: 4px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.update-row small { grid-column: 1; color: var(--muted); }
.update-row em { grid-row: 1 / 3; grid-column: 2; color: var(--muted); font-style: normal; }
.program-meta { grid-template-columns: repeat(5, 1fr); }
.program-meta div { border-right: 1px solid var(--line); }
.program-items-card { overflow: hidden; }
.program-item-list { display: grid; gap: 0; }
.program-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(190px, 250px); gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.program-item:hover { background: #fbfdfc; }
.program-item.unmatched { background: #fffafa; }
.program-item-position { display: grid; gap: 6px; justify-items: start; }
.program-item-position small { color: var(--muted); font-size: 12px; }
.program-item-main { min-width: 0; display: grid; gap: 4px; }
.program-item-main h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.program-item-main p { margin: 0; color: #475467; }
.program-item-statuses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.program-item-side { min-width: 0; display: grid; gap: 10px; justify-items: end; }
.drag { color: var(--muted); }
.number-pill { min-width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; display: inline-grid; place-items: center; background: #f8faf9; }
.voice-summary { display: flex; align-items: center; gap: 18px; }
.voice-summary h2 { margin-right: auto; }
.readiness-card { text-align: center; }
.donut { --value: 78; width: 122px; height: 122px; border-radius: 50%; margin: 8px auto 16px; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--value) * 1%), #e5e7eb 0); position: relative; }
.donut::after { content: ""; width: 84px; height: 84px; border-radius: 50%; background: white; position: absolute; }
.donut span, .donut small { position: relative; z-index: 1; display: block; }
.donut span { font-size: 24px; font-weight: 900; }
.donut small { color: var(--muted); }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; background: var(--green); }
.legend.warn { background: #86d19e; }
.legend.danger { background: var(--red); }
.people-filters { margin-bottom: 14px; }
.role-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.role-tabs button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.role-tabs .active { background: var(--green); color: white; border-color: var(--green); }
.people-search-row { grid-template-columns: minmax(220px, 1fr) auto auto; margin-bottom: 0; }
.people-layout { align-items: start; }
.people-table-card { min-width: 0; }
.person-name { display: flex; align-items: center; gap: 12px; }
.person-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(145deg, #edf2ef, #dbe7df); color: var(--green-dark); font-weight: 900; }
.person-avatar.big { width: 100px; height: 100px; font-size: 28px; }
.person-head { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; }
.person-head h2 { margin-bottom: 4px; }
.bio { color: #475467; line-height: 1.55; }
.work-mini { grid-template-columns: 28px 1fr auto; border: 1px solid var(--line); margin-bottom: 8px; }
.work-mini span { color: var(--green); }
.wide-button { width: 100%; margin-top: 12px; }
.empty-state { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state h1 { font-size: 60px; margin: 0; }
.empty-row { padding: 40px; text-align: center; color: var(--muted); }
.compact-empty { min-height: 160px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-mobile-list { display: none; }
.catalog-mobile-row { display: grid; gap: 6px; padding: 10px 11px; border-bottom: 1px solid var(--line); min-width: 0; }
.catalog-mobile-row:last-child { border-bottom: 0; }
.catalog-mobile-row-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.catalog-mobile-row-head .title-link { min-width: 0; overflow-wrap: anywhere; font-weight: 800; line-height: 1.2; }
.catalog-mobile-row-head .library-merge-note { flex: 0 0 auto; }
.catalog-mobile-summary { display: flex; flex-wrap: wrap; gap: 3px 8px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.catalog-mobile-summary span + span { padding-left: 8px; border-left: 1px solid var(--line); }
.catalog-mobile-credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 8px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.25; }
.catalog-mobile-credits > div { min-width: 0; }
.catalog-mobile-credits b { margin-right: 3px; color: var(--text); font-size: 10px; }
.catalog-mobile-credits > div > span { overflow-wrap: anywhere; }
.catalog-mobile-credits small { display: block; color: var(--muted); font-size: 10px; }
.catalog-mobile-person { color: inherit; text-decoration: none; }
.catalog-mobile-person:hover, .catalog-mobile-person:focus-visible { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.catalog-mobile-separator { color: var(--muted); }
.catalog-mobile-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.mobile-material-link { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); font-size: 10px; line-height: 1; text-decoration: none; }
.mobile-material-link:hover, .mobile-material-link:focus-visible { border-color: var(--green); background: var(--surface-soft); }
.mobile-material-link .badge-icon { width: 13px; height: 13px; }
@media (max-width: 1180px) {
  :root { --sidebar: 88px; }
  .nav-item { justify-content: center; padding: 14px; }
  .nav-item span { width: auto; }
  .nav-item { font-size: 0; }
  .nav-item span { font-size: 20px; }
  .brand { min-width: 280px; }
  .two-column-page, .programs-layout, .people-layout { grid-template-columns: 1fr; }
  .dashboard-hero, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-hero-stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .dashboard-program, .dashboard-material { grid-template-columns: 1fr; }
  .dashboard-program-meta, .dashboard-material-meta { justify-items: start; text-align: left; }
  .dashboard-badges, .dashboard-material-meta { justify-content: flex-start; }
  .right-column, .person-panel { grid-template-columns: repeat(2, 1fr); }
  .materials-grid, .split-row { grid-template-columns: 1fr; }
  .program-card { grid-template-columns: 70px 1fr; }
  .program-actions, .program-stats { grid-column: 2; }
  .library-filter { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .programs-filter { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .program-item { grid-template-columns: 72px minmax(0, 1fr); }
  .program-item-statuses { grid-column: 2; justify-content: flex-start; }
  .materials-admin-grid { grid-template-columns: 1fr; }
  .work-editor-source-grid, .work-editor-author-grid, .work-editor-fields.two-columns { grid-template-columns: 1fr; }
  .work-editor-section-head { grid-template-columns: 1fr; align-items: stretch; gap: 4px; }
  .work-editor-actions { justify-content: flex-start; }
}

/* Chorister dashboard layout */
.global-search button { min-height: 38px; border: 0; border-radius: 10px; padding: 0 18px; background: linear-gradient(180deg, #18884a, #0f733b); color: #fff; font-weight: 800; cursor: pointer; }
.profile-card { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.profile-card b { display: block; font-size: 14px; line-height: 1.1; }
.profile-card small { display: block; color: var(--muted); margin-top: 3px; }
.profile-card .chevron { color: var(--muted); font-weight: 900; }
.login-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--green-dark); font-weight: 800; background: #fff; }
.language-switch { min-height: 42px; display: inline-flex; align-items: center; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 850; }
.language-switch span { padding: 10px 12px; color: var(--muted); }
.language-switch span + span { border-left: 1px solid var(--line); }
.language-switch .active { color: var(--green-dark); background: var(--green-soft); }
.chorister-hero { margin: 0 0 18px; padding: 0 4px; }
.chorister-hero h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.03em; }
.chorister-hero p { margin: 0; color: #344054; }
.chorister-search { margin-bottom: 16px; padding: 18px; }
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.dashboard-left-flow { display: grid; gap: 18px; min-width: 0; }
.active-program-card, .dashboard-events, .dashboard-rehearsal-news { padding: 20px; }
.text-link { color: var(--green-dark); font-weight: 850; }
.active-program-summary { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 24px; align-items: center; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.program-cover { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #dbece4, #eef6f1 45%, #c2d7cf); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); color: var(--green-dark); font-size: 42px; font-weight: 900; }
.program-cover.has-image { background: #eef4f0; }
.program-cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.program-cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.active-program-info h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; }
.program-subtitle, .program-metrics { margin: 0 0 10px; color: #475467; }
.program-metrics span { margin: 0 8px; color: var(--line-strong); }
.active-program-actions { display: grid; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); }
.material-badges { justify-content: flex-start; }
.mat.score, .type-dot.score { color: var(--green-dark); background: var(--green-soft); border-color: #cce9d8; }
.mat.voices, .type-dot.voices { color: var(--blue); background: var(--blue-soft); border-color: #d8e5ff; }
.mat.player, .type-dot.player { color: var(--purple); background: var(--purple-soft); border-color: #ded3ff; }
.action-icon { width: 18px; height: 18px; }
.program-preview-list { padding-top: 16px; }
.program-preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.program-preview-head h3 { margin: 0; font-size: 15px; color: #475467; }
.program-preview-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(130px, .55fr) auto; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--line); }
.program-preview-row:last-child { border-bottom: 0; }
.program-preview-row:hover b { color: var(--green-dark); }
.program-preview-number { font-weight: 900; color: var(--text); }
.program-preview-row small { color: #667085; }
.preview-icons { display: flex; gap: 8px; justify-content: flex-end; }
.type-dot { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 900; }
.dashboard-rehearsal-news { position: sticky; top: calc(var(--topbar) + 18px); }
.rehearsal-news-list { display: grid; gap: 0; }
.rehearsal-news-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rehearsal-news-item:last-child { border-bottom: 0; }
.rehearsal-news-item b { display: block; margin-bottom: 4px; }
.rehearsal-news-item small { display: block; color: #475467; line-height: 1.35; }
.rehearsal-news-item em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 12px; }
.material-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 18px; }
.material-icon.score { background: var(--green-soft); color: var(--green-dark); }
.material-icon.voices { background: var(--blue-soft); color: var(--blue); }
.material-icon.player, .material-icon.recording { background: var(--purple-soft); color: var(--purple); }
.material-icon.pronunciation { background: #fff2df; color: #ea580c; border: 1px solid #fed7aa; }
.material-icon.audio { background: #eefaf2; color: var(--green-dark); }
.material-icon.video { background: #f2f4f7; color: #344054; }
.material-icon.editor, .material-icon.document, .material-icon.material { background: #f8faf9; color: #475467; }
.row-arrow { color: #667085; display: inline-grid; place-items: center; }
.row-arrow-icon { width: 18px; height: 18px; }
.badge-icon, .dot-icon { width: 15px; height: 15px; vertical-align: -2px; }
.table-icon, .breadcrumb-icon, .pagination-icon { width: 16px; height: 16px; vertical-align: -2px; }
.meta-icon-svg, .work-mini-icon, .file-icon-svg { width: 18px; height: 18px; }
.cover-icon { width: 52px; height: 52px; }
.material-svg { width: 23px; height: 23px; }
.mat { display: inline-flex; align-items: center; gap: 5px; }
.type-dot { color: inherit; }

.event-carousel-shell { position: relative; }
.event-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 188px); gap: 10px; overflow-x: auto; padding: 2px 42px 8px; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: thin; }
.event-card { min-height: 160px; display: grid; grid-template-rows: 64px 1fr; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; scroll-snap-align: start; }
.event-card-link { color: inherit; }
.event-card:hover { border-color: #bfd2c8; background: #fbfdfc; box-shadow: var(--shadow); }
.event-card-media { width: 100%; height: 64px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--surface-soft); }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card-symbol { color: inherit; }
.event-card-poster { border: 1px solid rgba(255,255,255,.45); }
.event-svg { width: 20px; height: 20px; }
.event-card-body { display: grid; gap: 3px; min-width: 0; }
.event-card-label { font-size: 12px; line-height: 1; }
.event-card strong { font-size: 12px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.event-card small, .event-card em { color: #667085; font-style: normal; font-size: 10.5px; line-height: 1.2; }
.event-note { color: var(--green-dark); font-weight: 700; }
.event-card.rehearsal { color: var(--green-dark); }
.event-card.rehearsal .event-card-media { background: var(--green-soft); }
.event-card.birthday { color: var(--purple); }
.event-card.birthday .event-card-media { background: var(--purple-soft); }
.event-card.performance { color: var(--blue); }
.event-card.performance .event-card-media { background: var(--blue-soft); }
.carousel-step { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #344054; display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; box-shadow: var(--shadow); cursor: pointer; }
.carousel-step:hover { background: #f9fafb; border-color: #cbd5e1; }
.carousel-step-prev { left: 4px; }
.carousel-step-next { right: 4px; }
.carousel-step-icon { width: 16px; height: 16px; }

.calendar-heading { margin-bottom: 14px; }
.calendar-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; margin-bottom: 16px; }
.calendar-tab { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #475467; font-weight: 750; }
.calendar-tab.active { background: var(--green-soft); color: var(--green-dark); border-color: #cce9d8; }
.calendar-subscribe-card { display: grid; gap: 12px; padding: 16px; margin-bottom: 16px; }
.calendar-subscribe-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.calendar-subscribe-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.calendar-subscribe-details { margin-top: 2px; }
.calendar-subscribe-details summary { cursor: pointer; font-weight: 750; color: var(--green-dark); }
.calendar-subscribe-technical { display: grid; gap: 8px; margin-top: 10px; }
.calendar-subscribe-technical code { display: block; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); color: #0f172a; word-break: break-all; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 14px; align-items: start; }
.calendar-month, .calendar-agenda { padding: 16px; }
.calendar-month-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.calendar-month-head h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.calendar-month-head p { margin: 4px 0 0; color: var(--muted); }
.calendar-month-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calendar-nav { width: 36px; height: 36px; padding: 0; }
.calendar-nav-icon { width: 16px; height: 16px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.calendar-weekdays span { padding: 0 6px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 4px 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.calendar-legend-dot.rehearsal { background: var(--green); }
.calendar-legend-dot.performance { background: var(--blue); }
.calendar-legend-dot.birthday { background: var(--purple); }
.calendar-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-day { min-height: 86px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: inherit; }
.calendar-day:hover { border-color: #bfd2c8; background: #fbfdfc; box-shadow: var(--shadow); }
.calendar-day.out-of-month { background: #f8faf9; color: #98a2b3; }
.calendar-day.today { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,130,70,.08); }
.calendar-day.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.calendar-day-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-day-number { font-weight: 850; }
.calendar-day-count { min-width: 24px; height: 24px; border-radius: 999px; background: var(--surface-soft); color: #344054; display: inline-grid; place-items: center; font-size: 12px; font-weight: 750; }
.calendar-day-markers { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 10px; }
.calendar-day-marker { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.calendar-day-marker.rehearsal { background: var(--green); }
.calendar-day-marker.performance { background: var(--blue); }
.calendar-day-marker.birthday { background: var(--purple); }
.calendar-day-marker.deadline { background: var(--orange); }
.calendar-day-marker.other { background: #64748b; }
.calendar-day-more { color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-day-preview { color: var(--text); font-size: 10.5px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.calendar-agenda-list { display: grid; gap: 14px; }
.calendar-agenda-group { display: grid; gap: 10px; }
.calendar-agenda-group .calendar-group-head { margin-bottom: 0; }
.calendar-agenda-group .calendar-group-head h3 { margin: 0; font-size: 16px; }
.calendar-agenda-group .calendar-group-head span { color: var(--muted); font-size: 12px; }
.calendar-list { display: grid; gap: 14px; }
.calendar-group { padding: 16px 18px; }
.calendar-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.calendar-group-head h2 { margin: 0; font-size: 18px; }
.calendar-group-head span { color: var(--muted); font-size: 12px; }
.calendar-group-list { display: grid; gap: 10px; }
.calendar-event { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.calendar-event-icon { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 14px; background: var(--surface-soft); }
.calendar-event-svg { width: 22px; height: 22px; }
.calendar-event-body { display: grid; gap: 6px; min-width: 0; }
.calendar-event-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calendar-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #f3f6f5; color: #344054; font-weight: 750; font-size: 12px; }
.calendar-time { color: var(--muted); font-size: 12px; font-weight: 700; }
.calendar-event-body h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.calendar-event-subtitle { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.calendar-event-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #475467; font-size: 13px; }
.event-location { display: inline-flex; align-items: center; gap: 4px; }
.calendar-event-body p { margin: 0; color: #475467; line-height: 1.45; }
.calendar-poster { width: 160px; max-width: 100%; margin-top: 6px; border-radius: 12px; overflow: hidden; }
.calendar-poster img { width: 100%; height: 90px; object-fit: cover; display: block; }
.calendar-map-link, .event-map-link { display: inline-flex; align-items: center; gap: 4px; color: var(--green-dark); font-weight: 700; font-size: 12px; white-space: nowrap; }
.calendar-map-icon, .event-map-icon { width: 14px; height: 14px; }
.calendar-link { align-self: start; white-space: nowrap; }
.performances-layout { display: grid; gap: 16px; }
.performances-section { display: grid; gap: 14px; }
.performances-list { display: grid; gap: 12px; }
.performance-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 16px; }
.performance-card.no-poster { grid-template-columns: 220px minmax(0, 1fr); }
.performance-media { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--blue-soft); display: block; min-height: 126px; }
.performance-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.performance-placeholder { width: 100%; height: 100%; display: grid; place-items: center; gap: 6px; background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #1d4ed8; text-align: center; padding: 12px; }
.performance-placeholder-icon { width: 30px; height: 30px; }
.performance-placeholder small { color: #1d4ed8; font-weight: 700; }
.performance-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; align-content: start; }
.performance-body h2, .performance-body h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.performance-program-title, .performance-detail-program { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.performance-body p { margin: 0; color: #475467; line-height: 1.45; }
.performance-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.performance-detail-card { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.performance-detail-media { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--blue-soft); }
.performance-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.performance-detail-placeholder { min-height: 100%; }
.performance-detail-body h1 { margin: 0; font-size: 32px; line-height: 1.1; }
.performance-detail-description { max-width: 70ch; }
.performance-detail-actions { margin-top: 8px; }
.members-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.member-stat { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; gap: 2px; }
.member-stat b { font-size: 24px; line-height: 1; }
.member-stat small { color: var(--muted); }
.members-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.members-tab { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #475467; font-weight: 750; }
.members-tab.active { background: var(--green-soft); color: var(--green-dark); border-color: #cce9d8; }
.members-list-card { display: grid; gap: 12px; }
.members-list { display: grid; gap: 10px; }
.member-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.member-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 900; font-size: 16px; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.member-avatar span { display: grid; place-items: center; width: 100%; height: 100%; }
.member-main { display: grid; gap: 6px; min-width: 0; }
.member-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.member-head h3 { margin: 0; font-size: 18px; }
.member-subline, .member-badges { display: flex; flex-wrap: wrap; gap: 6px 8px; color: var(--muted); font-size: 13px; }
.member-subline span + span::before { content: "·"; margin-right: 8px; color: var(--line-strong); }
.member-meta { display: grid; justify-items: end; gap: 6px; color: var(--muted); text-align: right; }
.member-meta span { font-size: 12px; }
.member-technical { text-align: right; }
.member-technical summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; }
.member-technical small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.members-controls { display: grid; gap: 12px; padding: 14px; margin-bottom: 14px; }
.members-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
@media (max-width: 1320px) {
  .brand { min-width: 300px; }
  .topbar { gap: 14px; }
  .dashboard-main-grid { grid-template-columns: 1fr; }
  .dashboard-rehearsal-news { position: static; }
}
@media (max-width: 1180px) {
  .top-actions { gap: 8px; }
  .login-link { display: none; }
  .active-program-summary { grid-template-columns: 180px minmax(0, 1fr); }
  .active-program-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; border-left: 0; }
  .event-carousel { grid-auto-columns: minmax(170px, 38%); padding-inline: 34px; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-event { grid-template-columns: 44px minmax(0, 1fr); }
  .calendar-link { grid-column: 2; }
  .performance-card { grid-template-columns: 220px minmax(0, 1fr); }
  .performance-detail-card { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top-actions, kbd { display: none; }
  .active-program-summary, .program-preview-row, .calendar-event { grid-template-columns: 1fr; }
  .event-carousel { grid-auto-columns: minmax(170px, 84%); padding-inline: 30px; }
  .program-cover { width: 100%; }
  .active-program-actions { grid-template-columns: 1fr; }
  .preview-icons { justify-content: flex-start; }
  .calendar-month-grid, .calendar-weekdays { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .calendar-day { min-height: 76px; padding: 7px; gap: 6px; }
  .calendar-link { grid-column: 1; width: 100%; }
  .members-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .members-search { grid-template-columns: 1fr; }
  .member-card { grid-template-columns: 52px minmax(0, 1fr); }
  .member-meta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .performance-card { grid-template-columns: 1fr; }
  .performance-detail-card { grid-template-columns: 1fr; }
  .carousel-step { top: 40%; }
}

/* Product completion pass 01: shared identity, cross-link, and mobile surfaces. */
.profile-card { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 12px; color: inherit; }
.profile-card:hover, .profile-card:focus-visible { border-color: var(--line); background: var(--surface-soft); }
.profile-card > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.profile-card b, .profile-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card small { color: var(--muted); }
.profile-card-arrow { color: var(--muted); display: inline-flex; }
.profile-card-arrow svg { width: 16px; height: 16px; }
.sidebar-foot { display: grid; gap: 8px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.sidebar-foot > a:first-child { display: grid; gap: 2px; color: var(--text); }
.sidebar-foot small { color: var(--muted); }
.sidebar-logout { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.sidebar-logout:hover { color: var(--green-dark); }
.sidebar-logout svg { width: 14px; height: 14px; }
.account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 18px; max-width: 1100px; }
.account-identity-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start; }
.account-avatar { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(145deg, #e5f2e9, #cde4d5); color: var(--green-dark); font-size: 30px; font-weight: 700; }
.account-identity-copy { min-width: 0; }
.account-identity-copy h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.account-identity-copy p:last-child { margin: 5px 0 0; color: var(--muted); }
.account-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.account-facts div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.account-facts dt { color: var(--muted); font-size: 11px; }
.account-facts dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.account-access-list { display: grid; gap: 6px; }
.account-access-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; }
.account-access-row.is-allowed:hover, .account-access-row.is-allowed:focus-visible { background: var(--green-soft); }
.account-access-row.is-locked { color: var(--muted); cursor: not-allowed; }
.account-access-row > span:nth-child(2) { display: grid; gap: 2px; }
.account-access-row small { color: var(--muted); font-size: 11px; }
.account-access-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--green-dark); }
.account-access-row.is-locked .account-access-icon { color: var(--muted); background: #f2f4f4; }
.account-access-row svg { width: 16px; height: 16px; }
.account-denied-notice { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; max-width: 1100px; margin-top: 18px; border-color: #ead9ba; background: #fffaf0; }
.account-denied-notice > span { color: #a56618; }
.account-denied-notice h2 { margin: 0 0 4px; font-size: 18px; }
.account-denied-notice p { margin: 0; color: #73542d; line-height: 1.5; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-entity-card { margin-top: 18px; }
.related-entity-list, .member-work-links, .member-participation-list { display: grid; }
.related-entity-row, .member-work-links a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.related-entity-row:last-child, .member-work-links a:last-child { border-bottom: 0; }
.related-entity-row:hover b, .member-work-links a:hover span { color: var(--green-dark); }
.related-entity-row > span:nth-child(2), .member-work-links a { min-width: 0; }
.related-entity-row b, .related-entity-row small, .member-work-links a { overflow-wrap: anywhere; }
.related-entity-row > span:nth-child(2) { display: grid; gap: 3px; }
.related-entity-row small, .member-work-links small { color: var(--muted); font-size: 11px; }
.related-entity-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-soft); border-radius: 9px; }
.related-entity-row > svg, .member-work-links a > svg { width: 16px; height: 16px; color: var(--muted); }
.related-people-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-person-chip { display: inline-grid; grid-template-columns: 26px minmax(0, 1fr); gap: 7px; align-items: center; min-width: 160px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.related-person-chip:hover { border-color: #bbd9c5; background: var(--green-soft); }
.related-person-chip > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #e4eee7; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.related-person-chip b, .related-person-chip small { min-width: 0; overflow-wrap: anywhere; }
.related-person-chip small { grid-column: 2; color: var(--muted); font-size: 11px; }
.member-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.role-summary-list { display: grid; gap: 5px; }
.role-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.role-summary-row small { color: var(--muted); }
.role-summary-row b { color: var(--green-dark); }
.member-work-links a { grid-template-columns: minmax(0, 1fr) auto 16px; }
.member-work-links a span { font-weight: 650; }
.member-participation-section { margin-top: 18px; }
.member-participation-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.member-participation-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(180px, .55fr); gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.member-participation-row:last-child { border-bottom: 0; }
.member-participation-order { color: var(--muted); font-weight: 700; }
.member-participation-main, .member-participation-event { min-width: 0; display: grid; gap: 3px; }
.member-participation-work { color: var(--green-dark); font-weight: 700; overflow-wrap: anywhere; }
.member-participation-main span, .member-participation-main small, .member-participation-event small { color: var(--muted); font-size: 12px; }
.member-participation-event { grid-template-columns: minmax(0, 1fr) 16px; align-items: center; color: var(--text); }
.member-participation-event span { grid-column: 1; overflow-wrap: anywhere; }
.member-participation-event small { grid-column: 1; }
.member-participation-event svg { grid-column: 2; grid-row: 1 / 3; width: 16px; height: 16px; color: var(--muted); }
.login-logo { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 4px; }

@media (max-width: 900px) {
  .account-grid, .member-context-grid { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .account-heading { display: grid; }
  .account-heading .button { width: 100%; }
  .account-identity-card { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .account-avatar { width: 58px; height: 58px; border-radius: 16px; font-size: 24px; }
  .account-identity-copy h2 { font-size: 19px; }
  .account-facts { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .member-participation-row { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 12px; }
  .member-participation-event { grid-column: 2; grid-template-columns: minmax(0, 1fr) 16px; padding-top: 3px; }
  .related-person-chip { min-width: 0; width: 100%; }
}

.calendar-heading-actions {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.calendar-subscribe-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .calendar-heading-actions {
    display: block;
  }
  .calendar-subscribe-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

/* Human UI restyle pass: dashboard / calendar / performances / members. Keeps existing Lucide icon set. */
.content { padding-top: 30px; }
.card { overflow: hidden; }
.button-icon, .event-meta-icon, .mini-meta-icon, .stat-mini-icon, .member-fact-icon { width: 16px; height: 16px; vertical-align: -3px; flex: 0 0 auto; }

/* Calendar subscription: hide the long URL from primary UI and make provider actions feel intentional. */
.calendar-subscribe-human {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.subscribe-intro { display: flex; align-items: center; gap: 14px; min-width: 0; }
.subscribe-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); flex: 0 0 auto; }
.subscribe-icon-svg { width: 27px; height: 27px; }
.subscribe-intro h2 { margin: 0 0 4px; font-size: 18px; }
.subscribe-intro p { margin: 0; color: var(--muted); line-height: 1.45; }
.provider-actions { justify-content: flex-end; }
.provider-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 14px; font-weight: 850; color: #243042; }
.provider-button:hover, .copy-link-button:hover { border-color: #b8c5c0; box-shadow: 0 8px 18px rgba(16, 24, 40, .06); }
.provider-button span { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 7px; font-weight: 900; }
.provider-button.google span { color: #1a73e8; background: #eef4ff; }
.provider-button.apple span { color: #111827; background: #f3f4f6; font-size: 18px; }
.provider-button.outlook span { color: #2563eb; background: #eaf1ff; }
.subscribe-help { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.subscribe-help span { display: inline-flex; align-items: center; gap: 6px; }
.help-icon { width: 15px; height: 15px; color: var(--green-dark); }
.calendar-subscribe-details { grid-column: 1 / -1; margin-top: 0; }
.calendar-subscribe-details summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.calendar-subscribe-technical label { display: grid; gap: 5px; color: #475467; font-weight: 750; font-size: 12px; }

/* Calendar product layout */
.calendar-filter-tabs { padding: 12px; margin-bottom: 14px; background: rgba(255,255,255,.86); }
.calendar-product-layout { grid-template-columns: minmax(560px, 1fr) minmax(360px, 520px); gap: 18px; }
.calendar-month-product, .calendar-agenda-product { padding: 18px; }
.calendar-month-product .calendar-day { min-height: 82px; padding: 9px; }
.calendar-month-product .calendar-day.selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(22,130,70,.08); }
.calendar-month-product .calendar-day-preview { font-size: 11px; color: #344054; }
.calendar-agenda-product .calendar-group-list { gap: 12px; }
.calendar-event-product { grid-template-columns: 48px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; }
.calendar-event-product:not(.performance) { grid-template-columns: 48px minmax(0, 1fr) auto; }
.calendar-event-product:hover { border-color: #bfd2c8; box-shadow: 0 10px 22px rgba(16,24,40,.05); }
.calendar-event-product .calendar-event-icon { width: 48px; height: 48px; border-radius: 16px; }
.calendar-event-product.rehearsal .calendar-event-icon { background: var(--green-soft); color: var(--green-dark); }
.calendar-event-product.performance .calendar-event-icon { background: var(--blue-soft); color: var(--blue); }
.calendar-event-product.birthday .calendar-event-icon { background: var(--purple-soft); color: var(--purple); }
.calendar-event-poster { width: 88px; height: 66px; border-radius: 12px; overflow: hidden; display: block; background: var(--blue-soft); }
.calendar-event-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.calendar-event-product .calendar-event-body h3 { font-size: 16px; margin-bottom: 2px; }
.calendar-event-product .calendar-event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-event-actions { display: grid; gap: 8px; justify-items: end; align-self: center; }
.calendar-action-link { display: inline-flex; align-items: center; gap: 4px; color: var(--green-dark); font-weight: 850; font-size: 13px; white-space: nowrap; }
.calendar-action-link.add { color: var(--green); }
.calendar-action-icon { width: 14px; height: 14px; }
.calendar-badge.rehearsal { background: var(--green-soft); color: var(--green-dark); }
.calendar-badge.performance { background: var(--blue-soft); color: var(--blue); }
.calendar-badge.birthday { background: var(--purple-soft); color: var(--purple); }

/* Dashboard refinements */
.dashboard-main-grid { grid-template-columns: minmax(0, 1fr) 390px; }
.active-program-card { padding: 22px; }
.dashboard-events { padding: 20px 20px 18px; }
.program-cover { background: linear-gradient(145deg, #e7f3ec, #f7fbf8); border: 1px solid #dce9e2; }
.event-carousel { grid-auto-columns: minmax(185px, 215px); gap: 12px; }
.event-card { min-height: 154px; border-radius: 16px; }
.event-card-media { height: 58px; }
.event-card.performance .event-card-media { height: 58px; }
.dashboard-rehearsal-news { padding: 22px; }
.rehearsal-news-item { grid-template-columns: 44px minmax(0, 1fr) 18px; padding: 14px 0; }
.material-icon { width: 42px; height: 42px; }

/* Performances page */
.performances-heading { margin-bottom: 18px; }
.performance-feature-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: stretch; padding: 18px; margin-bottom: 18px; }
.performance-feature-media { min-height: 210px; border-radius: 18px; overflow: hidden; display: block; background: var(--blue-soft); }
.performance-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.performance-feature-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--blue); }
.performance-feature-body { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.performance-feature-body h2 { margin: 0; font-size: 26px; line-height: 1.12; letter-spacing: -.02em; }
.performance-feature-body p { color: #475467; line-height: 1.5; margin: 0; max-width: 76ch; }
.performance-feature-meta, .mini-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #475467; }
.performance-feature-meta span, .performance-feature-meta a, .mini-meta span { display: inline-flex; align-items: center; gap: 6px; }
.performance-feature-actions { margin-top: 10px; }
.performance-tabs-inline { display: inline-flex; gap: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 14px; margin: 0 0 18px; }
.performance-tabs-inline .members-tab { border: 0; border-radius: 0; margin: 0; min-width: 118px; justify-content: center; display: inline-flex; }
.performance-section-clean { margin-bottom: 20px; }
.performance-grid-cards { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 14px; }
.performance-tile { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.performance-tile:hover { border-color: #bfd2c8; box-shadow: var(--shadow); }
.performance-tile-media { width: 104px; height: 124px; border-radius: 12px; overflow: hidden; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); }
.performance-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.performance-tile-body { position: relative; display: grid; gap: 8px; align-content: start; min-width: 0; }
.performance-tile-body h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.performance-tile .mini-meta { display: grid; gap: 5px; font-size: 12px; }
.tile-arrow { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.performance-empty-past { padding: 22px; display: grid; gap: 14px; border-style: dashed; }
.performance-empty-past h2 { margin: 0 0 4px; }
.performance-empty-past p { margin: 0; color: var(--muted); }

/* Members page */
.members-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.members-main-flow { display: grid; gap: 14px; min-width: 0; }
.member-summary-grid { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.human-stat { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 16px; }
.human-stat span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); }
.human-stat b { font-size: 24px; }
.human-members-controls { margin: 0; }
.members-human-list-card { padding: 18px; }
.member-human-card { grid-template-columns: 60px minmax(190px, .8fr) minmax(380px, 1fr) 34px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.human-avatar { width: 60px; height: 60px; font-size: 18px; }
.member-profile-facts { display: grid; grid-template-columns: repeat(4, minmax(118px, 1fr)); gap: 8px 14px; color: #475467; font-size: 13px; }
.member-profile-facts span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.member-profile-facts b { color: #344054; }
.member-human-technical { justify-self: end; }
.member-human-technical summary { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--line); color: var(--muted); }
.birthdays-aside { padding: 20px; position: sticky; top: calc(var(--topbar) + 18px); }
.birthday-list { display: grid; gap: 12px; margin: 14px 0; }
.birthday-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.birthday-card h3 { margin: 0 0 4px; font-size: 16px; }
.birthday-card p { margin: 6px 0 0; color: var(--muted); }
.birthday-card strong { color: var(--green-dark); text-align: right; white-space: nowrap; }
.birthday-avatar { width: 54px; height: 54px; }
.wide { width: 100%; }

@media (max-width: 1320px) {
  .calendar-product-layout, .members-page-grid { grid-template-columns: 1fr; }
  .birthdays-aside { position: static; }
  .performance-grid-cards { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .member-human-card { grid-template-columns: 60px minmax(0, 1fr); }
  .member-profile-facts, .member-human-technical { grid-column: 2; }
  .member-profile-facts { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 900px) {
  .calendar-subscribe-human { grid-template-columns: 1fr; }
  .provider-actions { justify-content: flex-start; }
  .calendar-event-product, .calendar-event-product:not(.performance) { grid-template-columns: 48px minmax(0, 1fr); }
  .calendar-event-poster { grid-column: 2; width: 120px; }
  .calendar-event-actions { grid-column: 2; justify-items: start; grid-auto-flow: column; }
  .performance-feature-card { grid-template-columns: 1fr; }
  .performance-feature-media { min-height: 180px; }
  .performance-grid-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .member-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-profile-facts { grid-template-columns: 1fr; }
  .member-profile-facts, .member-human-technical { grid-column: 1 / -1; }
  .calendar-month-product .calendar-day { min-height: 72px; }
  .work-panel-grid { grid-template-columns: 1fr; }
  .score-card-grid { grid-template-columns: 1fr; }
  .work-tabs { gap: 14px; }
  .voice-player-controls { grid-template-columns: 1fr; }
  .voice-player-current { justify-items: start; text-align: left; min-width: 0; }
  .voice-player-media-row { flex-direction: column; align-items: stretch; }
  .voice-player-audio { width: 100%; }
  .voice-player-download { width: 100%; min-width: 0; }
}

/* Human entity/profile polish */
.people-list-page { display: grid; gap: 18px; }
.people-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 300px; gap: 16px; }
.person-card-v2 { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; box-shadow: var(--shadow); }
.person-card-v2 { height: 300px; min-height: 0; box-sizing: border-box; overflow: hidden; }
.person-card-v2.canonical { border-color: #9fd3b5; box-shadow: 0 3px 14px rgba(22, 101, 52, .06); }
.person-card-v2.review { border-color: #e7b86a; box-shadow: 0 3px 14px rgba(154, 93, 0, .07); }
.person-card-main { display: flex; align-items: flex-start; min-height: 80px; height: 80px; gap: 12px; text-decoration: none; color: inherit; }
.person-avatar.portrait { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-soft); display: grid; place-items: center; flex: 0 0 auto; }
.person-avatar.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-card-copy { display: grid; gap: 4px; min-width: 0; }
.person-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.person-card-copy small { color: var(--muted); }
.person-country { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.country-flag { display: inline-block; font-size: .95em; line-height: 1; }
.person-card-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.person-card-v2 p { display: -webkit-box; height: 48px; min-height: 48px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); line-height: 1.45; }
.person-card-roles { min-height: 24px; align-content: start; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.person-card-role-text { white-space: nowrap; }
.person-card-role-text.composer { color: #27744a; }
.person-card-role-text.text-author { color: #3f6f9f; }
.person-card-role-text.arranger { color: #a86b24; }
.person-card-works-head { display: flex; justify-content: flex-end; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 500; }
.person-work-list-mini { display: grid; grid-auto-rows: 26px; align-content: start; gap: 4px; min-height: 0; overflow-y: auto; }
.person-work-list-mini a { display: flex; align-items: center; gap: 6px; height: 26px; min-height: 26px; box-sizing: border-box; overflow: hidden; text-decoration: none; color: var(--text); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 12px; }
.person-work-list-mini a:hover { border-color: #9fd3b5; background: var(--surface-soft); }
.person-work-list-mini a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-work-list-mini .work-mini-icon { width: 14px; height: 14px; color: var(--muted); flex: 0 0 auto; }
.person-detail-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 18px; }
.person-detail-portrait { width: 180px; height: 220px; border-radius: 28px; overflow: hidden; background: var(--surface-soft); display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--muted); }
.person-detail-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-detail-copy { display: grid; gap: 12px; min-width: 0; padding-top: 2px; }
.person-detail-identity { display: grid; gap: 3px; min-width: 0; }
.person-detail-identity h1 { margin: 0; line-height: 1.15; }
.person-detail-identity p { margin: 0; line-height: 1.35; }
.person-detail-ukrainian, .person-detail-latin, .person-detail-original { color: var(--muted); font-size: .96rem; }
.person-detail-original { color: var(--muted); font-size: .9rem; }
.person-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 5px; color: var(--muted); line-height: 1.35; }
.person-detail-years { white-space: nowrap; }
.person-detail-countries { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; }
.person-country-field { display: grid; gap: 7px; min-width: 0; }
.person-form-label { color: #475467; font-weight: 700; font-size: 13px; }
.person-country-dropdown { position: relative; }
.person-country-dropdown-summary { min-height: 44px; padding: 11px 38px 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); cursor: pointer; list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-country-dropdown-summary::-webkit-details-marker { display: none; }
.person-country-dropdown-summary::after { content: '⌄'; position: absolute; right: 14px; color: var(--muted); }
.person-country-dropdown[open] .person-country-dropdown-summary { border-color: var(--green); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.person-country-dropdown-menu { position: absolute; z-index: 20; width: 100%; max-height: 280px; overflow-y: auto; padding: 8px; border: 1px solid var(--green); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 12px 24px rgba(16, 24, 40, .14); }
.person-country-dropdown-menu label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-weight: 500; }
.person-country-dropdown-menu label:hover { background: rgba(22, 130, 70, .08); }
.person-country-dropdown-menu input { width: 17px; height: 17px; accent-color: var(--green); }
.person-bio-text { max-width: 850px; line-height: 1.6; color: var(--text); }
.person-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.person-works-card { display: grid; gap: 14px; }
.person-works-list { display: grid; gap: 8px; }
.person-work-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.person-work-row:hover { background: var(--surface-soft); }
.person-work-main { display: grid; gap: 3px; min-width: 0; }
.person-work-main small, .person-work-roles { color: var(--muted); }
.person-work-roles { text-align: right; font-size: .86rem; }
.person-variants-card { display: grid; gap: 14px; margin-bottom: 18px; }
.person-variant-list { display: grid; gap: 8px; }
.person-variant-view { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.person-variant-view span { color: var(--muted); }
.person-variants-compact { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.person-variants-compact h2 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.person-variant-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.person-variant-tag { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; line-height: 1.25; }
.person-variant-tag strong { font-size: 12px; font-weight: 600; }
.person-variant-tag small { color: var(--muted); font-size: 10px; }
.person-merge-history { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.person-merge-history summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 650; }
.person-merge-history summary span { margin-left: 4px; font-weight: 500; }
.person-merge-history[open] summary { margin-bottom: 10px; }
.merge-confirmation { display: inline-flex; width: fit-content; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; }
.merge-confirmation input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; margin: 1px 0 0; padding: 0; }
.person-credit-names { display: flex; flex-wrap: wrap; align-items: flex-start; }
.person-credit-name { display: inline-grid; gap: 1px; color: var(--text); text-decoration: none; line-height: 1.25; }
.person-credit-name small { color: var(--muted); font-size: 11px; font-weight: 400; }
.person-credit-name:hover span { text-decoration: underline; text-underline-offset: 2px; }
.person-credit-name:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.folk-work-library-label { display: grid; gap: 1px; line-height: 1.25; }
.folk-work-library-label small { color: var(--muted); font-size: 11px; font-weight: 400; text-transform: lowercase; }
.person-credit-separator { margin-right: 4px; color: var(--muted); }
.person-editor-card, .person-variant-editor { display: grid; gap: 12px; }
.person-editor-card .admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person-editor-card .admin-form-grid > label { display: grid; gap: 6px; align-content: start; }
.person-editor-card .person-canonical-field { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .person-editor-card .admin-form-grid { grid-template-columns: 1fr; }
  .person-editor-card .person-canonical-field { grid-column: auto; }
}
.person-photo-editor { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.person-photo-preview { width: 112px; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.person-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-photo-preview svg { width: 30px; height: 30px; }
.person-photo-controls { display: grid; justify-items: start; gap: 10px; min-width: 0; }
.person-photo-controls > div { display: grid; gap: 3px; }
.person-photo-controls small { color: var(--muted); font-size: 12px; }
.person-photo-status { min-height: 16px; }
.person-photo-status.error { color: var(--danger); }
.person-photo-file { display: grid; gap: 7px; width: min(100%, 520px); font-size: 13px; font-weight: 650; }
.person-photo-file > span { display: inline-flex; align-items: center; gap: 6px; }
.person-photo-file input[type="file"] { height: auto; min-height: 40px; padding: 6px; background: var(--surface); font-size: 13px; }
.person-photo-file input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
.person-photo-remove { display: inline-flex; width: fit-content; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.person-photo-remove input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; margin: 0; padding: 0; }
.person-photo-crop-dialog { width: min(92vw, 390px); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.person-photo-crop-dialog::backdrop { background: rgb(17 24 39 / 55%); }
.person-photo-crop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.person-photo-crop-dialog canvas { display: block; width: min(100%, 320px); aspect-ratio: 4 / 5; margin: 0 auto; background: #111; cursor: grab; touch-action: none; }
.person-photo-crop-dialog canvas:active { cursor: grabbing; }
.person-photo-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.person-photo-zoom span { display: inline-flex; align-items: center; gap: 6px; }
.person-photo-zoom input { padding: 0; }
.person-photo-crop-dialog p { margin: 8px 0 0; font-size: 12px; }
.person-variant-row { display: grid; grid-template-columns: 180px minmax(220px, 1fr) 140px 160px 40px; gap: 8px; align-items: center; }
.person-deactivate-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.people-page-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.work-people-byline { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
.work-people-byline a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-underline-offset: 3px; }
.work-people-byline a:hover { text-decoration-color: currentColor; }
.work-credit-byline-role { opacity: .72; font-size: .86em; }

.member-card h3 a, .birthday-card h3 a { color: inherit; text-decoration: none; }
.member-card h3 a:hover, .birthday-card h3 a:hover { color: var(--green); }
.member-detail-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 18px; }
.member-detail-avatar { width: 150px; height: 150px; border-radius: 36px; overflow: hidden; background: var(--surface-soft); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--muted); }
.member-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-detail-copy { display: grid; gap: 10px; }
.member-detail-copy h1 { margin: 0; }
.member-detail-copy p { margin: 0; color: var(--muted); }
.member-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-profile-card { display: grid; gap: 14px; }
.readable-facts { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 10px 16px; }
.readable-facts dt { color: var(--muted); }
.readable-facts dd { margin: 0; }
.wide-details { margin-top: 8px; }
.wide-details small { display: block; color: var(--muted); margin-top: 5px; }

/* Work detail phase A: tabbed material screens */
.work-tabbed-page { display: grid; gap: 16px; min-width: 0; }
.work-main-column { display: grid; gap: 16px; min-width: 0; }
.work-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.work-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 2px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.work-tab-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.work-tab:hover { color: var(--green-dark); }
.work-tab.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}
.work-voice-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.work-voice-layout {
  display: block;
  min-width: 0;
}
.work-voice-layout.has-score-viewer-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.work-voice-layout.has-score-viewer-open .work-voice-shell {
  min-width: 0;
}
.score-card.is-selected {
  border-color: rgba(22, 130, 70, .45);
  box-shadow: 0 0 0 2px rgba(22, 130, 70, .12), var(--shadow);
}
.score-card.is-selected .score-card-preview-stage {
  border-color: var(--green);
}
.score-card-view-button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.score-card-view-button .action-icon {
  width: 16px;
  height: 16px;
}
.score-card-view-button:hover {
  background: var(--green-soft);
  border-color: var(--green);
}
.score-card-view-button:active {
  transform: translateY(1px) scale(.99);
}
.score-card-view-button:focus-visible {
  outline: 2px solid rgba(22, 130, 70, .28);
  outline-offset: 2px;
}
.score-card-view-button.is-active,
.score-card-view-button[aria-pressed="true"] {
  background: rgba(22, 130, 70, .12);
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.work-score-viewer {
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 16px;
  z-index: 12;
  width: fit-content;
}
.work-score-viewer[hidden] { display: none !important; }
.work-score-viewer-shell {
  position: relative;
  width: clamp(420px, 44vw, 760px);
  height: calc(100vh - 32px - var(--movement-player-dock-space, 0px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 420px;
  min-height: 420px;
  max-width: min(100%, calc(100vw - var(--sidebar) - 48px));
  max-height: calc(100vh - 32px - var(--movement-player-dock-space, 0px) - 16px);
}
.work-score-viewer-head[data-score-viewer-drag-handle] {
  cursor: grab;
  touch-action: none;
}
.work-score-viewer.is-dragging .work-score-viewer-head[data-score-viewer-drag-handle] {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.work-score-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.work-score-viewer-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.work-score-viewer-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.work-score-viewer-title {
  font-size: 18px;
  line-height: 1.3;
}
.work-score-viewer-mode-hint {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.work-score-viewer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease, color .16s ease;
}
.work-score-viewer-close .action-icon {
  width: 18px;
  height: 18px;
}
.work-score-viewer-close:hover {
  background: var(--green-soft);
  border-color: var(--green);
}
.work-score-viewer-close:active {
  transform: translateY(1px) scale(.99);
}
.work-score-viewer-close:focus-visible {
  outline: 2px solid rgba(22, 130, 70, .28);
  outline-offset: 2px;
}
.work-score-viewer-frame-shell {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.work-score-viewer-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #fff;
}
.work-score-viewer.is-snapped .work-score-viewer-shell {
  max-width: none;
  max-height: none;
}
.floating-resize-handle {
  position: absolute;
  z-index: 30;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
.floating-resize-right {
  top: 48px;
  right: 0;
  bottom: 14px;
  width: 12px;
  cursor: ew-resize;
}
.floating-resize-bottom {
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 12px;
  cursor: ns-resize;
}
.floating-resize-corner {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}
.floating-resize-left {
  top: 48px;
  bottom: 14px;
  left: 0;
  width: 12px;
  cursor: ew-resize;
  display: none;
}
.work-score-viewer.is-snapped [data-score-resize="width"],
.work-score-viewer.is-snapped [data-score-resize="height"],
.work-score-viewer.is-snapped [data-score-resize="both"] {
  display: none;
}
.work-score-viewer.is-snapped [data-score-resize="snapped-width"] {
  display: block;
}
.work-main-column.has-voice-player {
  padding-bottom: 224px;
}
.work-main-column {
  --movement-player-dock-space: 0px;
}
.work-main-column.has-movement-player {
  padding-bottom: max(224px, calc(65vh + 72px));
}
.voice-player-dock {
  position: fixed;
  left: var(--sidebar);
  right: 0;
  bottom: 0;
  z-index: 18;
  padding: 12px 32px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  box-shadow: 0 -10px 24px rgba(16, 24, 40, .10);
  backdrop-filter: blur(8px);
}
.voice-player-dock-bar {
  display: grid;
  grid-template-columns: 56px minmax(220px, 320px) minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 14px;
}
.voice-player-dock-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.voice-player-dock-copy strong {
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-player-dock-times {
  display: flex;
  align-items: center;
  gap: 8px;
}
.voice-player-dock-seek {
  min-width: 0;
}
.voice-player-dock-seek .voice-player-seek {
  width: 100%;
  accent-color: var(--green);
}
.voice-player-dock-volume {
  display: grid;
  grid-template-columns: auto minmax(96px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.voice-player-dock-volume-icon {
  display: inline-grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 16px;
}
.voice-player-dock .voice-player-play-icon {
  display: inline-grid;
  place-items: center;
  line-height: 0;
  width: 22px;
  height: 22px;
}
.voice-player-dock .voice-player-play-icon .action-icon {
  width: 22px;
  height: 22px;
}
.voice-player-volume {
  width: 100%;
  accent-color: var(--green);
}
.voice-player-dock .voice-player-play-label {
  display: none;
}
.voice-player-dock .voice-player-play {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  color: var(--green-dark);
  background: #fff;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .12s ease;
  cursor: pointer;
}
.voice-list-player .voice-track-play:hover,
.voice-player-dock .voice-player-play:hover {
  background: rgba(22, 130, 70, .08);
  border-color: var(--green-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(16, 24, 40, .08);
}
.voice-list-player .voice-track-play:active,
.voice-player-dock .voice-player-play:active {
  transform: translateY(1px) scale(.98);
}
.voice-list-player .voice-track-play:focus-visible,
.voice-player-dock .voice-player-play:focus-visible {
  outline: 2px solid rgba(22, 130, 70, .28);
  outline-offset: 2px;
}
.voice-list-player .voice-track-row.is-current .voice-track-play,
.voice-list-player .voice-track-play[aria-pressed="true"],
.voice-player-dock .voice-player-play[aria-pressed="true"] {
  background: rgba(22, 130, 70, .12);
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.work-panels { display: grid; gap: 16px; min-width: 0; }
.work-panel { display: grid; gap: 14px; min-width: 0; }
.work-panel[hidden] { display: none !important; }
.work-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.work-panel-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.work-about-card { gap: 14px; min-width: 0; }
.work-about-card .work-relationship-section { min-width: 0; }
.work-about-facts {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 10px 18px;
}
.work-about-facts dt {
  color: var(--muted);
  font-weight: 700;
}
.work-about-facts dd {
  margin: 0;
  text-align: left;
  font-weight: 750;
}
.work-about-description {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.work-about-card .panel-head h2,
.work-about-description h3,
.work-about-card .program-uses h2,
.work-about-card .performances-uses h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}
.work-about-description p { margin: 0; color: #475467; line-height: 1.55; }
.work-about-card .performances-uses {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}
.work-about-card .program-uses {
  display: grid;
  gap: 2px;
  padding-top: 14px;
}
.work-about-card .program-uses { border-top: 1px solid var(--line); }
.work-about-card .program-uses h2 {
  margin: 0 0 8px;
}
.work-about-card .programs-list,
.work-about-card .programs-more-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 2px;
}
.work-about-card .programs-list {
  counter-reset: program-item;
}
.work-about-card .programs-more-list {
  counter-reset: program-item 3;
}
.work-about-card .program-use-row {
  counter-increment: program-item;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  margin: 0;
  padding: 3px 0;
}
.work-about-card .program-use-row::before {
  content: counter(program-item);
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.work-about-card .program-use-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  min-width: 0;
}
.work-about-card .program-use-link b {
  font-weight: 400;
  line-height: 1.35;
  min-width: 0;
}
.work-about-card .program-use-link em {
  justify-self: end;
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
}
.work-about-card .programs-more {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.work-about-card .programs-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--green-dark);
  font-weight: 800;
}
.work-about-card .programs-more summary::-webkit-details-marker {
  display: none;
}
.work-about-card .programs-more-closed {
  display: inline;
}
.work-about-card .programs-more-open {
  display: none;
}
.work-about-card .programs-more[open] .programs-more-closed {
  display: none;
}
.work-about-card .programs-more[open] .programs-more-open {
  display: inline;
}
.work-about-card .programs-more summary::after {
  content: '⌄';
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}
.work-about-card .programs-more[open] summary::after {
  transform: translateY(1px) rotate(180deg);
}
.work-about-card .programs-more-list {
  display: grid;
  gap: 2px;
  padding-left: 0;
}
.work-about-card .program-empty { color: var(--muted); }
.work-about-card .program-empty::before { content: none; }
.work-status-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.work-recordings-stack { display: grid; gap: 14px; }
.work-recordings-secondary { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.score-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
  gap: 12px;
  justify-content: start;
  justify-items: start;
}
.score-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: min(230px, 100%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.score-card-preview-stage {
  display: grid;
  place-items: stretch;
  width: min(180px, 100%);
  aspect-ratio: 210 / 297;
  justify-self: start;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.score-card-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.score-card-preview-fallback {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf6 100%);
  color: var(--green-dark);
}
.score-card-preview-fallback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(72, 177, 110, .12);
}
.score-card-preview-fallback-icon .score-card-preview-icon {
  width: 18px;
  height: 18px;
}
.score-card-preview-fallback-label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.score-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.score-card-preview-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(72, 177, 110, .12);
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: .02em;
}
.score-card-preview-state {
  min-width: 0;
  color: var(--green-dark);
  font-size: .84rem;
  line-height: 1.3;
  font-weight: 700;
}
.score-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.score-card-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.primary-score-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1b8a49;
  border: 1px solid var(--green-dark);
  color: #fff;
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(24, 97, 43, .18);
}
.score-card-title {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
}
.score-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  min-height: 1.45em;
}
.score-card-note {
  margin: 0;
  color: #475467;
  font-size: .88rem;
  line-height: 1.45;
}
.score-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.score-card-action {
  min-width: 0;
}
.score-card-action.icon-action {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 177, 110, .18);
  background: var(--surface);
  color: var(--green-dark);
}
.score-card-action.icon-action:hover {
  border-color: var(--green);
  background: var(--green-soft);
}
.score-card-action.icon-action .action-icon {
  width: 18px;
  height: 18px;
}
.compact-document-top .score-card-preview-label {
  width: 28px;
  height: 28px;
}
.compact-document-top .score-card-preview-label svg {
  width: 16px;
  height: 16px;
}
.admin-material-row { align-items: start; }
.admin-material-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.material-role-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.material-role-select { width: 170px; max-width: 100%; }
/* Scalable work detail materials */
.work-hero-scalable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}
.work-hero-main { min-width: 0; }
.work-hero-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}
.work-hero-side .members-tabs {
  margin: 0;
  justify-content: flex-end;
}
.work-hero-side .hero-actions { margin-left: 0; }
.download-menu {
  position: relative;
  display: inline-grid;
  gap: 0;
}
.download-menu > summary {
  list-style: none;
}
.download-menu > summary::-webkit-details-marker {
  display: none;
}
.download-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  min-width: 248px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}
.download-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
}
.download-menu-item:hover { background: var(--surface-soft); }
.download-menu-icon { width: 16px; height: 16px; color: var(--green); }
.work-material-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 10px; }
.work-material-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: var(--surface-soft); color: inherit; text-decoration: none; font-weight: 700; }
.work-material-jump a b { min-width: 24px; height: 24px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; font-size: .8rem; }
.jump-icon { width: 16px; height: 16px; }
.scalable-materials-card { display: grid; gap: 20px; }
.material-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.material-section-title h3 { margin: 0; }
.material-section-title span { color: var(--muted); font-size: .9rem; }
.material-row.compact { padding: 9px; grid-template-columns: auto minmax(0, 1fr) auto; }
.material-row.compact audio { width: min(360px, 100%); }
.tiny-chip { font-size: .72rem; padding: 2px 7px; }
.file-icon.musicxml, .file-icon.xml { color: var(--green); }
.file-icon.musescore, .file-icon.mscz { color: var(--green); }
.voice-groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.scalable-voice-group { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.scalable-voice-group summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 800; background: var(--surface-soft); }
.scalable-voice-group summary b { min-width: 28px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.voice-group-tracks { display: grid; gap: 8px; padding: 10px; }
.voice-track-row .material-title { gap: 6px; }

.work-materials-view {
  display: grid;
  gap: 16px;
}
.work-materials-grid,
.work-materials-secondary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.work-materials-grid.no-youtube #recordings {
  grid-column: 1 / -1;
}
.work-materials-secondary {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.work-materials-grid > .player-preview {
  min-width: 0;
}
.work-material-card {
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.work-material-card .material-section-title {
  margin-bottom: 10px;
}
.work-material-card .material-section-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.work-material-card .material-section-title span {
  font-size: .82rem;
}
.work-material-card .jump-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.work-material-card .material-row.compact {
  padding: 7px 8px;
  margin-bottom: 5px;
}
.work-material-card .material-row:last-child {
  margin-bottom: 0;
}
.work-material-card .material-title {
  gap: 6px;
}
.work-material-card .material-body small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-material-card .material-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.work-material-card .material-actions .button.small {
  padding-inline: 11px;
}
.work-material-card .voice-badge,
.work-material-card .chip.success {
  margin: 0;
}
.work-panel[data-work-panel="scores"] .score-card {
  align-content: start;
  width: min(230px, 100%);
}
.work-panel[data-work-panel="scores"] .score-card-body {
  min-height: 0;
}
.work-panel[data-work-panel="scores"] .notes-score-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: start;
}
.work-panel[data-work-panel="scores"] .notes-score-grid .score-card {
  justify-self: start;
}
.work-panel[data-work-panel="scores"] .notes-score-grid .score-card:first-child .score-card-preview-stage {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(72, 177, 110, .18), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.work-panel[data-work-panel="editor-files"] .editor-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: start;
  justify-items: start;
}
.work-panel[data-work-panel="editor-files"] .editor-score-card {
  align-content: start;
  width: min(230px, 100%);
  justify-self: start;
}
.work-panel[data-work-panel="editor-files"] .editor-score-preview-stage {
  width: min(180px, 100%);
}
.work-panel[data-work-panel="editor-files"] .editor-score-preview-image {
  object-fit: contain;
  background: #fff;
}
.work-player-card .voice-player-section-title {
  margin-bottom: 8px;
}
.work-player-card .voice-player-section-title h3 {
  color: var(--green-dark);
}
.work-player-card .voice-player-section-title .jump-icon {
  color: var(--green);
}
.work-player-card .voice-player-head {
  grid-template-columns: 1fr;
  gap: 4px;
}
.work-player-card .voice-player-current {
  min-width: 0;
  justify-items: start;
  text-align: left;
}
.work-player-card .voice-player-controls {
  gap: 8px;
}
.work-player-card .voice-player-media-row {
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.work-player-card .voice-player-audio {
  max-width: 100%;
}
.work-player-card .voice-player-download {
  min-width: 178px;
  margin-left: auto;
}
.work-player-card {
  padding: 12px 12px 10px;
}
.movement-player-card {
  display: grid;
  gap: 10px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.work-panel[data-work-panel="movements"] .movement-player-card {
  width: min(100%, 920px);
  margin-inline: auto;
}
.work-main-column.has-voice-player {
  --movement-player-dock-space: 156px;
}
.movement-player-section-title {
  margin-bottom: 8px;
}
.movement-player-section-title h3 {
  color: var(--green-dark);
}
.movement-player-section-title .jump-icon {
  color: var(--green);
}
.movement-player-head {
  display: grid;
  gap: 4px;
}
.movement-player-controls {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.movement-player-field {
  display: grid;
  gap: 6px;
  color: #475467;
  font-weight: 700;
  font-size: 13px;
}
.movement-player-field span { color: #475467; }
.movement-player-select { width: 100%; max-width: 260px; }
.movement-player-current {
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-items: start;
  text-align: left;
}
.movement-player-current-title { font-size: 15px; line-height: 1.25; }
.movement-player-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  justify-items: center;
}
.movement-player-video {
  display: block;
  width: 100%;
  max-width: min(100%, 720px);
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}
.movement-player-card.is-portrait .movement-player-video {
  width: auto;
  max-width: min(100%, 720px);
  max-height: calc(100vh - 250px);
  margin-inline: auto;
}
.movement-player-card.is-landscape .movement-player-video {
  width: 100%;
  max-width: 100%;
}
.movement-player-download {
  min-width: 178px;
  white-space: nowrap;
  align-self: start;
  justify-self: center;
}
.movement-gallery {
  width: min(920px, 100%);
  margin-inline: 0;
  display: grid;
  gap: 16px;
}
.movement-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
.movement-card {
  display: grid;
  gap: 10px;
  width: min(220px, 100%);
  flex: 0 0 auto;
}
.movement-card.is-landscape { width: min(320px, 100%); }
.movement-card-preview-shell {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  font: inherit;
  color: inherit;
  appearance: none;
  text-align: inherit;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.movement-card-preview-shell:hover {
  border-color: rgba(22, 130, 70, .45);
}
.movement-card-preview-shell:focus-visible {
  outline: 2px solid rgba(22, 130, 70, .28);
  outline-offset: 3px;
}
.movement-card.is-landscape .movement-card-preview-shell { aspect-ratio: 16 / 9; }
.movement-card-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}
.movement-card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .05), rgba(15, 23, 42, .20));
  color: #fff;
  pointer-events: none;
  transition: background-color .16s ease, transform .12s ease;
}
.movement-card-preview-shell:hover .movement-card-play {
  background: linear-gradient(180deg, rgba(15, 23, 42, .12), rgba(15, 23, 42, .28));
}
.movement-card-play .action-icon {
  width: 54px;
  height: 54px;
}
.movement-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.movement-card-copy b {
  font-size: 15px;
  line-height: 1.35;
}
.movement-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.movement-card-actions {
  display: flex;
  justify-content: flex-end;
}
.movement-floating-player {
  position: fixed;
  z-index: 90;
  right: 24px;
  left: auto;
  bottom: calc(20px + var(--movement-player-dock-space, 0px));
  top: auto;
  width: min(90vw, 560px);
  max-width: calc(100vw - var(--sidebar) - 48px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
  pointer-events: auto;
  overflow: hidden;
  min-width: 320px;
  min-height: 240px;
}
.movement-floating-player[hidden] { display: none !important; }
.movement-floating-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.movement-floating-player-head[data-movement-drag-handle] {
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.movement-floating-player-head[data-movement-drag-handle]:hover {
  background: rgba(22, 130, 70, .03);
  border-radius: 12px;
}
.movement-floating-player.is-dragging .movement-floating-player-head[data-movement-drag-handle] {
  cursor: grabbing;
}
.movement-floating-player.is-dragging {
  box-shadow: 0 22px 58px rgba(16, 24, 40, .24);
}
.movement-floating-player-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.movement-floating-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--green-dark);
}
.movement-floating-button .action-icon {
  width: 18px;
  height: 18px;
}
.movement-floating-player .movement-player-video {
  width: 100%;
  max-width: 100%;
  max-height: min(65vh, 540px);
  display: block;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
}
.movement-floating-player.has-explicit-size {
  grid-template-rows: auto minmax(0, 1fr);
}
.movement-floating-player.has-explicit-size .movement-player-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.movement-floating-player.is-snapped [data-movement-resize] {
  display: none;
}
.movement-floating-player.is-portrait {
  width: min(360px, calc(100vw - var(--sidebar) - 48px));
}
.movement-floating-player.is-landscape {
  width: min(560px, calc(100vw - var(--sidebar) - 48px));
}
.movement-floating-player.is-portrait .movement-player-video {
  max-height: 65vh;
}
.movement-floating-player.is-landscape .movement-player-video {
  max-height: 55vh;
}
.work-panel[data-work-panel="scores"] .score-card-preview-image,
.work-panel[data-work-panel="scores"] .score-card-preview-fallback {
  align-self: stretch;
}
.work-materials-secondary .material-card {
  min-width: 0;
}
.work-materials-secondary .material-row.compact audio {
  width: min(320px, 100%);
}
.work-material-card .compact-empty {
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .score-card-grid,
  .work-panel[data-work-panel="scores"] .notes-score-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .score-card-preview-stage {
    width: min(100%, 220px);
    margin-inline: auto;
  }
  .primary-score-badge {
    right: 8px;
    bottom: 8px;
  }
}

@media (max-width: 900px) {
  .work-voice-layout.has-score-viewer-open {
    display: block;
  }
  .work-score-viewer [data-score-resize],
  .movement-floating-player [data-movement-resize] {
    display: none !important;
  }
  .work-score-viewer {
    position: fixed;
    left: 8px !important;
    right: 8px !important;
    top: calc(var(--topbar) + 8px) !important;
    bottom: calc(16px + var(--movement-player-dock-space, 0px)) !important;
    width: auto !important;
    height: auto !important;
    max-height: none;
    z-index: 82;
  }
  .work-score-viewer-shell {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
  }
  .work-score-viewer-frame-shell {
    min-height: 0;
  }
  .work-score-viewer-head[data-score-viewer-drag-handle] {
    cursor: default;
    touch-action: auto;
    user-select: auto;
  }
}

.work-page.two-column-page {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
.work-page.two-column-page .main-column {
  min-width: 0;
}
@media (min-width: 961px) {
  .work-page.two-column-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.rehearsal-count-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--text); font-weight: 800; margin: 4px 0 8px; }
.detail-pill { margin-top: 8px; }
.performance-rehearsals-list { display: grid; gap: 8px; margin: 12px 0; }
.performance-rehearsals-list h2 { font-size: 1rem; margin: 0; }
.performance-rehearsals-list a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface-soft); text-decoration: none; color: inherit; }
.performance-rehearsals-list a small { margin-left: auto; color: var(--muted); }

@media (max-width: 760px) {
  .person-detail-hero, .member-detail-hero, .member-detail-grid { grid-template-columns: 1fr; }
  .person-detail-portrait, .member-detail-avatar { width: 120px; height: 120px; }
  .person-work-row { grid-template-columns: auto minmax(0, 1fr); }
  .person-work-roles, .row-arrow { display: none; }
  .person-variant-row { grid-template-columns: 1fr; }
  .person-variant-view { display: grid; gap: 4px; }
  .person-photo-editor { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .person-photo-preview { width: 88px; }
  .people-page-heading { display: grid; }
  .work-materials-grid,
  .work-materials-secondary {
    grid-template-columns: 1fr;
  }
  .work-materials-grid.no-youtube #recordings,
  .work-materials-grid #voices {
    grid-column: auto;
  }
  .work-player-card .voice-player-head,
  .work-player-card .voice-player-controls,
  .work-player-card .voice-player-media-row {
    grid-template-columns: 1fr;
  }
  .work-player-card .voice-player-audio,
  .work-player-card .voice-player-download {
    max-width: 100%;
    width: 100%;
  }
  .work-player-card .voice-player-media-row {
    grid-template-columns: 1fr;
  }
  .movement-player-controls,
  .movement-player-media-row {
    grid-template-columns: 1fr;
  }
  .movement-player-select,
  .movement-player-download,
  .movement-player-video {
    width: 100%;
    min-width: 0;
  }
  .movement-gallery { width: 100%; margin-inline: 0; }
  .movement-card { width: 100%; }
  .movement-card.is-landscape { width: 100%; }
  .work-main-column.has-movement-player {
    padding-bottom: max(280px, calc(42vh + 72px));
  }
  .movement-floating-player {
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(16px + var(--movement-player-dock-space, 0px)) !important;
    width: auto !important;
    max-width: none;
    padding: 10px;
  }
  .movement-floating-player.is-portrait,
  .movement-floating-player.is-landscape {
    width: 100%;
  }
  .movement-floating-player-head[data-movement-drag-handle] {
    cursor: default;
    touch-action: auto;
  }
  .movement-floating-player .movement-player-video {
    height: auto;
    max-height: 42vh;
  }
  .work-page.two-column-page {
    grid-template-columns: 1fr;
  }
  .work-hero-scalable {
    grid-template-columns: 1fr;
  }
  .work-hero-side {
    justify-items: start;
  }
  .work-hero-side .members-tabs {
    justify-content: flex-start;
  }
  .download-menu {
    width: 100%;
  }
  .download-menu-panel {
    position: static;
    min-width: 0;
    width: 100%;
  }
}

/* Work editor mobile containment verified against a 390px viewport. */
@media (max-width: 760px) {
  .topbar {
    gap: 8px;
    padding-inline: 12px;
    overflow: hidden;
  }
  .topbar .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .topbar .global-search {
    display: none;
  }
  .work-hero-scalable,
  .work-hero-main,
  .work-tags,
  .work-editor-card,
  .work-editor-form,
  .work-editor-section,
  .material-admin-section {
    min-width: 0;
    max-width: 100%;
  }
  .work-tags .chip {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .work-editor-card .section-head,
  .material-admin-section .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .work-editor-section,
  .material-section,
  .work-editor-actions,
  .work-editor-card .section-head {
    padding-inline: 14px;
  }
  .work-editor-global-actions {
    justify-items: start;
    text-align: left;
  }
  .work-editor-header-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  .work-editor-header-buttons .button {
    flex: 1 1 auto;
  }
  .work-material-composer {
    padding-inline: 14px;
  }
  .work-material-composer-head {
    align-items: center;
  }
  .work-material-composer-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-material-composer-tabs button {
    justify-content: center;
  }
  .work-material-composer-form {
    grid-template-columns: 1fr;
  }
  .work-material-composer-field--wide,
  .work-material-composer-submit {
    grid-column: auto;
  }
  .work-material-composer-submit .button {
    width: 100%;
  }
  .work-editor-section-head {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 4px;
  }
  .work-editor-section-head > span { text-align: left; padding-left: 29px; }
  .work-editor-source-grid,
  .work-editor-author-grid,
  .work-editor-fields.two-columns,
  .work-editor-description-grid,
  .work-editor-material-controls,
  .materials-admin-grid,
  .voice-type-option-grid {
    grid-template-columns: 1fr;
  }
  .work-editor-description-field textarea,
  .work-editor-editorial-field textarea {
    min-height: 140px;
  }
  .work-credit-row { grid-template-columns: minmax(0, 1fr) 36px 36px 36px 36px; }
  .work-credit-processing-row {
    grid-template-columns: minmax(0, 1fr) 36px 36px 36px 36px 36px;
  }
  .work-credit-processing-row select {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .work-credit-processing-row [data-credit-up],
  .work-credit-processing-row [data-credit-down],
  .work-credit-processing-row [data-credit-remove],
  .work-credit-processing-row [data-credit-add] {
    grid-row: 1;
  }
  .work-processing-credit-role {
    display: block;
    min-width: 0;
    margin-right: 4px;
  }
  .work-editor-actions-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .work-editor-actions-footer .button,
  .work-editor-actions-footer a {
    width: 100%;
  }
  .work-editor-material-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .work-editor-material-row .material-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* CUSTOS work editor: compact material hub */
.work-material-hub { display: grid; gap: 0; }
.work-material-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
}
.work-material-hub-toolbar p { margin: 0; max-width: 760px; }
.work-material-hub-block {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: visible;
}
.work-material-hub-head {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid transparent;
}
.work-material-hub-block.is-open > .work-material-hub-head { border-bottom-color: var(--line); }
.work-material-hub-head .work-editor-toggle { font-size: 15px; }
.work-material-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f4f2;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800;
}
.work-score-admin-body, .work-voice-admin-body { padding: 10px 12px 12px; }
.work-score-admin-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: visible;
}
.work-score-admin-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(180px, 1fr) 86px auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.work-score-admin-row:last-child { border-bottom: 0; }
.work-score-admin-row--head {
  min-height: 38px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.work-score-admin-row.is-primary { box-shadow: inset 3px 0 0 var(--green); background: #fbfefc; }
.work-score-admin-row.is-private { background: #f8f9fb; }
.work-score-admin-row.is-detached { background: #f1f3f5; color: #7b8490; }
.work-score-admin-row.is-detached .work-score-admin-file strong,
.work-score-admin-row.is-detached .work-score-admin-title strong { color: #68717d; }
.work-score-admin-visibility { display: flex; justify-content: center; }
.work-material-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #c9d1d8;
  border-radius: 6px;
  background: #fff;
  color: #98a2b3;
  cursor: pointer;
}
.work-material-primary-button:hover { background: #edf7f0; color: var(--green); }
.work-material-primary-button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 0 0 2px rgba(35, 126, 83, .14); }
.work-score-admin-title { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; }
.work-score-admin-title strong, .work-score-admin-file strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.work-score-admin-file { min-width: 0; }
.work-score-admin-name-field { display: flex; align-items: center; gap: 6px; min-width: 0; }
.work-score-admin-name-field input { width: 100%; min-width: 0; height: 30px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.work-score-admin-name-field input:focus { border-color: var(--green); outline: 2px solid rgba(35, 126, 83, .16); outline-offset: 1px; }
.work-score-admin-name-field .material-icon-action { flex: 0 0 28px; width: 28px; height: 28px; }
.work-score-admin-file span, .work-score-admin-updated { display: block; color: var(--muted); font-size: 12px; }
.work-score-admin-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.work-score-admin-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.work-material-row-menu { position: relative; }
.work-material-row-menu > summary { list-style: none; cursor: pointer; }
.work-material-row-menu > summary::-webkit-details-marker { display: none; }
.work-material-row-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 9px;
  width: min(310px, 75vw);
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 24, 40, .16);
}
.work-material-row-menu-panel .button { width: 100%; justify-content: center; }
.work-material-row-menu-panel input[type="text"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.button.small.danger { border-color: #f5c2c7; background: #fff6f7; color: #b42318; }
.button.small.danger:hover { border-color: #ef9a9f; background: #ffedef; }
.work-material-hub-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #cfd8d3;
  border-radius: 12px;
  background: #fbfdfc;
  text-align: center;
}
.work-material-hub-empty p { margin: 0; color: var(--muted); }
.work-voice-admin-body { display: grid; gap: 10px; }
.work-voice-admin-set {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.work-voice-admin-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 7px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.work-voice-group-toggle { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.work-voice-group-toggle > .action-icon { width: 16px; height: 16px; flex: 0 0 16px; transition: transform .15s ease; }
.work-voice-group-toggle.is-collapsed > .action-icon { transform: rotate(-90deg); }
.work-voice-group-toggle > span:last-child { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.work-voice-group-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.work-voice-admin-set-head > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.work-voice-admin-set-head strong { font-size: 14px; }
.work-voice-admin-set-head span { color: var(--muted); font-size: 12px; }
.work-voice-admin-list { display: grid; }
.work-voice-admin-row {
  display: grid;
  grid-template-columns: 36px minmax(160px, 1.2fr) minmax(150px, .8fr) auto auto;
  align-items: end;
  gap: 9px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.work-voice-admin-row:last-child { border-bottom: 0; }
.work-voice-admin-row.is-private { background: #f8f9fb; }
.work-voice-admin-play {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #b9d9c4;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
}
.work-voice-admin-play:disabled { border-color: var(--line); color: #a8afb8; cursor: not-allowed; }
.work-voice-admin-copy { align-self: center; min-width: 0; }
.work-voice-admin-copy strong, .work-voice-admin-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-voice-admin-copy strong { font-size: 13px; }
.work-voice-admin-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.work-voice-admin-select select { height: 36px; }
.work-voice-admin-apply { min-height: 36px; align-self: end; }
.work-voice-admin-actions { align-self: center; justify-content: flex-end; flex-wrap: nowrap; }
.work-voice-group-model-note { margin: 2px 2px 0; font-size: 11px; }
.work-voice-group-toolbar { display: block; margin: 0 0 8px; }
.work-voice-group-create { width: 100%; }
.work-voice-group-create-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 2px; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.work-voice-group-create-trigger:hover, .work-voice-group-create-trigger:focus-visible { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.work-voice-group-create-trigger .action-icon { width: 16px; height: 16px; }
.work-voice-group-create-trigger[hidden], .work-voice-group-form[hidden], .material-admin-technical[hidden] { display: none !important; }
.work-voice-group-form, .work-voice-group-edit { display: grid; gap: 8px; width: min(560px, 100%); min-width: 0; margin: 0 0 8px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.work-voice-group-form label, .work-voice-group-edit label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.work-voice-group-form input, .work-voice-group-form textarea, .work-voice-group-edit input, .work-voice-group-edit textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; }
.work-voice-group-create .work-voice-group-form { grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr); align-items: end; width: min(560px, 100%); }
.work-voice-group-create .work-voice-group-form textarea { min-height: 32px; max-height: 48px; resize: vertical; }
.work-voice-group-create .admin-form-actions { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.work-voice-group-menu { flex: 0 0 auto; }
.work-voice-group-edit { margin-top: 6px; }
.work-voice-group-edit .button { width: 100%; justify-content: center; }
.work-voice-admin-set.is-ungrouped .work-voice-admin-set-head strong { color: var(--muted); font-weight: 700; }
.material-admin-group-editor { display: grid; gap: 7px; margin-top: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
.material-admin-group-editor label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.material-admin-group-editor select { min-width: 0; }
.material-admin-group-editor .button { justify-content: center; }
.voice-public-group-title { margin: 10px 0 5px; color: var(--muted); font-size: 12px; font-weight: 650; text-transform: none; letter-spacing: 0; }
.voice-public-section + .voice-public-section { margin-top: 14px; }
.work-material-secondary-groups {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.work-material-secondary-group { padding: 0; border-bottom: 1px solid var(--line); }
.work-material-secondary-group:last-child { border-bottom: 0; }
.work-material-secondary-group .work-editor-material-group-head { margin: 0; padding: 10px 12px; }
.work-material-secondary-group .work-editor-material-group-body { padding: 0 12px 12px; }

@media (max-width: 1100px) {
  .work-score-admin-row {
    grid-template-columns: minmax(200px, 1.2fr) minmax(140px, 1fr) 82px auto;
  }
  .work-voice-admin-row { grid-template-columns: 36px minmax(140px, 1fr) minmax(140px, .8fr) auto; }
  .work-voice-admin-actions { grid-column: 2 / -1; }
}

@media (max-width: 720px) {
  .work-material-hub-toolbar { align-items: stretch; flex-direction: column; }
  .work-material-hub-toolbar .button { width: 100%; }
  .work-material-hub-head { grid-template-columns: 1fr; gap: 8px; }
  .work-material-hub-head > .button { width: 100%; }
  .work-score-admin-row--head { display: none; }
  .work-score-admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }
  .work-score-admin-title { grid-column: 1; }
  .work-score-admin-file { grid-column: 1 / -1; }
  .work-score-admin-visibility { grid-column: 2; grid-row: 1; }
  .work-score-admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .work-material-row-menu-panel { right: auto; left: 0; }
  .work-voice-admin-row { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; }
  .work-voice-admin-copy { grid-column: 2; }
  .work-voice-admin-select { grid-column: 1 / -1; }
  .work-voice-admin-apply { grid-column: 1 / -1; width: 100%; }
  .work-voice-admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .work-voice-admin-set-head { align-items: flex-start; }
  .work-voice-admin-set-head > div { display: grid; gap: 2px; }
}

/* Work editor iteration 6: chip classification and inline material saves. */
.work-editor-chip-field {
  align-self: stretch;
}

.work-editor-language-field {
  align-self: stretch;
}

.work-language-dropdown {
  position: relative;
}

.work-language-dropdown-summary {
  min-height: 44px;
  padding: 11px 38px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-language-dropdown-summary::-webkit-details-marker {
  display: none;
}

.work-language-dropdown-summary::after {
  content: '⌄';
  position: absolute;
  right: 14px;
  color: var(--muted);
}

.work-language-dropdown[open] .work-language-dropdown-summary {
  border-color: var(--green);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.work-language-dropdown-menu {
  position: absolute;
  z-index: 20;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--green);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .14);
}


.work-language-dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 500;
}

.work-language-dropdown-menu label:hover {
  background: rgba(22, 130, 70, .08);
}

.work-language-dropdown-menu input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.work-editor-language-custom {
  display: flex;
  gap: .45rem;
  margin-top: .5rem;
}

.work-editor-language-custom input {
  min-width: 0;
  flex: 1 1 auto;
}

.work-editor-chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  min-height: 2.2rem;
  padding: 0.55rem;
  border: 1px solid var(--border-color, #dbe4df);
  border-radius: 0.75rem;
  background: var(--surface-muted, #f8fbf9);
}

.work-editor-choice-chip {
  appearance: none;
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.15;
  cursor: pointer;
}

.work-editor-choice-chip:hover {
  border-color: #7bb895;
}

.work-editor-choice-chip.is-selected {
  border-color: #16864d;
  background: #e9f7ef;
  color: #0b6739;
  box-shadow: inset 0 0 0 1px rgba(22, 134, 77, 0.08);
}

.work-editor-choice-chip.is-custom::after {
  content: " ×";
  opacity: 0.65;
}

.work-editor-chip-custom {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.work-editor-chip-custom input {
  min-width: 0;
  flex: 1 1 auto;
}

.work-material-file-hash,
.work-material-file-meta {
  color: var(--text-muted, #66756d);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.73rem;
}

.work-score-admin-file .work-material-file-hash,
.work-voice-admin-copy .work-material-file-hash {
  display: block;
  margin-top: 0.12rem;
  font-weight: 400;
}

.work-material-ajax-status {
  margin: 0.25rem 0 0;
  color: #0b6739;
  font-size: 0.82rem;
  font-weight: 600;
}

.work-material-ajax-status.is-error {
  color: #b42318;
}

[data-work-material-ajax-form] + * .is-loading,
.material-icon-action.is-loading,
.work-material-primary-button.is-loading,
.work-editor-material-apply.is-loading,
.work-voice-admin-apply.is-loading {
  opacity: 0.58;
  cursor: wait;
}

@media (max-width: 760px) {
  .work-editor-chip-custom {
    align-items: stretch;
    flex-direction: column;
  }
}

/* C1: section-level saves stay compact and aligned at the lower right. */
.work-editor-actions .work-editor-section-save {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.86rem;
  margin-left: auto;
}

/* C1.1: neutral section saves, framed YouTube rows, and click-to-load playback. */
.work-editor-section-body > .work-editor-actions {
  margin-top: 12px;
}
.work-editor-actions .work-editor-section-save {
  border-color: #b8c8c0;
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}
.work-editor-actions .work-editor-section-save:hover:not(:disabled) {
  border-color: var(--green);
  background: #f5faf7;
}
.work-editor-youtube-row {
  border-color: var(--line-strong);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
.youtube-recording-card {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.youtube-recording-card + .youtube-recording-card { margin-top: 10px; }
.youtube-embed-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0f1720;
}
.youtube-embed-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0f1720;
  cursor: pointer;
  overflow: hidden;
}
.youtube-embed-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .9;
  transition: transform .18s ease, opacity .18s ease;
}
.youtube-embed-button:hover img { transform: scale(1.02); opacity: 1; }
.youtube-thumbnail-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(255, 255, 255, .9);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: .02em;
}
.youtube-embed-button.is-thumbnail-missing .youtube-thumbnail-fallback { display: grid; }
.youtube-embed-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.youtube-embed-play .action-icon { width: 24px; height: 24px; }
.youtube-embed-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.youtube-recording-copy {
  min-width: 0;
  padding: 0 2px;
}
.youtube-recording-copy b {
  display: block;
  overflow-wrap: anywhere;
}
.work-editor-youtube-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.work-editor-youtube-title-field {
  display: grid;
  gap: 5px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}
.work-editor-youtube-title-field input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
}
@media (max-width: 760px) {
  .youtube-recording-card { width: 100%; }
}

/* C1.2: keep the standalone YouTube management group inside the same frame as other secondary material groups. */
.work-youtube-material-groups { margin-top: 0; }

/* CUSTOS C1.4: one uniform material accordion */
.work-material-uniform-groups {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: visible;
}
.work-material-uniform-group {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.work-material-uniform-group:last-child { border-bottom: 0; }
.work-material-uniform-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 10px 12px;
  border-radius: 0;
}
.work-material-uniform-group.is-open > .work-material-uniform-head {
  border-bottom: 1px solid var(--line);
}
.work-material-uniform-head .work-editor-toggle { font-size: 15px; }
.work-material-uniform-body { padding: 10px 12px 12px; }
.work-material-hub-empty--compact {
  padding: 14px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Unified material editor rows. Category groups own the frame; rows only use separators. */
.work-material-section-summary { color: var(--muted); font-size: 12px; white-space: nowrap; }
.material-admin-unified-list { overflow: visible; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.material-admin-unified-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) auto auto; align-items: center; gap: 12px; min-height: 66px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.material-admin-unified-row:last-child { border-bottom: 0; }
.material-admin-unified-row.is-private, .material-admin-unified-row.is-detached { background: #f7f8fa; }
.material-admin-unified-row.is-detached { color: #697386; }
.material-admin-unified-row.is-playing { background: #f1f8f3; box-shadow: inset 3px 0 0 var(--green); }
.material-admin-unified-main { display: grid; grid-template-columns: 24px 36px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; }
.material-row-select { display: inline-grid; place-items: center; width: 22px; height: 28px; cursor: pointer; }
.material-row-select input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.material-admin-unified-copy { min-width: 0; display: grid; gap: 3px; }
.material-admin-unified-title { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.material-admin-unified-title > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.material-admin-unified-meta { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.material-admin-unified-assignment { min-width: 0; }
.material-admin-unified-assignment select { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 12px; }
.material-admin-unified-empty { color: var(--muted); font-size: 12px; }
.material-admin-unified-status { white-space: nowrap; }
.material-row-save-status { color: var(--green-dark); font-size: 11px; font-weight: 650; }
.material-row-save-status.is-error { color: #b42318; }
.material-status-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; background: #f0f2f5; color: var(--muted); font-size: 11px; font-weight: 700; }
.material-status-tag.is-visible { background: #edf7f0; color: var(--green-dark); }
.material-admin-unified-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: max-content; }
.material-admin-unified-actions .material-icon-action:not(.material-admin-play) { width: 32px; min-width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: var(--muted); }
.material-admin-unified-actions .material-icon-action:not(.material-admin-play):hover, .material-admin-unified-actions .material-icon-action:not(.material-admin-play):focus-visible, .material-admin-unified-actions .material-icon-action:not(.material-admin-play)[aria-pressed="true"] { background: var(--surface-soft); color: var(--green-dark); }
.material-admin-play { flex: 0 0 30px; }
.material-admin-unified-row .material-admin-play { width: 34px; min-width: 34px; height: 34px; flex: 0 0 34px; }
.material-admin-unified-row .material-admin-play.voice-track-play { border: 1px solid var(--green); background: #fff; color: var(--green-dark); border-radius: 999px; }
.material-admin-unified-row .material-admin-play.voice-track-play:hover { background: rgba(22, 130, 70, .08); border-color: var(--green-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(16, 24, 40, .08); }
.material-admin-unified-row .material-admin-play.voice-track-play:focus-visible { outline: 2px solid rgba(22, 130, 70, .28); outline-offset: 2px; }
.material-admin-unified-row .voice-track-play-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; line-height: 0; }
.material-admin-unified-row .voice-track-play-icon .action-icon { width: 18px; height: 18px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.material-admin-play-fallback { display: none; }
.material-admin-menu { position: relative; }
.material-admin-menu > summary { list-style: none; cursor: pointer; }
.material-admin-menu > summary::-webkit-details-marker { display: none; }
.material-admin-menu-panel { position: absolute; z-index: 160; top: calc(100% + 5px); right: 0; display: grid; gap: 1px; width: min(222px, 82vw); max-height: min(70vh, 520px); overflow-y: auto; padding: 4px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; box-shadow: 0 8px 20px rgba(16, 24, 40, .13); }
.material-admin-menu.opens-up .material-admin-menu-panel { top: auto; bottom: calc(100% + 8px); }
.material-admin-menu-panel .button,
.material-admin-menu-panel a.button { width: 100%; min-height: 32px; justify-content: flex-start; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: var(--text); padding: 6px 7px; font-size: 12px; font-weight: 550; gap: 7px; text-decoration: none; }
.material-admin-menu-panel .button { min-height: 35px; height: 35px; padding: 6px 7px; font-size: 13px; font-weight: 400; gap: 8px; }
.material-admin-menu-panel .action-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.material-admin-menu-separator { height: 1px; margin: 4px 2px; border-top: 1px solid var(--line); }
.material-admin-menu-panel .button:hover,
.material-admin-menu-panel .button:focus-visible,
.material-admin-menu-panel a.button:hover,
.material-admin-menu-panel a.button:focus-visible { border: 0; background: var(--surface-soft); color: var(--text); }
.material-admin-menu-panel .button.danger { color: var(--red); }
.material-admin-menu-panel .button.danger:hover,
.material-admin-menu-panel .button.danger:focus-visible { color: var(--red); background: var(--red-soft); }
.material-admin-rename-editor { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.material-admin-rename-editor label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.material-admin-rename-editor input { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px; box-sizing: border-box; }
.material-admin-rename-editor > div { display: flex; gap: 6px; }
.material-admin-rename-editor > div .button { width: auto; flex: 1; }
.material-admin-rename-editor > div .button.primary { border-color: var(--green); background: var(--green); color: #fff !important; }
.material-admin-rename-editor > div .button.primary:hover { border-color: var(--green-dark); background: var(--green-dark); color: #fff !important; }
.material-admin-technical { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 4px; color: var(--muted); }
.material-admin-technical summary { color: var(--muted); cursor: pointer; font-size: 10px; line-height: 1.2; }
.material-admin-technical dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 7px; margin: 4px 0 0; font-size: 10px; line-height: 1.25; }
.material-admin-technical dt { color: var(--muted); }
.material-admin-technical dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.material-admin-restore-open { color: var(--text); }
.material-admin-restore-editor { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 6px; width: 100%; }
.material-admin-restore-editor select { min-width: 0; height: 34px; }
.material-admin-restore-editor .button { white-space: nowrap; }
.material-admin-role-editor { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 6px; width: 100%; }
.material-admin-role-editor select { min-width: 0; height: 34px; }
.material-admin-role-editor .button { white-space: nowrap; }
.material-admin-row-inline-editor { grid-column: 1 / -1; width: min(680px, 100%); box-sizing: border-box; }
.material-admin-group-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.material-admin-group-editor label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.material-admin-group-editor select { width: min(320px, 48vw); min-width: 180px; height: 32px; }
.material-admin-group-editor .button { min-height: 32px; }
.material-admin-group-editor .button.primary, .work-voice-group-form .button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.material-admin-group-editor .button.primary:hover, .work-voice-group-form .button.primary:hover { background: var(--green-dark); color: #fff; }
.material-admin-group-editor .button:disabled, .work-voice-group-form .button:disabled { border-color: #e2e6e9; background: #f1f3f5; color: #98a2b3; }
.material-bulk-bar { position: fixed; z-index: 140; left: max(16px, calc((100vw - 1180px) / 2 + 16px)); bottom: 88px; display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; width: min(820px, calc(100vw - 32px)); box-sizing: border-box; margin: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(16, 24, 40, .15); }
.material-bulk-bar strong { flex: 0 0 auto; font-size: 12px; white-space: nowrap; }
.material-bulk-actions, .material-bulk-editor { display: flex; align-items: center; gap: 6px; min-width: 0; }
.material-bulk-bar .button { min-height: 32px; padding: 6px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.material-bulk-bar .button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.material-bulk-bar .button.primary:hover { background: var(--green-dark); color: #fff; }
.material-bulk-bar .button:disabled { border-color: #e2e6e9; background: #f1f3f5; color: #98a2b3; }
.material-bulk-bar select { min-width: 190px; height: 32px; }
.material-bulk-clear { width: 32px; min-width: 32px; padding-inline: 0 !important; font-size: 20px !important; line-height: 1; }

@media (max-width: 900px) {
  .material-admin-unified-row { grid-template-columns: minmax(220px, 1fr) minmax(130px, 180px) auto; }
  .material-admin-unified-actions { grid-column: 3; grid-row: 1 / span 2; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .public-voice-browser { width: 100%; gap: 14px; }
  .public-voice-switcher { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .public-voice-switcher-button { flex: 0 0 auto; }
.material-admin-unified-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; min-height: 70px; }
  .material-admin-unified-main { grid-column: 1 / -1; }
  .material-admin-unified-main { grid-template-columns: 24px 36px minmax(0, 1fr); }
  .material-admin-unified-assignment { grid-column: 1; }
  .material-admin-unified-status { grid-column: 2; grid-row: 2; }
  .material-admin-unified-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  .material-admin-menu-panel { right: auto; left: 0; }
  .material-admin-restore-editor { grid-template-columns: minmax(0, 1fr); }
  .material-admin-role-editor { grid-template-columns: minmax(0, 1fr); }
  .material-bulk-bar { left: 10px; bottom: 88px; width: calc(100vw - 20px); flex-wrap: wrap; }
  .material-bulk-actions, .material-bulk-editor { flex-wrap: wrap; }
  .material-bulk-bar select, .material-bulk-bar .button { flex: 0 1 auto; }
  .material-admin-group-editor select { width: min(100%, 320px); }
  .work-voice-group-create .work-voice-group-form { grid-template-columns: 1fr; }
}

/* Virtual work-variant merge workflow. */
.work-merge-page { max-width: 940px; margin: 0 auto; display: grid; gap: 16px; }
.work-merge-card, .work-merge-preview, .work-merge-current-group { display: grid; gap: 16px; }
.work-merge-search, .work-merge-form { display: grid; gap: 10px; }
.work-merge-search label, .work-merge-form > label { color: #475467; font-size: 12px; font-weight: 750; }
.inline-form-row { display: flex; gap: 8px; align-items: center; }
.inline-form-row input { flex: 1; min-width: 0; }
.work-merge-candidates { display: grid; gap: 7px; max-height: 390px; overflow: auto; padding: 2px; }
.work-merge-candidate { display: flex; gap: 9px; align-items: center; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.work-merge-candidate:hover, .work-merge-candidate:focus-within { border-color: var(--green); background: #fbfdfb; }
.work-merge-candidate input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; margin: 0; flex: 0 0 15px; accent-color: var(--green); }
.work-merge-candidate span { display: grid; gap: 2px; min-width: 0; }
.work-merge-candidate small, .work-merge-member-list small { color: #667085; }
.work-merge-current { border-color: #94b8a1; background: #f5faf6; }
.work-merge-member-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.library-merge-note { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.material-variant-badge { white-space: normal; }
.work-variants-panel { display: grid; gap: 10px; margin: 0 auto 18px; width: min(100% - 32px, 1180px); padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.work-variants-panel--compact { width: 100%; margin: 18px 0 0; padding: 9px 12px; gap: 8px; }
.work-variants-panel--compact summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 650; }
.work-variants-heading h2 { margin: 0; font-size: 16px; }
.work-variants-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 7px 18px; margin: 0; padding: 0; list-style: none; }
.work-variants-list li { display: grid; gap: 2px; min-width: 0; }
.work-variants-list a { color: var(--text); font-weight: 650; }
.work-variants-list small { color: var(--muted); font-size: 11px; }
.work-danger-zone { margin-top: 16px; padding: 10px 12px; border: 1px solid #e5b5b5; border-radius: 7px; background: #fffafa; }
.work-danger-zone summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #9f2f2f; font-size: 12px; font-weight: 700; }
.work-danger-zone p { margin: 8px 0; }
.work-editor-technical-actions { margin-top: 16px; }
.work-editor-section-title { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
.work-technical-actions-grid { display: grid; gap: 8px; margin-top: 12px; }
.work-technical-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.work-technical-action > div:first-child { display: grid; gap: 3px; min-width: 0; }
.work-technical-action strong { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.work-technical-action--sub { margin-left: 18px; background: #fbfcfd; }
.work-technical-danger { margin-top: 4px; }
.transfer-field-list { display: grid; gap: 8px; margin: 10px 0 16px; }
.transfer-field-row { display: grid; gap: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.transfer-field-row span { display: grid; gap: 2px; }
.transfer-field-row small { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.transfer-choice-group { display: flex; flex-wrap: wrap; gap: 6px; }
.transfer-choice-group label { position: relative; cursor: pointer; }
.transfer-choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.transfer-choice-group span { display: block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.transfer-choice-group label:has(input:checked) span { border-color: var(--green); background: #f1f8f3; color: var(--text); font-weight: 650; }
.transfer-choice-group label:focus-within span { outline: 2px solid var(--green); outline-offset: 1px; }
.work-text-sections { display: grid; gap: 16px; }
.work-text-section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.work-text-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.work-text-section h3 { margin: 0; font-size: 15px; }
.work-text-measures { color: var(--muted); font-size: 12px; }
.work-text-parallel, .work-text-editor-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-text-parallel-no-transliteration { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-text-language-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.work-text-parallel p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.work-text-editor { display: grid; gap: 12px; }
.work-text-editor-rows { display: grid; gap: 12px; }
.work-text-editor-row { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.work-text-editor-row-head { display: grid; grid-template-columns: minmax(160px, .9fr) minmax(190px, 1.2fr) 90px minmax(130px, .8fr) auto auto; align-items: end; gap: 12px; }
.work-text-row-actions { display: inline-flex; align-items: center; gap: 4px; }
.work-text-editor-row-head label, .work-text-editor-columns label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.work-text-editor-row-head select { min-width: 180px; }
.work-text-editor-columns textarea { width: 100%; resize: vertical; }
@media (max-width: 980px) {
  .work-text-editor-row-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-text-row-actions { justify-self: start; }
}
@media (max-width: 720px) {
  .work-text-parallel, .work-text-parallel-no-transliteration, .work-text-editor-columns, .work-text-editor-row-head { grid-template-columns: 1fr; }
}
.work-merge-member-list li.is-primary { font-weight: 700; }
.work-merge-confirmation { padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fafafa; }
.work-merge-confirmation label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.work-merge-confirmation input { margin-top: 3px; }
@media (max-width: 680px) {
  .inline-form-row { align-items: stretch; flex-direction: column; }
  .inline-form-row .button { width: 100%; }
}

/* Structured work performance ensemble editor. */
.work-performance-ensemble {
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.work-performance-ensemble-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.work-performance-ensemble-heading > div { display: grid; gap: 4px; }
.work-performance-ensemble-heading > div > span { color: #344054; font-size: 14px; font-weight: 800; }
.work-performance-variant-list { display: grid; gap: 14px; }
.work-performance-variant {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  background: #f9fbfa;
}
.work-performance-variant-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}
.work-performance-variant-title,
.work-performance-variant-note,
.work-performance-group label,
.work-performance-slot label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}
.work-performance-variant-title input,
.work-performance-variant-note input,
.work-performance-group input,
.work-performance-group select,
.work-performance-slot input,
.work-performance-slot select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}
.work-performance-check {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px !important;
  min-height: 38px;
  white-space: nowrap;
  color: #475467 !important;
  font-size: 12px !important;
}
.work-performance-check input { width: 16px; height: 16px; margin: 0; }
.work-performance-accompaniment-flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  background: #fff;
  color: #344054;
}
.work-performance-accompaniment-flag input { width: 17px; height: 17px; margin: 2px 0 0; }
.work-performance-accompaniment-flag > span { display: grid; gap: 3px; }
.work-performance-accompaniment-flag strong { font-size: 13px; }
.work-performance-accompaniment-flag small { color: var(--muted); font-weight: 500; }
.work-performance-item-list,
.work-performance-group-slot-list { display: grid; gap: 8px; }
.work-performance-logic-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.work-performance-logic-connector::before,
.work-performance-logic-connector::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #e4e7ec;
}
.work-performance-logic-connector.is-root { margin: -2px 8px; }
.work-performance-group[data-group-operator="one_of"] .work-performance-logic-connector.is-group-member { color: #5274b7; }
.work-performance-group[data-group-operator="any_of"] .work-performance-logic-connector.is-group-member { color: #9a681d; }
.work-performance-group[data-group-operator="all_of"] .work-performance-logic-connector.is-group-member { color: #38794f; }
.work-performance-slot {
  display: grid;
  grid-template-columns: 175px minmax(170px, 1fr) 86px auto minmax(130px, .7fr) minmax(150px, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e6ece8;
  border-radius: 10px;
  background: #fff;
}
.work-performance-slot-optional { align-self: end; }
.work-performance-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfdcf5;
  border-left: 4px solid #6d8fd5;
  border-radius: 11px;
  background: #f7f9fe;
}
.work-performance-group[data-group-operator="any_of"] {
  border-color: #ead6ae;
  border-left-color: #d89b33;
  background: #fffbf3;
}
.work-performance-group[data-group-operator="all_of"] {
  border-color: #cfe2d4;
  border-left-color: #4c9b66;
  background: #f6fbf7;
}
.work-performance-group-head {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) auto minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.work-performance-group-title small { font-weight: 500; }
.work-performance-group-explanation {
  margin: -2px 0 0;
  color: #52647f;
  font-size: 12px;
}
.work-performance-group-note { max-width: 620px; }
.work-performance-group-slot-list {
  padding-left: 14px;
  border-left: 2px solid rgba(82, 100, 127, .18);
}
.work-performance-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.work-performance-row-actions .icon-button { width: 34px; height: 34px; }
.work-performance-row-actions .icon-button:disabled { opacity: .35; cursor: not-allowed; }
.work-performance-add-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.work-performance-add-actions > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.work-performance-add-actions.compact { padding-top: 2px; }
.work-performance-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #cbd8d0;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.work-performance-empty strong { color: #475467; }

@media (max-width: 1240px) {
  .work-performance-slot {
    grid-template-columns: 165px minmax(180px, 1fr) 86px auto;
  }
  .work-performance-slot-divisi,
  .work-performance-slot-note { grid-column: span 2; }
  .work-performance-group-head { grid-template-columns: 1fr 1fr; }
  .work-performance-group-title { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .work-performance-ensemble-heading { display: grid; }
  .work-performance-variant-head { grid-template-columns: 1fr 1fr; }
  .work-performance-variant-title { grid-column: 1 / -1; }
  .work-performance-group-head,
  .work-performance-slot { grid-template-columns: 1fr 1fr; }
  .work-performance-slot-descriptor,
  .work-performance-slot-divisi,
  .work-performance-slot-note,
  .work-performance-group-title { grid-column: 1 / -1; }
  .work-performance-row-actions { justify-content: flex-start; }
  .work-performance-group-slot-list { padding-left: 7px; }
}


/* P12-A1: Authors / Our people domain presentation */
.members-domain-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.members-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.members-tabs .members-tab span { margin-left: 5px; color: var(--muted); font-size: 12px; }
.members-tab.active span { color: inherit; }
.member-profile-description { margin: 2px 0 0; color: #475467; line-height: 1.45; max-width: 76ch; }
.member-profile-description--detail { color: var(--text); white-space: pre-line; }
@media (max-width: 1100px) { .members-domain-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .members-domain-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .members-heading { display: grid; } }

/* CUSTOS P12-A2: factual performance history and explicit program domains */
.program-domain-notice {
  margin: 0 0 20px;
  padding: 18px 20px;
}
.program-domain-notice h2 {
  margin: 0 0 8px;
}
.program-domain-notice p {
  margin: 6px 0;
}
.program-domain-description {
  max-width: 72ch;
}
.program-kind-line {
  margin-bottom: 8px;
}
.status-badge.neutral {
  background: var(--surface-muted, #f1f3f5);
  color: var(--text-muted, #5f6670);
}
.performance-history {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border, #dfe3e8);
}
.performance-history-head h2 {
  margin-bottom: 4px;
}
.performance-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.performance-history-stats > div {
  padding: 12px 14px;
  border: 1px solid var(--border, #dfe3e8);
  border-radius: 12px;
  background: var(--surface-muted, #f7f8fa);
}
.performance-history-stats b,
.performance-history-stats small {
  display: block;
}
.performance-history-stats b {
  font-size: 1.3rem;
}
.performance-setlist {
  display: grid;
  gap: 12px;
}
.performance-setlist-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border, #dfe3e8);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.performance-setlist-item.needs-review {
  border-style: dashed;
}
.performance-setlist-position {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.performance-setlist-main h3 {
  margin: 0 0 4px;
}
.performance-item-states,
.performance-contribution-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.performance-item-contributions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.performance-item-contributions h4,
.performance-general-contributions h3 {
  margin: 0 0 8px;
}
.performance-contribution {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted, #f7f8fa);
}
.performance-contribution-main b,
.performance-contribution-main span,
.performance-contribution-main small {
  display: block;
}
.performance-general-contributions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #dfe3e8);
}
.performance-review-summary {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-muted, #f7f8fa);
}
@media (max-width: 860px) {
  .performance-history-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .performance-setlist-item {
    grid-template-columns: 1fr;
  }
  .performance-contribution {
    flex-direction: column;
  }
}


/* CUSTOS P12-A3 complete performance catalog summary */
.performance-catalog-summary {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin: -.4rem 0 1.25rem;
  color: var(--muted, #667085);
}
.performance-catalog-summary strong { color: var(--text, #182230); }

/* CUSTOS P09R-A4 PERFORMANCE SLOT HISTORY START */
.p09r-a4-history{margin-top:1.5rem;padding:clamp(1rem,2vw,1.6rem);border:1px solid var(--border,#d9d7cf);border-radius:20px;background:var(--surface,#fff)}
.p09r-a4-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}
.p09r-a4-heading h2{margin:.15rem 0 0;font-size:clamp(1.25rem,2vw,1.7rem)}
.p09r-a4-eyebrow{margin:0;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:700;opacity:.62}
.p09r-a4-summary{margin:.25rem 0 0;max-width:34rem;text-align:right;font-size:.88rem;opacity:.7}
.p09r-a4-items{list-style:none;margin:0;padding:0;display:grid;gap:.9rem}
.p09r-a4-item{display:grid;grid-template-columns:2.35rem minmax(0,1fr);gap:.75rem;padding:1rem;border:1px solid var(--border,#dedbd2);border-radius:16px;background:var(--surface-soft,#faf9f5)}
.p09r-a4-item-number{display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:999px;background:var(--accent-soft,#e8efe8);font-weight:750}
.p09r-a4-title-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.p09r-a4-work-link,.p09r-a4-historical-title{font-size:1.08rem;font-weight:750;line-height:1.25;margin:0}
.p09r-a4-source-title,.p09r-a4-item-note{margin:.35rem 0 0;font-size:.9rem;opacity:.72}
.p09r-a4-source-title span{font-weight:650}
.p09r-a4-kind{flex:none;border-radius:999px;padding:.25rem .55rem;background:var(--surface,#fff);font-size:.72rem;opacity:.72}
.p09r-a4-variants{display:grid;gap:.7rem;margin-top:.85rem}
.p09r-a4-variant{padding:.8rem;border-left:3px solid var(--border-strong,#bbb8ad);background:var(--surface,#fff);border-radius:0 12px 12px 0}
.p09r-a4-variant.is-primary{border-left-color:var(--accent,#68866d)}
.p09r-a4-variant-head,.p09r-a4-group-head,.p09r-a4-slot-label{display:flex;gap:.55rem;align-items:baseline;flex-wrap:wrap}
.p09r-a4-variant-head h4,.p09r-a4-group-head strong{margin:0;font-size:.92rem}
.p09r-a4-variant-head span,.p09r-a4-group-head span,.p09r-a4-slot-label span{font-size:.72rem;opacity:.62}
.p09r-a4-variant-note,.p09r-a4-slot-note,.p09r-a4-group>p{font-size:.82rem;opacity:.68;margin:.3rem 0}
.p09r-a4-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.5rem;margin-top:.55rem}
.p09r-a4-slot{padding:.65rem .7rem;border:1px solid var(--border,#ddd9cf);border-radius:11px;background:var(--surface-soft,#faf9f5)}
.p09r-a4-slot.has-assignment{box-shadow:inset 3px 0 0 var(--accent,#68866d)}
.p09r-a4-slot-label strong{font-size:.84rem}
.p09r-a4-assignees,.p09r-a4-historical-performers ul,.p09r-a4-general-performers ul{list-style:none;padding:0;margin:.45rem 0 0;display:grid;gap:.3rem}
.p09r-a4-assignees li,.p09r-a4-historical-performers li,.p09r-a4-general-performers li{display:flex;gap:.45rem;align-items:baseline;flex-wrap:wrap;font-size:.9rem}
.p09r-a4-assignees small,.p09r-a4-historical-performers small,.p09r-a4-general-performers small{opacity:.62}
.p09r-a4-group{margin-top:.6rem;padding:.65rem;border:1px dashed var(--border-strong,#bdb9ad);border-radius:12px}
.p09r-a4-historical-performers,.p09r-a4-general-performers{margin-top:.8rem;padding:.7rem .8rem;border-radius:12px;background:var(--accent-soft,#eef2eb)}
.p09r-a4-historical-performers h4,.p09r-a4-general-performers h3{margin:0;font-size:.88rem}
.p09r-a4-technical{margin-top:.75rem;border-top:1px solid var(--border,#ddd9cf);padding-top:.6rem;font-size:.8rem}
.p09r-a4-technical summary{cursor:pointer;font-weight:650;opacity:.72}
.p09r-a4-technical dl{display:grid;gap:.25rem}.p09r-a4-technical dl div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:.5rem}.p09r-a4-technical dt{font-weight:650}.p09r-a4-technical dd{margin:0;overflow-wrap:anywhere}
.p09r-a4-source-record{margin-top:.55rem;padding:.55rem;border-radius:9px;background:var(--surface,#fff)}
.p09r-a4-source-record span,.p09r-a4-source-record small{display:block;opacity:.64}.p09r-a4-source-record p{white-space:pre-wrap;margin:.35rem 0}
.p09r-a4-technical-list{padding-left:1.1rem;margin:.5rem 0 0}
@media(max-width:720px){.p09r-a4-heading,.p09r-a4-title-row{display:block}.p09r-a4-summary{text-align:left}.p09r-a4-kind{display:inline-block;margin-top:.45rem}.p09r-a4-item{grid-template-columns:1.9rem minmax(0,1fr);padding:.8rem}.p09r-a4-item-number{width:1.8rem;height:1.8rem}.p09r-a4-slots{grid-template-columns:1fr}}
/* CUSTOS P09R-A4 PERFORMANCE SLOT HISTORY END */

/* CUSTOS P09R-A5 REVIEW UI START */
.p09r-a5-history{margin-top:1.25rem}.p09r-a5-heading{display:flex;justify-content:space-between;gap:1.5rem;align-items:flex-start;margin-bottom:1rem}.p09r-a5-heading h2{margin:.15rem 0 .35rem}.p09r-a5-heading p{margin:0;color:var(--muted,#64706a)}.p09r-a5-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:750;color:var(--accent,#247c4c)!important}.p09r-a5-summary{display:grid;grid-template-columns:auto auto;gap:.1rem .55rem;min-width:14rem;padding:.75rem 1rem;border:1px solid #dce7df;border-radius:14px;background:#f7faf8}.p09r-a5-summary strong{text-align:right}.p09r-a5-summary span{font-size:.82rem;color:#68736d}.p09r-a5-filters{display:flex;gap:.5rem;flex-wrap:wrap;position:sticky;top:5.25rem;z-index:3;padding:.55rem 0;background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}.p09r-a5-filters button{border:1px solid #d8e3dc;border-radius:999px;background:#fff;padding:.45rem .8rem;font:inherit;font-size:.85rem;cursor:pointer}.p09r-a5-filters button.is-active{background:#176b3b;color:#fff;border-color:#176b3b}.p09r-a5-filters button span{display:inline-flex;min-width:1.4rem;justify-content:center;margin-left:.3rem;padding:.05rem .35rem;border-radius:999px;background:rgba(0,0,0,.09)}.p09r-a5-items{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}.p09r-a5-item{display:grid;grid-template-columns:2.2rem 1fr;gap:.75rem;padding:1rem;border:1px solid #dbe5de;border-radius:16px;background:#fff}.p09r-a5-item.needs-review{border-left:4px solid #c88a1a}.p09r-a5-number{width:2rem;height:2rem;border-radius:999px;display:grid;place-items:center;background:#eff5f0;font-weight:750}.p09r-a5-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.p09r-a5-title-row h3{margin:0}.p09r-a5-work-link{font-size:1.04rem;font-weight:780;color:inherit;text-decoration:none}.p09r-a5-work-link:hover{text-decoration:underline}.p09r-a5-kind{font-size:.72rem;color:#66716b;background:#f4f7f5;border-radius:999px;padding:.25rem .5rem;white-space:nowrap}.p09r-a5-performers{margin-top:.75rem;padding:.8rem .9rem;background:#f5f8f5;border-radius:13px}.p09r-a5-performers h4{margin:0 0 .55rem;font-size:.85rem}.p09r-a5-performers ul{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}.p09r-a5-performers li{display:grid;grid-template-columns:minmax(8rem,13rem) minmax(10rem,1fr) auto;gap:.65rem;align-items:center}.p09r-a5-role{color:#505d56;font-size:.83rem}.p09r-a5-performers a,.p09r-a5-performers strong{font-weight:700}.p09r-a5-state{display:inline-flex;width:max-content;border-radius:999px;padding:.2rem .48rem;font-size:.72rem;font-weight:700}.p09r-a5-state.is-confirmed{background:#dff1e5;color:#176437}.p09r-a5-state.is-review{background:#fff0ce;color:#7b5310}.p09r-a5-cast,.p09r-a5-technical{margin-top:.7rem;border-top:1px solid #e1e7e3;padding-top:.55rem}.p09r-a5-cast summary,.p09r-a5-technical summary{cursor:pointer;color:#59655f;font-size:.8rem;font-weight:700}.p09r-a5-cast section{margin:.65rem 0}.p09r-a5-cast h5{margin:.2rem 0 .4rem}.p09r-a5-cast-list{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0;padding:0}.p09r-a5-cast-list li{padding:.28rem .48rem;border:1px solid #dce4df;border-radius:8px;font-size:.76rem;color:#5c6861}.p09r-a5-cast-list li.has-assignment{border-color:#7caf8d;background:#edf7f0;color:#245b36}.p09r-a5-cast-group{margin:.55rem 0}.p09r-a5-cast-group>span{margin-left:.4rem;color:#6b756f;font-size:.75rem}.p09r-a5-technical{font-size:.78rem}.p09r-a5-technical dl{display:grid;gap:.3rem}.p09r-a5-technical dl div{display:grid;grid-template-columns:8rem 1fr;gap:.5rem}.p09r-a5-technical dt{font-weight:700}.p09r-a5-technical dd{margin:0;overflow-wrap:anywhere}.p09r-a5-technical article{margin:.55rem 0;padding:.55rem .65rem;background:#f7f8f7;border-radius:8px}.p09r-a5-technical article>*{display:block;margin:.12rem 0}.p09r-a5-technical code{overflow-wrap:anywhere}.p09r-a5-technical-list{padding-left:1.1rem}.p09r-a5-item[hidden]{display:none!important}@media(max-width:800px){.p09r-a5-heading{display:block}.p09r-a5-summary{margin-top:.75rem}.p09r-a5-filters{top:4rem}.p09r-a5-item{grid-template-columns:1fr}.p09r-a5-number{display:none}.p09r-a5-performers li{grid-template-columns:1fr}.p09r-a5-state{margin-top:.1rem}}
/* CUSTOS P09R-A5 REVIEW UI END */

/* CUSTOS U01 UI FOUNDATION START */
:root {
  --u01-ink: #17211c;
  --u01-cream: #f5f2eb;
  --u01-cream-2: #ece6da;
  --u01-sage: #dce9df;
  --u01-shadow: 0 14px 42px rgba(32, 45, 37, .08);
}
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: linear-gradient(180deg, #f8faf8 0, #f4f5f1 100%); }
img { max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: var(--text); color: #fff; }
.skip-link:focus { top: 12px; }
.mobile-nav-toggle, .sidebar-mobile-head, .sidebar-backdrop, .sidebar-foot { display: none; }
.logo { font-family: Georgia, serif; font-size: 25px; font-weight: 800; }
.brand { min-width: 250px; }
.brand-title { letter-spacing: .12em; }
.global-search button { border: 0; border-radius: 9px; padding: 8px 12px; background: var(--green-soft); color: var(--green-dark); font-weight: 750; }
.profile-card { display: flex; align-items: center; gap: 10px; }
.profile-card small { display: block; color: var(--muted); margin-top: 2px; }
.content { width: 100%; max-width: 1700px; justify-self: center; }
.minimal-content { grid-column: 1 / -1; grid-row: 1 / -1; max-width: 1500px; padding-top: 42px; }
.eyebrow { margin: 0 0 7px; color: var(--green-dark); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ui-page-heading, .compact-heading, .admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.ui-page-heading > div, .compact-heading > div, .admin-header > div { max-width: 820px; }
.ui-page-heading h1, .admin-header h1 { font-size: clamp(34px, 4vw, 54px); }
.compact-heading h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); }
.admin-header { margin-bottom: 22px; }
.admin-header h1 { margin: 0 0 8px; }
.admin-header p { color: var(--muted); }
.ui-summary-grid { margin: 0 0 22px; }
.ui-summary-grid .stat-card { box-shadow: var(--u01-shadow); }
.sticky-filter-card { position: sticky; top: calc(var(--topbar) + 12px); z-index: 8; padding: 14px; margin-bottom: 22px; }
.responsive-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.responsive-filter label { display: grid; gap: 6px; min-width: 150px; color: #475467; font-size: 12px; font-weight: 750; }
.responsive-filter .grow { flex: 1 1 280px; }
.scroll-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.scroll-tabs .members-tab { flex: 0 0 auto; }
.section-block { margin: 28px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 2.3vw, 34px); }
.section-heading > span { color: var(--muted); }
.member-summary-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-bottom: 20px; }
.ui-members-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.member-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-profile-tile { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 15px; align-items: center; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: .16s ease; }
.member-profile-tile:hover { transform: translateY(-2px); border-color: #b9d5c3; box-shadow: 0 12px 30px rgba(22, 130, 70, .08); }
.member-tile-avatar { width: 78px; height: 88px; overflow: hidden; display: grid; place-items: center; border-radius: 13px; background: var(--u01-cream-2); color: #645d52; font-size: 24px; font-weight: 850; }
.member-tile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-tile-copy { min-width: 0; }
.member-tile-copy p { color: var(--muted); margin: 7px 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-tile-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.member-tile-title h3 { margin: 0; font-size: 17px; }
.member-tile-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #667085; font-size: 12px; }
.tile-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); }
.member-profile-hero { display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; align-items: stretch; gap: 28px; padding: 24px; margin-bottom: 26px; background: linear-gradient(135deg, #fff 0%, #f0f6f1 100%); }
.member-profile-photo { min-height: 250px; overflow: hidden; display: grid; place-items: center; border-radius: 18px; background: var(--u01-cream-2); font-size: 52px; font-weight: 850; color: #655f54; }
.member-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-profile-intro { align-self: center; }
.member-profile-intro h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 62px); line-height: .98; }
.member-lead { max-width: 65ch; color: #475467; font-size: 17px; line-height: 1.55; }
.profile-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.member-hero-facts { margin: 0; display: grid; align-content: center; gap: 10px; }
.member-hero-facts div { padding: 12px; border-radius: 13px; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.member-hero-facts dt { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.member-hero-facts dd { margin: 5px 0 0; font-weight: 800; }
.entity-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 300px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 14px; }
.entity-carousel > * { scroll-snap-align: start; }
.compact-carousel { grid-auto-columns: minmax(280px, 390px); }
.work-performance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 240px)); justify-content: start; align-items: start; gap: 14px; width: 100%; max-width: 100%; min-width: 0; }
.work-performance-grid .work-event-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); width: 100%; min-width: 0; }
.work-performance-grid .poster-card-media { width: 72px; height: 96px; aspect-ratio: auto; }
.work-performance-grid .poster-card-media img { object-fit: contain; background: var(--u01-cream); }
.work-performance-grid .poster-card-body { min-width: 0; padding: 10px 11px; }
.work-performance-grid .poster-card-body h3 { margin: 4px 0 3px; font-size: 14px; line-height: 1.22; overflow-wrap: anywhere; }
.work-performance-grid .poster-card-body p { overflow-wrap: anywhere; }
.work-performance-grid .poster-fallback { gap: 5px; padding: 5px; background: var(--surface-soft); color: var(--muted); }
.work-performance-grid .poster-fallback .ui-icon { width: 22px; height: 22px; }
.work-performance-grid .poster-fallback span { font-family: inherit; font-size: 8px; font-weight: 700; letter-spacing: 0; text-align: center; }
.poster-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.poster-card-media { aspect-ratio: 4 / 5; display: block; overflow: hidden; background: var(--u01-cream); }
.poster-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.poster-card:hover .poster-card-media img { transform: scale(1.025); }
.poster-card-body { padding: 14px; }
.poster-card-body small { color: var(--green-dark); font-weight: 750; }
.poster-card-body h3 { margin: 6px 0; font-size: 17px; line-height: 1.25; }
.poster-card-body p { margin: 0; color: var(--muted); font-size: 12px; }
.poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; background: radial-gradient(circle at 30% 20%, #e6efe8, #d5dfd8 48%, #c7d0ca); color: #4b5c50; }
.poster-fallback .ui-icon { width: 46px; height: 46px; }
.poster-fallback span { font-family: Georgia, serif; font-weight: 850; letter-spacing: .12em; }
.poster-fallback.large { min-height: 360px; }
.program-mini-card { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.program-mini-year { width: 62px; height: 76px; display: grid; place-items: center; border-radius: 12px; background: #263e32; color: #fff; font-family: Georgia, serif; font-weight: 800; }
.program-mini-card h3 { margin: 3px 0; }
.program-mini-card p, .program-mini-card small { margin: 0; color: var(--muted); }
.program-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.program-catalog-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--u01-shadow); min-width: 0; }
.program-cover { min-height: 180px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 8px; padding: 20px; color: #fff; background: linear-gradient(145deg, #183a2b, #496957); }
.program-cover-year { align-self: start; font-family: Georgia, serif; font-size: 42px; }
.program-cover-mark { align-self: start; letter-spacing: .14em; font-weight: 850; }
.program-cover small { grid-column: 1 / -1; opacity: .82; }
.program-catalog-body { padding: 17px; min-width: 0; }
.program-card-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.program-catalog-body h3 { margin: 12px 0 10px; font-size: 22px; line-height: 1.2; }
.mini-meta-line { color: var(--muted); }
.program-progress { height: 7px; margin: 15px 0 10px; overflow: hidden; border-radius: 99px; background: #edf1ee; }
.program-progress span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2d8b52, #8ec49f); }
.program-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 11px; color: var(--muted); }
.program-card-stats span { min-width: 0; }
.program-card-stats b { display: block; color: var(--text); font-size: 16px; }
.program-preview-list { display: grid; gap: 5px; margin-top: 13px; }
.program-preview-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475467; font-size: 12px; }
.program-card-footer { display: flex; gap: 8px; padding: 0 17px 17px; }
.performance-feature-card { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 28px; padding: 20px; margin-bottom: 30px; }
.performance-feature-media { overflow: hidden; border-radius: 15px; min-height: 360px; background: var(--u01-cream); }
.performance-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.performance-feature-copy { align-self: center; padding: 20px; }
.performance-feature-copy h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; }
.performance-feature-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--green-dark); font-weight: 750; }
.performance-feature-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.performance-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.performance-poster-card .poster-card-media { aspect-ratio: 4 / 5; }
.performance-poster-card.past { box-shadow: none; }
.inline-filter label { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.inline-filter select { width: auto; min-width: 120px; }
.pagination { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.pagination-pages { display: flex; gap: 5px; align-items: center; }
.pagination-page, .pagination-edge { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pagination-page.active { border-color: #b9d5c3; background: var(--green-soft); color: var(--green-dark); font-weight: 850; }
.pagination-edge.disabled { opacity: .45; pointer-events: none; }
.pagination-summary { width: 100%; text-align: center; color: var(--muted); font-size: 12px; }
.role-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-card { padding: 20px; }
.role-card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--green-soft); color: var(--green-dark); }
.role-card h3 { margin: 14px 0 7px; }
.role-card p { color: var(--muted); min-height: 40px; }
.role-card ul, .feature-list, .clean-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.role-card li, .feature-list li { display: flex; gap: 8px; align-items: center; }
.role-check { width: 15px; color: var(--green); }
.access-model-note { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px; margin-top: 24px; }
.admin-member-list { display: grid; gap: 12px; }
.admin-member-card { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 18px; align-items: center; padding: 15px; }
.admin-member-identity { display: flex; align-items: center; gap: 12px; }
.admin-member-identity h3 { margin: 0 0 4px; }
.admin-member-identity p { margin: 0; color: var(--muted); }
.admin-access-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(190px, 1fr) auto; align-items: end; gap: 10px; }
.admin-access-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }

.access-editor-section { margin-top: 24px; }
.access-directory-heading { align-items: end; }
.access-directory-count { color: var(--muted); font-size: 12px; white-space: nowrap; }

.access-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
  gap: 8px;
  align-items: end;
  margin: 0 0 10px;
}
.access-directory-search { position: relative; min-width: 0; }
.access-directory-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.access-directory-search-icon .ui-icon { width: 16px; height: 16px; }
.access-directory-search input {
  height: 38px;
  padding-left: 36px;
  border-radius: 9px;
  font-size: 13px;
}
.access-directory-filter { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.access-directory-filter select { height: 38px; border-radius: 9px; padding-inline: 10px; font-size: 13px; }

.access-directory {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.access-person-row { margin: 0; border-bottom: 1px solid var(--line); background: #fff; }
.access-person-row:last-of-type { border-bottom: 0; }
.access-person-row[hidden] { display: none; }
.access-person-row[open] { background: var(--surface-soft); }
.access-person-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(210px, .9fr) minmax(150px, .72fr) minmax(170px, .8fr) 28px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 7px 10px;
  list-style: none;
  cursor: pointer;
}
.access-person-summary::-webkit-details-marker { display: none; }
.access-person-summary:hover { background: #fbfdfb; }
.access-person-summary:focus-visible { outline: 2px solid rgba(22,130,70,.35); outline-offset: -2px; }
.access-person-identity { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 9px; align-items: center; min-width: 0; }
.access-person-avatar { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; font-size: 12px; }
.access-person-copy { min-width: 0; }
.access-person-copy h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.25; }
.access-person-copy p { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.access-person-state { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.access-person-state .status-badge { margin: 0; }
.access-person-role { display: grid; gap: 2px; min-width: 0; }
.access-person-role strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--text); }
.access-person-role small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.access-person-label { color: var(--muted); font-size: 10px; line-height: 1.2; }
.access-person-toggle { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); transition: transform .16s ease; }
.access-person-toggle .ui-icon { width: 16px; height: 16px; }
.access-person-row[open] .access-person-toggle { transform: rotate(180deg); }

.access-person-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  padding: 0 10px 10px 55px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.access-editor-field {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px 8px;
  align-items: end;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}
.access-editor-field:nth-child(3n) { border-right: 0; }
.access-editor-field label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.access-editor-field select { height: 36px; min-width: 0; padding-inline: 9px; border-radius: 8px; font-size: 12px; }
.access-editor-field .button { min-height: 34px; width: auto; padding: 6px 10px; white-space: nowrap; }
.access-editor-admin-field { grid-column: 1 / -1; grid-template-columns: minmax(120px,1fr) minmax(120px,1fr) auto; }
.access-editor-admin-heading { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.access-editor-admin-heading small { color: var(--muted); font-size: 10px; }
.access-editor-readonly { align-content: center; color: var(--muted); }
.access-editor-readonly p { margin: 3px 0 0; font-size: 12px; }
.field-caption { color: var(--text); font-size: 11px; font-weight: 700; }
.access-editor-readonly-grid { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.access-editor-readonly-grid .status-badge { margin: 0; }

.access-directory-empty { padding: 24px 14px; text-align: center; color: var(--muted); font-size: 12px; }

.access-role-matrix-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}
.access-role-matrix-disclosure > summary::-webkit-details-marker { display: none; }
.access-role-matrix-disclosure > summary h2 { margin: 0; }
.access-role-matrix-disclosure > summary .eyebrow { margin: 0 0 4px; }
.access-role-matrix-toggle { display: block; margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 600; }
.access-role-matrix-disclosure:not([open]) > .role-card-grid { display: none; }
.access-role-matrix-disclosure[open] > .role-card-grid { display: grid; }
.notice { margin: 12px 0; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); }
.notice.success { background: var(--green-soft); color: var(--green-dark); }
.notice.error { background: var(--red-soft); color: #9b1c1c; }
.mockup-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #fff2d7; color: #8a5a00; font-size: 12px; font-weight: 850; }
.ops-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; }
.ops-main, .ops-side { padding: 20px; }
.rehearsal-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rehearsal-date { display: grid; place-items: center; min-height: 68px; padding: 8px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); }
.rehearsal-date b { font-size: 25px; }
.rehearsal-date span { font-size: 10px; text-align: center; }
.rehearsal-row h3 { margin: 0 0 4px; }
.rehearsal-row p { margin: 0; color: var(--muted); }
.attendance-preview { display: flex; flex-wrap: wrap; gap: 5px; max-width: 260px; }
.attendance-state { padding: 5px 7px; border-radius: 8px; background: #f3f5f4; font-size: 11px; }
.attendance-state.present { background: var(--green-soft); color: var(--green-dark); }
.attendance-state.late { background: #fff2d7; color: #8a5a00; }
.attendance-state.absent { background: var(--red-soft); color: #9b1c1c; }
.donut-mock { width: 165px; aspect-ratio: 1; margin: 28px auto; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle, #fff 54%, transparent 55%), conic-gradient(#92bea0 0 0%, #e8ede9 0 100%); }
.donut-mock strong { font-size: 28px; }
.donut-mock span { color: var(--muted); }
.clean-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.costume-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.costume-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.costume-card h3 { margin: 4px 0; }
.costume-card p { margin: 0; color: var(--muted); }
.costume-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.costume-card dl div { padding: 9px; border-radius: 9px; background: #f7f9f8; }
.costume-card dt { color: var(--muted); font-size: 10px; }
.costume-card dd { margin: 4px 0 0; font-weight: 750; }
.costume-card .button { grid-column: 1 / -1; }
.planning-board { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.planning-events, .planning-workspace { padding: 20px; }
.planning-event { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.planning-event small, .planning-event span { color: var(--muted); }
.planning-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 16px 0 20px; }
.planning-progress:before { content: ''; grid-column: 1; grid-row: 1; height: 9px; border-radius: 99px; background: linear-gradient(90deg, #5ba474 0 58%, #edf1ee 58%); }
.planning-progress span { display: none; }
.planning-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.planning-column { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; }
.planning-column h3 { margin: 0 0 12px; }
.planning-task { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; color: #475467; }
.planning-task input { width: 16px; height: 16px; }
.ui-debug-panel { display: none; margin-top: 8px; padding: 9px; border-radius: 9px; background: #25282d; color: #e8edf2; font: 11px/1.4 ui-monospace, monospace; }
.ui-debug .ui-debug-panel { display: block; }
body:not(.ui-debug) .member-technical, body:not(.ui-debug) [data-technical], body:not(.ui-debug) .technical-note { display: none !important; }

@media (max-width: 1250px) {
  .program-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-card-grid { grid-template-columns: 1fr; }
  .role-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --topbar: 70px; }
  .app-shell { display: block; }
  .topbar { height: var(--topbar); padding: 9px 14px; gap: 12px; }
  .mobile-nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .brand { min-width: 0; }
  .brand .logo { width: 42px; height: 42px; border-radius: 11px; }
  .brand-title { font-size: 15px; }
  .brand-status { font-size: 10px; }
  .global-search { max-width: none; height: 44px; }
  .global-search button { display: none; }
  .profile-card > span:not(.avatar) { display: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(320px, 88vw); display: flex; transform: translateX(-104%); transition: transform .2s ease; background: #fff; box-shadow: 20px 0 50px rgba(16,24,40,.18); padding: 16px; }
  .sidebar-mobile-head, .sidebar-foot { display: flex; align-items: center; justify-content: space-between; }
  .sidebar-mobile-head { padding: 4px 4px 18px; }
  .sidebar-mobile-head button { border: 0; background: transparent; }
  .sidebar-foot { margin-top: auto; padding: 15px 8px 4px; border-top: 1px solid var(--line); }
  .sidebar-foot small { color: var(--muted); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 90; border: 0; background: rgba(9, 20, 14, .46); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  body.mobile-nav-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .content, .minimal-content { width: 100%; max-width: none; min-width: 0; padding: 24px 18px 36px; }
  .sticky-filter-card { top: calc(var(--topbar) + 7px); }
  .ui-members-layout, .member-profile-hero, .performance-feature-card, .ops-layout, .planning-board { grid-template-columns: 1fr; }
  .birthdays-aside { order: -1; }
  .member-profile-hero { gap: 18px; }
  .member-profile-photo { min-height: 330px; }
  .member-hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .performance-feature-media { min-height: 280px; max-height: 520px; }
  .admin-member-card { grid-template-columns: 1fr; }
  .access-directory-toolbar { grid-template-columns: minmax(0,1fr) 150px 150px; }
  .access-person-summary { grid-template-columns: minmax(220px,1fr) minmax(180px,.9fr) minmax(140px,.7fr) 28px; }
  .access-person-admin { display: none; }
  .access-person-editor { grid-template-columns: repeat(2,minmax(0,1fr)); padding-left: 10px; }
  .access-editor-field { border-right: 1px solid var(--line); }
  .access-editor-field:nth-child(3n) { border-right: 1px solid var(--line); }
  .access-editor-field:nth-child(2n) { border-right: 0; }
  .planning-events { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 13px; }
  .topbar { gap: 8px; }
  .brand .logo { display: none; }
  .brand-status { display: none; }
  .global-search { padding: 0 9px; }
  .global-search input { min-width: 0; }
  .top-actions { display: none; }
  .content, .minimal-content { padding: 19px 12px 30px; }
  .access-directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .access-directory-toolbar { grid-template-columns: 1fr 1fr; }
  .access-directory-search { grid-column: 1 / -1; }
  .access-person-summary { grid-template-columns: minmax(0,1fr) 28px; gap: 8px; min-height: 56px; padding: 8px 9px; }
  .access-person-state { grid-column: 1; margin-left: 45px; margin-top: -2px; }
  .access-person-role { display: none; }
  .access-person-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .access-person-editor { grid-template-columns: 1fr; padding: 0 9px 9px; }
  .access-editor-field,
  .access-editor-field:nth-child(2n),
  .access-editor-field:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .access-editor-field:last-child { border-bottom: 0; }
  .access-editor-admin-field { grid-template-columns: 1fr 1fr auto; }
  .ui-page-heading, .compact-heading, .admin-header, .section-heading, .access-model-note { display: grid; grid-template-columns: 1fr; align-items: start; }
  .ui-page-heading h1 { font-size: 36px; }
  .member-summary-grid, .stats-grid, .ui-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-width: 0; padding: 12px; grid-template-columns: 34px 1fr; }
  .stat-icon { width: 34px; height: 34px; }
  .sticky-filter-card { position: static; }
  .responsive-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .responsive-filter label, .responsive-filter .grow { min-width: 0; grid-column: 1 / -1; }
  .responsive-filter .button { width: 100%; }
  .members-tabs { padding-bottom: 4px; }
  .member-profile-tile { grid-template-columns: 62px minmax(0,1fr) auto; gap: 10px; padding: 11px; }
  .member-tile-avatar { width: 62px; height: 70px; }
  .member-tile-copy p { -webkit-line-clamp: 1; }
  .member-profile-hero { padding: 12px; }
  .member-profile-photo { min-height: 310px; }
  .member-profile-intro h1 { font-size: 40px; overflow-wrap: anywhere; }
  .member-hero-facts { grid-template-columns: 1fr; }
  .member-detail-grid { grid-template-columns: 1fr; }
  .entity-carousel { grid-auto-columns: 78vw; }
  .work-performance-grid { grid-template-columns: minmax(0, 240px); gap: 10px; }
  .work-performance-grid .work-event-card { grid-template-columns: 64px minmax(0, 1fr); }
  .work-performance-grid .poster-card-media { width: 64px; height: 85px; }
  .work-performance-grid .poster-card-body { padding: 9px 10px; }
  .work-performance-grid .poster-card-body small { font-size: 11px; }
  .work-performance-grid .poster-card-body h3 { font-size: 13px; line-height: 1.2; }
  .work-performance-grid .poster-card-body p { font-size: 11px; }
  .program-card-grid, .performance-grid-cards, .role-card-grid, .costume-grid, .planning-columns { grid-template-columns: 1fr; }
  .program-cover { min-height: 155px; }
  .performance-feature-card { padding: 11px; gap: 8px; }
  .performance-feature-copy { padding: 14px 6px 7px; }
  .performance-feature-copy h2 { font-size: 34px; }
  .performance-feature-media { min-height: 300px; }
  .performance-past-heading { align-items: stretch; }
  .inline-filter select { width: 100%; }
  .pagination-edge { font-size: 0; width: 40px; }
  .pagination-edge .ui-icon { font-size: initial; }
  .pagination-pages .pagination-page:nth-child(n+6) { display: none; }
  .admin-tabs { margin-left: -12px; margin-right: -12px; padding-left: 12px; }
  .admin-access-form { grid-template-columns: 1fr; }
  .rehearsal-row { grid-template-columns: 64px minmax(0, 1fr); }
  .attendance-preview, .rehearsal-row > .button { grid-column: 1 / -1; }
  .costume-card dl { grid-template-columns: 1fr; }
  .table-card, .catalog-table { max-width: 100%; }
  .table-card { overflow-x: auto; }
  .catalog-table { min-width: 720px; }
}
/* CUSTOS U01 UI FOUNDATION END */
.generated-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--u01-cream-2); color: #655f54; font-size: 24px; font-weight: 850; }
.program-mini-poster { width: 62px; height: 76px; border-radius: 11px; overflow: hidden; background: var(--surface-soft); display: block; }
.program-mini-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* CUSTOS U01 performance detail */
.u01-performance-detail { align-items: stretch; overflow: hidden; }
.u01-performance-detail .performance-detail-media { min-height: 360px; }
.u01-performance-detail .performance-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.performance-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.performance-overview-grid article { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.performance-overview-grid article > span { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: var(--accent); }
.performance-overview-grid strong { font-size: 1.25rem; line-height: 1; }
.performance-overview-grid small { color: var(--muted); }
.u01-primary-actions { margin: 14px 0 20px; }
@media (max-width: 720px) {
  .u01-performance-detail { display: block; }
  .u01-performance-detail .performance-detail-media { min-height: 0; aspect-ratio: 4 / 3; }
  .performance-overview-grid { grid-template-columns: 1fr; }
  .u01-primary-actions .button { width: 100%; justify-content: center; }
}


/* CUSTOS U01 V5 VISUAL-GATE FIXES START */
.content, .main-column, .right-column, .table-card, .filter-card { min-width: 0; }
.table-card { max-width: 100%; overflow-x: auto; }
.catalog-table { min-width: 100%; }
/* CLOSURE-01: keep the complete library catalog readable at tablet width. */
@media (min-width: 721px) and (max-width: 900px) {
  .library-page-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .library-page-heading > div { min-width: 0; }
  .library-page-heading .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .library-page-heading .stat-card { min-width: 0; }
  .library-page-heading .hero-actions { justify-content: flex-start; }
  .catalog-table-card { overflow-x: visible; }
  .catalog-table-card > .catalog-mobile-list { display: grid; }
  .catalog-table-card > .catalog-mobile-list + .catalog-table { display: none; }
}
.library-filter {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}
.library-filter > .toggle-label,
.library-filter > .button {
  align-self: end;
}
@media (max-width: 1180px) {
  .detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-hero .hero-actions {
    justify-content: flex-start;
  }
  .program-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .program-meta div {
    min-width: 0;
  }
}
@media (max-width: 720px) {
  .library-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-filter > * {
    min-width: 0;
    max-width: 100%;
  }
  .right-column,
  .person-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .program-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .program-meta div {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 9px 8px;
    border-right: 0;
  }
  .program-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 11px;
  }
  .program-item-position,
  .program-item-main,
  .program-item-statuses,
  .program-item-side {
    min-width: 0;
    max-width: 100%;
  }
  .program-item-side {
    grid-column: 2;
    justify-items: start;
    width: 100%;
  }
  .program-item-statuses {
    justify-content: flex-start;
  }
  .table-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .catalog-table {
    min-width: 720px;
  }
  .catalog-table-card { overflow-x: visible; }
  .catalog-table-card > .catalog-mobile-list { display: grid; }
  .catalog-table-card > .catalog-mobile-list + .catalog-table,
  .person-works-table-wrap > .catalog-table { display: none; }
  .person-works-table-wrap > .catalog-mobile-list { display: grid; }
  .catalog-mobile-row { padding-left: 11px; padding-right: 11px; }
  .catalog-mobile-credits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* CUSTOS U01 V5 VISUAL-GATE FIXES END */

/* CUSTOS U02 — compact performance catalog and verified brand */
:root {
  --custos-green: #143325;
  --custos-green-2: #24523e;
  --custos-gold: #ba995c;
  --custos-cream: #f7f4ed;
  --custos-page: #f7f9f7;
}
.topbar {
  min-height: 72px;
  padding: 10px 16px;
  gap: 20px;
}
.custos-brand {
  min-width: 265px;
  gap: 10px;
  display: grid;
  grid-template-columns: auto;
  align-content: center;
}
.custos-brand-link { display: inline-flex; align-items: center; width: fit-content; }
.custos-lockup { display: block; width: 168px; height: 52px; object-fit: contain; object-position: left center; }
.custos-mark { display: none; width: 38px; height: 38px; object-fit: contain; }
.custos-brand .brand-status { margin: -10px 0 0 60px; font-size: 11px; line-height: 1; color: #5f6d66; white-space: nowrap; }
.global-search { height: 42px; max-width: 560px; border-radius: 10px; }
.profile-card { display: flex; align-items: center; gap: 9px; }
.profile-card small { display: block; color: var(--muted); margin-top: 2px; }
.sidebar { padding: 14px 12px; }
.nav-item { padding: 10px 12px; border-radius: 9px; margin-bottom: 4px; font-size: 13px; gap: 10px; }
.nav-item > .nav-icon { width: 20px; height: 20px; flex-basis: 20px; }
.nav-item .ui-icon { width: 18px; height: 18px; }
.mobile-bottom-nav { display: none; }
.sidebar-mobile-head img { width: 28px; height: 28px; vertical-align: middle; margin-right: 8px; }

.u02-performance-catalog { max-width: 1480px; margin: 0 auto; display: grid; gap: 24px; color: #17231d; }
.u02-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.u02-page-head h1 { margin: 2px 0 5px; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; }
.u02-page-head > div > p:last-child { margin: 0; color: #67736d; font-size: 13px; }
.u02-eyebrow { margin: 0; color: #627168; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.u02-create-button { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: 8px; box-shadow: 0 5px 14px rgba(20, 51, 37, .15); }
.u02-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.u02-section-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u02-section-title h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.u02-section-title > span:not(.u02-count-badge) { color: #66736d; font-size: 12px; }
.u02-count-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: #eaf2ed; color: var(--custos-green); font-size: 12px; font-weight: 800; }
.u02-text-link { color: var(--custos-green-2); font-size: 12px; font-weight: 750; display: inline-flex; align-items: center; gap: 5px; }
.u02-inline-icon { width: 14px; height: 14px; }

.u02-upcoming-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.u02-upcoming-card { min-height: 126px; display: grid; grid-template-columns: 66px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 12px; border: 1px solid #dbe4de; border-radius: 12px; background: #fff; transition: border-color .18s ease, background .18s ease; }
.u02-upcoming-card:hover { border-color: #b8cbbf; background: #fbfdfb; }
.u02-date-block { min-height: 94px; border-radius: 9px; display: grid; place-items: center; align-content: center; background: #edf4ef; color: var(--custos-green); text-align: center; }
.u02-date-block small { text-transform: uppercase; font-size: 9px; font-weight: 800; }
.u02-date-block strong { font-size: 28px; line-height: 1; }
.u02-date-block span { margin-top: 5px; font-size: 9px; font-weight: 750; }
.u02-upcoming-main { min-width: 0; display: grid; gap: 4px; }
.u02-upcoming-main > b { font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.u02-upcoming-main > small { color: #68756e; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u02-card-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf4ef; color: var(--custos-green); }
.u02-card-arrow .ui-icon { width: 15px; height: 15px; }
.u02-upcoming-empty { min-height: 60px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px dashed #cbd8d0; border-radius: 11px; background: #fafcfb; }
.u02-upcoming-empty > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--custos-green); background: #eaf2ed; }
.u02-upcoming-empty > div { display: grid; gap: 2px; }
.u02-upcoming-empty b { font-size: 13px; }
.u02-upcoming-empty small { color: #68756e; font-size: 11px; }

.u02-filter-panel { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(112px, .7fr)) auto auto; gap: 9px; align-items: end; padding: 10px; border: 1px solid #dde5df; border-radius: 12px; background: #fff; position: sticky; top: 78px; z-index: 5; }
.u02-filter-panel label { display: grid; gap: 4px; color: #536159; font-size: 10px; font-weight: 750; }
.u02-filter-panel select, .u02-filter-panel input { height: 36px; border-radius: 8px; font-size: 12px; }
.u02-search-field { position: relative; align-self: end; }
.u02-search-field > i { position: absolute; left: 11px; bottom: 10px; display: grid; color: #66736d; pointer-events: none; }
.u02-search-field input { padding-left: 34px; }
.u02-filter-submit, .u02-filter-reset { min-height: 36px; height: 36px; padding: 6px 11px; font-size: 12px; border-radius: 8px; white-space: nowrap; }
.u02-mobile-filter-summary { display: none; }
.u02-year-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 16px; }
.u02-year-chips form { margin: 0; }
.u02-year-chips button { min-width: 42px; height: 32px; padding: 0 10px; border: 1px solid #dde5df; border-radius: 7px; background: #fff; color: #34423a; font-size: 11px; font-weight: 750; cursor: pointer; }
.u02-year-chips button.active { border-color: var(--custos-green); background: var(--custos-green); color: #fff; }

.u02-year-group { display: grid; gap: 9px; margin-top: 18px; }
.u02-year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.u02-year-head h3 { margin: 0; color: var(--custos-green-2); font-size: 18px; }
.u02-year-head span { color: #67736d; font-size: 11px; }
.u02-event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.u02-event-card { position: relative; min-width: 0; min-height: 166px; border: 1px solid #dde5df; border-radius: 11px; background: #fff; overflow: hidden; transition: border-color .18s ease, background .18s ease; }
.u02-event-card:hover { border-color: #b8cbbf; background: #fbfdfb; }
.u02-event-card-link { height: 100%; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 9px 28px 9px 9px; }
.u02-event-poster { width: 82px; min-height: 146px; border-radius: 8px; overflow: hidden; display: block; background: #eef3ef; }
.u02-event-poster > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u02-event-placeholder { width: 100%; height: 100%; min-height: 146px; display: grid; place-items: center; align-content: center; gap: 10px; background: linear-gradient(145deg, #f0f4f0, #e2e9e4); }
.u02-event-placeholder img { width: 34px; height: 34px; object-fit: contain; opacity: .78; }
.u02-event-placeholder small { color: #536159; font-family: Georgia, serif; font-size: 10px; letter-spacing: .1em; }
.u02-event-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 1px; }
.u02-event-copy > b { width: 100%; font-size: 12.5px; line-height: 1.27; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.u02-event-date { color: #4d6055; font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.u02-location-line { width: 100%; display: inline-flex; align-items: flex-start; gap: 4px; color: #526159; font-size: 10px; line-height: 1.3; }
.u02-event-copy > small { width: 100%; color: #7a847f; font-size: 9.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.u02-card-metrics { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 12px; color: #526159; font-size: 9.5px; }
.u02-card-metrics > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.u02-kind-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 19px; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; line-height: 1; font-weight: 800; }
.u02-kind-badge.kind-concert { background: #eaf4ed; color: #1c6a3f; }
.u02-kind-badge.kind-contest { background: #edf3ec; color: #315f42; }
.u02-kind-badge.kind-festival { background: #f1ebfb; color: #6b45a5; }
.u02-kind-badge.kind-recording { background: #fff0da; color: #93601b; }
.u02-kind-badge.kind-service { background: #e8f0f7; color: #315e82; }
.u02-kind-badge.kind-event { background: #f4eee4; color: #785b2d; }
.u02-more-button { position: absolute; right: 5px; bottom: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: #66736d; display: grid; place-items: center; cursor: pointer; }
.u02-more-button:hover { background: #edf2ee; }
.u02-more-button .ui-icon { width: 15px; height: 15px; }
.u02-no-results { min-height: 110px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px; border: 1px dashed #cbd8d0; border-radius: 12px; background: #fafcfb; }
.u02-no-results > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #eaf2ed; color: var(--custos-green); }
.u02-no-results > div { display: grid; gap: 3px; }
.u02-no-results b { font-size: 14px; }
.u02-no-results small { color: #68756e; font-size: 12px; }
.u02-performance-catalog .pagination { margin-top: 20px; }

@media (max-width: 1320px) {
  .u02-filter-panel { grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(105px, .7fr)); }
  .u02-filter-submit, .u02-filter-reset { grid-row: 2; }
  .u02-event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .u02-upcoming-grid { grid-template-columns: 1fr; }
  .u02-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u02-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .u02-search-field { grid-column: span 2; }
}
@media (max-width: 760px) {
  :root { --topbar: 62px; }
  body { padding-bottom: 64px; }
  .topbar { min-height: 62px; height: 62px; padding: 8px 10px; gap: 8px; }
  .custos-brand { min-width: 0; display: block; }
  .custos-lockup { display: none; }
  .custos-mark { display: block; width: 34px; height: 34px; }
  .custos-brand .brand-status { display: none; }
  .global-search { display: none; }
  .profile-card { display: none; }
  .mobile-nav-toggle { width: 36px; height: 36px; }
  .content { padding: 18px 12px 26px; }
  .mobile-bottom-nav { position: fixed; z-index: 18; left: 0; right: 0; bottom: 0; height: 62px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #dbe4de; background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(20,51,37,.08); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { min-width: 0; border: 0; background: transparent; color: #4f5e56; display: grid; place-items: center; align-content: center; gap: 3px; padding: 5px 2px; font-size: 9px; }
  .mobile-bottom-nav .ui-icon { width: 19px; height: 19px; }
  .mobile-bottom-nav .active { color: #fff; background: var(--custos-green); margin: 5px 2px; border-radius: 8px; }
  .u02-performance-catalog { gap: 19px; }
  .u02-page-head { align-items: center; }
  .u02-page-head h1 { font-size: 28px; }
  .u02-page-head > div > p:last-child { max-width: 260px; font-size: 12px; line-height: 1.45; }
  .u02-create-button { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 9px; }
  .u02-create-button span { display: none; }
  .u02-section-title h2 { font-size: 16px; }
  .u02-text-link { font-size: 11px; }
  .u02-upcoming-grid { gap: 8px; }
  .u02-upcoming-card { min-height: 118px; grid-template-columns: 60px minmax(0, 1fr) 24px; gap: 9px; padding: 9px; border-radius: 10px; }
  .u02-date-block { min-height: 94px; }
  .u02-upcoming-main > b { font-size: 13px; }
  .u02-upcoming-empty { grid-template-columns: 32px minmax(0, 1fr); }
  .u02-upcoming-empty .button { grid-column: 1 / -1; width: 100%; }
  .u02-filter-panel { display: none; }
  .u02-mobile-filter-summary { display: block; margin: 5px 0 11px; border: 1px solid #dde5df; border-radius: 9px; background: #fff; }
  .u02-mobile-filter-summary summary { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
  .u02-mobile-filter-summary summary::-webkit-details-marker { display: none; }
  .u02-mobile-filter-summary summary span { min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; margin-left: auto; background: #eaf2ed; color: var(--custos-green); font-size: 10px; }
  .u02-mobile-filter-summary form { display: grid; gap: 8px; padding: 0 10px 10px; }
  .u02-mobile-filter-summary input, .u02-mobile-filter-summary select { height: 38px; font-size: 12px; }
  .u02-mobile-filter-summary form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .u02-year-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: none; }
  .u02-year-chips::-webkit-scrollbar { display: none; }
  .u02-year-chips form { flex: 0 0 auto; }
  .u02-year-group { margin-top: 14px; }
  .u02-year-head h3 { font-size: 17px; }
  .u02-event-grid { grid-template-columns: 1fr; gap: 8px; }
  .u02-event-card { min-height: 126px; border-radius: 10px; }
  .u02-event-card-link { grid-template-columns: 72px minmax(0, 1fr); padding: 8px 27px 8px 8px; gap: 9px; }
  .u02-event-poster { width: 72px; min-height: 110px; }
  .u02-event-placeholder { min-height: 110px; }
  .u02-event-copy { gap: 4px; }
  .u02-event-copy > b { font-size: 12px; -webkit-line-clamp: 2; }
  .u02-event-copy > small { -webkit-line-clamp: 1; }
  .u02-card-metrics { gap: 8px; font-size: 9px; }
  .u02-performance-catalog .pagination { padding-bottom: 6px; }
  .u02-no-results { grid-template-columns: 34px minmax(0, 1fr); }
  .u02-no-results .button { grid-column: 1 / -1; width: 100%; }
}

/* CUSTOS U02 v3 — contain mobile catalog width without masking desktop layout */
@media (max-width: 760px) {
  .content {
    max-width: 100vw;
    overflow-x: clip;
  }
  .u02-performance-catalog {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-width: 0;
    overflow: hidden;
  }
  .u02-performance-catalog > *,
  .u02-upcoming-section,
  .u02-archive-section,
  .u02-section-head,
  .u02-year-group,
  .u02-event-grid,
  .u02-event-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .u02-section-head {
    flex-wrap: wrap;
  }
  .u02-text-link {
    margin-left: auto;
    white-space: nowrap;
  }
  .u02-year-chips {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }
  .u02-year-chips > form {
    flex: 0 0 auto;
    min-width: 0;
  }
  .u02-event-card,
  .u02-event-card-link {
    width: 100%;
  }
  .mobile-bottom-nav {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
}


/* CUSTOS U02 v6 — distinct event badges + medium desktop refinement */
:root {
  --u02-text: #1c2822;
  --u02-text-muted: #6f7d76;
  --u02-text-soft: #8a9690;
  --u02-border: #dfe7e2;
  --u02-border-soft: #e9efeb;
  --u02-tint: #eef5f0;
  --u02-tint-strong: #e5f0e9;
  --u02-primary: #20563d;
  --u02-primary-hover: #194b34;
  --u02-font: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-family: var(--u02-font);
}
body {
  color: var(--u02-text);
  font-family: var(--u02-font);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 600; }

/* Lighter global controls: filled green is reserved for the true primary action. */
.button {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 9px;
  border-color: var(--u02-border);
  color: #294438;
  font-size: 13px;
  font-weight: 550;
  box-shadow: none;
}
.button:hover { border-color: #bdccc3; background: #f8fbf9; }
.button.primary {
  border-color: var(--u02-primary);
  background: var(--u02-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(32, 86, 61, .13);
}
.button.primary:hover { border-color: var(--u02-primary-hover); background: var(--u02-primary-hover); }
.button.ghost { background: #fff; color: #24523e; }
.button.small { min-height: 32px; padding: 6px 11px; font-weight: 550; }

/* Navigation is selected, not painted as a heavy green button. */
.nav-item {
  font-weight: 500;
  color: #4b5b53;
}
.nav-item.active {
  color: var(--custos-green);
  background: #edf5f0;
  box-shadow: inset 2px 0 0 var(--custos-gold);
}
.nav-item:hover { background: #f4f8f5; }
.mobile-nav-toggle { color: var(--custos-green); }

.u02-performance-catalog {
  gap: 19px;
  color: var(--u02-text);
  font-weight: 400;
}
.u02-page-head { gap: 18px; }
.u02-page-head h1 {
  margin: 2px 0 5px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.02em;
}
.u02-page-head > div > p:last-child { color: var(--u02-text-muted); font-size: 13px; }
.u02-eyebrow { color: #718078; font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.u02-create-button {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(32, 86, 61, .12);
}
.u02-section-head { margin-bottom: 8px; }
.u02-section-title h2 { font-size: 17px; font-weight: 600; }
.u02-section-title > span:not(.u02-count-badge) { color: var(--u02-text-muted); font-size: 11.5px; }
.u02-count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--u02-tint);
  color: var(--custos-green-2);
  font-size: 11px;
  font-weight: 600;
}
.u02-text-link { color: #35664e; font-size: 11.5px; font-weight: 500; }

.u02-upcoming-card {
  min-height: 116px;
  grid-template-columns: 62px minmax(0, 1fr) 26px;
  gap: 10px;
  padding: 10px;
  border-color: var(--u02-border);
  border-radius: 11px;
}
.u02-date-block { min-height: 88px; background: #f0f5f1; }
.u02-date-block small, .u02-date-block span { font-weight: 550; }
.u02-date-block strong { font-size: 25px; font-weight: 600; }
.u02-upcoming-main > b { font-size: 13.5px; font-weight: 600; }
.u02-upcoming-main > small { color: var(--u02-text-muted); }
.u02-card-arrow { background: #f2f6f3; }
.u02-upcoming-empty {
  min-height: 54px;
  padding: 8px 11px;
  border-color: #d7e1da;
  background: #fbfcfb;
}
.u02-upcoming-empty > span { width: 31px; height: 31px; background: #edf4ef; }
.u02-upcoming-empty b { font-size: 12.5px; font-weight: 600; }
.u02-upcoming-empty small { color: var(--u02-text-muted); }
.u02-upcoming-empty .button { color: #28543f; background: #fff; }

.u02-filter-panel {
  gap: 8px;
  padding: 9px;
  border-color: var(--u02-border);
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(29, 64, 46, .025);
}
.u02-filter-panel label { color: #66746d; font-size: 10px; font-weight: 550; }
.u02-filter-panel select, .u02-filter-panel input { height: 35px; border-color: var(--u02-border); font-size: 11.5px; }
.u02-filter-submit {
  border: 1px solid #cbd8d0;
  background: #f7faf8;
  color: #24523e;
  font-weight: 550;
  box-shadow: none;
}
.u02-filter-submit:hover { border-color: #afc4b7; background: #eef5f0; }
.u02-filter-reset { color: #5d6a64; font-weight: 500; }

.u02-year-chips { gap: 5px; margin: 8px 0 14px; }
.u02-year-chips button {
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border-color: var(--u02-border);
  border-radius: 9px;
  color: #4d5d55;
  font-size: 11px;
  font-weight: 500;
}
.u02-year-chips button:hover { background: #f7faf8; border-color: #c6d4cc; }
.u02-year-chips button.active {
  border-color: #c8d8ce;
  background: var(--u02-tint-strong);
  color: var(--custos-green);
  font-weight: 600;
}

.u02-year-group { gap: 8px; margin-top: 15px; }
.u02-year-head h3 { font-size: 17px; font-weight: 600; }
.u02-year-head span { color: var(--u02-text-muted); }
.u02-event-grid { gap: 9px; }
.u02-event-card {
  min-height: 154px;
  border-color: var(--u02-border);
  border-radius: 11px;
  box-shadow: none;
}
.u02-event-card:hover { border-color: #bdcdc3; background: #fcfdfc; }
.u02-event-card-link { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; padding: 8px 27px 8px 8px; }
.u02-event-poster { width: 76px; min-height: 136px; border-radius: 7px; }
.u02-event-placeholder {
  min-height: 136px;
  gap: 8px;
  background: linear-gradient(145deg, #f3f6f3, #e7ede9);
}
.u02-event-placeholder img { width: 31px; height: 31px; opacity: .72; }
.u02-event-placeholder small {
  color: #718078;
  font-family: inherit;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}
.u02-event-copy { gap: 4px; }
.u02-event-copy > b { font-size: 12.25px; line-height: 1.28; font-weight: 600; }
.u02-event-date { color: #5f7067; font-size: 9.25px; font-weight: 550; }
.u02-location-line { color: #617068; font-size: 9.75px; }
.u02-event-copy > small { color: var(--u02-text-soft); font-size: 9.25px; }
.u02-card-metrics { gap: 7px 11px; color: #66756e; font-size: 9.25px; }
.u02-kind-badge {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 9.25px;
  font-weight: 550;
  border: 1px solid transparent;
}
.u02-kind-badge.kind-concert { background: #edf6f0; color: #2d6a49; border-color: #dbece1; }
.u02-kind-badge.kind-contest { background: #edf3f4; color: #3c646b; border-color: #dbe7e9; }
.u02-kind-badge.kind-festival { background: #f3eef8; color: #71588f; border-color: #e5dced; }
.u02-kind-badge.kind-recording { background: #f2f0f7; color: #62698a; border-color: #e3e0ec; }
.u02-kind-badge.kind-service { background: #edf2f7; color: #46667f; border-color: #dce6ee; }
.u02-kind-badge.kind-event { background: #f6f1e9; color: #80683b; border-color: #ece2d2; }
.u02-more-button { color: #87928c; }
.u02-more-button:hover { background: #f1f5f2; color: #516158; }

/* The shared dashboard/list shell follows the same lighter tone. */
.dashboard-recent .card,
.dashboard-panel,
.dashboard-program,
.dashboard-material { box-shadow: none; }
.dashboard-program-main b,
.dashboard-material-main b { font-weight: 600; }

@media (max-width: 960px) {
  .sidebar { width: min(292px, 84vw); padding: 13px; }
  .sidebar-mobile-head { padding: 2px 4px 12px; font-size: 13px; font-weight: 500; }
  .sidebar-mobile-head button { color: #516158; }
  .sidebar .nav-item { min-height: 42px; padding: 8px 10px; margin-bottom: 2px; font-size: 12.5px; font-weight: 500; }
  .sidebar-foot { padding: 12px 7px 2px; font-size: 12.5px; }
}

@media (max-width: 760px) {
  :root { --topbar: 56px; }
  body { padding-bottom: 58px; }
  .topbar { min-height: 56px; height: 56px; padding: 7px 9px; }
  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-color: var(--u02-border);
    border-radius: 10px;
    color: var(--custos-green);
  }
  .mobile-nav-toggle .ui-icon { width: 18px; height: 18px; }
  .custos-mark { width: 30px; height: 30px; }
  .content { padding: 15px 11px 23px; }

  .mobile-bottom-nav {
    height: 58px;
    border-top-color: var(--u02-border);
    box-shadow: 0 -3px 14px rgba(20, 51, 37, .055);
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button {
    gap: 2px;
    padding: 5px 2px;
    color: #637168;
    font-size: 9.5px;
    font-weight: 500;
  }
  .mobile-bottom-nav .ui-icon { width: 19px; height: 19px; }
  .mobile-bottom-nav .active {
    color: var(--custos-green);
    background: #edf5f0;
    margin: 5px 4px;
    border-radius: 10px;
  }

  .u02-performance-catalog { gap: 15px; }
  .u02-page-head { align-items: flex-start; gap: 12px; }
  .u02-page-head h1 { font-size: 27px; font-weight: 600; }
  .u02-page-head > div > p:last-child { max-width: 280px; font-size: 12px; line-height: 1.4; }
  .button.primary.u02-create-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-color: #cbd8d0;
    background: #fff;
    color: var(--custos-green);
    box-shadow: none;
  }
  .button.primary.u02-create-button:hover {
    border-color: #b9cbbf;
    background: #edf5f0;
    color: var(--custos-green);
  }
  .u02-section-title h2 { font-size: 15.5px; }
  .u02-text-link { font-size: 10.5px; }

  .u02-upcoming-grid { gap: 7px; }
  .u02-upcoming-card { min-height: 108px; grid-template-columns: 56px minmax(0, 1fr) 22px; gap: 8px; padding: 8px; }
  .u02-date-block { min-height: 86px; }
  .u02-date-block strong { font-size: 23px; }
  .u02-upcoming-main > b { font-size: 12.5px; }
  .u02-upcoming-empty {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 8px 9px;
  }
  .u02-upcoming-empty .button {
    grid-column: auto;
    width: auto;
    min-height: 31px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .u02-mobile-filter-summary { border-color: var(--u02-border); }
  .u02-mobile-filter-summary summary { height: 38px; padding: 0 10px; font-size: 11.5px; font-weight: 550; }
  .u02-mobile-filter-summary form .button.primary {
    border-color: #cbd8d0;
    background: #f7faf8;
    color: #24523e;
    box-shadow: none;
  }
  .u02-year-chips button { height: 29px; font-size: 10.5px; }
  .u02-year-head h3 { font-size: 16px; }
  .u02-event-grid { gap: 7px; }
  .u02-event-card { min-height: 116px; }
  .u02-event-card-link { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; padding: 7px 26px 7px 7px; }
  .u02-event-poster { width: 68px; min-height: 102px; }
  .u02-event-placeholder { min-height: 102px; }
  .u02-event-copy { gap: 3px; }
  .u02-event-copy > b { font-size: 11.75px; font-weight: 600; }
  .u02-event-date { font-size: 9px; font-weight: 550; }
  .u02-location-line { font-size: 9.5px; }
  .u02-event-copy > small { font-size: 9px; }
  .u02-card-metrics { gap: 7px; font-size: 9px; }
  .u02-kind-badge { min-height: 19px; font-size: 9px; font-weight: 550; }
}


/* CUSTOS U02 v6 — distinct badges, lighter actions and resilient medium desktop filters */
:root {
  --u02-concert-bg: #eaf6ef;
  --u02-concert-fg: #226847;
  --u02-concert-border: #cfe5d6;
  --u02-contest-bg: #eaf1fb;
  --u02-contest-fg: #2f5f9b;
  --u02-contest-border: #d3e0f2;
  --u02-festival-bg: #f3ecfa;
  --u02-festival-fg: #6f4f96;
  --u02-festival-border: #e4d9ef;
  --u02-recording-bg: #f9edf1;
  --u02-recording-fg: #8a4d62;
  --u02-recording-border: #edd8df;
  --u02-service-bg: #e8f4f5;
  --u02-service-fg: #356f75;
  --u02-service-border: #d4e8ea;
  --u02-event-bg: #f8f0e4;
  --u02-event-fg: #80612c;
  --u02-event-border: #ebddc7;
}

/* Even the principal catalog action is outlined: green is an accent, not a slab. */
.button.primary.u02-create-button {
  border-color: #b9cbbf;
  background: #fff;
  color: var(--custos-green);
  font-weight: 500;
  box-shadow: none;
}
.button.primary.u02-create-button:hover {
  border-color: #9fb9a9;
  background: #edf5f0;
  color: var(--custos-green);
}

.u02-page-head h1,
.u02-section-title h2,
.u02-year-head h3 { font-weight: 550; }
.u02-event-copy > b { font-weight: 550; }
.u02-create-button,
.u02-filter-submit,
.u02-filter-reset,
.u02-year-chips button,
.u02-text-link { font-weight: 500; }
.nav-item { font-weight: 450; }

/* Event types must remain identifiable without reading the word. */
.u02-kind-badge {
  gap: 4px;
  font-weight: 500;
}
.u02-kind-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .82;
}
.u02-kind-badge.kind-concert {
  background: var(--u02-concert-bg);
  color: var(--u02-concert-fg);
  border-color: var(--u02-concert-border);
}
.u02-kind-badge.kind-contest {
  background: var(--u02-contest-bg);
  color: var(--u02-contest-fg);
  border-color: var(--u02-contest-border);
}
.u02-kind-badge.kind-festival {
  background: var(--u02-festival-bg);
  color: var(--u02-festival-fg);
  border-color: var(--u02-festival-border);
}
.u02-kind-badge.kind-recording {
  background: var(--u02-recording-bg);
  color: var(--u02-recording-fg);
  border-color: var(--u02-recording-border);
}
.u02-kind-badge.kind-service {
  background: var(--u02-service-bg);
  color: var(--u02-service-fg);
  border-color: var(--u02-service-border);
}
.u02-kind-badge.kind-event {
  background: var(--u02-event-bg);
  color: var(--u02-event-fg);
  border-color: var(--u02-event-border);
}

/* Stable two-row filter layout between wide desktop and tablet. */
@media (min-width: 1051px) and (max-width: 1320px) {
  .u02-filter-panel {
    grid-template-columns: minmax(180px, 1.35fr) minmax(150px, 1fr) repeat(4, minmax(105px, .72fr));
    grid-template-areas:
      "search search year type country city"
      ". . . . reset apply";
  }
  .u02-search-field { grid-area: search; }
  .u02-filter-year { grid-area: year; }
  .u02-filter-kind { grid-area: type; }
  .u02-filter-country { grid-area: country; }
  .u02-filter-city { grid-area: city; }
  .u02-filter-reset { grid-area: reset; justify-self: end; }
  .u02-filter-submit { grid-area: apply; justify-self: stretch; min-width: 96px; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .u02-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "search search search"
      "year type country"
      "city reset apply";
  }
  .u02-search-field { grid-area: search; }
  .u02-filter-year { grid-area: year; }
  .u02-filter-kind { grid-area: type; }
  .u02-filter-country { grid-area: country; }
  .u02-filter-city { grid-area: city; }
  .u02-filter-reset { grid-area: reset; }
  .u02-filter-submit { grid-area: apply; }
}

@media (max-width: 760px) {
  .button.primary.u02-create-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-color: #c7d6cd;
    background: #fff;
    color: var(--custos-green);
    box-shadow: none;
  }
  .mobile-bottom-nav .active {
    margin: 6px 5px;
    background: #f0f6f2;
    box-shadow: inset 0 0 0 1px #e0ebe4;
  }
  .u02-kind-badge { font-weight: 500; }
}

/* CUSTOS U02 v7 — contrast recovery, stable responsive shell and visible menu control */
:root {
  --u02-text: #243229;
  --u02-text-muted: #526159;
  --u02-text-soft: #6a756f;
  --u02-border: #cfd9d2;
  --u02-tint: #edf4ef;
  --u02-tint-strong: #ddebe2;
  --u02-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html, body, button, input, select, textarea {
  font-family: var(--u02-font);
}
body {
  color: var(--u02-text);
  font-size: 14px;
}
.topbar,
.sidebar,
.u02-performance-catalog {
  color: var(--u02-text);
}
.nav-item {
  color: #34483e;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-item.active {
  color: #174b33;
  background: #e5f0e8;
  box-shadow: inset 3px 0 0 var(--custos-gold);
}
.nav-item:hover { background: #eef4f0; }

.u02-page-head h1 {
  font-size: 31px;
  font-weight: 600;
  color: #1d2a23;
}
.u02-page-head > div > p:last-child {
  color: #56655d;
  font-size: 13.5px;
}
.u02-eyebrow {
  color: #58685f;
  font-size: 10.5px;
}
.u02-section-title h2,
.u02-year-head h3 {
  color: #203128;
  font-weight: 600;
}
.u02-section-title h2 { font-size: 18px; }
.u02-year-head h3 { font-size: 18px; }
.u02-section-title > span:not(.u02-count-badge),
.u02-year-head span {
  color: #5e6c65;
  font-size: 12px;
}
.u02-count-badge {
  background: #e4efe7;
  color: #214f38;
}
.u02-text-link {
  color: #285d43;
  font-size: 12px;
  font-weight: 550;
}

.button.primary.u02-create-button {
  border-color: #9fb8a8;
  color: #174b33;
}
.button.primary.u02-create-button:hover {
  border-color: #779b84;
  background: #e8f2eb;
}
.u02-upcoming-empty,
.u02-filter-panel,
.u02-event-card,
.u02-mobile-filter-summary {
  border-color: var(--u02-border);
}
.u02-upcoming-empty {
  background: #fcfdfc;
}
.u02-upcoming-empty b {
  color: #203128;
  font-size: 13px;
}
.u02-upcoming-empty small {
  color: #5e6d65;
  font-size: 11px;
}
.u02-filter-panel {
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 64, 46, .04);
}
.u02-filter-panel label {
  color: #485a50;
  font-size: 11px;
  font-weight: 600;
}
.u02-filter-panel select,
.u02-filter-panel input {
  color: #26362d;
  font-size: 12.5px;
  border-color: #c8d4cc;
  background: #fff;
}
.u02-filter-panel input::placeholder { color: #78847e; }
.u02-filter-submit {
  color: #214f38;
  border-color: #b7c9bd;
  background: #f2f7f4;
}
.u02-filter-submit:hover {
  color: #173f2c;
  border-color: #91ad9a;
  background: #e7f0ea;
}
.u02-year-chips button {
  color: #405148;
  border-color: #cbd6cf;
  background: #fff;
  font-size: 11.5px;
}
.u02-year-chips button.active {
  color: #173f2c;
  border-color: #b2c9b9;
  background: #ddebe2;
}

.u02-event-card {
  border-color: #cbd7cf;
  background: #fff;
}
.u02-event-card:hover {
  border-color: #9fb8a8;
  background: #fbfdfc;
}
.u02-event-copy > b {
  color: #1e2d25;
  font-size: 13.25px;
  line-height: 1.3;
  font-weight: 600;
}
.u02-event-date {
  color: #475b50;
  font-size: 10.25px;
  font-weight: 600;
}
.u02-location-line {
  color: #4d5f56;
  font-size: 10.5px;
}
.u02-event-copy > small {
  color: #65736c;
  font-size: 10px;
}
.u02-card-metrics {
  color: #4f6158;
  font-size: 10px;
}
.u02-event-placeholder {
  background: linear-gradient(145deg, #f1f5f2, #e2e9e4);
}
.u02-event-placeholder img { opacity: .9; }
.u02-event-placeholder small {
  color: #56675e;
  font-size: 9.5px;
}
.u02-kind-badge {
  min-height: 21px;
  font-size: 9.75px;
  font-weight: 600;
}
.u02-kind-badge.kind-concert {
  background: #e3f2e8;
  color: #165f3b;
  border-color: #bdddc8;
}
.u02-kind-badge.kind-contest {
  background: #e4edf9;
  color: #25558f;
  border-color: #bfd1ea;
}
.u02-kind-badge.kind-festival {
  background: #eee5f8;
  color: #65448e;
  border-color: #dac8ed;
}
.u02-kind-badge.kind-recording {
  background: #f6e6ec;
  color: #7a3e55;
  border-color: #e6c6d2;
}
.u02-kind-badge.kind-service {
  background: #e2f0f1;
  color: #2c666c;
  border-color: #bfdddf;
}
.u02-kind-badge.kind-event {
  background: #f5ead8;
  color: #725421;
  border-color: #e5d1ae;
}

/*
 * Medium widths no longer use the old 88px icon rail.
 * The full navigation becomes an off-canvas drawer before labels can wrap.
 */
@media (max-width: 1180px) {
  :root {
    --sidebar: 0px;
    --topbar: 72px;
  }
  .app-shell { display: block; }
  .topbar {
    min-height: 72px;
    height: 72px;
    display: flex;
    gap: 12px;
    padding: 10px 14px;
  }
  .mobile-nav-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #bdccc2;
    border-radius: 10px;
    background: #fff;
    color: #173f2c;
  }
  .topbar .mobile-nav-toggle .ui-icon { display: none; }
  .topbar .mobile-nav-toggle::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  }
  .brand {
    min-width: 190px;
    flex: 0 0 auto;
  }
  .custos-lockup { width: 132px; }
  .brand-status {
    color: #5c6b63;
    font-size: 11.5px;
  }
  .global-search {
    min-width: 220px;
    max-width: 520px;
    height: 42px;
  }
  .global-search button {
    min-height: 32px;
    padding: 0 13px;
    font-weight: 600;
  }
  .profile-card {
    min-height: 46px;
    padding: 6px 10px;
  }
  .profile-card b { font-size: 13px; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(300px, 88vw);
    display: flex;
    transform: translateX(-104%);
    transition: transform .2s ease;
    background: #fff;
    box-shadow: 20px 0 50px rgba(16,24,40,.18);
    padding: 14px;
  }
  .sidebar-mobile-head,
  .sidebar-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-mobile-head {
    padding: 3px 4px 14px;
    color: #23362b;
    font-size: 13px;
    font-weight: 600;
  }
  .sidebar-mobile-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .sidebar-mobile-head img { width: 25px; height: 25px; }
  .sidebar-mobile-head button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #34483e;
  }
  .sidebar nav { width: 100%; }
  .sidebar .nav-item {
    justify-content: flex-start;
    min-height: 43px;
    gap: 11px;
    padding: 9px 11px;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 500;
  }
  .sidebar .nav-item span { font-size: inherit; }
  .sidebar .nav-item > .nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
  .sidebar .nav-item .ui-icon {
    width: 19px;
    height: 19px;
  }
  .sidebar-foot {
    margin-top: auto;
    padding: 14px 7px 3px;
    border-top: 1px solid #d7e0da;
    color: #26372e;
    font-size: 12.5px;
  }
  .sidebar-foot small { color: #66756d; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    border: 0;
    background: rgba(9, 20, 14, .46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  body.mobile-nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .content,
  .minimal-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 24px 20px 36px;
  }
  .mobile-bottom-nav { display: none; }
}

@media (max-width: 900px) {
  :root { --topbar: 64px; }
  .topbar {
    min-height: 64px;
    height: 64px;
    padding: 8px 11px;
  }
  .brand { min-width: 142px; }
  .custos-lockup { width: 116px; }
  .brand-status { display: none; }
  .global-search {
    min-width: 180px;
    max-width: none;
  }
  .profile-card > span:not(.avatar) { display: none; }
  .profile-card { min-width: 46px; }
  .content,
  .minimal-content { padding: 20px 16px 34px; }
}

@media (max-width: 760px) {
  :root { --topbar: 56px; }
  html { scroll-padding-bottom: var(--mobile-content-bottom-space); }
  body {
    font-size: 14px;
    padding-bottom: var(--mobile-content-bottom-space);
  }
  .topbar {
    min-height: 56px;
    height: 56px;
    padding: 7px 9px;
  }
  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .topbar .mobile-nav-toggle::before {
    width: 15px;
    box-shadow: 0 -4.5px 0 currentColor, 0 4.5px 0 currentColor;
  }
  .custos-brand {
    min-width: 0;
    flex: 0 0 auto;
  }
  .custos-lockup { display: none; }
  .custos-mark {
    display: block;
    width: 30px;
    height: 30px;
  }
  .global-search,
  .top-actions { display: none; }
  .content,
  .minimal-content {
    padding: 16px 12px var(--mobile-content-bottom-space);
  }

  /* Keep the final profile section clear of the fixed mobile navigation. */
  .person-variants-compact {
    padding-bottom: var(--mobile-content-bottom-space);
  }

  .u02-page-head h1 {
    font-size: 28px;
    font-weight: 600;
  }
  .u02-page-head > div > p:last-child {
    font-size: 13px;
  }
  .u02-section-title h2 { font-size: 16.5px; }
  .u02-year-head h3 { font-size: 17px; }

  .u02-filter-panel label { font-size: 11px; }
  .u02-mobile-filter-summary summary {
    color: #293a31;
    font-size: 12.5px;
    font-weight: 600;
  }
  .u02-mobile-filter-summary input,
  .u02-mobile-filter-summary select {
    color: #26362d;
    font-size: 12.5px;
  }
  .u02-year-chips button {
    color: #3d4e45;
    font-size: 11px;
  }
  .u02-event-copy > b {
    font-size: 13px;
    font-weight: 600;
  }
  .u02-event-date { font-size: 10px; }
  .u02-location-line { font-size: 10.5px; }
  .u02-event-copy > small { font-size: 10px; }
  .u02-card-metrics { font-size: 10px; }
  .u02-kind-badge {
    min-height: 20px;
    font-size: 9.75px;
  }

  .mobile-bottom-nav {
    height: var(--mobile-bottom-nav-height);
    padding-bottom: env(safe-area-inset-bottom);
    border-top-color: #cbd7cf;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -4px 16px rgba(20,51,37,.07);
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    color: #506158;
    font-size: 10px;
    font-weight: 500;
  }
  .mobile-bottom-nav .ui-icon {
    width: 20px;
    height: 20px;
  }
  .mobile-bottom-nav .active {
    color: #174b33;
    background: #e1eee5;
    box-shadow: inset 0 0 0 1px #c8dacf;
    margin: 5px 4px;
    border-radius: 10px;
  }
  .access-editor-page-heading {
    gap: 8px;
    margin-bottom: 12px;
  }
  .access-editor-page-heading h2 {
    margin-bottom: 4px;
    font-size: 28px;
  }
  .access-editor-page-heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
  }
  .access-editor-page-heading > a {
    justify-self: start;
    min-height: 34px;
    padding: 7px 10px;
  }
  .access-editor-summary {
    gap: 6px;
    margin-bottom: 12px;
  }
  .access-editor-summary .stat-card {
    min-height: 58px;
    padding: 8px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 1px 7px;
  }
  .access-editor-summary .stat-icon {
    width: 28px;
    height: 28px;
  }
  .access-editor-summary .stat-card b {
    font-size: 18px;
  }
  .access-editor-summary .stat-card small {
    font-size: 10px;
    line-height: 1.15;
  }
  .access-editor-section {
    margin-top: 12px;
  }
  .access-editor-section > .section-heading {
    margin-bottom: 8px;
  }
  .access-editor-section > .section-heading h2 {
    font-size: 24px;
  }
  .access-editor-admin-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .access-editor-admin-heading small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .access-role-matrix {
    margin-bottom: var(--mobile-content-bottom-space);
  }
  .access-role-matrix-disclosure > summary {
    padding: 14px;
    cursor: pointer;
    pointer-events: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .access-role-matrix-disclosure > summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
  }
  .access-role-matrix-disclosure[open] > summary::after {
    content: '−';
  }
  .access-role-matrix-toggle {
    display: block;
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .access-role-matrix-disclosure:not([open]) > .role-card-grid {
    display: none;
  }
  .access-role-matrix-disclosure[open] > .role-card-grid {
    display: grid;
  }
  .access-role-matrix-disclosure .role-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
  }
  .access-role-matrix-disclosure .role-card {
    padding: 12px;
    border-radius: 12px;
    box-shadow: none;
  }
  .access-role-matrix-disclosure .role-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .access-role-matrix-disclosure .role-card h3 {
    margin: 9px 0 4px;
    font-size: 15px;
  }
  .access-role-matrix-disclosure .role-card p {
    min-height: 0;
    margin: 0 0 8px;
    font-size: 12px;
  }
  .access-role-matrix-disclosure .role-card ul {
    gap: 5px;
    font-size: 12px;
  }
}

@media (max-width: 375px) {
}



/* CUSTOS U02 v9 — complete Lucide menu asset, aligned filter items and readable desktop scale */
/* Icons stay in the existing Lucide helper. CSS must never redraw the menu glyph. */
.topbar .mobile-nav-toggle .ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
.topbar .mobile-nav-toggle::before {
  content: none;
  display: none;
  width: 0;
  height: 0;
  box-shadow: none;
}

/* Desktop reading size is raised without restoring heavy weights. */
@media (min-width: 761px) {
  body { font-size: 15px; }
  .nav-item { font-size: 14px; }
  .u02-page-head h1 { font-size: 32px; }
  .u02-page-head > div > p:last-child { font-size: 14px; }
  .u02-eyebrow { font-size: 11px; }
  .u02-section-title h2,
  .u02-year-head h3 { font-size: 19px; }
  .u02-section-title > span:not(.u02-count-badge),
  .u02-year-head span,
  .u02-text-link { font-size: 12.5px; }
  .u02-filter-panel label { font-size: 12px; }
  .u02-filter-panel select,
  .u02-filter-panel input { font-size: 13.5px; }
  .u02-filter-submit,
  .u02-filter-reset { font-size: 13.5px; }
  .u02-year-chips button { font-size: 12px; }
  .u02-event-copy > b { font-size: 14.25px; }
  .u02-event-date { font-size: 11px; }
  .u02-location-line { font-size: 11.5px; }
  .u02-event-copy > small,
  .u02-card-metrics { font-size: 11px; }
  .u02-kind-badge { font-size: 10.5px; }
}

/* Five filter fields scale predictably; actions are their own compact cell. */
.u02-filter-panel {
  grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(112px, 1fr)) auto;
  grid-template-areas: "search year type country city actions";
}
.u02-search-field { grid-area: search; }
.u02-filter-year { grid-area: year; }
.u02-filter-kind { grid-area: type; }
.u02-filter-country { grid-area: country; }
.u02-filter-city { grid-area: city; }
.u02-filter-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  align-self: end;
}
.u02-filter-actions .button { white-space: nowrap; }

/* 3 + 2 fields: search / year / type, then country / city. */
@media (min-width: 981px) and (max-width: 1279px) {
  .u02-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "search year type"
      "country city actions";
  }
}

/* 2 + 2 + 1 fields: search/year, type/country, city/actions. */
@media (min-width: 761px) and (max-width: 980px) {
  .u02-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "search year"
      "type country"
      "city actions";
  }
}

@media (max-width: 760px) {
  /* Mobile keeps the compact scale and uses the dedicated filter drawer. */
  body { font-size: 14px; }
  .u02-page-head h1 { font-size: 28px; }
  .u02-section-title h2 { font-size: 16.5px; }
  .u02-year-head h3 { font-size: 17px; }
  .u02-event-copy > b { font-size: 13px; }
  .u02-event-date { font-size: 10px; }
  .u02-location-line { font-size: 10.5px; }
  .u02-event-copy > small,
  .u02-card-metrics { font-size: 10px; }
  .u02-kind-badge { font-size: 9.75px; }
  .topbar .mobile-nav-toggle .ui-icon { width: 18px; height: 18px; }
}

/* v9: the search control is a normal labelled grid item, matching all select controls. */
.u02-search-field > span {
  min-height: 1em;
}


/* CUSTOS U03 — performance detail page */
.u03-performance-detail {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  color: #17231d;
}
.u03-detail-breadcrumb { min-width: 0; }
.u03-detail-breadcrumb a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #496056;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.u03-detail-breadcrumb a:hover { color: #173f31; }
.u03-detail-breadcrumb svg { width: 17px; height: 17px; }
.u03-performance-hero {
  display: grid;
  grid-template-columns: minmax(220px, 292px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 42px);
  padding: clamp(16px, 2.1vw, 28px);
  border: 1px solid #d5e0d8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(26, 54, 42, .055);
  overflow: hidden;
}
.u03-performance-poster {
  min-width: 0;
  aspect-ratio: 4 / 5;
  max-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  background: #edf3ee;
  align-self: start;
}
.u03-performance-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u03-performance-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  display: grid; place-items: center; align-content: center; gap: 10px;
  color: #557066;
  background: linear-gradient(145deg, #f0f5f1, #e6eee8);
}
.u03-performance-placeholder svg { width: 42px; height: 42px; stroke-width: 1.45; }
.u03-performance-placeholder small { font-size: 13px; }
.u03-performance-summary { min-width: 0; align-self: center; }
.u03-performance-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.u03-performance-kicker .u02-kind-badge { position: static; inset: auto; }
.u03-exception-state {
  display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px;
  border: 1px solid #d7b8b4; border-radius: 999px; background: #fff5f3;
  color: #843c35; font-size: 12px; font-weight: 600;
}
.u03-performance-summary h1 {
  max-width: 920px;
  margin: 0;
  color: #15231d;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}
.u03-performance-facts {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  margin-top: 20px;
}
.u03-performance-facts > div {
  min-width: 210px;
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px;
  align-items: start;
}
.u03-performance-facts svg { width: 19px; height: 19px; margin-top: 2px; color: #537064; }
.u03-performance-facts span { min-width: 0; display: grid; gap: 2px; }
.u03-performance-facts b { color: #223a30; font-size: 15px; font-weight: 600; line-height: 1.35; }
.u03-performance-facts small { color: #657970; font-size: 13px; line-height: 1.35; }
.u03-inline-link {
  margin-top: 8px; width: fit-content; display: inline-flex; align-items: center; gap: 5px;
  color: #355f4e; font-size: 13px; font-weight: 500; text-decoration: none;
}
.u03-inline-link svg { width: 14px; height: 14px; }
.u03-program-link-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px;
  margin-top: 18px; padding: 12px 14px; border: 1px solid #d9e4dc;
  border-radius: 13px; background: #f7faf7;
}
.u03-program-link-row > svg { width: 19px; height: 19px; margin-top: 4px; color: #426b58; }
.u03-program-link-row span { display: grid; gap: 2px; }
.u03-program-link-row small { color: #6a7d74; font-size: 12px; }
.u03-program-link-row a, .u03-program-link-row b { color: #193f31; font-size: 14px; font-weight: 600; text-decoration: none; }
.u03-performance-description { max-width: 900px; margin: 18px 0 0; color: #4f665d; font-size: 15px; line-height: 1.6; }
.u03-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.u03-overview-grid article {
  min-width: 0; padding: 11px 13px; border: 1px solid #dce6df;
  border-radius: 12px; background: #fbfcfb; display: grid; gap: 2px;
}
.u03-overview-grid strong { color: #1b3e31; font-size: 21px; line-height: 1; font-weight: 600; }
.u03-overview-grid small { color: #667a71; font-size: 12px; }
.u03-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.u03-hero-actions .button { min-height: 36px; font-size: 13px; font-weight: 500; }
.u03-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); gap: 18px; align-items: start; }
.u03-detail-main { min-width: 0; }
.u03-detail-aside { min-width: 0; display: grid; gap: 12px; position: sticky; top: 18px; }
.u03-side-card, .u03-side-section {
  border: 1px solid #d7e2da; border-radius: 15px; background: #fff;
  box-shadow: 0 8px 24px rgba(29, 54, 43, .035);
}
.u03-side-card { padding: 15px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
.u03-side-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf5ef; color: #38634f; }
.u03-side-icon svg { width: 18px; height: 18px; }
.u03-side-card > div { min-width: 0; display: grid; gap: 4px; }
.u03-side-card small { color: #6d8077; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.u03-side-card b { color: #20392f; font-size: 14px; line-height: 1.4; font-weight: 600; }
.u03-side-card a, .u03-side-actions a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #2e604b; font-size: 13px; font-weight: 500; text-decoration: none;
}
.u03-side-card a svg, .u03-side-actions a svg { width: 15px; height: 15px; flex: 0 0 auto; }
.u03-side-heading { padding: 13px 14px; border-bottom: 1px solid #e1e8e3; display: flex; align-items: center; gap: 8px; }
.u03-side-heading > span { color: #486b5b; display: inline-flex; }
.u03-side-heading svg { width: 17px; height: 17px; }
.u03-side-heading h2 { margin: 0; color: #20372e; font-size: 14px; font-weight: 600; }
.u03-side-heading small { margin-left: auto; color: #61766d; font-size: 12px; }
.u03-rehearsal-list { display: grid; }
.u03-rehearsal-list > a, .u03-rehearsal-list > div { padding: 11px 14px; display: grid; gap: 3px; color: #243b32; text-decoration: none; border-bottom: 1px solid #edf1ee; }
.u03-rehearsal-list > :last-child { border-bottom: 0; }
.u03-rehearsal-list b { font-size: 13px; font-weight: 600; }
.u03-rehearsal-list small, .u03-rehearsal-list p { margin: 0; color: #6a7c74; font-size: 12px; line-height: 1.4; }
.u03-side-actions { padding: 5px 14px; display: grid; }
.u03-side-actions a { padding: 9px 0; border-bottom: 1px solid #edf1ee; }
.u03-side-actions a:last-child { border-bottom: 0; }
.u03-program-history { margin: 0; padding: clamp(16px, 2.2vw, 25px); border: 1px solid #d6e1d9; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(29, 54, 43, .04); }
.u03-program-history .p09r-a5-heading { margin-bottom: 16px; }
.u03-program-history .p09r-a5-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.015em; }
.u03-program-history .p09r-a5-heading p { max-width: 700px; color: #60736a; font-size: 14px; }
.u03-program-history .p09r-a5-summary { border-color: #dbe5de; background: #f8faf8; }
.u03-program-history .p09r-a5-filters { margin-bottom: 13px; }
.u03-program-history .p09r-a5-filters button { min-height: 32px; font-size: 12px; font-weight: 500; }
.u03-program-history .p09r-a5-items { gap: 9px; }
.u03-program-history .p09r-a5-item { border-color: #dbe4de; border-radius: 13px; background: #fff; }
.u03-program-history .p09r-a5-item.needs-review { border-color: #dfcaa9; background: #fffdfa; }
.u03-program-history .p09r-a5-number { color: #597067; font-size: 13px; font-weight: 600; }
.u03-program-history .p09r-a5-work-link, .u03-program-history .p09r-a5-title-row h3 { color: #1d382d; font-size: 15px; font-weight: 600; line-height: 1.35; }
.u03-program-history .p09r-a5-kind { font-size: 11px; font-weight: 500; }
.u03-program-history .p09r-a5-performers { margin-top: 10px; }
.u03-program-history .p09r-a5-performers h4 { color: #6a7d74; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.u03-program-history .p09r-a5-performers li { min-height: 30px; }
.u03-program-history .p09r-a5-role { color: #5f756b; font-size: 12px; }
.u03-program-history .p09r-a5-performers a, .u03-program-history .p09r-a5-performers strong { color: #203c31; font-size: 13px; font-weight: 600; }
.u03-empty-program { padding: 24px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; border-color: #d7e2da; }
.u03-empty-program > svg { width: 30px; height: 30px; color: #547266; }
.u03-empty-program h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.u03-empty-program p { margin: 0; color: #687b72; font-size: 14px; line-height: 1.5; }
.u03-admin-zone { display: grid; gap: 12px; }
.u03-admin-zone.is-compact:empty { display: none; }
.u03-admin-zone .admin-edit-card, .u03-admin-zone .performance-program-form { margin: 0; }

@media (max-width: 1100px) {
  .u03-performance-hero { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 24px; }
  .u03-performance-summary h1 { font-size: clamp(29px, 3.5vw, 38px); }
  .u03-detail-grid { grid-template-columns: minmax(0, 1fr) 270px; }
}
@media (max-width: 900px) {
  .u03-performance-hero { grid-template-columns: 220px minmax(0, 1fr); }
  .u03-performance-poster { max-height: 340px; }
  .u03-detail-grid { grid-template-columns: 1fr; }
  .u03-detail-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u03-side-section:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .u03-performance-detail { gap: 13px; }
  .u03-detail-breadcrumb a { font-size: 13px; }
  .u03-performance-hero { grid-template-columns: 1fr; gap: 15px; padding: 12px; border-radius: 16px; }
  .u03-performance-poster { width: 100%; max-height: 260px; aspect-ratio: 16 / 9; border-radius: 12px; }
  .u03-performance-placeholder { min-height: 170px; }
  .u03-performance-placeholder svg { width: 34px; height: 34px; }
  .u03-performance-summary { padding: 3px 3px 5px; }
  .u03-performance-kicker { margin-bottom: 10px; }
  .u03-performance-summary h1 { font-size: 28px; line-height: 1.12; }
  .u03-performance-facts { display: grid; gap: 10px; margin-top: 15px; }
  .u03-performance-facts > div { min-width: 0; grid-template-columns: 20px minmax(0, 1fr); }
  .u03-performance-facts b { font-size: 14px; }
  .u03-program-link-row { margin-top: 14px; }
  .u03-performance-description { margin-top: 14px; font-size: 14px; }
  .u03-overview-grid { gap: 6px; margin-top: 15px; }
  .u03-overview-grid article { padding: 9px 8px; }
  .u03-overview-grid strong { font-size: 18px; }
  .u03-overview-grid small { font-size: 10px; line-height: 1.25; }
  .u03-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .u03-hero-actions .button:first-child:last-child, .u03-hero-actions .button:nth-child(3) { grid-column: 1 / -1; }
  .u03-detail-aside { grid-template-columns: 1fr; }
  .u03-side-section:last-child:nth-child(odd) { grid-column: auto; }
  .u03-program-history { padding: 13px; border-radius: 14px; }
  .u03-program-history .p09r-a5-heading { display: grid; }
  .u03-program-history .p09r-a5-heading h2 { font-size: 22px; }
  .u03-program-history .p09r-a5-heading p { font-size: 13px; }
  .u03-program-history .p09r-a5-summary { width: 100%; }
  .u03-program-history .p09r-a5-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .u03-program-history .p09r-a5-filters button { flex: 0 0 auto; }
  .u03-program-history .p09r-a5-item { grid-template-columns: 1fr; padding: 12px; }
  .u03-program-history .p09r-a5-number { display: none; }
  .u03-program-history .p09r-a5-title-row { gap: 7px; }
  .u03-program-history .p09r-a5-work-link, .u03-program-history .p09r-a5-title-row h3 { font-size: 14px; }
  .u03-program-history .p09r-a5-performers { padding: 10px 11px; }
  .u03-program-history .p09r-a5-performers li { grid-template-columns: minmax(72px, .8fr) minmax(0, 1.2fr); gap: 8px; align-items: start; }
  .u03-program-history .p09r-a5-performers .p09r-a5-state { grid-column: 1 / -1; }
  .u03-program-history .p09r-a5-role,
  .u03-program-history .p09r-a5-performers a,
  .u03-program-history .p09r-a5-performers strong { overflow-wrap: anywhere; }
}


/* Performance detail refinement v4 — full-width CUSTOS lockup, quieter cast line and smaller event title */
@media (min-width: 1181px) {
  .custos-brand {
    width: var(--sidebar);
    min-width: var(--sidebar);
    flex: 0 0 var(--sidebar);
    padding-right: 10px;
  }
  .custos-brand-link { width: 100%; }
  .custos-lockup {
    width: 100%;
    max-width: none;
    height: 58px;
    object-fit: contain;
    object-position: left center;
  }
}
.sidebar-mobile-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}
.sidebar-mobile-lockup {
  display: block;
  width: min(100%, 190px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.u03-performance-summary h1 {
  font-size: clamp(28px, 2.65vw, 36px);
  line-height: 1.1;
}
.u03-program-history .p09r-a5-heading h2 {
  font-size: 23px;
}
.p09r-a5-cast-summary {
  margin: 8px 0 0;
  color: #687a71;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .005em;
}
.u03-program-history .p09r-a5-performers h4 {
  color: #596f64;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: .015em;
}
@media (max-width: 1100px) {
  .u03-performance-summary h1 { font-size: clamp(26px, 3vw, 32px); }
}
@media (max-width: 760px) {
  .sidebar-mobile-lockup { width: min(100%, 176px); height: 44px; }
  .u03-performance-summary h1 { font-size: 24px; line-height: 1.12; }
  .u03-program-history .p09r-a5-heading h2 { font-size: 20px; }
  .p09r-a5-cast-summary { margin-top: 7px; font-size: 12px; }
}


/* Performance detail refinement v6 — keep the complete CUSTOS lockup wide inside the responsive drawer */
@media (max-width: 1180px) {
  .sidebar-mobile-head .sidebar-mobile-brand {
    width: calc(100% - 46px);
    max-width: 224px;
    flex: 1 1 auto;
  }
  .sidebar-mobile-head .sidebar-mobile-lockup {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
  }
}
@media (max-width: 760px) {
  .sidebar-mobile-head .sidebar-mobile-brand {
    max-width: 214px;
  }
  .sidebar-mobile-head .sidebar-mobile-lockup {
    max-width: 210px;
    height: 48px;
  }
}

/* === CUSTOS desktop sidebar logo: full available width === */
.sidebar-brand,
.sidebar .sidebar-brand,
.sidebar-header .sidebar-brand,
.sidebar .brand-lockup,
.sidebar-header .brand-lockup {
  width: 100%;
  max-width: 100%;
}

.sidebar-brand {
  display: block;
  padding-right: 0;
}

.sidebar-brand img,
.sidebar .sidebar-brand img,
.sidebar-header .sidebar-brand img,
.sidebar .brand-lockup img,
.sidebar-header .brand-lockup img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* make the logo area use the whole inner width of the left menu */
.sidebar-header,
.sidebar .sidebar-header {
  padding-left: 16px;
  padding-right: 16px;
}

/* remove tiny-image constraints from older rules */
.sidebar-header img,
.sidebar-mobile-head img {
  max-width: 100%;
  height: auto;
}


/* CUSTOS performance sections v1 */
.u03-program-history .u03-program-section {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 24px 0 9px;
  padding: 0 2px;
  color: #547168;
}

.u03-program-history .u03-program-section::before,
.u03-program-history .u03-program-section::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .22;
}

.u03-program-history .u03-program-section-label {
  flex: 0 1 auto;
  max-width: 76%;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: .055em;
  text-align: center;
}

.u03-program-history .u03-program-section:first-child {
  margin-top: 5px;
}

@media (max-width: 760px) {
  .u03-program-history .u03-program-section {
    gap: 9px;
    margin: 19px 0 7px;
  }

  .u03-program-history .u03-program-section-label {
    max-width: 84%;
    font-size: 11px;
    letter-spacing: .04em;
  }
}

/* Keep the account affordance visible after the legacy responsive layers above. */
.sidebar-foot { display: grid; }
.sidebar-foot > a:first-child { display: grid; }
.sidebar-logout { display: inline-flex; }
@media (max-width: 1180px) {
  .sidebar-foot { display: grid; }
}

/* PM product repair pass: identity-first programs, compact media and editors. */
.program-catalog-card { grid-template-rows: 1fr auto; }
.program-catalog-artwork { display: block; max-height: 190px; overflow: hidden; background: var(--surface-soft); }
.program-catalog-artwork img { display: block; width: 100%; height: 190px; object-fit: cover; }
.program-catalog-card:not(:has(.program-catalog-artwork)) .program-catalog-body { padding-top: 20px; }
.program-meta-line { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.program-item-actions { display: inline-flex; gap: 0; justify-content: flex-end; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-soft); }
.program-item-actions form { margin: 0; }
.button.icon-only { width: 40px; min-width: 40px; min-height: 40px; padding: 0; display: inline-grid; place-items: center; }
.button.icon-only svg { width: 17px; height: 17px; }
.program-reorder-button { border: 0; border-radius: 0; box-shadow: none; }
.program-reorder-button + .program-reorder-button { border-left: 1px solid var(--line); }
.program-reorder-icon-up { transform: rotate(180deg); }
.program-reorder-button:disabled {
  border-color: transparent;
  background: #eef3ef;
  color: #9aa9a0;
  cursor: not-allowed;
  opacity: .58;
}
.program-reorder-button:disabled svg { opacity: .72; }
.program-item-actions .button.danger { color: var(--red); border: 0; border-left: 1px solid #f1c6c6; background: #fffafa; }
.program-item-actions .button.danger:hover, .program-item-actions .button.danger:focus-visible { background: var(--red-soft); }
.poster-card-no-media { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 14px; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.poster-card-no-media svg { width: 18px; height: 18px; color: var(--green-dark); }
.u03-performance-poster.is-empty { aspect-ratio: auto; min-height: 0; height: auto; align-self: center; background: transparent; }
.u03-performance-poster.is-empty .u03-performance-placeholder { min-height: 72px; padding: 12px; border: 1px solid #dce7df; border-radius: 13px; background: #f5f8f5; }
.u03-performance-poster.is-empty .u03-performance-placeholder svg { width: 24px; height: 24px; }
.u03-performance-poster.is-empty .u03-performance-placeholder small { font-size: 11px; }
.u03-edit-context { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 22px; }
.u03-edit-context h1 { margin: 0 0 9px; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; }
.u03-edit-context-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: 13px; }
.is-edit-mode > .u03-performance-hero, .is-edit-mode > .u03-detail-grid { display: none; }
.u03-admin-zone { gap: 16px; }
.u03-admin-zone .admin-edit-card, .u03-admin-zone .editor-danger-zone, .u03-admin-zone .editor-related-zone { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.editor-form-section { display: grid; gap: 9px; padding: 4px 0 13px; border-bottom: 1px solid var(--line); }
.editor-form-section + .editor-form-section { margin-top: 4px; }
.editor-form-section h3 { margin: 0; color: var(--green-dark); font-size: 15px; }
.editor-form-grid { display: grid; gap: 10px; }
.editor-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-form-span-2 { grid-column: 1 / -1; }
.editor-danger-zone { border-color: #edd5d0 !important; background: #fffaf9 !important; }
.editor-danger-zone .panel-head h2 { color: #8b3e35; }
.editor-danger-zone .admin-write-form { display: inline-flex; margin-right: 8px; }
.editor-related-zone { display: grid; gap: 12px; }
.editor-related-zone .panel-head { margin: 0; }
.editor-related-zone .performance-program-form { padding: 0; border: 0; box-shadow: none; background: transparent; }
.performance-poster-editor { display: grid; gap: 16px; }
.performance-poster-editor .panel-head { margin: 0; }
.performance-poster-editor-grid { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.performance-poster-editor-preview { width: min(100%, 240px); aspect-ratio: 4 / 5; min-width: 0; overflow: hidden; border: 1px solid #d5e0d8; border-radius: 14px; background: #edf3ee; }
.performance-poster-editor-preview img { width: 100%; height: 100%; display: block; object-fit: contain; background: #edf3ee; }
.performance-poster-editor-preview.is-empty { width: min(100%, 360px); aspect-ratio: auto; min-height: 0; height: auto; display: block; overflow: visible; border: 0; background: transparent; }
.performance-poster-editor-placeholder { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 14px 16px; border: 1px solid #dce7df; border-radius: 13px; background: #f5f8f5; color: #557066; }
.performance-poster-editor-placeholder svg { width: 30px; height: 30px; stroke-width: 1.45; }
.performance-poster-editor-placeholder span { font-size: 13px; font-weight: 650; }
.performance-poster-editor-controls { display: grid; gap: 12px; align-content: start; min-width: 0; }
.performance-poster-upload-form { display: grid; gap: 10px; max-width: 480px; }
.performance-poster-file-field { display: grid; gap: 7px; min-width: 0; cursor: pointer; }
.performance-poster-file-label { font-weight: 650; }
.performance-poster-file-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.performance-poster-file-button { pointer-events: none; }
.performance-poster-file-name { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.performance-poster-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.performance-poster-file-field:has(+ .performance-poster-file-input:focus-visible) .performance-poster-file-button { outline: 2px solid var(--green); outline-offset: 3px; }
.performance-poster-upload-form .form-hint { color: var(--muted); font-size: 12px; }
.performance-poster-remove-form { margin: 0; }
.performance-poster-editor .form-error, .performance-poster-editor .form-success { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.performance-poster-editor .form-error { border: 1px solid #e8c3c0; background: #fff5f3; color: #843c35; }
.performance-poster-editor .form-success { border: 1px solid #cfe4d4; background: #f1f8f2; color: #28623c; }
@media (max-width: 720px) {
  .card.ui-index-filters {
    padding: 12px 12px 0;
    margin-bottom: var(--mobile-content-bottom-space);
  }
  .ui-index-filters { gap: 8px; }
  .program-catalog-card { border-radius: 14px; }
  .program-catalog-artwork, .program-catalog-artwork img { max-height: 145px; height: 145px; }
  .program-catalog-body { padding: 14px; }
  .program-catalog-body h3 { margin: 9px 0 7px; font-size: 19px; }
  .program-card-footer { padding: 0 14px 14px; }
  .program-item { grid-template-columns: 38px minmax(0, 1fr); }
  .program-item-actions { justify-content: flex-start; }
  .program-item-actions .button.icon-only { width: 42px; min-width: 42px; min-height: 42px; }
  .u03-edit-context { display: grid; align-items: start; padding: 16px; }
  .u03-edit-context .button { width: 100%; justify-content: center; }
  .editor-form-grid-2 { grid-template-columns: 1fr; }
  .editor-form-span-2 { grid-column: auto; }
  .u03-admin-zone .admin-edit-card, .u03-admin-zone .editor-danger-zone, .u03-admin-zone .editor-related-zone { padding: 15px; }
  .performance-poster-editor { padding: 15px !important; }
  .performance-poster-editor-grid { grid-template-columns: 1fr; gap: 15px; }
  .performance-poster-editor-preview { width: min(100%, 200px); }
  .performance-poster-editor-preview.is-empty { width: 100%; }
  .performance-poster-file-picker { align-items: flex-start; flex-direction: column; gap: 7px; }
  .performance-poster-upload-form { max-width: none; }
  .editor-danger-zone .admin-write-form { display: flex; margin: 0; }
  .editor-danger-zone .button { width: 100%; justify-content: center; }
}
