File size: 8,822 Bytes
a5a31c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* e-hekim — no inline styles anywhere, so the page satisfies a strict
   Content-Security-Policy (style-src 'self'; script-src 'self'). */

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --border: #d9e0e7;
  --text: #16202a;
  --text-dim: #5a6b7b;
  --accent: #0f766e;
  --accent-soft: #d7f0ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --high: #0f766e;
  --mid: #a45c00;
  --low: #8a929b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 42, .06), 0 4px 14px rgba(16, 32, 42, .05);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1418;
    --surface: #151d23;
    --surface-2: #1b252c;
    --border: #2a3843;
    --text: #e6edf3;
    --text-dim: #9bb0c0;
    --accent: #2dd4bf;
    --accent-soft: #10312e;
    --danger: #ff6b5e;
    --danger-soft: #331816;
    --warn: #e3b341;
    --high: #2dd4bf;
    --mid: #e3b341;
    --low: #7d8b97;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 28px 20px 60px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- masthead ---- */
.masthead {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 22px; font-weight: 700;
}
h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.tagline { margin: 2px 0 0; color: var(--text-dim); font-size: 14px; }

.index-stats { display: flex; gap: 18px; margin: 0; }
.index-stats div { text-align: right; }
.index-stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.index-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; font-family: var(--mono); }

/* ---- panels ---- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 20px;
}

/* ---- mode switch ---- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mode {
  text-align: left; cursor: pointer; padding: 12px 14px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); font: inherit;
  transition: border-color .12s, background .12s;
}
.mode:hover { border-color: var(--accent); }
.mode.is-active { border-color: var(--accent); background: var(--accent-soft); }
.mode-title { display: block; font-weight: 600; font-size: 15px; }
.mode-sub { display: block; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* ---- form ---- */
.field { display: block; margin-bottom: 16px; }
.field-narrow { max-width: 190px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.hint-inline { font-weight: 400; color: var(--text-dim); font-family: var(--mono); font-size: 12px; }

textarea, input[type="password"], input[type="number"], select {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
}
textarea { resize: vertical; min-height: 74px; }
textarea:focus, input:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
input[type="range"] { width: 100%; accent-color: var(--accent); }
output { font-family: var(--mono); font-weight: 700; color: var(--accent); }

.controls { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
@media (max-width: 640px) { .controls { grid-template-columns: 1fr; } .field-narrow { max-width: none; } }

fieldset {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 16px; margin: 4px 0 16px;
}
legend { font-size: 13px; font-weight: 600; padding: 0 6px; color: var(--text-dim); }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox input { accent-color: var(--accent); }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
button.primary, button.ghost {
  font: inherit; font-weight: 600; padding: 10px 20px;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent;
}
button.primary { background: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { filter: brightness(1.08); }
button.primary:disabled { opacity: .55; cursor: progress; }
button.ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
button.ghost:hover { color: var(--text); border-color: var(--accent); }
.status { font-size: 13px; color: var(--text-dim); }

/* ---- alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14.5px; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid currentColor; }

/* ---- answer ---- */
.answer h2 { margin: 0 0 12px; font-size: 17px; }
.answer-body { white-space: pre-wrap; font-size: 15.5px; }
.answer-body.is-refusal { color: var(--warn); font-style: italic; }
.refusal-note {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim);
}
details { margin-top: 14px; }
summary { cursor: pointer; font-size: 13.5px; color: var(--text-dim); }
pre {
  white-space: pre-wrap; word-break: break-word; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  font-family: var(--mono); font-size: 12.5px; margin-top: 10px; color: var(--text-dim);
}
.usage { font-size: 12.5px; color: var(--text-dim); font-family: var(--mono); margin: 12px 0 0; }

/* ---- results ---- */
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.results-head h2 { margin: 0; font-size: 17px; }
.results-meta { font-size: 12.5px; color: var(--text-dim); font-family: var(--mono); }

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.result {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--low);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.result.sim-high { border-left-color: var(--high); }
.result.sim-mid  { border-left-color: var(--mid); }
.result.sim-context { border-left-style: dashed; border-left-color: var(--text-dim); }
.result.is-rejected { opacity: .62; }

.citation {
  font-family: var(--mono); font-weight: 700; color: var(--accent);
  margin-right: 6px;
}
.tag.context { background: var(--accent-soft); color: var(--accent); border-color: currentColor; }

.result-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.result-title { font-weight: 600; font-size: 15px; margin: 0; }
.result-title a { color: inherit; text-decoration: none; }
.result-title a:hover { text-decoration: underline; }

.score { text-align: right; flex-shrink: 0; }
.score-value { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--low); }
.sim-high .score-value { color: var(--high); }
.sim-mid .score-value { color: var(--mid); }
.score-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }

.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; font-size: 12px; }
.tag {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px; color: var(--text-dim); font-family: var(--mono);
}
.tag.rejected { background: var(--danger-soft); color: var(--danger); border-color: currentColor; }
.result-text { margin: 0; font-size: 14.5px; color: var(--text); white-space: pre-wrap; }
.result-url { display: block; margin-top: 10px; font-size: 12px; color: var(--text-dim); word-break: break-all; }
.result-url a { color: var(--accent); }

.empty { color: var(--text-dim); font-size: 14.5px; padding: 16px; text-align: center; }

.foot { margin-top: 34px; font-size: 12.5px; color: var(--text-dim); text-align: center; }
.foot a { color: var(--accent); }