File size: 5,352 Bytes
726d519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d49e34a
 
 
726d519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d49e34a
726d519
 
 
 
 
 
 
 
 
 
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
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #565d66;
  --border: #d9d6cf;
  --accent: #0f5c57;
  --accent-text: #ffffff;
  --accent-soft: #e3efed;
  --error: #a3261b;
  --ok: #1f6b35;
  --focus: #1a5fb4;
  --radius: 0.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131516;
    --surface: #1c1f21;
    --text: #e6e8e9;
    --muted: #a5abb0;
    --border: #353a3e;
    --accent: #6cbcb2;
    --accent-text: #0b1a18;
    --accent-soft: #1f3331;
    --error: #ff9a8f;
    --ok: #8fd6a2;
    --focus: #8ab4f8;
  }
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.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;
}
.skip { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.75rem; background: var(--surface); color: var(--text); }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.page {
  max-width: 44rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; margin: 0 0 0.25rem; }
.intro { margin: 0; color: var(--muted); }

.lang { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.lang button {
  font: inherit; font-size: 0.875rem; padding: 0.375rem 0.75rem; border: 0;
  background: var(--surface); color: var(--muted); cursor: pointer; min-height: 2.25rem;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); font-weight: 600; }

.disclosure {
  margin: 0; padding: 0.75rem 1rem; font-size: 0.9375rem;
  background: var(--accent-soft); border-radius: var(--radius); border-left: 3px solid var(--accent);
}
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem; background: var(--accent); color: var(--accent-text); margin-right: 0.25rem;
}

.wake, .typing { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.chat { display: flex; flex-direction: column; gap: 1rem; flex: 1; }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.msg { max-width: 85%; }
.msg p {
  margin: 0; padding: 0.625rem 0.875rem; border-radius: var(--radius);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg .who { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.msg.you { align-self: flex-end; text-align: right; }
.msg.you p { background: var(--accent); color: var(--accent-text); text-align: left; }
.msg.bot p { background: var(--surface); border: 1px solid var(--border); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.chips-label { width: 100%; font-size: 0.875rem; color: var(--muted); }
.chips button {
  font: inherit; font-size: 0.9375rem; padding: 0.5rem 0.875rem; min-height: 2.5rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer;
}
.chips button:hover { border-color: var(--accent); }

.gate { display: flex; flex-direction: column; gap: 0.5rem; }
.gate p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

.notice { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.notice:empty { display: none; }
.notice.error, .status.error { color: var(--error); }
.status.ok { color: var(--ok); font-weight: 600; }
.status { margin: 0; }

.contact {
  display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.contact h2:focus { outline: none; }
.contact .hint { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--muted); }
.contact label { font-size: 0.875rem; font-weight: 600; margin-top: 0.25rem; }
.contact .primary { align-self: flex-start; margin-top: 0.5rem; }

input, textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem; width: 100%;
}
textarea { resize: vertical; }

.ask {
  position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 0.5rem; align-items: flex-end;
  padding: 0.75rem 0 0.25rem; background: var(--bg);
}
.ask textarea { resize: none; min-height: 2.75rem; max-height: 8rem; field-sizing: content; background: var(--surface); }

.primary {
  font: inherit; font-weight: 600; padding: 0.5rem 1.125rem; min-height: 2.75rem;
  border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); cursor: pointer;
}
.chips button:disabled, .primary:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 30rem) {
  .page { padding: 1rem 0.75rem; }
  h1 { font-size: 1.25rem; }
  .msg { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}