:root {
--pink: #FA1473;
--pink-ink: #c40a57;
--bg: #0a0a12;
--line: rgba(255, 255, 255, .07);
--line-2: rgba(255, 255, 255, .12);
--ink: #f4f4f8;
--ink-2: #c9c9d6;
--muted: #8c8ca3;
--ok: #22c55e;
--warn: #f59e0b;
--bad: #ef4444;
--info: #3b82f6;
--violet: #8b5cf6;
--teal: #14b8a6;
--card: #12121c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: radial-gradient(1200px 600px at 60% -10%, #1c1430 0%, #0a0a12 60%); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: Poppins, Inter, sans-serif; margin: 0; }
.app { display: grid; height: 100vh; height: 100dvh; grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); grid-template-areas: "nav top" "nav main"; transition: grid-template-columns .22s; }
body.nav-mini .app { grid-template-columns: 68px minmax(0, 1fr); }
.nav { grid-area: nav; background: linear-gradient(180deg, #13111f, #0b0b13); border-right: 1px solid rgba(250, 20, 115, .25); display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; overflow-y: auto; overflow-x: hidden; z-index: 15; box-shadow: inset -1px 0 0 rgba(250, 20, 115, .15); }
.logo { display: flex; align-items: center; gap: 8px; padding: 2px 4px 14px; user-select: none; position: relative; }
.lg-v { font: 900 30px/1 Arial, sans-serif; color: var(--pink); text-shadow: 0 0 14px rgba(250, 20, 115, .8); flex: none; width: 30px; text-align: center; }
.lg-t { min-width: 0; }
.lg-t b { font: 800 19px/1.05 Poppins, sans-serif; white-space: nowrap; letter-spacing: -.01em; }
.lg-t b em { font-style: normal; color: var(--pink); }
.lg-t b span { font-weight: 600; color: var(--muted); font-size: 15px; }
.lg-t small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.nav-fold { margin-left: auto; border: 1px solid var(--line-2); background: #1a1a27; color: var(--ink-2); border-radius: 8px; width: 26px; height: 26px; cursor: pointer; flex: none; font-size: 13px; line-height: 1; }
.nav-fold:hover { border-color: var(--pink); color: #fff; }
.nav button[data-go] { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: var(--ink-2); font: 600 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; position: relative; }
.nav button[data-go] i { font-style: normal; width: 22px; text-align: center; flex: none; font-size: 15px; }
.nav button[data-go] span { overflow: hidden; text-overflow: ellipsis; }
.nav button[data-go]:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav button[data-go].on { background: linear-gradient(90deg, var(--pink), #ff3d8f); color: #fff; box-shadow: 0 6px 20px rgba(250, 20, 115, .35); }
body:not(.boss) .nav button.boss::after { content: "🔒"; margin-left: auto; font-size: 11px; opacity: .65; padding-left: 6px; }
.nav-sep { height: 1px; background: var(--line-2); margin: 8px 6px; flex: none; }
.nav-foot { margin-top: auto; padding: 14px 6px 2px; font-size: 12px; color: var(--ink-2); display: grid; gap: 3px; white-space: nowrap; overflow: hidden; }
.nav-foot small { color: var(--muted); }
.sdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 8px var(--ok); flex: none; }
body.nav-mini .lg-t, body.nav-mini .nav button[data-go] span, body.nav-mini .nav-foot small, body.nav-mini .nav-foot span span { display: none; }
body.nav-mini .logo { flex-direction: column; padding-bottom: 10px; }
body.nav-mini .nav-fold { margin: 6px 0 0; transform: rotate(180deg); }
body.nav-mini .nav button[data-go] { justify-content: center; padding: 10px 0; }
body.nav-mini:not(.boss) .nav button.boss::after { position: absolute; right: 2px; top: 2px; font-size: 9px; padding: 0; }
.nav-bg { display: none; }
.top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(10, 10, 18, .85); backdrop-filter: blur(8px); z-index: 14; min-width: 0; }
.ttl { min-width: 0; display: grid; }
.top h1 { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 span { color: var(--pink); }
.ttl small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; border: 1px solid rgba(34, 197, 94, .35); color: #bbf7d0; background: rgba(34, 197, 94, .08); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live.on .dot { background: var(--ok); animation: pulse 2s infinite; }
.live.err { border-color: rgba(239, 68, 68, .45); color: #fecaca; background: rgba(239, 68, 68, .08); }
.live.err .dot { background: var(--bad); }
.live.past { border-color: rgba(139, 92, 246, .5); color: #ddd6fe; background: rgba(139, 92, 246, .1); }
.live.past .dot { background: var(--violet); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.search::before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-54%); color: var(--muted); font-size: 17px; pointer-events: none; }
.search input { width: 100%; background: #14141f; border: 1px solid var(--line-2); color: var(--ink); border-radius: 12px; padding: 9px 12px 9px 34px; outline: none; font: 500 13px Inter, sans-serif; }
.search input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 20, 115, .2); }
.search-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #171724; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); z-index: 60; display: grid; gap: 2px; }
.search-res button { all: unset; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.search-res button:hover, .search-res button:focus { background: rgba(250, 20, 115, .16); }
.search-res i { font-style: normal; color: var(--muted); font-size: 12px; }
.search-res .none { padding: 8px 10px; color: var(--muted); font-size: 12.5px; }
.clock { font: 600 12.5px Poppins, sans-serif; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; background: #13131d; }
.who { font-size: 12.5px; font-weight: 700; height: 36px; min-width: 36px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 99px; background: #1a1a27; border: 1px solid var(--line-2); white-space: nowrap; }
.who:empty { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: #171724; color: var(--ink); border-radius: 11px; height: 36px; min-width: 36px; padding: 0 10px; cursor: pointer; font-size: 15px; white-space: nowrap; position: relative; }
.icon-btn:hover { border-color: var(--pink); }
.bell b { position: absolute; top: -6px; right: -6px; background: var(--pink); color: #fff; font: 800 10px/18px Inter, sans-serif; min-width: 18px; height: 18px; border-radius: 99px; padding: 0 4px; box-shadow: 0 0 10px rgba(250, 20, 115, .7); }
.only-in { display: none !important; }
body.entered .only-in { display: flex !important; }
.only-mobile { display: none !important; }
.main { grid-area: main; overflow-y: auto; padding: 14px 16px 18px; display: grid; gap: 12px; align-content: start; min-height: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; height: clamp(340px, 58dvh, 700px); min-height: 0; }
.stage { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid rgba(250, 20, 115, .28); background: radial-gradient(120% 90% at 50% 0%, #241a40 0%, #100d1e 55%, #0a0a12 100%); min-height: 0; box-shadow: 0 0 30px rgba(250, 20, 115, .12); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
#scene:active { cursor: grabbing; }
.brief { background: linear-gradient(170deg, #1d1530, #12111c 60%); border: 1px solid rgba(250, 20, 115, .45); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; box-shadow: 0 0 24px rgba(250, 20, 115, .15); }
.br-head { display: flex; align-items: center; gap: 10px; }
.br-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: radial-gradient(circle at 30% 30%, #ff5fa8, #a3125a); box-shadow: 0 0 0 3px rgba(250, 20, 115, .25), 0 0 18px rgba(250, 20, 115, .5); flex: none; }
.br-head b { font: 700 15px Poppins, sans-serif; display: block; }
.br-head span { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.br-hello { margin: 0; font-size: 12.5px; color: #e9dff3; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px; }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.br-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; border-radius: 8px; }
.br-list li:hover { background: rgba(250, 20, 115, .1); }
.br-list li:last-child { border-bottom: 0; }
.br-list li i { font-style: normal; width: 22px; text-align: center; flex: none; }
.br-list li b { font: 700 14px Poppins, sans-serif; min-width: 18px; }
.br-list li.zero { opacity: .55; }
.br-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.g-btn.sm { padding: 7px 12px; font-size: 12.5px; box-shadow: 0 4px 0 var(--pink-ink); border-radius: 10px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kpi { background: linear-gradient(160deg, #1b1a29, #13131d); border: 1px solid rgba(250, 20, 115, .25); border-radius: 14px; padding: 9px 10px; display: flex; gap: 10px; align-items: center; min-width: 0; cursor: pointer; }
.kpi:hover { border-color: rgba(250, 20, 115, .6); box-shadow: 0 0 16px rgba(250, 20, 115, .2); }
.kpi .ki { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: rgba(250, 20, 115, .14); box-shadow: inset 0 0 0 1px rgba(250, 20, 115, .35); flex: none; }
.kpi .kv { min-width: 0; }
.kpi b { font: 700 19px/1.1 Poppins, sans-serif; display: block; white-space: nowrap; }
.kpi span { font-size: 11.5px; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; color: var(--muted); font-size: 10.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em.up { color: #4ade80; }
.kpi.alert { border-color: rgba(239, 68, 68, .6); background: linear-gradient(160deg, #2a1420, #13131d); }
.kpi.alert .ki { background: rgba(239, 68, 68, .18); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .45); }
.cards { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.stack { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 12px 8px; min-width: 0; }
.card h3 { font: 700 14px Poppins, sans-serif; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card h3 small { font: 500 11.5px Inter, sans-serif; color: var(--muted); }
.card h3 button { all: unset; margin-left: auto; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.card h3 button:hover { color: #fff; border-color: var(--pink); }
.act { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.act:first-of-type { border-top: 0; }
.act .ck { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #5b5b70; display: grid; place-items: center; cursor: pointer; flex: none; font-size: 11px; color: transparent; }
.act.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.act.done .tx { text-decoration: line-through; color: var(--muted); }
.act .tx { flex: 1; min-width: 0; cursor: pointer; }
.act .tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.tag.sec { background: rgba(250, 20, 115, .2); color: #ffc2db; }
.tag.mon { background: rgba(245, 158, 11, .2); color: #fcd34d; }
.tag.info { background: rgba(59, 130, 246, .2); color: #bfdbfe; }
.tag.dir { background: rgba(139, 92, 246, .22); color: #ddd6fe; }
.act .go { color: var(--muted); cursor: pointer; padding: 0 2px; }
.mon2 { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.mon2:first-of-type { border-top: 0; }
.mon2 .nm { flex: 1; min-width: 0; display: grid; }
.mon2 .nm b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon2 .nm small { font-size: 11.5px; }
.mon2 .nm small.go { color: #ff7ab5; }
.mon2 .nm small.exam { color: #c4b5fd; }
.mon2 .nm small.pause { color: #fcd34d; }
.mon2 .nm small.wait { color: #93c5fd; }
.mon2 .nm small.done { color: #5eead4; }
.mon2 .nm small.off { color: #86efac; }
.mon2 .car-ic { font-size: 16px; opacity: .8; }
.exm { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-top: 1px solid var(--line); cursor: pointer; font-size: 12.5px; }
.exm:first-of-type { border-top: 0; }
.exm .dt { width: 40px; flex: none; text-align: center; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 0; line-height: 1.1; background: #191927; }
.exm .dt b { display: block; font: 700 14px Poppins, sans-serif; }
.exm .dt small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
.exm .tx { flex: 1; min-width: 0; }
.exm .tx i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.alr { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 12.5px; }
.alr:first-of-type { border-top: 0; }
.alr .ai { flex: none; width: 22px; text-align: center; }
.alr .tx { flex: 1; min-width: 0; }
.alr .tx i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.alr.ok .tx b { color: #86efac; }
.alr.warn .tx b { color: #fcd34d; }
.alr.bad .tx b { color: #fca5a5; }
.locked-box { text-align: center; padding: 18px 10px; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; font-size: 13px; }
.locked-box b { font: 700 15px Poppins, sans-serif; color: #fff; }
.empty { color: var(--muted); font-size: 12.5px; padding: 8px 2px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; }
.bar .bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.bar .bt { height: 9px; background: #1f1f2c; border-radius: 99px; overflow: hidden; }
.bar .bt i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), #ff7ab5); border-radius: 99px; }
.bar .bv { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo { border: 1px dashed rgba(255, 255, 255, .2); border-radius: 12px; padding: 10px; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.todo b { color: #fff; font-size: 13px; }
.miniweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.miniweek div { background: #1b1b28; border: 1px solid var(--line); border-radius: 9px; padding: 6px 2px; text-align: center; font-size: 11px; color: var(--muted); }
.miniweek div b { display: block; font: 700 14px Poppins, sans-serif; color: #fff; }
.miniweek div.today { border-color: rgba(250, 20, 115, .6); }
.slot { display: flex; gap: 8px; align-items: center; background: #1b1b28; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; }
.slot b { font-variant-numeric: tabular-nums; }
.slot i { font-style: normal; color: var(--muted); margin-left: auto; font-size: 11.5px; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; will-change: transform; user-select: none; }
.lbl.clickable { pointer-events: auto; cursor: pointer; }
.lbl.room { display: flex; align-items: center; gap: 8px; background: rgba(18, 15, 30, .84); border: 1px solid rgba(250, 20, 115, .6); border-radius: 12px; padding: 6px 12px 6px 9px; box-shadow: 0 0 16px rgba(250, 20, 115, .35); backdrop-filter: blur(6px); }
.lbl.room .ic { font-size: 17px; line-height: 1; font-style: normal; }
.lbl.room b { display: block; font: 700 13.5px Poppins, sans-serif; color: #fff; }
.lbl.room span { display: block; font-size: 11px; color: #d8cce8; }
.lbl.room:hover { border-color: #ff6aa9; box-shadow: 0 0 26px rgba(250, 20, 115, .65); }
.lbl.room.locked { border-color: rgba(255, 255, 255, .2); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.lbl.room.free { border-color: rgba(255, 255, 255, .25); box-shadow: none; opacity: .9; }
.lbl.room.fit-c { padding: 5px 10px 5px 7px; gap: 5px; border-radius: 10px; }
.lbl.room.fit-c .ic { font-size: 14px; }
.lbl.room.fit-c b { font-size: 12px; }
.lbl.room.fit-c b[data-s] { font-size: 0; }
.lbl.room.fit-c b[data-s]::after { content: attr(data-s); font-size: 12px; }
.lbl.room.fit-c span { display: none; }
.lbl.room.fit-i { padding: 5px 7px; border-radius: 10px; }
.lbl.room.fit-i .ic { font-size: 15px; }
.lbl.room.fit-i div { display: none; }
.lbl.room.door { border-color: var(--pink); animation: beckon 1.6s ease-in-out infinite; }
@keyframes beckon { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 20, 115, .6); } 50% { box-shadow: 0 0 0 9px rgba(250, 20, 115, 0); } }
.lbl.pin { background: rgba(18, 15, 30, .82); border: 1px solid rgba(250, 20, 115, .6); color: #fff; font: 700 10.5px Poppins, sans-serif; padding: 2px 8px 2px 6px; border-radius: 99px; box-shadow: 0 0 8px rgba(250, 20, 115, .35); transform-origin: 50% 100%; }
.lbl.pin .sh { display: none; }
.lbl.car { display: flex; align-items: center; gap: 6px; background: rgba(16, 15, 26, .9); border: 1px solid var(--line-2); color: #fff; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 11.5px; }
.lbl.car b { font-weight: 700; }
.lbl.car span { color: var(--muted); font-size: 10.5px; }
.lbl.car.card { display: grid; gap: 2px; border-radius: 12px; padding: 7px 11px; border-color: rgba(250, 20, 115, .7); box-shadow: 0 0 18px rgba(250, 20, 115, .4); }
.lbl.car.card .cl-top { display: flex; align-items: center; gap: 8px; }
.lbl.car.card small { font-size: 10.5px; color: #d8cce8; }
.lbl.car.card small.stu { font-size: 10px; color: #ffc2db; }
.lbl.tiny { background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; box-shadow: 0 0 12px rgba(250, 20, 115, .6); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.go { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.dot.exam { background: var(--violet); }
.dot.pause { background: var(--warn); }
.dot.wait { background: var(--info); }
.dot.done { background: var(--teal); }
.dot.off { background: var(--ok); }
.intro { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); background: rgba(16, 14, 28, .9); border: 1px solid rgba(250, 20, 115, .5); color: #fff; padding: 10px 18px; border-radius: 14px; display: grid; text-align: center; gap: 2px; z-index: 9; box-shadow: 0 0 24px rgba(250, 20, 115, .3); pointer-events: none; max-width: calc(100% - 24px); }
.intro b { font: 700 16px Poppins, sans-serif; }
.intro span { font-size: 12.5px; color: #ffc2db; }
body.entered .intro { display: none; }
.hint { display: none; position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); background: rgba(16, 14, 28, .78); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 99px; font-size: 12px; color: var(--ink-2); z-index: 9; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.hint.fade { opacity: 0; }
.replay { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--violet); color: #fff; padding: 7px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; z-index: 9; box-shadow: 0 8px 22px rgba(139, 92, 246, .4); max-width: calc(100% - 24px); text-align: center; }
.timebar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(16, 14, 28, .92); border: 1px solid var(--line-2); border-radius: 14px; padding: 5px 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); align-items: center; gap: 6px; z-index: 10; }
.timebar button { border: 0; background: #22222f; color: var(--ink); border-radius: 9px; padding: 5px 9px; font: 600 12.5px Inter, sans-serif; cursor: pointer; }
.timebar .t-live.on { background: rgba(34, 197, 94, .18); color: #86efac; }
.timebar .t-day { font-weight: 700; font-size: 12.5px; min-width: 96px; text-align: center; text-transform: capitalize; }
.timebar input[type=range] { width: 160px; accent-color: var(--pink); }
.panel { position: fixed; top: 76px; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); background: rgba(17, 16, 27, .97); border: 1px solid rgba(250, 20, 115, .35); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(250, 20, 115, .15); padding: 18px; overflow-y: auto; z-index: 40; display: grid; gap: 12px; align-content: start; animation: pin .25s ease-out; }
@keyframes pin { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.p-close { position: absolute; top: 10px; right: 10px; border: 0; background: #23232f; color: var(--ink); border-radius: 10px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.panel h3 { font-size: 18px; padding-right: 34px; }
.panel h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.p-head { display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font: 800 15px Poppins, sans-serif; flex: none; box-shadow: 0 0 16px rgba(250, 20, 115, .5); }
.av.stu { background: var(--info); box-shadow: none; }
.muted { color: var(--muted); font-size: 12.5px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--ink-2); }
.pill.big { display: block; font-size: 13.5px; padding: 9px 12px; border-radius: 12px; white-space: normal; }
.pill.go { background: rgba(250, 20, 115, .18); color: #ffc2db; }
.pill.exam { background: rgba(139, 92, 246, .2); color: #ddd6fe; }
.pill.pause { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.pill.wait { background: rgba(59, 130, 246, .18); color: #bfdbfe; }
.pill.done { background: rgba(20, 184, 166, .18); color: #99f6e4; }
.pill.off { background: rgba(34, 197, 94, .14); color: #86efac; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-stats > div { background: #1b1b28; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.p-stats b { font: 700 18px Poppins, sans-serif; }
.p-stats span { font-size: 11px; color: var(--muted); line-height: 1.25; }
.p-warn { background: rgba(245, 158, 11, .14); color: #fcd34d; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.p-list { display: grid; gap: 6px; }
.p-row { display: flex; align-items: center; gap: 10px; background: #1b1b28; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.p-row[data-sid], .p-row[data-tid] { cursor: pointer; }
.p-row[data-sid]:hover, .p-row[data-tid]:hover { border-color: rgba(250, 20, 115, .5); }
.p-row.now { border-color: rgba(250, 20, 115, .55); background: rgba(250, 20, 115, .08); }
.p-row .t { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-row .n { flex: 1; display: grid; min-width: 0; }
.p-row .n i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.p-empty { padding: 6px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: rgba(255, 255, 255, .08); color: var(--ink-2); }
.chip.go { background: var(--pink); color: #fff; box-shadow: 0 0 10px rgba(250, 20, 115, .5); }
.chip.pause { background: rgba(245, 158, 11, .2); color: #fcd34d; }
.chip.exam, .chip.violet { background: rgba(139, 92, 246, .22); color: #ddd6fe; }
.chip.wait, .chip.info { background: rgba(59, 130, 246, .2); color: #bfdbfe; }
.chip.done, .chip.ok { background: rgba(20, 184, 166, .2); color: #99f6e4; }
.chip.off { background: rgba(34, 197, 94, .16); color: #86efac; }
.chip.warn { background: rgba(245, 158, 11, .2); color: #fcd34d; }
.chip.bad { background: rgba(239, 68, 68, .2); color: #fecaca; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.g-btn { border: 0; background: var(--pink); color: #fff; font: 700 13.5px Poppins, Inter, sans-serif; padding: 10px 16px; border-radius: 12px; cursor: pointer; box-shadow: 0 6px 0 var(--pink-ink), 0 0 18px rgba(250, 20, 115, .35); transition: transform .08s, box-shadow .08s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.g-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-ink); }
.g-btn.ghost { background: #262634; color: var(--ink); box-shadow: 0 6px 0 #15151e; }
.pt { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; display: grid; gap: 6px; background: #151521; }
.pt.on { border-color: rgba(250, 20, 115, .6); box-shadow: 0 0 16px rgba(250, 20, 115, .25); }
.pt-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-h span { font-size: 11.5px; color: var(--muted); }
.feed { display: grid; }
.ev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.ev:first-child { border-top: 0; }
.ev .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 13px; }
.ev .ic.info { background: rgba(59, 130, 246, .18); }
.ev .ic.ok { background: rgba(34, 197, 94, .16); }
.ev .ic.warn { background: rgba(245, 158, 11, .18); }
.ev .ic.bad { background: rgba(239, 68, 68, .18); }
.ev .ic.violet { background: rgba(139, 92, 246, .2); }
.ev .ic.pink { background: rgba(250, 20, 115, .18); }
.ev .tx { min-width: 0; }
.ev .tx > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .when { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ev[data-sid], .ev[data-tid] { cursor: pointer; }
:is(.panel, .ws, .main) .ev .tx > div { white-space: normal; }
.mon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; cursor: pointer; }
.mon:first-child { border-top: 0; }
.mon .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon .nm i { font-style: normal; color: var(--muted); }
.mon .tm { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gate { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(250, 20, 115, .2), rgba(5, 5, 10, .78)); z-index: 70; padding: 16px; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.gate-card { width: min(380px, 100%); background: linear-gradient(180deg, #1b1b24, #0f0f15); color: #fff; border-radius: 22px; padding: 22px; display: grid; gap: 12px; border: 1px solid rgba(250, 20, 115, .55); box-shadow: 0 0 0 4px rgba(250, 20, 115, .12), 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 40px rgba(250, 20, 115, .08); position: relative; overflow: hidden; }
.gate-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #c9c9d3; gap: 8px; }
.gate-chip { background: rgba(250, 20, 115, .18); color: #ff8fbf; padding: 3px 8px; border-radius: 99px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.badge-ico { font-size: 44px; text-align: center; filter: drop-shadow(0 6px 18px rgba(250, 20, 115, .5)); }
.gate-card h2 { text-align: center; font-size: 22px; }
.gate-card p { margin: 0; text-align: center; font-size: 13px; color: #c9c9d3; }
.gate-card p.gate-first { background: rgba(250, 20, 115, .16); color: #ffd1e4; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; }
.gate-card label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: #e5e5ea; }
.gate-card input { border: 1px solid #34343d; background: #0a0a0e; color: #fff; border-radius: 12px; padding: 11px 12px; font: 500 14px Inter, sans-serif; outline: none; }
.gate-card input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 20, 115, .25); }
.scan { height: 6px; background: #24242c; border-radius: 99px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.scan span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), #ff8fbf); border-radius: 99px; }
.gate-card.scanning .scan { opacity: 1; }
.gate-card.scanning .scan span { animation: scan 1.1s ease-in-out forwards; }
.gate-card.scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(250, 20, 115, .35), transparent); animation: sweep 1.1s linear infinite; pointer-events: none; }
@keyframes scan { to { width: 100%; } }
@keyframes sweep { to { top: 110%; } }
.gate-card.ok { border-color: #18b25a; box-shadow: 0 0 0 4px rgba(24, 178, 90, .25), 0 30px 80px rgba(0, 0, 0, .5); }
.gate-card.ok .badge-ico::after { content: " ✓"; color: #18b25a; }
.gate-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.gate-err { color: #ff8a8a !important; font-weight: 600; }
.gate-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.gate-note { font-size: 11px !important; color: #8a8a94 !important; }
.flash { position: fixed; inset: 0; display: grid; place-items: center; z-index: 65; pointer-events: none; }
.fl-in { text-align: center; animation: zoomin .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.fl-ok { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; background: #18b25a; color: #fff; display: grid; place-items: center; font-size: 46px; font-weight: 800; box-shadow: 0 0 0 10px rgba(24, 178, 90, .25), 0 20px 50px rgba(0, 0, 0, .35); }
.fl-t { font: 800 clamp(28px, 6vw, 52px) Poppins, sans-serif; color: #fff; letter-spacing: .04em; text-shadow: 0 4px 0 var(--pink), 0 0 30px rgba(250, 20, 115, .8); }
.fl-s { font: 700 18px Poppins, sans-serif; color: #fff; margin-top: 6px; text-shadow: 0 3px 12px rgba(0, 0, 0, .5); }
@keyframes zoomin { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.crm-modal { position: fixed; inset: 2.5vh 2.5vw; background: #fff; border-radius: 20px; z-index: 55; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(250, 20, 115, .4); display: flex; flex-direction: column; animation: crmIn .35s cubic-bezier(.2, 1.1, .4, 1); }
@keyframes crmIn { from { transform: scale(.92) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.crm-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #12121b; color: #fff; }
.crm-bar span { font: 700 16px Poppins, sans-serif; }
.crm-modal iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); pointer-events: none; }
.toast { background: #191926; border: 1px solid rgba(250, 20, 115, .45); color: #fff; border-radius: 12px; padding: 10px 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); font-size: 13px; animation: pin .25s ease-out; }
@media (max-width: 1000px) {
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
.app, body.nav-mini .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
.nav { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-105%); transition: transform .25s; box-shadow: 20px 0 40px rgba(0, 0, 0, .5); z-index: 75; }
body.nav-open .nav { transform: none; }
body.nav-open .nav-bg { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 74; }
.nav-fold { display: none; }
body.nav-mini .lg-t, body.nav-mini .nav button[data-go] span, body.nav-mini .nav-foot small, body.nav-mini .nav-foot span span { display: revert; }
body.nav-mini .nav button[data-go] { justify-content: flex-start; padding: 9px 11px; }
body.nav-mini .logo { flex-direction: row; }
.only-mobile { display: inline-flex !important; }
.clock { display: none; }
.cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cards .stack { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.hero { height: clamp(320px, 54dvh, 600px); }
}
@media (max-width: 760px) {
html, body { overflow: auto; height: auto; }
.app { display: block; height: auto; }
.top { position: sticky; top: 0; flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
.ttl { flex: 1; }
.top h1 { font-size: 15px; }
.ttl small { display: none; }
.who { display: none; }
.live { padding: 4px 8px; }
.search { order: 10; flex-basis: 100%; max-width: none; margin: 0; }
.main { padding: 10px; overflow: visible; }
.hero { grid-template-columns: 1fr; height: auto; }
.stage { height: 56vh; height: 56svh; }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards, .cards .stack { grid-template-columns: 1fr; }
.panel { position: fixed; top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 76vh; z-index: 50; }
.hint { display: none; }
.intro { bottom: auto; top: 10px; padding: 8px 12px; }
.intro b { font-size: 14px; }
.lbl.room { padding: 4px 9px 4px 7px; gap: 6px; }
.lbl.room .ic { font-size: 14px; }
.lbl.room b { font-size: 11.5px; }
.lbl.room span { display: none; }
.lbl.pin { font-size: 9.5px; padding: 2px 7px 2px 5px; }
.lbl.car { font-size: 10.5px; padding: 3px 8px 3px 6px; }
.lbl.car span { display: none; }
.lbl.car.card small { font-size: 9.5px; }
.lbl.car.card small.tm { display: none; }
.lbl.pin .nm { display: none; }
.lbl.pin .sh { display: inline; }
.timebar { left: 8px; right: 8px; transform: none; bottom: 8px; flex-wrap: wrap; justify-content: center; padding: 6px; }
.timebar input[type=range] { width: 100%; }
.crm-modal { inset: 0; border-radius: 0; }
.toasts { bottom: 8px; left: 8px; }
}
.lbl.car { font-size: 10.5px; padding: 2px 8px 2px 6px; gap: 5px; }
.lbl.car .stu { color: #ffc2db; font-weight: 600; font-size: 9.5px; }
@media (max-width: 1180px) { .timebar input[type=range] { display: none; } }
@media (max-width: 760px) { .lbl.car span.stu { display: inline; } .lbl.car { font-size: 9.5px; } }
.top .live, #btn-home { display: none !important; }
@media (max-width: 760px) { #btn-home { display: inline-flex !important; } }
.timebar { left: 12px; transform: none; }
.timebar input[type=range] { width: 110px; }
.panel.wide { width: min(620px, calc(100vw - 32px)); }
.seg { display: inline-flex; background: #1b1b28; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { all: unset; padding: 5px 12px; border-radius: 8px; font: 600 12.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--pink); color: #fff; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rc-head h4 span { text-transform: none; color: var(--ink-2); font-weight: 600; }
.rc-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rc-sum div { background: #1b1b28; border: 1px solid var(--line); border-radius: 10px; padding: 7px 6px; text-align: center; }
.rc-sum b { display: block; font: 700 16px Poppins, sans-serif; }
.rc-sum span { font-size: 10.5px; color: var(--muted); }
.rc-list { display: grid; gap: 8px; }
.rc-t { border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; overflow: hidden; background: #1e1d2c; }
.rc-th { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: linear-gradient(90deg, rgba(250, 20, 115, .34), rgba(255, 255, 255, .09)); flex-wrap: wrap; cursor: pointer; user-select: none; }
.rc-th:hover { background: linear-gradient(90deg, rgba(250, 20, 115, .45), rgba(255, 255, 255, .12)); }
.rc-th .ar { font-style: normal; width: 14px; color: #fff; font-size: 13px; }
.rc-th .cnt { font-size: 11.5px; color: #f3e8ff; }
.rc-th .car-go { cursor: pointer; padding: 2px 7px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 13px; }
.rc-th .car-go:hover { background: rgba(255, 255, 255, .25); }
.rc-t.open { border-color: rgba(250, 20, 115, .5); }
.rc-th b { font: 700 13.5px Poppins, sans-serif; color: #fff; }
.rc-th .pt { font-size: 12px; color: #f1f1f7; }
.rc-th .hh { margin-left: auto; font: 700 13px Poppins, sans-serif; color: #fff; }
.rc-l { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 32px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; cursor: pointer; background: #22212f; }
.rc-l:hover { background: rgba(250, 20, 115, .06); }
.rc-l .t { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 88px; }
.rc-l .n { flex: 1; min-width: 0; }
.rc-l .d { color: var(--muted); white-space: nowrap; }
.rc-l.now { background: rgba(250, 20, 115, .1); }
.rc-l.off { opacity: .55; }
.rc-l.off .n { text-decoration: line-through; }
.rc-none { padding: 7px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .rc-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rc-l .t { min-width: 70px; } }
/* ---------- Examens : carte d'accueil ---------- */
.exm .chip { flex: none; }
.exm .jm { flex: none; font-size: 10.5px; font-weight: 700; color: #ff7ab5; white-space: nowrap; }
.exm-foot { margin-top: 4px; padding: 7px 2px 3px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); cursor: pointer; }
.exm-foot:hover { color: #fff; }
/* ---------- Panneaux sur fond blanc ---------- */
.panel { --ink: #1c1a29; --ink-2: #4a4760; --muted: #77748c; --line: rgba(28, 26, 41, .08); --line-2: rgba(28, 26, 41, .15); background: #fff; color: var(--ink); border-color: rgba(250, 20, 115, .35); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
:is(.panel, .ws, .main) .p-close { background: #f1f0f6; color: var(--ink); }
:is(.panel, .ws, .main) .p-close:hover { background: #ffe3ef; color: var(--pink); }
:is(.panel, .ws, .main) .p-stats > div, :is(.panel, .ws, .main) .p-row, :is(.panel, .ws, .main) .slot, :is(.panel, .ws, .main) .miniweek div, :is(.panel, .ws, .main) .rc-sum div { background: #f7f6fb; }
:is(.panel, .ws, .main) .p-row.now { background: #fff0f6; }
:is(.panel, .ws, .main) .miniweek div b, :is(.panel, .ws, .main) .todo b, :is(.panel, .ws, .main) .locked-box b { color: var(--ink); }
:is(.panel, .ws, .main) .pt { background: #faf9fd; }
:is(.panel, .ws, .main) .g-btn.ghost { background: #efeef5; color: var(--ink); box-shadow: 0 6px 0 #d9d7e4; }
:is(.panel, .ws, .main) .g-btn.ghost.sm { box-shadow: 0 4px 0 #d9d7e4; }
:is(.panel, .ws, .main) .todo { border-color: rgba(28, 26, 41, .22); }
:is(.panel, .ws, .main) .bar .bt { background: #ecebf3; }
:is(.panel, .ws, .main) .ev .ic { background: #f1f0f6; }
:is(.panel, .ws, .main) .seg { background: #f1f0f6; }
:is(.panel, .ws, .main) .p-warn { background: #fff3d6; color: #8a4b00; }
:is(.panel, .ws, .main) .chip, :is(.panel, .ws, .main) .pill { background: #efeef5; color: #4a4760; }
:is(.panel, .ws, .main) .chip.go, :is(.panel, .ws, .main) .pill.go { background: var(--pink); color: #fff; box-shadow: none; }
:is(.panel, .ws, .main) .chip.pause, :is(.panel, .ws, .main) .chip.warn, :is(.panel, .ws, .main) .pill.pause { background: #fff1d1; color: #9a5800; }
:is(.panel, .ws, .main) .chip.exam, :is(.panel, .ws, .main) .chip.violet, :is(.panel, .ws, .main) .pill.exam { background: #eee8ff; color: #5b2fc0; }
:is(.panel, .ws, .main) .chip.wait, :is(.panel, .ws, .main) .chip.info, :is(.panel, .ws, .main) .pill.wait { background: #e3edff; color: #1d4fbf; }
:is(.panel, .ws, .main) .chip.done, :is(.panel, .ws, .main) .chip.ok, :is(.panel, .ws, .main) .pill.done { background: #d9f5ee; color: #0b7a69; }
:is(.panel, .ws, .main) .chip.off, :is(.panel, .ws, .main) .pill.off { background: #dcf6e4; color: #15803d; }
:is(.panel, .ws, .main) .chip.bad { background: #fde3e3; color: #b42318; }
:is(.panel, .ws, .main) .tag.sec { background: #ffe3ef; color: #b0084d; }
:is(.panel, .ws, .main) .tag.mon { background: #fff1d1; color: #9a5800; }
:is(.panel, .ws, .main) .tag.info { background: #e3edff; color: #1d4fbf; }
:is(.panel, .ws, .main) .tag.dir { background: #eee8ff; color: #5b2fc0; }
:is(.panel, .ws, .main) .act .ck { border-color: #b9b6c9; }
:is(.panel, .ws, .main) .alr.ok .tx b { color: #15803d; }
:is(.panel, .ws, .main) .alr.warn .tx b { color: #9a5800; }
:is(.panel, .ws, .main) .alr.bad .tx b { color: #b42318; }
:is(.panel, .ws, .main) .mon2 .nm small.go { color: #c40a57; }
:is(.panel, .ws, .main) .mon2 .nm small.exam { color: #5b2fc0; }
:is(.panel, .ws, .main) .mon2 .nm small.pause { color: #9a5800; }
:is(.panel, .ws, .main) .mon2 .nm small.wait { color: #1d4fbf; }
:is(.panel, .ws, .main) .mon2 .nm small.done { color: #0b7a69; }
:is(.panel, .ws, .main) .mon2 .nm small.off { color: #15803d; }
:is(.panel, .ws, .main) .rc-t { background: #fff; border-color: rgba(28, 26, 41, .12); }
:is(.panel, .ws, .main) .rc-t.open { border-color: rgba(250, 20, 115, .45); }
:is(.panel, .ws, .main) .rc-th { background: linear-gradient(90deg, #ffe3ef, #f6f4fb); }
:is(.panel, .ws, .main) .rc-th:hover { background: linear-gradient(90deg, #ffd2e5, #efedf7); }
:is(.panel, .ws, .main) .rc-th b, :is(.panel, .ws, .main) .rc-th .hh { color: var(--ink); }
:is(.panel, .ws, .main) .rc-th .ar { color: var(--pink); }
:is(.panel, .ws, .main) .rc-th .cnt { color: #5a5670; }
:is(.panel, .ws, .main) .rc-th .pt { display: inline-block; background: #fff; border: 1px solid rgba(28, 26, 41, .1); border-radius: 99px; padding: 1px 8px; color: #4a4760; }
:is(.panel, .ws, .main) .rc-th .car-go { background: #fff; }
:is(.panel, .ws, .main) .rc-th .car-go:hover { background: #ffe3ef; }
:is(.panel, .ws, .main) .rc-l { background: #fff; border-top-color: var(--line); }
:is(.panel, .ws, .main) .rc-l:hover { background: #fff5f9; }
:is(.panel, .ws, .main) .rc-l.now { background: #fff0f6; }
:is(.panel, .ws, .main) .exm .dt { background: #fff; }
:is(.panel, .ws, .main) .exm .jm { color: var(--pink-ink); }
/* ---------- Examens : panneau « Voir tout » ---------- */
.xcal { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.xcal-h { display: flex; align-items: center; gap: 8px; }
.xcal-h b { font: 700 15px Poppins, sans-serif; text-transform: capitalize; }
.xcal-h .muted { margin-right: auto; }
.xcal-h button { border: 1px solid var(--line-2); background: #f6f5fa; color: var(--ink); border-radius: 9px; min-width: 30px; height: 30px; cursor: pointer; font-size: 15px; }
.xcal-h button:hover { border-color: var(--pink); color: var(--pink); }
.xcal-h .xcal-t { font-size: 12px; padding: 0 10px; }
.xcal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.xc-h { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.xc-d { min-height: 44px; border-radius: 9px; background: #f7f6fb; border: 1px solid transparent; padding: 4px 5px; display: grid; align-content: space-between; font-size: 12px; }
.xc-d b { font-weight: 600; color: var(--ink-2); }
.xc-d.past { opacity: .6; }
.xc-d.has { background: #fff0f6; border-color: rgba(250, 20, 115, .35); cursor: pointer; opacity: 1; }
.xc-d.has b { color: var(--ink); font-weight: 800; }
.xc-d.has:hover { border-color: var(--pink); }
.xc-d.today { box-shadow: inset 0 0 0 2px var(--pink); }
.xc-d.sel { background: var(--pink); border-color: var(--pink); }
.xc-d.sel b { color: #fff; }
.xc-d i { display: flex; gap: 3px; flex-wrap: wrap; }
.xc-d s, .xcal-k s { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.xc-d.sel s { box-shadow: 0 0 0 1.5px #fff; }
s.up { background: var(--pink); }
s.unpaid { background: #f59e0b; }
s.ok { background: #16a34a; }
s.bad { background: #dc2626; }
s.past { background: #a3a1b5; }
.xcal-k { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.xcal-k span { display: inline-flex; align-items: center; gap: 5px; }
.ex-day { border: 1px solid rgba(250, 20, 115, .35); border-radius: 12px; padding: 4px 10px 6px; background: #fff7fa; }
.ex-day-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.ex-day-h b { text-transform: capitalize; font-size: 13px; }
.ex-day-h button { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; }
.ex-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ex-tabs button { border: 1px solid var(--line-2); background: #f7f6fb; border-radius: 12px; padding: 8px; cursor: pointer; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); display: grid; gap: 2px; text-align: left; line-height: 1.2; }
.ex-tabs button b { font: 800 18px Poppins, sans-serif; color: var(--ink); }
.ex-tabs button:hover { border-color: var(--pink); }
.ex-tabs button.warn { background: #fff8e8; border-color: rgba(245, 158, 11, .6); }
.ex-tabs button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.ex-tabs button.on b { color: #fff; }
.ex-list .exm, .ex-day .exm { background: #f7f6fb; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.ex-day .exm { background: #fff; margin-bottom: 5px; }
.ex-list .exm:hover, .ex-day .exm:hover { border-color: rgba(250, 20, 115, .5); }
.ex-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ex-tiles div { background: #f7f6fb; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; display: grid; gap: 1px; }
.ex-tiles div:hover { border-color: var(--pink); }
.ex-tiles div.warn { background: #fff8e8; border-color: rgba(245, 158, 11, .55); }
.ex-tiles b { font: 700 17px Poppins, sans-serif; }
.ex-tiles span { font-size: 11px; color: var(--muted); line-height: 1.2; }
.ex-box { display: grid; }
.ex-note { font-size: 11px; }
@media (max-width: 760px) { .ex-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xc-d { min-height: 36px; padding: 3px; } .xcal-h .muted { display: none; } .xcal-h b { margin-right: auto; } }
/* ---------- Assistant IA + messages ---------- */
.ai-btn { gap: 6px; font: 700 12.5px Inter, sans-serif; background: linear-gradient(90deg, rgba(250, 20, 115, .28), rgba(139, 92, 246, .28)); border-color: rgba(250, 20, 115, .5); }
.ai-btn span { white-space: nowrap; }
.nav-n { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--pink); color: #fff; font: 800 10px/18px Inter, sans-serif; min-width: 18px; height: 18px; border-radius: 99px; padding: 0 5px; text-align: center; box-shadow: 0 0 10px rgba(250, 20, 115, .6); }
body.nav-mini .nav-n { right: 6px; top: 6px; transform: none; }
.toast.click { pointer-events: auto; cursor: pointer; }
.toast.click:hover { border-color: var(--pink); }
.chat { --ink: #1c1a29; --ink-2: #4a4760; --muted: #77748c; --line: rgba(28, 26, 41, .08); --line-2: rgba(28, 26, 41, .15); position: fixed; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 92px)); background: #fff; color: var(--ink); border-radius: 18px; border: 1px solid rgba(250, 20, 115, .35); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 30px rgba(250, 20, 115, .18); z-index: 58; display: flex; flex-direction: column; overflow: hidden; animation: pin .22s ease-out; }
.ch-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; background: linear-gradient(90deg, #ffe3ef, #f1ecff); }
.ch-tabs { display: flex; gap: 4px; flex: 1; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 3px; }
.ch-tabs button { all: unset; flex: 1; text-align: center; padding: 7px 8px; border-radius: 9px; font: 700 13px Poppins, Inter, sans-serif; color: var(--ink-2); cursor: pointer; position: relative; }
.ch-tabs button.on { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(250, 20, 115, .35); }
.ch-tabs button b { position: absolute; top: -5px; right: 6px; background: #ef4444; color: #fff; font: 800 10px/17px Inter, sans-serif; min-width: 17px; height: 17px; border-radius: 99px; padding: 0 4px; }
.ch-x { border: 0; background: #fff; color: var(--ink); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 14px; flex: none; }
.ch-x:hover { color: var(--pink); }
.ch-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 12px 7px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ch-mode { font-weight: 600; color: var(--ink-2); }
.ch-role { margin-left: auto; }
.ch-sw { display: inline-flex; align-items: center; gap: 4px; background: #fff7d6; border: 1px solid #f3d36b; border-radius: 99px; padding: 2px 3px 2px 9px; color: #6b5300; font-weight: 600; }
.ch-sw button { all: unset; padding: 2px 8px; border-radius: 99px; cursor: pointer; font-weight: 700; }
.ch-sw button.on { background: #facc15; color: #1c1a29; }
.ch-notif { all: unset; cursor: pointer; font-weight: 700; color: var(--pink-ink); }
.ch-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7f6fb; overscroll-behavior: contain; }
.ch-m { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: #fff; border: 1px solid var(--line); align-self: flex-start; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); overflow-wrap: anywhere; }
.ch-m.me { align-self: flex-end; background: var(--pink); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; }
.ch-m.bot, .ch-m.them { border-bottom-left-radius: 5px; }
.ch-who { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.ch-m.me .ch-who { color: #ffd6e7; }
.ch-m .tx p { margin: 0 0 4px; }
.ch-m .tx p:last-child { margin-bottom: 0; }
.ch-m .tx ul { margin: 4px 0; padding-left: 18px; display: grid; gap: 2px; }
.ch-m .tx b { font-weight: 700; }
.ch-m .tx a[data-sid] { color: var(--pink-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ch-m .tx .red { color: #b42318; }
.ch-m .mut, .ch-m .tx .mut { color: var(--muted); font-size: 11.5px; }
.ch-m.pending .tx::after { content: "• • •"; letter-spacing: 2px; color: var(--muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.ch-card { display: grid; gap: 2px; border: 1px solid rgba(250, 20, 115, .3); background: #fff7fa; border-radius: 12px; padding: 8px 10px; margin: 4px 0; cursor: pointer; font-size: 12.5px; }
.ch-card b { font: 700 14px Poppins, sans-serif; }
.ch-card i { font-style: normal; color: var(--pink-ink); font-weight: 700; font-size: 12px; }
.ch-card:hover { border-color: var(--pink); }
.ch-sep { align-self: center; font-size: 11px; font-weight: 700; color: var(--muted); background: #ecebf3; border-radius: 99px; padding: 2px 10px; text-transform: capitalize; margin: 4px 0; }
.ch-empty { margin: auto; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.ch-sugg { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 2px; scrollbar-width: none; flex: none; }
.ch-sugg::-webkit-scrollbar { display: none; }
.ch-sugg button { all: unset; white-space: nowrap; background: #fff0f6; color: var(--pink-ink); border: 1px solid rgba(250, 20, 115, .3); border-radius: 99px; padding: 5px 10px; font: 600 12px Inter, sans-serif; cursor: pointer; }
.ch-sugg button:hover { background: var(--pink); color: #fff; }
.ch-form { display: flex; gap: 8px; padding: 8px 10px 10px; flex: none; }
.ch-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font: 500 14px Inter, sans-serif; color: var(--ink); background: #fff; outline: none; }
.ch-form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 20, 115, .15); }
.ch-form .g-btn { padding: 0 14px; }
@media (max-width: 1180px) { .ai-btn span { display: none; } }
@media (max-width: 760px) {
.chat { left: 0; right: 0; bottom: 0; width: auto; height: 88dvh; border-radius: 18px 18px 0 0; z-index: 76; }
.ch-role { margin-left: 0; }
.ch-form input { font-size: 16px; }
}
body:has(#chat:not([hidden])) .testband { display: none; }
/* ---------- Discussion + assistant en haut des espaces ---------- */
.pchat { border: 1px solid rgba(250, 20, 115, .3); border-radius: 14px; background: #fff; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(250, 20, 115, .08); }
.pc-tabs { display: flex; gap: 4px; padding: 6px; background: linear-gradient(90deg, #ffe3ef, #f1ecff); align-items: center; border-radius: 13px 13px 0 0; }
.pc-tabs button { all: unset; padding: 6px 10px; border-radius: 9px; font: 700 12.5px Poppins, Inter, sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.pc-tabs button:hover { background: rgba(255, 255, 255, .7); }
.pc-tabs button.on { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(250, 20, 115, .3); }
.pc-tabs .pc-big { margin-left: auto; background: #fff; color: var(--ink); font-size: 14px; padding: 4px 9px; }
.pc-ts { display: none; }
.pc-n { background: #ef4444; color: #fff; font: 800 10px/17px Inter, sans-serif; min-width: 17px; height: 17px; border-radius: 99px; padding: 0 4px; text-align: center; }
.pc-body { height: 230px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; background: #f7f6fb; overscroll-behavior: contain; }
.pc-body .ch-m { font-size: 13px; max-width: 92%; }
.pc-sugg { display: flex; gap: 6px; overflow-x: auto; padding: 7px 8px 0; scrollbar-width: none; }
.pc-sugg::-webkit-scrollbar { display: none; }
.pc-sugg button { all: unset; white-space: nowrap; background: #fff0f6; color: var(--pink-ink); border: 1px solid rgba(250, 20, 115, .3); border-radius: 99px; padding: 4px 10px; font: 600 11.5px Inter, sans-serif; cursor: pointer; }
.pc-sugg button:hover { background: var(--pink); color: #fff; }
.pc-sugg button.clr { background: #f1f0f6; color: var(--muted); border-color: transparent; }
.pc-form { display: flex; gap: 6px; padding: 8px; border-radius: 0 0 13px 13px; background: #fff; }
.pc-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 11px; font: 500 13.5px Inter, sans-serif; color: var(--ink); background: #fff; outline: none; }
.pc-form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 20, 115, .15); }
.pc-form .g-btn { padding: 0 13px; }
@media (max-width: 760px) { .pc-tt { display: none; } .pc-ts { display: inline; } .pc-body { height: 200px; } .pc-form input { font-size: 16px; } }
.panel { grid-template-columns: minmax(0, 1fr); }
.pchat, .pc-body, .pc-sugg { min-width: 0; }
/* petits logos Assistant / Discussion en haut des espaces */
.p-icons { position: absolute; top: 10px; right: 48px; display: flex; gap: 6px; }
.p-icons button { position: relative; width: 32px; height: 30px; border-radius: 10px; border: 1px solid rgba(250, 20, 115, .3); background: #fff0f6; cursor: pointer; font-size: 15px; display: grid; place-items: center; padding: 0; }
.p-icons button:hover { background: var(--pink); border-color: var(--pink); }
.p-icons .pi-n { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; font: 800 10px/17px Inter, sans-serif; min-width: 17px; height: 17px; border-radius: 99px; padding: 0 4px; box-shadow: 0 0 0 2px #fff; }
.ai-btn { padding: 0 10px; }
@media (min-width: 1300px) {
body:has(#panel:not([hidden]):not(.wide)) .chat { right: 448px; }
body:has(#panel.wide:not([hidden])) .chat { right: 648px; }
}
/* ---------- Pages dédiées Secrétariat / Direction ---------- */
.ws { --ink: #1c1a29; --ink-2: #4a4760; --muted: #77748c; --line: rgba(28, 26, 41, .08); --line-2: rgba(28, 26, 41, .15); position: fixed; inset: 0; z-index: 35; background: #f4f3f8; color: var(--ink); display: flex; flex-direction: column; animation: wsIn .32s ease-out; }
@keyframes wsIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
body.ws-on .testband { top: auto; bottom: 8px; left: 8px; transform: none; font-size: 10px; opacity: .85; }
.ws-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(28, 26, 41, .05); flex: none; }
.ws-ic { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; color: var(--ink); flex: none; padding: 0; }
.ws-ic:hover { border-color: var(--pink); background: #fff0f6; }
.ws-menu { font-size: 21px; background: var(--ink); color: #fff; border-color: var(--ink); }
.ws-menu:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.ws-ai { background: linear-gradient(135deg, #fff0f6, #f1ecff); }
.pi-n { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; font: 800 10px/17px Inter, sans-serif; min-width: 17px; height: 17px; border-radius: 99px; padding: 0 4px; box-shadow: 0 0 0 2px #fff; text-align: center; }
.ws-ttl { margin-left: 8px; min-width: 0; flex: 1; }
.ws-ttl h2 { font: 800 19px/1.15 Poppins, sans-serif; white-space: nowrap; }
.ws-ttl small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-back { border: 0; background: #f1f0f6; color: var(--ink); border-radius: 12px; height: 42px; padding: 0 14px; font: 700 13px Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ws-back:hover { background: var(--pink); color: #fff; }
.ws-main { flex: 1; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.ws-body { max-width: 1160px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 18px 20px 22px; box-shadow: 0 6px 24px rgba(28, 26, 41, .06); display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.ws-body h3 { font-size: 20px; }
.ws-body h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.ws-body .p-close { display: none; }
.ws-scrim { position: fixed; inset: 0; background: rgba(20, 18, 30, .35); z-index: 36; }
.ws-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: #fff; z-index: 37; box-shadow: 20px 0 50px rgba(0, 0, 0, .2); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; }
.ws-nav.open { transform: none; }
.wn-h { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.wn-h b { font: 800 18px Poppins, sans-serif; display: block; }
.wn-h b em { font-style: normal; color: var(--pink); }
.wn-h small { color: var(--muted); font-size: 12px; }
.wn-h .wn-x { margin-left: auto; border: 0; background: #f1f0f6; border-radius: 10px; width: 32px; height: 32px; cursor: pointer; }
.ws-nav button[data-wsgo] { all: unset; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font: 600 14px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.ws-nav button[data-wsgo] i { font-style: normal; width: 22px; text-align: center; font-size: 16px; }
.ws-nav button[data-wsgo]:hover { background: #f6f5fa; color: var(--ink); }
.ws-nav button[data-wsgo].on { background: linear-gradient(90deg, var(--pink), #ff3d8f); color: #fff; box-shadow: 0 6px 18px rgba(250, 20, 115, .3); }
.wn-sep { height: 1px; background: var(--line); margin: 8px 6px; flex: none; }
.wn-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
/* barre de période */
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pnav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; min-width: 250px; }
.pnav button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.pnav button:hover { border-color: var(--pink); color: var(--pink); background: #fff0f6; }
.plab { text-align: center; min-width: 190px; display: grid; }
.plab b { font: 800 17px Poppins, sans-serif; }
.plab small { color: var(--muted); font-size: 12px; }
.pend { display: flex; align-items: center; gap: 8px; }
.pcal { position: relative; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; cursor: pointer; font-size: 16px; overflow: hidden; background: #fff; }
.pcal:hover { border-color: var(--pink); }
.pcal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.pbreak { flex-basis: 100%; height: 0; }
.vseg { margin: 0 auto; }
.rc-sum.money div { background: #f0fbf6; border-color: rgba(21, 128, 61, .15); }
.rc-sum.money b { color: #15803d; }
/* planning */
.pl-day { display: grid; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.pl-row { display: grid; grid-template-columns: 180px minmax(620px, 1fr); gap: 10px; align-items: stretch; }
.pl-head .pl-track { height: 18px; background: none; border: 0; }
.pl-who { display: grid; align-content: center; gap: 1px; padding: 6px 10px; background: linear-gradient(90deg, #ffe3ef, #f6f4fb); border-radius: 10px; cursor: pointer; min-width: 0; }
.pl-who b { font: 700 13.5px Poppins, sans-serif; }
.pl-who small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-track { position: relative; height: 58px; background: #f7f6fb; border-radius: 10px; border: 1px solid var(--line); }
.pl-g { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(28, 26, 41, .07); }
.pl-h { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); font-weight: 700; }
.pl-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #ef4444; z-index: 3; border-radius: 2px; }
.pl-b { position: absolute; top: 5px; bottom: 5px; border-radius: 8px; padding: 3px 6px; overflow: hidden; display: grid; align-content: center; font-size: 11px; line-height: 1.25; cursor: pointer; border: 1px solid transparent; z-index: 2; min-width: 4px; box-sizing: border-box; }
.pl-b b { font-weight: 800; font-size: 10.5px; white-space: nowrap; }
.pl-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-b:hover { filter: brightness(.96); z-index: 4; }
.pl-b.done, .pl-key .done::before { background: #fbd3e5; color: #8a1048; }
.pl-b.now, .pl-key .now::before { background: var(--pink); color: #fff; }
.pl-b.now { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(250, 20, 115, .5); }
.pl-b.next, .pl-key .next::before { background: #fff; border: 1px solid var(--pink); color: #b0084d; }
.pl-b.exam, .pl-key .exam::before { background: #ede7ff; border: 1px solid #8b5cf6; color: #5b2fc0; }
.pl-b.free, .pl-key .free::before { background: repeating-linear-gradient(45deg, #fff, #fff 5px, #ecebf3 5px, #ecebf3 10px); border: 1px dashed #b9b6c9; color: var(--muted); cursor: default; }
.pl-b.off, .pl-key .off::before { background: repeating-linear-gradient(45deg, #fde3e3, #fde3e3 5px, #fff 5px, #fff 10px); color: #b42318; }
.pl-b.off { opacity: .8; text-decoration: line-through; }
.pl-none { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.pl-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--muted); }
.pl-key span::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; box-sizing: border-box; }
.pl-wk { overflow-x: auto; }
.pl-wk table { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 700px; table-layout: fixed; }
.pl-wk tr > :first-child { width: 150px; }
.pl-wk th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: capitalize; padding: 4px; cursor: pointer; }
.pl-wk th.today { color: var(--pink); }
.pl-wk .pl-tn { text-align: left; color: var(--ink); font: 700 13px Poppins, sans-serif; background: linear-gradient(90deg, #ffe3ef, #f6f4fb); border-radius: 10px; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.pl-wk td { background: #f7f6fb; border-radius: 10px; padding: 7px 8px 10px; vertical-align: top; cursor: pointer; position: relative; font-size: 12px; height: 58px; }
.pl-wk td.on { background: #fff0f6; }
.pl-wk td.today { box-shadow: inset 0 0 0 2px var(--pink); }
.pl-wk td b { display: block; font: 700 14px Poppins, sans-serif; }
.pl-wk td small { color: var(--muted); font-size: 11px; }
.pl-wk td i { position: absolute; left: 8px; bottom: 6px; height: 3px; background: var(--pink); border-radius: 3px; max-width: calc(100% - 16px); }
.pl-wk td em { display: block; font-style: normal; font-size: 10.5px; color: #15803d; font-weight: 600; }
.pl-wk td .z { color: #c9c7d6; }
.pl-wk td.tot { background: #fff; border: 1px solid var(--line-2); cursor: default; }
.pl-wk tr.sum td { background: #fff; border: 1px solid var(--line); }
.pl-wk tr.sum .pl-tn { background: #f1f0f6; }
.pl-wk td:not(.tot):hover { outline: 2px solid rgba(250, 20, 115, .4); }
.pl-mo { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pm-h { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.pm-d { min-height: 66px; border-radius: 10px; padding: 6px; background: rgba(250, 20, 115, var(--a)); border: 1px solid var(--line); display: grid; align-content: start; gap: 1px; cursor: pointer; font-size: 11.5px; }
.pm-d:not(.on) { background: #f7f6fb; }
.pm-d b { font: 700 13px Poppins, sans-serif; }
.pm-d span { font-weight: 700; }
.pm-d small { color: var(--ink-2); font-size: 10.5px; }
.pm-d.today { box-shadow: inset 0 0 0 2px var(--pink); }
.pm-d:hover { border-color: var(--pink); }
@media (max-width: 760px) {
.ws-top { padding: 8px 10px; gap: 6px; }
.ws-ic { width: 38px; height: 38px; font-size: 16px; }
.ws-ttl { margin-left: 4px; }
.ws-ttl h2 { font-size: 16px; }
.ws-ttl small { font-size: 11px; }
.ws-back { padding: 0 11px; height: 38px; }
.ws-back span { display: none; }
.ws-main { padding: 8px; }
.ws-body { padding: 14px 12px 18px; border-radius: 14px; }
.pnav { order: -1; flex-basis: 100%; }
.plab { min-width: 0; flex: 1; }
.pend { margin-left: auto; }
.pl-row { grid-template-columns: 112px minmax(560px, 1fr); }
.pl-who small:last-child { display: none; }
.pm-d { min-height: 50px; padding: 4px; }
.pm-d small { display: none; }
}

/* ---------- Thème « blanc et noir » : page claire, menu et local 3D sombres ---------- */
body { background: #ecebf1; color: #1c1a29; }
.top, .main, .search-res { --ink: #1c1a29; --ink-2: #4a4760; --muted: #77748c; --line: rgba(28, 26, 41, .08); --line-2: rgba(28, 26, 41, .14); --card: #fff; }
.stage { --ink: #f4f4f8; --ink-2: #c9c9d6; --muted: #8c8ca3; --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); color: var(--ink); background: linear-gradient(180deg, #2c3a6b 0%, #5b5d9c 36%, #b07a9e 64%, #f0a37a 100%); }
.nav { background: linear-gradient(180deg, #17161d, #0c0c10); border-right-color: #000; color: #f4f4f8; }
.top { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(28, 26, 41, .05); color: var(--ink); backdrop-filter: none; }
.top .icon-btn, .top .clock, .top .who { background: #f4f3f8; color: var(--ink); border-color: var(--line-2); }
.top .icon-btn:hover { border-color: var(--pink); background: #fff0f6; }
.top .ai-btn { background: linear-gradient(90deg, #ffe3ef, #efe7ff); border-color: rgba(250, 20, 115, .35); }
.bell b { box-shadow: 0 0 0 2px #fff; }
.search input { background: #f4f3f8; color: var(--ink); }
.search-res { background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(28, 26, 41, .18); }
.search-res button:hover, .search-res button:focus { background: #fff0f6; }
.main { color: var(--ink); }
.brief { background: #fff; border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(28, 26, 41, .06); color: var(--ink); }
.br-hello { color: var(--ink-2); background: #f7f6fb; border-color: var(--line); }
.br-list li:hover { background: #fff0f6; }
.kpi { background: #fff; border-color: var(--line-2); box-shadow: 0 4px 14px rgba(28, 26, 41, .05); color: var(--ink); }
.kpi:hover { border-color: rgba(250, 20, 115, .5); box-shadow: 0 6px 18px rgba(250, 20, 115, .12); }
.kpi .ki { background: #fff0f6; box-shadow: inset 0 0 0 1px rgba(250, 20, 115, .25); }
.kpi em.up { color: #15803d; }
.kpi.alert { background: #fff5f5; border-color: rgba(239, 68, 68, .5); }
.card { background: #fff; border-color: var(--line-2); box-shadow: 0 4px 14px rgba(28, 26, 41, .05); color: var(--ink); }
.card h3 button:hover, .exm-foot:hover { color: var(--pink); }
.main .exm .jm { color: var(--pink-ink); }
.main .locked-box b { color: var(--ink); }
/* moniteur garé : « En pause » sous son nom */
.lbl.car.parked { display: grid; gap: 1px; border-radius: 10px; padding: 3px 9px 4px 7px; }
.lbl.car .cl-top { display: flex; align-items: center; gap: 6px; }
.lbl.car small.ps { font-size: 9.5px; font-weight: 600; color: #fcd34d; padding-left: 13px; }
@media (max-width: 760px) { .lbl.car small.ps { font-size: 8.5px; } }
/* ---------- Récapitulatif : l'essentiel ---------- */
.imp { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.imp-c { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; background: #fff; display: grid; gap: 4px; align-content: start; min-width: 0; box-shadow: 0 3px 10px rgba(28, 26, 41, .04); }
.imp-c.hot { border-color: rgba(250, 20, 115, .5); background: #fff7fa; }
.imp-c.warn { border-color: rgba(245, 158, 11, .5); background: #fffaf0; }
.imp-h { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.imp-h[data-act], .imp-h[data-crm], .imp-h[data-pchat] { cursor: pointer; }
.imp-h:hover b { color: var(--pink); }
.imp-i { font-size: 16px; }
.imp-h b { font: 700 13.5px Poppins, sans-serif; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-h em { font-style: normal; font: 800 13px Poppins, sans-serif; background: var(--pink); color: #fff; border-radius: 99px; padding: 1px 9px; }
.imp-h em.z { background: #ecebf3; color: var(--muted); }
.imp-h i { font-style: normal; color: var(--muted); }
.imp-l { font-size: 12.5px; padding: 4px 2px; border-radius: 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.imp-l[data-sid], .imp-l[data-tid], .imp-l[data-act], .imp-l[data-pchat] { cursor: pointer; }
.imp-l:hover { background: #f7f6fb; }
.imp-l .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.imp-l small { color: var(--muted); }
.imp-l .r { margin-left: auto; font-weight: 700; }
.imp-l .chip { font-size: 10px; padding: 1px 7px; }
.imp-none { font-size: 12px; color: var(--muted); padding: 4px 2px; }
.imp-foot { font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.imp-chips { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 4px; }
.imp-chips span { font-size: 11px; font-weight: 600; background: #f1f0f6; color: var(--ink-2); border-radius: 99px; padding: 2px 8px; cursor: pointer; }
.imp-chips span.warn { background: #fff1d1; color: #9a5800; }
.imp-chips span:hover { background: #ffe3ef; color: var(--pink-ink); }
@media (max-width: 760px) { .imp { grid-template-columns: 1fr; } }
/* ---- Notes & tâches ---- */
.wn-n { margin-left: auto; background: var(--pink); color: #fff; font: 800 11px/18px Inter, sans-serif; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 99px; text-align: center; }
.ws-nav button[data-wsgo].on .wn-n { background: #fff; color: var(--pink); }
.nt-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.nt-sum span { font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 11px; color: var(--ink-2); }
.nt-sum span.z { color: var(--muted); font-weight: 600; }
.nt-sum span.bad { background: #fff0f0; border-color: rgba(239, 68, 68, .45); color: #b42318; }
.nt-sum span.hot { background: #fff7fa; border-color: rgba(250, 20, 115, .45); color: var(--pink-ink); }
.nt-undo { display: flex; align-items: center; gap: 10px; background: #1c1a29; color: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; font-weight: 600; width: fit-content; }
.nt-undo button { border: 0; background: rgba(255, 255, 255, .15); color: #fff; font: 700 12px Inter, sans-serif; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.nt-new { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 12px; display: grid; gap: 9px; box-shadow: 0 4px 14px rgba(28, 26, 41, .05); margin-bottom: 14px; }
.nt-new.editing { border-color: rgba(250, 20, 115, .55); box-shadow: 0 0 0 3px rgba(250, 20, 115, .12); }
.nt-in { display: flex; gap: 8px; align-items: center; }
.nt-in input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; font: 500 14px Inter, sans-serif; color: var(--ink); background: #faf9fd; outline: none; }
.nt-in input:focus { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(250, 20, 115, .12); }
.nt-in .g-btn { flex: none; padding: 10px 16px; }
.nt-in input.shake { animation: ntShake .35s; border-color: #ef4444; }
@keyframes ntShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.nt-ph { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nt-ph:empty { display: none; }
.nt-sl { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.nt-ph button { border: 1px solid var(--line-2); background: #f6f5fa; color: var(--ink-2); font: 600 12px Inter, sans-serif; border-radius: 99px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.nt-ph button:hover { background: #ffe3ef; border-color: rgba(250, 20, 115, .35); color: var(--pink-ink); }
.nt-ph.sugg button { background: #eef3ff; border-color: #d4e0ff; color: #1d4fbf; white-space: normal; text-align: left; }
.nt-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-f { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.nt-f input, .nt-f select { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 9px; font: 500 12.5px Inter, sans-serif; color: var(--ink); background: #fff; outline: none; min-width: 0; }
.nt-f input[data-nt="stu"] { width: 210px; }
.nt-f input:focus, .nt-f select:focus { border-color: var(--pink); }
.nt-days button, .nt-star { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 600 12px Inter, sans-serif; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.nt-days button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.nt-days input[type="date"] { width: 132px; }
.nt-star.on { background: #fff4d6; border-color: #f5b400; color: #8a5a00; }
.nt-tip { font-size: 11.5px; color: var(--muted); }
.nt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.nt-col { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 12px 12px; min-width: 0; box-shadow: 0 3px 10px rgba(28, 26, 41, .04); }
.nt-col.auto { background: #fbfaff; }
.nt-ch { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; border-bottom: 1px solid var(--line); }
.nt-ch b { font: 700 15px Poppins, sans-serif; flex: 1; min-width: 0; }
.nt-ch em, .nt-gh em { font-style: normal; font: 800 12px Poppins, sans-serif; background: var(--pink); color: #fff; border-radius: 99px; padding: 1px 9px; }
.nt-gh { display: flex; align-items: center; gap: 8px; font: 700 12px Inter, sans-serif; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; margin: 12px 2px 4px; }
.nt-gh em { background: #ecebf3; color: var(--ink-2); font-size: 11px; padding: 0 8px; }
.nt-gh.late { color: #b42318; }
.nt-gh.late em { background: #fde2e2; color: #b42318; }
.nt-gh.today { color: var(--pink-ink); }
.nt-hint { font-size: 11.5px; color: var(--muted); padding: 8px 2px 0; }
.nt-row, .at-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); border-radius: 10px; }
.nt-gh + .nt-row, .nt-gh + .at-row { border-top: 0; }
.nt-row:hover, .at-row:hover { background: #f8f7fc; }
.nt-row.prio { background: #fffbef; }
.nt-row.edit { background: #fff0f6; }
.nt-ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfcbe0; background: #fff; color: transparent; font: 800 12px/1 Inter, sans-serif; cursor: pointer; margin-top: 1px; display: grid; place-items: center; padding: 0; }
.nt-ck:hover { border-color: #14b8a6; color: #14b8a6; }
.nt-row.done .nt-ck { background: #14b8a6; border-color: #14b8a6; color: #fff; }
.at-row.prio .nt-ck { border-color: var(--pink); }
.nt-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nt-tx[data-sid], .nt-tx[data-tid], .nt-tx[data-act] { cursor: pointer; }
.nt-t { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.nt-tx[data-sid]:hover .nt-t, .nt-tx[data-tid]:hover .nt-t, .nt-tx[data-act]:hover .nt-t { color: var(--pink); }
.nt-row.done .nt-t { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.nt-st { color: #f5a400; }
.nt-tx > small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.nt-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; }
.nt-meta small { color: var(--muted); }
.nt-stu { color: #1d4fbf; font-weight: 700; cursor: pointer; text-decoration: none; }
.nt-stu:hover { text-decoration: underline; }
.nt-due { background: #efeef5; color: var(--ink-2); border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.nt-due.today { background: #ffe3ef; color: var(--pink-ink); }
.nt-due.late { background: #fde2e2; color: #b42318; }
.nt-from { background: #eee8ff; color: #5b2fc0; border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.nt-from.out { background: #e3edff; color: #1d4fbf; }
.nt-auto { background: #e6f7f4; color: #0f766e; border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.nt-act { display: flex; gap: 4px; flex: none; align-items: center; opacity: .55; transition: opacity .15s; }
.nt-row:hover .nt-act, .at-row:hover .nt-act, .nt-act:focus-within { opacity: 1; }
.nt-act button, .nt-dl { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 4px 6px; cursor: pointer; font: 600 12px Inter, sans-serif; color: var(--ink-2); position: relative; line-height: 1.2; }
.nt-act button:hover, .nt-dl:hover { background: #fff; border-color: var(--line-2); }
.nt-act button.on { color: #f5a400; }
.at-row .nt-act button { border-color: var(--line-2); background: #fff; white-space: nowrap; }
.at-row .nt-act button:hover { border-color: rgba(250, 20, 115, .4); color: var(--pink-ink); }
.nt-dl input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.nt-more { border: 0; background: transparent; color: var(--pink-ink); font: 700 12px Inter, sans-serif; padding: 8px 4px 2px; cursor: pointer; }
.nt-more.fold { color: var(--ink-2); display: block; margin-top: 8px; }
.nt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); padding-top: 10px; margin-top: 8px; border-top: 1px dashed var(--line-2); }
.nt-foot button { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 3px 8px; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; margin-left: auto; }
.imp-add input { width: 100%; border: 1px dashed var(--line-2); border-radius: 10px; padding: 7px 9px; font: 500 12.5px Inter, sans-serif; color: var(--ink); background: #faf9fd; outline: none; margin-top: 4px; }
.imp-add input:focus { border-style: solid; border-color: var(--pink); background: #fff; }
.imp-bot { flex: none; }
@media (max-width: 900px) { .nt-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
.nt-in { flex-wrap: wrap; }
.nt-in input { flex-basis: 100%; }
.nt-in .g-btn { flex: 1; }
.nt-f input[data-nt="stu"] { width: 100%; }
.nt-f:first-child { flex: 1 1 100%; }
.nt-act { opacity: 1; }
.at-row { flex-wrap: wrap; }
.at-row .nt-act { width: 100%; padding-left: 34px; }
}
.imp-l .imp-tx { flex: 1; min-width: 0; }
.imp-l .imp-bot { width: 18px; text-align: center; }
@media (max-width: 760px) {
.nt-ph { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
.nt-ph::-webkit-scrollbar { display: none; }
.nt-ph.sugg button { white-space: nowrap; }
.nt-tip { display: none; }
}
.nt-sl { white-space: nowrap; flex: none; }
/* ---- Places d'examen du mois ---- */
.exq { border: 1px solid var(--line-2); background: #fff; border-radius: 16px; padding: 12px 14px; margin: 10px 0 12px; display: grid; gap: 10px; box-shadow: 0 3px 10px rgba(28, 26, 41, .04); }
.exq-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.exq-h b { font: 700 15px Poppins, sans-serif; }
.exq-h small { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.exq-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.exq-c { background: #f7f6fb; border-radius: 12px; padding: 9px 10px; display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.exq-c > span { font: 700 11.5px Inter, sans-serif; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.exq-c em { font-style: normal; font-size: 11px; color: var(--muted); }
.exq-n { display: flex; align-items: center; gap: 6px; }
.exq-n button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font: 700 17px/1 Inter, sans-serif; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.exq-n button:hover { border-color: var(--pink); color: var(--pink); }
.exq-n b { font: 800 26px/1 Poppins, sans-serif; min-width: 40px; }
.exq-n input { width: 64px; text-align: center; font: 800 24px/1 Poppins, sans-serif; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px 2px; background: #fff; outline: none; -moz-appearance: textfield; }
.exq-n input::-webkit-outer-spin-button, .exq-n input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.exq-n input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 20, 115, .12); }
.exq-n input::placeholder { color: #c4c1d4; }
.exq-left { font: 800 30px/1 Poppins, sans-serif; color: #0f766e; }
.exq-c.left { background: #e9f8f5; }
.exq.low .exq-c.left { background: #fff4dc; } .exq.low .exq-left { color: #9a5800; }
.exq.full .exq-c.left, .exq.over .exq-c.left { background: #fde8e8; } .exq.full .exq-left, .exq.over .exq-left { color: #b42318; }
.exq.unset .exq-c.left { background: #f1f0f6; } .exq.unset .exq-left { color: var(--muted); }
.exq.unset .exq-n input { border-color: var(--pink); border-style: dashed; }
.exq-bar { height: 8px; border-radius: 99px; background: #ecebf3; overflow: hidden; }
.exq-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #14b8a6, #22c55e); }
.exq.low .exq-bar i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.exq.full .exq-bar i, .exq.over .exq-bar i { background: linear-gradient(90deg, #ef4444, var(--pink)); }
.exq-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.exq-f button { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 4px 9px; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.exq-f button:first-of-type { margin-left: auto; }
.exq-f button:hover { border-color: var(--pink); color: var(--pink-ink); }
.exq-mini { font-size: 12px; font-weight: 600; color: var(--ink-2); background: #f6f5fa; border-radius: 10px; padding: 6px 10px; margin: 2px 0 6px; cursor: pointer; }
.exq-mini:hover { background: #ffe3ef; color: var(--pink-ink); }
@media (max-width: 560px) {
.exq-g { gap: 6px; }
.exq-c { padding: 8px 4px; }
.exq-n { gap: 3px; }
.exq-n button { width: 26px; height: 26px; font-size: 15px; }
.exq-n input { width: 46px; font-size: 20px; }
.exq-n b { font-size: 22px; min-width: 26px; }
.exq-c em { font-size: 10px; }
.exq-c > span { font-size: 10px; }
}
/* places par centre */
.exq-big { font: 800 28px/1 Poppins, sans-serif; color: var(--ink); }
.exq-t { display: grid; gap: 4px; }
.exq-r { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(118px, 1fr) minmax(118px, 1fr) 70px 58px; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; background: #faf9fd; border: 1px solid var(--line); }
.exq-r.head { background: transparent; border: 0; padding: 2px 8px; font: 700 11px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.exq-r.head span:nth-child(n+2) { text-align: center; }
.exq-r .exq-n { justify-content: center; }
.exq-r .exq-n input { width: 54px; font-size: 19px; }
.exq-r .exq-n b { font-size: 19px; min-width: 30px; text-align: center; }
.exq-r .exq-n b sup { font-size: 10px; color: var(--pink); margin-left: 1px; }
.exq-r .exq-n button { width: 26px; height: 26px; font-size: 15px; }
.exq-cn { display: grid; min-width: 0; }
.exq-cn b { font: 700 13.5px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exq-cn small { font-size: 11px; color: var(--muted); }
.exq-rl { text-align: center; }
.exq-rl b { display: inline-block; min-width: 40px; font: 800 18px/1.5 Poppins, sans-serif; border-radius: 10px; padding: 1px 8px; background: #e9f8f5; color: #0f766e; }
.exq-r.low .exq-rl b { background: #fff4dc; color: #9a5800; }
.exq-r.full .exq-rl b, .exq-r.over .exq-rl b { background: #fde8e8; color: #b42318; }
.exq-r.unset .exq-rl b { background: #f1f0f6; color: var(--muted); }
.exq-r.unset .exq-n input { border-color: var(--pink); border-style: dashed; }
.exq-rx { display: flex; gap: 2px; justify-content: flex-end; }
.exq-rx button { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 4px; border-radius: 8px; opacity: .6; }
.exq-rx button:hover { opacity: 1; background: #fff; }
.exq-empty { font-size: 12.5px; color: var(--muted); padding: 6px 8px; }
.exq-add { display: flex; gap: 6px; margin-top: 2px; }
.exq-add input { flex: 1; min-width: 0; border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 10px; font: 500 13px Inter, sans-serif; color: var(--ink); background: #fff; outline: none; }
.exq-add input:focus { border-style: solid; border-color: var(--pink); }
.exq-add button { border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 0 12px; font: 700 12.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.exq-add button:hover { border-color: var(--pink); color: var(--pink-ink); }
@media (max-width: 640px) {
.exq-r { grid-template-columns: 1fr 1fr 60px; row-gap: 6px; }
.exq-r.head { display: none; }
.exq-cn { grid-column: 1 / 3; }
.exq-rx { grid-column: 3; grid-row: 1; }
.exq-r .exq-n { flex-direction: row; }
.exq-r .exq-n::before { font: 700 9.5px Inter, sans-serif; color: var(--muted); text-transform: uppercase; margin-right: 2px; }
.exq-r .exq-n:nth-of-type(2)::before { content: "Poss."; }
.exq-r .exq-n:nth-of-type(3)::before { content: "Obt."; }
.exq-r .exq-n input { width: 44px; font-size: 17px; }
.exq-rl { grid-column: 3; grid-row: 2; }
.exq-big { font-size: 22px; }
}
.exq-hid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); padding: 2px 2px 0; }
.exq-hid button { border: 1px dashed var(--line-2); background: transparent; border-radius: 99px; padding: 3px 10px; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.exq-hid button:hover { border-color: var(--pink); color: var(--pink-ink); }
.exq-hid small { color: var(--muted); font-weight: 500; }
/* ---- Élèves (liste) ---- */
.stu-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.stu-q { flex: 1 1 280px; min-width: 0; }
.stu-q input { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font: 500 14px Inter, sans-serif; color: var(--ink); background: #fff; outline: none; }
.stu-q input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 20, 115, .12); }
.stu-bar select { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: 600 12.5px Inter, sans-serif; color: var(--ink-2); background: #fff; max-width: 220px; }
.stu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.stu-chips button { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 600 12px Inter, sans-serif; border-radius: 99px; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.stu-chips button b { background: #efeef5; color: var(--ink-2); border-radius: 99px; padding: 0 7px; font-size: 11px; }
.stu-chips button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.stu-chips button.on b { background: rgba(255, 255, 255, .25); color: #fff; }
.stu-chips button.clr { border-style: dashed; }
.stu-cnt { font-size: 12.5px; color: var(--ink-2); margin: 2px 2px 8px; }
.stu-cnt button { border: 0; background: none; color: var(--pink-ink); font: 600 12px Inter, sans-serif; cursor: pointer; padding: 0; text-decoration: underline; }
.stu-t { display: grid; gap: 4px; }
.stu-r { display: grid; grid-template-columns: minmax(0, 2fr) 90px minmax(0, 1.4fr) 110px minmax(0, 1.3fr) 130px 92px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.stu-r:hover { border-color: rgba(250, 20, 115, .4); box-shadow: 0 4px 12px rgba(28, 26, 41, .06); }
.stu-r.off { opacity: .65; }
.stu-r.head { background: transparent; border: 0; cursor: default; padding: 2px 10px; font: 700 11px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; box-shadow: none; }
.stu-r.head [data-stusort] { cursor: pointer; }
.stu-r.head [data-stusort]:hover, .stu-r.head .on { color: var(--pink-ink); }
.stu-r > div { min-width: 0; }
.stu-r small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-n { display: flex; align-items: center; gap: 10px; }
.stu-n > div { min-width: 0; }
.stu-n b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-n b .chip { font-size: 10px; padding: 1px 6px; vertical-align: middle; }
.stu-av, .sp-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffe3ef, #eee8ff); color: var(--pink-ink); font: 800 12.5px Poppins, sans-serif; }
.stu-c b { font: 800 15px Poppins, sans-serif; color: #0f766e; }
.stu-c.warn b { color: #9a5800; }
.stu-c.bad b { color: #b42318; }
.stu-u b, .stu-h b { font-size: 13px; }
.stu-e .chip { font-size: 11px; white-space: nowrap; }
.stu-p { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.stu-d { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mut { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) {
.stu-r { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); row-gap: 4px; }
.stu-r.head { display: none; }
.stu-n { grid-column: 1 / 3; }
.stu-c { grid-column: 3; grid-row: 1; text-align: right; }
.stu-u { grid-column: 1; }
.stu-e { grid-column: 2 / 4; text-align: right; }
.stu-h, .stu-p, .stu-d { display: none; }
}
/* ---- Fiche élève ---- */
.stu-back { border: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 12px; font: 700 12.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; margin-bottom: 10px; }
.stu-back:hover { border-color: var(--pink); color: var(--pink-ink); }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.sp-av { width: 56px; height: 56px; font-size: 19px; }
.sp-id { flex: 1 1 240px; min-width: 0; }
.sp-id h3 { margin: 0; font: 800 20px Poppins, sans-serif; }
.sp-id > small { color: var(--muted); font-size: 12.5px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sp-tags .chip { font-size: 11px; }
.sp-act { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-act a { text-decoration: none; }
.sp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.sp-tiles > div { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 3px; min-width: 0; }
.sp-tiles span { font: 700 11px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sp-tiles b { font: 800 22px Poppins, sans-serif; }
.sp-tiles b.sp-ex { font-size: 14px; }
.sp-tiles small { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-tiles .ok b { color: #0f766e; } .sp-tiles .warn b { color: #9a5800; } .sp-tiles .bad b { color: #b42318; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
.sp-box { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 14px 12px; min-width: 0; }
.sp-box h4 { margin: 4px 0 8px; }
.sp-kvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.sp-kvs.one { grid-template-columns: 1fr; }
.sp-kv { min-width: 0; }
.sp-kv span { display: block; font: 700 10.5px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sp-kv b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.sp-kv b a { color: #1d4fbf; text-decoration: none; }
.sp-kv.bad b { color: #b42318; } .sp-kv.warn b { color: #9a5800; }
.sp-lnk { border: 0; background: none; color: var(--pink-ink); font: 600 12px Inter, sans-serif; cursor: pointer; text-decoration: underline; padding: 0 0 0 4px; }
.sp-cnt { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.sp-cnt > div { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; text-align: center; display: grid; gap: 2px; }
.sp-cnt b { font: 800 20px Poppins, sans-serif; }
.sp-cnt span { font-size: 10.5px; color: var(--ink-2); line-height: 1.2; }
.sp-cnt .z b { color: #c4c1d4; }
.sp-cnt .ok b { color: #0f766e; } .sp-cnt .warn b { color: #9a5800; } .sp-cnt .bad b { color: #b42318; } .sp-cnt .wait b { color: #1d4fbf; }
.sp-tabs { margin-bottom: 6px; }
.sp-t { display: grid; gap: 4px; margin-bottom: 10px; }
.sp-l, .sp-f, .sp-x { display: grid; gap: 10px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; }
.sp-l { grid-template-columns: 120px minmax(0, 1fr) 170px minmax(0, 1fr) minmax(0, .9fr) minmax(0, 2fr); }
.sp-f { grid-template-columns: minmax(0, 2fr) 70px 60px 80px minmax(0, 1fr) 90px 80px; }
.sp-x { grid-template-columns: 130px 100px 110px 130px minmax(0, 1fr) minmax(0, 1fr) 130px; }
.sp-l.head, .sp-f.head, .sp-x.head { background: transparent; border: 0; padding: 2px 10px; font: 700 10.5px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sp-l > span, .sp-f > span, .sp-x > span { min-width: 0; overflow-wrap: anywhere; }
.sp-l .d b { display: block; font-size: 12.5px; }
.sp-l .d small { color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-l .t { cursor: pointer; font-weight: 600; }
.sp-l .t:hover { color: var(--pink); }
.sp-l .c { color: var(--ink-2); }
.sp-l .chip, .sp-x .chip { font-size: 10.5px; white-space: nowrap; }
.sp-notes { display: grid; gap: 6px; }
.sp-n { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px; }
.sp-n b { font-size: 13px; font-weight: 600; }
.sp-n small { font-size: 11.5px; color: var(--muted); }
.sp-n.done b { text-decoration: line-through; color: var(--muted); }
.sp-n.auto { background: #fbfaff; }
.sp-notes .g-btn { justify-self: start; margin-top: 6px; }
@media (max-width: 1100px) { .sp-cnt { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
.sp-grid { grid-template-columns: 1fr; }
.sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-kvs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-l { grid-template-columns: 100px minmax(0, 1fr) auto; }
.sp-l .a, .sp-l .v { display: none; }
.sp-l .c { grid-column: 1 / -1; font-size: 12px; }
.sp-l.head { display: none; }
.sp-f { grid-template-columns: minmax(0, 1fr) 70px 80px; }
.sp-f > span:nth-child(3), .sp-f > span:nth-child(5), .sp-f > span:nth-child(7) { display: none; }
.sp-f.head { display: none; }
.sp-x { grid-template-columns: 1fr 1fr; }
.sp-x.head { display: none; }
}
@media (max-width: 560px) { .sp-cnt { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-act { width: 100%; } }
.stu-back { display: inline-block; width: auto; justify-self: start; }
.stu-bar .seg { flex: none; }
.ex-tabs.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; }
.sp-tabs button b { font-size: 12px; background: #ecebf3; border-radius: 99px; padding: 1px 8px; color: var(--ink-2); }
.sp-tabs button.on b { background: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 760px) {
.stu-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 8px; padding: 0 14px 2px; scrollbar-width: none; }
.stu-chips::-webkit-scrollbar { display: none; }
.stu-chips button { white-space: nowrap; }
.stu-bar select { flex: 1 1 140px; max-width: none; }
}
.sp-test { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #8a5a00; background: #fff4d6; border-radius: 10px; padding: 7px 10px; }
.sp-test.off { background: transparent; padding: 0; justify-content: flex-end; }
.sp-test button { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 4px 9px; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.sp-test.off button { border: 0; background: none; color: var(--muted); text-decoration: underline; }
.sp-test button:hover { color: var(--pink-ink); }
.tsh { display: grid; gap: 4px; margin-top: 6px; }
.tsh-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.tsh-r.off { background: #f7f6fb; color: var(--muted); }
.tsh-r small { font-size: 11px; color: var(--muted); }
.tsh-r button { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 4px 10px; font: 600 11.5px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.tsh-r button:hover { border-color: var(--pink); color: var(--pink-ink); }
/* ---- Charges mensuelles ---- */
.chg-hint { font: 500 11.5px Inter, sans-serif; color: var(--muted); margin-left: 6px; }
.chg-stats .hl b { color: var(--pink-ink); }
.p-stats .ok b { color: #0f766e; }
.p-stats .bad b { color: #b42318; }
.chg-warn { background: #fff4d6; border: 1px solid #f5d38a; color: #7a4d00; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chg-warn button { border: 1px solid #e8c77a; background: #fff; border-radius: 8px; padding: 3px 9px; font: 600 11.5px Inter, sans-serif; color: #7a4d00; cursor: pointer; margin-left: auto; }
.chg-t { display: grid; gap: 4px; margin-top: 8px; }
.chg-r { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 150px 84px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.chg-r.head { background: transparent; border: 0; padding: 2px 8px; font: 700 10.5px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.chg-r input, .chg-r select { width: 100%; min-width: 0; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 7px; font: 600 13px Inter, sans-serif; color: var(--ink); outline: none; }
.chg-r input:hover, .chg-r select:hover { border-color: var(--line-2); background: #faf9fd; }
.chg-r input:focus, .chg-r select:focus { border-color: var(--pink); background: #fff; }
.chg-r select { font-weight: 500; color: var(--ink-2); }
.chg-m { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.chg-m input { text-align: right; font-variant-numeric: tabular-nums; }
.chg-r > button { border: 0; background: transparent; cursor: pointer; font-size: 14px; opacity: .55; border-radius: 8px; padding: 4px; }
.chg-r > button:hover { opacity: 1; background: #f7f6fb; }
.chg-r.add { border-style: dashed; background: #fbfaff; }
.chg-r.add input, .chg-r.add select { border-color: var(--line-2); background: #fff; }
.chg-r.add .g-btn { opacity: 1; font-size: 12px; padding: 6px 8px; }
.chg-r.tot { background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; font-weight: 600; font-size: 13px; }
.chg-r.tot b { text-align: right; padding-right: 22px; font-variant-numeric: tabular-nums; }
.chg-r.tot.big { font-size: 14.5px; color: var(--pink-ink); }
.chg-r.tot.big b { font: 800 16px Poppins, sans-serif; }
.chg-r.tot input { border-color: var(--line-2); background: #fff; }
@media (max-width: 640px) {
.chg-r { grid-template-columns: minmax(0, 1fr) 110px 32px; }
.chg-r.head { display: none; }
.chg-r select { grid-column: 1; grid-row: 2; font-size: 12px; padding: 3px 7px; }
.chg-r .chg-m { grid-column: 2; grid-row: 1; }
.chg-r > button { grid-column: 3; grid-row: 1; }
.chg-r.add .g-btn { grid-column: 2 / 4; grid-row: 2; }
.chg-r.tot { grid-template-columns: minmax(0, 1fr) auto; }
.chg-r.tot > span:empty { display: none; }
}
.chg-r > button { justify-self: center; }
.chg-r.add .g-btn { justify-self: stretch; }
