.ic-perf-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  z-index: 120;
  overflow: auto;
}
.ic-perf-modal:not(.hidden) { display: flex; }
.ic-perf-modal .modalbox {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}
.ic-perf-modal .modalhead {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ic-perf-modal .close {
  background: rgba(255, 255, 255, .15);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}
.ic-perf-topbtn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.ic-perf-topbtn:hover { background: rgba(255, 255, 255, .18); }
.ic-perf-topbtn:active { transform: scale(.98); }
.ic-perf-topbtn-score { font-size: 1.02rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ic-perf-topbtn-title { font-size: .62rem; font-weight: 700; opacity: .9; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-perf-topbtn.empty { opacity: .75; }
.ic-perf-topbtn.empty .ic-perf-topbtn-score { font-size: .82rem; }

.topbar .user-perf.user-perf-lg { font-size: .78rem; padding: 4px 10px; }

.ic-perf-modal .modalbox { max-width: 720px; width: min(96vw, 720px); }
.ic-perf-modal .modalbody { max-height: min(78vh, 640px); overflow: auto; padding: 18px 22px 22px; }
.ic-perf-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ic-perf-hero h2 { margin: 0 0 4px; font-size: 1.15rem; }
.ic-perf-hero .sub { margin: 0; color: #64748b; font-size: .86rem; line-height: 1.5; }
.ic-perf-donem { min-width: 160px; }
.ic-perf-donem label { display: block; font-size: .72rem; font-weight: 700; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.ic-perf-donem input { width: 100%; padding: 8px 10px; border: 1px solid #dde4ee; border-radius: 10px; font: inherit; }
.ic-perf-avg-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ic-perf-avg { font-size: 2.2rem; font-weight: 800; color: #1e3a8a; line-height: 1; }
.ic-perf-avg small { display: block; font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.ic-perf-grid { display: grid; gap: 12px; }
.ic-perf-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; background: #fafbfc; }
.ic-perf-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ic-perf-item b { font-size: .9rem; }
.ic-perf-item .sub { margin: 4px 0 0; color: #64748b; font-size: .8rem; line-height: 1.45; }
.ic-perf-puan { font-size: 1.1rem; font-weight: 800; color: #1d4ed8; white-space: nowrap; }
.ic-perf-bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.ic-perf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); border-radius: 999px; }
.ic-perf-note { padding: 14px; margin-bottom: 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; font-size: .86rem; line-height: 1.5; }
.ic-perf-history { margin-top: 18px; }
.ic-perf-history h3 { margin: 0 0 10px; font-size: .95rem; }
.ic-perf-eval-history { margin-top: 18px; padding-top: 4px; }
.ic-perf-eval-history h3 { margin: 0 0 10px; font-size: .95rem; }
.ic-perf-eval-list { display: grid; gap: 0; max-height: 240px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #fafbfc; }
.ic-perf-eval-item { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; font-size: .84rem; }
.ic-perf-eval-item:last-child { border-bottom: 0; }
.ic-perf-eval-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ic-perf-eval-score { color: #1d4ed8; font-weight: 800; white-space: nowrap; }
.ic-perf-eval-hidden { color: #94a3b8; font-style: italic; }
.ic-perf-history table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ic-perf-history th, .ic-perf-history td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.ic-perf-loading { padding: 28px; text-align: center; color: #64748b; font-size: .9rem; }
