The OSINT investigator's workbench. One case, one folder, every tool. Local-first: your media and your investigations never leave your machine.
JavaScript
/* ============================================================
Azimut design system — the investigator's desk.
Neutral, dense, flat: an instrument, not a dashboard.
Every component consumes these tokens; no hardcoded colors.
Direction: docs/UI.md §2.
============================================================ */
:root {
/* -- palette ------------------------------------------------ */
--bg-0: #151515; /* app background */
--bg-1: #1c1c1c; /* panels, sidebar */
--bg-2: #252525; /* raised: cards, inputs */
--bg-3: #2f2f2f; /* hover states, active rows */
--border: rgba(255, 255, 255, 0.09);
--border-strong: rgba(255, 255, 255, 0.18);
--text-1: #e3e3e3; /* primary text */
--text-2: #9f9f9f; /* secondary text */
--text-3: #6c6c6c; /* hints, placeholders */
--accent: #e8a33d; /* azimuth amber — selection & primary action only */
--accent-hover: #f4b558;
--accent-soft: rgba(232, 163, 61, 0.14);
--accent-text: #141414; /* text on accent */
--ok: #66b578;
--ok-soft: rgba(102, 181, 120, 0.12);
--warn: #d9a53f;
--danger: #d97070;
--danger-soft: rgba(217, 112, 112, 0.12);
--info: #6f9fd8;
--info-soft: rgba(111, 159, 216, 0.12);
/* annotation palette — high-contrast on both photo & satellite */
--anno-1: #ff5252;
--anno-2: #40c4ff;
--anno-3: #ffd740;
--anno-4: #69f0ae;
--anno-5: #e040fb;
--anno-6: #ff9e40;
/* Two data series, sun and moon, for the sky chart and the map rays. Their own
tokens rather than --accent (reserved for selection and primary actions) or
the annotation palette (sized for contrast over imagery, not for chart marks
on a panel). Each theme gets its own step: these are the dark ones, checked
for lightness, chroma, contrast and colour-vision separation against --bg-1. */
--sky-sun: #bd8721;
--sky-moon: #4a93cc;
/* Case-graph families (ONTOLOGY §2). Eight hues that have to separate from each
other *and* stay quiet: the graph's meaning rides on the stroke, so colour
only says which family a node belongs to. Not --accent, which stays reserved
for selection so a selected node reads as selected whatever its family, and
not the annotation palette, which is sized for contrast over imagery. */
--graph-actor: #7aa2d6;
--graph-asset: #6fb3a8;
--graph-class: #bfa14e;
--graph-identifier: #a892cc;
--graph-collected: #c98f6b;
--graph-document: #8f9aa8;
--graph-place: #7fb069;
--graph-claim: #cf8ba0;
/* Timeline categories. Status and selection still use their own tokens. */
--timeline-statement: #50bda8;
--timeline-media: #7896f0;
--timeline-activity: #a487d1;
/* -- typography --------------------------------------------- */
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono",
Menlo, Consolas, monospace;
--fs-xs: 0.72rem;
--fs-sm: 0.8rem;
--fs-md: 0.9rem;
--fs-lg: 1.05rem;
--fs-xl: 1.35rem;
/* -- geometry ------------------------------------------------ */
--r-sm: 3px;
--r-md: 4px;
--r-lg: 6px;
--rail-w: 64px;
--topbar-h: 44px;
--shadow-1: 0 1px 3px rgba(0, 0, 0, 0.4);
--shadow-2: 0 8px 28px rgba(0, 0, 0, 0.5);
--ease: cubic-bezier(0.25, 0.7, 0.3, 1);
color-scheme: dark;
}
/* -- light theme -------------------------------------------------
Same tokens, daylight palette. Toggled by stamping data-theme="light"
on <html> (lib/theme.js); dark is the default and lives in :root above.
Only the colour tokens flip — typography, geometry and the annotation
palette (which must stay high-contrast over imagery) are shared.
The bg ramp keeps its meaning: bg-0 is the working canvas, bg-1 the
surrounding chrome, bg-2 raised surfaces, bg-3 hover/active. */
:root[data-theme='light'] {
--bg-0: #f5f5f3; /* app / canvas — soft warm paper */
--bg-1: #ffffff; /* panels, sidebar, topbar — clean white chrome */
--bg-2: #ffffff; /* raised: cards, inputs (separated by --border) */
--bg-3: #e9e9e6; /* hover states, active rows */
--border: rgba(0, 0, 0, 0.11);
--border-strong: rgba(0, 0, 0, 0.22);
--text-1: #1e1e1e; /* primary text */
--text-2: #5c5c5c; /* secondary text */
--text-3: #8a8a8a; /* hints, placeholders */
--accent: #e8a33d; /* azimuth amber — brand-stable across themes */
--accent-hover: #d68f24;
--accent-soft: rgba(232, 163, 61, 0.2);
--accent-text: #201400; /* text on accent */
/* status hues deepened so they read as text on white */
--ok: #3f9d5a;
--ok-soft: rgba(63, 157, 90, 0.13);
--warn: #b5811f;
--danger: #c0392b;
--danger-soft: rgba(192, 57, 43, 0.12);
--info: #3b73b8;
--info-soft: rgba(59, 115, 184, 0.12);
/* sky series, stepped for a white surface rather than flipped from the dark set */
--sky-sun: #cc9526;
--sky-moon: #3f97d2;
/* graph families, darkened for a white canvas rather than flipped */
--graph-actor: #3f6ea8;
--graph-asset: #2f7f72;
--graph-class: #85661a;
--graph-identifier: #6f57a0;
--graph-collected: #a35f34;
--graph-document: #5b6674;
--graph-place: #4a7f36;
--graph-claim: #a35470;
--timeline-statement: #1f7669;
--timeline-media: #4264b5;
--timeline-activity: #76539d;
--shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12);
--shadow-2: 0 8px 28px rgba(0, 0, 0, 0.16);
/* Brand marks read light-on-dark by default; on white the cream lettering
and compass highlights need a dark ink instead (Logo/Wordmark fall back to
the cream when this is unset). */
--brand-ink: #23262b;
color-scheme: light;
}
/* Surfaces that sit *over imagery* — the Satellite map with its own
controls (zoom, scale, attribution) and floating tool clusters — were tuned
for the dark palette and must stay dark in every theme, or they clash with
the tiles beneath them. Opt in with class="dark-surface": it re-pins the
dark tokens locally, so it's a no-op in dark mode and a hard revert in light.
Values mirror the :root dark palette above — keep them in step. */
:root[data-theme='light'] .dark-surface {
--bg-0: #151515;
--bg-1: #1c1c1c;
--bg-2: #252525;
--bg-3: #2f2f2f;
--border: rgba(255, 255, 255, 0.09);
--border-strong: rgba(255, 255, 255, 0.18);
--text-1: #e3e3e3;
--text-2: #9f9f9f;
--text-3: #6c6c6c;
--accent-text: #141414;
--ok: #66b578;
--ok-soft: rgba(102, 181, 120, 0.12);
--warn: #d9a53f;
--danger: #d97070;
--danger-soft: rgba(217, 112, 112, 0.12);
--info: #6f9fd8;
--info-soft: rgba(111, 159, 216, 0.12);
--timeline-statement: #50bda8;
--timeline-media: #7896f0;
--timeline-activity: #a487d1;
--shadow-1: 0 1px 3px rgba(0, 0, 0, 0.4);
--shadow-2: 0 8px 28px rgba(0, 0, 0, 0.5);
}
/* -- reset ------------------------------------------------------ */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
height: 100%;
overflow: hidden;
}
body {
font-family: var(--font-sans);
font-size: var(--fs-md);
line-height: 1.5;
color: var(--text-1);
background: var(--bg-0);
-webkit-font-smoothing: antialiased;
}
#app {
height: 100%;
}
h1, h2, h3, h4, p {
margin: 0;
}
button {
font: inherit;
color: inherit;
background: none;
border: none;
padding: 0;
cursor: pointer;
}
input,
textarea,
select {
font: inherit;
}
img {
max-width: 100%;
display: block;
}
a {
color: var(--info);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
::selection {
background: var(--accent-soft);
}
/* -- scrollbars -------------------------------------------------- */
* {
scrollbar-width: thin;
scrollbar-color: var(--bg-3) transparent;
}
*::-webkit-scrollbar {
width: 10px;
height: 10px;
}
*::-webkit-scrollbar-thumb {
background: var(--bg-3);
border-radius: 5px;
border: 2px solid var(--bg-0);
}
*::-webkit-scrollbar-track {
background: transparent;
}
/* ============================================================
Shared primitives — used across every tool for consistency.
============================================================ */
.btn {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 5px 12px;
border-radius: var(--r-sm);
font-size: var(--fs-sm);
font-weight: 500;
background: var(--bg-2);
border: 1px solid var(--border);
color: var(--text-1);
transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
white-space: nowrap;
user-select: none;
}
.btn:hover:not(:disabled, .disabled) {
background: var(--bg-3);
border-color: var(--border-strong);
}
/* an <a class="btn"> can never match :disabled — it opts out with .disabled
instead (and drops its href, so it doesn't navigate either) */
.btn:disabled,
.btn.disabled {
opacity: 0.45;
cursor: not-allowed;
}
.btn-primary {
background: var(--accent);
border-color: transparent;
color: var(--accent-text);
font-weight: 600;
}
.btn-primary:hover:not(:disabled, .disabled) {
background: var(--accent-hover);
border-color: transparent;
}
.btn-ok {
background: var(--ok);
border-color: transparent;
color: var(--accent-text);
font-weight: 600;
}
.btn-ok:hover:not(:disabled, .disabled) {
background: color-mix(in srgb, var(--ok) 84%, white);
border-color: transparent;
}
.btn-info {
background: var(--info);
border-color: transparent;
color: var(--bg-1);
font-weight: 600;
}
.btn-info:hover:not(:disabled, .disabled) {
background: color-mix(in srgb, var(--info) 84%, white);
border-color: transparent;
}
.btn-danger {
color: var(--danger);
}
.btn-danger:hover:not(:disabled, .disabled) {
background: var(--danger-soft);
border-color: var(--danger);
}
.btn-ghost {
background: transparent;
border-color: transparent;
color: var(--text-2);
}
.btn-ghost:hover:not(:disabled, .disabled) {
background: var(--bg-2);
color: var(--text-1);
}
.btn-sm {
padding: 3px 8px;
font-size: var(--fs-xs);
}
/* The size of a panel's own small print, for the acts that sit among its fields. */
.btn-xs {
gap: 4px;
padding: 2px 7px;
font-size: 11px;
}
/* A field and the one act that belongs to it, in a single box: the calendar that
builds a date, the map that moves a point, the tab a source opens in, the
mark that says a point is where the camera stood.
One box rather than two, split by a hairline: the act is a property of what is
typed beside it, and a separate square read as a second field. The darker
panel behind the icon is what says it can be pressed at all. */
.field-with-act {
display: flex;
align-items: stretch;
min-width: 0;
border: 1px solid var(--border);
border-radius: var(--r-sm);
background: var(--bg-2);
transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field-with-act:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}
.field-with-act.warn {
border-color: color-mix(in srgb, var(--warn, #e8a33d) 55%, transparent);
}
/* The input inside gives up its own box to the one around it. */
.field-with-act > .input {
flex: 1;
min-width: 0;
border: 0;
border-radius: 0;
background: transparent;
}
.field-with-act > .input:focus {
box-shadow: none;
}
.field-act {
display: grid;
place-items: center;
flex-shrink: 0;
width: 26px;
border-left: 1px solid var(--border);
border-radius: 0 3px 3px 0;
background: var(--bg-3);
color: var(--text-3);
cursor: pointer;
}
.field-act:hover:not(:disabled, .disabled) {
color: var(--text-1);
background: var(--bg-2);
}
.field-act.on {
color: var(--accent);
background: var(--accent-soft);
}
.field-act:disabled,
.field-act.disabled {
opacity: 0.4;
cursor: default;
}
.input,
.textarea,
.select {
width: 100%;
padding: 6px 10px;
border-radius: var(--r-sm);
background: var(--bg-2);
border: 1px solid var(--border);
color: var(--text-1);
font-size: var(--fs-sm);
transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder,
.textarea::placeholder {
color: var(--text-3);
}
.input:focus,
.textarea:focus,
.select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}
.textarea {
resize: vertical;
min-height: 72px;
line-height: 1.55;
}
.mono {
font-family: var(--font-mono);
font-size: 0.92em;
}
.label {
display: block;
font-size: var(--fs-xs);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-3);
margin-bottom: 5px;
}
.card {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-md);
}
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 7px;
border-radius: var(--r-sm);
font-size: var(--fs-xs);
font-weight: 500;
background: var(--bg-3);
color: var(--text-2);
}
.badge.accent {
background: var(--accent-soft);
color: var(--accent);
}
.badge.ok {
background: var(--ok-soft);
color: var(--ok);
}
.badge.info {
background: var(--info-soft);
color: var(--info);
}
.badge.danger {
background: var(--danger-soft);
color: var(--danger);
}
/* "Something here can be updated", from the Settings icon down to the button
that does it. One dot, one meaning, wherever it lands. The host carries
.dotted to anchor it.
It hangs off the top-right corner rather than sitting inside: on a primary
button the inside is amber on amber, and on any button with a label the dot
lands on the words. */
.dotted {
position: relative;
}
.update-dot {
position: absolute;
top: -3px;
right: -3px;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
pointer-events: none;
}
/* Empty states — every tool has one, they must feel designed. */
.empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 48px 24px;
color: var(--text-3);
text-align: center;
}
.empty .empty-icon {
opacity: 0.5;
}
.empty h3 {
color: var(--text-2);
font-size: var(--fs-lg);
font-weight: 600;
}
.empty p {
font-size: var(--fs-sm);
max-width: 380px;
}
/* Tool page scaffold */
.tool {
display: flex;
flex-direction: column;
height: 100%;
min-width: 0;
}
.tool-header {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px 9px;
border-bottom: 1px solid var(--border);
}
.tool-header h2 {
font-size: var(--fs-lg);
font-weight: 600;
letter-spacing: -0.01em;
}
.tool-header .sub {
font-size: var(--fs-sm);
color: var(--text-3);
}
/* The name of what the tool is editing. Inspect, the Proof Composer and the
Post Composer all name their work this way, and the name is the filename it
saves under. */
.tool-header .title-input {
width: min(320px, 26vw);
font-weight: 600;
}
.tool-body {
flex: 1;
min-height: 0;
overflow: auto;
}
/* Rendered Markdown, from lib/markdown.js. Shared by the Notebook preview and
the release notes in the update pop-up; anything specific to one of them
(entity references, diagrams) stays in that component. */
.markdown {
color: var(--text-1);
line-height: 1.65;
overflow-wrap: anywhere;
}
.markdown h1,
.markdown h2,
.markdown h3 {
margin: 0 0 12px;
line-height: 1.25;
}
.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote {
margin: 0 0 12px;
}
.markdown ul,
.markdown ol {
padding-left: 20px;
}
.markdown blockquote {
padding-left: 12px;
border-left: 2px solid var(--border);
color: var(--text-2);
}
.markdown code {
padding: 1px 4px;
border-radius: 3px;
background: var(--bg-2);
font-family: var(--mono);
}
.markdown pre {
margin: 0 0 12px;
padding: 12px;
overflow: auto;
border: 1px solid var(--border);
border-radius: var(--r-sm);
background: var(--bg-1);
}
.markdown pre code {
padding: 0;
background: transparent;
}
.markdown table {
width: 100%;
margin: 0 0 12px;
border-collapse: collapse;
font-size: var(--fs-sm);
}
.markdown th,
.markdown td {
padding: 7px 9px;
border: 1px solid var(--border);
text-align: left;
vertical-align: top;
}
.markdown th {
background: var(--bg-2);
}
.markdown input[type='checkbox'] {
margin-right: 6px;
accent-color: var(--accent);
}
.markdown img,
.markdown video {
display: block;
max-width: 100%;
height: auto;
margin: 0 0 12px;
border-radius: var(--r-sm);
border: 1px solid var(--border);
}
.markdown a {
color: var(--accent);
}
.markdown > :last-child {
margin-bottom: 0;
}
/* ============================================================
Settings pane
The layout vocabulary the Settings tabs are written in. Global rather than
scoped because the tabs are seven components (`tools/settings/`) rendering
into one pane, and seven copies of the same group/row/segmented-control
rules would drift. Every selector is under `.settings-pane`, which only
`Settings.svelte` puts on the page.
============================================================ */
.settings-pane .group {
padding: 14px 0 18px;
border-bottom: 1px solid var(--border);
}
.settings-pane .group:last-child {
border-bottom: 0;
}
.settings-pane h3 {
display: flex;
align-items: center;
gap: 7px;
font-size: var(--fs-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-3);
margin-bottom: 12px;
}
.settings-pane .row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
margin-bottom: 8px;
}
.settings-pane .row-label {
display: flex;
flex-direction: column;
gap: 2px;
font-size: var(--fs-sm);
color: var(--text-1);
}
.settings-pane .row-hint {
color: var(--text-3);
font-size: var(--fs-xs);
line-height: 1.4;
}
.settings-pane .scraper-actions {
display: flex;
align-items: center;
gap: 6px;
}
/* One-row segmented control. */
.settings-pane .seg {
display: flex;
flex-shrink: 0;
border: 1px solid var(--border);
border-radius: var(--r-md);
overflow: hidden;
}
.settings-pane .seg-btn {
padding: 5px 12px;
border: 0;
border-left: 1px solid var(--border);
background: var(--bg-2);
color: var(--text-2);
font: inherit;
font-size: var(--fs-xs);
cursor: pointer;
transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.settings-pane .seg-btn:first-child {
border-left: 0;
}
.settings-pane .seg-btn:hover {
background: var(--bg-3);
color: var(--text-1);
}
.settings-pane .seg-btn.on {
background: var(--accent);
color: var(--accent-text);
font-weight: 600;
}
.settings-pane .note {
color: var(--text-3);
font-size: var(--fs-xs);
line-height: 1.5;
margin-top: 8px;
}
.settings-pane .note.warn {
color: var(--warn, #d8a03d);
}
/* same voice as .note, but leading a group instead of trailing one */
.settings-pane .intro {
color: var(--text-3);
font-size: var(--fs-xs);
line-height: 1.5;
margin: 0 0 14px;
}
.settings-pane .field {
display: flex;
flex-direction: column;
gap: 4px;
font-size: var(--fs-xs);
color: var(--text-2);
font-weight: 600;
}
.settings-pane .links {
display: flex;
gap: 8px;
margin-top: 14px;
flex-wrap: wrap;
}
.settings-pane .links .btn {
gap: 6px;
text-decoration: none;
}
.settings-pane .empty {
color: var(--text-3);
font-size: var(--fs-sm);
font-style: italic;
}
/* A section heading inside a side panel, foldable: a chevron, an icon, the name
in the panel's small caps, and what it holds counted on the right. Global
because the sections of one panel are not all written in the same component —
the map's Layers list is its own — and a scoped copy is a heading that drifts
out of the voice of the one above it. */
.sub-head {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 12px 2px 6px;
background: none;
border: none;
font: inherit;
font-size: var(--fs-xs);
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-2);
text-align: left;
cursor: pointer;
}
.sub-head:hover {
color: var(--accent);
}
.sub-head .count {
margin-left: auto;
text-transform: none;
}
/* Row and value marks, from the annotation palette. Global because three components
paint with them — the grid's rows and chips, the cell editor's offers, the column
panel's vocabulary — and a scoped copy per component is three lists that drift. The
amber accent is not in here: it means selection, and a row painted with it would read
as a selected row. */
.c-red { --mark: var(--anno-1); --row-tint: rgba(255, 82, 82, 0.1); }
.c-orange { --mark: var(--anno-6); --row-tint: rgba(255, 158, 64, 0.1); }
.c-yellow { --mark: var(--anno-3); --row-tint: rgba(255, 215, 64, 0.1); }
.c-green { --mark: var(--anno-4); --row-tint: rgba(105, 240, 174, 0.1); }
.c-blue { --mark: var(--anno-2); --row-tint: rgba(64, 196, 255, 0.1); }
.c-grey { --mark: var(--text-3); --row-tint: rgba(160, 160, 160, 0.08); }