/* Chercher sur la carte : le lanceur (A), la barre (B), le carnet (C), les calques et les petites choses. */
.secteur { cursor: default; }
.secteur text.sys { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; fill: var(--discret); }
.secteur .terne { opacity: 0.25; }
.secteur .trace.terne { opacity: 0.2; }
.secteur .trace.guilde { stroke: #d9b45a; stroke-dasharray: 2 6; stroke-width: 2; fill: none; }
.secteur .obj { cursor: pointer; transition: opacity .2s; }
.secteur .obj .halo { fill: none; stroke-width: 1.4; }
.secteur .trouve { fill: none; stroke: var(--encre); stroke-width: 1.4; stroke-dasharray: 3 3; }
.secteur .vise { fill: none; stroke: var(--signal); stroke-width: 2; }
.secteur text.age { font-size: 9.5px; fill: var(--efface); letter-spacing: 0.8px; }
.secteur .territoire { fill: color-mix(in srgb, var(--alerte) 5%, transparent); stroke: var(--alerte); stroke-opacity: 0.35; stroke-dasharray: 4 6; }
.secteur .menace { fill: none; stroke: var(--alerte); stroke-width: 1.6; }
.secteur .menace.lent { stroke-opacity: 0.45; stroke-dasharray: 3 5; animation: armee-tourne 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.secteur .regle { stroke: var(--encre); stroke-width: 1.2; stroke-dasharray: 6 4; fill: none; }
.secteur .regle-pt { fill: var(--encre); }
.secteur .regle-boite { fill: color-mix(in srgb, var(--panneau) 92%, transparent); stroke: var(--structureVive); }
.secteur .regle-dit { font-family: var(--texte); font-size: 11px; fill: var(--encre); dominant-baseline: middle; transform: translateY(-4px); }

/* Un champ de recherche, des puces, des sortes. */
.rch-champ { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--creux); box-shadow: inset 0 0 0 1px var(--structureVive); color: var(--efface); }
.rch-champ input { all: unset; flex: 1; font-family: var(--texte); font-size: 13.5px; color: var(--encre); }
.rch-champ input::placeholder { color: var(--efface); }
.rch-efface { all: unset; cursor: pointer; font-size: 12px; color: var(--discret); padding: 0 4px; }
.rch-puces { display: flex; flex-wrap: wrap; gap: 5px; }
.rch-sortes { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--structure); }
.rch-sortes button { all: unset; cursor: pointer; padding: 5px 9px 6px; font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--discret); }
.rch-sortes button.choisi { color: var(--encre); box-shadow: inset 0 -2px 0 var(--t, var(--signal)); }
.mm-puce { all: unset; cursor: pointer; padding: 3px 9px; font-size: 11px; color: var(--discret); box-shadow: inset 0 0 0 1px var(--structure); }
.mm-puce.choisie { color: var(--encre); box-shadow: inset 0 0 0 1px var(--signal); background: color-mix(in srgb, var(--signal) 10%, transparent); }

/* Les résultats. */
.rch-liste { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.rch-groupe { display: flex; flex-direction: column; gap: 2px; }
.rch-groupe > small { padding: 0 4px 2px; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--t); }
.rch-ligne { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 8px 5px 0; background: color-mix(in srgb, var(--creux) 35%, transparent); }
.rch-ligne > i { align-self: stretch; background: var(--t); }
.rch-ligne span { display: flex; flex-direction: column; min-width: 0; }
.rch-ligne b { font-size: 13px; font-weight: 600; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rch-ligne small { font-size: 11px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rch-ligne em { font-style: normal; font-size: 10.5px; color: var(--efface); white-space: nowrap; }
.rch-ligne:hover { background: color-mix(in srgb, var(--gris) 9%, transparent); }
.rch-ligne.choisie { background: color-mix(in srgb, var(--signal) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 50%, transparent); }
mark { background: color-mix(in srgb, var(--signal) 32%, transparent); color: var(--encre); }
.rch-plus { align-self: flex-start; margin: 2px 4px; }
.rch-rien { margin: 6px 0; }
.rch-fiche { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; background: color-mix(in srgb, var(--panneau) 96%, transparent); box-shadow: inset 0 0 0 1px var(--structureVive), inset 2px 0 0 var(--signal); }
.rch-fiche > small { font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.rch-fiche > b { font-size: 16px; font-weight: 600; color: var(--encre); }
.rch-fiche > span { font-size: 12.5px; color: var(--discret); }
.rch-fiche__ou { font-size: 11px !important; color: var(--efface) !important; }
.rch-fiche__gestes { display: grid; grid-template-columns: 1fr; } .rch-fiche__gestes .geste + .geste { margin-top: 8px; }

/* A · le lanceur. */
.rch-lanceur { position: fixed; z-index: 40; left: 50%; top: 70px; transform: translateX(-60%); width: 760px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; gap: 8px; padding: 14px; background: color-mix(in srgb, var(--panneau) 96%, transparent); box-shadow: inset 0 0 0 1px var(--structureVive), 0 20px 60px #000; font-family: var(--texte); }
.rch-lanceur__corps { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; min-height: 0; max-height: 520px; }
.rch-lanceur__pied { font-size: 11px; color: var(--efface); }
.rch-indice { position: fixed; z-index: 30; left: 50%; top: 52px; transform: translateX(-50%); padding: 6px 14px; font-family: var(--texte); font-size: 12px; color: var(--discret); background: color-mix(in srgb, var(--panneau) 85%, transparent); box-shadow: inset 0 0 0 1px var(--structure); }

/* B · la barre de la carte. */
.rch-cote { position: fixed; z-index: 30; left: 16px; top: 50px; bottom: 16px; width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 10px; font-family: var(--texte); background: color-mix(in srgb, var(--panneau) 90%, transparent); box-shadow: inset 0 0 0 1px var(--structure); }
.rch-compte { font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--efface); }
.rch-cote .rch-liste { flex: 1; }

/* C · le carnet. */
.crn .corps { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.crn-tete, .crn-ligne { display: grid; grid-template-columns: 3px 82px minmax(0, 1fr) 60px 74px 56px 48px; gap: 8px; align-items: center; }
.crn-tete { padding: 0 6px 0 0; font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.crn-table { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
.crn-ligne { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 3px 82px minmax(0, 1fr) 60px 74px 56px 48px; gap: 8px; align-items: center; padding: 4px 6px 4px 0; font-size: 11.5px; color: var(--discret); background: color-mix(in srgb, var(--creux) 30%, transparent); }
.crn-ligne > i { align-self: stretch; background: var(--t); }
.crn-ligne:hover { background: color-mix(in srgb, var(--gris) 9%, transparent); }
.crn-ligne.choisie { background: color-mix(in srgb, var(--signal) 12%, transparent); }
.crn-sorte { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; }
.crn-nom { display: flex; flex-direction: column; min-width: 0; } .crn-nom b { font-size: 12.5px; color: var(--encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crn-nom small { font-size: 10.5px; color: var(--efface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crn-ligne .nb { font-variant-numeric: tabular-nums; color: var(--encre); }
.crn-vu, .crn-src { font-size: 10.5px; color: var(--efface); white-space: nowrap; }

/* Les calques, avec leurs comptes. */
.calques { position: fixed; z-index: 30; right: 352px; bottom: 16px; width: 210px; display: flex; flex-direction: column; gap: 1px; padding: 8px; font-family: var(--texte); background: color-mix(in srgb, var(--panneau) 92%, transparent); box-shadow: inset 0 0 0 1px var(--structure); }
.calque { all: unset; cursor: pointer; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; font-size: 12px; color: var(--encre); }
.calque i { width: 8px; height: 8px; } .calque b { font-size: 11px; color: var(--discret); font-variant-numeric: tabular-nums; }
.calque:hover { background: color-mix(in srgb, var(--gris) 9%, transparent); }
.calque.eteint { color: var(--efface); } .calque.eteint i { opacity: 0.3; }
.calques__pied { padding: 4px 6px 0; }

/* Le pupitre : les petites choses. */
.petits { display: flex; flex-direction: column; gap: 3px; }
.petit { all: unset; cursor: pointer; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; padding: 5px 6px; box-shadow: inset 0 0 0 1px var(--structure); }
.petit i { width: 14px; height: 14px; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #050506; box-shadow: inset 0 0 0 1px var(--structureVive); margin-top: 1px; }
.petit.on i { background: var(--signal); box-shadow: none; }
.petit span { display: flex; flex-direction: column; } .petit b { font-size: 12px; color: var(--encre); font-weight: 500; } .petit small { font-size: 11px; color: var(--efface); line-height: 1.35; }
/* Retouches : la vue de mes mondes, le champ en casse normale, le lanceur qui ne déborde pas, les calques en bas à droite. */
.secteur .vue-sect { fill: color-mix(in srgb, var(--peuple) 4%, transparent); stroke: var(--peuple); stroke-opacity: 0.22; stroke-dasharray: 2 6; }
.secteur .astre { fill: var(--discret); }
.rch-champ, .rch-champ input, .rch-champ input::placeholder { text-transform: none; letter-spacing: 0.2px; }
.rch-lanceur { max-height: calc(100vh - 110px); }
.rch-lanceur__corps { flex: 1; max-height: none; min-height: 0; overflow: hidden; }
.rch-lanceur__corps > .rch-liste { overflow: auto; }
.rch-lanceur__corps > .rch-fiche { align-self: start; }
.rch-lanceur__pied { flex: none; padding-top: 6px; border-top: 1px solid var(--structure); }
.calques { bottom: 16px; width: 180px; padding: 6px; }
.calque { padding: 3px 6px; font-size: 11.5px; }
.rch-cote .rch-fiche { flex: none; }
.calques.a-gauche { right: auto; left: 232px; }
