/* PAPER - the light look (Kaan, 26 Oct 2026: "1 is good ... build properly but do not erase old one, add a toggle
   underneath the left bar menu where user can change according to their desire"). A4 printer paper: one even white with
   a fine fibre grain (look/paper-a4.jpg - made, not scanned, so it cannot repeat into stripes), words in dark ink, the
   dates in a deep blue that reads on white. The dark look is untouched: everything here lives under html.paper, which
   the switch under the menu sets (remembered per browser). The crayon drawings, pencil cards and pink buttons keep their
   own colours; only what was black, white or grey is turned round. Tried first as a page-flip preview, 26 Oct. */

html.paper {
  color-scheme: light;
  --bg: #f6f6f3;
  --card: #fbfbf9;
  --raise: #efefeb;
  --fg: #1d1b1f;
  --muted: rgba(29, 27, 31, .84);   /* quiet words darker: .66 read too faint on white (Kaan, 26 Oct) */
  --faint: rgba(29, 27, 31, .66);
  --line: rgba(29, 27, 31, .16);
  --blue: #1585ac;            /* the dates and labels: the dark look's own sky blue (#8fd8f1, hue 195) taken deeper, so the two match (Kaan, 26 Oct) */
  --ok: #1585ac;
  --lilac: #6b4fc4;
  --edge: #d6d4cf;            /* what #2e2e2e was on black: lines, edges of boxes */
}
html.paper, html.paper body { background: var(--bg) url(paper-a4.jpg) 0 0 / 512px repeat !important; color: var(--fg); }

/* everything that was plain black becomes the paper; its edges a soft grey */
html.paper .bar, html.paper .card:not(.bk-w):not(.pcard), html.paper .tpop, html.paper .dayhours, html.paper .sheet.card,
html.paper .sessview, html.paper .kid .menu, html.paper .askbox, html.paper .sessrow, html.paper .person, html.paper .where,
html.paper .calapp, html.paper .calapp .side, html.paper .calapp .day, html.paper .inboxbox,
html.paper .convs, html.paper .thread {
  background-color: transparent !important; border-color: var(--edge) !important; box-shadow: none !important;
}
html.paper .card:not(.bk-w):not(.pcard), html.paper .tpop, html.paper .dayhours, html.paper .sheet.card, html.paper .sessview, html.paper .inboxbox {
  background-color: var(--bg) !important;
}
html.paper .bar { border-bottom: 1px solid var(--edge) !important; background: var(--bg) url(paper-a4.jpg) 0 0 / 512px repeat !important; } /* solid, so a box's wavelength line never shows through it when the page scrolls */
html.paper .veil, html.paper .np-overlay { background: rgba(40, 38, 44, .28) !important; }

/* fields */
html.paper input:not([type=checkbox]), html.paper select, html.paper textarea, html.paper .tbtn, html.paper .convfind,
html.paper .sessview input[type=date], html.paper .sessview input[type=time], html.paper .sessview input:not([type]) {
  background: #fff !important; color: var(--fg) !important; border-color: var(--edge) !important;
}
html.paper input::placeholder, html.paper textarea::placeholder { color: var(--faint); }

/* words that were set white stay readable: dark ink */
html.paper .sessrow .gt, html.paper .kidlinks button.link .gt, html.paper .kidlinks button.link { color: var(--fg) !important; }
html.paper .kidlinks button.link, html.paper .sessrow, html.paper .convs .conv + .conv { border-color: var(--edge) !important; }
html.paper .kidlinks button.link:hover, html.paper .sessrow:hover { border-color: var(--fg) !important; }
html.paper .convs .conv[aria-pressed="true"] { background: rgba(29, 27, 31, .05) !important; }
html.paper .nextcard .nwhen, html.paper .bk-big { color: var(--blue) !important; }
html.paper #meBtn .face.me { background: #8fd8f1 !important; } /* the profile keeps its own sky blue */

/* the crayon pieces drawn in white (the empty tick box, the plain menu drawings, the ringed top buttons) - dark crayon */
html.paper input[type="checkbox"]:not(:checked) { filter: invert(1); }
html.paper #inboxBtn, html.paper #bellBtn, html.paper #meBtn { border-color: var(--edge) !important; }
html.paper #inboxBtn:hover, html.paper #bellBtn:hover, html.paper #meBtn:hover { box-shadow: 0 0 0 1.5px var(--fg), 0 0 10px rgba(0, 0, 0, .15) !important; }
html.paper #sidenav [data-nav]::before { filter: grayscale(1) brightness(.35); opacity: .75; }
html.paper #sidenav [data-nav][aria-current="true"]::before, html.paper #sidenav [data-nav]:hover::before { filter: saturate(1.35) brightness(.85); opacity: 1; }
/* the menu's coloured words: mustard and pink are too pale on white, so a deeper shade of the same */
html.paper #sidenav [data-nav="home"] .gt { color: #a8650a !important; }
html.paper #sidenav [data-nav="children"] .gt { color: #c25b6e !important; }
html.paper #sidenav [data-nav="games"] .gt { color: #4f7d63 !important; }
html.paper #sidenav [data-nav="bookings"] .gt { color: #c8361c !important; }
html.paper #sidenav [data-nav="team"] .gt { color: #6b4fc4 !important; }
html.paper #sidenav [data-nav]:not([aria-current="true"]):not(:hover) .gt { color: var(--muted) !important; }
/* the brand: the white logo would vanish on paper */
html.paper .brand img { filter: invert(1); }

/* the pencil buttons: dark keeps its candy pink, light takes the deeper bubblegum (#f088b5), which holds on white
   (Kaan, 26 Oct, picked from six pinks: "Dark 1, light 4"); the hover still meets purple */
html.paper button.primary:not([data-send]) { border-image-source: url(button-pencil-light.webp) !important; }
html.paper button.primary:not([data-send]):hover { border-image-source: url(button-pencil-light-hover.webp) !important; }

/* the switch itself: Claude's own shape (Kaan, 26 Oct: "make the toggle similar to this") - one soft pill holding three
   plain drawings, the chosen one lifted onto a white chip; the drawings are a child's: Auto (sun and moon hugging),
   the sun, the moon */
.lookrow { display: flex; align-items: center; margin: 26px 0 0 14px; }
.looksw { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(127, 127, 127, .14); }
.looksw button { border: 0 !important; padding: 0 !important; border-radius: 8px; width: 34px; height: 30px; display: grid; place-items: center;
  background: none !important; box-shadow: none !important; transition: background .15s ease; }
.looksw .lk { width: 22px; height: 22px; display: block; background: var(--muted); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.looksw .lk.auto { --i: url(icons/auto.png); } .looksw .lk.sun { --i: url(icons/sun.png); } .looksw .lk.moon { --i: url(icons/moon.png); }
/* their own colours, faded until chosen (Kaan: "add the colors as well"): the sun mustard, the moon the night's blue,
   Auto from one to the other */
.looksw .lk.sun, .looksw button:hover .lk.sun, .looksw button[aria-pressed="true"] .lk.sun { background: #e39a26; }
.looksw .lk.moon, .looksw button:hover .lk.moon, .looksw button[aria-pressed="true"] .lk.moon { background: #6f7fd6; }
.looksw .lk.auto, .looksw button:hover .lk.auto, .looksw button[aria-pressed="true"] .lk.auto { background: linear-gradient(90deg, #e39a26 45%, #6f7fd6 55%); }
.looksw button .lk { opacity: .55; transition: opacity .15s ease; } .looksw button:hover .lk, .looksw button[aria-pressed="true"] .lk { opacity: 1; }
html:not(.paper) .looksw .lk.moon, html:not(.paper) .looksw button[aria-pressed="true"] .lk.moon { background: #f4e8c8; }
html:not(.paper) .looksw .lk.auto { background: linear-gradient(90deg, #e39a26 45%, #f4e8c8 55%); }
.looksw button:hover .lk { background: var(--fg); }
.looksw button[aria-pressed="true"] { background: var(--bg) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .18) !important; }
.looksw button[aria-pressed="true"] .lk { background: var(--fg); }
html:not(.paper) .looksw button[aria-pressed="true"] { background: #2a2a2e !important; }

/* words set white for the dark look, which vanish on paper (Kaan, 26 Oct: "I can't read notifications on light theme") */
html.paper #bellMenu .note .ntext b { color: var(--fg) !important; }
html.paper #bellMenu .note .ntext span { color: var(--muted) !important; }
html.paper #bellMenu .note .ntext small { color: var(--faint) !important; }
html.paper .note:hover { background: rgba(29, 27, 31, .05) !important; }
html.paper .person .role, html.paper .person .role .gt { color: #c25b6e !important; } /* the team's titles: candy pink is too pale on white */
/* a menu that opens over the page is solid paper, never see-through (Kaan, 26 Oct: "it should not be transparent") */
html.paper .menu, html.paper #bellMenu, html.paper .tpop { background: var(--bg) url(paper-a4.jpg) 0 0 / 512px repeat !important; border: 1px solid var(--edge) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .14) !important; }

/* every window that opens over the page is solid paper - a session, notes, Messages, a sheet (Kaan, 26 Oct: "the sessions
   are problematic as they're transparent in light mode") */
html.paper .np-overlay > div, html.paper .np-overlay .sessview, html.paper .veil > .card, html.paper .notesapp,
html.paper .calapp:not(.inline), html.paper .inboxbox, html.paper .sheet.card {
  background: var(--bg) url(paper-a4.jpg) 0 0 / 512px repeat !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .22) !important; }
/* small pop-up lists (Sort, pickers): paper, dark words (Kaan, 26 Oct: "sort is not working on light mode") */
html.paper .pop { background: var(--bg) url(paper-a4.jpg) 0 0 / 512px repeat !important; border: 1px solid var(--edge) !important; color: var(--fg) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .14) !important; }
html.paper .pop .gt, html.paper .pop button { color: var(--fg) !important; }

/* the Notes page on paper */
html.paper .nbook, html.paper .nb-kids, html.paper .nb-list, html.paper .nb-item { border-color: var(--edge) !important; }
html.paper .nb-n { background: #f088b5; }
html.paper #sidenav [data-nav="notes"] .gt { color: var(--fg) !important; }
html.paper #sidenav [data-nav="notes"]:not([aria-current="true"]):not(:hover) .gt { color: var(--muted) !important; }
html.paper .nb-edit input.nb-title, html.paper .nb-edit textarea.nb-body { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.paper .nb-fb { border-color: var(--edge) !important; } html.paper .nb-dot { background: #f088b5; }
html.paper .nb-tools { border-color: var(--edge) !important; }
html.paper .nb-tools { background: var(--bg) url(paper-a4.jpg) 0 0 / 512px repeat !important; } html.paper .nb-pens { border-color: var(--edge) !important; }
html.paper .np-body .pen-sky { color: #1585ac; } html.paper .np-body .pen-plum { color: #6b4fc4; } html.paper .np-body .pen-sage { color: #4f7d63; } html.paper .np-body .pen-mustard { color: #a8650a; } html.paper .np-body .pen-rose { color: #c25b6e; }
/* the white and cream in these two drawings would vanish on white: dark ink there, their colour kept */
html.paper #sidenav [data-nav="bookings"] { --iconc: url(look/icons/colour/calendar-light.png) !important; }
html.paper #sidenav [data-nav="notes"] { --iconc: url(look/icons/colour/notes-light.png) !important; }
html.paper .sessrow .splay { background: rgba(240,136,181,.22); }

/* the session row's three boxes on dark: the same soft colours as on paper, with dark words (Kaan, 26 Oct: "perfect on
   the light theme, correct colours here as well") */
html:not(.paper) .sessrow .splay { background: #f6c6dc !important; color: var(--ink) !important; }
html:not(.paper) .sessrow .sguide { background: #dfe7ee !important; color: var(--ink) !important; }
html:not(.paper) .sessrow .sset { background: #d9ccf7 !important; color: var(--ink) !important; }
html:not(.paper) .sessrow .splay .gt, html:not(.paper) .sessrow .sguide .gt, html:not(.paper) .sessrow .sset .gt { color: var(--ink) !important; }

/* the board's keyboard (Kaan, 26 Oct: "on light mode, some parts of the keyboard is not visible"): its operator and
   action keys kept their dark fills under dark ink. On paper the digits are the lightest, the operators a shade darker,
   the actions darker again, and Enter - white on black - turns round to ink with white words */
html.paper .kbd { background: var(--bg) !important; border-color: var(--edge) !important; }
html.paper .board .kbd .keys button, html.paper .kbd .keys button { border: 1px solid var(--edge) !important; color: var(--fg) !important; }
html.paper .kbd .keys button { background: #f1f0ec !important; }
html.paper .kbd .keys button.op { background: #e3e1db !important; }
html.paper .kbd .keys button.act { background: #d6d4cd !important; }
html.paper .kbd .keys button.go { background: var(--fg) !important; color: #fff !important; border-color: var(--fg) !important; }
html.paper .kbd .keys button.go .gt { color: #fff !important; }
html.paper .kbd .keys button .gt { color: inherit !important; }
