/* One full-bleed dotted canvas. A one-row bar and a shapes strip float above it.
   Type hues (--c-*) appear only while a gesture is in progress; at rest everything is slate by day and grey by night,
   but for one colour, the depth ultramarine (--z), which shows only where Z is.
   The look: soft raised paper on a cool, pale ground by day, lit from the top left (a white glint above, a soft shade
   below); plain greys by night. Over it, quiet instruments: hairline axes, small tracked mono labels, slashed zeros.
   A book serif carries the words that talk to you: headers, the path, the empty canvas's instructions. */
@property --tc { syntax: '<color>'; inherits: true; initial-value: #677483; }

/* Day: the light look, with a cool tint. */
:root {
  /* The canvas dots: their radius, and their opacity (the Dots slider in the side view's panel sets --dot-o). */
  --dot-r: .75px; --dot-o: 100%; --dot-ink: color-mix(in srgb, var(--dot) var(--dot-o), transparent);
  --r: 5px;                 /* a card's corner */
  --canvas: #E4E8EE; --dot: #D0D6DF; --surface: #FAFBFD;      /* (cards stand further off the canvas, and the dots sink into it: Axio 2026-10-13) */
  --ink: #1C2430; --ink-2: #4B5765; --ink-3: #677483;
  --rule: #D3DAE2; --rule-2: #C3CCD6; --rule-v: 70%; --on-tc: #FFFFFF;
  /* The two lights: a glint toward the top left and a soft shade toward the bottom right. Cards rest on them, the
     chrome is raised by them, and a pressed button or a column's tray is sunk by them. */
  --hi: rgba(255, 255, 255, .92);
  --shadow-rest: -2px -2px 5px var(--hi), 3px 4px 10px -2px rgba(22, 27, 29, .1), 0 1px 1px rgba(22, 27, 29, .05);
  --raise: -4px -4px 10px var(--hi), 4px 5px 12px rgba(22, 27, 29, .1);
  --raise-sm: -2px -2px 5px var(--hi), 2px 3px 6px rgba(22, 27, 29, .12);
  --press: inset 2px 2px 4px rgba(22, 27, 29, .11), inset -2px -2px 4px var(--hi);
  --sunk: inset 2px 2px 6px rgba(22, 27, 29, .08), inset -2px -2px 6px rgba(255, 255, 255, .8);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, .5);                 /* the rim of raised chrome */
  --fc-hi: -2px -2px 5px; --fc-hi-c: var(--hi); --fc-lo-c: rgba(22, 27, 29, .12); --fc-rim: rgba(255, 255, 255, .5);   /* --raise-sm and --edge in parts, for a layer's face (side.css) */
  --rim-c: rgba(255, 255, 255, .12);            /* the rim of a coloured tile or face */
  --press-bg: color-mix(in srgb, var(--ink) 3%, var(--canvas));    /* a button that is on */
  --halo: rgba(28, 36, 48, .12);
  --inset: rgba(28, 36, 48, .06);
  --chrome: rgba(240, 243, 247, .86);
  /* The face of every floating bubble (the top bar, the guide, the rails, the docks): set off from the canvas by its
     own tone, a hairline and a cast shadow, where the canvas's own colour let it dissolve (Axio, 2026-11-04). */
  --glass: rgba(244, 246, 250, .95);
  --glass-sh: 0 0 0 1px rgba(28, 36, 48, .09), 0 1px 2px rgba(22, 27, 29, .06), 0 8px 22px -6px rgba(22, 27, 29, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
  --glass-hov: color-mix(in srgb, var(--ink) 6%, transparent);
  --g-fill: 14%; --g-ink: 60%; --g-skel: 35%; --g-skel-tx: 55%;
  --c-text: #3568B2; --c-board: var(--z); --c-table: #007974; --c-header: #AB3A5D; --c-todo: #7652AC; --c-link: #4C7A26; --c-column: #836400; --c-timer: #C2481F;
  --tray: #DADFE7;          /* a column: a recessed tray its cards sit on */
  --well: var(--canvas);    /* a file card's preview window */
  --ink-q: #5A6674;         /* small muted text that must still read (>= 4.5:1 on a card, the tray and the canvas) */
  --danger: #A93226;        /* chrome about to remove things (Clear, asking): 5:1 on its own tint over the canvas */
  --sel: rgba(28, 36, 48, .74);
  --drop-1: rgba(22, 27, 29, .22); --drop-2: rgba(22, 27, 29, .07); --rim: rgba(22, 27, 29, .03);
  --pop: -6px -6px 16px rgba(255, 255, 255, .55), 0 18px 40px -12px rgba(22, 27, 29, .28), 0 2px 6px rgba(22, 27, 29, .06);
  --c-upload: #1C2430; --c-shapes: #94379B;
  /* Ink (section 23): a marker's highlighter hues, see-through and multiplied into what is under them. */
  --mk-ink: #9AA5B4; --mk-red: #F59079; --mk-yellow: #F7D347; --mk-green: #95D48C; --mk-blue: #8FB8F2; --mk-violet: #C9A9F2; --mk-xyz: #969DFA; --mk-o: .55; --mk-blend: multiply;
  --hud: #1C2430; --on-hud: #ECEFF4;      /* a dark label chip */
  /* Files: a badge hue per kind (the only hues at rest), and the paper their previews are printed on. */
  --ft-pdf: #B8352A; --ft-doc: #2E5DAA; --ft-ppt: #B4521D; --ft-xls: #2A7444; --ft-gen: #66727F;
  --sheet: #FFFFFF; --sheet-ink: #1D1D1B; --sheet-ink-2: #6A6A65; --sheet-edge: rgba(22, 27, 29, .12); --sheet-dim: none;
  /* ...and the paper of a sheet set here from text: the same by day, the night's own at night (.fc-sheet, section 15) */
  --sheet-t: #FFFFFF; --sheet-t-ink: #1D1D1B; --sheet-t-ink-2: #6A6A65; --sheet-t-edge: rgba(22, 27, 29, .12);
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tc: var(--ink-3);    /* the registered initial value above is never what renders; this follows the theme */
  /* Side view (section 19): the 3D lattice's dots, the tree's links, and the lift that keeps a blurred card's silhouette. */
  --dot-3d: #A1ABB8; --link: #B0BAC6; --link-on: #808D9B; --lattice-a: .9; --lattice-r: 1.5;
  --shadow-lift: 0 1px 2px rgba(22, 27, 29, .06), 0 6px 18px rgba(22, 27, 29, .08);
  /* Axes (section 19i): hairlines a step darker than the dots, and their numbers. */
  --axis: #C3CBD6; --axis-tx: #94A1AF;
  /* Depth (the brand's one colour): an ultramarine that only shows where Z is, going into things and coming back out:
     the Z of the mark and of every address, the path's slashes, a board taking what is let go on it, the way in and
     out of a board, the side view's Z axis and depths. Everything else stays slate by day and grey by night. */
  --z: #2E3CF0; --z-soft: rgba(46, 60, 240, .1);
  /* Colours you give things (section 21): each a tint it fills with (-t), the ink on that tint (-n) and a mark (-a), its
     hue on the canvas (a header's words, a shape's edge, a timer's arc, a pen). Content, not chrome: they keep their hue
     at night. Quiet tints of one lightness, the yellow a butter and its ink and mark ochre, never olive (Axio
     2026-10-27: "a small tint, a really high-class color set"). The ink reads at 9:1 or more on its tint; every mark
     at 4.5:1 or more on the canvas, on a card and on its tint. */
  --k-red-a: #9C514B; --k-red-t: #FEECEB; --k-red-n: #553230; --k-orange-a: #94582A; --k-orange-t: #FEEDE1; --k-orange-n: #523621;
  --k-yellow-a: #875F16; --k-yellow-t: #FAF1CF; --k-yellow-n: #50390A; --k-green-a: #467047; --k-green-t: #E7F6E5; --k-green-n: #2F4330;
  --k-teal-a: #277172; --k-teal-t: #DEF6F6; --k-teal-n: #244343; --k-blue-a: #3868A5; --k-blue-t: #E7F2FE; --k-blue-n: #263F5A;
  --k-violet-a: #745A9F; --k-violet-t: #F3EEFE; --k-violet-n: #423656; --k-pink-a: #93536E; --k-pink-t: #FEEBF3; --k-pink-n: #51323F;
}
/* Night: every colour a grey, but for the type hues a drawing shows while it is drawn (Axio 2026-10-11: those from
   before v28, light enough for the dark; a Board keeps the depth colour). It follows the system (or the host's theme)
   until the bar's Night button picks a look. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-look="day"]) {
    --canvas: #0F0F0F; --dot: #202020; --surface: #242424;
    --ink: #ECECEC; --ink-2: #A6A6A6; --ink-3: #8B8B8B; --danger: #ECECEC;
    --rule: #333333; --rule-2: #3D3D3D; --rule-v: 100%; --on-tc: #0F0F0F;
    --hi: rgba(255, 255, 255, .035);
    --shadow-rest: -1px -1px 2px var(--hi), 3px 4px 10px -2px rgba(0, 0, 0, .6), 0 1px 1px rgba(0, 0, 0, .35);
    --raise: -3px -3px 8px rgba(255, 255, 255, .03), 4px 5px 14px rgba(0, 0, 0, .6);
    --raise-sm: -1px -1px 3px rgba(255, 255, 255, .04), 2px 3px 6px rgba(0, 0, 0, .55);
    --press: inset 2px 2px 5px rgba(0, 0, 0, .55), inset -1px -1px 3px rgba(255, 255, 255, .04);
    --sunk: inset 2px 2px 6px rgba(0, 0, 0, .5), inset -1px -1px 3px rgba(255, 255, 255, .03);
    --edge: inset 0 0 0 1px rgba(255, 255, 255, .07);
    --fc-hi: -1px -1px 3px; --fc-hi-c: rgba(255, 255, 255, .04); --fc-lo-c: rgba(0, 0, 0, .55); --fc-rim: rgba(255, 255, 255, .07);
    --press-bg: color-mix(in srgb, var(--ink) 10%, var(--canvas));
    --halo: rgba(236, 236, 236, .14);
    --inset: rgba(0, 0, 0, .35);
    --chrome: rgba(27, 27, 27, .86);
    --glass: rgba(33, 33, 33, .95);
    --glass-sh: 0 0 0 1px rgba(255, 255, 255, .085), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 26px -6px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
    --glass-hov: color-mix(in srgb, var(--ink) 8%, transparent);
    --g-fill: 13%; --g-ink: 50%; --g-skel: 30%; --g-skel-tx: 41%;
    --c-text: #7FACF0; --c-board: var(--z); --c-table: #5FBDB7; --c-header: #EA89A1; --c-todo: #B59BE6; --c-link: #9CC97A; --c-column: #D2B05A; --c-timer: #EE9470;
    --tray: #0A0A0A;
    --ink-q: #8E8E8E;    /* never dimmer than --ink-3 */
    --sel: rgba(236, 236, 236, .78);
    --drop-1: rgba(0, 0, 0, .72); --drop-2: rgba(0, 0, 0, .4); --rim: rgba(236, 236, 236, .1);
    --pop: 0 18px 40px -12px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .45);
    --c-upload: #ECECEC; --c-shapes: #D995DE;
    --mk-ink: #8C8C8C; --mk-red: #E58A78; --mk-yellow: #D9C26A; --mk-green: #8DC285; --mk-blue: #8DAEE6; --mk-violet: #B59CE0; --mk-xyz: #7F87F2; --mk-o: .46; --mk-blend: screen;
    --hud: #ECECEC; --on-hud: #0F0F0F;
    --ft-pdf: #A6A6A6; --ft-doc: #A6A6A6; --ft-ppt: #A6A6A6; --ft-xls: #A6A6A6; --ft-gen: #A6A6A6;
    --sheet: #E4E4E4; --sheet-ink: #1C1C1C; --sheet-ink-2: #616161; --sheet-edge: rgba(0, 0, 0, .5); --sheet-dim: brightness(.9);
    --sheet-t: #1E1E1E; --sheet-t-ink: #D2D2D2; --sheet-t-ink-2: #9C9C9C; --sheet-t-edge: rgba(236, 236, 236, .1);
    --dot-3d: #737373; --link: #474747; --link-on: #787878; --lattice-a: .72; --lattice-r: 1.45;
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35);
    --axis: #333333; --axis-tx: #575757;
    --z: #8A93FF; --z-soft: rgba(138, 147, 255, .13);     /* the one hue at night */
    /* Colours at night: dark tints of the same hues, their ink pale, their marks light enough for the dark. */
    --k-red-a: #D28A82; --k-red-t: #472C2B; --k-red-n: #F8D9D6; --k-orange-a: #C99165; --k-orange-t: #442F1F; --k-orange-n: #F4DCCB;
    --k-yellow-a: #C0974E; --k-yellow-t: #3F3217; --k-yellow-n: #EDE0C4; --k-green-a: #7FA97F; --k-green-t: #293929; --k-green-n: #D6E7D5;
    --k-teal-a: #62AAAA; --k-teal-t: #1F3939; --k-teal-n: #CDE7E7; --k-blue-a: #74A0D7; --k-blue-t: #243549; --k-blue-n: #D0E4FA;
    --k-violet-a: #A892D1; --k-violet-t: #372F47; --k-violet-n: #E5DCF7; --k-pink-a: #CA89A2; --k-pink-t: #432C37; --k-pink-n: #F4D9E3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]:not([data-look="day"]), :root[data-look="night"] {
  --canvas: #0F0F0F; --dot: #202020; --surface: #242424;
  --ink: #ECECEC; --ink-2: #A6A6A6; --ink-3: #8B8B8B; --danger: #ECECEC;
  --rule: #333333; --rule-2: #3D3D3D; --rule-v: 100%; --on-tc: #0F0F0F;
  --hi: rgba(255, 255, 255, .035);
  --shadow-rest: -1px -1px 2px var(--hi), 3px 4px 10px -2px rgba(0, 0, 0, .6), 0 1px 1px rgba(0, 0, 0, .35);
  --raise: -3px -3px 8px rgba(255, 255, 255, .03), 4px 5px 14px rgba(0, 0, 0, .6);
  --raise-sm: -1px -1px 3px rgba(255, 255, 255, .04), 2px 3px 6px rgba(0, 0, 0, .55);
  --press: inset 2px 2px 5px rgba(0, 0, 0, .55), inset -1px -1px 3px rgba(255, 255, 255, .04);
  --sunk: inset 2px 2px 6px rgba(0, 0, 0, .5), inset -1px -1px 3px rgba(255, 255, 255, .03);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, .07);
  --fc-hi: -1px -1px 3px; --fc-hi-c: rgba(255, 255, 255, .04); --fc-lo-c: rgba(0, 0, 0, .55); --fc-rim: rgba(255, 255, 255, .07);
  --press-bg: color-mix(in srgb, var(--ink) 10%, var(--canvas));
  --halo: rgba(236, 236, 236, .14);
  --inset: rgba(0, 0, 0, .35);
  --chrome: rgba(27, 27, 27, .86);
  --glass: rgba(33, 33, 33, .95);
  --glass-sh: 0 0 0 1px rgba(255, 255, 255, .085), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 26px -6px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
  --glass-hov: color-mix(in srgb, var(--ink) 8%, transparent);
  --g-fill: 13%; --g-ink: 50%; --g-skel: 30%; --g-skel-tx: 41%;
  --c-text: #7FACF0; --c-board: var(--z); --c-table: #5FBDB7; --c-header: #EA89A1; --c-todo: #B59BE6; --c-link: #9CC97A; --c-column: #D2B05A; --c-timer: #EE9470;
  --tray: #0A0A0A;
  --ink-q: #8E8E8E;    /* never dimmer than --ink-3 */
  --sel: rgba(236, 236, 236, .78);
  --drop-1: rgba(0, 0, 0, .72); --drop-2: rgba(0, 0, 0, .4); --rim: rgba(236, 236, 236, .1);
  --pop: 0 18px 40px -12px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .45);
  --c-upload: #ECECEC; --c-shapes: #D995DE;
  --mk-ink: #8C8C8C; --mk-red: #E58A78; --mk-yellow: #D9C26A; --mk-green: #8DC285; --mk-blue: #8DAEE6; --mk-violet: #B59CE0; --mk-xyz: #7F87F2; --mk-o: .46; --mk-blend: screen;
  --hud: #ECECEC; --on-hud: #0F0F0F;
  --ft-pdf: #A6A6A6; --ft-doc: #A6A6A6; --ft-ppt: #A6A6A6; --ft-xls: #A6A6A6; --ft-gen: #A6A6A6;
  --sheet: #E4E4E4; --sheet-ink: #1C1C1C; --sheet-ink-2: #616161; --sheet-edge: rgba(0, 0, 0, .5); --sheet-dim: brightness(.9);
  --sheet-t: #1E1E1E; --sheet-t-ink: #D2D2D2; --sheet-t-ink-2: #9C9C9C; --sheet-t-edge: rgba(236, 236, 236, .1);
  --dot-3d: #737373; --link: #474747; --link-on: #787878; --lattice-a: .72; --lattice-r: 1.45;
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35);
  --axis: #333333; --axis-tx: #575757;
  --z: #8A93FF; --z-soft: rgba(138, 147, 255, .13);     /* the one hue at night */
  /* Colours at night: dark tints of the same hues, their ink pale, their marks light enough for the dark. */
  --k-red-a: #D28A82; --k-red-t: #472C2B; --k-red-n: #F8D9D6; --k-orange-a: #C99165; --k-orange-t: #442F1F; --k-orange-n: #F4DCCB;
  --k-yellow-a: #C0974E; --k-yellow-t: #3F3217; --k-yellow-n: #EDE0C4; --k-green-a: #7FA97F; --k-green-t: #293929; --k-green-n: #D6E7D5;
  --k-teal-a: #62AAAA; --k-teal-t: #1F3939; --k-teal-n: #CDE7E7; --k-blue-a: #74A0D7; --k-blue-t: #243549; --k-blue-n: #D0E4FA;
  --k-violet-a: #A892D1; --k-violet-t: #372F47; --k-violet-n: #E5DCF7; --k-pink-a: #CA89A2; --k-pink-t: #432C37; --k-pink-n: #F4D9E3;
  color-scheme: dark;
}
:root[data-look="day"] { color-scheme: light; }

[data-type="text"]   { --tc: var(--c-text); }
[data-type="board"]  { --tc: var(--c-board); }
[data-type="table"]  { --tc: var(--c-table); }
[data-type="header"] { --tc: var(--c-header); }
[data-type="todo"]   { --tc: var(--c-todo); }
[data-type="link"]   { --tc: var(--c-link); }
[data-type="column"] { --tc: var(--c-column); }
[data-type="timer"]  { --tc: var(--c-timer); }
[data-type="shapes"], [data-type="shape"], [data-type="drawing"] { --tc: var(--c-shapes); }
[data-type="upload"], [data-type="image"], [data-type="file"] { --tc: var(--c-upload); }
[data-type="ai"]     { --tc: var(--ink); }      /* a question mark drawn: the AI has no colour of its own (ai.css) */
[data-type="timeline"] { --tc: var(--c-timer); }   /* a harpoon drawn: a timeline, whose countdown is a timer's (timeline.css) */
[data-ft="pdf"] { --ft: var(--ft-pdf); } [data-ft="doc"] { --ft: var(--ft-doc); } [data-ft="ppt"] { --ft: var(--ft-ppt); }
[data-ft="xls"] { --ft: var(--ft-xls); } [data-ft="gen"], [data-ft="txt"] { --ft: var(--ft-gen); }

html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
html { touch-action: manipulation; }      /* two quick taps are a double-click, not the browser zooming the page */
body {
  background: var(--canvas); color: var(--ink);
  font: 400 14px/1.4 var(--f-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.drawing, body.drawing * { cursor: crosshair !important; user-select: none !important; -webkit-user-select: none !important; }
body.moving, body.moving * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
body.marking, body.marking * { user-select: none !important; -webkit-user-select: none !important; }
/* A hover hit-test can force one cursor over everything on the canvas (the rim of an object being edited, a resize edge);
   a resize keeps its edge's cursor everywhere until it is let go. */
#canvas.cur-force, #canvas.cur-force * { cursor: var(--cur) !important; }
body.sizing, body.sizing * { cursor: var(--cur) !important; user-select: none !important; -webkit-user-select: none !important; }
[hidden] { display: none !important; }

