/* ===========================================================================
   Réglages du Rali — settings / control panel for an existing Rali.
   Same visual language as the creation flow: Kiclic gradient, Rubik, dark,
   ambient blobs, mascot bubbles, rounded panels. Everything extra-rounded.
   =========================================================================== */

@import url("colors_and_type.css");

/* ---- Ambient backdrop ---- */
.rs-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.rs-bg .blob { position: absolute; border-radius: 50%; }
.rs-bg .b1 { width: 520px; height: 520px; background: radial-gradient(circle, #5B8DEF 0%, transparent 70%); top: -190px; left: 220px; opacity: 0.14; }
.rs-bg .b2 { width: 560px; height: 560px; background: radial-gradient(circle, #E94E8B 0%, transparent 70%); bottom: -260px; right: 80px; opacity: 0.12; }
.rs-bg .b3 { width: 400px; height: 400px; background: radial-gradient(circle, #B968C7 0%, transparent 70%); top: 260px; right: 480px; opacity: 0.10; }

/* ---- Topbar (hauteur commune --k-topbar-h) ---- */
.rs-topbar { position: relative; z-index: 3; height: var(--k-topbar-h, 56px); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; border-bottom: 1px solid var(--border-soft); }
.rs-tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rs-status { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 13px 0 11px; border-radius: 9999px; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.32); font-size: 12.5px; font-weight: 700; color: #10B981; white-space: nowrap; }
.rs-status .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10B981; }
.rs-status .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(16,185,129,0.55); animation: rsPulse 1.9s ease-out infinite; }
@keyframes rsPulse { 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.rs-tb-name { font-size: 13px; color: var(--fg-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tb-name b { color: var(--fg); font-weight: 700; }

.rs-tb-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* autosave pill */
.rs-save { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 9999px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; color: var(--fg-secondary); transition: color var(--t-base), border-color var(--t-base); }
.rs-save .ic { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }
.rs-save .ic svg { width: 16px; height: 16px; stroke-width: 2.2; fill: none; }
.rs-save.saved { color: #34D399; border-color: rgba(16,185,129,0.3); }
.rs-save.saved .ic svg { stroke: #34D399; }
.rs-save.saving { color: var(--k-violet); }
.rs-save.saving .ic { animation: rsSpin .8s linear infinite; }
.rs-save.saving .ic svg { stroke: var(--k-violet); }
@keyframes rsSpin { to { transform: rotate(360deg); } }

.rs-tb-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast); }
.rs-tb-btn:hover { border-color: rgba(185,104,199,0.34); transform: translateY(-1px); }
.rs-tb-btn svg { width: 15px; height: 15px; stroke: var(--fg-secondary); stroke-width: 2; fill: none; }

/* ---- Stage : nav | editor | rail ---- */
.rs-stage { position: relative; z-index: 1; flex: 1 1 auto; display: grid; grid-template-columns: 218px minmax(0,1fr) 384px; gap: 22px; padding: 6px 30px 22px; overflow: hidden; min-height: 0; }

/* ===== Scroll-spy nav ===== */
.rs-nav { position: relative; display: flex; flex-direction: column; min-height: 0; }
.rs-nav-card { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; border-radius: 22px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); overflow-y: auto; scrollbar-width: none; }
.rs-nav-card::-webkit-scrollbar { display: none; }
.rs-nav-head { padding: 6px 12px 12px; }
.rs-nav-head .t { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.rs-nav-head .p { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.rs-nav-head .bar { flex: 1 1 auto; height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.rs-nav-head .bar i { display: block; height: 100%; border-radius: 9999px; background: var(--k-gradient-h); width: 100%; transition: width var(--t-base) var(--ease-out); }
.rs-nav-head .pct { font-size: 11px; font-weight: 700; color: var(--fg-secondary); font-variant-numeric: tabular-nums; }

.rs-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--fg-secondary); font-size: 13.5px; font-weight: 600; font-family: inherit; transition: color var(--t-fast), background var(--t-fast); }
.rs-nav-item .ni { width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--bg-elev-2); border: 1px solid var(--border-soft); transition: background var(--t-fast), border-color var(--t-fast); }
.rs-nav-item .ni svg { width: 15px; height: 15px; stroke: var(--fg-secondary); stroke-width: 2; fill: none; transition: stroke var(--t-fast); }
.rs-nav-item .nl { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-nav-item .nd { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: 0 0 auto; opacity: 0.55; }
.rs-nav-item:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.rs-nav-item.on { color: var(--fg); background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, linear-gradient(135deg, var(--k-blue), var(--k-violet), var(--k-pink)) border-box; border: 1px solid transparent; box-shadow: 0 6px 18px rgba(185,104,199,0.16); }
.rs-nav-item.on .ni { background: var(--k-gradient-h); border-color: transparent; }
.rs-nav-item.on .ni svg { stroke: #fff; }

/* ===== Editor column ===== */
.rs-editor { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; padding: 4px 14px 40px 4px; margin-right: -8px; scrollbar-width: thin; scroll-behavior: smooth; }
.rs-editor::-webkit-scrollbar { width: 8px; }
.rs-editor::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }

@media (prefers-reduced-motion: no-preference) {
  .rs-rise { opacity: 0; transform: translateY(10px); animation: rsRise .55s var(--ease-out) forwards; }
  .rs-rise.d1 { animation-delay: .05s; } .rs-rise.d2 { animation-delay: .11s; } .rs-rise.d3 { animation-delay: .17s; }
  @keyframes rsRise { to { opacity: 1; transform: none; } }
}

/* Mascot greeting */
.rs-greet { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.rs-greet .avatar { width: 48px; height: 48px; border-radius: 15px; overflow: hidden; background: linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B); box-shadow: 0 8px 22px rgba(185,104,199,0.35); flex: 0 0 auto; position: relative; }
.rs-greet .avatar img { width: 100%; height: 100%; object-fit: cover; transform: translateY(2px) scale(1.1); }
.rs-greet .avatar .ring { position: absolute; inset: 0; border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.rs-greet .bubble { flex: 1 1 auto; background: var(--bg-elev-1); border: 1px solid var(--border-soft); border-radius: 4px 18px 18px 18px; padding: 12px 17px; position: relative; overflow: hidden; }
.rs-greet .bubble::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, #5B8DEF, #B968C7, #E94E8B); opacity: 0.55; }
.rs-greet .bubble .name { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-secondary); margin-bottom: 3px; }
.rs-greet .bubble .name b { color: var(--fg); font-weight: 700; }
.rs-greet .bubble .name .tag { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 9999px; background: rgba(185,104,199,0.18); color: #E0BFFF; letter-spacing: 0.04em; text-transform: uppercase; }
.rs-greet .bubble .msg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg); text-wrap: pretty; }
.rs-greet .bubble .msg b { font-weight: 700; }
.rs-greet .bubble .msg.swap { animation: rsSwap .35s var(--ease-out); }
@keyframes rsSwap { from { opacity: 0; transform: translateY(4px); } }

/* Page hero */
.rs-hero { margin-bottom: 22px; }
.rs-hero .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-hero h1 { margin: 6px 0 5px; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.04; }
.rs-hero h1 .accent { background: linear-gradient(100deg, #5B8DEF, #B968C7, #E94E8B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-hero .sub { color: var(--fg-secondary); font-size: 14px; line-height: 1.45; max-width: 560px; text-wrap: pretty; }

/* ===== Section card ===== */
.rs-card { border-radius: 22px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); padding: 20px 22px 22px; margin-bottom: 18px; scroll-margin-top: 8px; }
.rs-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.rs-card-head .ci { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--surface-tint-light); border: 1px solid var(--border-soft); }
.rs-card-head .ci svg { width: 18px; height: 18px; stroke: var(--k-violet); stroke-width: 2; fill: none; }
.rs-card-head .ct { flex: 1 1 auto; min-width: 0; }
.rs-card-head .ct h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.rs-card-head .ct .cs { font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }
.rs-card-head .cval { font-size: 13px; font-weight: 700; color: var(--fg); background: var(--bg-elev-2); border: 1px solid var(--border-soft); padding: 6px 12px; border-radius: 9999px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* generic field */
.rs-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); transition: border-color var(--t-fast); }
.rs-field:focus-within { border-color: rgba(185,104,199,0.45); box-shadow: 0 0 0 3px rgba(185,104,199,0.12); }
.rs-field svg { width: 17px; height: 17px; stroke: var(--fg-muted); stroke-width: 2; fill: none; flex: 0 0 auto; }
.rs-field input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--fg); font-family: inherit; font-size: 15px; font-weight: 600; outline: none; }
.rs-field input::placeholder { color: var(--fg-muted); font-weight: 500; }
.rs-field .count { font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* ===== Visuel ===== */
.rs-visuel { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.rs-vstage { position: relative; min-width: 0; }
.rs-visuel .vm { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rs-visuel .vlabel { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 7px; }
.rs-visuel .vlabel span { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: 0.7; }
.rs-hint { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 13px; background: rgba(91,141,239,0.08); border: 1px solid rgba(91,141,239,0.18); font-size: 12.5px; line-height: 1.4; color: var(--fg-secondary); }
.rs-hint svg { width: 15px; height: 15px; stroke: var(--k-blue); stroke-width: 2; fill: none; flex: 0 0 auto; margin-top: 1px; }
.rs-hint b { color: var(--fg); font-weight: 600; }

/* Zone d'import (état vide) */
.rs-vdrop { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 15px; border: 1.5px dashed var(--border); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all var(--t-fast); text-align: center; padding: 12px; box-sizing: border-box; }
.rs-vdrop:hover { border-color: rgba(185,104,199,0.45); background-color: rgba(185,104,199,0.04); }
.rs-vdrop .di { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--fg-secondary); }
.rs-vdrop .di svg { width: 20px; height: 20px; stroke-width: 1.8; }
.rs-vdrop .dt { font-size: 13px; font-weight: 600; color: var(--fg-secondary); }
.rs-vdrop .dm { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; color: var(--fg-muted); letter-spacing: 0.02em; }

/* Cadre aperçu (image chargée) */
.rs-vframe { position: relative; width: 100%; border-radius: 15px; overflow: hidden; border: 1px solid var(--border); background: #1a1020; aspect-ratio: 1/1; transition: aspect-ratio .3s var(--ease-out); }
.rs-vframe.r45 { aspect-ratio: 4/5; }
.rs-vframe .ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.rs-vframe .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 55%); }
.rs-vframe .fmtbadge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 9999px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.14); }
.rs-vframe .wm { position: absolute; bottom: 9px; left: 10px; max-width: calc(100% - 20px); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: #fff; opacity: 0.92; text-shadow: 0 1px 4px rgba(0,0,0,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bascule format */
.rs-vfmt { display: flex; gap: 8px; }
.rs-vfmt .fc { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 11px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
.rs-vfmt .fc .box { border: 1.5px solid currentColor; border-radius: 2px; flex: 0 0 auto; }
.rs-vfmt .fc:hover { color: var(--fg); }
.rs-vfmt .fc.on { background: var(--k-gradient-h); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(233,78,139,0.3); }

/* Ambiances (filtres de marque) */
.rs-vfilters { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-fchip { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.rs-fchip .sw { width: 46px; height: 46px; border-radius: 11px; border: 2px solid transparent; background-size: cover; background-position: center; transition: all var(--t-fast); }
.rs-fchip:hover .sw { transform: translateY(-1px); }
.rs-fchip.on .sw { border-color: var(--fg); box-shadow: 0 0 0 2px rgba(185,104,199,0.45); }
.rs-fchip .l { font-size: 10.5px; color: var(--fg-secondary); }
.rs-fchip.on .l { color: var(--fg); font-weight: 700; }

/* Bouton remplacer */
.rs-vreplace { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 11px; border-radius: 12px; background: transparent; border: 1.5px dashed var(--border); color: var(--fg-secondary); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
.rs-vreplace svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-vreplace:hover { border-color: rgba(185,104,199,0.45); color: var(--fg); background: rgba(185,104,199,0.05); }
.rs-vedit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-bottom: 8px; padding: 12px; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(135deg, rgba(91,141,239,0.16), rgba(185,104,199,0.16), rgba(233,78,139,0.16)); color: var(--fg); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all var(--t-fast); }
.rs-vedit svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-vedit:hover { filter: brightness(1.12); border-color: rgba(185,104,199,0.4); }

/* ===== Catégorie grid ===== */
.rs-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rs-cat { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 16px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); cursor: pointer; color: var(--fg); font-family: inherit; font-size: 13.5px; font-weight: 600; text-align: left; transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast), background var(--t-fast); }
.rs-cat:hover { transform: translateY(-2px); border-color: rgba(185,104,199,0.3); }
.rs-cat .em { font-size: 19px; line-height: 1; flex: 0 0 auto; }
.rs-cat.on { background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, linear-gradient(135deg, var(--k-blue), var(--k-violet), var(--k-pink)) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 22px rgba(185,104,199,0.18); }
.rs-cat.on .em { filter: drop-shadow(0 2px 6px rgba(233,78,139,0.4)); }

/* ===== Places widget ===== */
.rs-places { display: flex; flex-direction: column; align-items: center; }
.rs-pl-row { display: flex; align-items: center; justify-content: center; gap: 26px; }
.rs-pl-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform var(--t-fast) var(--spring), background var(--t-fast), border-color var(--t-fast); }
.rs-pl-btn:hover { background: var(--bg-elev-1); border-color: rgba(185,104,199,0.4); }
.rs-pl-btn:active { transform: scale(0.9); }
.rs-pl-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.rs-pl-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; }
.rs-pl-num { display: flex; flex-direction: column; align-items: center; min-width: 180px; }
.rs-pl-num .n { font-family: var(--font-display); font-weight: 900; font-size: 78px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #FFFFFF 0%, #C0BFFF 60%, #E94E8B 110%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-pl-num .n.bump { animation: rsBump .34s var(--spring); }
@keyframes rsBump { 50% { transform: scale(1.08); } }
.rs-pl-num .u { font-size: 13px; color: var(--fg-secondary); font-weight: 500; margin-top: 2px; }
.rs-pl-num input { width: 200px; background: transparent; border: 0; outline: 0; text-align: center; color: var(--fg); font-family: var(--font-display); font-weight: 900; font-size: 78px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rs-pl-num input::-webkit-outer-spin-button, .rs-pl-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rs-slider { margin: 22px 8px 4px; width: calc(100% - 16px); position: relative; }
.rs-track { position: relative; height: 8px; border-radius: 9999px; background: rgba(255,255,255,0.07); }
.rs-track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: var(--k-gradient-h); width: 0%; transition: width var(--t-base) var(--ease-out); }
.rs-track input[type=range] { position: absolute; inset: -10px 0; width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; outline: none; margin: 0; cursor: pointer; }
.rs-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(185,104,199,0.32), 0 6px 20px rgba(233,78,139,0.4); cursor: grab; }
.rs-track input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.rs-track input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(185,104,199,0.32), 0 6px 20px rgba(233,78,139,0.4); }

.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; justify-content: center; }
.rs-chip { height: 36px; padding: 0 16px; border-radius: 9999px; background: transparent; border: 1px solid var(--border); color: var(--fg-secondary); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; font-variant-numeric: tabular-nums; transition: all var(--t-fast) var(--ease-out); }
.rs-chip:hover { background: rgba(255,255,255,0.04); color: var(--fg); }
.rs-chip.on { background: var(--k-gradient-h); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(233,78,139,0.3); }
.rs-chip.dashed { border-style: dashed; display: inline-flex; align-items: center; gap: 6px; }
.rs-chip.dashed svg { width: 14px; height: 14px; stroke-width: 2.2; fill: none; }

/* ===== Date & heure ===== */
.rs-date { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-datefield { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); cursor: pointer; transition: border-color var(--t-fast); position: relative; }
.rs-datefield:hover { border-color: rgba(185,104,199,0.34); }
.rs-datefield .di { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--k-gradient-h); color: #fff; }
.rs-datefield .di svg { width: 19px; height: 19px; stroke: #fff; stroke-width: 2; fill: none; }
.rs-datefield .dt { min-width: 0; flex: 1 1 auto; }
.rs-datefield .dl { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.rs-datefield .dv { font-size: 16px; font-weight: 700; color: var(--fg); margin-top: 2px; font-variant-numeric: tabular-nums; }
.rs-datefield { font-family: inherit; text-align: left; }
.rs-datefield .dchev { flex: 0 0 auto; display: flex; color: var(--fg-muted); transition: transform var(--t-fast), color var(--t-fast); }
.rs-datefield .dchev svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-datefield[aria-expanded="true"] { border-color: rgba(185,104,199,0.5); }
.rs-datefield[aria-expanded="true"] .dchev { transform: rotate(180deg); color: var(--k-violet); }

/* Sélecteur de GO custom (calendrier réutilisé de la Validité) */
.rs-gopick { display: none; margin-top: 14px; }
.rs-gopick.on { display: block; animation: rsSwap .3s var(--ease-out); }
.rs-gopick .rs-val-cal { max-width: 340px; }
.rs-gopick-actions { display: flex; gap: 10px; margin-top: 12px; max-width: 340px; }
.rs-gopick-btn { height: 42px; border-radius: 13px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all var(--t-fast); }
.rs-gopick-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-gopick-btn.ghost { flex: 0 0 auto; padding: 0 20px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg-secondary); }
.rs-gopick-btn.ghost:hover { color: var(--fg); border-color: rgba(185,104,199,0.34); }
.rs-gopick-btn.primary { flex: 1 1 auto; background: var(--k-gradient-h); border: 1px solid transparent; color: #fff; box-shadow: 0 6px 16px rgba(233,78,139,0.3); }
.rs-gopick-btn.primary:hover { box-shadow: 0 10px 24px rgba(233,78,139,0.42); }

.rs-cd { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(91,141,239,0.08); border: 1px solid rgba(91,141,239,0.18); font-size: 13px; color: var(--fg-secondary); }
.rs-cd b { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-cd .cdi { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(91,141,239,0.16); }
.rs-cd .cdi svg { width: 16px; height: 16px; stroke: var(--k-blue); stroke-width: 2; fill: none; }

/* ===== Segmented options (validité) ===== */
.rs-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.rs-opt { padding: 11px 18px; border-radius: 14px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all var(--t-fast) var(--ease-out); }
.rs-opt:hover { color: var(--fg); border-color: rgba(185,104,199,0.3); }
.rs-opt.on { background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, linear-gradient(135deg, var(--k-blue), var(--k-violet), var(--k-pink)) border-box; border: 1.5px solid transparent; color: var(--fg); box-shadow: 0 6px 16px rgba(185,104,199,0.16); }

/* ===== Description ===== */
.rs-textwrap { border-radius: 16px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); padding: 4px; transition: border-color var(--t-fast); }
.rs-textwrap:focus-within { border-color: rgba(185,104,199,0.45); box-shadow: 0 0 0 3px rgba(185,104,199,0.12); }
.rs-textwrap textarea { width: 100%; min-height: 116px; resize: none; border: 0; background: transparent; color: var(--fg); font-family: inherit; font-size: 14.5px; line-height: 1.55; outline: none; padding: 12px 14px; box-sizing: border-box; }
.rs-textwrap textarea::placeholder { color: var(--fg-muted); }
.rs-textfoot { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 8px; }
.rs-textfoot .hint2 { font-size: 12px; color: var(--fg-muted); }
.rs-textfoot .count { font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* ===== Infos requises (toggle rows) ===== */
.rs-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); transition: border-color var(--t-fast); }
.rs-info.on { border-color: rgba(185,104,199,0.3); }
.rs-info .ii { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--surface-tint-light); border: 1px solid var(--border-soft); }
.rs-info .ii svg { width: 16px; height: 16px; stroke: var(--fg-secondary); stroke-width: 2; fill: none; transition: stroke var(--t-fast); }
.rs-info.on .ii { background: var(--k-gradient-h); border-color: transparent; }
.rs-info.on .ii svg { stroke: #fff; }
.rs-info .it { flex: 1 1 auto; min-width: 0; }
.rs-info .it .l1 { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.rs-info .it .l2 { font-size: 11px; color: var(--fg-muted); margin-top: 1px; }
.rs-info.locked { opacity: 0.85; }
.rs-info .lockpill { font-size: 10px; font-weight: 700; color: var(--fg-muted); }

/* Switch */
.rs-switch { width: 44px; height: 26px; border-radius: 9999px; background: var(--bg-elev-1); border: 1px solid var(--border); position: relative; cursor: pointer; flex: 0 0 auto; transition: background var(--t-fast), border-color var(--t-fast); padding: 0; }
.rs-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg-secondary); transition: transform var(--t-fast) var(--spring), background var(--t-fast); }
.rs-switch.on { background: var(--k-gradient-h); border-color: transparent; }
.rs-switch.on::after { transform: translateX(18px); background: #fff; }
.rs-switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Localisation ===== */
.rs-loc-map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-soft); }
.rs-loc-body { position: relative; height: 230px; background: #0b0c11; overflow: hidden; }
.rs-addr { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--bg-elev-2); border-top: 1px solid var(--border-soft); }
.rs-addr .ai { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; background: var(--k-gradient-h); color: #fff; display: flex; align-items: center; justify-content: center; }
.rs-addr .ai svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.rs-addr .av { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-radius { margin-top: 16px; }
.rs-radius .rh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rs-radius .rh .rl { font-size: 13px; font-weight: 600; color: var(--fg); }
.rs-radius .rh .rv { font-size: 14px; font-weight: 800; color: var(--fg); background: var(--bg-elev-2); border: 1px solid var(--border-soft); padding: 5px 13px; border-radius: 9999px; font-variant-numeric: tabular-nums; }
.rs-loc-toggles { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.rs-loc-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); }
.rs-loc-toggle .lt { flex: 1 1 auto; }
.rs-loc-toggle .lt .l1 { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.rs-loc-toggle .lt .l2 { font-size: 11.5px; color: var(--fg-muted); margin-top: 1px; }

/* ===========================================================================
   RIGHT RAIL
   =========================================================================== */
.rs-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.rs-rail::-webkit-scrollbar { width: 6px; }
.rs-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }

.rs-rail-h { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-muted); }
.rs-rail-h svg { width: 14px; height: 14px; stroke: var(--k-violet); stroke-width: 2; fill: none; }

/* ---- Live preview card ---- */
.rs-pv { border-radius: 22px; padding: 2px; flex: 0 0 auto; background: linear-gradient(var(--bg-elev-1), var(--bg-elev-1)) padding-box, linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B) border-box; border: 2px solid transparent; box-shadow: 0 0 0 4px rgba(185,104,199,0.06), 0 18px 44px rgba(185,104,199,0.14); }
.rs-pv .inner { background: var(--bg-elev-1); border-radius: 20px; padding: 14px; }
.rs-pvcard { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-soft); background: radial-gradient(50% 60% at 30% 28%, rgba(91,141,239,0.4), transparent 70%), radial-gradient(54% 60% at 72% 74%, rgba(233,78,139,0.4), transparent 70%), linear-gradient(150deg, #241036 0%, #0D0D1A 100%); box-shadow: 0 16px 40px rgba(0,0,0,0.32); }
.rs-pvcard image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.rs-pvcard .vig { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 26%, transparent 52%, rgba(0,0,0,0.82) 100%); pointer-events: none; }
.rs-pvcard .top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.rs-pvcard .top .brand { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: -0.02em; background: linear-gradient(90deg, #7FA8F5, #CB8FD8, #F083B0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-pvcard .top .pill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9999px; background: rgba(0,0,0,0.42); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 9.5px; font-weight: 700; }
.rs-pvcard .top .pill svg { width: 10px; height: 10px; stroke: #34D399; stroke-width: 3; fill: none; }
.rs-pvcard .bot { position: absolute; left: 14px; right: 14px; bottom: 56px; z-index: 2; pointer-events: none; }
.rs-pvcard .bot .cat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9999px; background: rgba(255,255,255,0.16); backdrop-filter: blur(8px); color: #fff; font-size: 10px; font-weight: 700; margin-bottom: 7px; }
.rs-pvcard .bot .name { font-family: var(--font-display); font-weight: 900; font-size: 19px; line-height: 1.1; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.rs-pvcard .bot .meta { margin-top: 5px; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.6); flex-wrap: wrap; }
.rs-pvcard .bot .meta .d { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.rs-pvcard .badge { position: absolute; bottom: 14px; right: 14px; z-index: 3; text-align: center; padding: 6px 11px; border-radius: 13px; background: rgba(0,0,0,0.44); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.16); color: #fff; pointer-events: none; }
.rs-pvcard .badge .n { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1; background: linear-gradient(135deg, #FFFFFF, #FFCCE1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.rs-pvcard .badge .u { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }

/* avatar pile + eye button at the bottom-left of card */
.rs-pvcard .regs { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.rs-pile { display: flex; }
.rs-pile span { width: 26px; height: 26px; border-radius: 50%; margin-left: -8px; border: 2px solid #0D0D1A; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; overflow: hidden; }
.rs-pile span:first-child { margin-left: 0; }
.rs-pile span img { width: 100%; height: 100%; object-fit: cover; }
.rs-eye { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.45); backdrop-filter: blur(10px); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t-fast); }
.rs-eye:hover { background: rgba(0,0,0,0.7); }
.rs-eye svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2; fill: none; }

.rs-pv-foot { display: flex; align-items: center; gap: 8px; padding: 12px 4px 2px; }
.rs-pv-foot .pvbtn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: border-color var(--t-fast), transform var(--t-fast); }
.rs-pv-foot .pvbtn:hover { border-color: rgba(185,104,199,0.34); transform: translateY(-1px); }
.rs-pv-foot .pvbtn svg { width: 14px; height: 14px; stroke: var(--fg-secondary); stroke-width: 2; fill: none; }

/* ---- Inscrits panel (compact, in rail) ---- */
.rs-ins { border-radius: 20px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); overflow: hidden; flex: 0 0 auto; }
.rs-ins-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px 13px; }
.rs-ins-head .ih { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--k-gradient-h); color: #fff; }
.rs-ins-head .ih svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; fill: none; }
.rs-ins-head .ihx { flex: 1 1 auto; min-width: 0; }
.rs-ins-head .ihx .t { font-size: 14.5px; font-weight: 700; color: var(--fg); }
.rs-ins-head .ihx .s { font-size: 11.5px; color: var(--fg-muted); margin-top: 1px; }
.rs-ins-head .cnt { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.rs-ins-list { max-height: 224px; overflow-y: auto; padding: 0 8px; scrollbar-width: thin; }
.rs-ins-list::-webkit-scrollbar { width: 6px; }
.rs-ins-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }

.rs-row { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 13px; transition: background var(--t-fast); position: relative; }
.rs-row:hover { background: var(--bg-elev-2); }
.rs-row .av { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; }
.rs-row .av img { width: 100%; height: 100%; object-fit: cover; }
.rs-row .rx { flex: 1 1 auto; min-width: 0; }
.rs-row .rx .rn { font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-row .rx .rm { font-size: 11px; color: var(--fg-muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; }
.rs-row .rx .rm .sc { color: var(--k-violet); font-weight: 700; }
.rs-row .rrm { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; border: 1px solid var(--border-soft); background: transparent; color: var(--fg-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.rs-row:hover .rrm { opacity: 1; }
.rs-row .rrm:hover { color: var(--error); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); }
.rs-row .rrm svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

/* removed/undo state */
.rs-row.removed { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.18); }
.rs-row.removed .av, .rs-row.removed .rx, .rs-row.removed .rrm { display: none; }
.rs-row .undo { display: none; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 10px; }
.rs-row.removed .undo { display: flex; }
.rs-row .undo .ut { font-size: 12.5px; color: var(--fg-secondary); }
.rs-row .undo .ut b { color: var(--fg); font-weight: 600; }
.rs-row .undo .ub { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 9999px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rs-row .undo .ub:hover { border-color: rgba(185,104,199,0.4); }
.rs-row .undo .ub svg { width: 13px; height: 13px; stroke: var(--k-violet); stroke-width: 2.2; fill: none; }

.rs-ins-foot { padding: 10px 12px 13px; }
.rs-ins-manage { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 13px; border: 0; cursor: pointer; background: var(--k-gradient-h); color: #fff; font-size: 13.5px; font-weight: 700; font-family: inherit; box-shadow: var(--shadow-button); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.rs-ins-manage:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(233,78,139,0.42); }
.rs-ins-manage svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.2; fill: none; }

/* ===========================================================================
   INSCRITS DRAWER (full right column overlay)
   =========================================================================== */
.rs-scrim { position: fixed; top: var(--ma-bar, 0px); left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(5,5,9,0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.rs-scrim.on { opacity: 1; pointer-events: auto; }

/* top: --ma-bar → le drawer glisse SOUS le bandeau « Mode propriétaire/manager »
   (barre rouge/teal) au lieu de passer dessous. Fond via token (--bg-elev-1) pour
   s'adapter au thème clair au lieu du gris anthracite codé en dur. */
.rs-drawer { position: fixed; top: var(--ma-bar, 0px); right: 0; bottom: 0; width: 460px; max-width: 92vw; z-index: 61; background: var(--bg-elev-1); border-left: 1px solid var(--border-soft); box-shadow: -24px 0 60px rgba(0,0,0,0.4); transform: translateX(100%); transition: transform var(--t-slow) var(--ease-out); display: flex; flex-direction: column; }
.rs-drawer.on { transform: none; }
.rs-dr-head { padding: 22px 22px 16px; border-bottom: 1px solid var(--border-soft); }
.rs-dr-top { display: flex; align-items: flex-start; gap: 13px; }
.rs-dr-top .dh { width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--k-gradient-h); color: #fff; box-shadow: var(--shadow-glow-violet); }
.rs-dr-top .dh svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
.rs-dr-top .dx { flex: 1 1 auto; min-width: 0; }
.rs-dr-top .dx .t { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.rs-dr-top .dx .s { font-size: 12.5px; color: var(--fg-secondary); margin-top: 2px; }
.rs-dr-top .dx .s b { color: var(--fg); font-weight: 700; }
.rs-dr-close { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; border: 1px solid var(--border-soft); background: var(--bg-elev-1); color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color var(--t-fast), border-color var(--t-fast); }
.rs-dr-close:hover { color: var(--fg); border-color: rgba(185,104,199,0.34); }
.rs-dr-close svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; }

.rs-search { display: flex; align-items: center; gap: 10px; margin-top: 16px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); }
.rs-search:focus-within { border-color: rgba(185,104,199,0.45); }
.rs-search svg { width: 16px; height: 16px; stroke: var(--fg-muted); stroke-width: 2; fill: none; flex: 0 0 auto; }
.rs-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--fg); font-family: inherit; font-size: 14px; outline: none; }

.rs-dr-list { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px 20px; scrollbar-width: thin; }
.rs-dr-list::-webkit-scrollbar { width: 7px; }
.rs-dr-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }
.rs-dr-row { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 16px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); margin-bottom: 9px; position: relative; transition: border-color var(--t-fast); }
.rs-dr-row:hover { border-color: rgba(185,104,199,0.26); }
.rs-dr-row .av { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; overflow: hidden; }
.rs-dr-row .av img { width: 100%; height: 100%; object-fit: cover; }
.rs-dr-row .dx { flex: 1 1 auto; min-width: 0; }
.rs-dr-row .dx .rn { font-size: 14.5px; font-weight: 600; color: var(--fg); display: flex; align-items: center; gap: 7px; }
.rs-dr-row .dx .rn .you { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #E0BFFF; background: rgba(185,104,199,0.18); padding: 1px 7px; border-radius: 9999px; }
.rs-dr-row .dx .rm { font-size: 12px; color: var(--fg-muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-dr-row .dx .rm .sc { display: inline-flex; align-items: center; gap: 4px; color: var(--k-violet); font-weight: 700; }
.rs-dr-row .dx .rm .sc svg { width: 12px; height: 12px; stroke: var(--k-violet); stroke-width: 2; fill: none; }
.rs-dr-row .rrm { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; border: 1px solid var(--border-soft); background: transparent; color: var(--fg-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.rs-dr-row .rrm:hover { color: var(--error); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); }
.rs-dr-row .rrm svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-dr-row.removed { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2); }
.rs-dr-row.removed .av, .rs-dr-row.removed .dx, .rs-dr-row.removed .rrm { display: none; }
.rs-dr-row .undo { display: none; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 10px; }
.rs-dr-row.removed .undo { display: flex; }
.rs-dr-row .undo .ut { font-size: 13px; color: var(--fg-secondary); }
.rs-dr-row .undo .ut b { color: var(--fg); font-weight: 600; }
.rs-dr-row .undo .ub { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9999px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rs-dr-row .undo .ub:hover { border-color: rgba(185,104,199,0.4); }
.rs-dr-row .undo .ub svg { width: 14px; height: 14px; stroke: var(--k-violet); stroke-width: 2.2; fill: none; }

.rs-dr-empty { text-align: center; padding: 40px 20px; color: var(--fg-muted); font-size: 13px; }

/* ===========================================================================
   INSCRITS OVERLAY OVER IMAGE (glassy)
   =========================================================================== */
.rs-imgins { position: absolute; inset: 0; z-index: 5; border-radius: 18px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.rs-imgins.on { opacity: 1; pointer-events: auto; }
.rs-imgins .glass { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,14,0.9), rgba(8,8,14,0.87)); backdrop-filter: blur(22px) saturate(1.1); }
.rs-imgins .ig-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 13px 14px 10px; }
.rs-imgins .ig-head .t { flex: 1 1 auto; font-size: 13px; font-weight: 700; color: #fff; }
.rs-imgins .ig-head .t b { font-variant-numeric: tabular-nums; }
.rs-imgins .ig-close { width: 28px; height: 28px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rs-imgins .ig-close svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.2; fill: none; }
.rs-imgins .ig-list { position: relative; z-index: 2; overflow-y: auto; height: calc(100% - 46px); padding: 0 10px 12px; scrollbar-width: thin; }
.rs-imgins .ig-list::-webkit-scrollbar { width: 5px; }
.rs-imgins .ig-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 9999px; }
.rs-igrow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 11px; transition: background var(--t-fast); }
.rs-igrow:hover { background: rgba(255,255,255,0.08); }
.rs-igrow .av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; overflow: hidden; }
.rs-igrow .av img { width: 100%; height: 100%; object-fit: cover; }
.rs-igrow .nm { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-igrow .x { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--t-fast), background var(--t-fast); }
.rs-igrow:hover .x { opacity: 1; }
.rs-igrow .x:hover { background: rgba(239,68,68,0.4); }
.rs-igrow .x svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.2; fill: none; }

/* ===========================================================================
   iOS-STYLE BOTTOM SHEET (date change -> notify inscrits?)
   =========================================================================== */
.rs-sheet-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,9,0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.rs-sheet-scrim.on { opacity: 1; pointer-events: auto; }
.rs-sheet { position: fixed; left: 50%; top: 50%; z-index: 81; width: 460px; max-width: calc(100vw - 24px); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--bg-elev-1); border: 1px solid var(--border-soft); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); padding: 28px 24px; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.94); transition: transform var(--t-base) var(--spring), opacity var(--t-base) var(--ease-out); }
.rs-sheet.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.rs-sheet .grab { display: none; }
.rs-sheet .sheet-ic { width: 60px; height: 60px; border-radius: 20px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(var(--bg-elev-1), var(--bg-elev-1)) padding-box, linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B) border-box; border: 2px solid transparent; box-shadow: 0 14px 34px rgba(185,104,199,0.28); }
.rs-sheet .sheet-ic svg { width: 28px; height: 28px; stroke: url(#k-grad-stroke); stroke-width: 2; fill: none; }
.rs-sheet h3 { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.rs-sheet .sheet-sub { text-align: center; font-size: 14px; line-height: 1.5; color: var(--fg-secondary); margin: 9px auto 4px; max-width: 340px; text-wrap: pretty; }
.rs-sheet .sheet-sub b { color: var(--fg); font-weight: 700; }
.rs-sheet .sheet-change { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; padding: 12px; border-radius: 16px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); font-size: 13.5px; font-weight: 600; }
.rs-sheet .sheet-change .old { color: var(--fg-muted); text-decoration: line-through; }
.rs-sheet .sheet-change .arr { color: var(--fg-muted); }
.rs-sheet .sheet-change .new { color: var(--fg); }
.rs-sheet .sheet-change .new b { background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-sheet .sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.rs-sheet .sheet-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 16px; border: 0; cursor: pointer; font-family: inherit; font-size: 15.5px; font-weight: 700; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.rs-sheet .sheet-btn.primary { background: var(--k-gradient-h); color: #fff; box-shadow: var(--shadow-button); }
.rs-sheet .sheet-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(233,78,139,0.45); }
.rs-sheet .sheet-btn.ghost { background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); }
.rs-sheet .sheet-btn.ghost:hover { background: var(--bg-elev-1); }
.rs-sheet .sheet-btn svg { width: 19px; height: 19px; stroke-width: 2.1; fill: none; }
.rs-sheet .sheet-btn.primary svg { stroke: #fff; }
.rs-sheet .sheet-btn.ghost svg { stroke: var(--fg-secondary); }
.rs-sheet .sheet-note { text-align: center; font-size: 11.5px; color: var(--fg-muted); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rs-sheet .sheet-note svg { width: 13px; height: 13px; stroke: var(--fg-muted); stroke-width: 2; fill: none; }

/* ===========================================================================
   TOAST
   =========================================================================== */
.rs-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); font-size: 13.5px; font-weight: 600; box-shadow: 0 16px 44px rgba(0,0,0,0.46); opacity: 0; pointer-events: none; transition: opacity var(--t-base), transform var(--t-base); z-index: 90; }
.rs-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.rs-toast svg { width: 17px; height: 17px; flex: 0 0 auto; stroke-width: 2.3; fill: none; }
.rs-toast.ok svg { stroke: #34D399; }
.rs-toast.info svg { stroke: var(--k-blue); }

/* ===========================================================================
   Map module classes (from creation flow, étape 9)
   =========================================================================== */
.lm-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--t-base); }
.lm-svg .lm-bg { fill: #0b0c11; }
.lm-circle-ring { stroke-width: 2.5; stroke-dasharray: 7 6; opacity: 0.95; }
.lm-circle-pulse { stroke-width: 2; animation: lmPulse 2.6s ease-out infinite; }
@keyframes lmPulse { 0% { transform: scale(0.9); opacity: 0.55; } 80% { transform: scale(1.16); opacity: 0; } 100% { opacity: 0; } }
.lm-pin { cursor: default; }
.lm-player { cursor: grab; }
.lm-player.is-drag { cursor: grabbing; }
.lm-player .lm-player-halo { animation: lmHalo 2s ease-out infinite; transform-origin: center; }
@keyframes lmHalo { 0% { transform: scale(0.8); opacity: 0.5; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
.lm-leaflet { position: absolute; inset: 0; background: #0b0c11; transition: opacity var(--t-base); }
.lm-leaflet.is-locked { opacity: 0.32; }
.lm-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--fg-muted); font-size: 12.5px; line-height: 1.5; }
.lm-tilewarn { position: absolute; inset: 0; z-index: 690; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px 28px; background: linear-gradient(180deg, rgba(11,12,17,0.86), rgba(11,12,17,0.96)); color: var(--fg-secondary); }
.lm-tilewarn.is-on { display: flex; }
.lm-tilewarn svg { width: 26px; height: 26px; color: #93B4FF; margin-bottom: 2px; }
.lm-tilewarn b { color: var(--fg); font-size: 13px; }
.lm-tilewarn span { font-size: 11.5px; line-height: 1.45; max-width: 280px; }
.leaflet-container { background: #0b0c11; font-family: var(--font-sans); }
.leaflet-control-attribution { background: rgba(10,10,10,0.6) !important; color: var(--fg-muted) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--fg-secondary) !important; }
.lm-lpin-wrap, .lm-lplayer-wrap { background: transparent; border: 0; }
.lm-lpin { width: 34px; height: 34px; }
.lm-lpin::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(45deg); width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B); box-shadow: 0 6px 16px rgba(185,104,199,0.6); }
.lm-lpin-core { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #0A0A0A; z-index: 2; }
.lm-lplayer { width: 22px; height: 22px; border-radius: 50%; background: rgba(52,211,153,0.22); display: flex; align-items: center; justify-content: center; }
.lm-lplayer span { width: 14px; height: 14px; border-radius: 50%; background: #34D399; border: 2.5px solid #0A0A0A; }
.lm-radius-chip { position: absolute; left: 10px; bottom: 10px; z-index: 700; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 9999px; background: rgba(10,10,12,0.78); border: 1px solid var(--border-soft); backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 600; color: var(--fg); }
.lm-radius-chip b { font-weight: 800; }
.lm-radius-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #B968C7; }
.lm-hint { position: absolute; right: 10px; bottom: 10px; z-index: 700; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9999px; background: rgba(10,10,12,0.7); border: 1px solid var(--border-soft); backdrop-filter: blur(8px); font-size: 10.5px; font-weight: 500; color: var(--fg-secondary); }
.lm-hint svg { width: 12px; height: 12px; stroke-width: 2; }

/* ===========================================================================
   STATUS DOTS (shared)
   =========================================================================== */
.rs-status.warn { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.34); color: #F59E0B; }
.rs-status.warn .dot { background: #F59E0B; }
.rs-status.warn .dot::after { box-shadow: 0 0 0 0 rgba(245,158,11,0.55); animation: rsPulse 1.9s ease-out infinite; }
/* Brouillon : ni vert (il n'est pas en ligne) ni alarmant (rien n'est cassé).
   La pastille se clique — le chevron et le survol doivent le dire, sinon
   l'explication reste introuvable. */
.rs-status.draft { background: rgba(148,163,184,0.14); border-color: rgba(148,163,184,0.34); color: var(--fg-secondary); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.rs-status.draft .dot { background: #94A3B8; }
.rs-status.draft .dot::after { animation: none; box-shadow: none; }
.rs-status.draft:hover { background: rgba(148,163,184,0.22); border-color: rgba(148,163,184,0.5); }
.rs-status.draft:focus-visible { outline: 2px solid var(--k-violet, #B968C7); outline-offset: 2px; }
.rs-status.draft .chev { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; margin-left: -2px; opacity: 0.7; }

/* Dernière minute avant le GO : la page va basculer sur les Résultats. Ambre
   (« ça bouge »), pas rouge (rien n'est cassé), et le pouls dit que ça court. */
.rs-golive { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9999px; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.34); font-size: 12.5px; font-weight: 600; color: #F59E0B; white-space: nowrap; animation: rsGoLiveIn .28s var(--ease, cubic-bezier(.2,.8,.2,1)) both; }
.rs-golive[hidden] { display: none; }
.rs-golive .ci { display: inline-flex; animation: rsGoLivePulse 1s ease-in-out infinite; }
.rs-golive svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.rs-golive b { font-variant-numeric: tabular-nums; font-weight: 800; }
@keyframes rsGoLiveIn { from { opacity: 0; transform: translateY(-4px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rsGoLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .rs-golive, .rs-golive .ci { animation: none; } }

/* Modale du brouillon : trois faits, pas un pavé. */
.rs-draft-steps { display: flex; flex-direction: column; gap: 14px; }
.rs-draft-step { display: flex; align-items: flex-start; gap: 12px; }
.rs-draft-step .ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; }
.rs-draft-step .ic svg { width: 16px; height: 16px; stroke: var(--fg-secondary); fill: none; stroke-width: 2; }
.rs-draft-step b { display: block; font-size: 13.5px; font-weight: 700; color: var(--fg); }
.rs-draft-step span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.ok { background: #34D399; }
.dot.warn { background: #F59E0B; }
.dot.blu { background: #5B8DEF; }

/* ===========================================================================
   VALIDITÉ — presets + custom calendar
   =========================================================================== */
.rs-val-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rs-val-preset { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 14px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); cursor: pointer; font-family: inherit; text-align: left; transition: transform var(--t-fast), border-color var(--t-fast); }
.rs-val-preset:hover { transform: translateY(-2px); border-color: rgba(185,104,199,0.3); }
.rs-val-preset .em { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.rs-val-preset .tx { display: flex; flex-direction: column; min-width: 0; }
.rs-val-preset .tx .n { font-size: 13px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-val-preset .tx .s { font-size: 10.5px; color: var(--fg-muted); margin-top: 1px; white-space: normal; line-height: 1.25; }
.rs-val-preset.on { background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, linear-gradient(135deg, var(--k-blue), var(--k-violet), var(--k-pink)) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 20px rgba(185,104,199,0.16); }

.rs-val-editor { display: none; margin-top: 16px; }
.rs-val-editor.on { display: block; animation: rsSwap .35s var(--ease-out); }
.rs-val-warn { display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.32); color: #FCA5A5; font-size: 13px; margin-bottom: 14px; }
.rs-val-warn.on { display: flex; }
.rs-val-warn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex: 0 0 auto; }
.rs-val-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rs-val-cal { min-width: 0; border-radius: 18px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); padding: 13px; }
.rs-val-cal.err { border-color: rgba(239,68,68,0.45); }
.rs-val-cal .vh { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 10px; }
.rs-val-cal .vh svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-val-cal .vh .pick { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--fg); text-transform: none; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rs-cal-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.rs-cal-nav .mo { flex: 1 1 auto; text-align: center; font-size: 13px; font-weight: 700; color: var(--fg); }
.rs-cal-nav .nb { width: 26px; height: 26px; border-radius: 9999px; background: transparent; border: 1px solid var(--border-soft); color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rs-cal-nav .nb:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.rs-cal-nav .nb svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding-bottom: 4px; }
.rs-dow span { text-align: center; font-size: 10px; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; }
.rs-caldays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.rs-day { aspect-ratio: 1/1; border: 0; background: transparent; color: var(--fg); font-size: 12px; font-weight: 600; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; position: relative; font-family: inherit; transition: background var(--t-fast); }
.rs-day:hover { background: rgba(255,255,255,0.06); }
.rs-day.out { color: var(--fg-muted); opacity: 0.32; }
.rs-day.dis { color: var(--fg-muted); opacity: 0.28; text-decoration: line-through; cursor: not-allowed; }
.rs-day.dis:hover { background: transparent; }
.rs-day.go::after { content: '★'; position: absolute; top: 1px; right: 3px; font-size: 7px; color: var(--k-pink); }
.rs-day.in { background: rgba(185,104,199,0.18); border-radius: 0; }
.rs-day.sel { background: var(--k-gradient-h); color: #fff; box-shadow: 0 4px 12px rgba(233,78,139,0.28); border-radius: 10px; }
.rs-day.rstart { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rs-day.rend { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rs-caltime { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; }
.rs-caltime .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.rs-caltime .picker { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 4px; border-radius: 9999px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); }
.rs-caltime .picker button { width: 24px; height: 24px; border-radius: 50%; background: transparent; border: 0; color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rs-caltime .picker button:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.rs-caltime .picker button svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.6; fill: none; }
.rs-caltime .picker input { width: 32px; text-align: center; background: transparent; border: 0; outline: 0; color: var(--fg); font-family: var(--font-display); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rs-caltime .picker input::-webkit-outer-spin-button, .rs-caltime .picker input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rs-caltime .picker .sep { color: var(--fg-muted); }

/* ===========================================================================
   INFOS — standard grid, sub-labels, quick inserts, custom questions
   =========================================================================== */
.rs-sub-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rs-sub-label > span:first-child { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-secondary); }
.rs-sub-label .ln { flex: 1 1 auto; height: 1px; background: var(--border-soft); }
.rs-cnt-pill { padding: 2px 9px; border-radius: 9999px; background: rgba(185,104,199,0.18); border: 1px solid rgba(185,104,199,0.32); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-std { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-info .lockpill { font-size: 10px; font-weight: 700; color: var(--fg-muted); }
.rs-quick-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); margin: 4px 0 9px; }
.rs-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.rs-quick-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9999px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
.rs-quick-chip:hover { background: var(--bg-elev-1); color: var(--fg); border-color: rgba(185,104,199,0.3); transform: translateY(-1px); }
.rs-quick-chip .em { font-size: 13px; }
.rs-quick-chip .plus { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.rs-quick-chip .plus svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 3; fill: none; }
.rs-quick-chip.used { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.32); color: #6EE7B7; cursor: default; opacity: 0.6; }
.rs-quick-chip.used .plus { background: rgba(16,185,129,0.22); }
.rs-qlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rs-qempty { padding: 18px; border: 1.5px dashed var(--border); border-radius: 14px; text-align: center; font-size: 12.5px; color: var(--fg-muted); }
.rs-q { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); }
.rs-q .type-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9999px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.rs-q .qtext { flex: 1 1 auto; min-width: 0; }
.rs-q .qtext .qt { font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-q .qtext .qt .reqdot { font-size: 10px; font-weight: 700; color: #FFB4C1; margin-left: 4px; }
.rs-q .qtext .qo { font-size: 11.5px; color: var(--fg-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-q .qactions { display: flex; gap: 5px; flex: 0 0 auto; }
.rs-q .iconb { width: 30px; height: 30px; border-radius: 9px; background: transparent; border: 1px solid var(--border-soft); color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--t-fast); }
.rs-q .iconb:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.rs-q .iconb.danger:hover { color: var(--error); background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.32); }
.rs-q .iconb svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-add-q { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 14px; background: transparent; border: 1.5px dashed var(--border); color: var(--fg-secondary); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
.rs-add-q:hover { color: var(--fg); background: rgba(185,104,199,0.06); border-color: rgba(185,104,199,0.4); border-style: solid; }
.rs-add-q svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* ===========================================================================
   LOCALISATION — address search + suggestions + selected chip
   =========================================================================== */
.rs-search-loc { position: relative; }
.rs-search-loc .field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 14px; background: var(--bg-elev-2); border: 1.5px solid var(--border-soft); border-radius: 14px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.rs-search-loc .field:focus-within { border-color: rgba(185,104,199,0.55); box-shadow: 0 0 0 3px rgba(185,104,199,0.10); }
.rs-search-loc .field > svg { width: 18px; height: 18px; stroke: var(--fg-muted); stroke-width: 2; fill: none; flex: 0 0 auto; }
.rs-search-loc input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font-family: inherit; font-size: 15px; font-weight: 600; }
.rs-search-loc input::placeholder { color: var(--fg-muted); font-weight: 500; }
.rs-search-loc .gps { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: color var(--t-fast), border-color var(--t-fast); }
.rs-search-loc .gps:hover { color: #fff; border-color: rgba(185,104,199,0.4); }
.rs-search-loc .gps svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-search-loc .gps.busy svg { animation: rsSpin .8s linear infinite; }
.rs-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-elev-1); border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); overflow: hidden; z-index: 30; display: none; }
.rs-suggest.is-open { display: block; }
.rs-sg { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; transition: background var(--t-fast); }
.rs-sg:hover { background: var(--bg-elev-2); }
.rs-sg .mk { width: 30px; height: 30px; border-radius: 9px; background: rgba(185,104,199,0.15); color: #E0BFFF; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rs-sg .mk svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-sg .t { min-width: 0; }
.rs-sg .t .l1 { font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-sg .t .l2 { font-size: 11.5px; color: var(--fg-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-selected { display: none; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 13px; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.28); }
.rs-selected.is-on { display: flex; }
.rs-selected .check { width: 26px; height: 26px; border-radius: 50%; background: rgba(16,185,129,0.20); color: #34D399; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rs-selected .check svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 3; fill: none; }
.rs-selected .info { flex: 1 1 auto; min-width: 0; }
.rs-selected .info .l1 { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.rs-selected .info .l2 { font-size: 11.5px; color: var(--fg-secondary); margin-top: 1px; }
.rs-selected .edit { font-size: 12px; font-weight: 600; color: var(--fg-muted); background: transparent; border: 0; cursor: pointer; padding: 4px 6px; font-family: inherit; }
.rs-selected .edit:hover { color: var(--fg); }

/* ===========================================================================
   ACCÈS & INSCRIPTIONS
   =========================================================================== */
.rs-access-block { border-radius: 18px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); padding: 16px 18px; margin-bottom: 14px; }
.rs-access-row { display: flex; align-items: center; gap: 13px; }
.rs-access-row.disabled { opacity: 0.6; }
.rs-access-row .ai { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.rs-access-row .ai svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; }
.rs-access-row .ai.protect { background: linear-gradient(135deg,#5B8DEF,#B968C7); }
.rs-access-row .ai.reg { background: linear-gradient(135deg,#10B981,#0EA5E9); }
.rs-access-row .ai.reg.closed { background: linear-gradient(135deg,#9CA3AF,#6B7280); }
.rs-access-row .ax { flex: 1 1 auto; min-width: 0; }
.rs-access-row .ax .l1 { font-size: 15px; font-weight: 700; color: var(--fg); }
.rs-access-row .ax .l2 { font-size: 12.5px; color: var(--fg-secondary); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.rs-pwd-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 13px; padding: 13px; border-radius: 13px; background: linear-gradient(var(--bg-elev-1), var(--bg-elev-1)) padding-box, linear-gradient(135deg, var(--k-blue), var(--k-violet), var(--k-pink)) border-box; border: 1.5px solid transparent; color: var(--fg); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.rs-pwd-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(185,104,199,0.22); }
.rs-pwd-btn svg { width: 16px; height: 16px; stroke: var(--k-violet); stroke-width: 2; fill: none; }
.rs-access-note { font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); margin-top: 12px; }
.rs-access-locked { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.22); font-size: 12.5px; line-height: 1.4; color: var(--fg-secondary); }
.rs-access-locked svg { width: 15px; height: 15px; stroke: #F59E0B; stroke-width: 2; fill: none; flex: 0 0 auto; margin-top: 1px; }
.rs-access-locked b { color: var(--fg); }
.rs-tech { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 16px; }
.rs-tech-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; color: var(--fg-secondary); }
.rs-tech-chip b { color: var(--k-violet); font-weight: 800; font-variant-numeric: tabular-nums; }
.rs-tech-chip svg { width: 15px; height: 15px; stroke: var(--k-violet); stroke-width: 2; fill: none; }
.rs-tech-chip.warn { color: #F59E0B; }
.rs-tech-chip.warn b { color: #F59E0B; }
.rs-tech-chip.warn svg { stroke: #F59E0B; }
.rs-danger { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 14px; border-radius: 14px; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.34); color: var(--error); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.rs-danger:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.5); }
.rs-danger svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Password sheet field */
.rs-pwd-field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 10px 0 14px; margin: 16px 0 4px; border-radius: 14px; background: var(--bg-elev-2); border: 1.5px solid var(--border-soft); }
.rs-pwd-field:focus-within { border-color: rgba(185,104,199,0.55); box-shadow: 0 0 0 3px rgba(185,104,199,0.12); }
.rs-pwd-field > svg { width: 18px; height: 18px; stroke: var(--fg-muted); stroke-width: 2; fill: none; flex: 0 0 auto; }
.rs-pwd-field input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; }
.rs-pwd-field input::placeholder { color: var(--fg-muted); font-weight: 600; letter-spacing: 0; }
.rs-pwd-eye { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rs-pwd-eye:hover { color: var(--fg); border-color: rgba(185,104,199,0.4); }
.rs-pwd-eye svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-sheet-x { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border-soft); background: var(--bg-elev-1); color: var(--fg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rs-sheet-x:hover { color: var(--fg); border-color: rgba(185,104,199,0.34); }

/* ===========================================================================
   MODALS (custom question + delete)
   =========================================================================== */
.rs-modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,9,0.62); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .28s var(--ease-out); }
.rs-modal-bg.on { display: flex; opacity: 1; }
.rs-modal { width: 100%; max-width: 540px; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--bg-elev-1); border: 1px solid var(--border-soft); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: scale(0.96) translateY(8px); transition: transform .3s var(--spring); scrollbar-width: thin; }
.rs-modal.sm { max-width: 440px; }
.rs-modal-bg.on .rs-modal { transform: none; }
.rs-modal .head { padding: 22px 24px 16px; border-bottom: 1px solid var(--border-soft); }
.rs-modal .head .ttl { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.rs-modal .head .ttl.danger { color: #FCA5A5; }
.rs-modal .head .sub { margin-top: 5px; font-size: 13px; color: var(--fg-muted); }
.rs-modal .head .sub b { color: var(--fg); font-weight: 700; }
.rs-modal .body { padding: 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.rs-modal .grp .lbl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 9px; }
.rs-modal .grp .lbl .req { color: var(--k-pink); margin-left: 2px; }
.rs-qtypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rs-qtype { padding: 11px 8px; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all var(--t-fast); }
.rs-qtype:hover { color: var(--fg); border-color: var(--border); }
.rs-qtype .em { font-size: 18px; }
.rs-qtype.on { background: linear-gradient(var(--bg-elev-1), var(--bg-elev-1)) padding-box, linear-gradient(135deg, var(--k-blue), var(--k-violet), var(--k-pink)) border-box; border: 1px solid transparent; color: var(--fg); box-shadow: 0 0 0 3px rgba(185,104,199,0.1); }
.rs-qtext { width: 100%; background: var(--bg-elev-2); border: 1.5px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; color: var(--fg); font-family: inherit; font-size: 14.5px; outline: 0; box-sizing: border-box; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.rs-qtext:focus { border-color: rgba(185,104,199,0.55); box-shadow: 0 0 0 3px rgba(185,104,199,0.1); }
.rs-qtext::placeholder { color: var(--fg-muted); }
.rs-qopts { display: flex; flex-direction: column; gap: 6px; }
.rs-qopt { display: flex; gap: 6px; align-items: center; }
.rs-qopt .num { width: 22px; text-align: center; font-size: 12px; font-weight: 700; color: var(--fg-muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.rs-qopt input { flex: 1 1 auto; min-width: 0; background: var(--bg-elev-2); border: 1.5px solid var(--border-soft); border-radius: 10px; padding: 9px 12px; color: var(--fg); font-family: inherit; font-size: 14px; outline: 0; }
.rs-qopt input:focus { border-color: rgba(185,104,199,0.5); }
.rs-qopt .del { width: 30px; height: 30px; border-radius: 8px; background: transparent; border: 1px solid var(--border-soft); color: var(--fg-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rs-qopt .del:hover { color: var(--error); background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.32); }
.rs-qopt .del svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-qaddopt { align-self: flex-start; margin-top: 4px; height: 32px; padding: 0 12px; border-radius: 9999px; background: transparent; border: 1px dashed var(--border); color: var(--fg-secondary); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rs-qaddopt:hover { color: var(--fg); border-color: var(--border-soft); background: rgba(255,255,255,0.03); }
.rs-qaddopt svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.rs-qreq { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); cursor: pointer; }
.rs-qreq .info { font-size: 13.5px; color: var(--fg); font-weight: 600; }
.rs-qreq .info .sub { display: block; font-size: 11.5px; color: var(--fg-muted); font-weight: 500; margin-top: 1px; }
.rs-modal .foot { display: flex; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--border-soft); }
.rs-mbtn { flex: 1 1 0; height: 46px; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--fg); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--t-fast); }
.rs-mbtn:hover { background: var(--bg-elev-1); }
.rs-mbtn.primary { background: var(--k-gradient-h); border-color: transparent; color: #fff; flex: 1.4 1 0; box-shadow: var(--shadow-button); }
.rs-mbtn.primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.rs-mbtn.danger { background: var(--error); border-color: transparent; color: #fff; flex: 1.4 1 0; }
.rs-mbtn.danger:disabled { opacity: 0.4; cursor: not-allowed; }
.rs-del-warn { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.28); font-size: 13px; color: var(--fg-secondary); margin-bottom: 12px; }
.rs-del-warn b { color: var(--fg); font-weight: 700; }
.rs-del-warn svg { width: 15px; height: 15px; stroke: var(--error); stroke-width: 2; fill: none; flex: 0 0 auto; }
.rs-pvcard .top .pill.closed svg { stroke: #F59E0B; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1280px) {
  .rs-stage { grid-template-columns: minmax(0,1fr) 360px; }
  .rs-nav { display: none; }
}
@media (max-width: 1040px) {
  .rs-stage { grid-template-columns: minmax(0,1fr); }
  .rs-rail { display: none; }
}
@media (max-width: 720px) {
  .rs-val-grid { grid-template-columns: 1fr; }
  .rs-val-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-std, .rs-infos { grid-template-columns: 1fr; }
  .rs-visuel { grid-template-columns: 1fr; }
  .rs-vstage { max-width: 260px; }
}
