#tab-points { --ctp-ink:#3c3126; --ctp-muted:#8b7d6b; --ctp-line:#e4d8c3; --ctp-paper:#fffdf8; --ctp-wash:#f7f0e4; --ctp-brass:#9b6a29; }
@media(min-width:1000px){.app.points-wide{max-width:1280px}}
.ctp-shell { position:relative; }
.ctp-shell.is-loading::after { content:'正在更新…'; position:fixed; right:22px; bottom:22px; z-index:900; padding:9px 14px; border-radius:999px; background:#3d3329; color:#fff8eb; font-size:12px; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.ctp-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:14px; padding:23px 26px; border:1px solid #e5d7bf; border-radius:18px; background:linear-gradient(135deg,#fffaf0,#f3e5cc); box-shadow:0 8px 28px rgba(73,54,29,.07); }
.ctp-kicker { margin-bottom:7px; color:#9b6a29; font-size:11px; font-weight:800; letter-spacing:3px; }
.ctp-hero h2 { margin:0; color:#3c3126; font:700 27px/1.25 "Songti SC","STSong","Microsoft YaHei",serif; letter-spacing:1px; }
.ctp-hero p { margin:8px 0 0; color:#81725f; font-size:14px; line-height:1.7; }
.ctp-class-picker { flex:0 0 310px; }
.ctp-class-picker label { display:block; margin-bottom:7px; color:#8b7d6b; font-size:12px; }
.ctp-class-picker select { width:100%; padding:12px 14px; border:1px solid #d9c9ae; border-radius:11px; background:#fffdf8; color:#3c3126; font-size:14px; outline:none; }
.ctp-class-picker select:focus { border-color:#9b6a29; box-shadow:0 0 0 3px rgba(155,106,41,.1); }

.ctp-enable-panel { min-height:94px; display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:14px; padding:18px 22px; border:1px solid var(--ctp-line); border-radius:16px; background:var(--ctp-paper); box-shadow:0 4px 16px rgba(62,47,28,.05); }
.ctp-enable-copy { min-width:0; display:flex; align-items:flex-start; gap:13px; }
.ctp-status-dot { flex:0 0 auto; width:11px; height:11px; margin-top:6px; border-radius:50%; background:#b8ad9c; box-shadow:0 0 0 5px rgba(184,173,156,.14); }
.ctp-status-dot.on { background:#66875b; box-shadow:0 0 0 5px rgba(102,135,91,.12); }
.ctp-enable-copy strong { color:var(--ctp-ink); font-size:16px; }
.ctp-enable-copy p { margin:6px 0 2px; color:#756957; font-size:13px; line-height:1.65; }
.ctp-enable-copy small { color:#a07135; font-size:12px; font-weight:600; }
.ctp-enable-actions { flex:0 0 auto; text-align:right; }
.ctp-role-note { display:block; max-width:230px; color:#968875; font-size:12px; line-height:1.6; }
.ctp-primary { padding:11px 17px; border:0; border-radius:10px; background:linear-gradient(180deg,#ad7b39,#8c5f26); color:#fffaf0; font-size:13px; font-weight:700; cursor:pointer; box-shadow:0 6px 16px rgba(140,95,38,.18); }
.ctp-primary:hover { filter:brightness(1.05); }

.ctp-workspace[hidden] { display:none !important; }
.ctp-overview-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; padding:11px 15px; border:1px solid #e2d6c1; border-radius:13px; background:rgba(255,253,248,.82); color:#706451; font-size:13px; }
.ctp-overview-bar strong { color:#4a3c2d; }
.ctp-sound { display:flex; align-items:center; gap:8px; cursor:pointer; }
.ctp-sound input { accent-color:#9b6a29; }
.ctp-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr); gap:14px; align-items:start; }
.ctp-column { min-width:0; }
.ctp-card { margin-bottom:14px; padding:19px; border:1px solid var(--ctp-line); border-radius:16px; background:var(--ctp-paper); box-shadow:0 5px 18px rgba(62,47,28,.055); }
.ctp-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.ctp-card-head h3 { margin:0 0 4px; color:var(--ctp-ink); font-size:16px; }
.ctp-card-head p { margin:0; color:#948673; font-size:12px; line-height:1.5; }
.ctp-card-head button { padding:7px 10px; border:1px solid #d9c9ae; border-radius:9px; background:#fff; color:#825a27; font-size:12px; cursor:pointer; }

.ctp-quick-hint { display:flex; justify-content:space-between; align-items:center; min-height:27px; margin-bottom:9px; color:#8a7a64; font-size:12px; }
.ctp-quick-hint button { border:0; background:none; color:#95682f; font-size:12px; cursor:pointer; }
.ctp-student-chips { max-height:258px; overflow:auto; display:grid; grid-template-columns:repeat(6,minmax(76px,1fr)); gap:8px; padding:3px; }
.ctp-student-chip { min-width:0; min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:7px; border:1px solid #dfd2bd; border-radius:11px; background:#fff; color:#413629; font-family:inherit; cursor:pointer; }
.ctp-student-chip strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.ctp-student-chip small { color:#a4773b; font-weight:700; }
.ctp-student-chip.selected { border-color:#9b6a29; background:#f5e3c2; box-shadow:0 0 0 2px rgba(155,106,41,.1); }
.ctp-rule-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:13px; padding-top:13px; border-top:1px dashed #e0d3bd; }
.ctp-score-rule { min-width:0; min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border:1px solid #ded1bc; border-radius:10px; background:#fffdf8; color:#493d30; font-family:inherit; cursor:pointer; }
.ctp-score-rule:disabled { opacity:.45; cursor:not-allowed; }
.ctp-score-rule span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.ctp-score-rule b { font:700 17px/1 Georgia,serif; }
.ctp-score-rule.positive b,.ctp-rule-value.positive,.ctp-ledger-row .positive { color:#4e7a50; }
.ctp-score-rule.negative b,.ctp-rule-value.negative,.ctp-ledger-row .negative { color:#a65143; }

.ctp-inline-form { display:grid; grid-template-columns:1.3fr 1fr .65fr .65fr auto; gap:8px; margin-bottom:12px; }
.ctp-inline-form.rules { grid-template-columns:minmax(150px,1fr) 105px auto; }
.ctp-inline-form input { min-width:0; width:100%; padding:9px 10px; border:1px solid #ded2bf; border-radius:9px; background:#fff; font-size:12px; outline:none; }
.ctp-inline-form input:focus { border-color:#9b6a29; }
.ctp-inline-form button { padding:9px 13px; border:0; border-radius:9px; background:#916329; color:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.ctp-scroll-list { max-height:330px; overflow:auto; }
.ctp-row { display:flex; align-items:center; gap:11px; min-height:52px; padding:8px 2px; border-bottom:1px solid #eee5d6; }
.ctp-row:last-child { border-bottom:0; }
.ctp-row > div:first-child { min-width:0; flex:1; }
.ctp-row strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#403528; font-size:13px; }
.ctp-row small { display:block; margin-top:3px; color:#9c8d78; font-size:11px; }
.ctp-row-actions { flex:0 0 auto !important; display:flex; gap:6px; }
.ctp-row-actions button,.ctp-ledger-row button { padding:5px 8px; border:1px solid #ded2bf; border-radius:7px; background:#fff; color:#7d5a2c; font-size:11px; cursor:pointer; }
.ctp-row-actions button.danger { color:#a85a4a; border-color:#ead0ca; }
.ctp-rule-value { font:700 17px/1 Georgia,serif; }

.ctp-period { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 6px; border:0; border-bottom:1px solid #eee5d6; background:transparent; color:inherit; text-align:left; font-family:inherit; cursor:pointer; }
.ctp-period:last-child { border-bottom:0; }
.ctp-period.selected { border-radius:9px; background:#f5ead6; box-shadow:inset 3px 0 #9b6a29; }
.ctp-period strong { display:block; color:#473a2c; font-size:13px; }
.ctp-period small { display:block; margin-top:4px; color:#9c8d78; font-size:11px; }
.ctp-period > span { padding:4px 7px; border-radius:999px; background:#eee8dd; color:#8c7d68; font-size:10px; }
.ctp-period.current > span { background:#e8f1e3; color:#56744c; }

.ctp-tabs { display:flex; gap:5px; flex-wrap:wrap; }
.ctp-tabs button { padding:6px 9px; border:1px solid #ded2bf; border-radius:999px; background:#fff; color:#85745d; font-size:11px; cursor:pointer; }
.ctp-tabs button.active { border-color:#9b6a29; background:#9b6a29; color:#fff; }
.ctp-rank-row { display:grid; grid-template-columns:28px minmax(0,1fr) 55px 72px; align-items:center; gap:9px; min-height:43px; border-bottom:1px solid #eee5d6; }
.ctp-rank-row > span { width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#efe7d9; color:#876539; font:700 11px/1 Georgia,serif; }
.ctp-rank-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.ctp-rank-row b { color:#895f28; text-align:right; font:700 15px/1 Georgia,serif; }
.ctp-rank-row small { color:#9b8c78; text-align:right; font-size:10px; }

.ctp-ledger-tools { display:grid; grid-template-columns:repeat(4,1fr) auto; gap:7px; margin-bottom:11px; }
.ctp-ledger-tools select { min-width:0; padding:8px 9px; border:1px solid #ded2bf; border-radius:8px; background:#fff; color:#665846; font-size:11px; }
.ctp-ledger-tools button { padding:8px 10px; border:0; border-radius:8px; background:#8e622a; color:#fff; font-size:11px; cursor:pointer; }
.ctp-ledger-row { display:grid; grid-template-columns:92px minmax(72px,.8fr) minmax(100px,1.3fr) 45px 76px 42px; align-items:center; gap:8px; min-height:47px; padding:6px 0; border-bottom:1px solid #eee5d6; }
.ctp-ledger-row time,.ctp-ledger-row small { color:#9b8c78; font-size:10px; }
.ctp-ledger-row strong,.ctp-ledger-row span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.ctp-ledger-row b { text-align:right; font:700 14px/1 Georgia,serif; }
.ctp-empty-line { padding:26px 10px; color:#a0917d; text-align:center; font-size:12px; }
.ctp-empty-state { width:100%; min-height:90px; display:flex; flex-direction:column; justify-content:center; gap:6px; color:#81725f; }
.ctp-empty-state strong { color:#493b2d; font-size:16px; }
.ctp-empty-state span { font-size:12px; }
.ctp-empty-state.compact { min-height:170px; align-items:center; text-align:center; }
.ctp-muted { color:#9e907c; font-size:12px; }
#pointsTeacherNoClasses[hidden] { display:none; }

.ctp-class-switch { display:inline-flex; align-items:center; gap:7px; margin-top:7px; }
.ctp-class-switch button { padding:5px 9px; border:1px solid #ddcfba; border-radius:8px; background:#fffaf1; color:#8a5f29; font-size:11px; cursor:pointer; }
.ctp-class-switch .enabled { color:#54754c; background:#edf4e9; border-color:#d5e2ce; }
.ctp-class-switch .collaborator { color:#8f806d; background:#f5f2ec; }

@media(max-width:900px){
  .ctp-hero{align-items:stretch;flex-direction:column}.ctp-class-picker{flex-basis:auto;width:100%}
  .ctp-grid{grid-template-columns:1fr}.ctp-student-chips{grid-template-columns:repeat(5,minmax(68px,1fr))}
}
@media(max-width:640px){
  .ctp-hero{padding:18px}.ctp-hero h2{font-size:22px}.ctp-enable-panel{align-items:stretch;flex-direction:column}
  .ctp-enable-actions{text-align:left}.ctp-overview-bar{align-items:flex-start;flex-direction:column}
  .ctp-card{padding:15px}.ctp-student-chips{grid-template-columns:repeat(4,minmax(60px,1fr))}.ctp-rule-strip{grid-template-columns:1fr 1fr}
  .ctp-inline-form,.ctp-inline-form.rules{grid-template-columns:1fr 1fr}.ctp-inline-form button{grid-column:1/-1}
  .ctp-ledger-tools{grid-template-columns:1fr 1fr}.ctp-ledger-tools button{grid-column:1/-1}
  .ctp-ledger-row{grid-template-columns:72px minmax(58px,.8fr) minmax(84px,1.2fr) 36px}.ctp-ledger-row small{display:none}.ctp-ledger-row>div{display:none}
}
