/* ルーブリックメーカー */
#app { --rb0: #16a34a; --rb1: #65a30d; --rb2: #d9a400; --rb3: #ea7a1a; --rb4: #dc2626; }
.rubric-top .app-toolbar { margin-bottom: 10px; }
.rubric-title { flex: 1; min-width: 200px; width: auto; font-weight: 800; }
.rubric-tasks { margin: 8px 0; }
.rubric-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; margin: 10px 0; max-height: 520px; overflow-y: auto; padding: 2px; }
.rubric-cand { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 2px solid var(--line-soft); border-radius: 14px; background: var(--card); padding: 10px; cursor: pointer; color: var(--ink); font: inherit; }
.rubric-cand:hover { border-color: var(--line); }
.rubric-cand.on { border-color: var(--line); background: color-mix(in srgb, var(--mint) 12%, var(--card)); box-shadow: var(--sh-sm); }
.rubric-cand .ck { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; background: var(--card); }
.rubric-cand.on .ck { background: var(--mint); color: #08281d; }
.rubric-cand .tx { display: grid; gap: 2px; min-width: 0; flex: 1; }
.rubric-cand .tx b { font-size: 14.5px; }
.rubric-cand .tx small { font-size: 12px; color: var(--ink2); }
.rubric-cand .tx em { font-style: normal; font-size: 12px; color: var(--ink3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rubric-cand .badge { flex-shrink: 0; }
.rubric-selbar { position: sticky; bottom: 8px; background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; gap: 6px; z-index: 3; }
.rubric-selbar .sp { flex: 1; }
.rubric-ctrl { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rubric-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.rubric-lv { display: flex; gap: 6px; align-items: center; border: 2px solid var(--line-soft); border-radius: 12px; padding: 6px; background: var(--card); }
.rubric-lv .input { min-height: 36px; padding: 4px 8px; }
.rubric-lv label { display: flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.rubric-lv label .input { width: 56px; }
.rubric-totalbar { margin-bottom: 6px; gap: 6px; }
.rubric-table { table-layout: fixed; min-width: 720px; }
.rubric-table th, .rubric-table td { vertical-align: top !important; }
.rubric-vh { width: 150px; background: var(--bg2); }
tbody .rubric-vh { position: sticky; left: 0; z-index: 1; }
.rubric-vh small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink2); margin-top: 3px; white-space: normal; }
.rubric-name { font-weight: 900; font-size: 14.5px; white-space: normal; border-radius: 6px; padding: 1px 3px; outline: none; }
.rubric-name:focus, .rubric-cell[contenteditable]:focus { box-shadow: inset 0 0 0 2px var(--chu); background: var(--card); }
.rubric-vtools { display: flex; gap: 3px; margin-bottom: 4px; }
.rubric-mini { width: 26px; height: 24px; border: 1.5px solid var(--line-soft); border-radius: 7px; background: var(--card); color: var(--ink); font-weight: 900; font-size: 12px; cursor: pointer; }
.rubric-mini.del { color: var(--bad); }
.rubric-mini:disabled { opacity: .35; }
.rubric-w { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; margin-top: 4px; }
.rubric-w input { width: 48px; border: 1.5px solid var(--line-soft); border-radius: 7px; padding: 2px 4px; background: var(--card); color: var(--ink); font: inherit; }
.rubric-lh { text-align: center !important; white-space: normal !important; }
.rubric-lh small { display: block; font-weight: 600; font-size: 11px; color: var(--ink2); }
.rubric-lh.l0 { box-shadow: inset 0 -4px 0 var(--rb0); } .rubric-lh.l1 { box-shadow: inset 0 -4px 0 var(--rb1); } .rubric-lh.l2 { box-shadow: inset 0 -4px 0 var(--rb2); } .rubric-lh.l3 { box-shadow: inset 0 -4px 0 var(--rb3); } .rubric-lh.l4 { box-shadow: inset 0 -4px 0 var(--rb4); }
.rubric-cell { font-size: 13.5px; line-height: 1.6; outline: none; }
.rubric-cell.l0 { background: color-mix(in srgb, var(--rb0) 7%, var(--card)); }
.rubric-table.easy .rubric-cell { font-size: 15px; line-height: 1.75; }
.rubric-self { width: 96px; font-size: 12.5px; }
.rubric-self span { display: block; white-space: nowrap; }
.rubric-scorewrap { max-height: 70vh; }
.rubric-score th, .rubric-score td { white-space: nowrap; }
.rubric-sticky { position: sticky; left: 0; z-index: 2; background: var(--card) !important; min-width: 118px; box-shadow: 1px 0 0 var(--line-soft); }
thead .rubric-sticky { z-index: 3; background: var(--bg2) !important; }
.rubric-sticky .no { display: inline-block; min-width: 22px; color: var(--ink3); font-size: 12px; font-weight: 800; }
.rubric-pick { display: flex; gap: 3px; }
.rubric-pick button { min-width: 34px; height: 34px; padding: 0 6px; border: 1.5px solid var(--line-soft); border-radius: 9px; background: var(--card); color: var(--ink2); font-weight: 800; font-size: 12.5px; cursor: pointer; touch-action: manipulation; }
.rubric-pick button.on { color: #fff; border-color: var(--line); }
.rubric-pick button.on.l0 { background: var(--rb0); } .rubric-pick button.on.l1 { background: var(--rb1); } .rubric-pick button.on.l2 { background: var(--rb2); color: #1d2433; } .rubric-pick button.on.l3 { background: var(--rb3); } .rubric-pick button.on.l4 { background: var(--rb4); }
.rubric-tot { text-align: center !important; font-size: 15px; }
