/* Calendar additions are scoped: no global dialog/control overrides. */
.gshell-calendar-link { width: 100%; background: transparent; text-align: left; font-family: inherit; }
.eg-dialog { width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(var(--gs-viewport-height, 100dvh) - 32px); padding: 0; border: 1px solid var(--gs-line, #e2e2dd); border-radius: 16px; color: var(--gs-ink, #292b27); background: var(--gs-panel, #fff); }
.eg-dialog::backdrop { background: #15181166; }
.eg-layout { display: flex; flex-direction: column; max-height: calc(var(--gs-viewport-height, 100dvh) - 34px); }
.eg-layout > header, .eg-layout > footer { flex: none; padding: 18px 22px; border-bottom: 1px solid var(--gs-line, #e2e2dd); }
.eg-layout > header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.eg-layout > header h2 { margin: 0 0 6px; font-size: 22px; }
.eg-layout p { color: var(--gs-ink-dim, #646960); font-size: 14px; margin: 6px 0 12px; }
.eg-layout > footer { border-bottom: 0; border-top: 1px solid var(--gs-line, #e2e2dd); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.eg-layout > footer p { flex: 1 1 240px; }
.eg-layout [data-eg-error] { color: #a03931; flex-basis: 100%; }
.eg-content { padding: 20px 22px; overflow: auto; min-height: 0; }
.eg-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.eg-toolbar > input { flex: 1; min-width: 160px; }
.eg-columns { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.eg-group { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 15px; gap: 5px; margin-bottom: 10px; border: 1px solid var(--gs-line, #e2e2dd); border-radius: 12px; background: var(--gs-panel, #fff); color: inherit; font-size: 16px; cursor: pointer; }
.eg-group.on { background: var(--gs-panel-2, #f2ecd9); border-color: var(--gs-accent, #a3853e); }
.eg-group span { font-size: 13px; }
.eg-members ul { padding: 0; list-style: none; }
.eg-members li { padding: 10px 0; border-bottom: 1px solid var(--gs-line, #e2e2dd); display: flex; flex-direction: column; overflow-wrap: anywhere; }
.eg-members li span { font-size: 13px; color: var(--gs-ink-dim, #646960); }
.eg-dialog input:not([type=checkbox]), .eg-dialog textarea { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; background: var(--gs-panel, #fff); color: inherit; border: 1px solid var(--gs-line, #e2e2dd); border-radius: 9px; }
.eg-editor > label { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; font-size: 15px; }
.eg-selection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.eg-selection label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; cursor: pointer; overflow-wrap: anywhere; font-size: 15px; }
.eg-selection input { width: 18px; height: 18px; flex: none; accent-color: var(--gs-accent, #a3853e); }
.eg-selection small { display: block; font-size: 12px; color: var(--gs-ink-dim, #646960); }
.eg-dialog summary { padding: 14px 0; cursor: pointer; font-size: 15px; }
.eg-dialog button { min-height: 44px; white-space: normal; }
.eg-dialog :is(button, input, textarea, summary):focus-visible { outline: 2px solid var(--gs-accent, #a3853e); outline-offset: 2px; }
.eg-dialog :disabled { opacity: .6; cursor: wait; }
.eg-review { margin-top: 20px; border-top: 1px solid var(--gs-line, #e2e2dd); }
.eg-dialog [hidden] { display: none !important; }
.rn-calendar-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-event-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
.rn-event-kind { text-align: left; border: 1px solid var(--gs-line, #e2e2dd); background: var(--gs-panel, #fff); color: inherit; border-radius: 12px; padding: 14px; min-height: 62px; font-size: 15px; cursor: pointer; }
.rn-event-kind.on { background: #edf5ef; border-color: #57846a; color: #234b33; }
.rn-event-kind small { display: block; font-size: 13px; margin-top: 5px; font-weight: 400; }
.rn-info-note { padding: 14px; background: #edf5ef; color: #28513a; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.rn-info-note strong { display: block; }
.rn-event-options { border-top: 1px solid var(--gs-line, #e2e2dd); padding: 16px 0; }
.rn-event-options label, .rn-calendar-all-day { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.rn-event-options input, .rn-calendar-all-day input { width: 18px; height: 18px; flex: none; }
.rn-calendar-groups { margin-bottom: 12px; }
.rn-calendar-groups p { font-size: 13px; color: var(--gs-ink-dim, #646960); }
.rn-row.rn-info .rn-time { font-size: 13px; line-height: 1.4; white-space: normal; }
.rn-row.rn-info .rn-timeline-dot { background: #4d865e; }
.rn-info-badge { display: inline-block; color: #2c6342; background: #eaf3ed; padding: 3px 7px; border-radius: 5px; font-size: 12px; margin-left: 6px; }
/* Échéances de tâches (ticket UpQl2JFuPZvK9OsP7bXI). Bleu : l'or est pris
   par les réunions, le vert par les événements informatifs. Trois genres,
   trois teintes — sinon la pastille ne dit plus rien. */
.rn-row.rn-task .rn-time { font-size: 13px; line-height: 1.4; white-space: normal; }
.rn-row.rn-task .rn-timeline-dot { background: #3a5a8c; }
.rn-task-badge { display: inline-block; color: #274a7a; background: #eaf0f8; padding: 3px 7px; border-radius: 5px; font-size: 12px; margin-left: 6px; }
.rn-task-prio { font-size: 12px; margin-left: 4px; }
.rn-row.rn-task-late .rn-timeline-dot { background: #a03931; }
.rn-task-late-badge { display: inline-block; color: #8a2f28; background: #f7e8e6; padding: 3px 7px; border-radius: 5px; font-size: 12px; margin-left: 6px; }
.rn-editor [hidden], .rn-editor-fields > [hidden] { display: none !important; }
body[data-gtheme="dark"] :is(.rn-event-kind.on, .rn-info-note, .rn-info-badge) { background: #253e30; color: #d9ecdf; }
body[data-gtheme="dark"] .rn-task-badge { background: #22344d; color: #cfdff2; }
body[data-gtheme="dark"] .rn-task-late-badge { background: #4a2523; color: #f2d2ce; }
@media (max-width: 700px) {
    .eg-dialog { top: var(--gs-viewport-top, 0px); bottom: auto; width: 100%; max-height: var(--gs-viewport-height, 100dvh); margin: 0; border-radius: 0; }
    .eg-toolbar > input { flex-basis: 100%; }
    .eg-layout { max-height: var(--gs-viewport-height, 100dvh); }
    .eg-content, .eg-layout > header, .eg-layout > footer { padding: 16px; }
    .eg-layout > footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .eg-columns, .eg-selection { grid-template-columns: 1fr; }
    .eg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .eg-group { margin: 0; }
    .eg-group strong { overflow-wrap: anywhere; }
    .eg-layout > footer > button { width: 100%; }
    .rn-event-kinds { grid-template-columns: 1fr; }
    .rn-calendar-head-actions { width: 100%; }
    .rn-calendar-head-actions > button { flex: 1; min-height: 44px; }
}
