/* Elements propres a la version en ligne (le reste vient du style.css de l'app locale). */
.muted { color: var(--muted); }
.error { color: var(--eco); min-height: 1.4em; margin: .3rem 0; }
input[type=text], input[type=email], input[type=password], input:not([type]) {
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; width: 100%;
}
textarea { background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .5rem; width: 100%; font: .8rem ui-monospace, Consolas, monospace; }
button:disabled { opacity: .5; cursor: default; }
.spacer { margin-left: auto; }

/* ecrans hors salle */
#screen { padding: 1rem; max-width: 52rem; margin: 0 auto; }
.auth { max-width: 24rem; margin: 12vh auto 0; display: flex; flex-direction: column; gap: .7rem; }
.auth h1 { margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.auth label { display: flex; flex-direction: column; gap: .25rem; color: var(--muted); font-size: .85rem; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.top h1 { margin: 0 .5rem 0 0; font-size: 1.4rem; }
.rooms { list-style: none; margin: .5rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.rooms li { display: flex; align-items: center; gap: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; }
.rooms .code { font: 700 1.1rem ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grid2 form { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.grid2 h3, .lobby h2 { margin: 0; }
.grid2 input { text-transform: uppercase; letter-spacing: .1em; }

/* barre de salle */
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 .55rem; font-size: .75rem; color: var(--muted); }
.chip.lead { color: var(--force); border-color: var(--force); }
.chip.co_lead { color: var(--pistol); border-color: var(--pistol); }
.chip.lead_eco { color: var(--full); border-color: var(--full); }
.roomcode { font: 700 .95rem ui-monospace, Consolas, monospace; letter-spacing: .1em; }
#bar button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
#banner { display: flex; gap: .8rem; align-items: center; margin: .8rem 1rem 0; padding: .55rem .9rem; border-radius: 8px; border: 1px solid var(--force); background: #ffb45422; }
.waiting { grid-column: 1 / -1; background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; padding: 1rem; color: var(--muted); }
.card .real { font-size: .75rem; color: var(--full); }

/* equipe en direct */
#live { margin: .8rem 1rem 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .9rem; }
#live summary { cursor: pointer; color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
#live table { width: 100%; border-collapse: collapse; margin-top: .4rem; font-size: .95rem; }
#live td, #live th { padding: .25rem .5rem; text-align: left; border-top: 1px solid var(--line); }
#live th { color: var(--muted); font-weight: 400; font-size: .8rem; border-top: 0; }
#live td.num, #live th.num { text-align: right; font-variant-numeric: tabular-nums; }
#live .off { color: var(--muted); }
#live .dead { color: var(--eco); }
#live tfoot td { font-weight: 700; }

/* focus */
.focusbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.steps > li.pickable { cursor: pointer; }
.steps > li.pickable:hover { outline: 1px dashed var(--muted); }
.steps > li.focused { outline: 3px solid var(--force); background: #ffb45422; }
.steps > li.focused h4::before { content: "📍 "; }

#toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--eco); color: #1a0505; font-weight: 600; padding: .6rem 1rem; border-radius: 8px; max-width: 90vw; z-index: 10; }
dialog table { width: 100%; border-collapse: collapse; }
dialog td, dialog th { padding: .3rem .4rem; border-top: 1px solid var(--line); text-align: left; }
dialog form.inline { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
dialog form.inline input { flex: 1 1 10rem; }
dialog ol { padding-left: 1.2rem; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
