clavarium 0.2.133-next.1 → 0.2.135-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +10 -10
- package/package.json +3 -3
- package/web/app.js +132 -19
- package/web/style.css +30 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.135-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.135-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
13
|
"@xterm/xterm": "^6.0.0",
|
|
14
|
-
"clavarium-binder": "0.1.
|
|
14
|
+
"clavarium-binder": "0.1.41-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.1",
|
|
16
16
|
"clavarium-parley": "0.17.20-next.1",
|
|
17
|
-
"clavarium-tether": "0.1.0-next.
|
|
17
|
+
"clavarium-tether": "0.1.0-next.33",
|
|
18
18
|
"mermaid": "11.17.2",
|
|
19
19
|
"node-pty": "^1.1.0",
|
|
20
20
|
"pdfjs-dist": "6.4.299",
|
|
@@ -716,9 +716,9 @@
|
|
|
716
716
|
}
|
|
717
717
|
},
|
|
718
718
|
"node_modules/clavarium-binder": {
|
|
719
|
-
"version": "0.1.
|
|
720
|
-
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.
|
|
721
|
-
"integrity": "sha512-
|
|
719
|
+
"version": "0.1.41-next.1",
|
|
720
|
+
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.41-next.1.tgz",
|
|
721
|
+
"integrity": "sha512-VmO9IR2L2Dztw3bOlrU60dXtBdYOCMQX3KdTbVh7uwhekk5aJS1QxaFstHNEd4BXE4rmX1OM+zXQu5zUG7B1jA==",
|
|
722
722
|
"license": "MIT",
|
|
723
723
|
"bin": {
|
|
724
724
|
"binder": "bin/binder.mjs",
|
|
@@ -755,9 +755,9 @@
|
|
|
755
755
|
}
|
|
756
756
|
},
|
|
757
757
|
"node_modules/clavarium-tether": {
|
|
758
|
-
"version": "0.1.0-next.
|
|
759
|
-
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.
|
|
760
|
-
"integrity": "sha512-
|
|
758
|
+
"version": "0.1.0-next.33",
|
|
759
|
+
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.33.tgz",
|
|
760
|
+
"integrity": "sha512-gcXJ1H1fYaAg5/JrXKG/yeV0RH4zNS/uUPPXPK0wLpRR0T0aHq34ZitciDoG5ZxOVRze423kTP84gVtLd3nXVw==",
|
|
761
761
|
"license": "MIT",
|
|
762
762
|
"bin": {
|
|
763
763
|
"tether": "bin/cli.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.135-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@xterm/addon-fit": "^0.11.0",
|
|
46
46
|
"@xterm/xterm": "^6.0.0",
|
|
47
|
-
"clavarium-binder": "0.1.
|
|
47
|
+
"clavarium-binder": "0.1.41-next.1",
|
|
48
48
|
"clavarium-docket": "0.1.1",
|
|
49
49
|
"clavarium-parley": "0.17.20-next.1",
|
|
50
|
-
"clavarium-tether": "0.1.0-next.
|
|
50
|
+
"clavarium-tether": "0.1.0-next.33",
|
|
51
51
|
"mermaid": "11.17.2",
|
|
52
52
|
"node-pty": "^1.1.0",
|
|
53
53
|
"pdfjs-dist": "6.4.299",
|
package/web/app.js
CHANGED
|
@@ -4169,26 +4169,139 @@
|
|
|
4169
4169
|
catch (error) { $('assets-error').textContent = error.message; $('assets-error').hidden = false; }
|
|
4170
4170
|
if (after) await after(); else await paintAssets();
|
|
4171
4171
|
}
|
|
4172
|
-
/*
|
|
4173
|
-
|
|
4174
|
-
|
|
4172
|
+
/* ONE TETHER CALL WAITING FOR THE OWNER, AS A CARD (#190): what it does in plain words,
|
|
4173
|
+
then who / when / where in short lines, what should make one think (someone outside,
|
|
4174
|
+
a time already taken, administrator rights) in an amber band, the AI's reason in a grey
|
|
4175
|
+
line, and one row of buttons -- the act's own verb, Refuse beside it, "Always…" behind
|
|
4176
|
+
"⋯". The whole card opens its detail (the technical line too). An accept waits a few
|
|
4177
|
+
seconds with "Undo" before it goes. Built from `q.card` (Tether); a call without one
|
|
4178
|
+
keeps its line. `withWho`: name the conversation that asks. */
|
|
4179
|
+
const UNDO_MS = 5000;
|
|
4180
|
+
const dayChip = (when) => {
|
|
4181
|
+
const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(when ?? ''));
|
|
4182
|
+
if (!m) return null;
|
|
4183
|
+
const d = new Date(Date.UTC(+m[1], +m[2] - 1, +m[3], 12));
|
|
4184
|
+
const chip = el('div', 'dm-day');
|
|
4185
|
+
chip.append(el('div', 'dm-day-w', d.toLocaleDateString('en-GB', { weekday: 'short', timeZone: 'UTC' }).toUpperCase()), el('div', 'dm-day-n', String(+m[3])));
|
|
4186
|
+
return chip;
|
|
4187
|
+
};
|
|
4188
|
+
const hhmm = (when) => /[T ](\d{2}:\d{2})/.exec(String(when ?? ''))?.[1] ?? '';
|
|
4189
|
+
const dayWords = (when) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(when ?? '')); return m ? new Date(Date.UTC(+m[1], +m[2] - 1, +m[3], 12)).toLocaleDateString('en-GB', { weekday: 'long', day: 'numeric', month: 'short', timeZone: 'UTC' }) : String(when ?? ''); };
|
|
4190
|
+
const span = (from, to) => [hhmm(from), hhmm(to)].filter(Boolean).join(' – ') || [from, to].filter(Boolean).join(' – ');
|
|
4191
|
+
const nameOfAddr = (a) => { const m = /^\s*"?([^"<]*?)"?\s*<([^>]+)>/.exec(String(a ?? '')); return m && m[1] ? m[1] : String(a ?? '').split('@')[0]; };
|
|
4192
|
+
const askedAgo = (at) => { const s = Math.round((Date.now() - Date.parse(at)) / 1000); if (!Number.isFinite(s)) return ''; return s < 60 ? 'just now' : s < 3600 ? `${Math.round(s / 60)} min ago` : s < 86400 ? `${Math.round(s / 3600)} h ago` : `${Math.round(s / 86400)} d ago`; };
|
|
4193
|
+
const KIND_ICON = { mail: '✉', calendar: '📅', contacts: '👤', terminal: '⌘', files: '🗎', browser: '🌐', screen: '🖥', other: '•' };
|
|
4194
|
+
/* What a card says, from its facts: { title, day?, sub?, facts: [[icon, text|node]], quote?, risk: [], yes } */
|
|
4195
|
+
function demandeWords(q) {
|
|
4196
|
+
const c = q.card ?? {}; const about = c.about ?? {};
|
|
4197
|
+
const own = String(c.self ?? '').split('@')[1] ?? '';
|
|
4198
|
+
const outside = (list) => (own ? (list ?? []).filter((x) => !String(x).toLowerCase().endsWith(`@${own}`)) : []);
|
|
4199
|
+
const chips = (list, ext = []) => { const box = el('span', 'dm-chips'); for (const x of list ?? []) box.append(el('span', `dm-chip${ext.includes(x) ? ' ext' : ''}`, ext.includes(x) ? `${x} · outside` : x)); return box; };
|
|
4200
|
+
const w = { facts: [], risk: [], yes: 'Accept' };
|
|
4201
|
+
const subj = (s) => (s ? `“${s}”` : 'a message');
|
|
4202
|
+
const filesLine = (files) => (files?.length ? files.map((f) => `${f.name}${f.kb ? ` (${f.kb >= 1024 ? `${(f.kb / 1024).toFixed(1)} MB` : `${f.kb} KB`})` : ''}`).join(', ') : '');
|
|
4203
|
+
if (c.kind === 'mail') {
|
|
4204
|
+
const ext = outside([...(c.to ?? []), ...(c.cc ?? []), ...(c.bcc ?? [])]);
|
|
4205
|
+
if (ext.length) w.risk.push(`Goes outside: ${ext.join(', ')}`);
|
|
4206
|
+
const sendWord = c.draft ? 'Save draft' : c.at ? 'Schedule' : 'Send';
|
|
4207
|
+
if (c.action === 'send') { w.title = `${c.draft ? 'Draft' : 'Send'} ${subj(c.subject)}`; w.yes = sendWord; }
|
|
4208
|
+
else if (c.action === 'reply') { w.title = `${c.all ? 'Reply to all on' : 'Reply to'} ${about.from ? nameOfAddr(about.from) : 'a message'}`; if (about.subject) w.facts.push(['≡', `On “${about.subject}”`]); w.yes = sendWord; }
|
|
4209
|
+
else if (c.action === 'forward') {
|
|
4210
|
+
w.title = `Forward ${subj(about.subject)}`; w.yes = c.draft ? 'Save draft' : 'Forward';
|
|
4211
|
+
const k = String(c.keep ?? 'all').toLowerCase();
|
|
4212
|
+
const kept = /^(none|false|no)$/.test(k) ? 'without its files' : /^(all|true|yes|)$/.test(k) ? (about.files?.length ? `with ${filesLine(about.files)}` : 'with its files') : `keeping ${c.keep}`;
|
|
4213
|
+
w.facts.push(['📎', kept]);
|
|
4214
|
+
} else if (c.action === 'move') { w.title = `Move ${subj(about.subject)} to ${c.mailbox ?? 'a folder'}`; w.yes = 'Move'; }
|
|
4215
|
+
else if (c.action === 'flag') { w.title = `Mark ${subj(about.subject)} ${c.flag ?? ''}`.trim(); w.yes = 'Mark'; }
|
|
4216
|
+
else if (c.action === 'delete') { w.title = `Delete ${subj(about.subject)}`; w.yes = 'Delete'; }
|
|
4217
|
+
else w.title = `${c.action ?? 'mail'} ${q.detail ?? ''}`;
|
|
4218
|
+
if (about.from && c.action !== 'reply') w.facts.push(['👤', `From ${about.from}`]);
|
|
4219
|
+
if (c.to?.length) w.facts.push(['→', chips(c.to, ext)]);
|
|
4220
|
+
if (c.cc?.length) w.facts.push(['cc', chips(c.cc, ext)]);
|
|
4221
|
+
if (c.bcc?.length) w.facts.push(['bcc', chips(c.bcc, ext)]);
|
|
4222
|
+
if (c.at) w.facts.push(['⏰', `Leaves ${dayWords(c.at)}${hhmm(c.at) ? `, ${hhmm(c.at)}` : ''} — waits in Drafts until then`]);
|
|
4223
|
+
if (c.files?.length) w.facts.push(['📎', `Joined: ${filesLine(c.files)}`]);
|
|
4224
|
+
/* The body as it will read: the Markdown marks taken off. */
|
|
4225
|
+
if (c.body) w.quote = c.body.replace(/\*\*(\S[^*\n]*?)\*\*/g, '$1').replace(/__(\S[^_\n]*?)__/g, '$1').replace(/(^|[^*\w])\*(\S[^*\n]*?)\*(?!\w)/g, '$1$2').replace(/\[([^\]\n]+)\]\(([^)\s]+)\)/g, '$1 ($2)').replace(/^#{1,6}\s+/gm, '');
|
|
4226
|
+
} else if (c.kind === 'calendar') {
|
|
4227
|
+
const ev = c.action === 'create' ? c : { ...about, ...Object.fromEntries(Object.entries(c).filter(([k]) => ['title', 'start', 'end', 'where'].includes(k))) };
|
|
4228
|
+
const answer = { accept: 'Accept', yes: 'Accept', decline: 'Decline', no: 'Decline', refuse: 'Decline', tentative: 'Maybe', maybe: 'Maybe' }[String(c.answer ?? '').toLowerCase()] ?? '';
|
|
4229
|
+
w.day = dayChip(ev.start);
|
|
4230
|
+
w.title = c.action === 'respond' ? `${answer || 'Answer'}: ${about.title || 'an invitation'}` : c.action === 'create' ? (c.title ?? 'New event') : c.action === 'delete' ? `Delete “${about.title || 'an event'}”` : c.action === 'update' ? `Change “${about.title || c.title || 'an event'}”` : c.action === 'attach' ? `Attach ${filesLine(c.files)} to “${about.title || 'an event'}”` : `${c.action} ${q.detail ?? ''}`;
|
|
4231
|
+
if (ev.start) w.sub = `${dayWords(ev.start)} · ${span(ev.start, ev.end)}${ev.where ? ` · ${ev.where}` : ''}`;
|
|
4232
|
+
if (about.clashes?.length) w.risk.push(`Clashes with ${about.clashes.join(', ')}`);
|
|
4233
|
+
if (about.organizer && c.action === 'respond') w.facts.push(['👤', `From ${about.organizer}${about.attendees?.length ? ` · with ${about.attendees.length} people` : ''}`]);
|
|
4234
|
+
const guests = c.with ?? [];
|
|
4235
|
+
const ext = outside(guests);
|
|
4236
|
+
if (ext.length) w.risk.push(`Invites someone outside: ${ext.join(', ')}`);
|
|
4237
|
+
if (guests.length) w.facts.push(['👥', chips(guests, ext)]);
|
|
4238
|
+
if (c.online === 'teams' || (c.action === 'create' && guests.length && !c.online)) w.facts.push(['🎥', 'With a Teams meeting (Microsoft)']);
|
|
4239
|
+
if (c.notes) w.quote = c.notes;
|
|
4240
|
+
w.yes = c.action === 'respond' ? (answer || 'Answer') : c.action === 'create' ? (guests.length ? 'Create and invite' : 'Create') : c.action === 'delete' ? 'Delete' : c.action === 'update' ? 'Change' : 'Accept';
|
|
4241
|
+
} else if (c.kind === 'contacts') {
|
|
4242
|
+
w.title = c.action === 'create' ? `Add ${c.name || c.email || 'a contact'}` : c.action === 'update' ? `Update ${c.name || 'a contact'}` : c.action === 'delete' ? 'Delete a contact' : c.action === 'attach' ? 'Set a contact\'s photo' : `${c.action} ${q.detail ?? ''}`;
|
|
4243
|
+
if (c.email) w.facts.push(['✉', c.email]); if (c.phone) w.facts.push(['☎', c.phone]);
|
|
4244
|
+
w.yes = c.action === 'create' ? 'Add' : c.action === 'delete' ? 'Delete' : 'Update';
|
|
4245
|
+
} else if (c.kind === 'terminal') {
|
|
4246
|
+
w.title = c.action === 'run' ? `Run a command on ${q.target?.title ?? 'a machine'}` : c.action === 'type' ? `Type into a terminal on ${q.target?.title ?? 'a machine'}` : `Open a terminal on ${q.target?.title ?? 'a machine'}`;
|
|
4247
|
+
if (/^\s*sudo\b/.test(c.command ?? '')) w.risk.push('As administrator');
|
|
4248
|
+
if (c.command || c.text) { const code = el('code', '', c.command ?? c.text); w.facts.push(['›_', code]); }
|
|
4249
|
+
w.yes = c.action === 'run' ? 'Run' : 'Accept';
|
|
4250
|
+
} else if (c.kind === 'files') {
|
|
4251
|
+
w.title = c.action === 'write' ? `Write ${c.path}` : c.action === 'delete' ? `Delete ${c.path}` : c.action === 'move' ? `Move ${c.from} → ${c.to}` : `${c.action} ${c.path ?? ''}`;
|
|
4252
|
+
if (c.bytes !== undefined) w.facts.push(['≡', `${c.bytes >= 1024 ? `${Math.round(c.bytes / 1024)} KB` : `${c.bytes} bytes`}`]);
|
|
4253
|
+
w.yes = c.action === 'delete' ? 'Delete' : c.action === 'move' ? 'Move' : 'Write';
|
|
4254
|
+
} else if (c.kind === 'browser' && c.action === 'open') { w.title = `Open ${c.url}`; w.yes = 'Open'; }
|
|
4255
|
+
else { w.title = `${q.verb ?? 'action'}${q.detail ? ` ${q.detail}` : ''}`; }
|
|
4256
|
+
return w;
|
|
4257
|
+
}
|
|
4175
4258
|
function demandeRow(q, { withWho = false, after } = {}) {
|
|
4176
|
-
const
|
|
4177
|
-
const
|
|
4178
|
-
const
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
const
|
|
4182
|
-
if (
|
|
4183
|
-
if (
|
|
4184
|
-
|
|
4185
|
-
const
|
|
4186
|
-
const
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4259
|
+
const kind = q.card?.kind ?? String(q.verb ?? '').split('.')[0];
|
|
4260
|
+
const w = demandeWords(q);
|
|
4261
|
+
const card = el('div', `given-row demande dm-card dm-${kind}`);
|
|
4262
|
+
const top = el('div', 'dm-top');
|
|
4263
|
+
top.append(el('span', 'dm-ico', KIND_ICON[kind] ?? '•'), el('span', '', [q.target?.title, withWho ? q.agent?.name : '', askedAgo(q.at)].filter(Boolean).join(' · ')), el('span', 'dm-chev', '›'));
|
|
4264
|
+
const head = el('div', 'dm-head');
|
|
4265
|
+
if (w.day) head.append(w.day);
|
|
4266
|
+
const hw = el('div', 'dm-hw'); hw.append(el('b', 'dm-title', w.title)); if (w.sub) hw.append(el('div', 'dm-sub', w.sub)); head.append(hw);
|
|
4267
|
+
card.append(top, head);
|
|
4268
|
+
for (const r of w.risk) card.append(el('div', 'dm-risk', `⚠ ${r}`));
|
|
4269
|
+
if (w.facts.length) { const f = el('div', 'dm-facts'); for (const [ic, v] of w.facts) { f.append(el('span', 'dm-k', ic)); const cell = el('span', 'dm-v'); if (typeof v === 'string') cell.textContent = v; else cell.append(v); f.append(cell); } card.append(f); }
|
|
4270
|
+
if (w.quote) card.append(el('div', 'dm-quote', w.quote));
|
|
4271
|
+
if (q.why) card.append(el('div', 'dm-why', `Why: ${q.why}`));
|
|
4272
|
+
/* The detail: the whole card opens it -- the technical line, its level, its rule. */
|
|
4273
|
+
const more = el('div', 'dm-more'); more.hidden = true;
|
|
4274
|
+
more.append(el('div', '', `${q.verb ?? ''}${q.detail ? ` — ${q.detail}` : ''}`), el('div', 'hint', [q.target?.title, q.agent?.name, q.level ? `level ${q.level}` : ''].filter(Boolean).join(' · ')));
|
|
4275
|
+
card.append(more);
|
|
4276
|
+
card.addEventListener('click', (e) => { if (e.target.closest('button')) return; more.hidden = !more.hidden; card.classList.toggle('open', !more.hidden); });
|
|
4277
|
+
const acts = el('div', 'dm-acts');
|
|
4278
|
+
const yes = el('button', 'primary', w.yes); yes.type = 'button';
|
|
4279
|
+
const no = el('button', '', 'Refuse'); no.type = 'button';
|
|
4280
|
+
const buttons = [yes, no];
|
|
4281
|
+
let always = null;
|
|
4282
|
+
if (q.rule) {
|
|
4283
|
+
const dots = el('button', 'dm-dots', '⋯'); dots.type = 'button'; dots.setAttribute('aria-label', 'More');
|
|
4284
|
+
always = el('button', '', `Always allow ${q.rule.value ?? 'this'}`); always.type = 'button'; always.hidden = true;
|
|
4285
|
+
dots.addEventListener('click', () => { always.hidden = !always.hidden; });
|
|
4286
|
+
acts.append(dots); buttons.push(always);
|
|
4287
|
+
}
|
|
4288
|
+
acts.append(no, yes);
|
|
4289
|
+
card.append(acts);
|
|
4290
|
+
if (always) card.append(always);
|
|
4291
|
+
const lock = (on) => { for (const b of buttons) b.disabled = on; };
|
|
4292
|
+
/* Accept: a few seconds to take it back, then it goes. Refuse goes at once (nothing happens). */
|
|
4293
|
+
const accept = (decision) => {
|
|
4294
|
+
lock(true);
|
|
4295
|
+
const undo = el('div', 'dm-undo'); const ub = el('button', '', 'Undo'); ub.type = 'button';
|
|
4296
|
+
undo.append(el('span', '', decision === 'always' ? 'Allowed, and from now on' : `${w.yes} — accepted`), ub);
|
|
4297
|
+
acts.replaceWith(undo);
|
|
4298
|
+
const timer = setTimeout(() => { ub.disabled = true; void decideTether(q.id, decision, after); }, UNDO_MS);
|
|
4299
|
+
ub.addEventListener('click', () => { clearTimeout(timer); undo.replaceWith(acts); lock(false); });
|
|
4300
|
+
};
|
|
4301
|
+
yes.addEventListener('click', () => accept('yes'));
|
|
4302
|
+
always?.addEventListener('click', () => accept('always'));
|
|
4303
|
+
no.addEventListener('click', () => { lock(true); void decideTether(q.id, 'no', after); });
|
|
4304
|
+
return card;
|
|
4192
4305
|
}
|
|
4193
4306
|
/* Every call waiting for the owner, on one surface. `withWho`: name who asks. */
|
|
4194
4307
|
function demandesList(approvals, { withWho = false, after } = {}) {
|
package/web/style.css
CHANGED
|
@@ -1910,3 +1910,33 @@ details.commit > pre { margin: 6px 0 0 1.6em; white-space: pre-wrap; overflow-wr
|
|
|
1910
1910
|
.tool-exit-one p { margin: .2rem 0; }
|
|
1911
1911
|
.tool-exit-lines { max-height: 14rem; overflow: auto; font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2, rgba(127,127,127,.08)); padding: .5rem .6rem; border-radius: 8px; margin: .3rem 0; }
|
|
1912
1912
|
.curve-legend-oom { color: var(--danger); }
|
|
1913
|
+
|
|
1914
|
+
/* A request of the AI as a card (#190). */
|
|
1915
|
+
.dm-card.given-row { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; padding: 10px 12px; cursor: pointer; position: relative; text-align: left; }
|
|
1916
|
+
.dm-card > * { align-self: stretch; text-align: left; }
|
|
1917
|
+
.dm-card > .dm-risk, .dm-card > .dm-acts { align-self: stretch; }
|
|
1918
|
+
.dm-top { display: flex; justify-content: flex-start; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink2); }
|
|
1919
|
+
.dm-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(127,127,127,.15); font-size: .8rem; flex: none; }
|
|
1920
|
+
.dm-chev { margin-left: auto; font-size: 1.2rem; line-height: 1; transition: transform .15s; }
|
|
1921
|
+
.dm-card.open .dm-chev { transform: rotate(90deg); }
|
|
1922
|
+
.dm-head { display: flex; gap: 10px; align-items: center; min-width: 0; }
|
|
1923
|
+
.dm-hw { min-width: 0; }
|
|
1924
|
+
.dm-title { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
|
|
1925
|
+
.dm-sub { color: var(--ink2); font-size: .88rem; }
|
|
1926
|
+
.dm-day { width: 46px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
|
|
1927
|
+
.dm-day-w { background: var(--brass); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; padding: 1px 0; }
|
|
1928
|
+
.dm-day-n { font-size: 1.15rem; font-weight: 700; padding: 1px 0 3px; }
|
|
1929
|
+
.dm-risk { padding: 5px 9px; border-radius: 8px; background: rgba(217, 154, 30, .16); color: inherit; font-size: .86rem; font-weight: 600; }
|
|
1930
|
+
.dm-facts { display: grid; justify-content: start; justify-items: start; grid-template-columns: 1.6em minmax(0, 1fr); gap: 3px 6px; font-size: .9rem; }
|
|
1931
|
+
.dm-k { color: var(--ink2); text-align: center; }
|
|
1932
|
+
.dm-v { min-width: 0; overflow-wrap: anywhere; }
|
|
1933
|
+
.dm-chips { display: inline-flex; flex-wrap: wrap; gap: 3px; }
|
|
1934
|
+
.dm-chip { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: .8rem; }
|
|
1935
|
+
.dm-chip.ext { border-color: rgba(217, 154, 30, .7); }
|
|
1936
|
+
.dm-quote { border-left: 3px solid var(--line); padding: 1px 9px; font-size: .88rem; white-space: pre-line; max-height: 7.5em; overflow: hidden; }
|
|
1937
|
+
.dm-card.open .dm-quote { max-height: none; }
|
|
1938
|
+
.dm-why { color: var(--ink2); font-size: .86rem; }
|
|
1939
|
+
.dm-more { font-size: .8rem; font-family: ui-monospace, monospace; overflow-wrap: anywhere; border-top: 1px dashed var(--line); padding-top: 6px; }
|
|
1940
|
+
.dm-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
|
|
1941
|
+
.dm-acts .dm-dots { padding-inline: .7em; }
|
|
1942
|
+
.dm-undo { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: .9rem; padding: 4px 0; }
|