@layer legacy {
/* Simba Zouk · 5 octobre 2026
   Tokens communs, composants, états et adaptations.
   Cascade conservée ; anciennes déclarations écrasées et palette cacao retirées. */

:root {
  --ink: #293446;
  --deep: #222e3c;
  --deep-2: #33455c;
  --blue: #315fcd;
  --sea: #edf2fd;
  --mint: #eef7f4;
  --paper: #f5f7fb;
  --white: #fff;
  --line: #e3e8f0;
  --muted: #647085;
  --coral: #7353ba;
  --coral-light: #f2eef9;
  --green: #217653;
  --danger: #af374d;
  --booking-bordeaux: #283d59;
  --purple: #7353ba;
  --shadow: 0 2px 8px rgba(34,46,60,.04);
  --radius: 10px;
  --font-body: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-display: "Avenir Next",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
.shell { min-height: 100vh; display: grid; }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand-mark { display: grid; place-items: center; }
.side-nav { display: grid; }
.nav-item { display: flex; align-items: center; background: transparent; border: 0; text-align: left; }
.nav-item span { font-size: 1.25rem; width: 22px; text-align: center; font-weight: 400; }
.nav-item.active:before { margin-left: -14px; margin-right: 11px; }
.sidebar-caption { display: block; }
.connection-dot { display: inline-block; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; margin-right: 8px; }
.app-frame { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar-title { display: grid; }
.topbar-actions { display: flex; }
.icon-button, .button { border: 1px solid var(--line); background: var(--white); color: var(--deep); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.organizer-shortcut { font-size: 1.2rem; }
.mobile-brand { display: none; }
#main-content { margin: auto; }
.section-header { display: flex; justify-content: space-between; }
.section-actions { display: flex; }
.button-text { border: 0; background: transparent; padding: 6px 0; }
.prototype-note { display: flex; align-items: center; gap: 10px; border: 1px solid #f3ddcb; margin-bottom: 20px; }
.prototype-note button { margin-left: auto; background: none; border: 0; text-decoration: underline; color: inherit; }
.grid-2 { display: grid; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.panel-header { display: flex; justify-content: space-between; align-items: center; }
.panel-header h2 { margin: 0; }
.panel-header a, .panel-header button { color: var(--blue); }
.muted { color: var(--muted); }
.hero-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card:before { content: ''; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; right: -85px; top: -100px; }
.hero-card:after { content: ''; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -18px; top: -40px; }
.hero-card .eyebrow { position: relative; z-index: 1; }
.hero-event { display: flex; align-items: end; gap: 20px; position: relative; z-index: 1; }
.hero-date { font-size: 4.6rem; line-height: .9; font-weight: 800; letter-spacing: -.08em; color: var(--coral); }
.hero-month { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; display: block; margin-top: 8px; }
.hero-event h2 { font-size: 1.3rem; margin: 0 0 6px; }
.hero-event p { color: #bcd6d5; margin: 0; font-size: .86rem; }
.hero-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; margin-top: 27px; }
.hero-footer span { color: #bfd5d6; font-size: .8rem; }
.hero-footer button { border: 0; border-bottom: 1px solid var(--coral); background: none; color: white; font-weight: 700; padding: 5px 0; }
.hero-empty { font-size: 1.4rem; max-width: 360px; margin: 14px 0; }
.kpi { border: 1px solid var(--line); }
.kpi .label-small, .kpi strong { display: block; }
.kpi small { color: var(--muted); }
.list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.date-chip { display: grid; place-content: center; text-align: center; }
.date-chip strong { line-height: 1; }
.date-chip small { text-transform: uppercase; }
.row-body { min-width: 0; flex: 1; }
.row-body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-body small { display: block; color: var(--muted); margin-top: 4px; }
.row-end { text-align: right; white-space: nowrap; }
.row-end strong { display: block; font-size: .91rem; }
.row-end small { color: var(--muted); }
.empty { text-align: center; }
.empty strong { display: block; margin-bottom: 5px; }
.flow-line { display: flex; gap: 0; align-items: flex-start; overflow-x: auto; padding: 8px 0 13px; }
.flow-step { min-width: 102px; position: relative; flex: 1; text-align: center; }
.flow-step:before { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.flow-step:first-child:before { display: none; }
.flow-step .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); display: block; margin: 0 auto 8px; position: relative; }
.flow-step.done .dot { background: var(--green); }
.flow-step small { display: block; color: var(--muted); line-height: 1.25; font-size: .7rem; }
.flow-step.current small { color: var(--deep); }
.chip, .status { display: inline-flex; align-items: center; white-space: nowrap; }
.chip { background: var(--mint); color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
.item-card { border: 1px solid var(--line); display: flex; flex-direction: column; }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; }
.item-top p { color: var(--muted); margin: 0; }
.item-meta { display: grid; gap: 8px; color: var(--muted); font-size: .81rem; }
.item-meta strong { color: var(--ink); }
.item-money { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); }
.item-money small { color: var(--muted); }
.item-actions { display: flex; flex-wrap: wrap; }
.subtle-line { font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.filters { display: flex; flex-wrap: wrap; }
.filter-pill { border: 1px solid var(--line); background: white; color: var(--muted); }
.search-input { max-width: 260px; }
textarea.form-control { resize: vertical; }
.field { display: grid; gap: 6px; }
.field label { color: var(--deep); }
.field-hint { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid .full { grid-column: 1/-1; }
.summary-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--sea); padding: 13px 16px; }
.summary-bar strong { font-size: 1rem; }
.transaction-table th { text-align: left; }
.transaction-table tr:last-child td { border: 0; }
.amount-positive { color: var(--green); }
.amount-negative { color: var(--danger); }
.table-wrap { overflow-x: auto; }
.info-panel { border: 1px solid #d4e6df; padding: 13px 15px; }
.notice-list { display: grid; gap: 12px; }
.notice-list div { padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.notice-list div:last-child { border: 0; }
.notice-list strong { display: block; margin-bottom: 4px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.calendar-head button { border: 1px solid var(--line); background: white; padding: 7px 11px; }
.calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar .weekday { text-align: center; }
.calendar .day { text-align: left; }
.calendar .day.today { border-color: var(--blue); }
.calendar .day .markers { display: flex; margin-top: 7px; }
.marker { border-radius: 50%; }
.calendar-events { margin-top: 15px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: white; }
.warning { border: 1px solid #f3ddcb; padding: 13px 15px; }
.quick-add { position: fixed; border: 0; line-height: 1; z-index: 15; }
.quick-add:hover { transform: translateY(-2px); }
.bottom-nav { display: none; }
dialog { border: 0; padding: 0; color: var(--ink); }
.sheet-dialog form { display: flex; flex-direction: column; }
.dialog-header { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 5px 0 0; }
.close-button { border: 0; font-size: 1.3rem; line-height: 1; }
.dialog-fields { overflow-y: auto; }
.dialog-actions { display: flex; justify-content: end; gap: 9px; border-top: 1px solid var(--line); }
.quick-dialog { width: min(420px,calc(100vw - 24px)); }
.quick-options { padding: 12px 20px 22px; display: grid; }
.quick-options button { border: 0; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; gap: 15px; text-align: left; padding: 14px 6px; color: var(--deep); }
.quick-options button:last-child { border-bottom: 0; }
.quick-options button span:first-child { flex: 1; }
.quick-options button span:last-child { font-size: .9rem; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; padding: 13px 17px; z-index: 50; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }
.public-page { min-height: 100vh; background: var(--paper); padding: 20px; }
.public-page[hidden] { display: none; }
.public-wrap { margin: 0 auto; }
.public-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.public-brand strong { letter-spacing: .17em; }
.public-hero { position: relative; overflow: hidden; }
.public-hero:after { content: ''; position: absolute; width: 200px; height: 200px; border: 1px solid #ffffff44; border-radius: 50%; right: -70px; top: -75px; }
.public-hero h1 { max-width: 440px; }
.public-hero p { line-height: 1.5; }
.public-form { margin-top: 20px; }
.public-form .panel { box-shadow: none; }
.shell[hidden] { display: none; }
.dashboard-top { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(245px,.8fr); gap: 14px; }
.dashboard-kpis { display: grid; }
.dashboard-kpis .kpi strong { margin-top: 4px; }
.dashboard-charts { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
.home-bottom { margin-top: 14px; }
.chart-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.chart-top button { border: 1px solid var(--line); border-radius: 7px; background: white; padding: 4px 9px; font-weight: 700; }
.bar-chart { display: flex; gap: 6px; align-items: end; border-bottom: 1px solid var(--line); }
.chart-month { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; border: 0; background: transparent; padding: 0; color: var(--muted); }
.chart-month:hover .bar { filter: brightness(.88); }
.bar-pair { width: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }
.bar { display: block; width: min(27%,22px); min-width: 4px; }
.chart-label { height: 25px; padding-top: 6px; white-space: nowrap; }
.chart-legend { display: flex; color: var(--muted); }
.chart-legend span { display: flex; gap: 5px; align-items: center; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; }
.donut { border-radius: 50%; display: grid; place-items: center; }
.donut>div { background: white; border-radius: 50%; display: grid; place-content: center; text-align: center; }
.donut strong { line-height: 1; }
.donut small { color: var(--muted); }
.donut-legend { display: grid; gap: 4px; min-width: 0; flex: 1; }
.donut-legend button { display: flex; background: none; border: 0; color: var(--muted); }
.donut-legend button:hover { text-decoration: underline; }
.donut-legend i { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; }
.donut-legend span { flex: 1; }
.donut-legend strong { color: var(--deep); }
.action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.action-grid button { border: 1px solid var(--line); display: grid; gap: 5px; color: var(--deep); }
.action-grid button:hover { border-color: var(--blue); background: var(--sea); }
.action-grid button>span { font-size: 1.32rem; color: var(--blue); }
.action-grid strong { font-size: .79rem; }
.action-grid small { color: var(--muted); }
.overview-heading h2 { margin: 5px 0 0; }
.overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.overview-grid .panel { box-shadow: none; }
.overview-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.overview-big strong { font-size: 1.58rem; letter-spacing: -.04em; }
.overview-big span { font-size: .75rem; color: var(--muted); }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); margin-top: 1px; margin-bottom: 5px; }
.progress-label strong { color: var(--deep); }
.progress-track { height: 7px; border-radius: 999px; overflow: hidden; }
.progress-track.large { height: 10px; }
.progress-track>span { display: block; height: 100%; border-radius: 999px; }
.overview-foot { color: var(--muted); margin: 10px 0 0; }
.overview-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overview-two>div { padding: 12px; }
.overview-two strong { display: block; font-size: 1.6rem; }
.overview-two span { font-size: .75rem; color: var(--muted); }
.overview-grid .button-soft { margin-top: 12px; }
.library-progress { display: grid; gap: 9px; }
.library-progress button { display: grid; grid-template-columns: 88px 1fr 20px; align-items: center; gap: 9px; border: 0; background: none; color: var(--muted); padding: 0; text-align: left; font-size: .75rem; }
.library-progress button:hover span:first-child { text-decoration: underline; }
.mini-track { display: block; height: 7px; border-radius: 99px; overflow: hidden; }
.mini-track i { display: block; height: 100%; border-radius: 99px; }
.library-progress strong { color: var(--deep); text-align: right; }
.idea-jump { border: 0; background: transparent; color: var(--blue); font-size: .75rem; text-align: left; font-weight: 700; padding: 8px 0 0; }
.checklist { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.checklist span { background: var(--mint); padding: 5px 8px; border-radius: 6px; color: var(--deep); }
.private-kpis { margin-bottom: 15px; }
.info-gap { margin-bottom: 17px; }
.info-gap button { display: inline; }
.finance-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(230px,.75fr); gap: 14px; margin-top: 16px; }
.month-input { max-width: 155px; min-height: 34px; padding: 5px 8px; }
.library-counts { display: grid; margin-bottom: 19px; }
.library-count { border: 1px solid var(--line); background: white; display: grid; text-align: left; color: var(--deep); }
.library-count:hover { border-color: var(--blue); }
.library-count span { color: var(--muted); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.library-warning { margin-bottom: 17px; }
.video-thumb { height: 115px; display: flex; align-items: center; justify-content: center; position: relative; }
.video-thumb span { font-size: 2.2rem; }
.video-thumb small { position: absolute; bottom: 8px; left: 10px; }
.organizer-bio { line-height: 1.6; white-space: pre-wrap; }
.public-fields { margin: 16px 0; }
.public-submit { width: 100%; }
@media (max-width:1050px) {
  .dashboard-charts { grid-template-columns: 1fr; }
  .donut-wrap { justify-content: center; }
  .dashboard-top { grid-template-columns: 1fr; }
  .dashboard-kpis .kpi { min-height: 103px; }
  .finance-layout { grid-template-columns: 1fr; }
}

@media (max-width:700px) {
  .overview-heading { margin-top: 25px; }
  .donut strong { font-size: 1.7rem; }
}

@media (max-width:370px) {
  .library-progress button { grid-template-columns: 80px 1fr 18px; }
}

@media (max-width:920px) {
  .shell { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding: 20px 10px; }
  .brand { margin-left: 5px; }
  .brand strong { font-size: 1rem; }
  .nav-item { font-size: .8rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .preview-button { font-size: 0; }
  .preview-button span { font-size: 1rem; }
}

@media (max-width:700px) {
  .topbar-title { display: none; }
  .mobile-brand { display: flex; align-items: center; }
  .mobile-brand-mark { display: grid; place-items: center; letter-spacing: 0; }
  .icon-button { padding: 8px 10px; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 .kpi:last-child { grid-column: 1/-1; }
  .kpi strong { font-size: 1.26rem; }
  .hero-date { font-size: 3.9rem; }
  .hero-event h2 { font-size: 1.15rem; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5,1fr); z-index: 20; }
  .bottom-item { display: grid; place-content: center; text-align: center; background: none; border: 0; }
  .bottom-item.active:after { content: ''; width: 18px; height: 3px; background: var(--coral); border-radius: 4px; justify-self: center; }
  .form-grid .full { grid-column: 1; }
  .transaction-table th:nth-child(3), .transaction-table td:nth-child(3) { display: none; }
}

@media (max-width:390px) {
  .preview-button { font-size: 0; }
  .preview-button span { font-size: 1rem; }
  .hero-date { font-size: 3.3rem; }
  .hero-event { gap: 13px; }
  .section-header { gap: 8px; }
  .section-actions .button { font-size: .75rem; }
  .kpi strong { font-size: 1.1rem; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
}

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

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

.agenda-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 18px; align-items: start; }
.shell.hide-quick-add .quick-add { display: none; }
.agenda-layout .panel { min-width: 0; }
.agenda-filters { gap: 7px; }
.agenda-filters .filter-pill { padding: 8px 10px; }
.agenda-list { max-height: 690px; overflow: auto; }
.agenda-list-row, .calendar-event-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.agenda-list-row:hover, .calendar-event-row:hover { background: var(--mint); }
.agenda-list-row:last-child, .calendar-event-row:last-child { border-bottom: 0; }
.agenda-list-row .date-chip.with-year { height: 62px; min-height: 62px; }
.year-filters { margin-bottom: 8px; }
.agenda-list-row .row-body strong, .calendar-event-row .row-body strong { white-space: normal; }
.agenda-arrow { color: var(--blue); }
.calendar .day.selected { border-color: var(--deep); }
.marker.tentative { background: transparent; border: 2px solid var(--coral); width: 7px; height: 7px; }
.marker.general { background: var(--green); }
.compact-header { align-items: center; margin-bottom: 16px; }
.compact-header .eyebrow { display: block; }
.agenda-filters { display: flex; flex-wrap: wrap; margin: 0 0 16px; }
.sidebar-toggle { align-self: flex-end; border: 1px solid #527587; line-height: 1; cursor: pointer; }
.nav-item .nav-label { width: auto; text-align: left; font-weight: inherit; }
.sidebar-collapsed .brand { margin: 0 auto 15px; }
.sidebar-collapsed .brand>span:last-child, .sidebar-collapsed .nav-eyebrow, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-bottom { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; }
.sidebar-collapsed .nav-item.active:before { margin-left: -8px; margin-right: 2px; }
@media (max-width:700px) {
  .sidebar-toggle { display: none; }
}

.calendar-events>strong { display: block; margin-bottom: 7px; }
.calendar-note { color: var(--muted); margin: 12px 0 0; }
.course-description { white-space: pre-line; line-height: 1.45; font-size: .82rem; margin: 0; color: var(--ink); }
.course-details { color: var(--muted); }
.course-details summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.course-details ul { padding-left: 18px; margin: 9px 0 0; }
.course-details li { margin: 5px 0; white-space: pre-line; }
.booking-detail-head>.button-text { min-height: 44px; margin-bottom: 6px; }
.booking-detail-head .section-header { align-items: center; }
.booking-detail-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(270px,.75fr); gap: 18px; align-items: start; }
.booking-detail-layout .panel { min-width: 0; }
.booking-detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.booking-detail-facts small, .booking-payment-totals span { display: block; color: var(--muted); margin-bottom: 5px; }
.booking-detail-facts strong, .booking-payment-totals strong { display: block; color: var(--deep); }
.booking-notes { border-top: 1px solid var(--line); padding-top: 15px; margin-bottom: 17px; white-space: pre-wrap; }
.booking-notes p { color: var(--muted); line-height: 1.5; margin: 7px 0 0; }
.booking-main .flow-line { margin: 12px 0; }
.detail-actions { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 18px; }
.booking-payment-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 17px; }
.booking-payments .info-panel { margin-bottom: 14px; }
.payment-cta { width: 100%; margin: 14px 0; }
.booking-payments .field-hint { display: block; line-height: 1.4; }
@media (max-width:1050px) {
  .agenda-layout, .booking-detail-layout { grid-template-columns: 1fr; }
}

.library-shortcut { display: none; }
@media (max-width:700px) {
  .library-shortcut { font-size: 1.2rem; min-width: 37px; }
  .agenda-list { max-height: none; }
  .booking-detail-facts { gap: 8px; }
  .booking-detail-facts div, .booking-payment-totals div { padding: 11px; }
  .booking-detail-head .section-header { align-items: flex-start; }
  .booking-detail-head .status { white-space: normal; text-align: center; }
  .detail-actions .button { flex-basis: 100%; }
}

.dashboard-kpis button.kpi { text-align: left; color: var(--ink); cursor: pointer; width: 100%; }
.artist-overview, .student-history, .document-panel { margin-top: 16px; }
.artist-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 10px; }
.artist-totals>div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.artist-totals span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.artist-totals strong { display: block; font-size: 1.22rem; margin-top: 5px; color: var(--deep); }
.student-payments { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .75rem; }
.student-payments>div { display: flex; justify-content: space-between; gap: 8px; }
.student-payments span { color: var(--muted); }
.student-list { display: grid; gap: 8px; }
.student-list details { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.student-list summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; cursor: pointer; list-style: none; }
.student-list summary::-webkit-details-marker { display: none; }
.student-list summary span { color: var(--muted); font-size: .76rem; text-align: right; }
.student-list details>div { border-top: 1px solid var(--line); padding: 4px 10px; }
.student-list details button { display: flex; justify-content: space-between; gap: 12px; text-align: left; width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 4px; color: var(--ink); font-size: .76rem; }
.student-list details button:last-child { border-bottom: 0; }
.student-list details button strong { white-space: nowrap; color: var(--blue); }
.finance-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.finance-summary span { background: var(--mint); border-radius: 9px; padding: 8px 11px; font-size: .75rem; color: var(--deep); }
.artist-warning, .finance-warning { margin-top: 12px; }
.document-panel .panel-header { align-items: flex-start; }
.document-panel .panel-header p { font-size: .76rem; margin: 5px 0 0; }
.document-list { margin-top: 14px; }
.document-list .list-row { gap: 8px; }
.document-list .row-body strong, .document-list .row-body small { white-space: normal; }
.library-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.library-filters label { font-size: .75rem; font-weight: 700; color: var(--deep); }
.library-filters .form-control { margin-top: 5px; }
.billing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 16px; }
.billing-grid .panel, .payment-links-panel { min-width: 0; }
.billing-summary { display: grid; gap: 5px; padding: 13px; background: var(--mint); border-radius: 11px; font-size: .8rem; margin: 14px 0; }
.billing-summary strong { color: var(--deep); font-size: .93rem; }
.saved-clients { display: grid; gap: 7px; margin-top: 14px; }
.saved-clients button { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 10px 12px; min-height: 44px; color: var(--ink); }
.saved-clients small { color: var(--muted); }
.payment-links-panel { margin-top: 16px; }
.payment-links-panel .panel-header p { font-size: .78rem; margin: 5px 0 0; }
.payment-link-list { display: grid; gap: 8px; }
.payment-link-row { display: flex; justify-content: space-between; align-items: start; gap: 15px; border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.payment-link-row>div { min-width: 0; flex: 1; }
.payment-link-row strong, .payment-link-row small { display: block; }
.payment-link-row small { color: var(--muted); margin-top: 3px; }
.prepared-link { margin-top: 10px; padding: 10px; background: var(--mint); border-radius: 9px; font-size: .78rem; }
.prepared-link .item-actions { margin-top: 8px; }
.payment-link-row>.button { white-space: nowrap; }
.google-calendar-panel { margin: 14px 0 16px; }
.google-calendar-panel .panel-header { align-items: flex-start; }
.google-calendar-panel .panel-header p { margin: 4px 0 0; font-size: .78rem; }
.calendar-sync-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0; }
.calendar-sync-actions .button:disabled { opacity: .55; cursor: not-allowed; }
.google-calendar-panel .field-hint { display: block; line-height: 1.45; margin: 8px 0; }
.google-calendar-panel .warning { margin-top: 10px; }
.hero-card-upcoming { gap: 18px; min-height: 236px; }
.hero-card-upcoming.is-empty { align-self: start; gap: 8px; }
.hero-upcoming-head, .hero-booking-list, .hero-upcoming-empty { position: relative; z-index: 1; }
.hero-upcoming-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.hero-upcoming-head h2 { line-height: 1.3; }
.hero-upcoming-head button, .hero-upcoming-empty button { border: 0; background: none; text-decoration-color: var(--coral); text-underline-offset: 5px; padding: 10px 0; white-space: nowrap; cursor: pointer; }
.hero-booking-list { display: grid; max-height: 285px; overflow-y: auto; }
.hero-booking-row { display: flex; align-items: center; gap: 13px; text-align: left; padding: 10px 2px; border: 0; border-top: 1px solid rgba(255,255,255,.2); background: none; color: white; cursor: pointer; }
.hero-booking-row:hover, .hero-booking-row:focus-visible { background: rgba(255,255,255,.08); }
.hero-booking-date { min-width: 62px; }
.hero-booking-main { min-width: 0; flex: 1; }
.hero-booking-main strong, .hero-booking-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-booking-main small { margin-top: 3px; }
.hero-booking-status { text-align: right; max-width: 120px; }
.hero-link-arrow, .hero-booking-arrow { display: inline-block; font-family: Arial,sans-serif; font-size: 1rem; line-height: 1; transform: rotate(-45deg); }
.hero-booking-arrow { flex: 0 0 18px; width: 18px; text-align: center; }
.booking-suggestion-panel { display: grid; gap: 8px; min-width: 0; padding: 13px; border: 1px solid var(--line); background: var(--paper); }
.booking-suggestion-panel>strong { font-size: .83rem; color: var(--deep); }
.booking-suggestion-panel>.field-hint { line-height: 1.4; }
#booking-suggestion-options, .booking-suggestion-group { display: grid; gap: 8px; min-width: 0; }
.booking-suggestion-group>small { font-size: .75rem; font-weight: 800; color: var(--muted); }
.booking-place-options { display: flex; gap: 6px; flex-wrap: wrap; }
.booking-place-options button { border: 1px solid #cbdcda; background: white; color: var(--deep); min-height: 44px; padding: 9px 11px; font-size: .76rem; }
.booking-place-options button:hover, .booking-history-options button:hover { border-color: var(--blue); background: var(--mint); }
.booking-history-options { display: grid; gap: 6px; }
.booking-history-options button { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 9px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 9px 11px; min-height: 51px; }
.booking-history-options button strong { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.booking-history-options button span:not(.booking-reuse-action) { grid-column: 1; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.booking-history-options .booking-reuse-action { grid-column: 2; grid-row: 1 / span 2; color: var(--blue); font-size: .75rem; font-weight: 800; }
#booking-suggestion-feedback { margin: 0; color: var(--deep); font-size: .75rem; font-weight: 700; }
#booking-suggestion-feedback:empty { display: none; }
.payment-chart-panel .panel-header { margin-bottom: 8px; }
.payment-chart-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; border: 0; color: var(--deep); cursor: pointer; }
.payment-chart-toggle:hover, .payment-chart-toggle:focus-visible { outline: 2px solid var(--blue); }
#payment-chart-body:not([hidden]) { margin-top: 18px; }
.drive-panel { margin-bottom: 16px; }
.drive-panel .panel-header { align-items: flex-start; }
.drive-panel .panel-header p { margin: 4px 0 0; font-size: .8rem; }
.drive-panel .item-actions { margin: 13px 0; }
.drive-panel .field-hint { display: block; margin-top: 8px; line-height: 1.45; }
#drive-upload-progress { display: block; width: 100%; height: 12px; accent-color: var(--green); margin-top: 8px; }
#drive-upload-progress[hidden] { display: none; }
@media (max-width:700px) {
  .hero-card-upcoming { padding: 22px; }
  .hero-upcoming-head { display: block; }
  .hero-upcoming-head button { margin-top: 3px; }
  .hero-booking-row { display: grid; column-gap: 8px; row-gap: 2px; }
  .hero-booking-date { min-width: 0; grid-column: 1; grid-row: 1 / span 2; }
  .hero-booking-main { grid-column: 2; grid-row: 1; }
  .hero-booking-status { grid-column: 2; grid-row: 2; max-width: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .hero-booking-arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; }
  .prototype-note { display: block; line-height: 1.45; }
  .prototype-note strong { display: block; margin-bottom: 4px; }
  .prototype-note button { display: block; margin: 7px 0 0; padding: 5px 0; text-align: left; }
  .artist-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .artist-totals strong { font-size: 1.08rem; }
  .document-panel .panel-header { flex-direction: column; align-items: stretch; }
  .document-list .list-row { align-items: flex-start; }
  .document-list .row-end { white-space: normal; }
  .student-list details button { flex-direction: column; gap: 3px; }
  .payment-link-row { display: grid; }
  .payment-link-row>.button { width: 100%; }
  .prepared-link .item-actions { flex-wrap: wrap; }
  .google-calendar-panel .panel-header { gap: 10px; }
  .calendar-sync-actions .button { flex: 1 1 155px; }
  .quick-options button { min-height: 44px; }
}

.device-sync-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); color: var(--deep); }
.device-sync-panel>div:first-child { display: grid; gap: 4px; min-width: 180px; flex: 1; }
.device-sync-panel small { color: var(--muted); }
.device-sync-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.device-sync-actions .button { min-height: 44px; }
.device-sync-actions .button.sync-confirmed { background: #dcf4e6; border-color: #78b993; color: #17633a; }
.device-sync-email { display: grid; gap: 4px; min-width: min(100%,230px); font-size: .75rem; font-weight: 700; color: var(--ink); }
.device-sync-email .form-control { min-height: 44px; }
.device-lock { max-width: 680px; }
.device-lock h1 { margin: 12px 0; }
.device-lock>p { line-height: 1.55; color: var(--muted); }
.device-lock .device-sync-panel { margin: 25px 0 0; }
@media (max-width:700px) {
  .device-sync-panel { align-items: stretch; }
  .device-sync-actions { width: 100%; }
  .topbar { padding-top: calc(12px + env(safe-area-inset-top)); }
  .bottom-item.active:after { position: static; bottom: auto; margin: 3px auto 0; }
}

.private-video-section { min-width: 0; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.private-video-section h3 { margin: 0; color: var(--deep); }
.private-video-section>.field-hint { margin: 0; line-height: 1.45; }
.private-video-section .form-grid { width: 100%; }
.private-video-links { display: grid; gap: 8px; }
.private-video-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); min-width: 0; }
.private-video-link span { min-width: 0; display: grid; gap: 3px; }
.private-video-link strong { overflow-wrap: anywhere; }
.private-video-link small { color: var(--muted); }
.private-video-link a { flex: 0 0 auto; color: var(--blue); font-weight: 700; }
#private-video-file { min-width: 0; max-width: 100%; }
#private-video-progress { display: block; width: 100%; height: 12px; accent-color: var(--green); }
#private-video-progress[hidden] { display: none; }
#private-video-status { font-size: .75rem; line-height: 1.45; margin: 0; color: var(--muted); }
@media (max-width:700px) {
  .private-video-link { align-items: flex-start; flex-direction: column; }
  .private-video-link a { min-height: 44px; display: inline-flex; align-items: center; }
}

.section-fold-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.section-fold-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--deep); }
.section-fold-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); padding: 7px 11px; color: var(--deep); white-space: nowrap; cursor: pointer; }
.section-fold-button:hover, .section-fold-button:focus-visible { border-color: var(--blue); outline-color: var(--blue); }
.section-fold-button span { font-size: 1.05rem; line-height: .7; }
.section-fold-body[hidden] { display: none; }
@media (max-width:700px) {
  .panel-header:has(.section-fold-controls) { align-items: flex-start; flex-wrap: wrap; }
  .section-fold-controls { margin-left: auto; }
  .section-fold-toolbar { flex-wrap: wrap; }
}

h3 { letter-spacing: 0; }
.eyebrow, .label-small { color: var(--muted); }
[hidden] { display: none!important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { width: 19px; height: 19px; min-width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
.sidebar { overflow-y: auto; overscroll-behavior: contain; }
.brand { min-width: 0; flex-shrink: 0; }
.brand strong { color: #fff; white-space: nowrap; }
.brand small { font-weight: 400; }
.brand-mark, .side-nav { flex-shrink: 0; }
.nav-item .nav-label { font-size: inherit; line-height: 1.35; min-width: 0; overflow-wrap: normal; }
.sidebar-toggle { border-radius: 6px; font-size: 1.35rem; }
.sidebar-footer { margin-top: auto; flex-shrink: 0; }
.sidebar-settings { width: 100%; }
.sidebar-bottom { border-top: 1px solid #34495c; }
.sidebar-caption { line-height: 1.4; margin: 6px 0 0; overflow-wrap: anywhere; }
.sidebar-privacy { display: inline-block; margin-top: 10px; text-underline-offset: 3px; }
.sidebar-collapsed .brand { margin-bottom: 20px; }
.sidebar-collapsed .brand-mark { width: 30px; }
.sidebar-collapsed .sidebar-toggle { margin: 0 auto 15px; }
.sidebar-collapsed .sidebar-footer { width: 100%; }
.sidebar-collapsed .sidebar-settings { display: flex; }
.topbar { gap: 18px; }
.topbar-title { gap: 3px; min-width: 100px; }
.topbar-actions { align-items: center; min-width: 0; }
.icon-button, .button { gap: 7px; }
.button-small { border-radius: 6px; }
.global-search-toggle { justify-content: flex-start; font-weight: 400; }
.global-search-toggle .ui-icon { width: 17px; height: 17px; min-width: 17px; }
.preview-button { background: transparent; max-width: 200px; }
.organizer-shortcut { display: none; }
.panel { min-width: 0; }
.panel-header { flex-wrap: wrap; }
.panel-header h2 { line-height: 1.4; }
.panel-header a, .panel-header button { font-weight: 500; }
.item-card { min-width: 0; }
.item-top .status { white-space: normal; text-align: center; }
.kpi-accent, .kpi-coral { background: #fff; }
.kpi strong { margin-top: 7px; }
.home-welcome { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; }
.home-welcome p { margin: 0; }
.home-welcome-art { position: absolute; inset: 0 0 0 auto; width: 42%; z-index: -1; object-fit: cover; opacity: .6; mask-image: linear-gradient(90deg,transparent,#000 55%); }
.hero-card, .hero-card-upcoming:not(.is-empty) { padding: 22px; min-height: 196px; color: #f0f5fd; gap: 13px; }
.hero-card:before, .hero-card:after { display: none; }
.hero-card-upcoming.is-empty { min-height: 0; border: 1px solid #e1e9f4; color: var(--ink); padding: 20px; }
.hero-upcoming-head h2 { margin: 7px 0 0; }
.hero-card .eyebrow { color: #baccdf; letter-spacing: .025em; }
.hero-card-upcoming.is-empty .eyebrow { color: #647991; }
.hero-upcoming-head button, .hero-upcoming-empty button { font-weight: 500; font-size: .75rem; text-decoration: none; color: #dce9ff; }
.hero-card-upcoming.is-empty button { color: var(--blue); }
.hero-booking-date { color: #c3d6fc; font-size: .76rem; font-weight: 600; }
.hero-booking-row { min-height: 61px; border-top-color: #40536c; }
.hero-booking-main strong { font-size: .86rem; font-weight: 500; }
.hero-booking-main small, .hero-booking-status { font-size: .7rem; color: #bdcce0; }
.hero-booking-list { scrollbar-color: #7188aa transparent; }
.bar { border-radius: 3px 3px 0 0; }
.chart-legend { justify-content: flex-start; }
.donut strong { font-weight: 500; }
.donut-legend button { align-items: center; padding: 4px 0; }
.donut-legend span { line-height: 1.3; }
.payment-chart-toggle { background: #f3f6fc; border-radius: 6px; font-size: .75rem; font-weight: 500; padding: 8px 11px; }
.overview-heading { margin: 25px 0 14px; }
.overview-heading h2 { font-size: 1.14rem; }
.overview-two>div { background: #f5f8fd; border-radius: 6px; }
.overview-big strong, .overview-two strong { font-weight: 600; }
.progress-label, .overview-foot, .checklist span { font-size: .75rem; }
.action-grid strong { font-weight: 500; }
.date-chip strong { font-weight: 600; }
.date-chip small, .agenda-list-row .date-chip.with-year small:last-child { letter-spacing: 0; }
.filter-pill, .tab, .row-body strong { font-weight: 500; }
.form-control { border-color: #d5dfeb; }
.field-hint { overflow-wrap: anywhere; }
.transaction-table th { text-transform: none; letter-spacing: 0; }
.amount-positive, .amount-negative { font-weight: 500; }
.prototype-note strong { font-weight: 600; }
.prototype-note button { font-weight: 500; }
.calendar { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar .weekday { padding: 10px 0; text-transform: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar .day { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }
.calendar .day.outside { opacity: 1; }
.calendar .day.selected { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar .day.today { border-width: 0; }
.calendar-head strong { font-weight: 600; }
.calendar-head button { border-radius: 6px; }
.calendar .day .markers { flex-wrap: wrap; gap: 3px; }
.marker { width: 6px; height: 6px; }
.calendar-event-label { display: block; margin-top: 5px; border-radius: 3px; padding: 3px; line-height: 1.25; overflow-wrap: anywhere; }
.agenda-arrow { font-size: 1rem; }
.booking-detail-facts div, .booking-payment-totals div { background: #f6f9fd; border-radius: 7px; padding: 13px; }
.booking-detail-facts strong, .booking-payment-totals strong { font-weight: 500; font-size: 1rem; }
.booking-detail-facts small, .booking-payment-totals span { font-size: .75rem; }
.booking-suggestion-panel { border-radius: 7px; }
.booking-place-options button { border-radius: 6px; font-weight: 500; }
.flow-step.current .dot { background: #9e79d9; box-shadow: 0 0 0 4px #f0eafb; }
.flow-step.current small { font-weight: 600; }
.library-counts { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
.library-count { min-height: 88px; gap: 6px; }
.library-count strong { font-size: 1.2rem; font-weight: 500; }
.video-thumb { border-radius: 7px; }
.video-thumb small { font-size: .75rem; font-weight: 500; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.course-details { font-size: .75rem; }
.private-video-section h3 { font-size: .93rem; }
.private-video-link { border-radius: 7px; }
.device-sync-panel { margin-bottom: 16px; background: #fff; }
.device-sync-panel strong { font-weight: 500; }
.section-fold-button { border-radius: 6px; font-weight: 500; }
.section-fold-toolbar strong { font-weight: 500; }
.quick-add { color: #fff; }
.quick-options button { font-size: 1rem; }
.quick-options button span:first-child { font-weight: 500; }
.public-wrap { max-width: 1100px; }
.public-hero { color: #173457; }
.public-hero:after { display: none; }
.public-hero .eyebrow { color: #526e95; }
.public-request-layout, .public-request-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); gap: 18px; align-items: start; margin-top: 18px; }
.public-request-layout .public-form, .public-request-grid .public-form { margin: 0; }
.calendly-panel { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.calendly-panel p { font-size: .82rem; line-height: 1.55; color: var(--muted); }
.people-toolbar, .list-toolbar, .export-toolbar { display: flex; gap: 10px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 17px; }
.people-toolbar .form-control, .list-toolbar .form-control { min-width: 0; }
.people-table { table-layout: fixed; }
.people-table th { text-align: left; vertical-align: bottom; }
.people-table td { overflow-wrap: anywhere; }
.people-table tr:last-child td { border-bottom: 0; }
.people-table th:first-child { width: 32%; }
.people-table button { font-size: .8rem; font-weight: 500; }
.person-cell { display: flex; align-items: center; gap: 11px; min-width: 0; text-align: left; }
.person-avatar { display: grid; place-items: center; width: 37px; height: 37px; min-width: 37px; flex-shrink: 0; font-size: .8rem; font-weight: 500; overflow: hidden; }
.person-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-avatar.large { width: 64px; height: 64px; min-width: 64px; border-radius: 10px; font-size: 1.4rem; }
.person-name { display: block; color: var(--ink); font-size: .86rem; font-weight: 500; }
.person-meta { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.role-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.role-tag { display: inline-flex; padding: 3px 7px; background: #edf2fc; color: #506a93; border-radius: 4px; font-size: .75rem; }
.people-profile, .person-profile { min-width: 0; }
.profile-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.profile-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.profile-identity h1 { margin: 0 0 7px; }
.profile-tabs { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-tabs button { padding: 11px 1px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: none; min-height: 43px; }
.profile-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(230px,1fr); gap: 16px; align-items: start; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.profile-facts dt { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.profile-facts dd { font-size: .82rem; margin: 0; overflow-wrap: anywhere; }
.entity-links, .related-items { display: grid; gap: 8px; }
.entity-link, .related-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 10px 0; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: .82rem; }
.entity-link small, .related-item small { display: block; color: var(--muted); font-size: .75rem; }
.entity-link:last-child, .related-item:last-child { border-bottom: 0; }
.mention-chip { display: inline-flex; align-items: center; gap: 5px; background: #edf2fc; color: #416aaf; border: 1px solid #dce7f8; border-radius: 5px; padding: 4px 7px; font-size: .75rem; }
.mention-options { display: grid; gap: 7px; margin-top: 9px; }
.dj-layout { display: grid; grid-template-columns: minmax(240px,.85fr) minmax(0,1.5fr); align-items: start; }
.dj-layout .panel, .dj-set-card { border: 1px solid #2d4057; box-shadow: none; }
.dj-set-card { overflow: hidden; min-width: 0; }
.dj-set-card .item-actions { padding-top: 12px; }
.dj-set-card h2, .dj-set-card h3 { color: #f1f5ff; }
.dj-layout .muted, .dj-layout small, .dj-set-card small { color: #bacbe0; }
.dj-layout .eyebrow { color: #abc0dc; }
.dj-cover { height: 220px; display: grid; place-items: center; background: linear-gradient(140deg,#244263,#2b2551); border-radius: 7px; overflow: hidden; color: #dbe8ff; position: relative; }
.dj-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dj-cover svg, .dj-cover .ui-icon { width: 42px; height: 42px; }
.dj-set-body { padding: 20px; }
.dj-source { display: inline-flex; font-size: .75rem; color: #b8c9e0; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.dj-set-list { display: grid; gap: 8px; }
.dj-set-list button { display: grid; gap: 5px; text-align: left; background: #192a3d; color: #f0f5fc; border: 1px solid #2d4057; border-radius: 7px; padding: 13px; min-height: 56px; }
.dj-set-list button.active { border-color: #8c82d2; background: #26334f; }
.dj-set-list strong { font-size: .83rem; font-weight: 500; }
.dj-set-list small { font-size: .75rem; }
.dj-layout .button-text { color: #adc8ff; }
.dj-layout .status { background: #2b4261; color: #d1e1ff; }
.soundcloud-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; border-radius: 6px; text-decoration: none; font-size: .78rem; }
.global-search-field { position: relative; }
.global-search-field .form-control { padding-left: 38px; font-size: 1rem; }
.global-search-field>.ui-icon { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.global-search-results { display: grid; gap: 0; margin-top: 16px; max-height: min(60vh,580px); overflow-y: auto; min-width: 0; }
.search-result { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; color: var(--ink); }
.search-result:hover { background: #f3f7fd; }
.search-result strong { display: block; font-weight: 500; }
.search-result small { display: block; color: var(--muted); margin-top: 3px; }
.search-result>span { min-width: 0; overflow-wrap: anywhere; }
.search-group-title { font-size: .75rem; color: var(--muted); font-weight: 500; margin: 14px 0 5px; padding: 0 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.settings-grid>.panel { min-width: 0; }
.settings-section { display: grid; gap: 14px; }
.settings-section h2 { margin-bottom: 0; }
.settings-section p { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.navigation-order { display: grid; gap: 0; }
.navigation-order>div, .navigation-order>li { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.navigation-order>div:last-child, .navigation-order>li:last-child { border: 0; }
.navigation-order .nav-name, .navigation-order .row-body { flex: 1; min-width: 0; font-size: .8rem; }
.navigation-order .button { min-width: 36px; min-height: 36px; padding: 6px 9px; }
.usage-table th, .usage-table td { text-align: left; }
.more-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.more-grid>button, .more-grid>a { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.more-grid .ui-icon { width: 23px; height: 23px; min-width: 23px; }
.more-grid small { display: block; color: var(--muted); margin-top: 4px; }
.more-grid>button:hover, .more-grid>a:hover { background: #f1f6fe; border-color: #bfd0f0; }
.export-summary { background: #f3f7fc; border-radius: 7px; padding: 13px 15px; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.export-summary strong { font-weight: 600; }
.migration-summary { display: grid; gap: 10px; min-width: 0; }
.migration-summary pre { max-width: 100%; overflow: auto; font-size: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width:1200px) {
  .dashboard-top { grid-template-columns: minmax(0,1.25fr) minmax(260px,.9fr); }
  .dashboard-charts { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
}

@media (min-width:701px) and (max-width:1050px) {
  .shell { grid-template-columns: 180px minmax(0,1fr); }
  .brand strong { font-size: .98rem; }
  .sidebar { padding-left: 9px; padding-right: 9px; }
  .nav-item { font-size: .75rem; padding-left: 9px; padding-right: 9px; gap: 8px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .global-search-toggle { min-width: 0; width: 40px; padding: 9px; }
  .global-search-toggle span { display: none; }
  .preview-button { font-size: 0; min-width: 39px; }
  .preview-button span { font-size: 1rem; }
  .settings-grid, .profile-grid { grid-template-columns: 1fr; }
  .people-table th:first-child { width: 35%; }
  .dj-layout { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .mobile-brand { min-width: 0; }
  .mobile-brand strong { font-weight: 600; white-space: nowrap; }
  .global-search-toggle { min-width: 44px; }
  .global-search-toggle span { display: none; }
  .global-search-toggle .ui-icon { width: 20px; height: 20px; }
  .library-shortcut, .organizer-shortcut { display: none; }
  .preview-button { padding: 8px; background: transparent; border-color: transparent; }
  #main-content { overflow-wrap: anywhere; }
  .section-header { flex-wrap: wrap; }
  .section-header .button { min-height: 44px; }
  .section-actions .button { min-width: 0; }
  .home-welcome { align-items: flex-start; gap: 10px; }
  .home-welcome .button { padding: 8px 10px; min-height: 40px; font-size: .75rem; flex-shrink: 0; }
  .hero-card, .hero-card-upcoming:not(.is-empty) { padding: 19px; min-height: 0; }
  .hero-upcoming-head h2 { font-size: 1rem; }
  .hero-booking-row { padding-top: 12px; padding-bottom: 12px; grid-template-columns: 50px minmax(0,1fr) 18px; }
  .hero-booking-status, .hero-booking-date { font-size: .75rem; }
  .hero-booking-main strong { font-size: .82rem; }
  .hero-booking-main small { font-size: .7rem; }
  .dashboard-kpis .kpi .label-small { letter-spacing: 0; }
  .dashboard-kpis .kpi:last-child { grid-column: auto; }
  .overview-grid, .dj-layout, .public-request-layout, .public-request-grid { grid-template-columns: 1fr; }
  .donut-wrap { justify-content: center; }
  .bar-chart { padding: 0; }
  .action-grid small { font-size: .75rem; }
  input, select, textarea { font-size: 16px; }
  .item-top .status { max-width: 48%; padding: 4px 6px; }
  .cards { grid-template-columns: minmax(0,1fr); }
  .calendar .weekday { padding: 8px 0; }
  .calendar .day .markers { gap: 3px; }
  .library-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-count { min-height: 85px; }
  .library-count strong { font-size: 1.22rem; }
  .library-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .search-input { max-width: none; min-width: 0; }
  .library-toolbar .search-input { flex: 1 1 100%; }
  .library-filters { grid-template-columns: 1fr 1fr; }
  .library-filters label { font-size: .75rem; }
  .people-table .optional-column { display: none; }
  .person-cell { gap: 8px; }
  .person-avatar { width: 32px; height: 32px; min-width: 32px; }
  .person-name { font-size: .79rem; }
  .person-meta { font-size: .75rem; }
  .role-tag { font-size: .75rem; padding: 3px 5px; }
  .profile-header { gap: 13px; }
  .profile-identity { gap: 12px; }
  .profile-identity h1 { font-size: 1.48rem; }
  .profile-tabs { gap: 18px; margin-bottom: 17px; }
  .profile-tabs button { font-size: .76rem; min-height: 44px; }
  .profile-facts { gap: 14px; }
  .dj-cover { height: 190px; }
  .dj-set-body { padding: 16px; }
  .dj-set-list button { min-height: 58px; }
  .soundcloud-link { min-height: 44px; }
  .more-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .more-grid>button, .more-grid>a { align-items: flex-start; flex-direction: column; gap: 9px; }
  .navigation-order .button { min-width: 44px; min-height: 44px; }
  .usage-table th, .usage-table td { padding: 10px 7px; }
  .bottom-item { position: relative; align-items: center; justify-items: center; font-size: 1rem; }
  .bottom-item .ui-icon { min-width: 20px; }
  .bottom-item small { font-weight: 500; }
  .bottom-item.active:after { display: none; }
  .public-brand { gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
  .public-brand strong { font-size: .83rem; letter-spacing: .08em; }
}

@media (max-width:370px) {
  .home-welcome { padding: 20px 15px; }
  .home-welcome .button { font-size: .7rem; padding: 7px 8px; }
  .dashboard-kpis .kpi:last-child { grid-column: auto; }
  .person-avatar { width: 28px; height: 28px; min-width: 28px; font-size: .7rem; }
  .person-cell { gap: 6px; }
}

.finance-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.finance-kpis .kpi { min-width: 0; }
.finance-kpis .kpi>span { display: block; line-height: 1.4; }
.finance-kpis .kpi>strong { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.finance-kpis~.warning { margin: 0 0 17px; padding: 13px 16px; }
.panel:has(#finance-month)>label { display: inline-flex; align-items: center; gap: 10px; margin: 0 12px 16px 0; font-size: .77rem; color: var(--muted); }
#finance-month { width: 164px; min-height: 39px; }
.table-wrap>table:not([class]) th { white-space: nowrap; }
.table-wrap>table:not([class]) tr:last-child td { border-bottom: 0; }
.table-wrap>table:not([class]) td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap>table:not([class]) td>.button { font-size: .75rem; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.people-table td>small { display: block; margin: 4px 0 0; overflow-wrap: anywhere; }
.people-table td>.button { display: inline-flex; justify-content: flex-start; max-width: 100%; padding: 4px 0; border: 0; background: transparent; border-radius: 3px; box-shadow: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.people-table td>.button:hover { color: #244e8b; text-decoration: underline; }
.people-profile .panel>p { line-height: 1.6; overflow-wrap: anywhere; }
.people-profile .list-row:last-child { border-bottom: 0; }
.people-profile .row-body { min-width: 0; }
.people-profile .row-body strong { white-space: normal; overflow-wrap: anywhere; }
#main-content>[data-action="people-back"] { margin-bottom: 16px; padding: 6px 0; min-height: 36px; border: 0; background: none; box-shadow: none; }
.filters>label { display: grid; gap: 6px; color: var(--muted); }
.filters>[data-cockpit-filter="query"] { width: 240px; flex: 1 1 200px; }
#main-content>[data-cockpit-filter="query"] { margin-bottom: 18px; min-height: 45px; }
#main-content>[data-cockpit-filter="query"]~.panel { margin-bottom: 13px; }
#main-content>[data-cockpit-filter="query"]~.panel>.button { margin: 0 7px 7px 0; text-align: left; white-space: normal; }
.dj-layout:has(>.dj-set-card) { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
.dj-layout>.empty { grid-column: 1/-1; padding: 30px 20px; }
.dj-set-card>img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 0 19px; background: #223951; }
.dj-set-card>.eyebrow { display: block; margin-bottom: 9px; }
.dj-set-card>h2 { line-height: 1.4; margin: 0 0 10px; overflow-wrap: anywhere; }
.dj-set-card>p { overflow-wrap: anywhere; margin: 0 0 14px; }
.dj-set-card>.button { margin: 3px 5px 3px 0; white-space: normal; text-align: left; }
.settings-grid>.panel>h2 { margin-bottom: 16px; }
.settings-grid>.panel>.button { white-space: normal; text-align: left; }
.settings-grid>.panel>p, .settings-grid details p { color: var(--muted); overflow-wrap: anywhere; }
.settings-grid details { border-bottom: 1px solid var(--line); }
.settings-grid details:last-child { border-bottom: 0; }
.settings-grid summary { cursor: pointer; }
.navigation-order .list-row>strong { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.navigation-order .list-row>.button { flex-shrink: 0; margin: 0; }
.navigation-order .button:disabled { opacity: .35; cursor: default; }
.panel>pre { max-width: 100%; max-height: 440px; overflow: auto; padding: 14px; border: 1px solid #e5ebf4; border-radius: 6px; font-size: .75rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-fields fieldset { min-width: 0; margin: 0; border: 1px solid #dce4f0; }
.dialog-fields fieldset legend { padding: 0 5px; color: var(--muted); }
.dialog-fields fieldset label { display: inline-flex; align-items: center; gap: 7px; margin: 5px 13px 5px 0; }
#course-students .list-row { flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
#course-students .list-row>strong { flex: 1; min-width: 100px; font-size: .84rem; font-weight: 500; }
#course-students .list-row>label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; }
#course-students input[type="number"] { width: 110px; }
@media (max-width:1050px) {
  .dj-layout:has(>.dj-set-card) { grid-template-columns: 1fr; }
}

@media (max-width:700px) {
  .finance-kpis .kpi:last-child { min-height: 85px; }
  .filters>[data-cockpit-filter="query"] { flex-basis: 100%; }
  .dj-set-card>img { margin-bottom: 16px; }
  .navigation-order .list-row>.button { min-width: 44px; min-height: 44px; }
  .panel>pre { max-height: 330px; }
}

@media (min-width:1100px) {
  .dashboard-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.request-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.managed-folders-panel { margin-top: 20px; }
.managed-folder-row { gap: 12px; flex-wrap: wrap; }
.managed-folder-row .row-body { min-width: 180px; flex: 1; }
.folders-dialog { width: min(760px, calc(100vw - 24px)); max-height: min(88vh, 900px); overflow: auto; }
.folder-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.folder-form-grid label { display: grid; gap: 6px; }
.folder-form-grid label:first-child { grid-column: 1 / -1; }
.folder-chooser, .folder-file-list { max-height: 300px; overflow: auto; border: 1px solid var(--line); padding: 8px; margin: 12px 0; }
.folder-trail { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.folder-status { padding: 10px 12px; border-radius: 10px; }
@media (max-width:640px) {
  .folder-form-grid { grid-template-columns: 1fr; }
  .folders-dialog { width: calc(100vw - 12px); }
}

@media (max-width:700px) {
  .device-sync-panel.legacy .device-sync-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .device-sync-panel.legacy .device-sync-actions .button { min-width: 0; width: 100%; white-space: normal; }
}

.navigation-order .list-row { flex-wrap: wrap; gap: 8px; }
.navigation-order .list-row>strong { flex: 1 1 150px; }
.navigation-order .list-row>.section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.navigation-order .list-row>.section-actions .button { margin: 0; }
@media (max-width:600px) {
  .navigation-order .list-row>.section-actions { justify-content: flex-start; width: 100%; }
}

.finance-kpis.finance-balance { grid-template-columns: minmax(0,1fr); }
.settings-opening-value { display: flex; flex-direction: column; gap: 3px; margin: 13px 0 17px; }
.settings-opening-value strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.settings-opening-value span { color: var(--muted); font-size: .86rem; }
#form-dialog .form-grid > *, #form-dialog .field { min-width: 0; }
#form-dialog .form-control { max-width: 100%; box-sizing: border-box; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: .875rem; line-height: 1.55; min-width: 0; -webkit-text-size-adjust: 100%; }
h1, h2, h3, .brand strong, .topbar-title strong, .hero-date, .hero-empty, .kpi strong, .date-chip strong, .item-money strong, .summary-bar strong, .calendar-head strong, .public-brand strong, .donut strong, .overview-big strong, .overview-two strong, .library-count strong, .mobile-brand, .booking-detail-facts strong, .booking-payment-totals strong, .artist-totals strong, .finance-summary strong { font-family: var(--font-display); }
h1 { font-size: clamp(1.65rem,2.1vw,2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
h3 { font-size: .9375rem; font-weight: 600; line-height: 1.4; }
small, .eyebrow, .label-small { font-size: .75rem; }
.eyebrow, .label-small { font-weight: 500; letter-spacing: .015em; text-transform: none; }
.nav-eyebrow { font-weight: 500; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: rgba(49,95,205,.12); }
button:disabled { cursor: not-allowed; opacity: .55; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--deep); color: white; padding: 12px 18px; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.shell { grid-template-columns: 240px minmax(0,1fr); }
.sidebar { background: var(--deep); padding: 28px 16px 20px; color: #d8e0ee; scrollbar-width: thin; scrollbar-color: #64748b transparent; }
.brand { margin: 0 10px 28px; gap: 12px; }
.brand strong { font-size: 1.125rem; letter-spacing: -.03em; font-weight: 600; }
.brand small { font-size: .75rem; color: #b4bfd0; margin-top: 3px; letter-spacing: .03em; }
.brand-mark { width: 34px; height: 38px; color: #a5baff; }
.brand-mark svg { width: 34px; height: 34px; }
.nav-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #a5b1c3; margin: 0 12px 10px; }
.side-nav { gap: 5px; }
.nav-item { position: relative; min-height: 44px; padding: 11px 12px; gap: 12px; border-radius: 7px; font-size: .84375rem; line-height: 1.4; font-weight: 400; color: #cbd5e4; }
.nav-item .ui-icon { color: #a5b3c7; }
.nav-item:hover { background: #2c3b4d; color: white; }
.nav-item.active { background: #314765; color: white; font-weight: 600; }
.nav-item.active .ui-icon { color: #a5baff; }
.nav-item.active:before { display: block; content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; height: auto; margin: 0; border-radius: 0 3px 3px 0; background: #81a4ff; }
.sidebar-toggle { min-width: 34px; width: 34px; min-height: 34px; height: 34px; margin: -10px 0 16px; color: #d8e0ee; background: #2d3d51; border-color: #485a71; }
.sidebar-toggle:hover, .sidebar-toggle:focus-visible { background: #3c506b; }
.sidebar-footer { padding-top: 26px; }
.sidebar-bottom { margin: 0 12px; padding-top: 16px; border-color: #3d4b5d; color: #bdc8d8; font-size: .75rem; }
.sidebar-caption, .sidebar-privacy { color: #aebdd0; font-size: .75rem; }
.sidebar-settings { margin-bottom: 16px; }
.sidebar button:focus-visible, .sidebar a:focus-visible { outline-color: #a5baff; }
.shell.sidebar-collapsed { grid-template-columns: 78px minmax(0,1fr); }
.sidebar-collapsed .sidebar { padding: 28px 12px 20px; }
.sidebar-collapsed .nav-item { min-height: 44px; padding: 11px; }
.sidebar-collapsed .nav-item.active:before { left: -12px; margin: 0; }
.topbar { min-height: 78px; padding: 15px clamp(22px,3vw,40px); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 1px 4px rgba(34,46,60,.02); }
.topbar-title strong { font-size: 1rem; font-weight: 600; }
.topbar-title .eyebrow { font-size: .75rem; }
.topbar-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.global-search-toggle { min-width: 225px; background: var(--paper); border-color: var(--line); color: var(--muted); font-size: .8125rem; }
.preview-button { font-size: .75rem; line-height: 1.4; }
#main-content { padding: 30px clamp(22px,3vw,40px) 96px; max-width: 1536px; overflow-wrap: anywhere; }
.section-header { gap: 18px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.section-header>div { min-width: 0; }
.section-header h1 { margin: 0; }
.section-header p { font-size: .84375rem; line-height: 1.55; margin: 6px 0 0; color: var(--muted); }
.section-actions { gap: 8px; align-items: center; min-width: 0; max-width: 100%; flex-wrap: wrap; }
.section-actions .button { flex-shrink: 1; }
.icon-button, .button { min-height: 40px; padding: 9px 13px; font-size: .8125rem; line-height: 1.45; font-weight: 500; border-radius: 7px; border-color: var(--line); max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.button-primary { background: var(--blue); border-color: var(--blue); color: white; }
.button-primary:hover { background: #254dab; border-color: #254dab; }
.button-soft { color: var(--blue); background: var(--sea); border-color: #dce5fb; }
.button-danger { color: var(--danger); border-color: #efd5dc; background: #fff; }
.button-danger:hover { background: #fbecf0; border-color: #d797a6; }
.button-secondary:hover, .icon-button:hover { background: #f0f4fc; border-color: #b5c6e7; }
.button-small { font-size: .75rem; min-height: 36px; padding: 7px 10px; }
.button-text { font-size: .8125rem; min-height: 40px; color: var(--blue); font-weight: 500; }
.panel { background: var(--white); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel>p { line-height: 1.6; }
.panel>p:last-child { margin-bottom: 0; }
.panel-header { margin-bottom: 18px; gap: 12px; }
.panel-header a, .panel-header button { font-size: .8125rem; }
.panel-header .button-primary { color: white; }
.grid-2, .grid-3, .cards, .overview-grid, .billing-grid, .dashboard-charts { gap: 20px; }
.grid-2 { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.item-card { padding: 20px; border-radius: var(--radius); gap: 14px; background: var(--white); box-shadow: var(--shadow); }
.item-card p { margin-bottom: 0; line-height: 1.5; }
.item-top { gap: 12px; min-width: 0; }
.item-top>div { min-width: 0; }
.item-top h2, .item-top h3 { font-size: 1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.item-top p { font-size: .8125rem; }
.item-top .status { max-width: 48%; flex-shrink: 0; }
.item-money { padding-top: 16px; gap: 12px; flex-wrap: wrap; }
.item-money > div { min-width: 0; display: grid; gap: 5px; }
.item-money > div:last-child { text-align: right; }
.item-money small { display: block; font-size: .75rem; }
.item-money strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.item-actions { gap: 8px; align-items: stretch; }
.item-actions .button { flex: 1 1 115px; min-width: 0; }
.kpi { padding: 20px; min-height: 122px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.kpi strong { font-size: 1.875rem; line-height: 1.2; margin: 12px 0 7px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.kpi .label-small, .kpi>span { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.kpi small { font-size: .75rem; line-height: 1.4; display: block; }
.dashboard-kpis { gap: 20px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 20px; }
.dashboard-kpis .kpi { padding: 20px; min-height: 130px; text-align: left; border-top: 3px solid #7397ef; }
.dashboard-kpis .kpi:nth-child(2) { border-top-color: #aa8ad9; }
.dashboard-kpis .kpi:nth-child(3) { border-top-color: #75b3a1; }
.dashboard-kpis .kpi strong { font-size: 1.875rem; }
.dashboard-kpis .kpi small { font-size: .75rem; }
.dashboard-kpis button.kpi:hover { background: #fff; border-color: #adc2ef; box-shadow: 0 4px 16px rgba(49,95,205,.08); }
.home-welcome { padding: 0 0 24px; min-height: 0; margin-bottom: 0; border: 0; border-radius: 0; background: none; overflow: visible; gap: 20px; }
.home-welcome h1 { font-size: 1.875rem; margin: 4px 0 5px; color: var(--ink); font-weight: 600; letter-spacing: -.04em; }
.home-welcome p { font-size: .84375rem; color: var(--muted); }
.home-welcome .eyebrow { font-size: .75rem; color: var(--muted); }
.hero-upcoming-head h2 { font: 600 1.125rem/1.4 var(--font-display); }
.hero-card, .hero-card-upcoming:not(.is-empty) { background: var(--booking-bordeaux); border-radius: var(--radius); }
.hero-card-upcoming.is-empty { background: var(--sea); border-color: var(--line); }
.dashboard-charts { margin: 0 0 20px; align-items: stretch; }
.bar-chart { height: 205px; background: repeating-linear-gradient(to top,transparent 0,transparent 49px,var(--line) 50px); padding: 0 6px; }
.bar-pair { height: 175px; }
.bar.income { background: #628ce0; }
.bar.expense { background: #a58ad2; }
.legend-dot.income { background: #628ce0; }
.legend-dot.expense { background: #a58ad2; }
.chart-month, .chart-label, .chart-legend, .chart-top, .chart-top button { font-size: .75rem; }
.chart-legend { gap: 18px; margin-top: 15px; }
.chart-top { margin-bottom: 12px; }
.chart-top button { min-width: 36px; min-height: 32px; border-color: var(--line); color: var(--blue); }
.donut-wrap { gap: 22px; min-height: 226px; }
.donut { width: 148px; height: 148px; min-width: 148px; }
.donut>div { width: 105px; height: 105px; }
.donut strong { font-size: 2rem; }
.donut small, .donut-legend button { font-size: .75rem; }
.donut-legend button { min-height: 36px; gap: 8px; line-height: 1.45; text-align: left; }
.donut-legend strong { margin-left: auto; white-space: nowrap; }
.action-grid { gap: 10px; margin-bottom: 16px; }
.action-grid button { min-height: 68px; padding: 13px; text-align: left; font-size: .8125rem; font-weight: 500; background: var(--paper); border-radius: 7px; }
.action-grid small { font-size: .75rem; }
.date-chip { width: 46px; min-width: 46px; height: 48px; border-radius: 8px; background: var(--sea); color: var(--blue); }
.date-chip strong { font-size: 1.125rem; }
.date-chip small { font-size: .75rem; }
.list-row { gap: 14px; padding: 14px 0; min-width: 0; }
.list-row>strong { flex: 1; min-width: 0; font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.list-row>.button { flex-shrink: 0; }
.row-body strong { font-size: .875rem; line-height: 1.4; }
.row-body small { font-size: .75rem; line-height: 1.45; }
.chip, .status { padding: 5px 8px; font-size: .75rem; border-radius: 5px; line-height: 1.35; font-weight: 500; }
.status { background: var(--sea); color: #315793; }
.status.pending { background: var(--coral-light); color: #674999; }
.status.paid { background: #e8f5ed; color: #206640; }
.status.unpaid { background: #faeaf0; color: #a1324a; }
.filters { gap: 10px; align-items: end; margin-bottom: 20px; max-width: 100%; }
.filters>label { min-width: 0; max-width: 100%; flex: 1 1 145px; font-size: .75rem; }
.filters>label:has([data-cockpit-filter="status"]) { min-width: 0; flex-basis: 190px; }
.filters .form-control { min-width: 0; width: 100%; max-width: 100%; }
.filters > label { grid-template-columns: minmax(0,1fr); }
.filters input[type="date"], .filters input[type="time"] { appearance: none; -webkit-appearance: none; display: block; box-sizing: border-box; min-inline-size: 0; inline-size: 100%; }
.filters input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.field-invalid { border-color: #b42318 !important; outline: 2px solid #b42318; outline-offset: 1px; scroll-margin: 90px 0; }
.field-validation-message { display: block; color: #a51c13; font-size: .8125rem; line-height: 1.4; margin-top: 6px; }
.form-validation-summary { color: #862018; background: #fff1f0; border-left: 3px solid #b42318; padding: 12px; margin: 0 0 14px; line-height: 1.5; }
.list-sort-control { display: grid; gap: 6px; width: min(100%,350px); margin: 14px 0; color: var(--muted); font-size: .8125rem; min-width: 0; grid-template-columns: minmax(0,1fr); }
.list-sort-control select { min-width: 0; max-width: 100%; }
.filters>[data-cockpit-filter="query"] { min-width: 0; max-width: none; }
.filter-pill, .tab { min-height: 40px; font-size: .8125rem; padding: 8px 12px; border-radius: 7px; }
.filter-pill.active, .tab.active { background: var(--sea); border-color: #b8caef; color: var(--blue); }
.tabs { flex-wrap: wrap; }
.form-control, .dialog-fields input:not([type="checkbox"]):not([type="radio"]), .dialog-fields select, .dialog-fields textarea { padding: 11px 12px; min-height: 44px; width: 100%; max-width: 100%; min-width: 0; font-size: .875rem; line-height: 1.4; border: 1px solid #cbd4e1; border-radius: 7px; background: white; color: var(--ink); }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,95,205,.09); }
.field { min-width: 0; font-size: .8125rem; line-height: 1.5; }
.field label { font-size: .8125rem; font-weight: 500; }
.field-hint { font-size: .75rem; line-height: 1.6; }
.form-grid { gap: 18px; min-width: 0; }
.form-grid>* { min-width: 0; }
.dialog-fields fieldset { padding: 14px; border-radius: 8px; border-color: var(--line); }
.dialog-fields fieldset legend { font-size: .8125rem; }
.dialog-fields fieldset label { min-height: 36px; font-size: .8125rem; }
.dialog-fields input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--blue); }
.dialog-fields input[type="file"] { overflow: hidden; padding: 9px; }
input::file-selector-button { border: 0; border-radius: 4px; padding: 7px 9px; background: var(--sea); color: var(--blue); font: inherit; margin-right: 8px; }
textarea.form-control { min-height: 110px; }
.empty { padding: 30px 18px; border: 1px dashed #d7dfeb; border-radius: 8px; background: #f8faff; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.empty strong { font-weight: 500; color: var(--ink); }
.info-panel, .warning, .prototype-note, .summary-bar { font-size: .8125rem; line-height: 1.6; border-radius: 8px; }
.info-panel { background: var(--sea); border-color: #d5e1f7; color: #365480; }
.warning { background: #f7f1fb; border-color: #e2d6ef; color: #6d4988; }
.prototype-note { background: #edf1f7; border-color: #dce3ee; color: #5e6e85; padding: 11px 14px; }
.prototype-note button { font-size: .75rem; }
.progress-track, .mini-track { background: var(--sea); }
.progress-track>span { background: var(--blue); }
.mini-track i { background: #7397df; }
.calendar { border-radius: 8px; overflow: hidden; }
.calendar .weekday { font-size: .75rem; font-weight: 500; background: #f8faff; color: var(--muted); }
.calendar .day { min-height: 90px; padding: 8px; font-size: .8125rem; color: var(--ink); vertical-align: top; }
.calendar .day.outside { color: #7c899d; background: #fafbfd; }
.calendar .day.has-event { background: #f7faff; }
.calendar .day.today { box-shadow: inset 0 0 0 2px #a3bced; }
.calendar .day.selected { box-shadow: inset 0 0 0 2px var(--blue); background: var(--sea); }
.calendar-head { gap: 12px; }
.calendar-head strong { font-size: 1rem; }
.calendar-head button { min-width: 40px; min-height: 40px; color: var(--blue); }
.marker { background: var(--blue); }
.marker.private { background: var(--green); }
.marker.followed { background: var(--purple); }
.marker.training { background: #798eac; }
.calendar-event-label { font-size: .75rem; background: #e4edfe; color: #355788; }
.calendar-event-label.private { background: #e4f3eb; color: #276344; }
.calendar-event-label.followed { background: #eee7fa; color: #644393; }
.calendar-note { font-size: .75rem; line-height: 1.5; }
.agenda-list-row, .calendar-event-row { min-height: 70px; padding: 12px 4px; }
.agenda-list-row .date-chip.with-year small:last-child { font-size: .75rem; }
.agenda-list-row .status { white-space: normal; text-align: center; max-width: 40%; }
.people-table, .transaction-table, .usage-table, .table-wrap>table:not([class]) { width: 100%; border-collapse: collapse; text-align: left; font-size: .84375rem; }
.people-table th, .transaction-table th, .usage-table th, .table-wrap>table:not([class]) th { padding: 13px 12px; color: var(--muted); background: #f8faff; font-size: .75rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.people-table td, .transaction-table td, .usage-table td, .table-wrap>table:not([class]) td { padding: 15px 12px; font-size: .84375rem; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.5; }
.table-wrap { border-radius: 7px; overflow: auto; max-width: 100%; min-width: 0; overscroll-behavior-x: contain; }
.people-table tr:hover td, .table-wrap>table:not([class]) tr:hover td { background: #fafcff; }
.people-table td>.button { font-size: .875rem; color: var(--blue); min-height: 40px; }
.people-table td>small { font-size: .75rem; color: var(--muted); }
.person-avatar { color: var(--purple); background: var(--coral-light); border-radius: 10px; }
.profile-tabs button { font-size: .84375rem; }
.profile-tabs button.active, .profile-tabs button[aria-selected="true"], .profile-tabs button[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.people-profile .panel>p { font-size: .875rem; }
#main-content>[data-action="people-back"] { font-size: .8125rem; color: var(--blue); }
.finance-kpis { gap: 20px; margin-bottom: 20px; }
.finance-kpis .kpi { min-height: 120px; border-top: 3px solid #7397ef; }
.finance-kpis .kpi:nth-child(2) { border-top-color: #aa8ad9; }
.finance-kpis .kpi:nth-child(3) { border-top-color: #75b3a1; }
.finance-kpis .kpi>span { font-size: .8125rem; color: var(--muted); }
.finance-balance .kpi { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; min-height: 0; border-top: 0; border-left: 4px solid var(--blue); }
.finance-balance .kpi>strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
.finance-balance .kpi>small { grid-column: 1; }
.finance-kpis~.panel { margin-bottom: 20px; }
.library-counts { gap: 12px; }
.library-count { border-radius: var(--radius); padding: 18px; }
.library-count span { font-size: .8125rem; }
.library-count[aria-pressed="true"], .library-count.active { background: var(--sea); border-color: #adc2ef; color: var(--blue); }
.video-thumb { background: var(--sea); color: #5f78a1; }
.private-video-link { background: #f8faff; }
.private-video-link strong { font-size: .84375rem; }
.private-video-link small { font-size: .75rem; }
.private-video-link a { font-size: .8125rem; }
.device-sync-panel { padding: 15px 18px; gap: 14px; border-radius: var(--radius); }
.device-sync-panel strong { font-size: .875rem; }
.device-sync-panel small { font-size: .75rem; line-height: 1.6; }
.device-sync-panel.synced { background: #f2f9f5; border-color: #cae3d5; }
.device-sync-panel.pending, .device-sync-panel.working { background: var(--sea); border-color: #cfdcf3; }
.device-sync-panel.error, .device-sync-panel.conflict, .device-sync-panel.legacy { background: #fbf0f2; border-color: #edced6; }
.device-lock { margin: 45px auto; padding: clamp(22px,4vw,40px); }
.section-fold-button { font-size: .75rem; background: var(--paper); min-height: 40px; }
.section-fold-toolbar strong { font-size: .84375rem; }
.section-fold-toolbar { margin: 12px 0 18px; }
.document-list .row-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 62%; white-space: normal; }
.document-list .row-end>strong { flex-basis: 100%; }
.document-list .row-end .button { font-size: .75rem; min-height: 40px; }
.commercial-preview, .mail-preview, .video-classify-preview { border: 1px solid var(--line); background: #f8faff; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.commercial-preview>strong { display: block; font-size: 1.125rem; color: var(--deep); }
.commercial-preview p, .mail-preview p { font-size: .84375rem; line-height: 1.7; }
.commercial-preview p:last-child, .mail-preview p:last-child { margin-bottom: 0; }
.mail-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 7px; line-height: 1.65; font-family: var(--font-body); font-size: .84375rem; }
.student-address { overflow-wrap: anywhere; }
.inline-student-profile { padding: 15px; background: var(--sea); border: 1px solid #d4e1f7; border-radius: 8px; }
.dj-layout { padding: 0; background: none; color: var(--ink); gap: 20px; border-radius: var(--radius); }
.dj-layout .panel, .dj-set-card { padding: 22px; background: var(--deep); border-color: var(--deep); color: #f0f4fd; border-radius: var(--radius); }
.dj-set-card>img { aspect-ratio: 16/9; max-height: 320px; object-fit: cover; border-radius: 7px; }
.dj-set-card>h2 { font-size: 1.1875rem; }
.dj-set-card>.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: #b9c8e2; }
.dj-set-card>p { font-size: .875rem; color: #c6d3e6; line-height: 1.65; }
.dj-set-card>.button { background: #34465f; border-color: #536988; color: #f2f6fe; font-size: .8125rem; min-height: 44px; }
.dj-set-card>.button:hover { background: #425979; border-color: #7790b2; }
.dj-set-card>a.button, .dj-layout .button-primary, .soundcloud-link { background: #7655bd; border-color: #7655bd; color: white; }
.dj-set-card>a.button:hover { background: #62429f; border-color: #62429f; }
.dj-layout .empty { background: var(--white); color: var(--muted); border-color: var(--line); }
.dj-layout .empty strong { color: var(--ink); }
.settings-grid { gap: 20px; }
.settings-grid>.panel>.button { font-size: .8125rem; margin: 0 6px 9px 0; }
.settings-grid>.panel>p, .settings-grid details p { font-size: .8125rem; line-height: 1.65; }
.settings-grid details { font-size: .84375rem; padding: 13px 0; }
.settings-grid summary { color: var(--blue); min-height: 36px; align-content: center; }
.navigation-order .list-row>strong { font-size: .84375rem; }
.navigation-order .list-row>.section-actions { gap: 7px; }
.navigation-order .list-row>.section-actions .button { min-height: 40px; font-size: .75rem; }
.panel>pre { background: #f8faff; border-color: var(--line); }
.more-grid { gap: 16px; }
.more-grid>button, .more-grid>a { padding: 20px; min-height: 92px; border-radius: var(--radius); font-size: .875rem; box-shadow: var(--shadow); }
.more-grid .ui-icon { color: var(--blue); }
.more-grid small { font-size: .75rem; }
.search-result { padding: 14px 10px; min-height: 62px; }
.search-result strong { font-size: .875rem; }
.search-result small { font-size: .75rem; }
.folders-dialog { padding-bottom: 18px; }
.folder-chooser, .folder-file-list { border-radius: 8px; }
.folder-status { background: var(--sea); color: #365480; }
.folder-trail { flex-wrap: wrap; }
.quick-add { background: var(--blue); border-radius: 14px; width: 54px; height: 54px; right: 26px; bottom: 26px; box-shadow: 0 6px 18px rgba(49,95,205,.22); font-size: 1.875rem; transition: background .15s ease,transform .15s ease; }
.quick-add:hover { background: #254dab; }
dialog { background: var(--white); box-shadow: 0 22px 75px rgba(21,37,60,.24); }
dialog::backdrop { background: rgba(24,36,53,.5); }
.sheet-dialog { width: min(680px,calc(100vw - 32px)); max-height: min(90dvh,940px); border-radius: 12px; overflow: auto; overscroll-behavior: contain; }
.sheet-dialog form { max-height: min(90dvh,940px); }
.dialog-header { padding: 22px 24px 18px; align-items: center; background: var(--white); flex-shrink: 0; }
.dialog-header h2 { font-size: 1.1875rem; line-height: 1.4; }
.dialog-fields { padding: 22px 24px; min-height: 0; overscroll-behavior: contain; overflow-x: hidden; font-size: .875rem; }
.dialog-fields>.form-grid+.form-grid { margin-top: 18px; }
.dialog-actions { padding: 16px 24px 22px; flex-shrink: 0; background: var(--white); flex-wrap: wrap; }
.close-button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex-shrink: 0; border-radius: 7px; color: var(--muted); background: var(--paper); }
.close-button:hover { background: #e7edf6; color: var(--ink); }
.quick-dialog { border-radius: 12px; }
.quick-options button { min-height: 58px; }
.quick-options button span:first-child { font-size: .875rem; }
.toast { background: var(--deep); font-size: .84375rem; border-radius: 8px; line-height: 1.55; max-width: min(600px,calc(100vw - 30px)); }
.public-hero { padding: 32px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.public-hero h1 { color: var(--ink); }
.public-hero p { color: var(--muted); }
@media (min-width:701px) and (max-width:1199px) {
  .shell { grid-template-columns: 204px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .nav-item { font-size: .8125rem; padding-left: 10px; padding-right: 10px; gap: 10px; }
  .nav-item.active:before { left: -12px; }
  .brand { margin-left: 6px; margin-right: 4px; gap: 8px; }
  .brand strong { font-size: 1rem; }
  .brand-mark, .brand-mark svg { width: 30px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .global-search-toggle { min-width: 40px; width: 40px; padding: 9px; }
  .global-search-toggle span { display: none; }
  .preview-button { max-width: 180px; font-size: .75rem; }
  .preview-button span { font-size: .875rem; }
  #main-content { padding-left: 24px; padding-right: 24px; }
  .dashboard-charts, .settings-grid, .profile-grid, .booking-detail-layout { grid-template-columns: 1fr; }
  .dashboard-kpis { gap: 14px; }
  .dashboard-kpis .kpi { padding: 16px; min-height: 120px; }
  .dashboard-kpis .kpi strong { font-size: 1.5rem; }
  .dashboard-kpis .kpi>span { font-size: .75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .finance-kpis { gap: 14px; }
  .finance-kpis .kpi { padding: 16px; }
  .finance-kpis .kpi>strong { font-size: 1.5rem; }
}

@media (min-width:701px) and (max-width:850px) {
  .topbar { gap: 12px; }
  .topbar-title { min-width: 0; }
  .preview-button { font-size: 0; min-width: 40px; max-width: 40px; }
  .preview-button span { font-size: 1.125rem; }
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-kpis>.kpi:last-child:nth-child(3) { grid-column: 1/-1; }
  .finance-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-kpis.finance-balance { grid-template-columns: 1fr; }
  .finance-kpis:not(.finance-balance)>.kpi:last-child:nth-child(3) { grid-column: 1/-1; }
  .people-table { table-layout: auto; }
  .people-table th, .people-table td { padding-left: 8px; padding-right: 8px; }
  .people-table th:first-child { width: 40%; }
}

@media (max-width:700px) {
  .shell, .shell.sidebar-collapsed { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 70px; padding: calc(11px + env(safe-area-inset-top)) 16px 11px; gap: 12px; }
  .mobile-brand { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .02em; gap: 10px; }
  .mobile-brand-mark { width: 32px; height: 34px; flex-shrink: 0; background: var(--deep); color: #cbd8ff; border-radius: 8px; font-size: 1.0625rem; }
  .topbar-actions { flex-wrap: nowrap; gap: 4px; flex-shrink: 0; }
  .preview-button { font-size: 0; min-width: 44px; max-width: 44px; }
  .preview-button span { font-size: 1.2rem; }
  .global-search-toggle { min-width: 44px; width: 44px; height: 44px; padding: 11px; background: transparent; border-color: transparent; }
  #main-content { padding: 24px 16px calc(120px + env(safe-area-inset-bottom)); }
  .section-header { gap: 14px; margin-bottom: 20px; align-items: flex-start; }
  .section-header h1 { font-size: 1.625rem; }
  .section-header p { font-size: .8125rem; line-height: 1.55; }
  .section-header>.section-actions { width: 100%; gap: 8px; }
  .section-header .button { font-size: .8125rem; padding: 10px 12px; }
  .section-actions .button { flex: 1 1 125px; }
  .panel { padding: 18px; border-radius: var(--radius); }
  .panel-header h2 { font-size: 1.0625rem; }
  .panel-header { margin-bottom: 16px; gap: 10px; }
  .grid-2, .grid-3, .cards, .overview-grid, .billing-grid, .dashboard-charts, .settings-grid { gap: 16px; }
  .grid-2, .dashboard-charts, .settings-grid, .profile-grid, .billing-grid { grid-template-columns: 1fr; }
  .home-welcome { padding: 0 0 20px; min-height: 0; }
  .home-welcome h1 { font-size: 1.75rem; }
  .home-welcome p { font-size: .8125rem; max-width: none; }
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
  .dashboard-kpis .kpi, .kpi { padding: 16px; min-height: 116px; }
  .dashboard-kpis .kpi strong { font-size: 1.5rem; }
  .dashboard-kpis .kpi>span, .dashboard-kpis .kpi .label-small { font-size: .75rem; line-height: 1.45; }
  .dashboard-kpis .kpi small { font-size: .75rem; }
  .dashboard-kpis>.kpi:last-child:nth-child(3) { grid-column: 1/-1; min-height: 108px; }
  .dashboard-charts { margin-bottom: 16px; }
  .bar-chart { height: 184px; }
  .bar-pair { height: 154px; }
  .chart-label, .chart-month, .chart-legend { font-size: .75rem; }
  .chart-legend { gap: 14px; }
  .donut-wrap { min-height: 198px; gap: 20px; }
  .donut-legend button { min-height: 44px; font-size: .75rem; }
  .donut { width: 132px; height: 132px; min-width: 132px; }
  .donut>div { width: 92px; height: 92px; }
  .action-grid button { font-size: .8125rem; min-height: 64px; padding: 12px; }
  .button, .button-small, .icon-button, .button-text, .filter-pill, .tab, .section-fold-button, .close-button, .calendar-head button, .chart-top button { min-height: 44px; }
  .button-small, .button, .button-text { font-size: .8125rem; }
  .item-card { padding: 18px; }
  .item-actions .button { flex-basis: 125px; }
  .item-top h2, .item-top h3 { font-size: 1rem; }
  .item-top .status { font-size: .75rem; }
  .filters { gap: 10px; align-items: end; }
  .filters>label { flex: 1 1 120px; min-width: 0; max-width: 100%; font-size: .75rem; }
  .filters>label:has([data-cockpit-filter="status"]) { min-width: 0; flex-basis: 100%; }
  .filters>[data-cockpit-filter="query"] { max-width: 100%; width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-control, .dialog-fields input:not([type="checkbox"]):not([type="radio"]), .dialog-fields select, .dialog-fields textarea { font-size: 16px; }
  .field label { font-size: .84375rem; }
  .field-hint { font-size: .75rem; }
  .dialog-fields fieldset label { min-height: 44px; font-size: .84375rem; }
  .calendar .day { min-height: 65px; padding: 6px; font-size: .8125rem; }
  .calendar .weekday { font-size: .75rem; }
  .calendar-event-label { font-size: .75rem; padding: 3px 2px; }
  .calendar-head button { min-width: 44px; }
  .calendar-head strong { font-size: 1rem; }
  .calendar-note { font-size: .75rem; }
  .agenda-list-row, .calendar-event-row { gap: 10px; }
  .agenda-list-row .row-body small, .calendar-event-row .row-body small { font-size: .75rem; }
  .people-table { table-layout: auto; min-width: 0; }
  .people-table th, .people-table td { padding: 13px 7px; font-size: .8125rem; }
  .people-table th:first-child { min-width: 105px; width: 42%; }
  .people-table td>.button { min-height: 44px; font-size: .84375rem; }
  .people-table td>small { font-size: .75rem; }
  .table-wrap>table:not([class]) { min-width: 580px; }
  .table-wrap>table:not([class]) th, .table-wrap>table:not([class]) td { padding: 13px 11px; font-size: .8125rem; }
  .people-profile .list-row>.button { flex-shrink: 0; min-height: 44px; }
  .people-profile .row-body strong { font-size: .875rem; }
  .finance-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
  .finance-kpis .kpi { padding: 16px; min-height: 110px; }
  .finance-kpis .kpi:last-child { grid-column: auto; }
  .finance-kpis:not(.finance-balance)>.kpi:last-child:nth-child(3) { grid-column: 1/-1; min-height: 95px; }
  .finance-kpis .kpi>span { font-size: .75rem; }
  .finance-kpis .kpi>strong { font-size: 1.5rem; }
  .finance-kpis.finance-balance { grid-template-columns: 1fr; }
  .finance-balance .kpi { min-height: 95px; }
  .finance-kpis~.panel { margin-bottom: 16px; }
  .library-counts { gap: 12px; }
  .library-count { padding: 16px; }
  .library-count span { font-size: .8125rem; }
  .library-toolbar .search-input { width: 100%; }
  .document-list .list-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .document-list .row-body { flex-basis: 100%; }
  .document-list .row-end { max-width: 100%; width: 100%; justify-content: flex-start; text-align: left; gap: 8px; }
  .document-list .row-end .button { min-height: 44px; flex: 1 1 125px; font-size: .8125rem; }
  .commercial-preview, .mail-preview, .video-classify-preview { padding: 16px; }
  .navigation-order .list-row>.section-actions .button { min-height: 44px; font-size: .75rem; }
  .settings-grid>.panel>.button { font-size: .8125rem; min-height: 44px; }
  .settings-grid>.panel>p, .settings-grid details p { font-size: .8125rem; }
  .more-grid { gap: 12px; }
  .more-grid>button, .more-grid>a { min-height: 104px; padding: 17px 14px; font-size: .875rem; }
  .dj-layout { padding: 0; gap: 16px; }
  .dj-layout .panel, .dj-set-card { padding: 18px; }
  .dj-set-card>.button { min-height: 44px; }
  .dj-set-card>p { font-size: .84375rem; }
  .bottom-nav { height: calc(72px + env(safe-area-inset-bottom)); padding: 6px 5px calc(6px + env(safe-area-inset-bottom)); border-color: var(--line); background: white; gap: 3px; box-shadow: 0 -2px 14px rgba(34,46,60,.035); }
  .bottom-item { min-height: 56px; color: #667489; border-radius: 8px; padding: 6px 0; gap: 5px; }
  .bottom-item small { font-size: .75rem; max-width: 100%; white-space: normal; line-height: 1.15; overflow-wrap: normal; }
  .bottom-item .ui-icon { width: 21px; height: 21px; }
  .bottom-item.active { color: var(--blue); background: var(--sea); }
  .quick-add { width: 50px; height: 50px; border-radius: 14px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); font-size: 1.875rem; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); font-size: .84375rem; }
  .sheet-dialog, .quick-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; }
  .sheet-dialog form { max-height: 92dvh; }
  .dialog-header { padding: 20px 18px 16px; }
  .dialog-fields { padding: 20px 18px; max-height: none; }
  .dialog-actions { padding: 15px 18px calc(18px + env(safe-area-inset-bottom)); gap: 10px; }
  .dialog-actions .button { flex: 1 1 110px; }
  .close-button { width: 44px; min-width: 44px; height: 44px; }
  .folders-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); margin: auto; border-radius: 12px; }
  .folder-form-grid { grid-template-columns: 1fr; }
  .device-sync-panel { padding: 15px; gap: 12px; }
  .device-sync-actions .button { flex: 1 1 125px; }
  .public-page { padding: 20px 16px; }
  .public-hero { padding: 24px; }
}

@media (max-width:370px) {
  #main-content { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 12px; padding-right: 10px; }
  .mobile-brand { font-size: .75rem; gap: 7px; }
  .mobile-brand-mark { width: 28px; height: 30px; }
  .topbar-actions { gap: 1px; }
  .dashboard-kpis { gap: 10px; }
  .dashboard-kpis .kpi { padding: 14px 12px; }
  .dashboard-kpis .kpi strong { font-size: 1.4rem; }
  .panel { padding: 15px; }
  .donut-wrap { gap: 12px; }
  .donut { width: 112px; height: 112px; min-width: 112px; }
  .donut>div { width: 78px; height: 78px; }
  .donut-legend button { font-size: .75rem; gap: 6px; }
  .finance-kpis .kpi { padding: 14px 12px; }
  .finance-kpis .kpi>strong { font-size: 1.375rem; }
  .finance-balance .kpi { column-gap: 12px; }
  .people-table td:first-child { min-width: 105px; }
  .calendar .day { padding: 4px; }
  .more-grid { gap: 10px; }
  .section-actions .button { font-size: .8125rem; }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
  .quick-add:hover { transform: none; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .quick-add, .toast { display: none!important; }
  .shell { display: block; }
  #main-content { padding: 0; max-width: none; }
  .panel, .item-card, .kpi { box-shadow: none; break-inside: avoid; }
  body { background: white; }
}
/* Personnalisation du cockpit — octobre 2026. */
.item-card.booking-tone-review { background: transparent; }
.item-card.booking-tone-concluded { background: #fff4bf; border-color: #dac564; }
.item-card.booking-tone-partial { background: #e0ecff; border-color: #87a9df; }
.item-card.booking-tone-paid { background: #dff3e6; border-color: #87c69c; }
.agenda-filters [data-filter="booking"] { color: #b52638; border-color: #d87f8b; }
.agenda-filters [data-filter="booking"].active { color: #941d2d; background: #ffe4e8; }
.agenda-filters [data-filter="private"] { color: #176e43; border-color: #68ad87; }
.agenda-filters [data-filter="private"].active { color: #125335; background: #dff3e6; }
.agenda-filters [data-filter="training"] { color: #245fc4; border-color: #86a5dc; }
.agenda-filters [data-filter="training"].active { color: #184a9b; background: #e0ecff; }
.calendar .marker:not(.private):not(.training):not(.general):not(.followed),
.calendar-event-row .marker:not(.private):not(.training):not(.general):not(.followed) { background: #c73549; }
.calendar .marker.private, .calendar-event-row .marker.private { background: #218150; }
.calendar .marker.training, .calendar-event-row .marker.training { background: #315fcd; }
.calendar .marker.tentative, .calendar-event-row .marker.tentative { background: #c73549; border-color: #c73549; }
.balance-toggle { width: 100%; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.balance-toggle:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.balance-breakdown[hidden] { display: none; }
.home-blocks { display: grid; gap: 20px; }
.home-block .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.home-block > .panel { margin: 0; }
#main-content > .prototype-note { margin-top: 28px; margin-bottom: 0; }
.prototype-note.connection-status-fold { display: block; white-space: normal; }
.connection-status-fold > summary { cursor: pointer; font-weight: 600; }
.connection-status-content { margin-top: 10px; }
.dj-image-preview img { display: block; width: 100%; max-width: 360px; max-height: 240px; object-fit: contain; margin: 12px 0; border-radius: 12px; }
@media (max-width: 600px) {
  .navigation-order .list-row { flex-wrap: wrap; gap: 12px; }
  .navigation-order .section-actions { flex-wrap: wrap; }
}

/* Connexions et menus des Réglages : même état lisible sur téléphone et ordinateur. */
.connection-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.connection-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.connection-status.connected { color: #176e43; background: #dff3e6; }
.connection-status.disconnected { color: #ad2338; background: #fce2e6; }
.connection-status.checking, .connection-status.unavailable { color: #58667a; background: #edf0f5; }
.connection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.connection-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.connection-hint>.button { margin-left: auto; }
.settings-connections { grid-column: 1 / -1; }
.settings-connections>.panel-header { gap: 12px; align-items: flex-start; }
.settings-connections>.panel-header p { margin: 5px 0 0; }
.settings-connections>h3 { margin: 24px 0 12px; font-size: .9rem; }
.connection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.connection-grid>.panel { margin: 0; min-width: 0; }
.connection-grid .panel-header { align-items: flex-start; gap: 12px; }
.connection-grid p { color: var(--muted); overflow-wrap: anywhere; }
.connection-card .device-sync-panel { margin-bottom: 0; }
.settings-fold-panel>.panel-header { gap: 12px; }
.settings-fold-panel>.panel-header h2 { margin: 0; }
.settings-fold-panel>.section-fold-body { margin-top: 18px; }
.item-card.booking-tone-cancelled { background: #fce2e6; border-color: #d98897; }
.booking-place-field { min-width: 0; }
.booking-place-field>.field { margin-bottom: 10px; }
#booking-place-editor { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fc; }
#booking-place-editor[hidden] { display: none; }
#booking-place-editor h3 { margin: 0 0 12px; }
.person-role-choices { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.person-role-choices label { display: inline-flex; align-items: center; gap: 8px; }
#person-common-fields[hidden] { display: none; }
.booking-place-field .item-actions { flex-wrap: wrap; }
.booking-tone-cancelled .status { color: #ad2338; background: #f9ced6; }
@media (max-width:780px) {
 .connection-grid { grid-template-columns: 1fr; }
 .connection-hint>.button { margin-left: 0; }
 .settings-connections>.panel-header { align-items: stretch; }
}

.booking-status-select { border: 1px solid transparent; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; max-width: 100%; min-height: 44px; width: auto; flex: 0 1 auto; }
.booking-tone-concluded .booking-status-select { color: #715800; background: #fff0a0; }
.booking-tone-partial .booking-status-select { color: #235cb1; background: #cfdef8; }
.booking-tone-paid .booking-status-select { color: #176e43; background: #c7e9d3; }
.booking-status-select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.booking-selection { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .75rem; color: var(--muted); min-height: 30px; cursor: pointer; }
.booking-selection input { width: 18px; height: 18px; accent-color: var(--blue); }
.booking-selected { outline: 2px solid var(--blue); outline-offset: 2px; }
.booking-bulk-toolbar { min-width: 0; max-width: 100%; position: sticky; top: env(safe-area-inset-top,0px); z-index: 20; isolation: isolate; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 16px rgba(34,46,60,.1); }
.booking-bulk-toolbar strong { min-width: 0; overflow-wrap: anywhere; font-size: .8rem; margin-right: auto; }
.booking-bulk-toolbar > .button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.bulk-booking-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.bulk-booking-field { padding: 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.bulk-booking-field .field { margin: 0; }
.bulk-booking-field>.field-hint { margin-bottom: 10px; }
.bulk-booking-preview dt { font-weight: 600; margin-top: 8px; }
.bulk-booking-preview dd { margin: 4px 0 10px; overflow-wrap: anywhere; }
@media (max-width:600px) { .bulk-booking-fields { grid-template-columns: 1fr; } .item-top:has(.booking-status-select) { flex-wrap: wrap; gap: 8px; } }

.item-card[data-private-id] { align-self: start; }
.private-tone-pending { background: transparent; }
.private-tone-confirmed { background: #dff4e7; border-color: #74c594; }
.private-tone-postponed { background: #fff0d6; border-color: #e9ae51; }
.private-tone-cancelled { background: #fde2e7; border-color: #ed8193; }
.private-status-select { max-width: 140px; min-width: 108px; cursor: pointer; }
.private-tone-confirmed .private-status-select { color: #086642; background-color: #c4e8d5; }
.private-tone-postponed .private-status-select { color: #884900; background-color: #ffe0aa; }
.private-tone-cancelled .private-status-select { color: #b71030; background-color: #f6cbd4; }
.private-owner-actions { margin-bottom: 12px; }
/* Unified student directory; the individual blocks use the shared student view stylesheet. */
.student-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}
.student-directory .panel{margin:0}.student-directory .status{display:inline-flex}
.student-directory-search{max-width:620px;margin-bottom:22px}.student-owner-controls details{margin-top:18px;border-top:1px solid var(--line,#dbe2ec);padding-top:14px}
.student-owner-controls summary{cursor:pointer;font-weight:650}.student-owner-notice{padding:14px 18px;background:#eaf0ff;border:1px solid #c2d1ff;border-radius:10px}
.student-sync-status{font-size:.9rem;color:var(--muted,#5f6f85)}
@media(max-width:600px){.student-owner-controls .list-row{flex-direction:column;align-items:stretch}.student-owner-controls .row-end{flex-wrap:wrap}.student-owner-controls .row-end .button{flex:1}}

.managed-course-folders > summary { font-weight: 700; cursor: pointer; }
.managed-course-folder-content { margin-top: 16px; }
.filter-count { display: inline-block; min-width: 1.4em; padding: 1px 5px; border-radius: 8px; background: rgba(47,91,214,.1); font-variant-numeric: tabular-nums; }
.student-owner-controls [hidden], #dialog-fields [hidden] { display: none !important; }
/* Cockpit fields and owner customization, with comfortable touch targets. */
select.form-control, .dialog-fields select, .booking-status-select, .private-status-select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235c6f87' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  min-height: 46px; text-overflow: ellipsis;
}
.form-grid .field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.form-grid .field > label { margin: 0; min-height: 22px; }
.form-grid .form-control { margin-top: 0; }
.form-grid textarea { min-height: 110px; }
.form-grid input[type="checkbox"], .form-grid input[type="radio"] { width: auto; min-height: auto; }
.filters label, .library-filters label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.filters label[hidden] { display: none; }
.filters .form-control, .library-filters .form-control { margin: 0; min-height: 46px; }
.library-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); align-items: start; gap: 16px; }
.library-filters > label { min-inline-size: 0; max-inline-size: 100%; }
.library-filters > label:first-child { grid-column: auto; }
.library-filters .form-control { box-sizing: border-box; min-width: 0; min-inline-size: 0; width: 100%; inline-size: 100%; max-width: 100%; max-inline-size: 100%; }
.library-filters input[type="date"] { appearance: none; -webkit-appearance: none; display: block; }
.library-filters input[type="date"]::-webkit-date-and-time-value { min-width: 0; min-inline-size: 0; text-align: left; }
.library-filters input[type="date"]::-webkit-datetime-edit { min-inline-size: 0; padding: 0; }
.button-purple { background: #7655bd; border-color: #7655bd; color: #fff; }
.button-purple:hover { background: #6041a3; border-color: #6041a3; }
.student-directory > article > h2 { color: #b85000; }
.bar-chart-with-axis { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 10px; }
.chart-value-axis { height: calc(175px + .7rem); margin-top: 4px; display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: var(--muted); font-size: .7rem; }
.chart-value-axis span { line-height: 1; transform: translateY(-50%); white-space: nowrap; }
.bar-chart-with-axis .bar-chart { background: none; position: relative; }
.bar-chart-with-axis .bar-pair { background: repeating-linear-gradient(to top,transparent 0,transparent calc(var(--chart-grid-step,25%) - 1px),var(--line) var(--chart-grid-step,25%)); }
.evolution-fold > summary, .booking-filters-fold > summary { cursor: pointer; font-size: 1rem; font-weight: 700; min-height: 44px; }
.evolution-fold-content { padding-top: 14px; }
.evolution-fold .panel-header { margin-top: 16px; }
.booking-filters-fold > .filters { margin-top: 14px; }
.booking-suggestions-fold, .booking-suggestion-group { padding: 12px; border: 1px solid var(--line); border-radius: 9px; margin: 12px 0; }
.booking-suggestions-fold summary, .booking-suggestion-group summary { cursor: pointer; min-height: 38px; font-weight: 600; }
.booking-suggestion-group > .button { margin: 6px 6px 0 0; max-width: 100%; white-space: normal; }
.dj-profile-area { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; min-width: 0; }
.dj-profile-photo { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; background: #ebe5fa; display: grid; place-items: center; flex-shrink: 0; color: #7655bd; font-size: 2.5rem; }
.dj-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview { display: block; width: 140px; height: 140px; border-radius: 14px; object-fit: cover; margin: 12px 0; }
.other-link-row { border-bottom: 1px solid var(--line); padding: 14px 0; }
.layout-choice { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.layout-choice .button[aria-pressed="true"] { background: #e9effe; border-color: var(--blue); color: var(--blue); }
.evolution-list-mode.cards, .evolution-list-mode.dj-layout, .evolution-list-mode.student-directory { display: flex; flex-direction: column; gap: 12px; }
.evolution-list-mode .video-thumb { width: 100%; max-width: 200px; min-height: 80px; }
.evolution-list-mode .dj-set-card > img { max-width: 200px; }
.people-table.evolution-block-mode tbody { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(250px,100%),1fr)); gap: 12px; padding: 12px 0; }
.people-table.evolution-block-mode tr { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.people-table.evolution-block-mode thead { display: none; }
.people-table.evolution-block-mode td { border: 0; }
.people-selection { display: inline-flex; margin-right: 10px; }
.people-bulk-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding-bottom: 14px; }
.people-bulk-toolbar > * { max-width: 100%; }
.people-profile-layout { display: grid; gap: 18px; margin-top: 20px; }
.people-profile-layout [data-profile-block] { margin: 0; }
[data-profile-role="student"] .people-profile-layout { border-left: 3px solid #dc8626; padding-left: 12px; }
[data-profile-role="teacher"] .people-profile-layout { border-left: 3px solid #7655bd; padding-left: 12px; }
[data-profile-role="organizer"] .people-profile-layout { border-left: 3px solid #438f79; padding-left: 12px; }
.layout-order { padding-left: 20px; }
.layout-order li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.layout-order li > span { flex: 1; }
.native-video { display: block; width: 100%; max-height: 65vh; background: #19242e; margin-bottom: 14px; }
.video-thumb > .button { background: transparent; min-height: 80px; width: 100%; font-size: 1.15rem; border: 0; }
.video-thumb > .video-play-button { height: 100%; display: flex; align-items: center; justify-content: center; }
.video-thumb small { pointer-events: none; }
.communication-groups { flex-wrap: wrap; gap: 8px; }
.communication-file-preview { display: grid; place-items: center; min-height: 130px; border-radius: 8px; background: #edf1fa; overflow: hidden; }
.communication-file-preview img { width: 100%; height: 180px; object-fit: contain; }
.communication-file .item-actions { margin-top: 12px; }
.communication-accounts .button { margin: 4px; }
.responsible-link-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media(max-width:650px) {
  .chart-value-axis { height: calc(154px + .7rem); }
  .dj-profile-area { gap: 12px; }
  .dj-profile-photo { width: 76px; height: 76px; }
  .dj-profile-area .button { margin-top: 6px; }
  .library-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .booking-filters-fold .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .booking-filters-fold .filters label { grid-column: auto; }
  .booking-filters-fold .filters label:has([data-cockpit-filter="bookingSort"]) { grid-column: 1/-1; }
}
@media(max-width:360px) { .library-filters, .booking-filters-fold .filters { grid-template-columns: 1fr; } }

.bulk-preview dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px 16px; }
.bulk-preview dd { margin: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.bulk-preview dt { font-weight: 700; }

.people-profile-layout.evolution-profile-blocks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.evolution-profile-blocks [data-profile-block] .list-row { padding: 14px; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; flex-wrap: wrap; }
@media(max-width:680px) { .people-profile-layout.evolution-profile-blocks { grid-template-columns: 1fr; } }

[data-person-role="student"], .student-name, [data-profile-role="student"]:has(.people-profile) > .section-header h1, .student-space-view .ssv-welcome { color: #b85000; }
.evolution-block-mode.list, .evolution-block-mode.document-list, .evolution-block-mode.evolution-row-collection { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(250px,100%),1fr)); gap: 12px; }
.evolution-block-mode.list > .list-row, .evolution-block-mode.document-list > .list-row, .evolution-block-mode.evolution-row-collection > .list-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; flex-wrap: wrap; align-items: start; }

/* Profile platform icons are local SVGs; links keep their exact saved URL. */
.dj-profile-links { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 14px; }
.dj-platform-link { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border:1px solid var(--line); border-radius:12px; color:var(--ink,#293446); background:white; }
.dj-platform-link svg { width:24px; height:24px; flex-shrink:0; }
.dj-platform-link:hover { border-color:var(--blue); color:var(--blue); }
.dj-platform-link:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.dj-platform-link[data-dj-platform="soundcloud"] { color:#b54b00; }
.dj-platform-link[data-dj-platform="instagram"] { color:#9b346e; }
#evo-dj-photo-status { overflow-wrap:anywhere; margin:8px 0; }
#evo-dj-photo-status[role="alert"] { color:#a52b34; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toast.toast-success { background: #237342; }
.toast.toast-error { background: #b32b38; }
/* Direction validée du cockpit — 12 octobre 2026.
   Présentation commune ; les sélecteurs métier et les modes Liste restent conservés. */
:root {
  --muted: #667184;
  --radius: 16px;
  --shadow: 0 2px 7px #222e3c04;
  --red-soft: #fcf0f2;
  --green-soft: #eef7f2;
  --purple-soft: #f2eef9;
  --amber-soft: #fff7e7;
}
body { font-size: .875rem; line-height: 1.65; }
h1 { font-size: clamp(1.8rem,2.5vw,2.125rem); letter-spacing: -.045em; line-height: 1.25; text-wrap: balance; }
h2 { font-size: 1.125rem; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
.shell { grid-template-columns: 238px minmax(0,1fr); }
.sidebar { padding: 30px 17px 22px; }
.brand { margin: 0 9px 25px; gap: 12px; }
.brand-mark { width: 38px; height: 38px; color: #c2cfff; border-radius: 12px; background: #344254; }
.brand-mark svg { width: 32px; height: 32px; }
.brand strong { font-size: 1.125rem; }
.brand small { font-size: .6875rem; letter-spacing: .015em; }
.sidebar-toggle { min-width: 44px; width: 44px; min-height: 44px; height: 44px; margin: -9px 0 16px; border-color: #405066; border-radius: 9px; }
.nav-eyebrow { margin: 0 13px 13px; font-size: .625rem; letter-spacing: .15em; color: #b4bfd0; }
.side-nav { gap: 6px; }
.nav-item { min-height: 47px; padding: 12px 13px; border-radius: 9px; font-size: .8125rem; gap: 12px; }
.nav-item.active { background: #354763; }
.nav-item.active::before { display: none; }
.nav-item.active .ui-icon { color: #c2cfff; }
.sidebar-footer { padding-top: 22px; }
.sidebar-bottom { margin: 0 13px; padding-top: 17px; font-size: .6875rem; }
.sidebar-privacy { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; }
.sidebar-caption { font-size: .6875rem; }
.topbar { min-height: 78px; padding: 16px clamp(24px,3.2vw,46px); box-shadow: none; }
.topbar-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-title .eyebrow { font-size: .75rem; white-space: nowrap; }
.topbar-title strong { font-family: var(--font-body); font-size: .8125rem; white-space: normal; }
.topbar-divider { color: #b4bdca; font-size: .75rem; }
.topbar-actions { gap: 10px; flex-wrap: nowrap; }
.global-search-toggle { min-width: 220px; border-radius: 9px; font-size: .75rem; justify-content: flex-start; }
.preview-button { max-width: 180px; font-size: .6875rem; border-color: var(--line); background: white; }
#main-content { max-width: 1510px; padding: 34px clamp(24px,3.2vw,46px) 100px; }
.section-header { margin-bottom: 26px; gap: 20px; align-items: center; }
.section-header p { font-size: .8125rem; margin-top: 7px; }
.section-actions { gap: 9px; }
.button, .icon-button, .button-small, .button-text, .filter-pill, .tab, .section-fold-button, .close-button, .calendar-head button, .chart-top button { min-height: 44px; border-radius: 9px; }
.button, .icon-button { padding: 10px 15px; font-size: .8125rem; }
.button { transition: background-color .15s, border-color .15s; }
.button:hover { background: var(--paper); border-color: #b7c5dd; }
.button-primary, .section-actions>.button:is([data-action^="new-"],[data-action="open-quick"],[data-action="person-new"],[data-action="dj-new"]) { background: var(--blue); color: white; border-color: var(--blue); }
.button-primary:hover, .section-actions>.button:is([data-action^="new-"],[data-action="open-quick"],[data-action="person-new"],[data-action="dj-new"]):hover { background: #254dab; border-color: #254dab; }
.button-purple { background: var(--purple); border-color: var(--purple); color: white; }
.button-purple:hover { background: #6041a3; border-color: #6041a3; }
.button-danger:hover { color: var(--danger); background: var(--red-soft); border-color: #e6bdc7; }
.button-text { padding-inline: 8px; }
.close-button { min-width: 44px; background: var(--paper); color: var(--muted); }
.panel { padding: 26px; border-radius: var(--radius); }
.panel-header { gap: 14px; margin-bottom: 21px; }
.panel-header h2 { font-size: 1.125rem; }
.grid-2, .grid-3, .cards, .overview-grid, .billing-grid, .dashboard-charts, .settings-grid, .profile-grid, .dj-layout { gap: 22px; }
.item-card { padding: 23px; gap: 18px; border-radius: 16px; }
.item-top h2, .item-top h3 { font-size: 1.0625rem; line-height: 1.4; }
.item-meta { gap: 9px; }
.item-money { padding-top: 18px; }
.item-actions { gap: 9px; }
.item-actions .button { flex-basis: 120px; }
.list-row { min-height: 70px; gap: 14px; padding: 16px 0; }
.row-body strong { font-weight: 600; font-size: .84375rem; }
.row-body small { font-size: .75rem; }
.date-chip { width: 50px; min-width: 50px; height: 54px; border-radius: 10px; background: var(--paper); color: var(--muted); }
.date-chip strong { font-size: 1.3rem; color: var(--ink); }
.date-chip small { font-size: .625rem; }
.chip, .status { border-radius: 6px; font-size: .75rem; }
.empty { padding: 30px 20px; color: var(--muted); background: var(--paper); border: 1px dashed #d8e0ec; border-radius: 12px; }
.empty strong { font-weight: 500; line-height: 1.6; }
.home-blocks { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 22px; align-items: start; }
.home-block { min-width: 0; }
.home-block[data-home-block="summary"] { grid-column: 1/-1; }
.home-block>.panel { height: 100%; }
.home-block .dashboard-kpis { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 22px; }
.home-block .dashboard-kpis .kpi { min-height: 205px; border-top: 1px solid var(--line); padding: 25px 28px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.home-card-label { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; font-size: .75rem!important; letter-spacing: .04em; color: var(--muted); }
.home-card-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
.home-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.home-block .dashboard-kpis button.home-balance { background-color: var(--deep); background-image: radial-gradient(circle at calc(100% + 20px) -5%,transparent 72px,#344254 73px 102px,transparent 103px); border-color: var(--deep); color: white; position: relative; overflow: hidden; }
.home-balance::after { display: none; }
.home-balance>* { position: relative; z-index: 1; }
.home-block .dashboard-kpis .home-balance:hover { background-color: #29384b; border-color: #43536b; }
.home-balance .home-card-label, .home-balance small { color: #c4cfde!important; }
.home-block .dashboard-kpis .home-balance strong { display: block; font-size: clamp(2rem,3vw,2.75rem); letter-spacing: -.04em; color: white; margin: 12px 0 18px; }
.home-balance .home-card-link { color: white; padding: 9px 12px; border-radius: 7px; background: #344254; }
.home-next-main { display: flex; align-items: center; gap: 20px; margin: 20px 0 12px; min-width: 0; }
.home-next-main>div:last-child { min-width: 0; }
.home-next-main .date-chip { width: 64px; min-width: 64px; height: 68px; color: var(--danger); background: var(--red-soft); }
.home-next-main .date-chip strong { color: var(--danger); font-size: 1.7rem; margin: 0; }
.home-next-main .date-chip small { color: var(--danger); }
.home-block .dashboard-kpis .home-next-main>div>strong { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.35; margin: 0 0 6px; }
.home-next-main>div>small { line-height: 1.7; }
.bar-chart-with-axis { overflow-x: auto; padding-bottom: 4px; grid-template-columns: max-content minmax(294px,1fr); }
.bar-chart-with-axis:has(.chart-month:nth-child(7)) { grid-template-columns: max-content minmax(594px,1fr); }
.chart-month { min-height: 44px; }
.bar.income, .legend-dot.income { background: var(--blue); }
.bar.expense, .legend-dot.expense { background: #b9c6dc; }
.bar { border-radius: 5px 5px 0 0; }
.chart-legend { font-size: .75rem; margin-top: 18px; }
.donut-legend button { min-height: 44px; border-radius: 6px; }
.donut-legend button:hover { background: var(--paper); text-decoration: none; }
.action-grid .button { min-height: 68px; padding: 14px 16px; text-align: left; font-size: .8125rem; border-radius: 10px; background: var(--paper); }
.agenda-layout { grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); gap: 22px; }
.calendar { border-radius: 10px; overflow: hidden; }
.calendar .day { min-height: 85px; padding: 9px; }
.calendar .day.today { background: #f2f6ff; box-shadow: inset 0 0 0 2px var(--blue); }
.calendar .day.selected { background: #edf2fd; box-shadow: inset 0 0 0 2px var(--blue); }
.calendar .weekday { font-size: .6875rem; background: var(--paper); padding-block: 12px; }
.calendar-event-label { padding: 5px 6px; border-radius: 5px; line-height: 1.4; }
.calendar-head { gap: 12px; }
.calendar-head button { min-width: 44px; }
.agenda-filters .filter-pill { border-radius: 8px; background: white; padding: 9px 12px; }
.agenda-list-row, .calendar-event-row { min-height: 77px; padding: 15px 0; gap: 14px; border-radius: 0; }
.agenda-list-row:hover, .calendar-event-row:hover { background: var(--paper); }
.agenda-list-row[data-action="open-booking"] .date-chip { color: var(--danger); background: var(--red-soft); }
.agenda-list-row[data-action="open-private"] .date-chip { color: var(--green); background: var(--green-soft); }
.agenda-list-row[data-action="open-followed"] .date-chip { color: var(--purple); background: var(--purple-soft); }
.agenda-list-row .date-chip strong { color: inherit; }
.filters { gap: 12px; align-items: end; margin-bottom: 22px; }
.filters>label { font-size: .75rem; }
.filters .form-control, .library-filters .form-control { background-color: white; }
.booking-filters-fold, .evolution-fold { border-radius: 16px; }
.booking-filters-fold>summary, .evolution-fold>summary { font-family: var(--font-display); font-weight: 600; }
.evolution-fold-content { padding-top: 20px; }
.section-fold-button, .filter-pill, .tab { padding: 9px 12px; }
.filter-pill.active, .tab.active { color: var(--blue); background: var(--sea); border-color: #bccdf3; }
.form-control { min-height: 46px; padding: 11px 13px; border-radius: 9px; border-color: #cbd4e1; }
.field { gap: 8px; }
.field label, .field>label, .folder-form-grid label { font-size: .8125rem; font-weight: 500; }
.field-hint { font-size: .75rem; line-height: 1.7; }
.home-welcome .button, #main-content>.button { min-height: 44px; }
#main-content summary, #dialog-fields summary { min-height: 44px; padding-block: 8px; }
.form-grid { gap: 20px; }
.dialog-fields fieldset { border-radius: 12px; padding: 16px; }
.dialog-fields fieldset label, .person-role-choices label, .booking-selection { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }
dialog { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 80px #17233130; }
dialog::backdrop { background: #17233180; backdrop-filter: blur(3px); }
.dialog-header { padding: 24px 28px 20px; align-items: center; background: white; }
.dialog-header h2 { font-size: 1.4rem; letter-spacing: -.035em; }
.dialog-fields { padding: 25px 28px; }
.dialog-actions { padding: 20px 28px; background: var(--paper); }
.dialog-header .eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: .625rem; }
.quick-options button { min-height: 60px; border-radius: 6px; }
.quick-options button:hover { background: var(--paper); }
.warning, .info-panel, .export-summary, .student-owner-notice, .connection-hint { border-radius: 10px; line-height: 1.7; }
.prototype-note.connection-status-fold { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: .75rem; }
.connection-status-fold>summary, .student-owner-controls summary, .managed-course-folders>summary { min-height: 44px; padding-block: 11px; }
.person-avatar, .person-portrait { border-radius: 50%; background: var(--sea); }
.person-name, .profile-identity h1 { font-weight: 600; }
.profile-tabs { gap: 25px; }
.profile-tabs button { min-height: 48px; font-size: .8125rem; }
.people-table th { color: var(--muted); font-size: .75rem; font-weight: 500; }
.people-table td { border-color: var(--line); }
.people-table.evolution-list-mode td>.button { display: inline-flex; align-items: center; min-height: 44px; }
.profile-facts { gap: 20px; }
.profile-facts dt { font-weight: 500; }
.role-tag { color: #536ba3; background: var(--sea); border-radius: 5px; }
.student-directory { gap: 22px; }
.student-directory>.panel { display: flex; flex-direction: column; gap: 8px; }
.student-directory>.panel>p { margin: 0; }
.student-directory .person-profile-heading h2 { font-size: 1.25rem; }
.student-directory .item-actions { margin-top: auto; padding-top: 12px; }
.student-directory .status { align-self: flex-start; }
.student-owner-controls { margin-bottom: 22px; }
.student-owner-controls details { padding-top: 10px; }
.student-owner-controls .row-end { display: flex; flex-wrap: wrap; gap: 8px; }
.finance-kpis .kpi, .artist-totals>div { border-radius: 14px; }
.finance-kpis.finance-balance .kpi { background: var(--deep); color: white; padding: 27px; }
.finance-balance .kpi>span, .finance-balance .kpi small { color: #c4cfde; }
.finance-balance .kpi strong { color: white; font-size: 2.5rem; }
.finance-entry-table.evolution-list-mode td>.button { min-height: 44px; }
.transaction-table th { font-size: .75rem; color: var(--muted); font-weight: 500; background: var(--paper); }
.transaction-table td { padding-block: 16px; }
.payment-link-row, .saved-clients button, .billing-summary { border-radius: 12px; }
.navigation-order .button { min-width: 44px; min-height: 44px; }
.more-grid>button { min-height: 100px; font-size: .9375rem; }
.connection-grid .panel { background: var(--paper); box-shadow: none; }
.settings-grid .panel>.button { margin-block: 4px; }
.dj-profile-area { border-radius: 16px; }
.dj-layout .panel, .dj-set-card { border-radius: 16px; background: var(--deep); }
.dj-cover { border-radius: 12px; }
.dj-set-list button { min-height: 64px; border-radius: 10px; background: #2c3b4e; }
.dj-layout .button:hover { color: var(--ink); }
.dj-layout .button-text:hover { color: #c4d6fc; }
.soundcloud-link { min-height: 44px; }
.video-thumb, .private-video-link, .commercial-preview, .mail-preview { border-radius: 12px; }
.pipeline-batch-limit select { border-color: #cbd4e1; border-radius: 9px; }
.video-pipeline-course-status { border-radius: 12px; }
.evolution-list-mode>.evolution-compact-row, .evolution-list-mode>.evolution-dense-row { border-radius: 9px; min-height: 52px; }
.evolution-compact-main { min-height: 44px; }
.quick-add { width: 54px; height: 54px; border-radius: 16px; background: var(--blue); box-shadow: 0 6px 18px #315fcd25; }
.toast { border-radius: 10px; background: var(--deep); max-width: calc(100vw - 32px); white-space: normal; }
@media(min-width:1600px) { #main-content { padding-top: 42px; } }
@media(min-width:701px) and (max-width:1100px) {
  .shell { grid-template-columns: 200px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { gap: 9px; margin-inline: 4px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .625rem; }
  .nav-item { padding-inline: 11px; font-size: .75rem; gap: 9px; }
  .topbar { padding-inline: 26px; }
  #main-content { padding-inline: 26px; }
  .global-search-toggle { width: 44px; min-width: 44px; padding: 12px; }
  .global-search-toggle span { display: none; }
  .preview-button { min-width: 44px; width: 44px; padding: 12px; font-size: 0; }
  .preview-button span { font-size: 1rem; }
  .home-blocks { grid-template-columns: 1fr; }
  .home-block .dashboard-kpis { grid-template-columns: 1fr 1.1fr; }
  .home-block .dashboard-kpis .kpi { padding: 22px; }
  .home-card-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-next-main { gap: 13px; }
  .home-block .dashboard-kpis .home-next-main>div>strong { font-size: 1.2rem; }
  .agenda-layout, .grid-2, .grid-3, .profile-grid, .settings-grid { grid-template-columns: 1fr; }
}
@media(max-width:700px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: calc(12px + env(safe-area-inset-top)) 20px 12px; min-height: 68px; gap: 12px; }
  .topbar-title { display: none; }
  .topbar-actions { gap: 6px; }
  .global-search-toggle, .preview-button { min-width: 44px; width: 44px; height: 44px; padding: 12px; }
  .preview-button { font-size: 0; border-color: var(--line); }
  .preview-button span { font-size: 1rem; }
  .mobile-brand { gap: 10px; }
  .mobile-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--deep); color: #c2cfff; font-size: 1rem; }
  .mobile-brand strong { font-size: .8125rem; letter-spacing: .03em; }
  #main-content { padding: 27px 20px calc(140px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.8125rem; }
  .section-header { gap: 17px; margin-bottom: 23px; align-items: flex-start; }
  .section-header p { font-size: .8125rem; }
  .section-actions { width: 100%; justify-content: flex-start; gap: 8px; }
  .section-actions .button { max-width: 100%; flex: 0 1 auto; }
  .panel { padding: 21px; border-radius: 14px; }
  .panel-header { gap: 12px; margin-bottom: 18px; }
  .panel-header h2 { font-size: 1.0625rem; }
  .home-blocks { grid-template-columns: 1fr; gap: 18px; }
  .home-block .dashboard-kpis { grid-template-columns: 1fr; gap: 16px; }
  .home-block .dashboard-kpis .kpi { padding: 23px; min-height: 196px; }
  .home-block .dashboard-kpis .home-balance strong { font-size: 2.5rem; }
  .home-card-foot { align-items: center; flex-direction: row; }
  .home-card-foot>small { max-width: 45%; }
  .home-card-link { font-size: .6875rem; }
  .home-next-main { gap: 16px; margin-block: 23px 8px; }
  .home-block .dashboard-kpis .home-next-main>div>strong { font-size: 1.3rem; }
  .home-next-main .date-chip { width: 56px; min-width: 56px; height: 62px; }
  .grid-2, .grid-3, .profile-grid, .settings-grid, .billing-grid, .agenda-layout { grid-template-columns: 1fr; gap: 18px; }
  .cards { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .item-card { padding: 21px; }
  .calendar .day { min-height: 60px; padding: 5px; }
  .agenda-layout>section.panel:first-child { padding-inline: 12px; }
  .calendar { grid-template-columns: repeat(7,minmax(44px,1fr)); overflow-x: auto; }
  .calendar .weekday { font-size: .625rem; }
  .calendar-event-label { font-size: .6875rem; padding: 3px; }
  .list-row { flex-wrap: wrap; gap: 10px; }
  .home-block[data-home-block="agenda"] .list-row>strong { flex: 1; min-width: 100px; }
  .home-block[data-home-block="agenda"] .list-row>.button { margin-left: auto; }
  .donut-wrap { flex-wrap: wrap; justify-content: flex-start; gap: 18px; }
  .donut-legend { min-width: 145px; }
  .action-grid { grid-template-columns: 1fr; }
  .filters { gap: 13px 10px; }
  .filters>label { flex: 1 1 120px; }
  .student-owner-controls .row-end { width: 100%; }
  .student-directory-search { margin-bottom: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .dialog-header { padding: 21px 20px 18px; }
  .dialog-header h2 { font-size: 1.3rem; }
  .dialog-fields { padding: 23px 20px; }
  .dialog-actions { padding: 17px 20px calc(20px + env(safe-area-inset-bottom)); }
  .sheet-dialog, .quick-dialog { border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .folders-dialog { margin: auto; border-radius: 16px; }
  .finance-balance .kpi strong { font-size: 2rem; }
  .bottom-nav { background: #fffffffa; backdrop-filter: blur(12px); padding-inline: 7px; }
  .bottom-item { border-radius: 10px; min-width: 44px; }
  .bottom-item small { font-size: .625rem; }
  .quick-add { right: 20px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .people-table.evolution-list-mode td>.button { font-size: .75rem; padding-inline: 2px; }
  .evolution-list-mode>.evolution-compact-row, .evolution-list-mode>.evolution-dense-row { min-height: 52px; }
}
@media(max-width:370px) { #main-content { padding-inline: 14px; } .topbar { padding-inline: 14px; } .panel { padding: 18px; } }
@media(max-width:420px) { .agenda-filters>label { flex-basis: 100%; } }
@media print { .home-balance { print-color-adjust: exact; } #main-content { padding: 0; } }

/* Les contrats du mode Liste restent prioritaires sur les styles généraux. */
.evolution-list-mode.cards, .evolution-list-mode.dj-layout, .evolution-list-mode.student-directory { align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.evolution-list-mode > .evolution-compact-row { display: flex; flex-direction: row; align-items: center; align-self: stretch; width: 100%; box-sizing: border-box; flex-wrap: nowrap; background: var(--white); gap: 10px; margin: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; min-width: 0; }
.evolution-list-mode > .evolution-compact-row:last-child { border-bottom: 0; }
.evolution-compact-main { display: none; }
.evolution-list-mode > .evolution-compact-row > .evolution-row-detail { display: none; }
.evolution-list-mode > .evolution-compact-row > .evolution-compact-main { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr) auto; flex: 1; border: 0; background: transparent; color: var(--ink); padding: 2px 0; text-align: left; min-height: 44px; min-width: 0; white-space: nowrap; gap: 0 10px; }
.evolution-compact-main strong { font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evolution-compact-main > span:not(.evolution-row-arrow) { grid-column: 2; grid-row: 1; font-size: .78rem; line-height: 1.4; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evolution-compact-main .evolution-row-arrow { grid-column: 3; grid-row: 1; align-self: center; }
.evolution-list-mode .evolution-compact-row .booking-selection { margin: 0; flex: 0 0 auto; font-size: 0; }
.evolution-list-mode .evolution-compact-row .booking-selection input { width: 20px; height: 20px; margin: 0; }
.evolution-list-mode .evolution-row-status { max-width: 180px; flex: 0 1 auto; }
.evolution-list-mode .evolution-row-status select { max-width: 100%; min-height: 38px; background: transparent; }
.evolution-list-mode > .private-tone-confirmed .evolution-compact-main, .evolution-list-mode > .private-tone-confirmed .evolution-compact-main > span:not(.evolution-row-arrow) { color: #086642; }
.evolution-list-mode > .private-tone-cancelled .evolution-compact-main, .evolution-list-mode > .private-tone-cancelled .evolution-compact-main > span:not(.evolution-row-arrow) { color: #b71030; }
.evolution-block-mode .evolution-row-status { margin-top: 8px; }
.evolution-consultation .evolution-row-status { margin-bottom: 14px; }
.evolution-compact-row:focus-visible, .evolution-compact-main:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media(max-width:650px) {
 .evolution-list-mode > .evolution-compact-row { padding: 6px 8px; gap: 6px; }
 .evolution-list-mode > .evolution-compact-row > .evolution-compact-main { gap: 0 5px; }
 .evolution-list-mode .evolution-row-status { flex: 0 0 100px; max-width: 100px; }
 .evolution-list-mode .evolution-row-status select { width: 100%; min-width: 0; padding-left: 6px; padding-right: 18px; font-size: .75rem; }
 .evolution-compact-main strong { font-size: .8rem; }
 .evolution-compact-main > span:not(.evolution-row-arrow) { font-size: .72rem; }
}

.person-profile-heading{display:flex;align-items:center;gap:16px;min-width:0;flex-wrap:wrap}.person-profile-heading>.section-header{flex:1;min-width:200px}.person-portrait{width:72px;height:72px;object-fit:cover;border-radius:50%;flex-shrink:0}.people-table .person-portrait{width:36px;height:36px;vertical-align:middle;margin-right:10px}

/* Secondary collections use their own presentation scope, including People role layouts. */
.evolution-list-mode > .evolution-dense-row { display: flex; flex-direction: row; align-items: center; align-self: stretch; width: 100%; max-width: 100%; box-sizing: border-box; flex-wrap: nowrap; gap: 8px; padding: 6px 0; min-height: 48px; min-width: 0; background: transparent; }
.evolution-list-mode > .evolution-dense-row > .row-body, .evolution-list-mode > .evolution-dense-row > div:not(.row-end):not(.section-actions) { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.evolution-list-mode > .evolution-dense-row .row-body > strong, .evolution-list-mode > .evolution-dense-row > div:not(.row-end):not(.section-actions) > strong { flex: 1 1 0; min-width: 0; }
.evolution-list-mode > .evolution-dense-row .row-body > small, .evolution-list-mode > .evolution-dense-row > div:not(.row-end):not(.section-actions) > small { display: inline; margin: 0; flex: 1.3 1 0; min-width: 0; }
.evolution-list-mode > .evolution-dense-row strong, .evolution-list-mode > .evolution-dense-row small, .evolution-list-mode > .evolution-dense-row > .button:not(.evolution-dense-command) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.evolution-list-mode > .evolution-dense-row > strong, .evolution-list-mode > .evolution-dense-row > .button:not(.evolution-dense-command) { flex: 1 1 0; min-width: 0; }
.evolution-list-mode > .evolution-dense-row > small { display: inline; flex: 1 1 0; min-width: 0; margin: 0; }
.evolution-list-mode > .evolution-dense-row > .row-end, .evolution-list-mode > .evolution-dense-row > .section-actions { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; flex: 0 0 auto; max-width: none; width: auto; gap: 4px; white-space: nowrap; }
.evolution-list-mode > .evolution-dense-row .row-end > strong { flex-basis: auto; font-size: .8rem; }
.evolution-list-mode > .evolution-dense-row .evolution-dense-command { flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px; min-height: 44px; padding: 0; font-size: 0; white-space: nowrap; overflow: hidden; }
.evolution-list-mode > .evolution-dense-row .evolution-dense-command::after { content: attr(data-command-icon); font-size: 1rem; }
.evolution-list-mode > .evolution-dense-row .date-chip { display: inline-flex; flex-direction: row; align-items: center; flex: 0 0 auto; width: auto; height: auto; min-width: 0; gap: 3px; padding: 0; background: transparent; }
.evolution-list-mode > .evolution-dense-row .date-chip strong { font-size: .85rem; }
.evolution-list-mode > .evolution-dense-row .date-chip small { font-size: .72rem; }
.people-table.evolution-list-mode { table-layout: fixed; width: 100%; }
.people-table.evolution-list-mode th:nth-child(1) { width: 52%; }
.people-table.evolution-list-mode th:nth-child(2) { width: 28%; }
.people-table.evolution-list-mode th:nth-child(3) { width: 20%; }
.people-table.evolution-list-mode tbody > .evolution-dense-row { display: table-row; }
.people-table.evolution-list-mode th, .people-table.evolution-list-mode td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-table.evolution-list-mode td > small { display: inline; margin: 0 0 0 6px; white-space: nowrap; overflow-wrap: normal; }
.people-table.evolution-list-mode td > .button { display: inline; white-space: nowrap; overflow-wrap: normal; }
@media(max-width:650px) {
 .evolution-list-mode > .evolution-dense-row { gap: 5px; font-size: .8rem; }
 .evolution-list-mode > .evolution-dense-row .row-body, .evolution-list-mode > .evolution-dense-row > div:not(.row-end):not(.section-actions) { gap: 5px; }
 .evolution-list-mode > .evolution-dense-row .row-end { text-align: right; }
 .people-table.evolution-list-mode td { padding: 8px 5px; }
 .people-table.evolution-list-mode .person-portrait { width: 28px; height: 28px; margin-right: 5px; }
}

/* Native financial entries are listable records, separate from finance indicators. */
.finance-entry-table.evolution-list-mode { width: 100%; max-width: 100%; min-width: 0; table-layout: fixed; }
.finance-entry-table.evolution-list-mode th, .finance-entry-table.evolution-list-mode td { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; padding: 10px 7px; }
.finance-entry-table.evolution-list-mode th:nth-child(1) { width: 15%; }
.finance-entry-table.evolution-list-mode th:nth-child(2) { width: 30%; }
.finance-entry-table.evolution-list-mode th:nth-child(3) { width: 15%; }
.finance-entry-table.evolution-list-mode th:nth-child(4) { width: 15%; }
.finance-entry-table.evolution-list-mode th:nth-child(5) { width: 25%; }
.finance-entry-table.evolution-list-mode td > .button { display: block; width: 100%; min-width: 0; min-height: 28px; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; text-align: left; }
.finance-entry-table.evolution-list-mode .evolution-finance-row { cursor: pointer; }
.finance-entry-table.evolution-list-mode .evolution-finance-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media(max-width:650px) { .finance-entry-table.evolution-list-mode th, .finance-entry-table.evolution-list-mode td { padding: 8px 3px; font-size: .7rem; } .finance-entry-table.evolution-list-mode td > .button { font-size: .7rem; } }

/* Secondary Private requests and saved clients inherit their page's List choice. */
.payment-link-list.evolution-list-mode > .payment-link-row { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; align-self: stretch; width: 100%; max-width: 100%; box-sizing: border-box; gap: 5px; min-width: 0; min-height: 48px; padding: 6px; background: var(--white); }
.payment-link-list.evolution-list-mode > .payment-link-row > .payment-link-summary { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; flex: 1 1 0; gap: 5px; min-width: 0; }
.payment-link-list.evolution-list-mode .payment-link-summary > strong, .payment-link-list.evolution-list-mode .payment-link-summary > small, .payment-link-list.evolution-list-mode > .payment-link-row > small { display: inline; flex: 1 1 0; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.payment-link-list.evolution-list-mode .payment-link-summary > small { flex: 1.8 1 0; }
.payment-link-list.evolution-list-mode .prepared-link { display: none; }
.payment-link-list.evolution-list-mode > .payment-link-row > [data-evo-payment-consult], .payment-link-list.evolution-list-mode > .payment-link-row > .evolution-payment-new { flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px; min-height: 44px; padding: 0; white-space: nowrap; font-size: 0; overflow: hidden; }
.payment-link-list.evolution-list-mode [data-evo-payment-consult]::after { content: '→'; font-size: 1rem; }
.payment-link-list.evolution-list-mode .evolution-payment-new::after { content: '+'; font-size: 1rem; }
.payment-link-list.evolution-list-mode > .payment-link-row:focus-visible, .saved-clients.evolution-list-mode > .saved-client-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.saved-clients.evolution-list-mode { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.saved-clients.evolution-list-mode > .saved-client-row { border-bottom: 1px solid var(--line); cursor: pointer; }
@media(max-width:650px) { .payment-link-list.evolution-list-mode > .payment-link-row { font-size: .8rem; gap: 4px; } .payment-link-list.evolution-list-mode .payment-link-summary { gap: 4px; } }

.entity-links[data-entity-contacts].evolution-list-mode { min-width: 0; max-width: 100%; }
.entity-links[data-entity-contacts].evolution-list-mode > .button { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

/* Background preparation choices remain outside the phone media pipeline. */
.pipeline-folder-choices,.pipeline-limits{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));margin:12px 0}.video-pipeline-panel label{display:flex;gap:8px;align-items:center;min-width:0}.pipeline-limits label{flex-direction:column;align-items:stretch}.video-pipeline-panel input:not([type=checkbox]),.video-pipeline-panel select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.video-pipeline-panel fieldset{min-width:0;border:0;padding:0}.pipeline-processor,.pipeline-jobs li{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:8px 0}.pipeline-jobs{padding-left:20px}.pipeline-jobs strong{overflow-wrap:anywhere}

.video-pipeline-panel label:has(>select),.video-pipeline-panel label:has(>input[type="number"]){display:flex;flex-direction:column;gap:7px;min-inline-size:0}.video-pipeline-panel select,.video-pipeline-panel input[type="number"]{display:block;width:100%;min-height:44px;box-sizing:border-box;border:1px solid var(--border,#cbd5e1);border-radius:8px;padding:10px 12px;background:var(--card,#fff);color:inherit;font:inherit;min-inline-size:0}.video-pipeline-panel fieldset{min-inline-size:0}

/* Real lot progress stays independent of the card/player DOM. */
.video-pipeline-course-status progress{width:min(100%,32rem);height:14px;accent-color:var(--blue,#287fa9)}
.video-pipeline-course-status .pipeline-percent{margin-inline-start:12px;font-weight:700}
.video-pipeline-course-status small{display:block;margin-block:8px;color:var(--muted,#536576)}
.video-preparation-status:empty{display:none}.video-preparation-status{font-size:.85rem;color:var(--muted,#536576);margin:8px 0}
.pipeline-batch-limit{display:flex;align-items:center;gap:8px}.pipeline-batch-limit select{min-height:44px;padding:8px;border:1px solid var(--border,#cbd5e1);border-radius:8px;background:var(--card,#fff);color:inherit;font:inherit}
@media(max-width:650px){.video-pipeline-course-status .button{margin-block:4px;width:100%}.pipeline-batch-limit{width:100%}.pipeline-batch-limit select{flex:1}}


/* Cibles de consultation lisibles dans les listes financières. */
.finance-entry-table.evolution-list-mode td>.button { min-height: 44px; }
.people-table.evolution-list-mode td>.button { display: inline-flex; align-items: center; min-height: 44px; }
.evolution-list-mode>.evolution-compact-row, .evolution-list-mode>.evolution-dense-row { min-height: 52px; }
.evolution-list-mode .evolution-row-status select { min-height: 44px; }
/* Agenda classification workspace */
.calendar-qualification .filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-block:16px}
.calendar-qualification .filters input,.calendar-qualification .filters select{width:100%;min-width:0}
.calendar-selection-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.calendar-qualification details{margin-block:16px}
.calendar-mobile-selection{display:none}
[role="tablist"]{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
[role="tab"]{padding:12px;border:1px solid #ccd5e3;border-radius:12px;background:white;color:#203650}
[role="tab"][aria-selected="true"]{background:#e9efff;border-color:#2862dc}
@media(max-width:700px){.calendar-mobile-selection:not([hidden]){display:flex;position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:12px;right:12px;z-index:35;padding:10px;gap:8px;align-items:center;justify-content:center;background:white;border:1px solid #dce3ee;border-radius:16px;box-shadow:0 4px 20px #18345222}.calendar-mobile-selection button{font-size:13px;padding:10px}.calendar-qualification{padding-bottom:90px}.calendar-qualification .agenda-list-row{align-items:flex-start;gap:10px}.calendar-qualification .row-body{min-width:0;overflow-wrap:anywhere}}

.booking-workflow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;align-items:start}.booking-workflow .item-card{margin-block:12px}

/* Owner formula actions remain reachable on narrow phones. */
.student-owner-formula .row-end{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
@media(max-width:600px){.student-owner-formula .list-row{flex-direction:column;align-items:stretch}.student-owner-formula .row-end{width:100%}.student-owner-formula .row-end .button{flex:1;white-space:normal}}

/* Small location hints remain visible when the desktop page title is hidden. */
.dialog-header > div:first-child { min-width: 0; }
.dialog-header .location-hint { display: block; color: var(--muted); font-size: .75rem; line-height: 1.5; letter-spacing: .015em; text-transform: none; overflow-wrap: anywhere; }
#mobile-location { display: none; color: var(--muted); font-family: var(--font-body); font-size: .75rem; font-weight: 400; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
@media(max-width:700px) {
  .mobile-brand { min-width: 0; flex: 1 1 0; }
  .topbar { flex-wrap: wrap; row-gap: 5px; }
  #mobile-location { display: block; flex: 0 0 100%; order: 3; }
}

/* Pending work uses the existing orange action palette, with explicit labels. */
.button[data-course-validation-due="true"], .home-actions [data-action="student-space-validate-course"] { background: var(--mandarine-soft, #ffe1bd); color: #813b12; border-color: #cf9466; }
.home-actions { margin-bottom: 24px; }
.home-actions > summary { font-weight: 600; }
.home-actions details { margin-top: 16px; }
.home-actions .action-count { margin-left: 8px; font-size: .85em; }
.home-actions .list-row { flex-wrap: wrap; }
@media(max-width:600px){.home-action-row .button{max-width:100%;white-space:normal;}.home-actions .row-body{min-width:0;overflow-wrap:anywhere;}}
@media(max-width:600px){.home-action-row{flex-direction:column;align-items:stretch;}.home-action-row .row-body{width:100%;}.home-action-row .button{align-self:flex-start;}}

.action-review-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;align-items:center}.action-review-toolbar>strong{flex-basis:100%}.review-selection{display:flex;gap:8px;align-items:center;min-height:44px;font-size:.85rem}.review-selection input{width:20px;height:20px}.home-action-row>.review-selection{flex-basis:100%}.home-action-row>.item-actions{display:flex;flex-wrap:wrap;gap:8px}.action-review-toolbar .button{white-space:normal;max-width:100%}

/* Selection shares the title line; the entire label remains a touch target. */
.review-selection{margin:0;align-items:center;line-height:1.35}.review-selection input{flex:0 0 20px;margin:0}.review-selection strong{min-width:0;overflow-wrap:anywhere;font-size:1rem}.home-action-row .review-selection{width:100%}.home-action-row>.row-body>small{display:block;margin-left:28px}
#responsible-picker-dialog .dialog-header h2{overflow-wrap:anywhere}#responsible-picker-dialog .dialog-actions .button{white-space:normal}#responsible-picker-fields .panel{margin:0}

/* Sorting and responsible controls share their related row. */
.action-review-toolbar>.action-review-sort{flex-basis:100%;margin:0 0 4px;max-width:100%}
.table-sort-button{font:inherit;color:inherit;background:none;border:0;padding:6px 0;min-height:44px;cursor:pointer;text-align:left}
.table-sort-button:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}
.responsible-link-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;width:100%;min-width:0}
.responsible-link-controls>.button{width:100%;height:100%;margin:0}
.responsible-choice{min-width:0;margin:0;align-self:start}
.responsible-choice select{width:100%;max-width:100%;min-width:0}
.responsible-choice p{font-size:.8125rem;margin:6px 0 0}
.responsible-choice p:empty,.responsible-linked:empty{display:none}
.responsible-linked{grid-column:1/-1}
@media(max-width:640px){.responsible-link-controls{grid-template-columns:minmax(0,1fr)}}

.people-list-controls{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:14px 0}
.people-list-controls>label{display:grid;gap:6px;flex:1 1 240px;min-width:0;max-width:350px;margin:0;color:var(--muted);font-size:.8125rem}
.people-list-controls select{width:100%;max-width:100%;min-width:0}

.private-participant-editor{align-items:start;gap:12px;flex-wrap:wrap}.private-participant-price{display:grid;gap:10px;min-width:0;width:min(100%,280px)}.private-participant-price label{display:grid;gap:6px}.private-participant-price [hidden]{display:none}.private-participant-price small{color:var(--muted)}
[data-action="student-space-purge-plan"]{color:var(--danger,#9b2258);border-color:#dba8c1}

.batch-course-heading{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:12px}
.batch-course-heading>strong{min-width:0;overflow-wrap:anywhere}
.batch-course-heading>.batch-course-remove{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:1.35rem;line-height:1}

/* Pending action headings; ignored reminders and empty states keep their normal color. */
.home-actions:has(>details[data-detail-key^="home-actions-"])>summary,
.home-actions>details[data-detail-key^="home-actions-"]>summary{color:#b42318}

/* Keep the required course confirmation visible before the scrollable details. */
.student-completion-confirm{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--sea);cursor:pointer}
.student-completion-confirm>input[type="checkbox"]{flex:0 0 18px;margin:3px 0 0}

/* Distinguish when a copy was saved from when Drive was last checked. */
.device-sync-dates { display: grid; gap: 6px; margin-top: 8px; }
.device-sync-dates small { overflow-wrap: anywhere; }

/* Training disclosure controls retain form values and remain touch accessible. */
.training-group-title{font-size:1rem;margin:1rem 0 .45rem}
.training-disclosure>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600;padding:.5rem 0}
.training-disclosure>fieldset{border:0;margin:0;padding:.5rem 0}
.training-disclosure>fieldset>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.training-add-row{display:grid;gap:8px;margin:0 0 10px}
.training-add-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.training-add-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.training-add-row .button{min-width:0;width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;margin:0;padding:10px 7px;font-size:.9rem}
.training-google-action{margin:1rem 0}

/* Training only: compact minute-resolution hours, retaining native mobile controls. */
.form-grid .training-time-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
#form-dialog .training-time-fields input[type="time"] { box-sizing: border-box; min-inline-size: 0; inline-size: 100%; max-inline-size: 10rem; min-height: 44px; }
.training-time-fields .full { grid-column: 1 / -1; margin: 0; }

.training-time-fields > .field { min-width: 0; }

/* Compact Training session cards; native details retain keyboard support. */
.training-session-card{display:block}
.training-session-card>details>summary{cursor:pointer;min-height:44px;align-content:center;color:var(--text)}
.training-session-card>details>summary h2{display:inline;margin:0;font-size:1.2rem;overflow-wrap:anywhere}
.training-session-body{display:grid;gap:12px;padding-top:4px;min-width:0}
.training-session-body>p{margin:0}
.training-session-schedule{display:block;font-size:.875rem;font-weight:400;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.training-session-movement,.training-session-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.training-session-movement>.button,.training-movement-name{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.training-movement-name{border:1px solid var(--border);border-radius:12px;padding:10px 14px}
.training-session-card .button[data-action="training-remove"]{background:#fce7ed;color:#a12849;border-color:#eaa5b8}
.training-session-card .button[data-action="training-remove"]:hover{background:#f8d3de;color:#861b38}
.training-session-google>.button{max-width:100%;white-space:normal}

.commercial-payment-options { min-inline-size: 0; }
.commercial-payment-options > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.commercial-payment-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.commercial-payment-preview { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Commercial forms: mobile-first selections and readable summaries. */
.commercial-payment-choice{border:2px solid var(--border);border-radius:12px;padding:10px 14px;min-height:48px;cursor:pointer;flex:1 1 130px;background:var(--surface,#fff);color:var(--text)}
.commercial-payment-choice:has(input:checked){border-color:var(--primary,#287fa9);background:#e4f4f8;font-weight:700;color:#143e51}
.commercial-payment-choice input{width:22px;height:22px;flex:none;accent-color:var(--primary,#287fa9)}
.commercial-payment-choice:focus-within{outline:3px solid #287fa9;outline-offset:2px}
.commercial-payment-selection,.commercial-preview{white-space:normal;overflow-wrap:anywhere;min-width:0}
.commercial-payment-selection{white-space:pre-wrap;font-size:1rem;line-height:1.5}
.commercial-line{min-inline-size:0;margin:0;padding:12px;border:1px solid var(--border);border-radius:12px}
.commercial-line legend{font-weight:700;padding:0 6px}
.commercial-date-shortcuts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.commercial-date-shortcuts>span{flex-basis:100%}
.commercial-date-shortcuts .button{min-height:44px}
.commercial-preview + .section-actions{display:flex;flex-wrap:wrap;gap:8px}
.commercial-preview + .section-actions .button{min-height:44px;white-space:normal;max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.commercial-line .form-grid{grid-template-columns:minmax(0,1fr)}.commercial-preview + .section-actions .button{flex:1 1 100%}.commercial-payment-options{padding:12px}.commercial-payment-choice{font-size:1rem}}

}