/* Importance Review (Step-3a enrichment validation) */

#login-overlay {
  position: fixed; inset: 0; background: #f5f6f8;
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.login-box {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 34px 40px; width: 430px; box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.login-box h2 { margin: 0 0 10px; }
.login-box p { color: #666; font-size: 14px; line-height: 1.5; }
.login-box input {
  width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 15px;
  border: 1px solid #ccc; border-radius: 6px; margin: 12px 0 8px;
}
.login-box button {
  padding: 8px 22px; font-size: 15px; border: none; border-radius: 6px;
  background: #1A85FF; color: #fff; cursor: pointer;
}
.login-msg { color: #D41159; font-size: 13px; min-height: 18px; margin-top: 6px; }
#existing-sessions h3 { font-size: 13px; color: #888; margin: 22px 0 6px; text-transform: uppercase; }
.session-row { font-size: 14px; padding: 4px 0; display: flex; gap: 10px; align-items: baseline; }
.session-row a { cursor: pointer; color: #1A85FF; }
.session-row .muted { color: #999; font-size: 12px; }
.hidden { display: none !important; }
.muted { color: #999; }

#toolbar {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: #fff; border-bottom: 1px solid #e4e4e4; position: sticky; top: 0; z-index: 10;
}
.app-title { font-weight: 700; }
.toolbar-info { color: #666; font-size: 13px; }
.filters { margin-left: auto; display: flex; gap: 4px; }
.btn-filter {
  border: 1px solid #d5d5d5; background: #fff; border-radius: 14px;
  font-size: 12px; padding: 4px 12px; cursor: pointer; color: #555;
}
.btn-filter.active { background: #1A85FF; border-color: #1A85FF; color: #fff; }
.btn-sm {
  border: 1px solid #d5d5d5; background: #fff; border-radius: 6px;
  font-size: 13px; padding: 5px 12px; cursor: pointer;
}

#legend {
  padding: 8px 18px; font-size: 12.5px; color: #777; background: #fafafa;
  border-bottom: 1px solid #eee;
}

#cards { max-width: 1000px; margin: 0 auto; padding: 16px; }
.card {
  background: #fff; border: 1px solid #e2e2e2; border-radius: 10px;
  margin-bottom: 16px; overflow: hidden;
}
.card.graded { border-left: 4px solid #00BF7F; }
.card-head {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 4px;
  flex-wrap: wrap;
}
.card-head .eid { font-family: ui-monospace, monospace; color: #888; font-size: 12.5px; }
.card-head .label { font-weight: 700; font-size: 15.5px; }
.card-head .meta { color: #999; font-size: 12.5px; margin-left: auto; }
.evidence {
  margin: 8px 16px; padding: 10px 12px; background: #f7f8fa;
  border: 1px solid #eceef1; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.45; white-space: pre-wrap;
  max-height: 260px; overflow-y: auto; color: #333;
}
.grade-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px 12px; flex-wrap: wrap;
}
.grade-bar .ask { font-size: 13px; color: #555; margin-right: 6px; }
.btn-grade {
  width: 38px; height: 32px; border: 1px solid #cfd4da; border-radius: 6px;
  background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; color: #444;
}
.btn-grade:hover { border-color: #1A85FF; color: #1A85FF; }
.btn-grade.sel { background: #1A85FF; border-color: #1A85FF; color: #fff; }
.grade-bar input[type="text"] {
  flex: 1; min-width: 180px; padding: 6px 10px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 6px;
}
.reveal { border-top: 1px dashed #e4e4e4; padding: 10px 16px 14px; background: #fcfcfd; }
.model-row { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; font-size: 13px; }
.model-row .run { font-family: ui-monospace, monospace; color: #888; min-width: 130px; font-size: 12px; }
.model-row .lvl {
  font-weight: 700; width: 22px; text-align: center; border-radius: 4px; padding: 1px 4px;
  background: #eef4ff; color: #1A85FF;
}
.model-row .lvl.match { background: #e3faf1; color: #00875a; }
.model-row .lvl.discard { background: #fdecf2; color: #D41159; font-size: 11px; width: auto; }
.model-row .rat { color: #555; }
.sweep-note { font-size: 12px; color: #999; padding-top: 4px; }

/* Scale switch (login box): the five-level v002 and the four-level v004 modes of
   this tab are two values of ?scale=, so each option is a plain link. */
.scale-switch { display: flex; gap: 0; margin: 4px 0 12px; }
.scale-switch a {
  flex: 1; text-align: center; padding: 6px 8px; font-size: 13px; text-decoration: none;
  border: 1px solid #cfd4da; color: #555; background: #fff;
}
.scale-switch a:first-child { border-radius: 6px 0 0 6px; }
.scale-switch a:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.scale-switch a:hover { color: #1A85FF; }
.scale-switch a.active { background: #1A85FF; border-color: #1A85FF; color: #fff; }
.scale-tag {
  font-size: 12px; color: #4F2C99; background: #f3f0fa; border-radius: 10px; padding: 2px 9px;
}
