* { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Segoe UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    background: #f4f6f9; color: #24313f; line-height: 1.55;
  }

  /* ---------- 登入畫面 ---------- */
  #login-screen {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: #f4f6f9; padding: 16px;
  }
  #login-screen[hidden] { display: none; }  /* display:flex 會蓋過 hidden 屬性，需明確隱藏 */
  .login-box {
    background: #fff; border-radius: 14px; padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(20,40,60,.12); width: 100%; max-width: 360px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .login-title { font-size: 1.3rem; font-weight: 700; color: #1a3c5e; text-align: center; }
  .login-sub { font-size: .9rem; color: #6b7a89; text-align: center; margin-bottom: 4px; }
  .login-box input { padding: 10px 12px; font-size: 1rem; }
  .login-box .btn-primary { padding: 10px; font-size: 1rem; }
  .login-error { color: #b3261e; font-size: .88rem; text-align: center; min-height: 1.2em; }
  .login-lab { text-align: center; font-size: .88rem; color: #2f6fb3; text-decoration: none; }
  .login-lab:hover { text-decoration: underline; }
  .hdr-menu-wrap { position: relative; display: inline-block; }
  @media (max-width: 640px) { .hdr-lbl { display: none; } }   /* 手機只留 🌐 */
  .hdr-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px;
    background: #fff; border: 1px solid #c6d0da; border-radius: 8px; box-shadow: 0 6px 20px rgba(20,40,60,.18);
    padding: 4px; display: flex; flex-direction: column;
  }
  .hdr-menu[hidden] { display: none; }
  .hdr-menu a, .hdr-menu button {
    text-align: left; padding: 8px 12px; border-radius: 6px; font-size: .9rem; color: #24313f;
    text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
  }
  .hdr-menu a:hover, .hdr-menu button:hover { background: #eef2f6; }

  .hdr-btn {
    background: #fff; border: 1px solid #c6d0da;
    color: #24313f; margin-left: 8px;
  }
  .hdr-btn:hover { background: #eef2f6; }

  /* ---------- Header ---------- */
  header { background: #1a3c5e; color: #fff; position: sticky; top: 0; z-index: 10; }
  .header-inner {
    max-width: 1000px; margin: 0 auto; padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .brand { font-size: 1.15rem; font-weight: 700; cursor: pointer; }
  .userbox { font-size: .9rem; }
  .role-tag {
    background: rgba(255,255,255,.2); border-radius: 10px;
    padding: 2px 8px; margin-left: 6px; font-size: .75rem;
  }

  /* ---------- Layout ---------- */
  main { max-width: 1000px; margin: 0 auto; padding: 24px 16px 60px; }
  .page-title { font-size: 1.4rem; margin-bottom: 4px; }
  .page-sub { color: #6b7a89; margin-bottom: 20px; }
  .sub-title { margin: 26px 0 10px; font-size: 1.05rem; color: #1a3c5e; }
  .role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .role-who { font-size: .85rem; font-weight: 400; color: #55636f; white-space: nowrap; }
  .view-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 18px;
  }
  .view-head .btn-back, .view-head .back-pair { order: 2; }   /* 回首頁／回上頁移到右上，標題留在左邊 */
  .back-pair { display: inline-flex; gap: 6px; flex-shrink: 0; }
  .back-pair .btn-back { white-space: nowrap; }
  @media (max-width: 640px) { .back-pair .btn-back { padding: 5px 8px; font-size: .82rem; } }
  .btn-back {
    background: none; border: 1px solid #c6d0da; border-radius: 6px;
    padding: 6px 12px; cursor: pointer; color: #43566a; font-size: .9rem;
  }
  .btn-back:hover { background: #e8edf2; }

  /* ---------- 首頁值日生橫幅 ---------- */
  .duty-banner {
    background: #eaf2fc; border: 1px solid #bcd4ee; border-radius: 10px;
    padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; color: #1a3c5e;
    cursor: pointer; line-height: 1.7;
  }
  .duty-banner:hover { background: #ddebfa; }
  /* 首頁定期提醒橫幅（暖色，不可點） */
  .remind-banner { background: #fdf3d7; border-color: #ecd9a0; color: #7a5b00; cursor: default; }
  .remind-banner:hover { background: #fdf3d7; }
  /* 首頁未填使用紀錄警示（紅色，只有本人看得到；不可整塊點，按各列的補填） */
  .unfilled-banner { background: #fdecea; border-color: #f0b8b0; color: #8a2a1c; cursor: default; }
  .unfilled-banner:hover { background: #fdecea; }
  .unfilled-banner.danger { background: #fbd9d4; border-color: #e08a7c; }
  .unfilled-head { font-weight: 600; }
  .unfilled-list { margin: 6px 0 0; padding: 0; list-style: none; }
  .unfilled-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
  .todo-panel { background: #eef6ee; border-color: #b9dbb9; color: #24502a; cursor: default; }
  .todo-panel:hover { background: #eef6ee; }
  .todo-head { font-weight: 600; }
  .todo-sub { font-size: 0.85em; opacity: 0.85; }
  .todo-list { margin: 6px 0 0; padding: 0; list-style: none; }
  .todo-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 6px 0; border-top: 1px dashed #c8e2c8; }
  .todo-list li:first-child { border-top: none; }
  .todo-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
  .todo-text .muted { color: #5a7a5e; font-size: .85rem; }
  .todo-list .btn { flex: none; }
  .remind-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .remind-ack { flex: none; }
  .unfilled-list li + li { border-top: 1px dashed #f0b8b0; }
  .unfilled-list .muted { color: #a86a60; font-size: .85rem; }
  .remind-item { white-space: pre-wrap; }   /* 依儲存格內容保留換行 */
  .remind-item + .remind-item { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ecd9a0; }

  /* ---------- 頁首功能分類導覽列（buildNav_ 產生；手機版改成一排圖示、選單撐滿寬度） ---------- */
  .app-nav { border-top: 1px solid rgba(255,255,255,.16); position: relative; }
  .app-nav:empty { display: none; }
  .nav-inner { max-width: 1000px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; }
  .nav-wrap { position: relative; }
  .nav-btn {
    position: relative; display: flex; align-items: center; gap: 6px; background: none; border: 0;
    color: rgba(255,255,255,.82); font: inherit; font-size: .92rem; padding: 8px 12px; cursor: pointer;
    border-radius: 6px 6px 0 0;
  }
  .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
  .nav-btn.is-active { color: #fff; box-shadow: inset 0 -3px 0 #ffd76a; }
  .nav-btn:focus-visible { outline: 2px solid #ffd76a; outline-offset: -2px; }
  .nav-admin .nav-label { color: #f3d98a; }
  .nav-short { display: none; }
  .nav-caret { font-size: .7rem; opacity: .8; }
  .nav-dot { position: absolute; top: 7px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 2px #1a3c5e; }
  .nav-menu {
    position: absolute; left: 0; top: 100%; z-index: 30; background: #fff; color: #24313f;
    width: max-content; min-width: 100%; max-width: min(320px, calc(100vw - 16px));   /* 寬度貼合文字，說明太長就換行 */
    border: 1px solid #c6d0da; border-radius: 0 8px 8px 8px; box-shadow: 0 8px 24px rgba(20,40,60,.18);
    padding: 4px; display: flex; flex-direction: column;
  }
  .nav-menu[hidden] { display: none; }
  .nav-wrap:last-child .nav-menu { left: auto; right: 0; border-radius: 8px 0 8px 8px; }
  .nav-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 6px;
    background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  }
  /* 滑過／鍵盤聚焦／手機按下：藍字＋淡藍底，圖示右推 2px；目前所在頁另加左側琥珀細條 */
  .nav-item:hover, .nav-item:focus-visible, .nav-item:active { background: #eef4fb; color: #1565c0; outline: none; }
  .nav-item:hover .nav-item-icon, .nav-item:focus-visible .nav-item-icon { transform: translateX(2px); }
  .nav-item:hover .nav-item-desc, .nav-item:focus-visible .nav-item-desc { color: #4a6a8a; }
  .nav-item.is-current { background: #eaf2fc; color: #1565c0; box-shadow: inset 3px 0 0 #e8b53a; }
  .nav-item-icon { font-size: 1.2rem; width: 1.5em; text-align: center; flex: none; line-height: 1.3; transition: transform .12s; }
  .nav-item-title, .nav-item-desc { transition: color .12s; }
  @media (prefers-reduced-motion: reduce) { .nav-item-icon, .nav-item-title, .nav-item-desc { transition: none; } }
  .nav-item-icon .card-svg, .dash-tile-icon .card-svg { display: inline-block; height: 1.3rem; vertical-align: middle; }
  .nav-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .nav-item-title { font-weight: 600; font-size: .92rem; }
  .nav-item-desc { font-size: .78rem; color: #6b7a89; line-height: 1.4; }
  .nav-item-badge { align-self: center; background: #e53935; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 9px; padding: 0 6px; }
  @media (max-width: 640px) {
    .nav-inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0; gap: 0; }
    .nav-btn { flex-direction: column; justify-content: center; gap: 0; width: 100%; padding: 6px 2px 7px; font-size: .75rem; border-radius: 0; }
    .nav-icon { font-size: 1.3rem; line-height: 1.25; }
    .nav-label, .nav-caret { display: none; }
    .nav-short { display: block; }
    .nav-dot { top: 5px; right: calc(50% - 18px); }
    /* 選單掛在點的按鈕下方置中；最左、最右兩組貼齊螢幕邊緣以免超出 */
    .nav-menu { top: calc(100% + 4px); left: 50%; transform: translateX(-50%); border-radius: 10px; }
    .nav-wrap:first-child .nav-menu { left: 0; transform: none; border-radius: 0 10px 10px 10px; }
    .nav-wrap:last-child .nav-menu { left: auto; right: 0; transform: none; border-radius: 10px 0 10px 10px; }
    .nav-item { padding: 12px 14px; align-items: center; }
    .nav-item-desc { display: none; }
  }

  /* ---------- 首頁儀表板：需要處理（暖色、要動手）／最新消息（冷色、看看就好）＋最近使用 ---------- */
  #feature-cards[hidden] { display: none; }   /* 卡片只當導覽列的資料來源；.card-grid 的 display:grid 會蓋過 hidden */
  .dash-date { color: #6b7a89; font-size: .9rem; margin-bottom: 10px; }
  .dash-date { margin-bottom: 16px; }
  .dash-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  @media (max-width: 760px) { .dash-cols { grid-template-columns: minmax(0, 1fr); } }
  .dash-panel { border-radius: 14px; overflow: hidden; min-width: 0; }
  .dash-head { display: flex; align-items: center; gap: 10px; padding: 11px 18px; }
  .dash-body { padding: 4px 18px 10px; }
  .dash-tag { font-size: .72rem; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
  .dash-count { margin-left: auto; min-width: 1.8em; padding: 0 8px; border-radius: 999px; text-align: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
  /* 需要處理：暖橘、白底、粗框＋陰影，按鈕實心 */
  .dash-act { background: #fff; border: 2px solid #f3d4a4; box-shadow: 0 2px 10px rgba(180,83,9,.08); }
  .dash-act .dash-head { background: #fff4e3; border-bottom: 1px solid #f3d4a4; }
  .dash-act .dash-ph { color: #b45309; }
  .dash-act .dash-tag, .dash-act .dash-count { background: #b45309; color: #fff; }
  .dash-act .todo-list .btn-primary { background: #c2610c; border-color: #c2610c; color: #fff; }
  .dash-act .todo-list .btn-primary:hover { background: #a8520a; border-color: #a8520a; }
  /* 最新消息：冷藍、淡底、平面，只用文字連結 */
  .dash-info { background: #f7fafd; border: 1px solid #cfe0f2; }
  .dash-info .dash-head { background: #eaf2fb; border-bottom: 1px solid #cfe0f2; }
  .dash-info .dash-ph { color: #2f6fb3; }
  .dash-info .dash-tag { color: #2f6fb3; border: 1px solid #cfe0f2; }
  .dash-info .remind-ack { background: none; border: 0; color: #2f6fb3; padding: 0; font-size: .82rem; }
  .dash-info .remind-ack:hover { text-decoration: underline; }
  .dash-ph, .dash-sh { font-size: 1rem; color: #1a3c5e; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .dash-ph { margin: 0; font-size: 1.05rem; }
  .dash-sh { margin: 24px 0 10px; }
  .dash-ph small, .dash-sh small { font-size: .78rem; font-weight: 400; color: #6b7a89; }
  .dash-muted { color: #6b7a89; font-size: .85rem; padding: 4px 0 8px; }
  .dash-empty { text-align: center; padding: 14px 8px 18px; }
  .dash-empty-icon { font-size: 1.8rem; line-height: 1.3; }
  .dash-empty-title { font-weight: 600; }
  /* 原本的橫幅放進面板：未填紀錄保留紅框；待辦與公告改成面板內的清單 */
  .dash-panel .unfilled-banner { border-width: 1px; border-style: solid; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: .92rem; line-height: 1.6; }
  .dash-panel .todo-panel, .dash-panel .remind-banner { background: none; border: 0; color: inherit; padding: 0; margin: 0; cursor: default; }
  .dash-panel .todo-list { margin: 0; }
  .dash-panel .todo-list > li { padding: 11px 0; border-top: 1px solid #edf1f5; }
  .dash-panel .todo-list > li:first-child { border-top: none; }
  .dash-panel .todo-text { font-weight: 500; }
  .dash-panel .todo-text .muted { color: #6b7a89; font-weight: 400; }
  .todo-pill { display: inline-block; font-size: .78rem; font-weight: 400; padding: 0 8px; border-radius: 999px; background: #fff4e3; color: #b45309; border: 1px solid #f3d4a4; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .todo-items { font-size: .84rem; font-weight: 400; color: #6b7a89; margin-top: 2px; }
  .todo-items summary { cursor: pointer; list-style: none; display: flex; gap: 6px; }
  .todo-items summary::-webkit-details-marker { display: none; }
  .todo-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .todo-more, .todo-less { color: #2f6fb3; white-space: nowrap; flex: none; }
  .todo-items:not([open]) .todo-less, .todo-items[open] .todo-more, .todo-items[open] .todo-preview { display: none; }
  .todo-items ul { margin: 4px 0 0; padding: 0; list-style: none; line-height: 1.7; }
  .todo-items li { border: 0; padding: 0; display: block; }
  .dash-panel .remind-item { padding: 8px 0; font-size: .92rem; }
  .dash-panel .remind-item + .remind-item { margin-top: 0; border-top-color: #edf1f5; }
  .dash-row, .dash-duty {
    display: flex; align-items: center; gap: 10px; width: calc(100% + 12px); margin: 0 -6px; padding: 8px 6px;
    border-radius: 8px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  }
  .dash-row:hover, .dash-duty:hover { background: #eef2f6; }
  .dash-row[hidden], .dash-duty[hidden] { display: none; }
  .dash-duty { display: block; font-size: .92rem; line-height: 1.7; }
  .dash-row-icon { font-size: 1.1rem; width: 1.4em; text-align: center; flex: none; }
  .dash-row-text { flex: 1; min-width: 0; font-size: .92rem; }
  .dash-go { color: #2f6fb3; font-size: .82rem; white-space: nowrap; flex: none; }
  .dash-recent { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  @media (max-width: 560px) { .dash-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .dash-tile {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid transparent;
    border-radius: 10px; box-shadow: 0 1px 4px rgba(20,40,60,.08); cursor: pointer; text-align: left;
    font: inherit; color: inherit; min-width: 0;
  }
  .dash-tile:hover { border-color: #c6d0da; }
  .dash-tile-icon { font-size: 1.4rem; flex: none; line-height: 1; }
  .dash-tile-title { font-weight: 600; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }

  /* ---------- 首頁卡片 ---------- */
  .card-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  }
  @media (max-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 440px) {   /* 手機：兩張一列，卡片縮小，少滑一點 */
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-grid .card { padding: 14px 12px; }
    .card-grid .card-icon { font-size: 1.5rem; margin-bottom: 4px; }
    .card-grid .card-svg { height: 1.7rem; }
    .card-grid .card-title { font-size: .95rem; }
    .card-grid .card-desc { font-size: .76rem; line-height: 1.35; }
  }
  .card {
    background: #fff; border-radius: 12px; padding: 22px 18px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08); cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    border: 1px solid transparent; position: relative;
  }
  .card-badge {
    position: absolute; top: 12px; right: 12px; min-width: 20px; height: 20px;
    padding: 0 6px; border-radius: 10px; background: #e53935; color: #fff;
    font-size: .78rem; font-weight: 700; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }
  .card:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(20,40,60,.14); }
  .card.disabled { opacity: .45; cursor: default; }
  .card.disabled:hover { transform: none; box-shadow: 0 1px 4px rgba(20,40,60,.08); }
  .card.admin-card { border-color: #d8b74a; }
  .card.locked { opacity: .55; }
  .card.locked .card-title::after { content: ' 🔒'; font-size: .85em; }
  .card.locked:hover { transform: none; box-shadow: 0 1px 4px rgba(20,40,60,.08); }
  .card-icon { font-size: 1.9rem; margin-bottom: 8px; }
  .card-svg { display: block; height: 2.1rem; width: auto; }   /* 用 SVG 畫的卡片圖示（例：線上數據分析的擬合曲線） */
  .card-title { font-weight: 700; margin-bottom: 4px; }
  .card-desc { font-size: .85rem; color: #6b7a89; }

  /* ---------- 工具列 / 表單 ---------- */
  .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
  .toolbar input[type="search"], .toolbar input[type="email"], .toolbar input[type="text"] {
    flex: 1; min-width: 180px;
  }
  input, select, textarea {
    padding: 8px 10px; border: 1px solid #c6d0da; border-radius: 6px;
    font-size: .92rem; background: #fff; font-family: inherit;
  }
  input:focus, select:focus, textarea:focus { outline: 2px solid #7fa8cc; border-color: transparent; }
  textarea { resize: vertical; }
  .chk { font-size: .88rem; color: #43566a; white-space: nowrap; }
  .form-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px; background: #fff; padding: 16px; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }
  .info-line { font-size: .88rem; color: #6b7a89; margin-bottom: 6px; }
  .role-cfg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    background: #fff; padding: 16px; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }
  .role-cfg-col { display: flex; flex-direction: column; gap: 10px; }
  .role-cfg-col > h4 {
    margin: 0 0 2px; font-size: 1rem; color: #1a3c5e;
    padding-bottom: 6px; border-bottom: 1px solid #e6edf3;
  }
  .role-cfg label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: #6b7a89; }
  .role-cfg-save { margin-top: 12px; }
  @media (max-width: 620px) { .role-cfg { grid-template-columns: 1fr; } }
  .date-field { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: #6b7a89; }

  /* ---------- 實驗室清潔地圖 ---------- */
  .clean-map-wrap {
    background: #fff; border-radius: 10px; padding: 8px; margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08); overflow-x: auto; text-align: center;
  }
  /* 顯示尺寸縮小約 30%（比例由 height:auto 維持不變）；手機仍用滿版避免太小 */
  .clean-map { width: 70%; max-width: 100%; height: auto; border-radius: 6px; }
  @media (max-width: 560px) { .clean-map { width: 100%; } }

  /* ---------- 模組內分頁列 ---------- */
  .tabbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
  .tabbar button {
    padding: 8px 16px; border: 1px solid #c6d0da; border-radius: 20px;
    background: #fff; cursor: pointer; font-size: .9rem; font-family: inherit; color: #43566a;
  }
  .tabbar button:hover { background: #eef2f6; }
  .tabbar button.active { background: #1a3c5e; color: #fff; border-color: #1a3c5e; }

  /* 成員必看指南：依內容關聯固定排成 3／4／3 三列；各分頁按鈕維持相同固定寬度 */
  #guide-tabs { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  #guide-tabs .guide-tab-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  #guide-tabs .guide-tab-row button { flex: 0 0 138px; width: 138px; padding: 8px 12px; }
  @media (max-width: 560px) {
    #guide-tabs .guide-tab-row button { flex-basis: 132px; width: 132px; }
  }

  /* ---------- 區塊面板 ---------- */
  .panel {
    background: #fff; border-radius: 10px; padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }

  /* ---------- 實驗室活動 ---------- */
  .act-card { margin-bottom: 12px; cursor: pointer; transition: box-shadow .15s; }
  .act-card:hover { box-shadow: 0 2px 10px rgba(20,40,60,.16); }
  .act-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
  .act-name { font-size: 1.05rem; font-weight: 700; color: #1a3c5e; }
  .act-result { margin: 8px 0; padding: 8px 12px; background: #e2f3e6; border-radius: 8px; color: #1e5f34; }
  .act-admin-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; padding-bottom: 10px; border-bottom: 1px solid #eef2f6; }
  .act-vote-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
  .act-opt { padding: 10px 12px; border: 1px solid #e3e9ef; border-radius: 8px; }
  .act-opt-title { font-weight: 600; color: #2c3e50; margin-bottom: 6px; }
  .act-opt-stat { margin-bottom: 4px; }
  .act-opt-names { font-size: .82rem; color: #6b7a89; line-height: 1.5; }
  .act-opt-pick { display: flex; gap: 8px; margin-top: 8px; }
  .act-pick-btn {
    padding: 5px 14px; border: 1px solid #c6d0da; border-radius: 16px;
    background: #fff; font-size: .88rem; cursor: pointer; color: #43566a; font-family: inherit;
  }
  .act-pick-btn:hover { border-color: #7fa8cc; }
  .act-pick-btn.picked { background: #1a3c5e; border-color: #1a3c5e; color: #fff; }
  .act-opt-manage { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
  .act-opt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .act-opt-row > span { flex: 1; min-width: 140px; font-size: .9rem; }

  /* ---------- 群組發信 ---------- */
  /* 群組發信：附加檔案 */
  .bc-files { margin-top: 14px; border: 1px solid #e3e9ef; border-radius: 8px; padding: 10px 12px; background: #f8fafc; }
  .bc-files-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
  #bc-file-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .bc-file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
  .bc-file-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
  .bc-file-item a { word-break: break-all; }
  .bc-rcpt-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
  .bc-quick { display: flex; gap: 6px; flex-wrap: wrap; }
  .bc-rcpt-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px;
    max-height: 260px; overflow: auto; border: 1px solid #e3e9ef; border-radius: 8px; padding: 10px;
  }
  .bc-rcpt-item { display: flex; align-items: center; gap: 6px; }
  .bc-log-item { margin-bottom: 10px; }
  .bc-log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .bc-log-subject { font-weight: 700; color: #1a3c5e; }
  .bc-log-body { white-space: pre-wrap; margin: 6px 0; color: #33424f; line-height: 1.55; }

  /* ---------- 使用統計 ---------- */
  .stat-table { border-collapse: collapse; min-width: 100%; font-size: .86rem; }
  .stat-table th, .stat-table td { border: 1px solid #e7edf2; padding: 6px 8px; text-align: center; white-space: nowrap; }
  .stat-table thead th { background: #f0f4f8; color: #43566a; position: sticky; top: 0; }
  .stat-name-h, .stat-name { text-align: left !important; position: sticky; left: 0; background: #fff; font-weight: 600; z-index: 1; }
  .stat-table thead .stat-name-h { z-index: 2; background: #f0f4f8; }
  .stat-cell { min-width: 42px; color: #2c3e50; }
  /* 統計分析：虛擬實驗室／數據分析 */
  .learn-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
  .learn-kpi { background: #fff; border: 1px solid #e7edf2; border-radius: 10px; padding: 8px 14px; display: flex; flex-direction: column; min-width: 120px; }
  .learn-kpi span { font-size: .78rem; color: #64748b; }
  .learn-kpi b { font-size: 1.3rem; color: #1a3c5e; font-variant-numeric: tabular-nums; }
  .learn-kpi small { font-size: .74rem; color: #94a3b8; }
  .learn-sub { color: #94a3b8; font-size: .78rem; font-weight: 400; }
  .learn-none td { color: #b6c2cf; }
  .learn-prog-cell { text-align: left !important; font-variant-numeric: tabular-nums; }
  .learn-bar { display: inline-block; width: 90px; height: 7px; background: #e7edf2; border-radius: 99px; overflow: hidden; vertical-align: middle; }
  .learn-bar i { display: block; height: 100%; background: #2563eb; }
  .learn-bar i.ok { background: #15803d; }
  .stat-total { font-weight: 700; background: #f7fafc; }
  /* 使用統計 drill-down（點學生展開各儀器使用次數） */
  .stat-caret { display: inline-block; width: 1em; color: #6b7a89; font-size: .8em; }
  .stat-row-x { cursor: pointer; }
  .stat-row-x:hover .stat-name { color: #1a3c5e; text-decoration: underline; }
  .stat-detail[hidden] { display: none; }
  .stat-detail td { text-align: left !important; white-space: normal; background: #f7fafc; padding: 8px 12px; }
  .stat-detail-label { color: #43566a; font-size: .82rem; margin-right: 4px; }
  .inst-chip { display: inline-block; background: #eaf1f8; color: #1a3c5e;
    border-radius: 10px; padding: 3px 10px; margin: 3px 4px 3px 0; font-size: .82rem; }
  .inst-chip b { margin-left: 6px; font-weight: 700; }

  /* ---------- 操作紀錄（統計分析） ---------- */
  .oplog-h { margin: 18px 0 8px; font-size: .95rem; color: #43566a; }
  .oplog-detail td, .oplog-sum td { text-align: left; }
  .oplog-time { font-variant-numeric: tabular-nums; color: #5a6b7c; font-size: .82rem; }
  .oplog-never { color: #b0392f; font-weight: 600; }
  .oplog-badge { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }
  .oplog-login { background: #e6f0fb; color: #1a5fb4; }
  .oplog-op { background: #eaf5ec; color: #256b39; }

  /* ---------- 能力自評（填寫表，個人研究進度頁） ---------- */
  .comp-progress { font-size: .85rem; color: #43566a; font-weight: 600; }
  .comp-bar-outer { height: 6px; background: #eef2f6; border-radius: 999px; overflow: hidden; margin: 8px 0 10px; }
  .comp-bar { height: 100%; background: #1a5fb4; transition: width .2s; }
  .comp-anchor { font-size: .8rem; color: #5f6b78; background: #f7fafc; border: 1px solid #e7edf2;
    border-radius: 8px; padding: 6px 10px; margin: 0 0 14px; }
  .comp-cat { font-size: .82rem; font-weight: 700; color: #1a3c5e; margin: 16px 0 8px; }
  .comp-item { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #eef2f6; }
  .comp-item.comp-unfilled { background: #fffdf4; border-color: #f0e2b8; }
  .comp-item-name { font-size: .92rem; color: #2c3e50; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .comp-info { color: #9aa7b4; cursor: help; font-size: .85rem; }
  .comp-untag { font-size: .72rem; color: #9a6b00; background: #fdf3d7; border-radius: 999px; padding: 1px 8px; }
  .comp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .comp-pill, .comp-num { border: 1px solid #cfd9e2; background: #fff; color: #43566a;
    border-radius: 8px; font-size: .84rem; cursor: pointer; line-height: 1; }
  .comp-pill { padding: 6px 12px; border-radius: 999px; }
  .comp-num { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .comp-pill:hover, .comp-num:hover { border-color: #1a5fb4; }
  .comp-pill[disabled], .comp-num[disabled] { cursor: default; opacity: .55; }
  .comp-pill[disabled]:hover, .comp-num[disabled]:hover { border-color: #cfd9e2; }
  .comp-num.sel { background: #1a5fb4; border-color: #1a5fb4; color: #fff; font-weight: 700; }
  .comp-pill.sel { background: #5f6b78; border-color: #5f6b78; color: #fff; }
  .comp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin-top: 14px; border-top: 1px solid #eef2f6; padding-top: 12px; }
  /* 老師標「必要」：學生看到綠標、整列淡綠左框 */
  .comp-req-slot { margin-left: auto; }
  .comp-req-badge { font-size: .74rem; font-weight: 600; color: #2e7d32; background: #e6f4ea;
    border: 1px solid #b6e0c2; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
  .comp-req-check { font-size: .82rem; color: #5f6b78; display: inline-flex; align-items: center;
    gap: 4px; white-space: nowrap; cursor: pointer; }
  .comp-req-check input { cursor: pointer; }
  .comp-item.comp-required { border-left: 3px solid #56b877; }
  .comp-item.comp-required .comp-req-check { color: #2e7d32; font-weight: 600; }
  /* 必要項目但學生選「未使用」→ 整列亮紅提示 */
  .comp-item.comp-req-alert { border-left: 3px solid #e24b4a; background: #fdeceb; }
  .comp-item.comp-req-alert .comp-req-badge { color: #a32d2d; background: #fbe3e1; border-color: #f0b3ae; }
  .comp-alert-msg { margin-top: 8px; font-size: .82rem; color: #a32d2d; background: #fbe3e1;
    border: 1px solid #f0b3ae; border-radius: 6px; padding: 6px 10px; }
  .comp-alert-msg[hidden] { display: none; }

  /* ---------- 能力自評（統計矩陣，統計分析頁） ---------- */
  .stats-modebar { margin-top: 4px; align-items: center; }
  .modebar-sep { width: 1px; height: 22px; background: #cfd9e2; margin: 0 4px; }
  .cmx-table, .cmx-growth { border-collapse: collapse; min-width: 100%; font-size: .82rem; }
  .cmx-table th, .cmx-table td, .cmx-growth th, .cmx-growth td {
    border: 1px solid #e7edf2; padding: 5px 6px; text-align: center; white-space: nowrap; }
  .cmx-table thead th, .cmx-growth thead th { background: #f0f4f8; color: #43566a; position: sticky; top: 0; }
  .cmx-cat { font-weight: 700; color: #1a3c5e; }
  .cmx-abbr { font-weight: 500; color: #43566a; }
  .cmx-name-h, .cmx-name { text-align: left !important; position: sticky; left: 0; background: #fff; font-weight: 600; z-index: 1; }
  .cmx-table thead .cmx-name-h { z-index: 2; background: #f0f4f8; }
  .cmx-cell { min-width: 34px; color: #2c3e50; }
  .cmx-blank { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #f3f5f7 4px, #f3f5f7 5px); }
  .cmx-zero { background: #f1f3f5; color: #9aa7b4; }
  .cmx-yes { background: #eaf3de; color: #3b6d11; font-weight: 700; }
  .cmx-done, .cmx-done-h { font-weight: 600; background: #f7fafc; color: #43566a; }
  .cmx-zone td { text-align: left !important; background: #eef2f6; color: #1a3c5e;
    font-weight: 700; font-size: .78rem; padding: 4px 10px; }
  .cmx-avg td { font-weight: 700; background: #f7fafc; }
  .cmx-avg .cmx-name { background: #f7fafc; }
  .cmx-row-x { cursor: pointer; }
  .cmx-row-x:hover .cmx-name { color: #1a3c5e; text-decoration: underline; }
  .cmx-detail[hidden] { display: none; }
  .cmx-detail td { text-align: left !important; background: #f7fafc; padding: 8px 10px; }
  .cmx-gtime, .cmx-gtime-h { text-align: left !important; color: #43566a; }
  .cmx-abbr { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  /* 定期檢查合規狀態表 */
  .insp-table { border-collapse: collapse; min-width: 100%; font-size: .86rem; }
  .insp-table th, .insp-table td { border: 1px solid #e7edf2; padding: 7px 8px; text-align: center; }
  .insp-table thead th { background: #f0f4f8; color: #43566a; font-weight: 600; }
  .insp-item, .insp-item-h { text-align: left !important; }
  .insp-row-bad { background: #fdf5f4; }
  .insp-ok { color: #2e7d32; font-weight: 600; }
  .insp-bad { color: #a32d2d; font-weight: 600; }

  /* ---------- 指導風格對頻（研究進度頁；師生互動與能力自評之間） ---------- */
  .exp-sec .prog-sec-head { margin-bottom: 6px; }
  .exp-legend { display: flex; gap: 16px; font-size: .8rem; color: #5f6b78; margin: 4px 0 14px; }
  .exp-lg-stu::before { content: '●'; color: #1a5fb4; margin-right: 4px; }
  .exp-lg-tea::before { content: '◯'; color: #5f6b78; margin-right: 4px; }
  .exp-dim { margin-bottom: 16px; }
  .exp-aspect { font-size: .9rem; color: #2c3e50; margin-bottom: 8px; }
  .exp-gaptag { font-size: .74rem; color: #9a6b00; background: #fdf3d7; border-radius: 999px; padding: 1px 8px; margin-left: 8px; }
  .exp-gaptag[hidden] { display: none; }
  .exp-scale { display: flex; align-items: center; gap: 10px; }
  .exp-pole { flex: 0 0 88px; font-size: .78rem; color: #6b7a89; line-height: 1.2; }
  .exp-pole-l { text-align: right; }
  .exp-pole-r { text-align: left; }
  .exp-track { position: relative; flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 4px; }
  .exp-track::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 3px;
    background: #d7dee6; border-radius: 2px; transform: translateY(-50%); }
  .exp-pt { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 2px solid #cfd9e2; cursor: pointer; padding: 0; }
  .exp-pt:hover { border-color: #1a5fb4; }
  .exp-pt[disabled] { cursor: default; }
  .exp-pt.stu { background: #1a5fb4; border-color: #1a5fb4; }
  .exp-pt.tea { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6b7a89; }
  .exp-teacherexp { margin: 6px 0 14px; }
  .exp-te-head { font-size: .82rem; font-weight: 600; color: #1a3c5e; margin-bottom: 6px; }
  .exp-te-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .exp-te-chip { font-size: .84rem; background: #eef4fa; border: 1px solid #d6e3f0; color: #33475b;
    border-radius: 999px; padding: 4px 12px; }
  .exp-othernote { font-size: .86rem; color: #33475b; background: #f7fafc; border-left: 3px solid #7fa8cc;
    border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
  .exp-othernote b { color: #1a3c5e; margin-right: 4px; }
  .exp-note { width: 100%; box-sizing: border-box; font-family: inherit; font-size: .9rem;
    padding: 8px 10px; border: 1px solid #cfd9e2; border-radius: 8px; resize: vertical; }
  .exp-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
  /* 窄螢幕：10 個點放不下 → 兩極標籤同一行、量尺獨占整行 */
  @media (max-width: 560px) {
    .exp-scale { flex-wrap: wrap; }
    .exp-pole { flex: 0 0 46%; }
    .exp-pole-l { order: 1; text-align: left; }
    .exp-pole-r { order: 2; }
    .exp-track { order: 3; flex-basis: 100%; }
  }

  /* ---------- Modal 內雙欄表單 ---------- */
  .form-2col { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-2col label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: #43566a; }
  .form-2col .span2 { grid-column: span 2; }
  .modal-wide { max-width: 560px; }
  @media (max-width: 480px) {
    .form-2col { grid-template-columns: 1fr; }
    .form-2col .span2 { grid-column: span 1; }
  }

  /* ---------- 個人研究進度：總覽卡片＋分區（每區固定顏色） ---------- */
  #view-research { --c: #2f6fb3; --bg: #eaf2fb; --bd: #cfe0f2; }
  .rp-book  { --c: #2f6fb3; --bg: #eaf2fb; --bd: #cfe0f2; }
  .rp-log   { --c: #6d4fc2; --bg: #f1edfb; --bd: #ddd3f5; }
  .rp-rep   { --c: #0f7a6c; --bg: #e6f5f2; --bd: #c3e6df; }
  .rp-talk  { --c: #b45309; --bg: #fff4e3; --bd: #f3d4a4; }
  .rp-skill { --c: #2e7d32; --bg: #eaf5ea; --bd: #c5e3c6; }
  .rp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); }
  .rp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
  .rp-tiles:empty { display: none; }
  .rp-tile {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; text-align: left;
    border-radius: 12px; border: 1px solid var(--bd); background: var(--bg); color: #1d2a36;
    font: inherit; cursor: pointer; transition: box-shadow .15s;
  }
  .rp-tile:hover, .rp-tile:focus-visible { box-shadow: 0 0 0 2px var(--c); outline: none; }
  .rp-tile-k { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--c); }
  .rp-tile-v { font-size: 1.3rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
  .rp-tile-s { font-size: .78rem; color: #55636f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rp-warn { color: #b42318 !important; }
  .rp-sec { background: #fff; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
  .rp-sec-h {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px; min-height: 52px; box-sizing: border-box;
    background: var(--bg); list-style: none;
  }
  .rp-sec-h::-webkit-details-marker { display: none; }
  details.rp-sec > .rp-sec-h { cursor: pointer; background: #fff; }
  details.rp-sec > .rp-sec-h:hover, details.rp-sec[open] > .rp-sec-h { background: var(--bg); }
  .rp-sec-t { margin: 0; font-size: 1rem; color: var(--c); white-space: nowrap; }
  .rp-sum { flex: 1; min-width: 0; font-size: .85rem; color: #55636f; }
  .rp-chev { color: #8796a5; font-size: .82rem; white-space: nowrap; }
  .rp-chev::after { content: '展開 ▾'; }
  details[open] > .rp-sec-h .rp-chev::after { content: '收合 ▴'; }
  html[lang="en"] .rp-chev::after { content: 'Show ▾'; }
  html[lang="en"] details[open] > .rp-sec-h .rp-chev::after { content: 'Hide ▴'; }
  .rp-sec-b { padding: 14px 18px 18px; }
  .rp-sec-b .prog-sec { margin-bottom: 0; }
  .rp-sec-b .prog-sec + .prog-sec, #expect-area .prog-sec:not(:empty) + * { margin-top: 18px; }
  .rp-actions .next-disc { margin: 0; flex: 1; }
  .rp-actions { gap: 10px; }
  .rp-grow { flex: 1; }
  .rp-seg { display: inline-flex; border: 1px solid #2f6fb3; border-radius: 8px; overflow: hidden; }
  .rp-seg button { border: 0; padding: 5px 16px; font: inherit; font-size: .85rem; cursor: pointer; background: #fff; color: #2f6fb3; min-height: 32px; }
  .rp-seg button[aria-pressed="true"] { background: #2f6fb3; color: #fff; font-weight: 700; }
  .rp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .82rem; color: #55636f; }
  .rp-legend > span { display: inline-flex; align-items: center; gap: 6px; }
  .rp-sw { display: inline-block; width: 16px; height: 12px; border-radius: 3px; }
  .rp-sw-free { background: #fff; border: 1.5px solid #6fa3d8; box-sizing: border-box; }
  .rp-sw-teacher { background: rgba(120,130,140,.42); }
  .rp-sw-student { background: rgba(245,205,70,.45); }
  /* 週曆裡的可約時段：白底藍框 */
  .cal-free { position: absolute; left: 1px; right: 1px; pointer-events: none; z-index: 0;
    background: #fff; border: 1.5px solid #6fa3d8; border-radius: 4px; box-sizing: border-box; }
  /* 月曆（週一～週五） */
  .mcal { min-width: 0; }
  .mcal-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mcal-row + .mcal-row { border-top: 1px solid #e3e8ee; }
  .mcal-head > div { text-align: center; padding: 8px 0; font-size: .82rem; color: #6b7a89; background: #fafbfc; }
  .mcal-head > div + div, .mcal-day + .mcal-day { border-left: 1px solid #e3e8ee; }
  .mcal-day {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; min-width: 0;
    padding: 8px; box-sizing: border-box; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer;
  }
  .mcal-day:hover { background: #f3f8fd; }
  .mcal-today { background: #f3f8fd; box-shadow: inset 0 3px 0 #2f6fb3; }
  .mcal-past { background: #f3f5f7; }
  .mcal-num { font-size: .88rem; font-weight: 600; color: #1d2a36; }
  .mcal-past .mcal-num, .mcal-other .mcal-num { color: #9aa7b3; }
  .mcal-free { font-size: .74rem; padding: 1px 6px; border-radius: 5px; border: 1.5px solid #6fa3d8; color: #1d4f86; background: #fff; white-space: nowrap; }
  .mcal-ev { font-size: .72rem; padding: 1px 6px; border-radius: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
  .mcal-ev-pending { outline: 2px dotted rgba(255,255,255,.9); outline-offset: -3px; }
  .mcal-note { font-size: .74rem; color: #8796a5; }
  @media (max-width: 860px) {
    .rp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 560px) {
    .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rp-tile-v { font-size: 1.1rem; }
    .rp-sec-h { flex-wrap: wrap; padding: 10px 14px; }
    .rp-sum { flex-basis: 100%; order: 3; }
    .rp-sec-b { padding: 12px; }
    .mcal-day { min-height: 72px; padding: 5px 3px; }
    .mcal-free { font-size: .66rem; padding: 1px 3px; }
    .mcal-ev { font-size: .64rem; padding: 1px 3px; }
  }

  /* ---------- 預約週曆 ---------- */
  .cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
  .inst-filter {
    margin: 4px 0 12px; background: #fff; border-radius: 8px; padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }
  .inst-filter-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #edf1f5;
  }
  .inst-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 12px;
  }
  .inst-chk {
    display: flex; align-items: center; gap: 6px; font-size: .85rem; cursor: pointer;
    min-width: 0;   /* 讓過長名稱可省略 */
  }
  .inst-chk .sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; flex: none; }
  .inst-chk .inst-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bk-inst { font-weight: 600; }
  @media (max-width: 560px) {
    .inst-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  }
  .cal-outer {
    background: #fff; border-radius: 10px; overflow-x: auto;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }
  .cal-grid {
    display: grid; grid-template-columns: 52px repeat(7, minmax(96px, 1fr));
    min-width: 740px;
  }
  .cal-corner { border-bottom: 2px solid #dde5ec; }
  .cal-dayhead {
    text-align: center; padding: 8px 4px 6px; font-weight: 600; font-size: .88rem;
    color: #43566a; border-bottom: 2px solid #dde5ec; border-left: 1px solid #edf1f5;
  }
  .cal-dayhead small { font-weight: 400; color: #8a97a5; }
  .cal-dayhead.cal-today { color: #1a5fb4; background: #eaf2fc; border-radius: 8px 8px 0 0; }
  .cal-times { position: relative; }
  .cal-hour {
    font-size: .72rem; color: #8a97a5; text-align: right; padding-right: 6px;
    box-sizing: border-box; border-top: 1px solid transparent;
  }
  .cal-day {
    position: relative; border-left: 1px solid #edf1f5; cursor: pointer;
    background: repeating-linear-gradient(to bottom, transparent 0 33px, #edf1f5 33px 34px);
  }
  .cal-day:hover { background-color: #f8fafc; }
  .cal-today-col { background-color: #f5f9ff; }
  .cal-block {
    position: absolute; left: 0; margin-left: 2px; border-radius: 6px;
    box-sizing: border-box; color: #fff; font-size: .72rem; line-height: 1.2;
    padding: 2px 5px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.25);
    z-index: 2; cursor: pointer;
  }
  .cal-block:hover { filter: brightness(1.1); }
  .cal-block .cal-note { font-weight: 400; opacity: .92; font-size: .92em; }

  /* ---------- 核取清單（預約授權多選） ---------- */
  .checkbox-list {
    max-height: 220px; overflow-y: auto; border: 1px solid #e2e9f0; border-radius: 8px;
    padding: 8px 10px; display: flex; flex-direction: column; gap: 6px;
  }
  .checkbox-list .chk { white-space: normal; }

  /* ---------- 帶入編號提示列 ---------- */
  .fill-bar {
    display: flex; flex-direction: column; gap: 4px;
    font-size: .82rem; color: #6b7a89;
    background: #f0f4f8; padding: 10px 12px; border-radius: 8px;
  }

  /* ---------- 留言板 ---------- */
  .msg-card {
    background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }
  .msg-head { font-size: .92rem; display: flex; align-items: center; flex-wrap: wrap; }
  .msg-time { color: #8a97a5; font-size: .78rem; margin-left: auto; padding-left: 10px; }
  .msg-content { margin: 8px 0; white-space: pre-wrap; font-size: .95rem; }
  .msg-content[hidden], .msg-reply-content[hidden] { display: none; }  /* 行內編輯時隱藏原文 */
  .msg-actions { display: flex; gap: 8px; align-items: center; }
  .msg-replies {
    margin-top: 10px; border-left: 3px solid #e2e9f0; padding-left: 12px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .msg-reply { background: #f7f9fb; border-radius: 7px; padding: 8px 10px; font-size: .88rem; }
  .msg-reply-deleted { color: #8a97a5; font-style: italic; }
  .msg-reply-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .msg-reply .msg-time { margin-left: 8px; }
  .msg-reply-head .msg-time { margin-left: auto; }
  .msg-reply-content { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
  .msg-reply-toggle { margin-top: 8px; }
  .msg-replybar { margin-top: 10px; padding: 8px; background: #f4f7fa; border-radius: 7px; }
  .msg-replybar[hidden] { display: none; }
  .msg-replybar textarea { display: block; width: 100%; box-sizing: border-box; resize: vertical; }
  .msg-reply-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
  .msg-reply-actions .chk { margin-right: auto; }

  /* ---------- 研究進度 ---------- */
  #research-tabs { flex-direction: column; align-items: stretch; gap: 6px; }
  .prog-zone { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
  .prog-zone-label {
    font-size: .78rem; color: #6b7a89; background: #eef2f6; border-radius: 10px;
    padding: 2px 10px; margin-right: 4px;
  }
  .prog-sec { margin-bottom: 22px; }
  .prog-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .prog-list { display: flex; flex-direction: column; gap: 10px; }
  .prog-item {
    background: #fff; border-radius: 10px; padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(20,40,60,.08); border-left: 3px solid #7fa8cc;
  }
  .prog-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
  .prog-date { color: #1a5fb4; font-weight: 600; font-size: .85rem; }
  .prog-author { color: #8a97a5; font-size: .8rem; margin-left: auto; }
  .prog-content { margin-top: 6px; white-space: pre-wrap; font-size: .92rem; }
  .prog-link { margin-top: 6px; font-size: .88rem; word-break: break-all; }
  .next-disc {
    background: #eaf2fc; border: 1px solid #bcd4ee; border-radius: 8px;
    padding: 8px 12px; margin-bottom: 10px; font-size: .9rem; color: #1a3c5e;
  }
  .cal-block.cal-sched { border: 2px dashed rgba(255,255,255,.85); }
  /* 討論日曆較矮，色塊與時間軸字體縮小以容納 */
  #disc-calendar .cal-block { font-size: .72rem; line-height: 1.15; padding: 2px 4px; }
  #disc-calendar .cal-hour { font-size: .7rem; }
  /* 每 30 分一格的格線（DCAL_ROW=40 → 每 20px 一條；只覆蓋 background-image 以保留「今天」欄底色） */
  #disc-calendar .cal-day { background-image: repeating-linear-gradient(to bottom, transparent 0 19px, #edf1f5 19px 20px); }
  /* 一次顯示一週（週一～週五）*/
  #disc-calendar .disc-grid {
    grid-template-columns: 44px repeat(5, minmax(72px, 1fr)); min-width: 0;
  }
  /* Group meeting：全寬桃紅半透明區塊（點擊穿透到日期格，仍可預約） */
  .cal-group { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
    background: rgba(233, 30, 99, 0.22); border: 1px solid rgba(233, 30, 99, 0.55);
    color: #8a1846; font-size: .62rem; line-height: 1.1; padding: 2px 4px; font-weight: 700;
    border-radius: 4px; box-sizing: border-box; overflow: hidden; }
  /* 課表忙碌底色：老師沒空＝灰、學生沒空＝淡黃、重疊＝都沒空、白＝雙方都有空 */
  .cal-busy { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0; }
  .cal-busy-teacher { background: rgba(120,130,140,.30); }
  .cal-busy-student { background: rgba(245,205,70,.32); }
  #disc-calendar .disc-grid .cal-dayhead { font-size: .72rem; padding: 5px 1px; }
  #disc-calendar .disc-grid .cal-dayhead small { font-size: .66rem; }
  /* 課表：點格塗忙碌（Modal 內）與全體空堂熱區（統計分析） */
  .sched-wrap { max-height: 60vh; overflow: auto; }
  .sched-grid { border-collapse: collapse; width: 100%; }
  .sched-grid th { font-size: .78rem; color: #43566a; font-weight: 600; padding: 4px 2px;
    position: sticky; top: 0; background: #f0f4f8; z-index: 1; }
  .sched-grid .sched-time { font-size: .72rem; color: #8a97a5; text-align: right; padding: 0 6px;
    white-space: nowrap; width: 44px; height: 15px; }
  .sched-cell { border: 1px solid #e7edf2; height: 15px; min-width: 40px; cursor: pointer; user-select: none; }
  .sched-cell.on { background: #f2a37a; border-color: #e07f4f; }
  .sched-cell:hover { outline: 1px solid #1a5fb4; outline-offset: -1px; }
  .ft-grid { border-collapse: collapse; min-width: 100%; font-size: .82rem; }
  .ft-grid th, .ft-grid td { border: 1px solid #e7edf2; text-align: center; padding: 3px 4px; }
  .ft-grid thead th { background: #f0f4f8; color: #43566a; font-weight: 600; }
  .ft-time, .ft-time-h { color: #8a97a5; font-size: .74rem; text-align: right !important; white-space: nowrap; }
  .ft-cell { width: 60px; font-weight: 600; }
  .ft-hoverable { cursor: help; }
  /* 課表總覽 hover 名單提示 */
  .ft-tip { position: fixed; z-index: 9999; max-width: 320px; background: #fff; border: 1px solid #cfd9e2;
    border-radius: 8px; box-shadow: 0 4px 16px rgba(20,40,60,.18); padding: 8px 10px; font-size: .82rem;
    color: #33475b; pointer-events: none; line-height: 1.5; }
  .ft-tip[hidden] { display: none; }
  .ft-tip-head { font-weight: 600; color: #1a3c5e; margin-bottom: 4px; }
  .ft-tip-free { color: #2e7d32; }
  .ft-tip-busy { color: #a32d2d; }
  .cal-block.cal-pending {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px);
    outline: 2px dotted rgba(255,255,255,.9); outline-offset: -3px;
  }
  .slot-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
  .slot-row input[type="date"] { flex: 1; min-width: 0; }
  .slot-btns { display: flex; flex-wrap: wrap; gap: 6px; }

  /* ---------- 職務注意事項（安全官／網路管理員） ---------- */
  .note-cat {
    font-weight: 700; color: #1a3c5e; margin: 10px 0 4px; font-size: .92rem;
    border-left: 3px solid #7fa8cc; padding-left: 8px;
  }
  .note-cat:first-child { margin-top: 0; }
  .note-list { margin: 0 0 6px 22px; display: flex; flex-direction: column; gap: 5px; }
  .note-list li { font-size: .92rem; word-break: break-word; }

  /* ---------- 成員指南 ---------- */
  .guide-list { display: flex; flex-direction: column; gap: 14px; }
  .guide-item { display: flex; align-items: flex-start; gap: 10px; }
  .guide-item-main { flex: 1; min-width: 0; }
  .guide-name { font-size: .95rem; font-weight: 600; }
  .guide-desc { font-size: .86rem; color: #6b7a89; margin-top: 2px; word-break: break-word; }
  .guide-sign { flex: none; }

  /* ---------- 師生互動小留言板 ---------- */
  .chat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
  .chat-msg { background: #f4f6f9; border-radius: 8px; padding: 8px 12px; }
  .chat-msg.chat-teacher { background: #eaf2fc; }
  .chat-head { display: flex; align-items: center; gap: 8px; font-size: .84rem; flex-wrap: wrap; }
  .chat-time { color: #8a97a5; font-size: .78rem; margin-left: auto; }
  .chat-body { margin-top: 4px; white-space: pre-wrap; font-size: .92rem; word-break: break-word; }
  .chat-compose { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
  .chat-compose textarea { flex: 1; }
  .chat-replies {
    margin-top: 8px; padding-left: 12px; border-left: 3px solid #dbe3ec;
    display: flex; flex-direction: column; gap: 6px;
  }
  .chat-reply { background: #fff; border-radius: 6px; padding: 6px 10px; }
  .chat-reply.chat-teacher { background: #f1f7ff; }
  .chat-reply-toggle { margin-top: 8px; }
  .chat-replybar { display: flex; gap: 6px; align-items: flex-end; margin-top: 8px; }
  .chat-replybar[hidden] { display: none; }
  .chat-replybar textarea { flex: 1; min-width: 0; resize: vertical; }
  .chat-reply-actions { display: flex; flex-direction: column; gap: 5px; }

  /* ---------- 檢查表項目（逐項認領：只送出自己勾選的） ---------- */
  .check-head { display: flex; justify-content: space-between; align-items: center; gap: 10px;
    flex-wrap: wrap; font-size: .88rem; color: #43566a; margin-bottom: 6px; }
  .check-bar-outer { height: 6px; background: #eef2f6; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
  .check-bar { height: 100%; background: #1a5fb4; transition: width .2s; }
  .check-group { font-size: .8rem; font-weight: 700; color: #43566a; margin: 14px 0 6px; }
  .check-group-mine { color: #1a5fb4; }
  .check-row { background: #fff; border: 1px solid #eef2f6; border-radius: 8px;
    padding: 9px 12px; margin-bottom: 6px; }
  .check-row.check-mine { border-color: #bcd4ee; border-left: 3px solid #1a5fb4; background: #fbfdff; }
  .check-claim { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
  .check-claim input { margin-top: 3px; cursor: pointer; flex: none; }
  .check-row-name { flex: 1; font-size: .9rem; color: #2c3e50; }
  .check-owner { display: block; margin-top: 2px; color: #1a6b4f; font-size: .78rem; }
  .check-inputs { display: flex; gap: 8px; margin-top: 8px; padding-left: 24px; flex-wrap: wrap; }
  .check-inputs[hidden] { display: none; }
  .check-inputs select { max-width: 110px; }
  .check-inputs input { flex: 1; min-width: 150px; }
  /* 本期已完成：唯讀綠列，避免重複填寫 */
  .check-row.check-done { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    background: #f2f9f4; border-color: #cfe8d8; }
  .check-done-mark { color: #2e7d32; font-weight: 700; }
  .check-done-by { color: #2e7d32; font-size: .78rem; white-space: nowrap; }
  @media (max-width: 480px) {
    .check-inputs { padding-left: 0; }
  }

  /* ---------- 按鈕 ---------- */
  .btn {
    padding: 8px 14px; border: 1px solid #c6d0da; border-radius: 6px;
    background: #fff; cursor: pointer; font-size: .9rem; font-family: inherit;
    white-space: nowrap;
  }
  .btn:hover { background: #eef2f6; }
  .btn-primary { background: #1a3c5e; color: #fff; border-color: #1a3c5e; }
  .btn-primary:hover { background: #25527e; }
  .btn:disabled { opacity: .55; cursor: wait; }
  .btn-small { padding: 4px 10px; font-size: .82rem; }

  /* ---------- 表格 ---------- */
  .table-wrap {
    background: #fff; border-radius: 10px; overflow-x: auto;
    box-shadow: 0 1px 4px rgba(20,40,60,.08);
  }
  table { width: 100%; border-collapse: collapse; font-size: .9rem; }
  th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #edf1f5; white-space: nowrap; }
  th { background: #f0f4f8; color: #43566a; font-weight: 600; position: sticky; top: 0; }
  /* 可點欄位排序的表頭 */
  th.sortable { cursor: pointer; user-select: none; }
  th.sortable:hover { background: #e6edf4; }
  th.sortable .sort-ind { font-size: .8em; color: #b3bfca; margin-left: 2px; }
  th.sortable.sorted, th.sortable.sorted .sort-ind { color: #1a3c5e; }
  tr:hover td { background: #f8fafc; }
  .loading { padding: 28px; text-align: center; color: #8a97a5; }

  .tag { border-radius: 10px; padding: 2px 9px; font-size: .78rem; white-space: nowrap; }
  .freq-tag { margin-left: 8px; font-size: .72rem; padding: 1px 7px; }
  .tag-ok    { background: #e2f3e6; color: #1e7a35; }
  .tag-low   { background: #fdf3d7; color: #9a6b00; }
  .tag-empty { background: #fbe0e0; color: #b3261e; }
  .tag-gray  { background: #e8edf2; color: #55636f; }
  .tag-warn  { background: #fbe0e0; color: #b3261e; }

  /* ---------- Modal ---------- */
  .modal-mask {
    position: fixed; inset: 0; background: rgba(15,30,45,.45);
    display: flex; align-items: center; justify-content: center; z-index: 50;
    padding: 16px; overflow-y: auto;
  }
  .modal-mask[hidden] { display: none; }  /* display:flex 會蓋過 hidden 屬性，需明確隱藏 */
  .modal {
    background: #fff; border-radius: 12px; width: 100%; max-width: 420px;
    padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
    max-height: 92vh; overflow-y: auto; margin: auto;
  }
  .modal h3 { margin-bottom: 14px; color: #1a3c5e; }
  .modal-body { display: flex; flex-direction: column; gap: 12px; }
  .modal-body label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: #43566a; }
  .modal [hidden] { display: none; }  /* display:flex 會蓋過 hidden 屬性，需明確隱藏視窗內的隱藏欄位 */
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal-foot {
    display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px;
    position: sticky; bottom: -20px; background: #fff; padding-top: 12px;
  }
  .inline-fee { display: flex; align-items: center; gap: 4px; min-width: 155px; }
  .inline-fee input { width: 108px; min-width: 90px; padding: 5px 6px; }
  td.batch-cell { vertical-align: top; padding-top: 16px; }
  @media (max-width: 560px) {
    .modal-mask { align-items: flex-start; padding: 10px; }
    .modal { padding: 16px; max-height: 96vh; }
    .row2 { grid-template-columns: 1fr; }   /* 窄螢幕改單欄，欄位不被擠壓 */
  }

  /* ---------- Toast ---------- */
  #toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
    background: #24313f; color: #fff; padding: 10px 20px; border-radius: 8px;
    font-size: .9rem; z-index: 99; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  }
  #toast.error { background: #b3261e; }

  @media (max-width: 560px) {
    .page-title { font-size: 1.2rem; }
    th, td { padding: 7px 8px; font-size: .84rem; }
  }
  /* ---------- 系統管理：模組卡片與通用表格編輯器 ---------- */
  .adm-grid { margin-bottom: 8px; }
  .adm-card { padding: 16px 16px; }
  .adm-card .card-icon { font-size: 1.6rem; margin-bottom: 6px; }
  .adm-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
  .adm-title { font-size: 1.15rem; margin: 0; }
  #adm-hint { margin-top: 0; }
  .adm-table td { vertical-align: middle; }
  .adm-table .adm-long { max-width: 260px; }
  .adm-table tr.adm-dim td { color: #9aa6b2; }
  .adm-row-actions { white-space: nowrap; text-align: right; }
  .adm-row-actions .btn { margin-left: 4px; }
  .adm-empty { text-align: center; color: #8795a1; padding: 18px; }
  .adm-req { color: #d33; }
  .adm-help { font-size: .76rem; color: #8795a1; font-weight: normal; white-space: normal; }
  .adm-chk { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px !important;
    flex-wrap: wrap; white-space: normal; }
  .adm-chk .adm-help { flex-basis: 100%; padding-left: 22px; }
  #modal-adm-edit .modal, #modal-gm-batch .modal { max-width: 640px; }
  .adm-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
  .adm-edit-actions[hidden] { display: none; }
  .adm-saving { margin-right: auto; font-size: .82rem; color: #6b7a89; align-self: center; }
  .btn-danger { color: #c62828; border-color: #efb4b4; }
  .btn-danger:hover { background: #fdecec; }
  .gmb-preview { padding-top: 10px; max-height: 260px; overflow: auto; }
  .gmb-preview table { font-size: .84rem; }
  .adm-table tbody tr[data-row] { cursor: pointer; }
  .adm-table tbody tr[data-row]:hover td { background: #f5f9fd; }
  @media (max-width: 440px) {   /* 手機：卡片兩欄，少捲動 */
    .adm-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .adm-card { padding: 12px 10px; }
    .adm-card .card-desc { font-size: .74rem; }
  }

  /* 統計分析：ICCLab 的一天 */
  .game-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-bottom: 8px; }
  .game-q { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
  .game-q-h { font-size: .9rem; margin-bottom: 6px; line-height: 1.4; }
  .game-a { display: grid; grid-template-columns: 1fr 70px 24px; gap: 8px; align-items: center; font-size: .84rem; padding: 2px 0; }
  .game-a-t { line-height: 1.3; }
  .game-a .learn-bar { width: 100%; }
  .game-a-n { text-align: right; font-weight: 600; }
  .game-detail { padding: 6px 4px; font-size: .86rem; text-align: left; white-space: normal; position: sticky; left: 0; max-width: calc(100vw - 56px); }
  .game-res { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0 0 8px; }
  .game-res dt { color: #64748b; }
  .game-res dd { margin: 0; }
  .game-log { margin: 0; padding-left: 1.4em; line-height: 1.6; }
  /* ---------- 統計分析：網站瀏覽 ---------- */
  .web-chart-wrap { position: relative; background: #fff; border: 1px solid #e7edf2; border-radius: 10px; padding: 10px 8px 4px; }
  .web-chart { width: 100%; height: auto; display: block; }
  .web-grid { stroke: #eef2f6; stroke-width: 1; }
  .web-base { stroke: #c6d0da; stroke-width: 1; }
  .web-ax { font-size: 11px; fill: #64748b; font-family: inherit; }
  .web-bar { fill: #2f6fb3; }
  .web-hit { fill: transparent; cursor: default; }
  .web-hit.on { fill: rgba(47, 111, 179, .08); }
  .web-tip { position: absolute; top: 6px; width: 110px; background: #24313f; color: #fff; font-size: .8rem; line-height: 1.45; padding: 6px 10px; border-radius: 8px; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
  .web-detail { margin: 8px 0 4px; font-size: .88rem; }
  .web-detail summary { cursor: pointer; color: #2f6fb3; }
  .web-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .web-share td:last-child { min-width: 160px; }
  .web-sbar { position: relative; background: #eef2f6; border-radius: 999px; height: 16px; overflow: hidden; }
  .web-sbar i { display: block; height: 100%; background: #2f6fb3; border-radius: 999px; }
  .web-sbar span { position: absolute; right: 6px; top: 0; font-size: .72rem; line-height: 16px; color: #24313f; }
  @media (max-width: 760px) { .web-grid2 { grid-template-columns: 1fr; } }