/* 학생 의견 화면(2026-11-22 다시 짬): 종류 칸 · 비율 막대 · 게임별/날짜별 막대 · 카드
   색: 고칠 점 #e11d48, 좋은 점 #16a34a, 사용 후기 #7c3aed, 전체 #4338ca
   [레고브릭 서명] legoschool · schoolemotion20 */
[hidden] { display: none !important; }
body { background: #f4f6fb; }
#reportLogin input { width: 100%; margin: 5px 0 8px; }
#reportLogin label { color: var(--ink); }
#loginMessage:empty { margin: 0; }
.er-gate-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* 위쪽 띠 */
.er-top { gap: 10px; min-height: 58px; padding: 9px 18px; box-shadow: 0 1px 0 rgba(15, 23, 42, .02); }
.er-top h1 { font-size: 19px; font-weight: 800; }
.er-stamp { color: var(--mute); font-size: 13px; white-space: nowrap; }
.er-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 6px 14px; border: 1px solid #d6daea; border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.er-btn:hover { border-color: #818cf8; background: #eef2ff; color: #3730a3; }
.er-btn.quiet { color: var(--mute); }
.er-btn span[aria-hidden] { color: #94a3b8; font-size: 13px; }
#reportRefresh.spin { color: var(--mute); }
.er-wrap { max-width: 1180px; padding-top: 12px; }
#reportMessage { color: #9a3412; margin: 0 0 8px; min-height: 0; }
#reportMessage:empty { display: none; }

/* 종류 칸 넷 */
.er-dash { background: #fff; border: 1px solid #e3e7f2; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(30, 41, 59, .05); margin-bottom: 12px; }
.er-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.er-kind { --k: #4338ca; position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; text-align: left; padding: 12px 14px; border: 1.5px solid #e3e7f2; border-radius: 14px; background: #fff; color: var(--ink); }
.er-kind:hover { border-color: var(--k); background: color-mix(in srgb, var(--k) 5%, #fff); }
.er-kind.on { border-color: var(--k); background: color-mix(in srgb, var(--k) 9%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 25%, transparent); }
.er-kind-ic { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--k) 12%, #fff); font-size: 21px; }
.er-kind-t { font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--k) 75%, #1e293b); }
.er-kind-n { font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.er-kind-new { position: absolute; top: 9px; right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--k); color: #fff; font-size: 12px; font-weight: 700; }
.er-mix { display: flex; height: 26px; margin-top: 12px; border-radius: 8px; overflow: hidden; background: #eef0f6; }
.er-mix-s { display: flex; align-items: center; justify-content: center; min-width: 4px; color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; }

/* 그래프 둘 */
.er-charts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.er-chart { border: 1px solid #eef0f6; border-radius: 12px; padding: 12px 14px 10px; background: #fbfcff; min-width: 0; }
.er-chart-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.er-chart-h h2 { margin: 0; font-size: 15px; }
.er-chart-h span { color: var(--mute); font-size: 12.5px; margin-left: auto; }
.er-games { display: flex; flex-direction: column; gap: 3px; }
.er-grow { display: grid; grid-template-columns: minmax(84px, 9.5em) 1fr 34px; align-items: center; gap: 8px; width: 100%; padding: 3px 6px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.er-grow:hover { background: #eef2ff; }
.er-grow.on { background: #e0e7ff; }
.er-gname { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-gbar { height: 14px; border-radius: 4px; background: #eef0f6; overflow: hidden; }
.er-gfill { display: flex; height: 100%; border-radius: 4px; overflow: hidden; }
.er-gfill i, .er-dstack i { display: block; min-width: 2px; min-height: 2px; }
.er-gn { font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.er-none { color: var(--mute); font-size: 13.5px; margin: 6px 0; }
.er-days { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; height: 196px; padding-bottom: 2px; }
.er-day { display: flex; flex-direction: column; align-items: center; min-width: 0; padding-top: 14px; }
.er-dn { font-size: 11.5px; font-weight: 700; color: #475569; min-height: 16px; font-variant-numeric: tabular-nums; }
.er-dbar { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #d6daea; }
.er-dstack { display: flex; flex-direction: column-reverse; width: min(22px, 80%); border-radius: 4px 4px 0 0; overflow: hidden; }
.er-dl { font-size: 11.5px; color: var(--mute); margin-top: 3px; white-space: nowrap; }
.er-day.today .er-dl { color: var(--brand); font-weight: 800; }

/* 거르기 줄 */
.er-filter { position: sticky; top: 58px; z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; background: #f4f6fb; }
.er-filter select { min-width: 200px; min-height: 38px; border-radius: 10px; }
.er-filter input { flex: 1; min-width: 180px; max-width: 360px; min-height: 38px; border-radius: 10px; }
.er-count { color: var(--mute); font-size: 13.5px; margin-left: auto; }
.er-chip-btn { min-height: 34px; border-radius: 999px; padding: 4px 12px; border-color: #c7d2fe; background: #eef2ff; color: #3730a3; font-weight: 600; }

/* 카드 */
.er-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.er-card { --k: #e11d48; background: #fff; border: 1px solid #e3e7f2; border-left: 5px solid var(--k); border-radius: 12px; padding: 12px 14px 10px; box-shadow: 0 1px 4px rgba(30, 41, 59, .04); min-width: 0; }
.er-card-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.er-card-h h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.er-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: color-mix(in srgb, var(--k) 12%, #fff); color: color-mix(in srgb, var(--k) 80%, #1e293b); }
.er-screen { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }
.er-new { padding: 1px 7px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.er-time { margin-left: auto; color: var(--mute); font-size: 13px; white-space: nowrap; }
.er-desc { margin: 8px 0 6px; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; text-wrap: pretty; }
.er-review { margin: 4px 0 6px; font-size: 13.5px; color: #4c1d95; background: #f5f3ff; border-radius: 8px; padding: 5px 9px; word-break: keep-all; }
.er-review-stars.is-got { color: #7c2d12; }
.er-review-stars.is-none { color: #57534e; font-weight: 600; }
.er-card-f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.er-link { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border: 1px solid #d6daea; border-radius: 8px; color: #334155; font-size: 13px; font-weight: 600; text-decoration: none; }
.er-link:hover { border-color: #818cf8; background: #eef2ff; color: #3730a3; }
.er-more { margin-left: auto; }
.er-more summary { list-style: none; cursor: pointer; min-height: 30px; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px; color: var(--mute); font-size: 13px; font-weight: 600; }
.er-more summary::-webkit-details-marker { display: none; }
.er-more summary::after { content: ' ▾'; }
.er-more[open] summary { background: #f1f5f9; }
.er-more[open] { flex-basis: 100%; margin-left: 0; }
.er-more-b { margin-top: 6px; }
.er-more-b b { display: block; font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.er-id { margin: 0; font-size: 12.5px; color: var(--mute); overflow-wrap: anywhere; }
.er-more-b pre { margin: 3px 0 0; background: #f8fafc; padding: 9px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; max-height: 260px; overflow: auto; }
.er-empty { grid-column: 1 / -1; text-align: center; padding: 34px 18px; color: var(--mute); background: #fff; border-radius: 12px; border: 1px dashed #d6daea; }
.report-more { text-align: center; margin: 16px 0; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }
#reportGate p, .msg { word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }

@media (max-width: 1100px) { .er-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .er-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er-charts { grid-template-columns: minmax(0, 1fr); }
  .er-stamp { display: none; }
}
@media (max-width: 600px) {
  .er-top { padding: 8px 12px; gap: 6px; }
  .er-top .sp { flex-basis: 100%; height: 0; }
  .er-wrap { padding: 10px 12px 30px; }
  .er-kind-n { font-size: 20px; }
  .er-filter { top: 0; position: static; }
  .er-filter select, .er-filter input { flex: 1 1 100%; max-width: none; }
  .er-count { margin-left: 0; }
}

/* 2026-11-26 유익한 의견에 별 주기 */
.er-pick { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 4px 0 6px; padding: 7px 10px; border-radius: 10px; background: #fffbeb; border: 1px dashed #f59e0b; font-size: 13.5px; word-break: keep-all; }
.er-pick.is-done { background: #fef3c7; border-style: solid; }
.er-pick-t { color: #92400e; font-size: 13.5px; }
.er-pick-who { color: #57534e; }
.er-pick-ask { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.er-pick-ask input { width: 4.6em; min-height: 32px; padding: 3px 6px; border: 1px solid #d6d3d1; border-radius: 7px; font: inherit; }
.er-pick-btns { display: inline-flex; gap: 5px; margin-left: auto; }
.er-pick-b { min-height: 34px; padding: 4px 11px; border: 1px solid #f59e0b; border-radius: 999px; background: #fff; color: #92400e; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.er-pick-b:hover:not(:disabled) { background: #f59e0b; color: #fff; }
.er-pick-b:disabled { opacity: .5; cursor: default; }
.er-pick-b:focus-visible { outline: 3px solid #c2410c; outline-offset: 2px; }
.er-pick-done { color: #7c2d12; font-weight: 800; }
.er-pick-msg { flex-basis: 100%; color: #b45309; font-size: 13px; }
.er-pick-msg:empty { display: none; }
