aboutsummaryrefslogtreecommitdiffstats
path: root/src/style.css
blob: 05e7103a1683780a440c8734312f804e2d79263c (plain) (blame)
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
/* Bitcoin Wallet — hand-rolled CSS. Clean light "paper wallet" look. */

:root {
  --bg: #eef0f3;
  --paper: #ffffff;
  --ink: #15171a;
  --muted: #6b7280;
  --faint: #9aa1ac;
  --line: #e6e8ec;
  --line-strong: #d4d8de;
  --accent: #15171a; /* coinos black */
  --accent-hover: #2c3037; /* accent, slightly lifted */
  --accent-fg: #ffffff; /* text on accent */
  --accent-ink: #000000;
  --accent-soft: #ececef;
  --green: #14935a;
  --green-soft: #e7f6ee;
  --green-line: #c4e7d4;
  --red: #c43b3b;
  --red-soft: #fbeaea;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px rgba(16, 24, 40, 0.07);
  --surface2: #f7f8fa; /* subtle raised surface (hover, mnemonic cells) */
  --toast-bg: #15171a; /* dark toast on light page */
  --toast-fg: #ffffff;
  --tab-bg: #e9ebef; /* tab strip background */
  --info: #3949ab;
  --info-soft: #eef2ff;
  --info-line: #d4ddfb;
  --radius: 16px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark theme — applied via data-theme="dark" on <html>. */
:root[data-theme="dark"] {
  --bg: #0f1216;
  --paper: #181b21;
  --ink: #e7e9ee;
  --muted: #9aa1ac;
  --faint: #6f7782;
  --line: #2a2f37;
  --line-strong: #3a414b;
  --accent: #ffffff; /* coinos white on dark */
  --accent-hover: #d9dce1; /* accent, slightly dimmed */
  --accent-fg: #0f1216; /* text on accent */
  --accent-ink: #e7e9ee;
  --accent-soft: #262b33;
  --green: #2dbd80;
  --green-soft: #14271d;
  --green-line: #235340;
  --red: #e66a6a;
  --red-soft: #2c1a1a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.5);
  --surface2: #20242b;
  --toast-bg: #2c323b; /* raised toast that reads against the dark page */
  --toast-fg: #f3f5f8;
  --tab-bg: #20242b;
  --info: #9db4ff;
  --info-soft: #1a2030;
  --info-line: #2c3a5e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.45;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ---- typography ---- */
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.break { word-break: break-all; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
summary { cursor: pointer; }

/* ---- layout helpers ---- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.gap6 { gap: 6px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ---- brand / header ---- */
.brand { display: flex; align-items: center; gap: 10px; }
.logo-full { height: 40px; flex: none; color: var(--ink); display: grid; place-items: center; }
.logo-full svg { height: 40px; width: auto; display: block; }
.brand h1 { font-size: 19px; }

.badge {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap;
}
.badge.dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 6px; vertical-align: middle;
}
.badge.off.dot::before { background: var(--faint); }
.badge.live { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.badge.live.dot::before { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.badge.testnet { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

/* ---- card ---- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card { margin-top: 16px; }

/* ---- balance card ---- */
.balance .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--mono); }
.balance .amt .unit { font-size: 18px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.balance .usd { color: var(--muted); margin-top: 2px; }
.balance .split { margin-top: 14px; display: flex; gap: 22px; }
.balance .split .k { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.balance .split .v { font-family: var(--mono); font-size: 14px; }
.balance .split .v.pending { color: var(--accent-ink); }

/* ---- tabs ---- */
.tabs { display: flex; gap: 4px; background: var(--tab-bg); border-radius: 12px; padding: 4px; margin: 16px 0; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 9px;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
}
.tabs button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* ---- buttons ---- */
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  padding: 11px 16px; transition: filter .12s, background .12s, border-color .12s;
}
button:hover { background: var(--surface2); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; display: block; }
.btn-danger { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.iconbtn { padding: 9px 11px; line-height: 1; }

/* ---- inputs ---- */
label.field { display: block; }
.field .lab { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
/* Custom caret so it isn't crammed against the right border (native is fixed). */
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { resize: vertical; min-height: 84px; font-family: var(--mono); font-size: 15px; }
.mono-input { font-family: var(--mono); }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

/* unit toggle */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 9px 14px; background: var(--paper); }
.seg button.active { background: var(--accent-soft); color: var(--accent-ink); }

/* ---- address / qr ---- */
.qr { width: 220px; height: 220px; display: block; border-radius: 12px; border: 1px solid var(--line); }
.addr-box {
  font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--surface2); border: 1px dashed var(--line-strong);
  border-radius: 11px; padding: 12px 14px; word-break: break-all; text-align: center;
}
.path { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.addr-check { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); word-break: break-all; padding: 0 2px; }
.addr-check .hl { color: var(--ink); font-weight: 700; }

/* ---- mnemonic grid ---- */
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.words .w {
  display: flex; align-items: baseline; gap: 7px; background: var(--surface2);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-family: var(--mono);
}
.words .w .n { color: var(--faint); font-size: 12px; width: 18px; text-align: right; }
.words .w .t { font-weight: 600; }
.warn-box {
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-ink);
  border-radius: 11px; padding: 12px 14px; font-size: 14px;
}

/* ---- lists (tx / utxo) ---- */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 16px; }
.ico.in { background: var(--green-soft); color: var(--green); }
.ico.out { background: var(--red-soft); color: var(--red); }
.amount-pos { color: var(--green); font-family: var(--mono); font-weight: 600; }
.amount-neg { color: var(--red); font-family: var(--mono); font-weight: 600; }
.amount { font-family: var(--mono); font-weight: 600; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tag.pending { background: var(--accent-soft); color: var(--accent-ink); }
.tag.conf { background: var(--green-soft); color: var(--green); }

/* coin control rows */
.coin { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-top: 1px solid var(--line); }
.coin:first-child { border-top: 0; }
.coin input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---- review / summary ---- */
.summary { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; align-items: baseline; }
.summary .line .k { color: var(--muted); flex: none; }
.summary .line .v { font-family: var(--mono); text-align: right; min-width: 0; word-break: break-word; }

/* ---- misc ---- */
.notice { border-radius: 11px; padding: 11px 13px; font-size: 14px; }
.notice.err { background: var(--red-soft); color: var(--red); border: 1px solid #f1c9c9; }
.notice.ok { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }
.notice.info { background: var(--info-soft); color: var(--info); border: 1px solid var(--info-line); }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle;
}
.spinner.sm { width: 13px; height: 13px; border-width: 2px; }

/* ---- qr scanner overlay ---- */
.scan-overlay { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scan-overlay video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; width: min(70vw, 260px); height: min(70vw, 260px); border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.45); }
.scan-hint { position: absolute; bottom: 70px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; padding: 0 24px; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.scan-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.4); font-size: 18px; line-height: 1; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--toast-bg); color: var(--toast-fg); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow); z-index: 50; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.words .w.masked .t { color: var(--faint); letter-spacing: 2px; }

.check-badge {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 34px; font-weight: 700;
}
.footer { margin-top: 28px; padding-bottom: 8px; }
.footer a { color: var(--accent-ink); font-weight: 600; }

/* Clickable unit labels (BTC/sats) — look like text, toggle the global unit. */
.unit-tag {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer;
  color: var(--muted); font-weight: 600;
  border-radius: 0;
  border-bottom: 1px dotted var(--line-strong);
}
.unit-tag:hover { background: none; color: var(--accent-ink); border-bottom-color: var(--accent); }
.unit-tag:active { transform: none; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
hr.divider { margin: 16px 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.linklike:hover { text-decoration: underline; background: none; }

/* ---- how it works ---- */

@media (max-width: 420px) {
  .words { grid-template-columns: repeat(2, 1fr); }
  .balance .amt { font-size: 28px; }
}

/* Icon dropdown (receive mode) — a <select> can't render SVG in options. */
.icon-select-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; cursor: pointer;
}
.icon-select-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.icon-select-menu {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 5px; box-shadow: 0 10px 28px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px;
}
.icon-select-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-radius: 8px; padding: 10px 10px; cursor: pointer; text-align: left;
}
.icon-select-item:hover { background: var(--hover, rgba(128,128,128,.12)); }
.icon-select-item.active { background: var(--accent-soft, rgba(247,147,26,.14)); }
.sel-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; font-size: 16px; line-height: 1; }
.sel-ico svg { display: block; }

/* Messages — Concord community chat. */
.chat-card { padding: 0; overflow: hidden; }
.chat-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.chat-title { font-weight: 650; }
.chat-log {
  height: min(62vh, 640px); overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; background: var(--surface2);
}
.chat-row { display: flex; gap: 9px; align-items: flex-start; }
.chat-row.grouped { margin-top: -6px; }
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: var(--accent-soft);
}
.chat-avatar.fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase;
}
.chat-avatar.spacer { background: transparent; height: 0; }
.chat-body { min-width: 0; flex: 1; }
.chat-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.chat-name { font-size: 13px; font-weight: 650; }
.chat-badge {
  font-size: 10px; font-weight: 650; color: var(--accent-fg); background: var(--accent);
  border-radius: 5px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px;
}
.chat-time { font-size: 11px; color: var(--faint); }
.chat-bubble {
  position: relative; display: inline-block; max-width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 7px 11px; font-size: 14px; line-height: 1.45;
  overflow-wrap: break-word; white-space: pre-wrap;
}
.chat-edited { font-size: 11px; color: var(--faint); }
.chat-del {
  position: absolute; top: -7px; right: -7px; width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--paper); color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer;
}
.chat-row:hover .chat-del { display: flex; }
.chat-reacts { display: flex; gap: 5px; margin-top: 3px; }
.chat-react {
  font-size: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 9px; padding: 1px 7px;
}
.chat-compose {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line);
  align-items: center;
}
.chat-compose input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 10px 13px;
}
.chat-compose input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Messages v2 — home lists, DM threads, invite panel. */
.chat-back { font-size: 22px; line-height: 1; padding: 2px 10px 4px; flex-shrink: 0; }
.chat-thread-row { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.chat-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-invite { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.chat-invite input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px; min-width: 0; }
.chat-row.dm { justify-content: flex-start; }
.chat-row.dm.mine { justify-content: flex-end; }
.chat-row.dm .chat-body { max-width: 82%; }
.chat-row.dm.mine .chat-body { text-align: right; }
.chat-bubble.me { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); text-align: left; }
.chat-row.dm .chat-time { font-size: 10px; color: var(--faint); margin-top: 2px; }

/* Settings: section heading between card groups. */
.settings-section { margin: 8px 0 -6px 4px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Inline move-money panel on the balance card. */
.balance-move { gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.balance-move .seg { display: flex; width: 100%; }
.balance-move .seg button { flex: 1; }