* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #1a1a1a;
  color: #f0f0f0;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
#app { height: 100%; }
.hidden { display: none !important; }
.screen { height: 100%; display: flex; flex-direction: column; }

button { cursor: pointer; border: none; border-radius: 10px; font-family: inherit;
  transition: transform .05s ease, filter .1s ease; }
button:active { transform: scale(0.97); filter: brightness(1.12); }

.msg { color: #ff9a9a; font-size: clamp(12px, 2.4vw, 15px); min-height: 1.2em;
  text-align: center; padding: 2px 8px; }
.primary { background: #3b82f6; color: #fff; }
.ghost { background: rgba(255,255,255,0.12); color: #dbe4f0; }

/* ===== 扫码加入（全屏摄像头） ===== */
#scan { position: relative; overflow: hidden; background: #000; }
#scan-video { width: 100%; height: 100%; object-fit: cover; }
#scan-canvas { display: none; }
.scan-frame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62vw; max-width: 260px; aspect-ratio: 1;
  border: 3px solid rgba(255,255,255,.85); border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55), 0 0 24px rgba(59,130,246,.6);
}
.scan-tip {
  position: absolute; top: calc(50% + 30vw + 20px); left: 0; right: 0;
  color: #fff; text-align: center; font-size: 16px; line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.scan-tip small { color: rgba(255,255,255,.75); }
.scan-cancel {
  position: absolute; bottom: calc(40px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.16); color: #fff; padding: 14px 40px;
  font-size: 17px; font-weight: 700; border-radius: 40px;
  border: 1px solid rgba(255,255,255,.3);
}
#scan-err {
  position: absolute; top: 18%; left: 24px; right: 24px; color: #ffb3b3;
  text-align: center; font-size: 15px; line-height: 1.7; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.scan-err-box { background: rgba(0,0,0,.55); border-radius: 14px; padding: 14px; }

/* ===== 入口 / 列表 ===== */
#entry { align-items: center; justify-content: center; }
.card { width: min(92vw, 460px); background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 28px 22px; }
.card h1 { font-size: clamp(22px, 6vw, 30px); text-align: center; margin-bottom: 6px; }
.hint { color: #9fb0c3; font-size: 14px; text-align: center; margin-bottom: 18px; }
input { width: 100%; padding: 16px; margin: 10px 0; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.25);
  color: #e8eef6; font-size: 18px; text-align: center; letter-spacing: 2px; }
.big-btn { width: 100%; padding: 18px; font-size: 20px; font-weight: 700; margin-top: 8px; }

.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.bar .back { background: rgba(255,255,255,0.1); color: #dbe4f0; padding: 8px 14px;
  font-size: 16px; border-radius: 10px; }
.bar span { font-weight: 600; font-size: clamp(14px, 3.2vw, 17px); }

#list-body { flex: 1; overflow: auto; padding: 0 14px 14px; }
.list-item { background: rgba(255,255,255,0.06); border-radius: 14px; padding: 16px;
  margin: 10px 0; display: flex; justify-content: space-between; align-items: center; }
.list-item .meta { font-size: 13px; color: #9fb0c3; margin-top: 4px; }
.list-item .sc { font-size: clamp(20px, 5vw, 26px); font-weight: 800; }

/* ===== 计分台：左侧80% + 右侧功能区 + 底部详情 ===== */
#detail { padding: 0; background: #1a1a1a; }
.detail-wrap { display: flex; height: 100%; width: 100%; }

/* 左侧主区域 */
.detail-main {
  flex: 1 1 80%; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(6px, 1vh, 12px) clamp(8px, 1.2vw, 16px);
  gap: clamp(6px, 1vh, 10px);
}

.match-header {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 2vw, 20px); padding: 4px 0; position: relative;
}
.match-header .back {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); color: #dbe4f0; padding: 6px 12px;
  font-size: 16px; border-radius: 10px;
}
.team-title {
  font-size: clamp(18px, 3.6vw, 28px); font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw;
}
.team-title.left { color: #7fb0ff; }
.team-title.right { color: #ff9a9a; }
.vs { font-size: clamp(16px, 3vw, 22px); font-weight: 700; color: #fbbf24; }

/* 球场站位：左右两半，每半上下两位（不再占满竖向空间，把高度让给比分） */
.court-board {
  position: relative;
  flex: 0 1 auto; min-height: 0; max-height: clamp(200px, 34vh, 380px);
  display: flex; align-items: stretch; justify-content: center;
  background: #242424; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(8px, 1.5vh, 14px) clamp(28px, 4vw, 44px);
  gap: 2px;
}
.court-half { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.court-half.left-half { padding-right: 6px; }
.court-half.right-half { padding-left: 6px; }
.slot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.5vw, 14px); width: 100%; height: 100%;
}
.slot-grid.vertical {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}
.slot-card {
  position: relative;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(8px, 1.5vh, 14px);
}
.slot-player {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: clamp(8px, 1.4vw, 12px);
  width: 100%; min-width: 0;
}
.slot-card .slot-name {
  font-size: clamp(16px, 3vw, 22px); font-weight: 700;
  text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1 1 0; min-width: 0;
}
.slot-avatar {
  width: clamp(36px, 7vw, 52px);
  height: clamp(36px, 7vw, 52px);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(16px, 3.6vw, 24px); font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 8px;
}
.slot-card.serving {
  background: rgba(239,68,68,0.85); border-color: #ef4444;
  box-shadow: 0 0 18px rgba(239,68,68,0.45);
}
.slot-card.serving .slot-name { color: #fff; }
.slot-card .serve-badge {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  background: #ef4444; color: #fff; font-size: 15px; font-weight: 800;
  width: 30px; height: 30px; border-radius: 6px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  z-index: 2;
}
.slot-card.serving .serve-badge { display: flex; }
.court-divider {
  width: 4px; flex-shrink: 0;
  background: repeating-linear-gradient(#fbbf24 0 10px, transparent 10px 18px);
  border-radius: 2px; opacity: .9;
}
.court-swap {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px;
  background: #3b82f6; color: #fff;
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0; z-index: 2;
}
.court-swap.side-left { left: 6px; }
.court-swap.side-right { right: 6px; }

/* 开局选发球方提示 */
.pick-hint {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(56,189,248,0.16); color: #7dd3fc;
  border: 1px solid rgba(56,189,248,0.5); border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 4px 14px; z-index: 3;
  white-space: nowrap;
}
.slot-card.pickable {
  cursor: pointer;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.35) inset;
}
.slot-card.pickable:hover {
  background: rgba(56,189,248,0.14);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.6) inset;
}

/* 比分区：比分是主角，两侧放方形加分按钮，按钮比分矮，且与比分明显隔开 */
.score-area {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 7vw, 100px);
  padding: clamp(6px, 1.2vh, 10px) clamp(16px, 4vw, 48px);
}
.score-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 4vw, 32px);
}
.big-score {
  font-size: clamp(120px, 28vh, 260px); font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
}
#score-left { color: #4ade80; text-shadow: 0 0 20px rgba(74,222,128,0.35); }
#score-right { color: #4ade80; text-shadow: 0 0 20px rgba(74,222,128,0.35); }
.score-sep { font-size: clamp(60px, 12vh, 100px); font-weight: 800; color: #fbbf24; }

/* 加分按钮：方形，比分矮，与比分物理隔开 */
.score-btn {
  border: none; cursor: pointer; font-weight: 800; color: #fff;
  border-radius: 14px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .05s ease, filter .1s ease;
}
.score-btn:active { transform: scale(0.96); }
.score-btn.side {
  flex: 0 0 auto;
  width: clamp(80px, 14vh, 140px);
  height: clamp(80px, 14vh, 140px);
  aspect-ratio: 1 / 1;
  font-size: clamp(30px, 5vw, 50px);
}
.score-btn.side#btn-score-left { background: #22c55e; }
.score-btn.side#btn-score-right { background: #ef4444; }
/* 加分按钮冻结态：灰显 + 禁点（未开始/已结束/已暂停时） */
.score-btn.disabled, .score-btn:disabled {
  opacity: 0.38; cursor: not-allowed; filter: grayscale(0.7);
  pointer-events: none;
}
.score-btn.disabled:active, .score-btn:disabled:active { transform: none; }

/* 计分详情（横向矩阵：左侧固定4名队员，右侧逐球一列横排可横滚） */
.score-log {
  background: #242424; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  flex: 0 0 auto; max-height: 200px; min-height: 96px;
  display: flex; flex-direction: column;
}
#score-log-body { flex: 1; min-height: 0; overflow: auto; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th, .log-table td { text-align: left; padding: 5px 6px; }
.log-table th { color: #9fb0c3; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); }
.log-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.log-empty { color: #6b7280; font-size: 13px; text-align: center; padding: 10px; }

/* 计分详情：第N分对齐矩阵。蓝队第N分、红队第N分在同一列，队名rowspan合并两行，带表格线 */
/* 固定列：第1列得分详情 / 第2列队伍名 / 第3列队员名 / 第4列起比分；写不下截断 */
.sl-score-table { table-layout: fixed; width: max-content; border-collapse: collapse; border-spacing: 0; font-size: 13px; color: #e8eef6; }
.sl-score-table td { text-align: center; padding: 0; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(255,255,255,0.18); }
.sl-label-cell { position: sticky; left: 0; z-index: 4; width: 60px; background: #242424; color: #9fb0c3; font-weight: 600; font-size: 12px; }
.sl-team-cell { position: sticky; left: 60px; z-index: 3; width: 54px; color: #fff; font-weight: 700; }
.sl-player-cell { position: sticky; left: 114px; z-index: 3; width: 80px; background: #242424; text-align: left; padding: 0 6px; color: #e8eef6; }
.sl-score-cell { width: 28px; height: 24px; color: #fff; font-weight: 700; }
.sl-score-cell.sl-empty { background: transparent; border: 1px solid rgba(255,255,255,0.10); }
.sl-team-a { background: #ef4444; }  /* 红队(A) */
.sl-team-b { background: #3b82f6; }  /* 蓝队(B) */
.sl-winner { box-shadow: inset 0 0 0 2px #f5c518; }
.log-empty { color: #9fb0c3; font-size: 13px; text-align: center; padding: 10px; }

/* 右侧功能区 */
.detail-sidebar {
  flex: 0 0 clamp(150px, 20%, 220px);
  display: flex; flex-direction: column;
  gap: 8px; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #202020; border-left: 1px solid rgba(255,255,255,0.08);
  overflow-y: auto;
}
/* 视频端连接面板 */
.side-links {
  background: #161a20; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.sl-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #e8eef6; }
.sl-auto { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; color: #9fb0c3; cursor: pointer; }
.sl-auto input { width: 15px; height: 15px; accent-color: #22c55e; }
.sl-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; background: #10141a; border: 1px solid rgba(255,255,255,0.08); }
.sl-item + .sl-item { margin-top: 6px; }
.sl-info { flex: 1; min-width: 0; }
.sl-name { font-size: 13px; font-weight: 700; color: #e8eef6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-meta { font-size: 11px; color: #7a8699; margin-top: 1px; }
.sl-pending { border-left: 3px solid #fbbf24; }
.sl-ok { background: #22c55e; color: #062b12; border: none; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.sl-no { background: rgba(255,255,255,0.12); color: #e8eef6; border: none; border-radius: 6px; padding: 5px 10px; font-size: 12px; }
.sl-kick { background: rgba(255,255,255,0.12); color: #9fb0c3; border: none; border-radius: 6px; padding: 5px 8px; font-size: 11px; }
.sl-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a4151; flex: 0 0 auto; }
.sl-dot.on { background: #22c55e; }
.sl-dot.off { background: #3a4151; }
.sl-empty { font-size: 12px; color: #5b6678; text-align: center; padding: 4px 0; }
.sl-section { font-size: 11px; color: #7a8699; letter-spacing: 1px; margin-top: 2px; }
/* 已连接：全宽缩略图卡片（点图/预览 → 弹层校对画面） */
.sl-connected-item { flex-direction: column; align-items: stretch; gap: 6px; }
.sl-thumb { border-radius: 6px; overflow: hidden; cursor: pointer; }
.sl-thumb-img { display: block; width: 100%; height: 72px; object-fit: cover; background: #0c0f14; }
.sl-thumb-none { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; font-size: 11px; color: #5b6678; border: 1px dashed rgba(255,255,255,0.18); border-radius: 6px; background: #10141a; cursor: pointer; }
.sl-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sl-btns { justify-content: flex-end; gap: 6px; }
.sl-prev { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.35); border-radius: 6px; padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.sl-prev:hover { background: rgba(59,130,246,0.30); }
.sl-off { opacity: 0.62; }
/* 机位预览弹层 */
.preview-box { width: min(720px, 94vw); }
.preview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.preview-title { font-size: 15px; font-weight: 700; color: #e8eef6; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-rec { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 4px; flex: 0 0 auto; }
.preview-x { background: rgba(255,255,255,0.08); border: none; color: #9fb0c3; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.preview-x:hover { background: rgba(255,255,255,0.18); color: #fff; }
.preview-stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.preview-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview-state { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,0.78)); color: #9fb0c3; }
.preview-state.ok { color: #6fcf97; }
.preview-state.warn { color: #fbbf24; }
.preview-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.preview-actions button { padding: 10px 18px; font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; }
/* 顶部视频预留区 */
.side-video {
  flex: 1 1 auto;
  min-height: 220px;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px;
  color: #5b6678; font-size: 13px; letter-spacing: 2px;
  overflow: hidden;
}
.cam-cell {
  border: 1px dashed rgba(255,255,255,0.20);
  border-radius: 8px; background: #121417;
  display: flex; align-items: center; justify-content: center;
  color: #7a8699; font-size: 13px; letter-spacing: 1px; min-height: 0; overflow: hidden;
}
.cam-cell .cam-label { opacity: .85; }
.cam-cell.active { border-color: #fbbf24; color: #fbbf24; box-shadow: 0 0 0 1px rgba(251,191,36,0.4) inset; }
.cam-cell { flex-direction: column; gap: 4px; }
.cam-cell .cam-dot { width:9px; height:9px; border-radius:50%; background:#3a4151; display:inline-block; }
.cam-cell.cam-on { border-color:#22c55e; }
.cam-cell.cam-on .cam-dot { background:#22c55e; }
.cam-cell.cam-wait { border-color:#fbbf24; }
.cam-cell.cam-wait .cam-dot { background:#fbbf24; }
.cam-cell.cam-rec { border-color:#ef4444; }
.cam-cell.cam-rec .cam-dot { background:#ef4444; animation:campulse 1s infinite; }
.cam-cell.cam-off .cam-dot { background:#3a4151; }
@keyframes campulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.55)} 50%{box-shadow:0 0 0 5px rgba(239,68,68,0)} }
.cam-cell .cam-state { font-size:11px; letter-spacing:0; opacity:.92; }
/* 底部按钮两列网格 */
.side-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.court-info {
  margin-top: auto;
  text-align: center; color: #9fb0c3; font-size: 14px;
  padding: 4px 6px; letter-spacing: 1px;
}
.court-info .court-num {
  color: #fbbf24; font-size: 22px; font-weight: 800; margin-left: 6px;
}
.side-btn {
  width: 100%; padding: 10px 4px; font-size: 13px; font-weight: 700;
  background: #3b82f6; color: #fff; border-radius: 10px;
}
.side-btn.ghost { background: rgba(255,255,255,0.12); }
.side-btn.warn { background: #f59e0b; color: #1a1a1a; }
.side-btn.star {
  background: transparent; color: #fbbf24;
  border: 2px solid #fbbf24;
}

/* ===== 弹层 ===== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal-box { background: #1f1f1f; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 20px; width: min(94vw, 520px); max-height: 86vh; overflow: auto; }
.modal-box h3 { margin: 0 0 14px; font-size: 18px; }
.setup-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.setup-row label { width: 76px; font-size: 14px; color: #9fb0c3; flex-shrink: 0; }
.setup-row select { flex: 1; padding: 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12); background: #0a1020; color: #e8eef6; font-size: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions button { flex: 1; padding: 14px; font-size: 16px; font-weight: 700; border-radius: 12px; }

/* 比赛结束确认弹框 */
.end-box { text-align: center; }
.end-body { font-size: 16px; line-height: 1.7; color: #e8eef6; margin-bottom: 6px; }
.end-body p { margin: 4px 0; }
#end-winner { font-weight: 800; color: #fbbf24; font-size: 18px; }
#end-score { font-weight: 800; color: #4ade80; font-size: 18px; }

/* ===== 竖屏兜底：功能区移到底部，主区在上 ===== */
@media (orientation: portrait) {
  body { overflow: auto; }
  .screen { height: auto; min-height: 100%; }
  #detail { height: 100%; }
  .detail-wrap { flex-direction: column; }
  .detail-main { flex: 1 1 auto; }
  .detail-sidebar {
    flex: 0 0 auto; flex-direction: column;
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    gap: 8px; justify-content: flex-start;
  }
  .side-btn { width: 100%; padding: 12px 6px; font-size: 14px; }
  .side-video { width: 100%; height: clamp(120px, 16vh, 200px); }
  .court-info { width: 100%; }
  .score-log { max-height: 200px; }
  .match-header .back { position: static; transform: none; }
  .match-header { justify-content: space-between; }
}

/* 比赛列表状态徽标：未开始/进行中/已结束/暂停 */
.st-badge { display:inline-block; padding:1px 7px; border-radius:10px; font-size:12px; font-weight:700; line-height:1.6; }
.st-pending { background:#e5e7eb; color:#374151; }
.st-ongoing { background:#dcfce7; color:#15803d; }
.st-paused  { background:#fef9c3; color:#a16207; }
.st-done    { background:#fee2e2; color:#b91c1c; }
