/* One main panel above the existing, still interactive cockpit map. */
:root { --slot-top: 90px; }
body.slot-planning-open { overflow: hidden; }
.slot-planning-open .workspace .map-panel { display: block!important; }
.slot-planning-open .map-panel { position: fixed!important; inset: var(--slot-top) 0 0!important; width: auto!important; height: auto!important; max-height: none!important; border-radius: 0; z-index: 90; }
.slot-planning-open #map-selection, .slot-planning-open #cockpit-mission, .slot-planning-open .map-gesture-help, .slot-planning-open .map-legend, .slot-planning-open #map-fullscreen { display: none!important; }
.slot-planning-open .map-tools { top: 78px; bottom: auto; }
.slot-planning-open .map-error { top: 136px!important; left: 12px!important; right: 12px!important; max-width: 320px; }
.slot-panel { --slot-size: 53dvh; position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; height: var(--slot-size); max-height: calc(100dvh - var(--slot-top)); padding: 0; border: 1px solid var(--line); border-radius: 24px 24px 0 0; color: var(--ink); background: var(--white); box-shadow: 0 -8px 32px #00192c20; z-index: 100; overflow: hidden; }
.slot-panel[open] { display: flex; flex-direction: column; }
.slot-panel::backdrop { background: #00192c40; backdrop-filter: none; }
.slot-panel * { box-sizing: border-box; }
.slot-panel button, .slot-panel input, .slot-panel select, .slot-panel summary { min-height: 44px; min-width: 44px; font: inherit; }
.slot-panel button { cursor: pointer; border-radius: 10px; padding: 8px 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.slot-panel button:active { background: var(--lime); }
.slot-panel button:disabled { cursor: default; opacity: .5; }
.slot-panel :focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: -3px; }
.slot-panel [hidden] { display: none!important; }
.slot-panel-bar { display: flex; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.slot-panel-bar #slot-handle { flex: 1; min-width: 0; touch-action: none; cursor: ns-resize; border: 0; text-align: left; }
.slot-panel-bar button { padding-inline: 8px; }
#slot-summary { margin: 0; padding: 8px 16px; font-size: 13px; line-height: 1.45; flex: 0 0 auto; }
.slot-panel-content { padding: 12px 16px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.slot-panel[data-height=peek] .slot-panel-content { display: none; }
.slot-panel h2 { font-size: 24px; letter-spacing: -.04em; margin: 0 0 12px; }
.slot-panel h3 { font-size: 16px; margin: 16px 0 8px; }
.slot-panel p { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.slot-toolbar, .slot-week-nav, .slot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.slot-toolbar .slot-primary, .slot-panel .slot-primary { color: #102a32; background: var(--lime); border-color: var(--line); }
.slot-panel button:active { color: #102a32; }
.slot-panel[data-height=half] #slot-title, .slot-panel[data-height=half] #slot-classic, .slot-panel[data-height=half] #slot-scope { display: none; }
.slot-panel[data-height=half] .slot-toolbar { margin-top: 0; }
.slot-panel[data-height=half] .slot-week-nav { margin: 8px 0; }
.slot-panel[data-height=half] #slot-timezone { margin: 4px 0; font-size: 12px; }
.slot-panel[data-height=half] #slot-week-title { margin: 8px 0; }
.slot-day-empty { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.slot-day-empty h3, .slot-day-empty p { margin: 0; font-size: 12px; }
.slot-panel form, .slot-confirm { border: 1px solid var(--line); padding: 12px; border-radius: 12px; margin: 16px 0; }
.slot-panel label { display: block; margin: 10px 0; font-size: 13px; font-weight: 700; }
.slot-panel input, .slot-panel select { display: block; width: 100%; margin-top: 6px; padding: 8px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.slot-panel fieldset { border: 0; padding: 0; min-width: 0; }
.slot-week, .slot-week ul { list-style: none; padding: 0; margin: 0; }
.slot-week { display: grid; gap: 16px; }
.slot-card { border: 1px solid var(--line); border-left: 5px solid var(--ink); border-radius: 10px; padding: 12px; margin-top: 8px; overflow-wrap: anywhere; }
.slot-card[data-state=ouvert] { border-left-style: double; border-left-width: 7px; }
.slot-card[data-state=option] { border-left-style: dashed; }
.slot-card[data-state=ferme] { border-left-style: dotted; }
.slot-card[data-state=reserve] { border-left-width: 9px; }
.slot-state { font-weight: 800; font-size: 13px; }
.slot-card p { margin: 6px 0; }
.slot-conflict { border: 1px dashed currentColor; padding: 8px; }
.slot-empty { color: var(--muted); font-size: 13px; }
#slot-status:empty { display: none; }
#slot-status { border-left: 3px solid var(--ink); padding-left: 10px; }
@media(max-width:800px) { :root { --slot-top: 112px; } }
@media(min-width:1024px) {
  .slot-panel { inset: var(--slot-top) 0 0 auto; width: var(--slot-size); height: auto; max-height: none; border-radius: 24px 0 0 24px; }
  .slot-panel-bar #slot-handle { cursor: ew-resize; }
  .slot-planning-open .map-tools { left: 12px; right: auto; }
  .slot-week[data-view=grid] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(prefers-reduced-motion:reduce) { .slot-panel, .slot-panel * { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
@media(prefers-contrast:more) { .slot-panel, .slot-card, .slot-panel button { border-color: currentColor; } }
