/* theme.css - the panel's palette (13 October 2026). Both doors load it: index.html and family.html.

   It began as a colour experiment on the family panel (six rounds in one evening, in NOW.md) and Kaan made it
   the default: "Okay I like this. Let's make this our default panel palette from now on." The brief it settled
   on: the Ridiculus black kept exactly, white stars drawn across it (ninety, in a few sizes, a few faintly
   tinted), and the colours a photograph of the Milky Way holds, each meaning one thing on the cards:

     rose   - the thing to press (one primary button, the active tab, what is chosen)
     blue   - the small labels and the links that lead somewhere
     mint   - what is done or ready (ticks, the Ready dot, the credits)
     coral  - what needs attention

   Nothing is grey ("so dead"): quiet text is a cool off-white. The page itself is pure black - a nebula band
   across it read as a gradient and went. Mixing lives only on the cards (a rose-to-blue bar under each heading,
   a rose-to-violet hover on the primary button). The plain black-and-white panel is tag panel-mono.

   16 October 2026, the unicorn bell: Kaan sent a photo of a child's bicycle bell - "I like the color profile here,
   the tones ... it goes well with black". The rule he set: "single pink, the background black, we use those blue
   pink and purple ... all colors are single tone unless you want to create an effect during a collision". The
   colours measured straight off the photo read dull ("the pink feels like nude, and the purple is not like a
   purple"), so these are the bell as the eye sees it, picked by Kaan's eye on a palette page and then by Pan's
   ("I leave it to your artistic eye"; a fourth colour, a white, was tried and dropped the same day):

     pink   #fca9d1  candy, the ring   - the thing to press, the tab you are on; dark text on it
     purple #b391fb  the mane's violet - counts, what needs attention, what went wrong
                                         (the notification count went pink on 16 Oct: "it mismatches with others")
     blue   #8fd8f1  the mane's sky    - labels and links, what is done or ready

   They mix only where two meet, and those meetings are the one effect: a button under the pointer (pink into
   purple), the bar under a heading (pink into blue). The Milky Way palette of 13 Oct (rose, blue,
   mint, coral) is tag before-unicorn-palette.

   16 October 2026, THE MILKY WAY THEME - Kaan's name for what the Sessions tab became and then every tab of the
   organisation's door: these three colours on black, each big box with its colours meeting in a band along its top,
   lit faintly from its corner, its title in the same meeting; small boxes quiet until the pointer collides with them;
   and a sky of glowing stars behind (the second, brighter layer below). The rules live in index.html after the
   Sessions boxes; the family door has not been given them yet. (Not the same thing as the Milky Way palette above.)

   This file only sets colour tokens and touches a handful of selectors; nothing in the markup or scripts knows
   it exists, and the two panels' own stylesheets still carry every shape. */

:root {
  --bg: #000;
  --card: #09090b;
  --raise: #141418;
  --fg: #fff;
  --muted: rgba(226, 230, 255, .72);
  --faint: rgba(226, 230, 255, .46);
  --line: rgba(226, 230, 255, .14);
  --rose: #fca9d1;            /* pink - to press */
  --blue: #8fd8f1;            /* blue - labels, links, done */
  --lilac: #b391fb;           /* purple - counts, attention */
  --ok: var(--blue);          /* done, ready */
  --bad: var(--lilac);        /* what went wrong */
  --danger: #ff7b7b;          /* deleting, removing, cancelling: red everywhere (Kaan, 19 Oct) */
  --warn: var(--lilac);       /* what needs attention */
  --ink: #1c1117;             /* text on a pastel */
}
html { background: var(--bg); }
/* 25 Oct 2026, Kaan: "I also don't want the star effect anymore on background" - the sky of 16 Oct is gone, the
   Ridiculus black stays. The drawn look (pencil cards, buttons, grain on the words) carries the page now. */
body { background: var(--bg); }
.bar { background: #000; }
.card { background: var(--card); }
.kid .menu, .askbox, .sessview { background: #0b0b0e; }

/* rose: the thing to press. THE PENCIL BUTTON (Kaan, 25 Oct 2026): the crossed-corner box he liked on 23 Oct, drawn
   by the image model in pink pencil, the sketchy one with doubled lines (design/btn_ai.py, design/pencil-buttons/), in
   the softer pink of the clean one. Cut so the corners never stretch; the outset lets the crossing lines stand past
   the button, so it keeps its old size. Hover keeps the old pink-into-lilac, drawn into a second copy. Regular-sized since 26 Oct (Kaan: "start button too big"). */
button.primary { background: transparent; color: var(--ink); border-style: solid; border-color: transparent; border-radius: 0; box-shadow: none;
  border-width: 8px 9px; border-image: url(look/button-pencil.webp) 46 58 58 46 fill / 8px 9px / 7px stretch; padding: 0 8px; transition: transform .15s ease; }
button.primary:hover { background: transparent; border-color: transparent; box-shadow: none; border-image-source: url(look/button-pencil-hover.webp); transform: translateY(-1px); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--rose); }
.pick[aria-pressed="true"] { border-color: var(--rose); background: var(--card); }
.pick[aria-pressed="true"] .tick, .days button[aria-pressed="true"], .times button[aria-pressed="true"], .subtabs button[aria-pressed="true"] { background: var(--rose); color: var(--ink); border-color: var(--rose); }
.days button[aria-pressed="true"] small { color: rgba(28, 17, 23, .7); }
input:focus, select:focus, button:focus-visible { outline-color: var(--rose); }
.tile:hover, .sessrow:hover, .pick:hover, button.card.go:hover { border-color: var(--rose); }
.summary { background: var(--raise); border-color: var(--rose); }
#bellCount { background: var(--rose); color: var(--ink) !important; }
.todo .tick:not(.done) { border-color: var(--rose); }

/* mint: done, ready */
.kid .face { background: var(--ok); color: var(--ink); }
.tile strong::before { content: ""; display: inline-block; width: .55em; height: .55em; margin: 0 .35em 0 0; vertical-align: -.02em; border-radius: 50%; border: .16em solid var(--ok); }
.todo .tick.done, .pick .tick.done { color: var(--ok); border-color: var(--ok); background: transparent; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(143, 216, 241, .25); }
.ovrow.good .ovico { color: var(--ok); background: transparent; border: 1px solid var(--ok); }
.ovbar span { background: var(--ok); opacity: 1; }
.stats strong { color: var(--ok); }

/* blue: labels and links */
.lbl, .ov .ovlabel, .month { color: var(--blue); opacity: 1; }
button.link { color: var(--blue); } button.link:hover { color: var(--fg); }
.card.pad h2::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--rose), var(--blue)); margin-top: 8px; }
.card.pad h2 { margin-bottom: 16px; }

/* the organisation panel's own selectors (index.html), the same meanings */
.nbadge { background: var(--rose); color: var(--ink); }
.chip[aria-pressed="true"], .bseg button[aria-pressed="true"], .cats button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--rose); color: var(--ink); border-color: var(--rose); }
.chip[aria-pressed="true"] .off { color: rgba(28, 17, 23, .6); }
.chip[aria-pressed="true"] .dot:not(.on) { background: rgba(28, 17, 23, .4); }
.role { color: var(--blue); }
.item .role, .sessrow .role, .todo .role { color: var(--faint); }
h2.sect::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--rose), var(--blue)); margin-top: 8px; }
.ovm:hover { border-color: var(--rose); }

/* coral: attention */
.ovrow.work .ovico { color: var(--warn); background: transparent; border: 1px solid var(--warn); }
.exhead .typed.no + .mark, .exo ul li .needed { color: var(--bad); }

/* Every action that deletes, removes, unlinks, withdraws or cancels is red, on both panels (Kaan, 19 Oct: "around the
   panel any delete or remove action should also be red"). A word-marked button gets .is-danger from markDanger();
   icons are caught by their title. */
.is-danger, button.link.is-danger, .np-mi.danger, button.icon[title^="Remove"], button.icon[title^="Delete"] { color: var(--danger) !important; }
button.danger { color: var(--danger) !important; border-color: rgba(255, 123, 123, .45); }
.veil button.danger:not(:disabled) { background: var(--danger) !important; border-color: var(--danger) !important; color: #1c1117 !important; }
