/* TEMP integration styles: To apply / Applied wiring and the CV outline editor (ported from the test build). */
.flash-messages { position: fixed; top: 60px; right: 20px; z-index: 50; max-width: 440px; display: grid; gap: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.flash-messages p { background: var(--surface-alt); border: 1px solid var(--edge); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.mini-input { height: 26px; width: 110px; border-radius: 999px; padding: 0 10px; font-size: 12px; }
.rail-list { flex: 1; overflow: auto; padding: 12px 10px; display: grid; gap: 6px; align-content: start; }
.rail-list > .control-label { padding: 0 6px; }
.rail-list > p { padding: 0 6px; font-size: 12.5px; }
.rail-item { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; font-size: 13px; }
.rail-item:hover { background: var(--surface-alt); }
.rail-item.selected-item { border-color: var(--text); background: var(--surface-alt); }
.rail-status { font-size: 11px; color: var(--muted); }
.run-selection.prepare-controls { overflow: auto; max-height: 60vh; }
.run-form { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.run-form p { font-size: 12px; }
.run-form .confirm { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.run-form .accent-button { width: 100%; padding: 6px 0; }
.cv-pane { position: relative; grid-template-rows: auto minmax(0, 1fr) auto; }
.cv-tabs a { font-size: 12px; padding: 3px 12px; }
.cv-banner { margin: 10px 12px 0; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; background: var(--surface); }
.cv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--edge-strong); background: var(--surface); font-size: 13px; }
.history-control { position: relative; font-size: 12.5px; }
.history-control summary { cursor: pointer; list-style: none; }
.history-list { position: absolute; right: 0; z-index: 5; width: 360px; background: var(--surface); border: 1px solid var(--edge); border-radius: 10px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.history-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; }
.people-list { padding-left: 16px; display: grid; gap: 6px; font-size: 13px; margin-top: 6px; }
.log-form { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.selected-row td { background: var(--surface-alt); }
.small { font-size: 12px; }
.ol-empty { color: #B5AE9F; }
.ol-namewrap { min-width: 0; }
.cv-sheet{width:100%;height:100%;border:0;display:block;min-height:0}
.cv-outline{min-height:100%;background:var(--surface);padding:16px 16px 40px;display:grid;gap:22px;align-content:start;font-family:'Roboto',sans-serif;font-size:14px;line-height:1.5}
.cv-outline .sec{display:grid;gap:8px}
.oh{display:flex;gap:10px;align-items:baseline;font-family:var(--body)}
.oh b{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--text)}
.oh small{font-size:12px;color:var(--muted)}
.ol-sum{position:relative;cursor:text;padding:8px 12px 8px 22px;margin-left:-14px;border-radius:10px;border:1px solid var(--edge);display:grid;gap:8px;background:var(--surface)}
.ol-sum:hover{border-color:rgba(53,97,142,.30)}
.ol-sum>i{position:absolute;left:8px;top:15px;width:6px;height:6px;border-radius:50%;background:transparent}
.ol-sum.changed>i{background:var(--accent)}
.ol-sum .ol-para{outline:none}
.ol-sum.editing{border:1.5px solid var(--accent);cursor:auto;padding:0;overflow:hidden;gap:0}
.ol-sum.editing .body{padding:10px 12px;min-height:120px;display:grid;gap:8px}
.ol-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:4px 6px;background:var(--surface-alt);border-bottom:1px solid var(--edge);font-family:var(--body)}
.ol-toolbar button{width:28px;height:26px;border-radius:6px;font-size:13px;text-align:center}
.ol-toolbar button.b{font-weight:800}.ol-toolbar button.i{font-style:italic;font-weight:600}
.ol-toolbar button.wide{width:auto;height:24px;padding:0 8px;font-size:11.5px;font-weight:600;color:var(--soft)}
.ol-toolbar .sep{width:1px;height:18px;background:var(--edge);margin:0 6px}
.ol-toolbar .grow{flex:1}
.ol-toolbar .note{font-size:11px;color:var(--muted)}
.ol-toolbar button.done{width:auto;height:24px;padding:0 10px;margin-left:6px;border-radius:999px;font-size:11.5px;font-weight:700;background:var(--text);color:var(--bg)}
.ol-groups{display:grid;gap:2px;font-family:var(--body)}
.ol-group{display:grid;grid-template-columns:18px 150px minmax(0,1fr);gap:8px;align-items:start;padding:7px 6px;border-radius:8px;border-top:2px solid transparent}
.ol-group.over{border-top-color:var(--accent)}
.ol-group .handle{cursor:grab;color:var(--muted);font-size:13px;line-height:26px;text-align:center}
.ol-group .name{display:flex;align-items:center;gap:6px;height:28px;font-family:'Roboto',sans-serif;font-weight:700;font-size:13.5px;max-width:100%;text-align:left}
.ol-group .name:hover{color:var(--accent)}
.ol-group .name span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ol-group .name .pen{font-family:var(--body);font-weight:400;font-size:11px;color:var(--muted)}
.ol-group .name i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
.ol-group input.rename{width:100%;height:28px;border:1.5px solid var(--accent);border-radius:7px;padding:0 8px;font-family:'Roboto',sans-serif;font-weight:700;font-size:13.5px;background:var(--surface);outline:none}
.chips{display:flex;gap:5px;flex-wrap:wrap;align-items:center;min-height:28px}
.chipx{display:inline-flex;align-items:center;gap:4px;font-family:'Roboto',sans-serif;font-size:13px;padding:2px 4px 2px 10px;border-radius:999px;cursor:grab;border:1px solid var(--edge);background:var(--surface)}
.chipx.new{border-color:var(--accent);background:var(--accent-soft)}
.chipx.over{box-shadow:-2px 0 0 var(--accent)}
.chipx button{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:var(--soft);font-size:12px}
.chipx button:hover{background:var(--edge);color:var(--alert)}
.chip-add{font-size:12px;font-weight:600;padding:2px 10px;border-radius:999px;border:1px dashed rgba(53,97,142,.30);color:var(--accent);background:transparent}
.chip-add.on{background:var(--accent-soft)}
.sugg{margin:4px 0 0 32px;display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:8px 10px;border-radius:8px;background:var(--surface-alt);font-family:var(--body)}
.sugg:empty{display:none}
.sugg span{font-size:12px;color:var(--muted);margin-right:4px}
.sugg button{font-size:12.5px;padding:1px 10px;border-radius:999px;border:1px solid var(--edge);background:var(--surface);color:var(--accent)}
.sugg button:hover{border-color:var(--accent)}
.ol-role{display:grid;gap:2px;padding-top:8px;border-top:1px dotted var(--rule)}
.ol-role .rh{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:0 8px 4px 32px}
.ol-role .rh .org{color:var(--soft)}
.ol-role .rh .dates{font-family:var(--body);font-size:12px;color:var(--muted)}
.ol-fixed{padding:0 8px 4px 32px;font-family:var(--body);font-size:12px;color:var(--muted)}
.ol-bullet{display:grid;grid-template-columns:18px 8px minmax(0,1fr) 54px;gap:6px;align-items:start;padding:5px 6px;border-radius:8px;border-top:2px solid transparent}
.ol-bullet:hover{background:var(--surface-alt)}
.ol-bullet.over{border-top-color:var(--accent)}
.ol-bullet .handle{cursor:grab;color:var(--muted);font-family:var(--body);font-size:13px;line-height:21px;text-align:center}
.ol-bullet>i{margin-top:8px;width:6px;height:6px;border-radius:50%;background:transparent}
.ol-bullet.changed>i{background:var(--accent)}
.ol-bullet .txt{cursor:text;min-width:0;outline:none}
.ol-bullet.removed .txt{text-decoration:line-through;color:var(--muted)}
.ol-bullet .txt[contenteditable=true]{border:1.5px solid var(--accent);border-radius:10px;background:var(--surface);padding:8px 10px;min-height:44px;cursor:auto}
.ol-bullet .end{display:flex;justify-content:flex-end;font-family:var(--body)}
.ol-bullet .rm{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:var(--muted);font-size:14px}
.ol-bullet .rm:hover{background:var(--edge);color:var(--alert)}
.ol-bullet .restore{font-size:12px;font-weight:600;color:var(--accent);line-height:21px}
.ol-foot{font-family:var(--body);font-size:12.5px;color:var(--muted);padding-top:12px;border-top:1px dotted var(--rule)}
.ol-foot b{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--text);margin-right:8px}
.cv-sheet { min-height: 75vh; }
