/* ============================================================
   Working together, the terms, and About
   (js/teamwork.js, js/termsview.js, js/guide.js)
   ============================================================ */

/* The sidebar card, smaller (Dimi, 29 October 2026) */
.team-badge { padding: 8px 10px; margin-bottom: 4px; }
.team-badge .tb-row { gap: 7px; }
.team-badge .tb-dot { width: 6px; height: 6px; margin-top: 4px; }
.team-badge b { font-size: 8.5px; margin-bottom: 1px; }
.team-badge span:not(.tb-dot) { font-size: 10px; line-height: 1.35; }
.team-badge .tb-act { display: inline-block; width: auto; margin: 6px 5px 0 0; padding: 3px 7px; font-size: 8.5px; }
.sidebar-footer { padding-top: 10px; }
.sidebar-footer:empty { display: none; }

/* A WardLex that keeps every case on its server: sign in first */
.cg, .tg {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(201,169,98,.10), transparent 60%), var(--bg, #07080d);
}
.cg { z-index: 190; }                 /* under the dialogs, so signing in opens above it */
.tg { z-index: 196; }                 /* above the first-run screen */
.cg-card, .tg-card {
  width: min(640px, 100%); padding: 32px 32px 26px; border-radius: 16px;
  background: var(--glass, rgba(13,15,23,.92)); border: 1px solid var(--border-gold, rgba(201,169,98,.28));
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.tg-card { width: min(820px, 100%); }
.cg h1, .tg h1 { font: 400 30px/1.15 var(--serif, serif); color: var(--text); margin: 0 0 10px; }
.cg-lead, .tg-lead { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0 0 16px; }
.cg-points { margin: 0 0 18px; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cg-note { font-size: 12px; color: var(--text-3); margin: 16px 0 0; line-height: 1.5; }

/* The terms */
.tg-text { max-height: 46vh; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.015); font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.tg-text h3 { font: 500 14px/1.3 var(--sans, inherit); color: var(--text); margin: 18px 0 6px; }
.tg-text h4 { font: 500 12.5px/1.3 var(--sans, inherit); color: var(--gold-bright); margin: 12px 0 4px; }
.tg-text p { margin: 0 0 8px; }
.tg-text ul { margin: 0 0 8px; padding-left: 18px; }
.tg-text b { color: var(--text); font-weight: 500; }
.tg-text.tg-inhelp { max-height: none; border: none; padding: 0; background: none; }
.tg-check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text); line-height: 1.5; margin: 14px 0 0; cursor: pointer; }
.tg-check input { margin-top: 3px; }
.tg-err { min-height: 16px; margin-top: 8px; font-size: 12px; color: var(--red); }
.tg-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.tg-status { font-size: 12px; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); margin-bottom: 10px; }
.tg-status.ok { border-color: rgba(143,206,159,.35); color: var(--green); }
.tg-contents { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; font-size: 11.5px; }
.tg-contents a { color: var(--text-3); text-decoration: none; border-bottom: 1px dotted var(--border-bright); }
.tg-contents a:hover { color: var(--gold); }

/* About */
.hp-about { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 4px 0 0; font-size: 13px; }
.hp-about dt { color: var(--text-3); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.hp-about dd { margin: 0; color: var(--text); line-height: 1.5; }

/* Invite, and move to the server */
.tw-strip { margin-top: 8px; }
.tw-strip-btn { all: unset; cursor: pointer; font-size: 11px; color: var(--gold); border-bottom: 1px dotted var(--gold-soft); }
.tw-strip-btn:hover { color: var(--gold-bright); }
.row-action.tw-row { color: var(--gold); }
.row-action.tw-moved { color: var(--text-3); cursor: default; }
.tw-explain p { font-size: 13px; line-height: 1.6; color: var(--text-2); margin: 0 0 10px; }
.tw-pick { display: flex; flex-direction: column; gap: 8px; }
.tw-carried { margin-bottom: 14px; }
.tw-carried p { font-size: 12.5px; color: var(--text-2); line-height: 1.55; margin: 0 0 10px; }
.tw-ok { color: var(--green); }
.tw-bad { color: var(--red); }
