Files
unredact/unredact/static/style.css
T
Alex-GilbertandClaude Opus 4.6 368df1a35b feat: clickable tier badges with associate detail popup
Badge is now a button — clicking it opens a popup listing all
matching associates with their tier description (flight logs /
inner circle / named in files), category, and match type.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-16 09:33:27 -06:00

601 lines
9.5 KiB
CSS

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: system-ui, -apple-system, sans-serif;
background: #1a1a2e;
color: #e0e0e0;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
header {
padding: 1rem 2rem;
background: #16213e;
border-bottom: 2px solid #0f3460;
}
header h1 {
font-size: 1.5rem;
font-weight: 700;
letter-spacing: 0.2em;
color: #00d474;
}
.subtitle {
font-size: 0.85rem;
color: #888;
margin-top: 0.25rem;
}
main {
flex: 1;
display: flex;
flex-direction: column;
padding: 1rem;
overflow: hidden;
}
#drop-zone {
border: 2px dashed #0f3460;
border-radius: 12px;
padding: 4rem;
text-align: center;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
max-width: 600px;
margin: 0 auto;
}
#drop-zone:hover, #drop-zone.dragover {
border-color: #00d474;
background: rgba(0, 212, 116, 0.05);
}
#drop-zone p { font-size: 1.1rem; color: #aaa; }
/* Controls bar */
#controls {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 0.75rem;
padding: 0.5rem 1rem;
background: #16213e;
border-radius: 8px;
flex-shrink: 0;
}
#controls button {
background: #0f3460;
color: #e0e0e0;
border: none;
padding: 0.4rem 0.8rem;
border-radius: 4px;
cursor: pointer;
}
#controls button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.controls-sep {
width: 1px;
height: 1.2rem;
background: #0f3460;
flex-shrink: 0;
}
#zoom-level {
font-size: 0.8rem;
color: #00d474;
min-width: 3rem;
text-align: center;
}
/* Workspace: split panel */
#workspace {
display: flex;
flex: 1;
gap: 0.75rem;
overflow: hidden;
}
/* Left panel — scrollable line list only */
#left-panel {
width: 350px;
flex-shrink: 0;
background: #16213e;
border-radius: 8px;
overflow-y: auto;
}
#line-list {
padding: 0.5rem 0;
}
.line-item {
padding: 0.5rem 0.75rem;
cursor: pointer;
border-left: 3px solid transparent;
transition: background 0.15s, border-color 0.15s;
font-size: 0.8rem;
line-height: 1.4;
}
.line-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.line-item.selected {
border-left-color: #00d474;
background: rgba(0, 212, 116, 0.1);
}
.line-item .line-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #e0e0e0;
}
.line-item .line-meta {
font-size: 0.7rem;
color: #888;
margin-top: 0.15rem;
}
/* Font controls — floating toolbar at top of right panel */
#font-controls {
position: absolute;
top: 0.5rem;
left: 0.5rem;
right: 0.5rem;
z-index: 10;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: rgba(22, 33, 62, 0.92);
backdrop-filter: blur(6px);
border-radius: 6px;
border: 1px solid #0f3460;
}
#font-controls label,
#font-controls .size-control {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
color: #aaa;
white-space: nowrap;
}
#font-select {
flex: 1;
background: #0f3460;
color: #e0e0e0;
border: 1px solid #1a3a6e;
border-radius: 4px;
padding: 0.3rem 0.4rem;
font-size: 0.8rem;
}
#size-slider {
flex: 1;
accent-color: #00d474;
}
.size-btn {
background: #0f3460;
color: #e0e0e0;
border: 1px solid #1a3a6e;
border-radius: 4px;
width: 1.5rem;
height: 1.5rem;
cursor: pointer;
font-size: 0.9rem;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
#size-value {
color: #00d474;
min-width: 2rem;
text-align: right;
}
/* Position controls */
.pos-control {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
color: #aaa;
}
.dpad {
display: flex;
flex-direction: column;
align-items: center;
gap: 1px;
}
.dpad-mid {
display: flex;
align-items: center;
gap: 1px;
}
.pos-display {
color: #00d474;
font-size: 0.7rem;
min-width: 3.5rem;
text-align: center;
}
/* Right panel */
#right-panel {
flex: 1;
overflow: hidden;
background: #111;
border-radius: 8px;
cursor: grab;
position: relative;
}
#right-panel.panning {
cursor: grabbing;
user-select: none;
}
#doc-container {
position: absolute;
top: 0;
left: 0;
transform-origin: 0 0;
will-change: transform;
}
#doc-image {
display: block;
}
#overlay-canvas {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
/* Text edit bar — floating at bottom of right panel */
#text-edit-bar {
position: absolute;
bottom: 0.5rem;
left: 0.5rem;
right: 0.5rem;
z-index: 10;
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.4rem 0.6rem;
background: rgba(22, 33, 62, 0.92);
backdrop-filter: blur(6px);
border-radius: 6px;
border: 1px solid #0f3460;
font-size: 0.8rem;
color: #aaa;
}
#segment-inputs {
flex: 1;
display: flex;
align-items: center;
gap: 0;
min-width: 0;
}
.seg-input {
flex: 1;
min-width: 3rem;
background: #0a1628;
color: #e0e0e0;
border: 1px solid #1a3a6e;
border-radius: 4px;
padding: 0.3rem 0.4rem;
font-family: monospace;
font-size: 0.85rem;
}
.seg-input:focus {
outline: none;
border-color: #00d474;
}
.seg-input.active-segment {
border-color: #00d474;
box-shadow: 0 0 0 1px rgba(0, 212, 116, 0.3);
}
.redaction-marker {
flex-shrink: 0;
padding: 0.25rem 0.4rem;
background: #d32f2f;
color: #fff;
font-size: 0.65rem;
font-weight: 700;
border-radius: 3px;
cursor: default;
user-select: none;
letter-spacing: 0.05em;
}
.redaction-marker.preview {
background: #b8860b;
color: #ffe082;
}
.seg-hint {
font-size: 0.6rem;
color: #666;
white-space: nowrap;
padding: 0 0.2rem;
}
.loading {
color: #00d474;
text-align: center;
padding: 2rem;
font-size: 1.2rem;
}
/* Solve panel */
#solve-panel {
position: absolute;
top: 80px;
right: 12px;
bottom: 52px;
width: 300px;
display: flex;
flex-direction: column;
background: rgba(20, 20, 40, 0.95);
border: 1px solid #333;
border-radius: 8px;
padding: 12px;
z-index: 30;
overflow: hidden;
backdrop-filter: blur(10px);
}
.solve-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
flex-shrink: 0;
}
.solve-title {
font-weight: bold;
color: #00d474;
}
.solve-controls {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 10px;
flex-shrink: 0;
}
.solve-controls label {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.8rem;
color: #aaa;
}
.solve-controls select,
.solve-controls input {
background: #1a1a2e;
border: 1px solid #333;
color: #eee;
border-radius: 4px;
padding: 2px 4px;
}
.solve-actions {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 10px;
flex-shrink: 0;
}
.solve-btn {
background: #00d474;
color: #000;
border: none;
border-radius: 4px;
padding: 6px 16px;
cursor: pointer;
font-weight: bold;
}
.solve-btn:hover {
background: #00ff8a;
}
.solve-btn.accept {
background: #ffc800;
color: #000;
}
.solve-btn.accept:hover {
background: #ffda44;
}
#solve-status {
font-size: 0.75rem;
color: #aaa;
}
#solve-results {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
min-height: 0;
overflow-y: auto;
}
.solve-result {
display: flex;
justify-content: space-between;
padding: 4px 8px;
background: rgba(0, 212, 116, 0.1);
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
font-family: monospace;
font-size: 0.85rem;
}
.solve-result:hover {
border-color: #00d474;
background: rgba(0, 212, 116, 0.2);
}
.solve-result.active {
border-color: #ffc800;
background: rgba(255, 200, 0, 0.2);
}
.solve-result .result-text {
color: #00d474;
}
.solve-result .result-error {
color: #888;
font-size: 0.75rem;
}
/* Associate badges (clickable) */
.assoc-badge {
flex-shrink: 0;
padding: 2px 6px;
border-radius: 3px;
font-size: 0.6rem;
font-weight: 700;
letter-spacing: 0.05em;
cursor: pointer;
margin-right: 4px;
border: 1px solid transparent;
transition: filter 0.15s, border-color 0.15s;
}
.assoc-badge:hover {
filter: brightness(1.3);
border-color: #fff;
}
.assoc-badge.tier-1 {
background: #d32f2f;
color: #fff;
}
.assoc-badge.tier-2 {
background: #e65100;
color: #fff;
}
.assoc-badge.tier-3 {
background: #f9a825;
color: #000;
}
/* Associate detail popup */
#assoc-detail {
position: absolute;
top: 80px;
left: 12px;
right: 12px;
max-height: 60%;
background: rgba(16, 16, 32, 0.97);
border: 1px solid #444;
border-radius: 8px;
padding: 10px;
z-index: 40;
overflow-y: auto;
backdrop-filter: blur(10px);
}
.assoc-detail-header {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
color: #00d474;
margin-bottom: 8px;
font-size: 0.85rem;
}
.assoc-detail-close {
background: #0f3460;
color: #e0e0e0;
border: 1px solid #1a3a6e;
border-radius: 4px;
width: 1.5rem;
height: 1.5rem;
cursor: pointer;
font-size: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
}
.assoc-detail-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.assoc-detail-item {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 6px 8px;
background: rgba(255, 255, 255, 0.04);
border-radius: 4px;
}
.assoc-detail-item .assoc-badge {
margin-top: 2px;
cursor: default;
pointer-events: none;
}
.assoc-detail-info {
flex: 1;
min-width: 0;
}
.assoc-detail-name {
color: #e0e0e0;
font-weight: 600;
font-size: 0.85rem;
}
.assoc-detail-meta {
color: #888;
font-size: 0.7rem;
margin-top: 2px;
}