/* Atlas Talent — Performance Review page styles */

.layout { display: grid; grid-template-columns: 240px 1fr 320px; gap: 0; min-height: calc(100vh - 48px - 96px); border-top: 1px solid var(--line); }
.rev-list { border-right: 1px solid var(--line); background: var(--surface-tint); overflow-y: auto; }
.rev-list-head { padding: 10px 14px; border-bottom: 1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.rev-list-head .ttl { font-size: 11.5px; font-weight: 600; }
.rev-list-head .ct { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }
.rli { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.rli:hover { background: var(--bg-2); }
.rli[data-active="true"] { background: var(--accent-tint); border-left: 2px solid var(--accent); padding-left: 12px; }
.rli .name { font-size: 12px; font-weight: 500; }
.rli .meta { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; font-family: var(--font-mono); }
.rli .stage-pill { font-size: 9.5px; padding: 1px 5px; border-radius: 3px; margin-top: 4px; display: inline-block; }
.rli .self { background: var(--bg-3); color: var(--ink-3); }
.rli .peer { background: var(--info-tint); color: var(--info); }
.rli .mgr { background: var(--warn-tint); color: var(--warn); }
.rli .cal { background: var(--accent-tint); color: var(--accent); }

.center { padding: 18px 22px 30px; overflow-y: auto; }
.stages { display:grid; grid-template-columns: repeat(4, 1fr); gap: 0; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--surface); margin-bottom: 16px; }
.stage { padding: 12px 14px; border-right:1px solid var(--line); position:relative; min-height: 64px; cursor: pointer; }
.stage:last-child { border-right:0; }
.stage .num { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); letter-spacing:0.04em; }
.stage .ttl { font-size: 12px; font-weight: 500; margin-top: 2px; }
.stage .meta { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; font-family: var(--font-mono); }
.stage.done { background: var(--accent-tint); }
.stage.done .ttl { color: var(--accent); }
.stage.current { background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); }
.stage.current .ttl { color: var(--ink); font-weight: 600; }
.stage.current::before { content:""; position:absolute; top:8px; right:10px; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.stage.future .ttl { color: var(--ink-4); }

/* Competency block */
.cb { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; overflow: hidden; cursor: pointer; }
.cb-head { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cb-name { font-size: 13px; font-weight: 500; }
.cb-name small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.cb-rate { display: inline-flex; gap: 2px; }
.cb-rate .lvl { width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; cursor: pointer; background: var(--bg-2); color: var(--ink-3); }
.cb-rate .lvl[data-self] { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cb-rate .lvl[data-mgr]  { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cb-rate .lvl[data-self][data-mgr] { background: linear-gradient(180deg, var(--ink) 50%, var(--accent) 50%); }
.cb-thread { padding: 0; }
.thread-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: flex-start; }
.thread-row:first-child { border-top: 0; }
.thread-av { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-size: 9.5px; font-weight: 600; border: 1px solid var(--line); }
.thread-av.self { background: var(--ink); color: #fff; border-color: var(--ink); }
.thread-av.mgr { background: var(--accent); color: #fff; border-color: var(--accent); }
.thread-meta { font-size: 11px; color: var(--ink-4); display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.thread-meta b { color: var(--ink); font-weight: 500; }
.thread-meta .src { font-family: var(--font-mono); font-size: 10.5px; }
.thread-body { font-size: 12px; color: var(--ink-2); line-height: 1.55; }
.thread-evidence { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.thread-evidence .evi { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; background: var(--bg-2); border:1px solid var(--line); border-radius: 3px; color: var(--ink-3); }

/* Right rail */
.rail-r { border-left: 1px solid var(--line); background: var(--surface-tint); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.calc-card h4 { font-size: 12.5px; margin: 0 0 8px; font-weight: 600; }
.calc-row { display: grid; grid-template-columns: 1fr auto; padding: 5px 0; font-size: 11.5px; border-bottom: 1px dashed var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-row .k { color: var(--ink-3); }
.calc-row .v { font-family: var(--font-mono); font-weight: 500; }

.nudge { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius:4px; padding:12px 14px; }
.nudge .tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.nudge h4 { font-size: 12.5px; margin: 6px 0; line-height:1.3; font-weight:600; }
.nudge p { font-size: 11.5px; color: var(--ink-3); margin: 0; line-height:1.5; }
