/*
 * FABBRAIN: the design tokens of the FabBrain look (phase 2).
 *
 * Every value comes from the approved prototype (../../../../prototipo/index.html),
 * light on :root and dark on html[data-theme='dark'], under the same role names
 * the prototype uses, with the prefix --fb-. This file is the ONLY place where a
 * raw colour, size, radius, shadow or duration of the FabBrain layer is written:
 * fabbrain-base.css and every fabbrain-*.css read these names and nothing else.
 *
 * The app's own vocabulary (--pz-*, css/tokens.css) is pointed at these tokens
 * in fabbrain-base.css, so the screens the prototype does not cover inherit the
 * same palette without a rule of their own.
 *
 * Where the prototype writes a value inline in a rule rather than as a custom
 * property (the avatar, the popover ground in dark, the primary-button label),
 * it is lifted here under a role name so later tasks do not re-type it.
 */

:root {
    /* ---- Surfaces -------------------------------------------------------- */
    --fb-bg: #FCFCFB;               /* main area, note, topbar            (--bg) */
    --fb-side: #F6F6F4;             /* tree column, memory panel        (--side) */
    --fb-rail: #F1F1EE;             /* the icon rail                    (--rail) */
    --fb-surface: #FFFFFF;          /* popovers, toolbar, memory field (--surface) */
    --fb-surface-raised: #FFFFFF;   /* .pop / .utip / .toolbar / .zoom in dark: #26272B */
    --fb-surface-field: #FFFFFF;    /* .ask (memory question field) in dark: #222326 */
    --fb-surface-seg-on: #FFFFFF;   /* .seg button.on in dark: #2C2D31 */
    --fb-hover: rgba(30, 32, 36, .05);     /* hovered row/button       (--hover) */
    --fb-active: rgba(30, 32, 36, .075);   /* current row/tab          (--active) */
    --fb-fill: rgba(30, 32, 36, .045);     /* search field, chip, seg   (--fill) */
    --fb-code-bg: var(--fb-fill);          /* a code block on the shared page; dark: a visible ground */
    --fb-line: rgba(30, 32, 36, .07);      /* the only hairline: table rows, hr (--line) */
    --fb-dot: rgba(30, 32, 36, .13);       /* canvas dot grid           (--dot) */
    --fb-canvas: #FAFAF8;                  /* canvas ground          (--canvas) */
    --fb-group: rgba(30, 32, 36, .028);    /* canvas group ground     (--group) */

    /* ---- Text ------------------------------------------------------------ */
    --fb-text: #1E2024;             /* body, titles                    (--text) */
    --fb-text-2: #4A4E55;           /* tree rows, values, lead       (--text-2) */
    --fb-muted: #6C7078;            /* labels, meta, placeholders     (--muted #73777F, darkened one step for AA: 4.8:1 on --fb-bg) */
    --fb-faint: #A2A5AB;            /* glyphs only: icons, chevrons, list bullets (--faint; 2.4:1, never text: text takes --fb-muted) */
    --fb-on-accent: #FFFFFF;        /* label on .btn.primary / .cb.done; dark: #141820 */

    /* ---- Accent (the single discreet colour) ----------------------------- */
    --fb-accent: #3E63DD;                   /* primary fill, focus ring (--accent) */
    --fb-accent-rgb: 62, 99, 221;           /* the same, as channels for tints */
    --fb-accent-soft: rgba(62, 99, 221, .09);   /* .mem-btn.on, .tool.on (--accent-soft) */
    --fb-accent-text: #3354C4;              /* "Verificado", links (--accent-text) */
    --fb-selection: rgba(62, 99, 221, .18); /* text selection (derived from --accent) */

    /* ---- "Não confirmado" amber ----------------------------------------- */
    --fb-warn: #9A6210;                     /* label text, jump link     (--warn #A86A12, darkened for AA: 4.6:1 on its tint) */
    --fb-warn-bar: #BF8019;                 /* tree dot, footer dot (--warn-bar #E0A33A, darkened for non-text contrast: 3.2:1 on --fb-bg, 3.1:1 on --fb-side) */
    --fb-warn-soft: rgba(224, 163, 58, .10);/* passage highlight    (--warn-soft) */

    /* ---- Other colours the prototype writes inline ---------------------- */
    --fb-danger: #C2413A;           /* .mi.danger; dark: lifted for AA */
    --fb-negative: #B8463E;         /* .body td .lo, a value under target; dark #EE8A82 */
    --fb-avatar-bg: #C9D3F5;        /* .avatar; dark #34407A */
    --fb-avatar-text: #2B3E86;      /* .avatar; dark #DCE3FF */
    --fb-ws-mark-bg: #2F7A6B;       /* .ws-mark (workspace badge), both themes */
    --fb-ws-mark-text: #FFFFFF;     /* .ws-mark text, both themes */

    /* ---- Canvas sticky notes -------------------------------------------- */
    --fb-st-yellow: #FCEFB4;
    --fb-st-pink: #FAD9DF;
    --fb-st-blue: #D7E5FA;
    --fb-st-green: #D6EFDB;
    --fb-st-lilac: #E4DDF9;
    --fb-st-text: #2A2B2E;

    /* ---- Shadows ---------------------------------------------------------- */
    --fb-shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 28px rgba(20, 22, 26, .10); /* popovers, toolbar (--shadow) */
    --fb-shadow-sticky: 0 1px 1px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .05);
    --fb-shadow-sticky-drag: 0 10px 30px rgba(0, 0, 0, .18);
    --fb-shadow-seg: 0 1px 2px rgba(0, 0, 0, .06);  /* .seg button.on */
    --fb-ring-line: 0 0 0 1px var(--fb-line);       /* .ask: a hairline drawn as a shadow */

    /* ---- Type -------------------------------------------------------------- */
    --fb-font-sans: "Geist", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fb-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; /* not in the prototype: code blocks */
    --fb-weight-regular: 400;
    --fb-weight-medium: 500;
    --fb-weight-semibold: 600;

    --fb-text-2xs: 11.5px;   /* .kbd, .sticky .by, .avatar */
    --fb-text-xs: 12px;      /* .sect, .count, .side-foot, .tip, .utag, .mem-foot, small */
    --fb-text-sm: 12.5px;    /* .chip, .zoom, .mem-ctx, .seg, .fmeta */
    --fb-text-ui: 13px;      /* .tab, .crumb, .origin, .btn, .mem-btn, th, cite, .utip */
    --fb-text-row: 13.5px;   /* tree .lbl, .search input, .props, .sticky, .due */
    --fb-text-base: 14px;    /* body, .ws-name, .mem-h h2, table, .fact p */
    --fb-text-md: 15px;      /* .cv-head .ct, .group h3 */
    --fb-text-body: 15.5px;  /* note body (.body) */
    --fb-text-quote: 17px;   /* blockquote */
    --fb-text-h2: 19px;      /* .body h2 */
    --fb-text-title: 34px;   /* h1.title */
    /* Not in the prototype, which has one heading level: the steps around its h2 */
    --fb-text-h1: 24px;      /* a body h1 */
    --fb-text-h3: var(--fb-text-quote);      /* a body h3 (the blockquote size) */
    --fb-text-code: var(--fb-text-row);  /* inline code and code blocks */

    --fb-leading-title: 1.18;
    --fb-leading-heading: 1.3;   /* .body h2, .utag */
    --fb-leading-tight: 1.45;    /* .sticky */
    --fb-leading-base: 1.5;      /* body, .utip, .fact p, .mem-foot */
    --fb-leading-quote: 1.6;
    --fb-leading-body: 1.7;      /* note body */

    --fb-tracking-title: -.025em;
    --fb-tracking-logo: -.02em;
    --fb-tracking-h2: -.015em;
    --fb-tracking-tight: -.01em;  /* .ws-name, .cv-head .ct, .group h3 */
    --fb-tracking-quote: -.005em;

    /* ---- Space (every margin, padding and gap in the prototype) ----------
       The prototype works in small steps; the scale names each one it uses. */
    --fb-space-1: 2px;
    --fb-space-2: 4px;
    --fb-space-3: 6px;
    --fb-space-4: 8px;
    --fb-space-5: 10px;
    --fb-space-6: 12px;
    --fb-space-7: 14px;
    --fb-space-8: 16px;
    --fb-space-9: 18px;
    --fb-space-10: 20px;
    --fb-space-11: 22px;
    --fb-space-12: 26px;
    --fb-space-13: 30px;
    --fb-space-14: 38px;
    --fb-space-15: 40px;
    --fb-space-16: 44px;
    /* Odd steps used once each, named by where they go */
    --fb-space-gap-row: 7px;      /* .row / .tab / .origin gap */
    --fb-space-gap-mi: 11px;      /* .mi gap, .mem-btn right padding */
    --fb-space-fact-bottom: 13px; /* .fact bottom padding, .sticky top */
    --fb-space-doc-bottom: 140px; /* .doc bottom padding */
    --fb-space-utag-out: 30px;    /* .utag: distance to the left of the passage */
    --fb-space-bar-out: -18px;    /* .unv::before: the bar sits in the left margin */
    --fb-space-li: var(--fb-space-utag-y);           /* .body li vertical margin */
    --fb-space-td: 9px;           /* .body td vertical padding */
    --fb-space-utag-y: 3px;       /* .utag padding and top offset */
    --fb-space-utag-x: 7px;       /* .utag horizontal padding */
    --fb-space-bar-inset: 5px;    /* .unv::before top and bottom */
    --fb-space-mark: var(--fb-space-1);         /* .unv .mark: the tint reaches past the text */
    /* ---- The "Não confirmado" passage look ("variação B"; fabbrain-trecho.css reads only these) ---- */
    --fb-nc-underline: var(--fb-warn);              /* dotted underline at rest; 4.9:1 on --fb-bg (dark 8.7:1) */
    --fb-nc-underline-thickness: 1.5px;
    --fb-nc-underline-offset: 4px;
    --fb-nc-symbol: var(--fb-warn);                 /* the robot in the margin (fase 4c, Tarefa 2; was the dashed circle) */
    --fb-nc-symbol-size: 15px;                      /* the prototype's .circ svg */
    --fb-nc-symbol-opacity: 1;                      /* the prototype draws it in full --warn (4.9:1 on --fb-bg) */
    --fb-nc-symbol-gutter: 11.5px;                  /* from the symbol's right edge to the text (.circ left -30px, 22px box) */
    --fb-nc-symbol-halo: 3.5px;                     /* the 22px hover circle around the 15px robot (.circ:hover) */
    --fb-nc-hover-bg: rgba(224, 163, 58, .18);      /* the highlight behind the text on hover; text 13.9:1 on it */
    --fb-nc-hover-band: calc(1.3em + 2 * var(--fb-space-mark));  /* that highlight drawn as a band (no script) */
    --fb-nc-hover-band-offset: calc(-1em - var(--fb-space-mark));
    --fb-nc-highlight-reach: var(--fb-space-mark);  /* the highlight reaches past the text */
    --fb-nc-highlight-radius: var(--fb-radius-mark);
    --fb-nc-label-color: var(--fb-warn);            /* the label as an element (chip) */
    --fb-nc-li-indent: calc(var(--fb-space-11) + var(--fb-space-2)); /* a marked list item: the list's indent and marker */
    --fb-hit-min: 28px;                             /* the smallest hit area of a small control */

    /* ---- Radii ------------------------------------------------------------ */
    --fb-radius-bar: 2px;     /* passage bar */
    --fb-radius-mark: 3px;    /* passage highlight */
    --fb-radius-sticky: 4px;  /* sticky corners */
    --fb-radius-xs: 5px;      /* tab close, checkbox */
    --fb-radius-sm: 6px;      /* tip, chip, utag, seg button, focus ring, ws-mark */
    --fb-radius-row: 7px;     /* tree row, .btn, .ask .go */
    --fb-radius: 8px;         /* search, tab, icon button, menu item, logo (--radius) */
    --fb-radius-rail: 9px;    /* rail button */
    --fb-radius-md: 10px;     /* .cv-head, .ask, .fact, .zoom */
    --fb-radius-lg: 12px;     /* popovers, .utip, canvas toolbar */
    --fb-radius-sticky-tail: 14px; /* the folded corner of a sticky */
    --fb-radius-group: 18px;  /* canvas group */
    --fb-radius-round: 50%;

    /* ---- Sizes and widths ------------------------------------------------ */
    --fb-rail-width: 56px;
    --fb-tree-width: 272px;
    --fb-mem-width: 348px;
    --fb-doc-width: 700px;          /* reading column, padding included */
    --fb-topbar-height: 46px;
    --fb-row-height: 30px;          /* tree row, tab, icon button, .mem-btn */
    --fb-foco-head: 40px;           /* FABBRAIN (fase 4b, Tarefa 5): .focus-h, the focus mode header */
    --fb-search-height: 32px;       /* search field, a property row */
    --fb-btn-height: 28px;          /* .btn, zoom button, logo, avatar */
    --fb-chip-height: 24px;
    --fb-ask-height: 40px;
    --fb-rail-btn: 36px;            /* rail button, canvas tool */
    --fb-ws-mark: 22px;
    --fb-tab-close: 18px;
    --fb-tab-max: 200px;
    --fb-props-label: 116px;        /* first column of the note properties */
    --fb-props-label-narrow: 96px;  /* the same on a phone (Task 5) */
    --fb-doc-pad-x: 40px;           /* .doc side padding: the column text is doc-width minus twice this */
    --fb-toolbar-reserve: 16px;     /* js/toolbar-overflow.js EDGE_MARGIN: room it keeps free on each side of a toolbar */
    --fb-label-room: 150px;         /* passage label + its distance: the margin needed to put it beside the text */
    --fb-pop-min: 240px;
    --fb-pop-plus-min: 310px;
    --fb-pop-rail-top: 170px;       /* #railPop: where the prototype opens the "Mais" menu */
    --fb-pop-plus-top: 54px;        /* #plusPop: under the workspace header */
    --fb-utip-width: 330px;
    --fb-fmeta-link-max: 190px;
    --fb-sticky-width: 172px;
    --fb-sticky-min-height: 124px;
    --fb-icon: 18px;
    --fb-icon-sm: 15px;
    --fb-icon-xs: 13px;
    --fb-icon-md: 16px;             /* fase 4c, Tarefa 2: the glyph of a modal's note line (.modal .note svg) */
    --fb-btn-icon: 14px;            /* a glyph inside a .btn, the seal's robot (.ncb svg, .btn svg) */
    --fb-chev: 14px;
    --fb-checkbox: 17px;
    --fb-udot: 6px;                 /* the amber "Não confirmado" dot */
    --fb-tree-off: 12px;            /* fase 4c, Tarefa 2: the tree's slashed circle (.row .fora svg) */
    --fb-tree-signal: 14px;         /* fase 4d: the tree's signals (robot, brain-off, the bank's brain) */
    --fb-tree-signal-hover-right: calc(var(--fb-space-1) + var(--fb-chip-height) + var(--fb-space-2)); /* the signal left of the row's "…" */
    --fb-unv-bar: 3px;              /* the amber bar of a passage */
    --fb-icon-stroke: 1.5;          /* every icon: 1.5 stroke, round caps */
    --fb-hairline: 1px;
    --fb-focus-ring: 2px;
    --fb-tree-indent: 16px;         /* one tree level */
    --fb-tree-pad: 8px;             /* first-level padding */
    --fb-tree-leaf-offset: 21px;    /* a leaf aligns past the folder chevron */
    --fb-canvas-grid: 22px;         /* dot spacing */
    --fb-seg-min: 42px;             /* zoom percentage */
    --fb-blur: 6px;                 /* .cv-head backdrop */

    /* The canvas view (Task 4): .cv-head, the dot grid, Excalidraw's chrome under the strip */
    --fb-canvas-dot: 1px;           /* radial-gradient(circle, var(--dot) 1px, transparent 1.2px) */
    --fb-canvas-dot-fade: 1.2px;
    --fb-canvas-head-bg: color-mix(in srgb, var(--fb-canvas) 85%, transparent); /* .cv-head ground */
    --fb-canvas-title-max: 360px;   /* the strip's title, truncated past this */
    --fb-space-toolbar: var(--fb-space-bar-inset);        /* .toolbar padding */
    --fb-canvas-ui-top: 64px;       /* Excalidraw's top row: under the strip (16 + 40) plus 8 */

    /* ---- Motion ----------------------------------------------------------- */
    --fb-dur-fast: .12s;     /* tooltip */
    --fb-dur-pop: .14s;      /* popover entrance */
    --fb-dur-chev: .15s;     /* chevron rotation */
    --fb-dur-panel: .22s;    /* memory panel opening */
    --fb-dur-mark: .25s;     /* passage confirm fade */
    --fb-delay-tip: .35s;
    --fb-ease: ease;
    --fb-ease-out: ease-out;

    /* ---- Icons -------------------------------------------------------------
       The prototype's own glyphs (its ICONS table, 24px grid, stroke 1.5, round
       caps and joins), as masks: an element wearing one is painted with its
       colour (background-color: currentColor), like the app's lucide icons.
       Generated from prototipo/index.html; do not edit by hand. */
    --fb-icon-note: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14%203.5H7.5a2%202%200%200%200-2%202v13a2%202%200%200%200%202%202h9a2%202%200%200%200%202-2V8z'/%3E%3Cpath%20d='M14%203.5V8h4.5'/%3E%3Cpath%20d='M9%2012.5h6M9%2016h4'/%3E%3C/svg%3E");
    --fb-icon-canvas: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3.5'%20y='3.5'%20width='7'%20height='7'%20rx='1.6'/%3E%3Ccircle%20cx='17'%20cy='7'%20r='3.5'/%3E%3Cpath%20d='M7%2013.5l3.6%206.5H3.4z'/%3E%3Crect%20x='13.5'%20y='13.5'%20width='7'%20height='7'%20rx='1.6'/%3E%3C/svg%3E");
    --fb-icon-folder: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.5%207.5a2%202%200%200%201%202-2h3.8l2%202h7.2a2%202%200%200%201%202%202v7.5a2%202%200%200%201-2%202h-13a2%202%200%200%201-2-2z'/%3E%3C/svg%3E");
    --fb-icon-chev: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.5%206.5l5.5%205.5-5.5%205.5'/%3E%3C/svg%3E");
    --fb-icon-plus: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205.5v13M5.5%2012h13'/%3E%3C/svg%3E");
    --fb-icon-minus: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5.5%2012h13'/%3E%3C/svg%3E");
    --fb-icon-search: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='6.5'/%3E%3Cpath%20d='M20%2020l-4.2-4.2'/%3E%3C/svg%3E");
    --fb-icon-check: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5.5%2012.5l4%204L18.5%207.5'/%3E%3C/svg%3E");
    --fb-icon-vcheck: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.5'/%3E%3Cpath%20d='M8.5%2012.3l2.4%202.4%204.6-4.9'/%3E%3C/svg%3E");
    --fb-icon-dotted: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.5'%20stroke-dasharray='2.6%203.1'/%3E%3C/svg%3E");
    --fb-icon-dotted-warn: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%239A6210'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.5'%20stroke-dasharray='2.6%203.1'/%3E%3C/svg%3E"); /* .utag icon, drawn in --fb-warn (an image, not a mask: it sits beside text) */
    --fb-icon-tasks: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%207.2l1.6%201.6L8.5%206M4%2015.2l1.6%201.6%202.9-2.8M11.5%207.5h8.5M11.5%2015.5h8.5'/%3E%3C/svg%3E");
    --fb-icon-journal: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='5'%20width='16'%20height='15'%20rx='2.2'/%3E%3Cpath%20d='M4%2010h16M8.5%203v4M15.5%203v4'/%3E%3C/svg%3E");
    --fb-icon-graph: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='6'%20cy='7'%20r='2.2'/%3E%3Ccircle%20cx='18'%20cy='6.5'%20r='2.2'/%3E%3Ccircle%20cx='12.5'%20cy='17.5'%20r='2.2'/%3E%3Cpath%20d='M7%209l4.4%206.6M17%208.6l-3.6%207M8.2%206.9l7.6-.3'/%3E%3C/svg%3E");
    --fb-icon-grid: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='4'%20width='6.5'%20height='6.5'%20rx='1.6'/%3E%3Crect%20x='13.5'%20y='4'%20width='6.5'%20height='6.5'%20rx='1.6'/%3E%3Crect%20x='4'%20y='13.5'%20width='6.5'%20height='6.5'%20rx='1.6'/%3E%3Crect%20x='13.5'%20y='13.5'%20width='6.5'%20height='6.5'%20rx='1.6'/%3E%3C/svg%3E");
    --fb-icon-more: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='5.5'%20cy='12'%20r='.9'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='.9'/%3E%3Ccircle%20cx='18.5'%20cy='12'%20r='.9'/%3E%3C/svg%3E");
    /* FABBRAIN (fase 4b, Tarefa 3): "Mais ferramentas" (the prototype's tools glyph) */
    --fb-icon-tools: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14%206a4%204%200%200%200%205%205l-9%209a2.1%202.1%200%200%201-3-3z'/%3E%3C/svg%3E");
    --fb-icon-sun: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.8'/%3E%3Cpath%20d='M12%203v1.8M12%2019.2V21M3%2012h1.8M19.2%2012H21M5.6%205.6l1.3%201.3M17.1%2017.1l1.3%201.3M5.6%2018.4l1.3-1.3M17.1%206.9l1.3-1.3'/%3E%3C/svg%3E");
    --fb-icon-moon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19.5%2014.5A7.8%207.8%200%201%201%209.5%204.5a6.2%206.2%200%200%200%2010%2010z'/%3E%3C/svg%3E");
    --fb-icon-settings: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%207.5h9M17.5%207.5H20M4%2016.5h3M11.5%2016.5H20'/%3E%3Ccircle%20cx='15.3'%20cy='7.5'%20r='2.2'/%3E%3Ccircle%20cx='9.3'%20cy='16.5'%20r='2.2'/%3E%3C/svg%3E");
    --fb-icon-star: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204l2.5%205%205.5.8-4%203.9.9%205.5L12%2016.6l-4.9%202.6.9-5.5-4-3.9%205.5-.8z'/%3E%3C/svg%3E");
    --fb-icon-star-filled: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='black'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204l2.5%205%205.5.8-4%203.9.9%205.5L12%2016.6l-4.9%202.6.9-5.5-4-3.9%205.5-.8z'/%3E%3C/svg%3E"); /* .icon-btn.starred: the star filled */
    --fb-icon-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204.5v10M8.3%208.2L12%204.5l3.7%203.7'/%3E%3Cpath%20d='M5.5%2013v4.5a2%202%200%200%200%202%202h9a2%202%200%200%200%202-2V13'/%3E%3C/svg%3E");
    --fb-icon-clock: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.2'/%3E%3Cpath%20d='M12%207.8V12l2.8%201.8'/%3E%3C/svg%3E");
    --fb-icon-layers: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204l8%204.3-8%204.3-8-4.3z'/%3E%3Cpath%20d='M4%2012.2l8%204.3%208-4.3'/%3E%3Cpath%20d='M4%2016l8%204.3%208-4.3'/%3E%3C/svg%3E");
    --fb-icon-x: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%207l10%2010M17%207L7%2017'/%3E%3C/svg%3E");
    --fb-icon-spark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204.5l1.6%204.4%204.4%201.6-4.4%201.6L12%2016.5l-1.6-4.4L6%2010.5l4.4-1.6z'/%3E%3Cpath%20d='M18%2015.5l.6%201.4%201.4.6-1.4.6-.6%201.4-.6-1.4-1.4-.6%201.4-.6z'/%3E%3C/svg%3E");
    --fb-icon-cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%204l12.5%206.2-5.5%201.6L10.8%2017.5z'/%3E%3C/svg%3E");
    --fb-icon-hand: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8.5%2012.5V6.8a1.4%201.4%200%200%201%202.8%200v4.7M11.3%2011V5.4a1.4%201.4%200%200%201%202.8%200V11M14.1%2011V6.8a1.4%201.4%200%200%201%202.8%200v6.7a6%206%200%200%201-6%206h-.6a5.6%205.6%200%200%201-4.4-2.1l-2.2-2.8a1.4%201.4%200%200%201%202.1-1.8l1.7%201.8V9.5a1.4%201.4%200%200%201%202.8%200'/%3E%3C/svg%3E");
    --fb-icon-sticky: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%205h14v9l-5%205H5z'/%3E%3Cpath%20d='M14%2019v-5h5'/%3E%3C/svg%3E");
    --fb-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4.5'%20y='4.5'%20width='15'%20height='15'%20rx='2.5'/%3E%3C/svg%3E");
    --fb-icon-arrow: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5.5%2018.5l13-13M10%205.5h8.5V14'/%3E%3C/svg%3E");
    --fb-icon-text: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%206.5h12M12%206.5v12M9.5%2018.5h5'/%3E%3C/svg%3E");
    --fb-icon-eraser: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%2019.5h10.5M6%2015.5l8.3-8.3a2%202%200%200%201%202.8%200l1.7%201.7a2%202%200%200%201%200%202.8l-7.6%207.6H8.8L6%2016.5a.7.7%200%200%201%200-1z'/%3E%3Cpath%20d='M10.3%2011.2l4.5%204.5'/%3E%3C/svg%3E");
    --fb-icon-tag: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2012.3V4.5h7.8l8.2%208.2-7.8%207.8z'/%3E%3Ccircle%20cx='8.3'%20cy='8.8'%20r='1.2'/%3E%3C/svg%3E");
    --fb-icon-link: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2014a3.8%203.8%200%200%200%205.4%200l3-3a3.8%203.8%200%200%200-5.4-5.4l-1%201'/%3E%3Cpath%20d='M14%2010a3.8%203.8%200%200%200-5.4%200l-3%203a3.8%203.8%200%200%200%205.4%205.4l1-1'/%3E%3C/svg%3E");
    --fb-icon-mic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='9'%20y='3.5'%20width='6'%20height='10.5'%20rx='3'/%3E%3Cpath%20d='M5.8%2011a6.2%206.2%200%200%200%2012.4%200M12%2017.2v3.3'/%3E%3C/svg%3E");
    --fb-icon-up: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2018.5v-13M6.8%2010.7L12%205.5l5.2%205.2'/%3E%3C/svg%3E");
    --fb-icon-trash: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%207h15M9.3%207V4.8h5.4V7M6.5%207l1%2012.5h9L17.5%207'/%3E%3C/svg%3E");
    --fb-icon-clip: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19.5%2011.5l-7.7%207.7a4.8%204.8%200%200%201-6.8-6.8l8.2-8.2a3.2%203.2%200%200%201%204.5%204.5l-8.1%208.1a1.6%201.6%200%200%201-2.3-2.3L15%206.8'/%3E%3C/svg%3E");
    --fb-icon-users: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='9.5'%20cy='8.5'%20r='3.3'/%3E%3Cpath%20d='M3.5%2019.5a6%206%200%200%201%2012%200'/%3E%3Cpath%20d='M15.8%205.5a3.3%203.3%200%200%201%200%206.1M17.8%2014.2a6%206%200%200%201%202.7%205.3'/%3E%3C/svg%3E");
    --fb-icon-info: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.5'/%3E%3Cpath%20d='M12%2011v5.2M12%208v.1'/%3E%3C/svg%3E");
    --fb-icon-logout: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14%204.5h3.5a2%202%200%200%201%202%202v11a2%202%200%200%201-2%202H14M10%2016l-4-4%204-4M6%2012h9.5'/%3E%3C/svg%3E");
    --fb-icon-keyboard: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='6'%20width='18'%20height='12'%20rx='2.2'/%3E%3Cpath%20d='M7%2010h.01M10.5%2010h.01M14%2010h.01M17%2010h.01M7.5%2014h9'/%3E%3C/svg%3E");
    --fb-icon-dashboard: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='4'%20width='7'%20height='9'%20rx='1.6'/%3E%3Crect%20x='13'%20y='4'%20width='7'%20height='5'%20rx='1.6'/%3E%3Crect%20x='13'%20y='11'%20width='7'%20height='9'%20rx='1.6'/%3E%3Crect%20x='4'%20y='15'%20width='7'%20height='5'%20rx='1.6'/%3E%3C/svg%3E");
    --fb-icon-bell: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6.5%2016.5V11a5.5%205.5%200%200%201%2011%200v5.5l1.5%201.5H5z'/%3E%3Cpath%20d='M10%2020.5h4'/%3E%3C/svg%3E");
    --fb-icon-cal: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='5'%20width='16'%20height='15'%20rx='2.2'/%3E%3Cpath%20d='M4%2010h16M8.5%203v4M15.5%203v4'/%3E%3C/svg%3E");
    --fb-icon-hash: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.5%204.5l-2%2015M16.5%204.5l-2%2015M5%209h15M4%2015h15'/%3E%3C/svg%3E");
    --fb-icon-info2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%206.5h14M5%2012h14M5%2017.5h9'/%3E%3C/svg%3E");

    /* FABBRAIN (fase 4b, Tarefa 6): the calendar section and the day modal, from the prototype's .cal and .day-l.
       The prototype's "book" (diary) and "dash" (an open task) glyphs, at this stroke and cap */
    --fb-icon-book: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%204h11a3%203%200%200%201%203%203v13H8a3%203%200%200%201-3-3zM5%2017a3%203%200%200%201%203-3h11'/%3E%3C/svg%3E");
    --fb-icon-circle: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8'/%3E%3C/svg%3E");
    --fb-cal-head-pad-y: 9px;        /* .cal-h */
    --fb-cal-nav: 24px;              /* .cal-m button */
    --fb-cal-day: 28px;              /* .cal-g button */
    --fb-cal-dot: 4px;               /* the dot of a day with something in it */
    --fb-cal-dot-bottom: 3px;
    --fb-cal-item-height: 34px;      /* .day-l .mi */
    --fb-cal-tree-min: 120px;        /* the tree never shrinks below this above the calendar: the column scrolls instead */

    /* ---- Remaining screens (Task 5) ---------------------------------------
       Dialogs, fields, page headers and lists of the screens the prototype does
       not draw, in its language. */
    --fb-scrim: rgba(20, 22, 26, .28);      /* the ground behind a dialog */
    --fb-dialog-width: 440px;               /* a confirm / prompt dialog */
    --fb-dialog-wide: 640px;                /* a dialog with a list or a form */
    --fb-page-width: 860px;                 /* the column of a list or settings page */
    --fb-login-width: 340px;                /* the login column */
    --fb-field-height: 32px;                /* a text field, a select (the search field's height) */
    --fb-field-ring: 0 0 0 1px var(--fb-dot); /* a field: a hairline drawn as a shadow, a step stronger than .ask */
    --fb-focus-shadow: 0 0 0 2px rgba(var(--fb-accent-rgb), .35); /* a focused field */
    --fb-toast-max: 420px;
    --fb-hit-active: rgba(var(--fb-accent-rgb), .32);   /* the current search hit (the others: --fb-selection) */
    --fb-danger-soft: color-mix(in srgb, var(--fb-danger) 10%, transparent); /* ground of a danger hover or alert */
    /* A sticky note drawn on a canvas: the colour Excalidraw stores (its own dark
       rendering derives the dark one), the prototype's yellow; both themes */
    --fb-canvas-postit: #FCEFB4;

    /* the check of a done checkbox (.cb.done): drawn in the label colour on the accent */
    --fb-icon-check-on-accent: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23FFFFFF'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5.5%2012.5l4%204L18.5%207.5'/%3E%3C/svg%3E");
    --fb-checkbox-ring: 1.5px;      /* .cb: the inset ring of an empty checkbox */

    /* ---- Memória page and panel (phase 4) ----------------------------------
       From prototipo/painel-memoria.html (its "v2" tokens and the rules of the
       page). FABBRAIN. Origins: --fb-o-* fill a bar or a swatch, --fb-i-* is the
       label ink, --fb-t-* tints a card and --fb-l-* draws its hairline. */
    --fb-o-nota: #3E63DD;
    --fb-o-ext: #B0661A;
    --fb-o-conv: #0A9A84;
    --fb-o-ag: #7B55D9;
    --fb-i-nota: #3354C4;
    --fb-i-ext: #8A4F12;
    --fb-i-conv: #0B7565;
    --fb-i-ag: #5E3EC0;
    --fb-t-ext: rgba(176, 102, 26, .065);
    --fb-t-conv: rgba(10, 154, 132, .065);
    --fb-t-ag: rgba(123, 85, 217, .07);
    --fb-l-ext: rgba(176, 102, 26, .20);
    --fb-l-conv: rgba(10, 154, 132, .20);
    --fb-l-ag: rgba(123, 85, 217, .22);
    --fb-st-fila: #8E94A0;          /* "Na fila" in the bars and swatches */
    --fb-st-fora: #D5D6DA;          /* "Fora da memória" */
    --fb-card-line: rgba(30, 32, 36, .09);  /* the hairline ring of a card (--card-line) */
    --fb-line-2: rgba(30, 32, 36, .14);     /* outline buttons, filter chips, a dashed hidden fact (--line-2) */
    --fb-ok: #2F8F5B;               /* the state dot of "Tudo em dia" (--ok) */
    --fb-on-danger: #FFFFFF;        /* label on the red confirm button (--on-danger) */
    --fb-mem-page-width: 1040px;    /* .pg */
    --fb-mem-page-top: 36px;
    --fb-mem-page-bottom: 120px;
    --fb-mem-sec-top: 34px;         /* "Precisa de você" under the cards */
    --fb-mem-lede: 52ch;
    --fb-text-page: 28px;           /* .pg-h h1 */
    --fb-text-big: 26px;            /* .kbig */
    --fb-tracking-page: -.022em;
    --fb-leading-page: 1.2;
    --fb-leading-big: 1.15;
    --fb-radius-card: 14px;         /* .kcard, .attn, .ntable; half the height of a .fchip */
    --fb-radius-col: 4px;           /* the top of a day bar */
    --fb-mem-sbar: 10px;            /* segmented bar */
    --fb-mem-seg-min: 4px;          /* the narrowest segment */
    --fb-mem-bars: 84px;            /* the 14-day chart */
    --fb-mem-bar-max: 14px;
    --fb-mem-bars-gap: 5px;
    --fb-mem-bar-rest: .38;         /* the first 7 days, lighter */
    --fb-mem-swatch: 9px;
    --fb-mem-dot: 8px;              /* .sdot, the rail dot */
    --fb-mem-pulse-ring: 1.5px;
    --fb-mem-row: 44px;             /* a row of the notes table */
    --fb-mem-row-head: 34px;
    --fb-mem-col-area: 88px;
    --fb-mem-col-state-min: 170px;  /* the situation column shares the room with the title (1 : 1.6): at
                                       1440 the longest reason fits on one line, narrower it wraps */
    --fb-mem-col-sent: 84px;
    --fb-mem-tab: 38px;             /* .ptab */
    --fb-mem-card-pad-x: 15px;      /* a card of the masonry */
    --fb-btn-sm-height: 26px;       /* .btn.sm */
    --fb-mem-panel: 380px;          /* the side panel "Memória desta nota" (.mem-in) */
    --fb-mem-foot-btn: 34px;        /* "Ver toda a memória" (.mfoot .btn) */
    --fb-mem-btn-pad-start: 9px;    /* the note's "Memória" button (.mem-btn) */
    /* FABBRAIN: narrow main areas (fix round of the review): below this the header's state and buttons
       go under the title and the lede, which keep the full width */
    --fb-mem-head-min: 420px;
    --fb-mem-card-min: 240px;       /* a card of the three: 3 columns while each gets this, then 2, then 1 */
    --fb-mem-bars-narrow: 64px;     /* the 14-day chart when the cards stack */
    --fb-leading-stat: 1.35;        /* the title of the situation card (.stat-t) */
    --fb-dur-pulse: 1.8s;
    --fb-dur-spin: .9s;
    /* FABBRAIN: not the prototype's ICONS.brain, whose round outline and short folds read as a globe at
       18px: two lobes with a centre line and three folds a side, the same 1.5 stroke */
    --fb-icon-brain: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205a3%203%200%201%200-6%20.1%204%204%200%200%200-2.5%205.8%204%204%200%200%200%20.5%206.6A4%204%200%201%200%2012%2018z'/%3E%3Cpath%20d='M12%205a3%203%200%201%201%206%20.1%204%204%200%200%201%202.5%205.8%204%204%200%200%201-.5%206.6A4%204%200%201%201%2012%2018z'/%3E%3Cpath%20d='M12%205v13'/%3E%3Cpath%20d='M6.4%206.5A3%203%200%200%200%209%208M17.6%206.5A3%203%200%200%201%2015%208M4.1%2010.5A4%204%200%200%201%208%2011.5M19.9%2010.5a4%204%200%200%200-3.9%201M6%2018a4%204%200%200%201-1.97-.52M18%2018a4%204%200%200%200%201.97-.52'/%3E%3C/svg%3E");
    /* FABBRAIN (fase 4d): Lucide's brain-off (the official paths, lucide-icons/lucide icons/brain-off.svg): "você deixou fora" in the tree */
    --fb-icon-brain-off: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2018v-6'/%3E%3Cpath%20d='M12%205v1.344'/%3E%3Cpath%20d='M17.707%206.293A3%203%200%201012%205a3%203%200%2000-4.124-2.781'/%3E%3Cpath%20d='M17.997%205.125a4%204%200%20012.526%205.77'/%3E%3Cpath%20d='M19.644%2019.644A4%204%200%200112%2018a4%204%200%2011-7.967-.517'/%3E%3Cpath%20d='m2%202%2020%2020'/%3E%3Cpath%20d='M20%2010.536a4%204%200%20011.533%205.34'/%3E%3Cpath%20d='M3.477%2010.895a4%204%200%20011.876-5.542'/%3E%3Cpath%20d='M6%2018a4%204%200%2001-2-7.464'/%3E%3Cpath%20d='M9%2013a4.17%204.17%200%20002.166-1.5%204%204%200%2000.138-.196'/%3E%3C/svg%3E");
    --fb-icon-chat: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%206.5a2%202%200%200%201%202-2h10a2%202%200%200%201%202%202V14a2%202%200%200%201-2%202h-6l-4%203.5V16a2%202%200%200%201-2-2z'/%3E%3C/svg%3E");
    --fb-icon-ext: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M13.5%205.5h5v5M18.5%205.5L11%2013'/%3E%3Cpath%20d='M16.5%2013.5v4a2%202%200%200%201-2%202h-8a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h4'/%3E%3C/svg%3E");
    --fb-icon-refresh: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19%2012a7%207%200%201%201-2.1-5'/%3E%3Cpath%20d='M19.5%204.5V9H15'/%3E%3C/svg%3E");
    --fb-icon-pause: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%206.5v11M15%206.5v11'/%3E%3C/svg%3E");
    --fb-icon-play: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8.5%206v12l9.5-6z'/%3E%3C/svg%3E");
    --fb-icon-eye: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.5%2012s3.5-6%208.5-6%208.5%206%208.5%206-3.5%206-8.5%206-8.5-6-8.5-6z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2.6'/%3E%3C/svg%3E");
    --fb-icon-eyeoff: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%204l16%2016'/%3E%3Cpath%20d='M10.6%206.2A9.6%209.6%200%200%201%2012%206c5%200%208.5%206%208.5%206a15%2015%200%200%201-2.6%203.2M14.2%2017.6A8.5%208.5%200%200%201%2012%2018c-5%200-8.5-6-8.5-6a15.6%2015.6%200%200%201%203.4-3.9'/%3E%3Cpath%20d='M10%2010.2a2.5%202.5%200%200%200%203.6%203.5'/%3E%3C/svg%3E");
    --fb-icon-alert: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.5'/%3E%3Cpath%20d='M12%207.8v5M12%2016v.1'/%3E%3C/svg%3E");
    --fb-icon-loader: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.5a8.5%208.5%200%201%201-8.5%208.5'/%3E%3C/svg%3E");
    /* FABBRAIN (fase 4c, Tarefa 2): the prototype's P.off (a slashed circle: out of the memory), P.robot (made by AI) and P.pen (Autoria) */
    --fb-icon-off: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8'/%3E%3Cpath%20d='M6.6%2017.4L17.4%206.6'/%3E%3C/svg%3E");
    --fb-icon-robot: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='5'%20y='8'%20width='14'%20height='11'%20rx='3'/%3E%3Cpath%20d='M12%208V5.5M9.5%2012.8v.8M14.5%2012.8v.8M10%2016.2h4M3%2012.5v3M21%2012.5v3'/%3E%3Ccircle%20cx='12'%20cy='4.3'%20r='1.1'/%3E%3C/svg%3E");
    --fb-icon-pen: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2020l4-1L19%208l-3-3L5%2016zM14%207l3%203'/%3E%3C/svg%3E");

    /* ---- FABBRAIN (fase 4b, Tarefa 4): memory areas, modals, menus ---------------------------------
       The six area colours (the prototype's --a-*, plus amber, red and grey): an area dot, a badge, a
       folder icon. A folder colour is stored as the light hex; lib/color-palette.php maps it here, so
       the dark theme repaints it. */
    --fb-area-azul: #3E63DD;
    --fb-area-verde: #2F7A6B;
    --fb-area-roxo: #8A5CD0;
    --fb-area-ambar: #BF8019;
    --fb-area-vermelho: #C2413A;
    --fb-area-cinza: #6C7078;
    --fb-area-dot: 7px;             /* .row .area, .badge i */
    --fb-area-dot-opt: 9px;         /* .opt i */
    --fb-area-tint: 14%;            /* .fic ground: the icon colour mixed into transparent */
    --fb-fic: 18px;                 /* .fic: the tinted box of a folder icon */
    --fb-fic-glyph: 13px;           /* .fic svg */
    --fb-badge-height: 22px;        /* .badge */
    --fb-badge-radius: 11px;
    --fb-modal-radius: 14px;        /* .modal */
    --fb-modal-pad: 22px;
    --fb-modal-title: 17px;         /* .modal h2 */
    --fb-modal-note-radius: 9px;    /* .modal .note */
    --fb-modal-width: 460px;        /* .modal (fase 4c, Tarefa 2: the review modals of prototipo/selo-e-memoria.html) */
    --fb-modal-wide: 600px;         /* .modal.wide (the note's and the canvas's review) */
    --fb-modal-quote-bar: 2px;      /* .modal .q: the dotted bar left of a passage */
    --fb-field-height-modal: 34px;  /* .inp */
    --fb-swatch: 30px;              /* .sw button */
    --fb-swatch-dot: 16px;          /* .sw .c */
    --fb-icon-grid-height: 156px;   /* fase 4d: the icon grid of "Configurar pasta/nota", 4 rows and a half (it scrolls) */
    --fb-opt-height: 36px;          /* .opt */
    --fb-mi-height: 32px;           /* .mi: a menu row */
    --fb-mi-two-height: 46px;       /* .mi.two: a row with a description */
    --fb-mi-icon: 16px;             /* .mi svg */
    --fb-pop-pad: 5px;              /* .pop padding */
    --fb-ncb-icon: 14px;            /* .ncb svg: the dashed circle of the "Não confirmado" chip */
    --fb-area-list-max: 280px;      /* the panel's area chooser */
    --fb-tab-min: 88px;             /* a tab gives up room down to this before the strip scrolls */
    --fb-tab-fade: 28px;            /* the strip's edge fades out over this while it scrolls */
    --fb-mask-on: #000;             /* a mask's opaque stop (not a colour on screen) */

    /* FABBRAIN (fase 4c, Tarefa 3): the memory panel's card (the prototype's .card, .st, .kset, .krow, .btns.cta) */
    --fb-card-rhythm: 14px;         /* above and below each divider of the card */
    --fb-card-pad: 14px;            /* the card's padding */
    --fb-btn-gap-card: 5px;         /* between the card's buttons */
    --fb-btn-pad-card: 9px;         /* the side padding of a card button */
    --fb-card-st-box: 34px;         /* .st .o: the state's icon box */
    --fb-card-st-gap: 12px;         /* .st gap */
    --fb-card-indent: calc(var(--fb-card-st-box) + var(--fb-card-st-gap)); /* .left: under the state's words */
    --fb-card-banco-dot: 8px;       /* .areab .d */
    --fb-card-btn-height: 30px;     /* .btn */
    --fb-card-btn-icon: 14px;       /* .btn svg */
    --fb-card-glyph: 16px;          /* .st .o svg */
    --fb-card-item-leading: 1.4;    /* .lq: a passage left out */
    --fb-banco-list-width: 270px;   /* #areaPop */
    --fb-ok-soft: color-mix(in srgb, var(--fb-ok) 10%, transparent); /* .st .o of "Na memória" (--ok-soft) */

    /* FABBRAIN (fase 4d): the owner sections of the Settings page (fabbrain-configuracoes.css) */
    --fb-cfg-icon-col: 30px;        /* the icon column of a settings row (.home-card-icon, css/settings.css) */
    --fb-cfg-pin: 13px;             /* the pin column of a settings row (.settings-card-pin): kept empty on these rows */
    --fb-cfg-num-width: 64px;       /* the minutes field of the wait */
    --fb-cfg-name-min: 140px;       /* the bank name field in the editor */
    --fb-cfg-dot: 10px;             /* a bank's colour dot in its row */
    --fb-cfg-swatch: 24px;          /* a colour choice of the editor */
    --fb-cfg-swatch-dot: 14px;      /* its dot */
    --fb-cfg-swatch-gap: 2px;       /* the ground between the chosen dot and its ring */
    --fb-cfg-swatch-ring: 3.5px;    /* the outer edge of that ring */

    /* The rail mark: a letter, not a translatable word */
    --fb-mark-letter: "F";

    color-scheme: light;
}

html[data-theme='dark'] {
    --fb-bg: #1B1C1E;
    --fb-side: #18191B;
    --fb-rail: #151618;
    --fb-surface: #222326;
    --fb-surface-raised: #26272B;
    --fb-surface-field: #222326;
    --fb-surface-seg-on: #2C2D31;
    --fb-hover: rgba(255, 255, 255, .05);
    --fb-active: rgba(255, 255, 255, .08);
    --fb-fill: rgba(255, 255, 255, .055);
    --fb-code-bg: rgba(255, 255, 255, .075);
    --fb-line: rgba(255, 255, 255, .07);
    --fb-dot: rgba(255, 255, 255, .10);
    --fb-canvas: #1D1E20;
    --fb-group: rgba(255, 255, 255, .025);

    --fb-text: #E7E8EA;
    --fb-text-2: #BDC0C5;
    --fb-muted: #9296A0;
    --fb-faint: #686C74;
    --fb-on-accent: #141820;

    --fb-accent: #7D98F2;
    --fb-accent-rgb: 125, 152, 242;
    --fb-accent-soft: rgba(125, 152, 242, .13);
    --fb-accent-text: #9AAFF5;
    --fb-selection: rgba(125, 152, 242, .26);

    --fb-warn: #E2B158;
    --fb-warn-bar: #C99236;
    --fb-warn-soft: rgba(226, 177, 88, .09);
    --fb-nc-hover-bg: rgba(226, 177, 88, .16);      /* text 9.9:1 on it */
    --fb-icon-dotted-warn: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E2B158'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.5'%20stroke-dasharray='2.6%203.1'/%3E%3C/svg%3E");

    --fb-negative: #EE8A82;
    --fb-danger: #E5766E;   /* lifted for AA on the dark grounds (5.8:1) */
    --fb-scrim: rgba(0, 0, 0, .5);
    --fb-icon-check-on-accent: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23141820'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5.5%2012.5l4%204L18.5%207.5'/%3E%3C/svg%3E");
    --fb-avatar-bg: #34407A;
    --fb-avatar-text: #DCE3FF;

    --fb-st-yellow: #4B4425;
    --fb-st-pink: #4E2F36;
    --fb-st-blue: #2B3B52;
    --fb-st-green: #2A4433;
    --fb-st-lilac: #3A3352;
    --fb-st-text: #ECEAE3;

    --fb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .45);
    --fb-shadow-sticky: 0 1px 1px rgba(0, 0, 0, .25), 0 6px 16px rgba(0, 0, 0, .25);

    /* Memória page and panel (phase 4) */
    --fb-o-nota: #5F7FE8;
    --fb-o-ext: #C4832E;
    --fb-o-conv: #19A894;
    --fb-o-ag: #9273EA;
    --fb-i-nota: #9AAFF5;
    --fb-i-ext: #E0A866;
    --fb-i-conv: #62CDBB;
    --fb-i-ag: #BBA6F7;
    --fb-t-ext: rgba(196, 131, 46, .09);
    --fb-t-conv: rgba(25, 168, 148, .09);
    --fb-t-ag: rgba(146, 115, 234, .11);
    --fb-l-ext: rgba(196, 131, 46, .24);
    --fb-l-conv: rgba(25, 168, 148, .24);
    --fb-l-ag: rgba(146, 115, 234, .28);
    --fb-st-fila: #7C818C;
    --fb-st-fora: #3A3C41;
    --fb-card-line: rgba(255, 255, 255, .08);
    --fb-line-2: rgba(255, 255, 255, .14);
    --fb-ok: #5FC08A;
    --fb-on-danger: #1B1C1E;
    /* FABBRAIN (fase 4b, Tarefa 4): the area colours, dark */
    --fb-area-azul: #8DA4F5;
    --fb-area-verde: #6CC3B2;
    --fb-area-roxo: #B79BEA;
    --fb-area-ambar: #D9A441;
    --fb-area-vermelho: #EE8A82;
    --fb-area-cinza: #9B9FA6;

    color-scheme: dark;
}
