:root {
  color-scheme: light;
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --line: #dce3ed;
  --line-strong: #cbd5e1;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #94a3b8;
  --primary: #5b35d5;
  --primary-strong: #4b25c0;
  --primary-soft: #efeaff;
  --green: #1ca35c;
  --green-soft: #edf9f1;
  --green-line: #bfebce;
  --red: #e5484d;
  --red-soft: #fff0f0;
  --red-line: #ffd0d2;
  --blue: #2479d9;
  --blue-soft: #eef7ff;
  --blue-line: #c8e2ff;
  --warning: #f59e0b;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page,
.lobby-page,
.actions-page,
.admin-page,
.legal-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96) 42%),
    radial-gradient(circle at top right, rgba(91, 53, 213, 0.08), transparent 32%),
    var(--page);
}

.page-content {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto 40px;
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-copy {
  margin: -4px 0 16px;
  color: var(--muted);
}

.auth-card {
  padding: 28px;
}

.auth-header h1,
.auth-header h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.15;
}

.auth-header p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form,
.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 600;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.error-text {
  margin: 0;
  color: #b42318;
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea,
#card-form input,
#card-form textarea,
#card-form select,
.action-notes textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
#card-form input:focus,
#card-form textarea:focus,
#card-form select:focus,
.action-field input:focus,
.action-notes textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 53, 213, 0.14);
}

.primary-btn,
.secondary-btn,
.link-btn,
#card-form button,
.timer-actions button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.primary-btn,
#card-form button,
.timer-actions button#timer-start {
  color: #fff;
  background: linear-gradient(180deg, #6845df 0%, var(--primary) 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(91, 53, 213, 0.22);
}

.primary-btn:hover,
#card-form button:hover,
.timer-actions button#timer-start:hover {
  background: var(--primary-strong);
}

.secondary-btn,
.timer-actions button {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.secondary-btn:hover,
.timer-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.link-btn {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  border: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.app-header {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-header {
  padding-top: 34px;
}

.app-header h1 {
  margin: 0 0 4px;
  font-size: 2rem;
  line-height: 1.15;
}

.app-header p {
  margin: 0;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.status,
.status-pill,
.pill,
.retro-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status.online,
.pill.open,
.retro-status.open {
  color: var(--primary);
  background: var(--primary-soft);
}

.pill.closed,
.retro-status.closed {
  color: #b42318;
  background: #fff1f3;
}

.activity,
.presence {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Login screen */

.login-shell {
  width: min(1080px, calc(100vw - 40px));
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 36px;
  align-items: center;
}

.login-hero {
  display: grid;
  gap: 18px;
}

.login-hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.login-hero > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.login-preview {
  max-width: 570px;
  min-height: 260px;
  margin-top: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
}

.preview-column {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.preview-column::before,
.preview-column::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 72px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid currentColor;
  opacity: 0.45;
}

.preview-column::before {
  top: 48px;
}

.preview-column::after {
  top: 136px;
}

.preview-column.start {
  color: var(--green-line);
  background: linear-gradient(180deg, var(--green-soft), #fff);
}

.preview-column.stop {
  color: var(--red-line);
  background: linear-gradient(180deg, var(--red-soft), #fff);
}

.preview-column.continue {
  color: var(--blue-line);
  background: linear-gradient(180deg, var(--blue-soft), #fff);
}

.login-footer {
  width: min(1080px, calc(100vw - 40px));
  margin: -36px auto 20px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.login-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-footer a:hover {
  color: var(--primary-strong);
}

.legal-shell {
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.legal-panel {
  padding: 34px;
}

.legal-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.legal-panel h2 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.legal-panel p {
  margin: 0;
  color: var(--muted);
}

.legal-updated {
  font-weight: 700;
}

.legal-back-link {
  margin-top: 30px;
}

/* Retrospective session screen */

.retro-page {
  min-height: 100vh;
  padding-bottom: 62px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 42%),
    var(--page);
}

.session-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px 30px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.session-title {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

.menu-link {
  width: 28px;
  height: 28px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #344054;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.title-row h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.retro-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: calc(100vh - 155px);
}

.retro-workspace {
  min-width: 0;
  padding: 30px;
}

.session-sidebar {
  background: rgba(255, 255, 255, 0.78);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.sidebar-panel {
  padding: 28px 26px;
  border-bottom: 1px solid var(--line);
}

.sidebar-panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.health-card {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.health-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.health-card strong {
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.health-card:nth-child(1) {
  border-color: var(--green-line);
  background: linear-gradient(180deg, rgba(237, 249, 241, 0.74), rgba(255, 255, 255, 0.92));
}

.health-card:nth-child(2) {
  border-color: #dcd2ff;
  background: linear-gradient(180deg, #f5f1ff, rgba(255, 255, 255, 0.94));
}

.health-card:nth-child(3) {
  border-color: var(--blue-line);
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.78), rgba(255, 255, 255, 0.94));
}

.health-card:nth-child(4) {
  border-color: #f7d789;
  background: linear-gradient(180deg, #fff7e6, rgba(255, 255, 255, 0.94));
}

.instruction-banner {
  min-height: 52px;
  margin-bottom: 28px;
  padding: 11px 12px 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dcd2ff;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f5f1ff, #fbfaff);
  color: var(--primary);
}

.instruction-banner p {
  margin: 0;
  font-size: 0.92rem;
}

.instruction-banner p::before {
  content: "*";
  margin-right: 10px;
  font-weight: 900;
}

.composer {
  margin: 0 0 24px;
}

#card-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) 150px auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#card-form textarea {
  resize: vertical;
  min-height: 42px;
}

.read-only .composer {
  display: none;
}

.read-only .vote-btn,
.read-only .create-action-btn,
.read-only .timer-actions button {
  pointer-events: none;
  opacity: 0.55;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.column {
  min-height: 548px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.column-start {
  border-color: var(--green-line);
  background: linear-gradient(180deg, rgba(237, 249, 241, 0.72), rgba(255, 255, 255, 0.86));
}

.column-stop {
  border-color: var(--red-line);
  background: linear-gradient(180deg, rgba(255, 240, 240, 0.78), rgba(255, 255, 255, 0.88));
}

.column-continue {
  border-color: var(--blue-line);
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.78), rgba(255, 255, 255, 0.88));
}

.column-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.column-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.column-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

.column-start .column-icon,
.column-start .column-count,
.column-start .vote-btn {
  background: var(--green);
}

.column-stop .column-icon,
.column-stop .column-count,
.column-stop .vote-btn {
  background: var(--red);
}

.column-continue .column-icon,
.column-continue .column-count,
.column-continue .vote-btn {
  background: var(--blue);
}

.column h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.column-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.column-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.card-list {
  list-style: none;
  min-height: 390px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.retro-page .card {
  position: relative;
  min-height: 124px;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  cursor: grab;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.column-start .card {
  background: #eaf8ef;
  border: 1px solid var(--green-line);
}

.column-stop .card {
  background: #fff0f0;
  border: 1px solid var(--red-line);
}

.column-continue .card {
  background: #edf7ff;
  border: 1px solid var(--blue-line);
}

.card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: start;
  gap: 10px;
}

.retro-page .card strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.42;
}

.card-menu {
  color: var(--muted-2);
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
}

.card-details {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.avatar {
  width: 27px;
  height: 27px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #eef4ff;
  color: var(--primary);
  border: 1px solid #bcaeff;
  font-size: 0.75rem;
  font-weight: 800;
}

.vote-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.create-action-btn {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.create-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.create-action-btn:disabled {
  cursor: default;
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.vote-btn:hover {
  filter: brightness(0.94);
}

.vote-count {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.gu-mirror {
  list-style: none;
  opacity: 0.94;
  box-shadow: var(--shadow-md);
}

.timer {
  display: grid;
  gap: 14px;
}

.timer .sidebar-heading {
  margin-bottom: 0;
}

.timer-readout {
  padding: 14px;
  display: grid;
  gap: 6px;
  border: 1px solid #dcd2ff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7f3ff, #ffffff);
}

.timer-readout span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timer-display {
  font-size: 2.45rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-controls {
  display: grid;
  gap: 12px;
}

.timer-set {
  display: grid;
  grid-template-columns: 34px minmax(64px, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.timer-set input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.timer-set button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.timer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.retro-health {
  display: grid;
  gap: 14px;
}

.retro-health h2 {
  margin-bottom: 0;
}

.health-status {
  padding: 10px 12px;
  border: 1px solid #f7d789;
  border-radius: var(--radius);
  background: #fff7e6;
  color: #854d0e;
  font-weight: 800;
}

.health-status.is-ready {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.health-status-detail {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.health-breakdown {
  display: grid;
  gap: 8px;
}

.health-row {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.health-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.health-row strong {
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #eef4ff;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.activity-card {
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.activity-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-card strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.participant-avatar {
  background: #f2f4f7;
}

.participant-avatar:nth-child(3n + 1) {
  background: #f1edff;
  color: var(--primary);
}

.participant-avatar:nth-child(3n + 2) {
  background: #e7f8ff;
  color: #0369a1;
  border-color: #9bdaf7;
}

.participant-avatar:nth-child(3n + 3) {
  background: #fff6df;
  color: #a16207;
  border-color: #f7d789;
}

.participant-avatar.muted {
  color: var(--muted);
  border-color: var(--line-strong);
}

.sidebar-actions {
  display: grid;
  gap: 12px;
}

.sidebar-actions .primary-btn,
.sidebar-actions .secondary-btn {
  width: 100%;
  justify-content: center;
}

.tips-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  min-height: 58px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.tips-bar span {
  font-weight: 800;
}

.tips-bar p {
  margin: 0;
}

.tips-bar p::before {
  content: "○";
  margin-right: 8px;
  color: var(--muted-2);
}

.tips-bar a {
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

/* Lobby, admin and actions pages */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.overview-card {
  min-height: 116px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.overview-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
}

.overview-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.overview-icon.purple {
  background: var(--primary-soft);
  color: var(--primary);
}

.overview-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.actions-summary,
.admin-summary {
  margin-bottom: 0;
}

.key-panel .key-text {
  margin: 6px 0 0;
  color: var(--ink);
}

.key-panel .key-value,
.key-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.team-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.team-table th,
.team-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: var(--surface);
}

.team-table th {
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--surface);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel {
  padding: 20px;
}

.retro-panel,
.create-retro-panel {
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sort-controls select {
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.retro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.retro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.retro-item:hover {
  background: #fff;
  border-color: #cfc5ff;
  box-shadow: 0 8px 22px rgba(91, 53, 213, 0.08);
}

.retro-info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.retro-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.retro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.retro-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.actions-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.kanban-column {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kanban-column:nth-child(1) {
  border-color: #d7cef8;
  background: linear-gradient(180deg, rgba(245, 241, 255, 0.72), #fff);
}

.kanban-column:nth-child(2) {
  border-color: var(--blue-line);
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.72), #fff);
}

.kanban-column:nth-child(3) {
  border-color: #fed7aa;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.78), #fff);
}

.kanban-column:nth-child(4) {
  border-color: var(--green-line);
  background: linear-gradient(180deg, rgba(237, 249, 241, 0.72), #fff);
}

.kanban-header h2,
.team-section h3 {
  margin: 0;
}

.kanban-header h2 {
  font-size: 1.04rem;
}

.team-section h3 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  min-height: 20px;
}

.action-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.action-card strong {
  display: block;
  margin-bottom: 6px;
}

.action-meta {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.action-notes {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.action-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.action-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.action-field input {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: none;
}

.action-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.save-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.save-status.is-success {
  color: var(--green);
}

.save-status.is-error {
  color: var(--red);
}

.action-notes textarea {
  min-height: 58px;
  text-transform: none;
}

.action-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.action-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.action-dialog form {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-header h2 {
  margin: 0 0 4px;
  font-size: 1.18rem;
}

.dialog-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dialog-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .login-preview {
    min-height: 190px;
  }

  .retro-shell {
    grid-template-columns: 1fr;
  }

  .session-sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-panel {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .column {
    min-height: auto;
  }

  .card-list {
    min-height: 120px;
  }

  #card-form {
    grid-template-columns: 1fr 1fr;
  }

  #card-form input,
  #card-form textarea {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .login-shell {
    width: calc(100vw - 32px);
    padding: 28px 0;
  }

  .login-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-column {
    min-height: 92px;
  }

  .preview-column::before {
    top: 14px;
    right: 44%;
    height: 52px;
  }

  .preview-column::after {
    top: 14px;
    left: 60%;
    height: 52px;
  }

  .app-header,
  .session-header {
    width: 100%;
    padding: 18px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .page-content {
    width: calc(100vw - 32px);
  }

  .overview-card {
    flex-direction: column;
  }

  .retro-workspace {
    padding: 18px 16px;
  }

  .session-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    border-right: none;
  }

  .health-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instruction-banner,
  .panel-header,
  .retro-item {
    align-items: flex-start;
    flex-direction: column;
  }

  #card-form,
  .timer-controls {
    grid-template-columns: 1fr;
  }

  .timer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timer-actions button {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tips-bar {
    position: static;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .tips-bar a {
    margin-left: 0;
  }

  .retro-page {
    padding-bottom: 0;
  }
}
