/* 全站樣式 13/16：今日點名細條版、Hero 數字條、header 按鈕（切換系統／身分）、操作日誌 */
/* ===== 今日點名 — 瘦身細條版（次要資訊，不搶戲） ===== */
.att-summary-banner {
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(15, 44, 64, 0.05) !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(15, 44, 64, 0.02) !important;
}
.att-summary-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}
.att-summary-strip-ring {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.att-summary-strip-ring svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(244, 162, 97, 0.16));
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.att-summary-strip-text {
  flex: 1;
  min-width: 0;
}
.att-summary-strip-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2D2A26;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.att-summary-strip-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
  margin-top: 2px;
  font-weight: 500;
}
.att-summary-strip.done .att-summary-strip-meta { color: #3E8E57; font-weight: 600; }
.att-summary-strip-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.att-summary-strip-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(15, 44, 64, 0.08);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.att-summary-strip-btn:hover {
  transform: translateY(-1px);
}
.att-summary-strip-btn.line:hover {
  color: #06C755;
  background: rgba(6, 199, 85, 0.08);
  border-color: rgba(6, 199, 85, 0.28);
}
.att-summary-strip-btn.telegram:hover {
  color: #229ED9;
  background: rgba(34, 158, 217, 0.08);
  border-color: rgba(34, 158, 217, 0.28);
}
.att-summary-strip-btn:active { transform: translateY(0) scale(0.94); }
.att-summary-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.att-summary-hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.att-summary-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2px;
}
.att-summary-bignum {
  font-family: "Fraunces", "Plus Jakarta Sans", serif;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01" 1;
}
.att-summary-bignum.pending .att-summary-bignum-val {
  background: linear-gradient(135deg, #C9652A 0%, #E07B35 60%, #E07B35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.att-summary-bignum.done .att-summary-bignum-val {
  background: linear-gradient(135deg, #3E8E57 0%, #3E8E57 60%, #3E8E57 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.att-summary-bignum-pct {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  opacity: 0.5;
  margin-left: 4px;
  vertical-align: 0.55em;
  color: var(--text-secondary);
}
.att-summary-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
  margin-top: 2px;
  font-weight: 500;
}
.att-summary-ring-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Hero 下方 stat 條（已到 / 缺席 / 總人數） */
.att-summary-stats {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 44, 64, 0.06);
}
.att-summary-stat {
  flex: 1;
  text-align: center;
  padding: 2px 0;
}
.att-summary-stat-val {
  font-family: "Fraunces", "Plus Jakarta Sans", serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.att-summary-stat-val.present { color: #3E8E57; }
.att-summary-stat-val.absent { color: #E07B35; }
.att-summary-stat-val.total { color: #2D2A26; }
.att-summary-stat-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 5px;
  opacity: 0.85;
}
.att-summary-stat-sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(15, 44, 64, 0.12), transparent);
}
.att-summary-hero-right {
  flex-shrink: 0;
}
.att-summary-ring {
  position: relative;
  width: 84px;
  height: 84px;
}
.att-summary-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(0);
  filter: drop-shadow(0 2px 6px rgba(244, 162, 97, 0.18));
}
.att-summary-ring-fill {
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.att-summary-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.att-summary-pct {
  font-family: "Plus Jakarta Sans", "Fraunces", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.att-summary-pct span {
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 1px;
  opacity: 0.7;
}
.att-summary-hero-right.done .att-summary-pct { color: #3E8E57; }
.att-summary-hero-right.pending .att-summary-pct {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.att-summary-frac {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.att-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.att-summary-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #2D2A26;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.att-summary-icon {
  width: 32px; height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244,162,97,0.2), rgba(244,162,97,0.08));
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244,162,97,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 1px 2px rgba(244,162,97,0.12);
  flex-shrink: 0;
}
.att-summary-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 44, 64, 0.05);
  margin: -2px 0 12px;
  overflow: hidden;
  position: relative;
}
.att-summary-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.att-summary-progress-fill.done {
  background: linear-gradient(90deg, #3E8E57, #3E8E57);
  box-shadow: 0 0 8px rgba(106,176,123,0.4);
}
.att-summary-progress-fill.pending {
  background: linear-gradient(90deg, #E07B35, #E07B35);
  box-shadow: 0 0 8px rgba(244,162,97,0.35);
}
.att-summary-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 60%);
  border-radius: inherit;
}
.att-summary-count {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 44, 64, 0.04);
  border: 1px solid rgba(15, 44, 64, 0.06);
  box-shadow: none;
}
.att-summary-count.done {
  color: #3E8E57;
  background: rgba(106, 176, 123, 0.12);
  border-color: rgba(106, 176, 123, 0.22);
}
.att-summary-count.pending {
  color: #E07B35;
  background: rgba(244, 162, 97, 0.1);
  border-color: rgba(244, 162, 97, 0.24);
}
.att-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.att-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  border: 1px solid;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(15, 44, 64, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.att-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 6px rgba(15, 44, 64, 0.06);
}
.att-chip.done {
  background: linear-gradient(180deg, rgba(106, 176, 123, 0.16) 0%, rgba(106, 176, 123, 0.1) 100%);
  border-color: rgba(106, 176, 123, 0.32);
  color: #3E8E57;
}
.att-chip.pending {
  background: linear-gradient(180deg, rgba(244, 162, 97, 0.18) 0%, rgba(244, 162, 97, 0.1) 100%);
  border-color: rgba(244, 162, 97, 0.36);
  color: #E07B35;
}
.att-summary-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.att-summary-actions button {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: -0.1px;
}
.att-summary-actions button svg {
  flex-shrink: 0;
  margin-top: -1px;
}
.att-action-line {
  background: #06C755;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(6, 199, 85, 0.2), 0 4px 10px -4px rgba(6, 199, 85, 0.35);
}
.att-action-line:hover {
  background: #3E8E57;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(6, 199, 85, 0.25), 0 6px 14px -4px rgba(6, 199, 85, 0.4);
}
.att-action-telegram {
  background: #229ED9;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(34, 158, 217, 0.2), 0 4px 10px -4px rgba(34, 158, 217, 0.35);
}
.att-action-telegram:hover {
  background: #3872B8;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(34, 158, 217, 0.25), 0 6px 14px -4px rgba(34, 158, 217, 0.4);
}
.att-action-both {
  background: linear-gradient(180deg, #E07B35 0%, #E07B35 100%);
  border-color: rgba(231, 111, 81, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 2px 6px -1px rgba(231, 111, 81, 0.32);
}
.att-action-both:hover {
  background: linear-gradient(180deg, #E07B35 0%, #E07B35 100%);
  transform: translateY(-1px);
}
.att-summary-actions button:active { transform: translateY(0) scale(0.97); transition: transform 0.08s ease; }

/* 點名卡片：堂數包剩餘警示徽章 */
.att-card { position: relative; }
.att-batch-warn {
  position: absolute;
  top: -6px;
  right: -4px;
  background: var(--orange, #E07B35);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(60,40,20,.08);
  z-index: 1;
  pointer-events: none;
}

/* 切換系統按鈕（次按鈕：描邊風格，跟 #sys-current 拉開層次）*/
/* #btn-impersonate（切換身分）沿用同一套外觀，只是顏色偏紫，跟「切換系統」區隔 */
#btn-switch-system,
#btn-impersonate {
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #fff;
  color: rgba(197, 84, 44, 0.85);
  border: 1px solid rgba(231, 111, 81, 0.32);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#btn-switch-system:hover {
  background: #FDEEDC;
  border-color: rgba(231, 111, 81, 0.55);
  color: #E07B35;
  transform: translateY(-1px);
}
#btn-switch-system:active { transform: translateY(0) scale(0.97); transition: transform 0.08s ease; }

#btn-impersonate {
  display: flex;
  color: rgba(88, 86, 214, 0.9);
  border-color: rgba(88, 86, 214, 0.3);
}
#btn-impersonate:hover {
  background: #E6EFFA;
  border-color: rgba(88, 86, 214, 0.55);
  color: #3872B8;
  transform: translateY(-1px);
}
#btn-impersonate:active { transform: translateY(0) scale(0.97); transition: transform 0.08s ease; }

/* header 那一排四顆按鈕（學生系統／切換系統／切換身分／待辦事項）統一尺寸。
   2026-09-04：原本各寫各的 padding／font-size，高低寬窄不一看起來很雜。
   要改尺寸改這一塊就好，別回頭去改上面各自的 padding。 */
#sys-current,
#btn-switch-system,
#btn-impersonate,
#todo-bell-btn {
  box-sizing: border-box;
  height: 34px;
  padding: 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  line-height: 1;
}

/* 設定返回按鈕（取代 inline style）*/
#settings-back-btn {
  padding: 5px 12px;
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ====== 操作日誌 ====== */
.al-date-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--separator);
  background: white;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}
.al-date-btn.al-active { background: var(--accent); color: white; border-color: var(--accent); }
.al-badge { display:inline-block; padding:2px 8px; border-radius:8px; font-size:0.75rem; font-weight:600; white-space:nowrap; }
.al-post   { background:#E6EFFA; color:#3872B8; }
.al-put    { background:#FDEEDC; color:#E07B35; }
.al-delete { background:#FCE8E4; color:#CF4130; }
.al-ok     { background:#EDE7DD; color:#3E8E57; }
.al-fail   { background:#FDEEDC; color:#E07B35; }
.al-mod    { background:var(--bg); color:var(--text-secondary); }
.al-expand-btn {
  background: none;
  border: 1px solid var(--separator);
  border-radius: 8px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.al-expand-btn:hover { background: var(--bg); }
.al-mode-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--separator);
  background: white;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
}
.al-mode-btn.al-mode-active { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
.al-payload {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  color: #2D2A26;
  background: #FBF8F3;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top:6px;
}

