.online-page { background: #0e120f; }
.online-workspace { align-items: start; }
.online-board-column { display: grid; gap: 10px; }
.online-board-shell { padding: clamp(7px, 1vw, 10px); }

.clock-card {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 120ms ease, background 120ms ease;
}
.clock-card span { color: var(--muted); font-weight: 700; }
.clock-card strong {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.clock-card.active-clock { border-color: var(--accent); background: #20291c; }
.clock-card.active-clock span { color: var(--text); }

.board-preview { filter: saturate(0.78) brightness(0.82); }
.board-preview .square { cursor: default; }

.online-control-column { align-content: start; }
.room-panel { padding: clamp(22px, 3vw, 28px); }
.room-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.room-heading h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.room-panel > p { color: var(--muted); line-height: 1.6; }
.time-control-badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-dark);
  font: 800 0.9rem/1 ui-monospace, "Cascadia Code", monospace;
}

.invite-panel { display: grid; gap: 10px; margin-top: 18px; }
.invite-panel[hidden] { display: none; }
.invite-panel label { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.invite-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.invite-panel input {
  min-width: 0;
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: #111511;
  border: 1px solid var(--border);
  font-family: ui-monospace, "Cascadia Code", monospace;
}
.invite-panel p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.invite-copy-row .secondary-button { white-space: nowrap; }

.compact-status-grid strong { overflow-wrap: anywhere; }
.online-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.danger-button {
  padding: 12px 16px;
  border: 1px solid #9b3d3d;
  background: #6e2929;
  color: #fff;
  cursor: pointer;
}
.rules-panel p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.square.selected { box-shadow: inset 0 0 0 4px #b9f45d; }

@media (max-width: 920px) {
  .online-workspace { width: min(720px, calc(100% - 24px)); }
  .online-control-column { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .online-page .topbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .online-page .topbar .quiet-button { grid-column: 1 / -1; text-align: center; }
  .online-workspace { margin-top: 12px; }
  .clock-card { min-height: 62px; padding: 10px 14px; }
  .room-panel { padding: 20px; }
  .online-actions { grid-template-columns: 1fr; }
  .invite-copy-row { grid-template-columns: 1fr; }
}
