/* Dimension Review (Step-3b stage-1 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: 460px; 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 p code { font-size: 12.5px; }
.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; }
#sel-run {
  margin-left: auto; padding: 5px 8px; font-size: 13px;
  border: 1px solid #d5d5d5; border-radius: 6px; background: #fff;
  font-family: ui-monospace, monospace;
}
.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;
}

/* ── sidebar + content layout ── */
#layout { display: flex; align-items: flex-start; }
#sidebar {
  width: 250px; flex: none; position: sticky; top: 88px;
  max-height: calc(100vh - 88px); overflow-y: auto; padding: 12px 8px 24px 12px;
}
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #333;
}
.nav-item:hover { background: #eef1f5; }
.nav-item.active { background: #e3edff; font-weight: 600; }
.nav-item .letter {
  font-family: ui-monospace, monospace; font-weight: 700; color: #1A85FF;
  width: 16px; text-align: center;
}
.nav-item .nav-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px;
  background: #eee; color: #777;
}
.nav-badge.done { background: #e3faf1; color: #00875a; }
.nav-item.transversal { margin-top: 12px; border-top: 1px solid #e6e6e6; border-radius: 0 0 8px 8px; padding-top: 12px; }

#content { flex: 1; min-width: 0; max-width: 1000px; padding: 16px 20px 40px; }
.domain-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.domain-head h2 { font-size: 19px; margin: 0; }
.domain-head .count { color: #999; font-size: 13px; }
.comment-box { margin: 10px 0 18px; }
.comment-box textarea {
  width: 100%; box-sizing: border-box; min-height: 54px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; border: 1px solid #ddd; border-radius: 6px;
  resize: vertical;
}
.comment-box .hint { font-size: 12px; color: #999; margin-bottom: 3px; }

/* ── dimension cards ── */
.card {
  background: #fff; border: 1px solid #e2e2e2; border-radius: 10px;
  margin-bottom: 18px; overflow: hidden;
}
.card.approved { border-left: 4px solid #00BF7F; }
.card.edited { border-left: 4px solid #1A85FF; }
.card.rejected { border-left: 4px solid #ccc; opacity: 0.55; }
.card-head {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 4px; flex-wrap: wrap;
}
.card-head .name { font-weight: 700; font-size: 15.5px; }
.card-head .dim-id { font-family: ui-monospace, monospace; color: #888; font-size: 12px; }
.chip {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
  background: #eef4ff; color: #1A85FF; letter-spacing: .3px;
}
.chip.refines { background: #fff4e5; color: #b25e00; }
.chip.state-edit { background: #e3edff; color: #1A85FF; }
.chip.state-reject { background: #eee; color: #888; }

.card-body { padding: 4px 16px 8px; font-size: 13.5px; line-height: 1.5; }
.card-body .definition { color: #333; }
.card-body .rationale { color: #888; font-size: 12.5px; margin-top: 3px; }
.poles {
  display: flex; align-items: center; gap: 10px; margin: 10px 0 6px;
  font-size: 13px;
}
.pole { flex: 1; padding: 6px 10px; border-radius: 6px; background: #fbfcfd; border: 1px solid #eceef1; }
.pole.neg { text-align: right; border-left: 3px solid #D41159; }
.pole.pos { border-right: 3px solid #00BF7F; }
.poles .arrow { color: #999; font-size: 15px; }

table.scale { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12.5px; }
table.scale td { border-top: 1px solid #f0f0f0; padding: 4px 8px; vertical-align: top; }
table.scale td.pt {
  font-family: ui-monospace, monospace; font-weight: 700; width: 30px;
  text-align: center; border-radius: 4px;
}
table.scale tr.neg td.pt { color: #D41159; }
table.scale tr.pos td.pt { color: #00875a; }
table.scale tr.zero td.pt { color: #888; }
.na-guidance { font-size: 12.5px; color: #777; margin: 6px 0; }
.na-guidance b { color: #555; }

.examples { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; }
.example {
  display: flex; align-items: baseline; gap: 8px; font-size: 12.5px;
  background: #f9fafb; border: 1px solid #eef0f3; border-radius: 6px; padding: 4px 8px;
}
.example .score {
  font-family: ui-monospace, monospace; font-weight: 700; flex: none;
  min-width: 26px; text-align: center; border-radius: 4px; padding: 1px 4px;
  background: #eef4ff; color: #1A85FF;
}
.example .score.neg { background: #fdecf2; color: #D41159; }
.example .score.na { background: #eee; color: #888; }
.example .ent { font-weight: 600; color: #444; }
.example .eid { font-family: ui-monospace, monospace; color: #aaa; font-size: 11px; }
.example .why { color: #777; }

.verdict-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px 14px; flex-wrap: wrap;
  border-top: 1px dashed #eee;
}
.verdict-bar .ask { font-size: 13px; color: #555; margin-right: 4px; }
.btn-verdict {
  padding: 6px 16px; border: 1px solid #cfd4da; border-radius: 6px;
  background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: #444;
}
.btn-verdict:hover { border-color: #1A85FF; color: #1A85FF; }
.btn-verdict.sel[data-v="approve"] { background: #00BF7F; border-color: #00BF7F; color: #fff; }
.btn-verdict.sel[data-v="edit"] { background: #1A85FF; border-color: #1A85FF; color: #fff; }
.btn-verdict.sel[data-v="reject"] { background: #888; border-color: #888; color: #fff; }

/* ── edit form ── */
.edit-form { padding: 10px 16px 14px; background: #f7faff; border-top: 1px solid #e3edff; }
.edit-form label { display: block; font-size: 11.5px; font-weight: 700; color: #667; margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .3px; }
.edit-form input[type="text"], .edit-form textarea {
  width: 100%; box-sizing: border-box; padding: 6px 9px; font-size: 13px;
  font-family: inherit; border: 1px solid #cfd8e6; border-radius: 6px; background: #fff;
  resize: vertical;
}
.edit-form .two-col { display: flex; gap: 10px; }
.edit-form .two-col > div { flex: 1; }
.edit-form .scale-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.edit-form .scale-row .pt {
  font-family: ui-monospace, monospace; font-weight: 700; width: 26px;
  text-align: center; padding-top: 7px; flex: none; color: #556;
}
.edit-form .scale-row textarea { min-height: 34px; }
.edit-actions { display: flex; gap: 8px; margin-top: 12px; }
.edit-actions .btn-primary {
  padding: 6px 18px; border: none; border-radius: 6px; background: #1A85FF;
  color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
}
.edit-actions .btn-cancel {
  padding: 6px 14px; border: 1px solid #cfd4da; border-radius: 6px;
  background: #fff; font-size: 13px; cursor: pointer; color: #555;
}

/* ── suggested transversal panel ── */
.suggested-panel .sugg {
  background: #fff; border: 1px solid #e2e2e2; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 12px; font-size: 13.5px;
}
.suggested-panel .sugg .name { font-weight: 700; }
.suggested-panel .sugg .majors { font-size: 11.5px; color: #1A85FF; margin-left: 8px; }
.suggested-panel .sugg .definition { margin-top: 4px; color: #333; }
.suggested-panel .sugg .rationale { margin-top: 2px; color: #888; font-size: 12.5px; }
.empty-note { text-align: center; color: #999; padding: 40px 0; }
