Spaces:
Running
Running
File size: 7,335 Bytes
22dd326 2a5ef23 22dd326 2a5ef23 22dd326 2a5ef23 22dd326 2a5ef23 22dd326 2a5ef23 22dd326 2a5ef23 22dd326 2a5ef23 22dd326 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | :root {
--bg: #0f1117;
--panel: #171a21;
--panel-2: #1e222c;
--border: #2a2f3a;
--text: #e6e9ef;
--muted: #9aa4b2;
--accent: #2dd4bf; /* teal — MEBench accent */
--accent-dim: #103833;
--gold: #fbbf24;
--blue: #38bdf8;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
height: 100%;
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
}
.app-shell { display: flex; height: 100vh; overflow: hidden; }
/* ---------- Sidebar ---------- */
.app-sidebar {
width: 340px;
min-width: 340px;
background: var(--panel);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow-y: auto;
padding: 18px 16px;
}
.app-sidebar header h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.controls { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
margin-bottom: 6px;
}
.view-toggle { display: flex; gap: 6px; }
.view-toggle button {
flex: 1;
padding: 8px 10px;
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--muted);
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: all 0.12s;
}
.view-toggle button:hover { color: var(--text); border-color: #3a4150; }
.view-toggle button.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.search-box { display: flex; flex-direction: column; gap: 8px; }
input[type="text"], select, button { font-family: inherit; font-size: 13px; }
input[type="text"], select {
width: 100%;
padding: 8px 10px;
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
border-radius: 8px;
outline: none;
}
input[type="text"]:focus, select:focus { border-color: var(--accent); }
select option { background: var(--panel-2); color: var(--text); }
#docSelect, #questionSelect { max-width: 100%; text-overflow: ellipsis; }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.nav-controls button {
flex: 1;
padding: 8px 10px;
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
border-radius: 8px;
cursor: pointer;
transition: all 0.12s;
}
.nav-controls button:hover { border-color: var(--accent); color: var(--accent); }
#corpusCounter, #evalCounter {
font-variant-numeric: tabular-nums;
color: var(--muted);
font-size: 12px;
min-width: 64px;
text-align: center;
}
.split-select { font-weight: 600; }
.sidebar-footer {
margin-top: auto;
padding-top: 16px;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 11px;
line-height: 1.6;
}
.sidebar-footer a { color: var(--blue); text-decoration: none; }
.sidebar-footer a:hover { text-decoration: underline; }
/* ---------- Main panel ---------- */
.app-main { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; }
#loading { color: var(--muted); padding: 40px; text-align: center; }
/* ---------- Corpus view ---------- */
#corpusView { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.doc-meta-card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px 20px;
margin-bottom: 16px;
}
.doc-meta-card h2 { margin: 0 0 12px; font-size: 19px; word-break: break-word; }
.meta-grid { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.meta-pill {
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 999px;
padding: 4px 12px;
font-size: 12px;
color: var(--muted);
}
.meta-pill b { color: var(--text); font-weight: 600; }
.doc-link { margin-left: auto; color: var(--blue); text-decoration: none; font-size: 13px; white-space: nowrap; }
.doc-link:hover { text-decoration: underline; }
.doc-content {
flex: 1;
min-height: 320px;
overflow: auto;
background: #12151c;
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px 24px;
line-height: 1.7;
white-space: pre-wrap;
font-size: 14.5px;
}
/* ---------- Eval view ---------- */
#evalView { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; max-width: 1000px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge {
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 999px;
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--muted);
}
.badge.id { color: var(--accent); border-color: var(--accent); }
.badge.cat-Comparative { color: var(--gold); border-color: var(--gold); }
.badge.cat-Statistical { color: var(--blue); border-color: var(--blue); }
.badge.cat-Relational { color: #c084fc; border-color: #c084fc; }
.badge.topic { color: #34d399; border-color: #34d399; }
.card h2 { margin: 0 0 18px; font-size: 20px; line-height: 1.4; }
.answer-banner {
background: var(--accent-dim);
border: 1px solid var(--accent);
border-radius: 10px;
padding: 12px 16px;
margin-bottom: 18px;
}
.answer-banner .lbl { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.answer-banner .val { font-size: 16px; font-weight: 600; margin-top: 6px; white-space: pre-wrap; }
.answer-banner ul { margin: 6px 0 0; padding-left: 20px; }
.answer-banner li { margin: 2px 0; font-weight: 600; }
.answer-banner .empty-answer { color: var(--muted); font-weight: 500; font-style: italic; }
.answer-banner table { border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.answer-banner th, .answer-banner td { border: 1px solid var(--accent); padding: 3px 10px; text-align: left; }
.answer-banner th { background: rgba(45,212,191,0.12); }
.field { margin-bottom: 16px; }
.field .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px; }
.field .val { line-height: 1.7; white-space: pre-wrap; }
.field code, .sql-code {
display: block;
white-space: pre-wrap;
font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
font-size: 12.5px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 12px;
color: #8be9c6;
}
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.doclink, button.topic-btn {
color: var(--blue);
text-decoration: none;
cursor: pointer;
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 8px;
padding: 5px 10px;
font-size: 13px;
white-space: nowrap;
font-family: inherit;
}
a.doclink:hover, button.topic-btn:hover { border-color: var(--blue); color: var(--blue); }
a.doclink.missing { color: var(--muted); cursor: default; }
a.doclink.missing:hover { border-color: var(--border); }
.empty { color: var(--muted); padding: 40px; text-align: center; }
|