/* Interface principale : menu à gauche, thème noir / magenta */

#shell {
  --bg: #0a0709;
  --side: #0d090c;
  --panel: #110c10;
  --panel-2: #160f14;
  --line: #24161f;
  --line-2: #33202b;
  --text: #ece4ea;
  --muted: #86727f;
  --dim: #5e4d58;
  --accent: #d52d88;
  --accent-hi: #ee63ac;
  --accent-soft: rgba(213, 45, 136, 0.14);
  --ok: #4fb286;
  --warn: #d9a441;
  --bad: #e5484d;
  --grad: linear-gradient(135deg, #d52d88 0%, #8e2a9e 52%, #14070f 100%);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  position: fixed; inset: 0; z-index: 5;
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg); color: var(--text);
  font-family: 'Familjen Grotesk', -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.45;
}
#shell[hidden] { display: none; }
#shell *, #shell *::before, #shell *::after { box-sizing: border-box; }
#shell h1, #shell h2, #shell h3, #shell p { margin: 0; }

/* ---------- menu ---------- */
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.side-brand img { width: 30px; height: auto; filter: drop-shadow(0 4px 12px rgba(213, 45, 136, 0.45)); }
.side-brand b { font-size: 15px; letter-spacing: 0.22em; font-weight: 700; }
.side-label { font: 500 10.5px var(--mono); letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; padding: 22px 20px 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid transparent; transition: background 0.15s, color 0.15s;
}
.nav a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.nav a.on { color: #fff; background: var(--panel-2); border-color: var(--line-2); }
.nav a.on svg { color: var(--accent-hi); }
.nav .count { margin-left: auto; font: 600 10.5px var(--mono); padding: 1px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-hi); }
.side-foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--grad); font-weight: 700; font-size: 14px; color: #fff; text-transform: uppercase; }
.side-foot .who { min-width: 0; }
.side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { font-size: 12px; color: var(--muted); }
.side-foot button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; }
.side-foot button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.side-foot button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- contenu ---------- */
.content { min-width: 0; overflow-y: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; background: rgba(10, 7, 9, 0.92); backdrop-filter: blur(8px); }
.topbar .eyebrow { font: 500 10.5px var(--mono); letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.topbar h1 { font-size: 18px; font-weight: 700; margin-top: 2px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.view { padding: 24px 28px 48px; max-width: 1500px; }

/* boutons */
.bt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 600 13px 'Familjen Grotesk', sans-serif; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.bt:hover { border-color: #4a2d3d; background: #1b1219; }
.bt.primary { background: var(--grad); border-color: transparent; color: #fff; }
.bt.primary:hover { filter: brightness(1.12); }
.bt.danger { color: #ff8a8e; border-color: #4a2226; background: rgba(229, 72, 77, 0.08); }
.bt.danger:hover { background: rgba(229, 72, 77, 0.16); }
.bt.ok { color: #7fd9b0; border-color: #1f4436; background: rgba(79, 178, 134, 0.09); }
.bt.ok:hover { background: rgba(79, 178, 134, 0.17); }
.bt.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.bt:disabled { opacity: 0.5; cursor: not-allowed; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); margin-bottom: 20px; }
.kpi { padding: 16px 18px 14px; border-right: 1px solid var(--line); position: relative; }
.kpi:last-child { border-right: 0; }
.kpi .l { font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 6px; letter-spacing: -0.01em; }
.kpi .s { font-size: 12px; color: var(--dim); margin-top: 2px; }
.kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.kpi.hot::after { background: var(--accent); }
.kpi.hot .v { color: #fff; }

/* grille */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.panel-h .n { font: 600 11px var(--mono); color: var(--accent-hi); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; }
.panel-b { padding: 16px; }
.empty { padding: 34px 16px; text-align: center; color: var(--dim); font-size: 13px; }

/* listes */
.rows > .row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rows > .row:last-child { border-bottom: 0; }
.rows > .row:hover { background: rgba(255, 255, 255, 0.025); }
.row .main { min-width: 0; flex: 1; }
.row .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .m { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side-r { font: 500 12px var(--mono); color: var(--dim); flex: none; }
.row .mark { width: 3px; align-self: stretch; border-radius: 2px; background: var(--accent); flex: none; }

/* tableaux */
.tbl-wrap { overflow-x: auto; }
#shell table { width: 100%; border-collapse: collapse; background: none; box-shadow: none; }
#shell thead, #shell thead tr { background: none; }
#shell th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 11px 16px; border-bottom: 1px solid var(--line); background: none; white-space: nowrap; }
#shell td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
#shell tbody tr:last-child td { border-bottom: 0; }
#shell tbody tr { cursor: pointer; }
#shell tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
#shell td.num, #shell th.num { text-align: right; font-variant-numeric: tabular-nums; }
#shell td .sub { display: block; font-size: 12px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* pastilles */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 4px; border: 1px solid var(--line-2); font: 600 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending { color: var(--warn); border-color: #4a3a17; background: rgba(217, 164, 65, 0.08); }
.pill.approved, .pill.accepted { color: var(--ok); border-color: #1f4436; background: rgba(79, 178, 134, 0.08); }
.pill.rejected { color: var(--bad); border-color: #4a2226; background: rgba(229, 72, 77, 0.08); }
.pill.modified { color: var(--accent-hi); border-color: #4d1d38; background: var(--accent-soft); }
.pill.rappel { color: #7aa7ff; border-color: #24365e; background: rgba(122, 167, 255, 0.08); }
.pill.avertissement { color: var(--bad); border-color: #4a2226; background: rgba(229, 72, 77, 0.08); }
.tag { display: inline-block; font: 600 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }

/* onglets */
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { height: 30px; padding: 0 13px; border: 0; border-radius: 5px; background: none; color: var(--muted); font: 600 12px 'Familjen Grotesk', sans-serif; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* formulaires */
#shell label { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#shell input[type=text], #shell input[type=password], #shell input[type=number], #shell input[type=datetime-local], #shell input[type=search], #shell select, #shell textarea {
  width: 100%; background: #0c080b; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); padding: 10px 12px;
  font: 400 14px 'Familjen Grotesk', sans-serif; outline: none; color-scheme: dark;
}
#shell textarea { min-height: 96px; resize: vertical; }
#shell input:focus, #shell select:focus, #shell textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); cursor: pointer; }
#shell .check input { width: 16px; height: 16px; accent-color: var(--accent); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; height: 36px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font: 600 13px 'Familjen Grotesk', sans-serif; cursor: pointer; }
.seg button.on { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.seg button.on.ok { border-color: var(--ok); background: rgba(79, 178, 134, 0.12); }
.seg button.on.bad { border-color: var(--bad); background: rgba(229, 72, 77, 0.12); }

/* données clé/valeur */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.secret { font: 500 13px var(--mono); background: #0c080b; border: 1px dashed var(--accent); border-radius: 6px; padding: 12px 14px; color: #fff; line-height: 1.7; user-select: all; }

/* barres d'activité */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.bars i { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent), #6d1746); opacity: 0.9; }
.bars i.z { background: var(--line-2); }
.bars-l { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10.5px var(--mono); color: var(--dim); }

.feed { padding: 4px 16px 8px; }
.feed .it { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.feed .it:last-child { border-bottom: 0; }
.feed .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.feed .dot.c-connexion { background: var(--dim); }
.feed .dot.c-candidature { background: var(--warn); }
.feed .dot.c-animateur { background: #7aa7ff; }
.feed .a { font-weight: 600; font-size: 13.5px; }
.feed .d { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.feed .w { font: 500 10.5px var(--mono); color: var(--dim); margin-top: 2px; }

/* notifications animateur */
.note { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.note:last-child { border-bottom: 0; }
.note.unread { background: rgba(213, 45, 136, 0.05); box-shadow: inset 3px 0 0 var(--accent); }
.note .body { flex: 1; min-width: 0; }
.note .body p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }

/* fenêtre */
.dlg { position: fixed; inset: 0; z-index: 30; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; background: rgba(4, 2, 4, 0.72); backdrop-filter: blur(3px); overflow-y: auto; }
.dlg.open { display: flex; }
.dlg-box { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: 16px; font-weight: 700; }
.dlg-h button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; padding: 0 4px; }
.dlg-h button:hover { color: #fff; }
.dlg-b { padding: 20px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dlg-sep { height: 1px; background: var(--line); margin: 18px 0; }
.dlg-sub { font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 11px 16px; border-radius: 6px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); color: #ece4ea; font-family: 'Familjen Grotesk', sans-serif; }
.toast.bad { border-left-color: var(--bad); }

.menu-btn { display: none; }

@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  #shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform 0.2s; }
  #shell.open .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar, .view { padding-left: 16px; padding-right: 16px; }
  .two { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 10px; }
}

.dlg .kpis { grid-template-columns: repeat(4, 1fr); }
.dlg .kpi { padding: 12px 14px; }
.dlg .kpi .v { font-size: 24px; }

/* ---- absences, annonces, calendriers ---- */
#shell { --amber: #e0a13a; --amber-soft: rgba(224, 161, 58, 0.14); }

/* calendrier */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 14px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 15px; }
.cal-nav button:hover { color: #fff; border-color: var(--accent); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .w { text-align: center; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-bottom: 2px; }
.cal .d { position: relative; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 600; font-size: 14px; background: #150e13; color: var(--dim); border: 1px solid transparent; line-height: 1.1; }
.cal .d.out { background: none; color: #3a2a34; }
.cal .d.ev { background: linear-gradient(160deg, #9c2470, #4d1338); color: #fff; }
.cal .d.ev2 { background: linear-gradient(160deg, #d52d88, #7a1d5c); color: #fff; }
.cal .d.up { background: none; color: #fff; border: 1px dashed var(--accent); }
.cal .d.abs { background: linear-gradient(160deg, rgba(224, 161, 58, 0.30), rgba(120, 76, 16, 0.35)); color: #f4c56d; border-color: rgba(224, 161, 58, 0.5); }
.cal .d.abs small, .cal .d.pend small { font: 700 8.5px var(--mono); letter-spacing: 0.05em; margin-top: 2px; }
.cal .d.pend { background: none; color: #f4c56d; border: 1px dashed rgba(224, 161, 58, 0.7); }
.cal .d.today { box-shadow: 0 0 0 2px var(--accent); color: #fff; }
.cal .d.click { cursor: pointer; color: #d8c9d3; }
.cal .d.click:hover { border-color: var(--accent); color: #fff; }
.cal .d.sel { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.cal .d.rng { background: rgba(213, 45, 136, 0.18); color: #fff; }
.cal .d.dis { color: #33242d; cursor: not-allowed; }
.cal .d small { font: 700 9px var(--mono); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-ev { background: #b02878; } .lg-up { border: 1px dashed var(--accent); } .lg-abs { background: rgba(224, 161, 58, 0.55); } .lg-pend { border: 1px dashed var(--amber); }

/* histogramme */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.chart .bar { width: 100%; max-width: 64px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #d52d88, #5b1642); position: relative; min-height: 4px; }
.chart .bar.cur { background: linear-gradient(180deg, #ee63ac, #8e2a9e); }
.chart .val { font: 700 13px var(--mono); }
.chart .lab { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* annonce */
.announce { display: flex; gap: 16px; padding: 16px 18px; align-items: flex-start; background: linear-gradient(135deg, rgba(213, 45, 136, 0.16), rgba(20, 7, 15, 0.4) 70%); border: 1px solid #4d1d38; border-radius: 8px; margin-bottom: 20px; }
.announce .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; flex: none; }
.announce .ic svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.announce h3 { font-size: 15px; margin: 0 0 3px; }
.announce p { color: #cdbcc7; margin: 0; white-space: pre-wrap; }
.announce .w { font: 500 10.5px var(--mono); color: var(--dim); margin-top: 8px; letter-spacing: 0.06em; text-transform: uppercase; }

/* planning équipe */
.plan-wrap { overflow-x: auto; padding: 4px 16px 16px; }
.plan { border-collapse: separate; border-spacing: 3px; width: auto; min-width: 100%; }
#shell .plan th { padding: 4px 0; text-align: center; font: 500 9.5px var(--mono); color: var(--dim); border: 0; letter-spacing: 0; min-width: 24px; }
#shell .plan th.name, #shell .plan td.name { text-align: left; position: sticky; left: 0; background: var(--panel); min-width: 120px; padding: 0 12px 0 0; z-index: 1; font-weight: 600; font-size: 13.5px; }
#shell .plan td { padding: 0; border: 0; }
#shell .plan tbody tr { cursor: default; }
#shell .plan tbody tr:hover { background: none; }
.plan .c { width: 24px; height: 28px; border-radius: 5px; background: #150e13; }
.plan .c.we { background: #110b0f; }
.plan .c.ev { background: linear-gradient(160deg, #b02878, #5b1642); }
.plan .c.abs { background: rgba(224, 161, 58, 0.55); }
.plan .c.pend { background: none; border: 1px dashed var(--amber); }
.plan .c.tod { box-shadow: 0 0 0 1.5px var(--accent); }
.plan th.tod { color: var(--accent-hi); }

.req { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.req:last-child { border-bottom: 0; }
.req .main { flex: 1 1 240px; min-width: 0; }
.req .t { font-weight: 600; }
.req .m { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pill.abs-p { color: var(--amber); border-color: #4a3a17; background: var(--amber-soft); }
.dur { font: 600 11px var(--mono); color: #f4c56d; background: var(--amber-soft); border: 1px solid #4a3a17; padding: 2px 7px; border-radius: 4px; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.toggle i { width: 40px; height: 22px; border-radius: 12px; background: #221720; border: 1px solid var(--line-2); position: relative; transition: background 0.15s; flex: none; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9a8492; transition: transform 0.15s, background 0.15s; }
.toggle.on i { background: var(--accent-soft); border-color: var(--accent); }
.toggle.on i::after { transform: translateX(18px); background: var(--accent-hi); }
.two-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dlg-box.wide { max-width: 720px; }
.hint { font-size: 12.5px; color: var(--muted); }
.err.info { color: var(--muted); }
.err { color: #ff8a8e; font-size: 13px; min-height: 18px; margin-top: 8px; }
.seg.small button { height: 32px; font-size: 12.5px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px) { .two-cal { grid-template-columns: 1fr; } }

.tag-test { display: inline-block; font: 600 10px var(--mono, monospace); letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line, #33202b); color: var(--muted, #9a8492); margin-left: 6px; vertical-align: middle; }
.hint-t { font-size: 12px; color: var(--muted, #9a8492); margin-top: 8px; line-height: 1.5; }

.avatar { background-size: cover; background-position: center; }
.avatar { border-radius: 50%; }
