/* Beta testeurs : écrans propres (chat, retours, testeurs, tournées), posés sur la coquille de My Space (myspace.css, thème asana). */
body { background: var(--bg); }
.tb-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--chrome-ink); text-decoration: none; margin-right: 6px; font-size: 14px; }
.bt-mark { width: 26px; height: 26px; border-radius: 7px; background: #f06a6a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 600 16px Georgia, serif; }
.tb-claude i { font-style: normal; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; background: transparent; }
.tb-claude i.on { background: #5da283; box-shadow: 0 0 0 3px #5da28333; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #5da28311; } }
.tb-me { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.side-foot { color: var(--chrome-muted); padding: 10px; }
.side .prod { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--chrome-ink); text-decoration: none; font: 14px var(--font); padding: 6px 10px; border-radius: 8px; }
.side .prod:hover, .side .prod.on { background: var(--chrome-hi); } .side .prod i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.side .prod .n { margin-left: auto; font: 600 11px var(--mono); color: var(--chrome-muted); }
body.app #main.wrap { margin-right: 340px; } body.app.team-off #main.wrap { margin-right: 0; }
.claude { width: 340px; } body.team-off .claude { display: none; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 14px; } .pagehead h1 { font: 700 22px var(--display); margin: 0; letter-spacing: -.01em; } .pagehead .sp { flex: 1; }
.pagehead .sub { color: var(--muted); font-size: 13.5px; width: 100%; margin-top: -6px; }

/* Chat */
.chatwrap { display: flex; flex-direction: column; height: calc(100vh - 48px - 44px); max-width: 860px; }
.feed { flex: 1; overflow-y: auto; padding: 4px 4px 12px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; padding: 6px 6px; border-radius: 10px; align-items: flex-start; }
.msg:hover { background: var(--panel2); }
.msg .ava { width: 34px; height: 34px; font-size: 14px; margin-top: 2px; }
.msg .mb { min-width: 0; flex: 1; }
.msg .mh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .msg .mh b { font-weight: 600; } .msg .mh time { color: var(--muted); font-size: 12px; }
.msg .mt { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.msg.cont { padding-top: 0; } .msg.cont .ava { visibility: hidden; height: 0; } .msg.cont .mh { display: none; }
.msg.hamza .mt { background: #eef3fc; border-radius: 10px; padding: 6px 10px; display: inline-block; }
.msg.systeme .mt { color: var(--muted); font-style: italic; }
.gestes { margin: 0 0 2px 50px; font-size: 12.5px; color: var(--muted); }
.gestes summary { cursor: pointer; list-style: none; } .gestes summary::before { content: '▸ '; } .gestes[open] summary::before { content: '▾ '; }
.gestes ol { margin: 4px 0 4px 18px; padding: 0; }
.sig { display: flex; gap: 10px; align-items: center; margin: 4px 0 4px 50px; padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px; background: var(--panel); font-size: 13.5px; max-width: 620px; }
.sig.bloquant { border-left-color: var(--bad); } .sig.mineur { border-left-color: var(--muted); }
.sig img { width: 92px; height: 60px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; flex: none; }
.sig .k { font: 600 11px var(--mono); text-transform: uppercase; color: var(--muted); display: block; }
.daysep { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
.composer { border-top: 1px solid var(--line); padding: 10px 0 4px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 160px; resize: none; }
.chatwrap .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: #eef7f2; border: 1px solid #cfe6d9; font-size: 13.5px; margin-bottom: 8px; }
.banner.off { background: var(--panel2); border-color: var(--line); }
.banner .sp { flex: 1; }

/* Panneau de l'équipe (à droite) */
.member { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; }
.member .ava { width: 36px; height: 36px; font-size: 14px; }
.member .st { font-size: 12px; color: var(--muted); } .member .st.on { color: var(--ok); font-weight: 600; }
.member b { display: block; font-weight: 600; } .member .role { font-size: 12.5px; color: var(--muted); }
.teamcost { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Retours */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px; font: 500 13px var(--font); cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rlist { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.rcard { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 14px; }
.rcard.bloquant { border-left-color: var(--bad); } .rcard.mineur { border-left-color: #c9c6c4; }
.rcard.refuse, .rcard.fait { opacity: .62; }
.rcard h3 { font: 600 15.5px var(--font); margin: 2px 0 4px; }
.rcard .meta2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.rcard details { font-size: 13.5px; margin-top: 6px; } .rcard details p { white-space: pre-wrap; margin: 6px 0; }
.rcard img { width: 150px; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.rcard .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.chip.t-bug { background: #fde8ec; color: #a32543; } .chip.t-gene { background: #fdf1dc; color: #8a5a0b; } .chip.t-idee { background: #e3eefc; color: #2c5aa8; } .chip.t-question { background: #efe8fb; color: #5b3aa0; }
.chip.s-accepte { background: #e2f3ea; color: #2d7353; } .chip.s-refuse { background: var(--chip); color: var(--muted); } .chip.s-fait { background: #dff0f7; color: #276a85; }
.vus { display: inline-flex; } .vus .ava { width: 20px; height: 20px; font-size: 10px; margin-left: -4px; border: 2px solid #fff; }

/* Testeurs et tournées */
.tgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: 1100px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tcard .wh { margin: 0; } .tcard .ava { width: 44px; height: 44px; font-size: 18px; }
.tcard h4 { margin: 6px 0 0; font: 600 12px var(--font); text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.tcard p { margin: 0; }
table.tt2 { width: 100%; max-width: 1000px; border-collapse: collapse; font-size: 14px; }
table.tt2 th, table.tt2 td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tt2 th { font: 600 12px var(--font); color: var(--muted); }
.lightbox img { max-width: 100%; border-radius: 8px; }

/* Connexion */
.authpage { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: #f6f5f4; padding: 16px; }
.authbox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 30px #0000000d; }
.authbox label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 500; }
.authlogo { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.status.ok { color: var(--ok); }
.logs .toolbar { margin: 10px 0; } .logs table { font-size: 13px; }

@media (max-width: 900px) {
  body.app #main.wrap { margin-right: 0; }
  .claude { width: 100vw; } body:not(.team-open) .claude { display: none; } body.team-open .claude { display: flex; }
  .chatwrap { height: calc(100vh - 48px - 28px); }
  .gestes, .sig { margin-left: 0; }
  .rcard { grid-template-columns: 1fr; } .rcard img { width: 100%; }
}
@media (max-width: 640px) {
  .tb-search, .tb-logo b { display: none; }
  .chatwrap .hint { display: none; }
  .msg .mh span.small { display: none; }
}
