/* TheoNotes · Arctic Pearl theme (design system: TheoNotes, claude.ai/artifact/L9sjedWCZtCnhUxoXqwaJu).
   Loaded after the app stylesheet. Unlayered, so it wins over the Tailwind layers it restyles.
   Visual only: no rule here adds, hides or moves a feature. */

/* ---------- font: Geist variable, self-hosted (SIL OFL 1.1), Latin + Latin Extended for Polish ---------- */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./geist-latin-ext-12ffd1b0.woff2) format("woff2-variations"), url(./geist-latin-ext-12ffd1b0.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./geist-latin-b3495042.woff2) format("woff2-variations"), url(./geist-latin-b3495042.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root:not([data-theme=dark]) {
  --tn-bg: #ffffff;
  --tn-bg-secondary: #f4f6f9;
  --tn-bg-tertiary: #eef1f5;
  --tn-bg-elevated: #ffffff;
  --tn-bg-subtle: #f8f9fb;
  --tn-bg-hover: #edf0f4;
  --tn-separator: #e6eaf0;
  --tn-separator-strong: #d5dce4;
  --tn-text: #161c24;
  --tn-text-secondary: #4f5a67;
  --tn-text-tertiary: #606b78;
  --tn-text-on-accent: #ffffff;
  --tn-icon: #4f5a67;
  --tn-accent: #0b7a8f;
  --tn-accent-hover: #096a7c;
  --tn-accent-soft: #e2f2f5;
  --tn-accent-soft-hover: #d2eaef;
  --tn-danger: #b8402f;
  --tn-danger-soft: #fbe9e5;
  --tn-danger-soft-hover: #f6d9d2;
  --tn-success: #2f7a55;
  --tn-success-soft: #e4f3ea;
  --tn-warning: #92600e;
  --tn-warning-soft: #faf1de;
  --tn-verse: #8a6114;
  --tn-verse-bg: #f8f0de;
  --tn-verse-mark: #b07d22;
  --tn-maxim: #7a4fa0;
  --tn-maxim-bg: #f1ebf8;
  --tn-example: #3b62c4;
  --tn-example-bg: #eaeffb;
  --tn-treasure: #b23f5c;
  --tn-treasure-bg: #fae9ee;
  --tn-recording: #b8402f;
  --tn-shadow-card: 0 0 0 1px rgba(22, 32, 48, 0.06), 0 1px 2px rgba(22, 32, 48, 0.04);
  --tn-shadow-panel: 0 0 0 1px rgba(22, 32, 48, 0.06), 0 8px 24px -16px rgba(22, 32, 48, 0.14);
  --tn-shadow-raised: 0 0 0 1px rgba(22, 32, 48, 0.10), 0 1px 1px rgba(22, 32, 48, 0.05);
  --tn-shadow-float: 0 0 0 1px rgba(22, 32, 48, 0.08), 0 12px 32px -10px rgba(22, 32, 48, 0.20);
  --tn-shadow-focus: 0 0 0 2px #ffffff, 0 0 0 4px #0b7a8f;
  --tn-shadow-focus-soft: 0 0 0 1px #0b7a8f, 0 0 0 4px #e2f2f5;
  --tn-shadow-panel-active: var(--tn-shadow-panel);
  --tn-cat-blue: #4a72d1;
  --tn-cat-teal: #1f8f9e;
  --tn-cat-violet: #8a67c9;
  --tn-cat-amber: #b8801f;
  --tn-cat-red: #c94545;
  --tn-cat-green: #2f8a55;
  --tn-cat-pink: #c2508a;
  --tn-cat-indigo: #5a5fcf;
  --tn-cat-lime: #6b8a1a;
  --tn-cat-orange: #c4612a;
  --tn-cat-cyan: #1b8aa6;
  --tn-cat-stone: #75808c;
}
:root {
  --tn-font-sans: Geist, ui-sans-serif, -apple-system, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --tn-font-display: Geist, ui-sans-serif, -apple-system, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --tn-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tn-text-base: .875rem;
  --tn-text-md: 1rem;
  --tn-text-lg: 1.0625rem;
  --tn-text-xl: 1.375rem;
  --tn-text-2xl: 1.75rem;
  --tn-radius-sm: 6px;
  --tn-radius-control: 8px;
  --tn-radius-md: 12px;
  --tn-radius-lg: 12px;
  --tn-radius-xl: 14px;
  --tn-sidebar-width: 240px;
  --tn-sidebar-rail-width: 64px;
  --tn-topbar-height: 52px;
  --tn-content-max: 1160px;
  --tn-duration-fast: .12s;
  --tn-duration: .18s;
}
@media (prefers-reduced-motion: reduce) { :root { --tn-duration-fast: 0s; --tn-duration: 0s; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -0.02em; }
h1 { font-weight: 650; letter-spacing: -0.03em; }

/* Phones and touch: fields stay at 16px so iOS does not zoom on focus. */
@media (max-width: 47.99rem), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea { font-size: 16px; }
}

/* ---------- shell ---------- */
/* Sidebar: white column on a hairline. */
aside.bg-tn-bg-secondary.tn-hairline-r { background-color: var(--tn-bg); }
.tn-nav-item { color: var(--tn-text-secondary); font-size: .84375rem; font-weight: 500; min-height: 34px; padding: 6px 10px; gap: 10px; }
.tn-nav-item svg { width: 18px; height: 18px; }
.tn-nav-item:hover { background: var(--tn-bg-hover); color: var(--tn-text); }
.tn-nav-item[aria-current=page] { background: var(--tn-bg-tertiary); color: var(--tn-text); font-weight: 550; }
.tn-nav-item[aria-current=page] svg { color: var(--tn-accent); }
@media (pointer: coarse) { .tn-nav-item { min-height: 44px; font-size: 1rem; } }

/* Top bar: white on a hairline. */
.backdrop-blur.tn-hairline-b { background-color: rgb(255 255 255 / .92); }

/* ---------- surfaces ---------- */
.tn-card, .tn-panel, .tn-panel-flat { box-shadow: var(--tn-shadow-card); }
.tn-panel { border-radius: var(--tn-radius-lg); }

/* ---------- editor ---------- */
.tn-editor-panel { border-radius: var(--tn-radius-lg); box-shadow: var(--tn-shadow-card); }
.tn-editor-panel:focus-within { box-shadow: var(--tn-shadow-card); }
.tn-editor-bar { border-radius: var(--tn-radius-lg) var(--tn-radius-lg) 0 0; background: rgb(255 255 255 / .92); }
.tn-tool-group + .tn-tool-group::before { background: var(--tn-separator-strong); height: 18px; }
.tn-editor { font-size: 1rem; line-height: 1.6875; }
/* Text fills the full width of the editor panel (inside its own padding). */
@media (min-width: 96rem) { .tn-editor { font-size: 1.0625rem; line-height: 1.7; } }
/* Annotation tools carry their hue. */
.tn-editor-toolbar button[aria-label="Oznacz jako werset"] { color: var(--tn-verse); }
.tn-editor-toolbar button[aria-label="Oznacz jako ciekawą sentencję"] { color: var(--tn-maxim); }
.tn-editor-toolbar button[aria-label="Oznacz jako przykład"] { color: var(--tn-example); }
.tn-editor-toolbar button[aria-label="Oznacz jako werset"]:hover:not(:disabled) { background: var(--tn-verse-bg); }
.tn-editor-toolbar button[aria-label="Oznacz jako ciekawą sentencję"]:hover:not(:disabled) { background: var(--tn-maxim-bg); }
.tn-editor-toolbar button[aria-label="Oznacz jako przykład"]:hover:not(:disabled) { background: var(--tn-example-bg); }
.tn-editor h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.025em; }
.tn-editor h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.tn-editor h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.tn-editor blockquote { border-left: 0; padding: 12px 16px; border-radius: var(--tn-radius-control); background: var(--tn-bg-tertiary); font-style: italic; }

/* Annotation marks: verse recolours its text; maxim and example get a soft fill with an inner underline. */
.tn-verse, .tn-editor .tn-verse { background: none; padding: 0; border-radius: 2px; color: var(--tn-verse); font-weight: 550; text-decoration: underline 2px var(--tn-verse-mark); text-underline-offset: 4px; }
.tn-editor .tn-verse:hover { background: var(--tn-verse-bg); }
.tn-verse-suggestion, .tn-editor .tn-verse-suggestion { text-decoration-color: var(--tn-verse-mark); text-underline-offset: 4px; }
.tn-maxim, .tn-example, .tn-editor .tn-maxim, .tn-editor .tn-example, .tn-editor .tn-example .tn-maxim { text-decoration: none; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tn-maxim, .tn-editor .tn-maxim { background: var(--tn-maxim-bg); box-shadow: inset 0 -2px 0 var(--tn-maxim); }
.tn-example, .tn-editor .tn-example { background: var(--tn-example-bg); box-shadow: inset 0 -2px 0 var(--tn-example); }
.tn-editor .tn-example .tn-maxim { box-shadow: inset 0 -2px 0 var(--tn-maxim), inset 0 -4px 0 var(--tn-example); }
.tn-search-hit, .tn-editor .tn-search-hit { background: #fbeaa0; }

/* ---------- calendar screen (/kalendarz) ----------
   Scoped by structure: the page root is the only element whose card holds the month grid and whose
   second column holds the day heading. Visual only — markup, handlers and data are untouched. */
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) {
  --cal-gap: 6px;
  --cal-radius: 10px;
  --cal-sel-line: rgb(11 122 143 / .38);
  gap: 16px;
}

/* Month card */
main > div:has(> .tn-card > [role="grid"]) > .tn-card {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 20px 20px 18px; border-radius: 14px; box-shadow: var(--tn-shadow-card);
}

/* Header: month + Dziś / ‹ › */
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child { margin: 0 0 16px; padding: 0 2px; gap: 8px; }
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > h1 {
  font-size: 1.625rem; line-height: 2rem; font-weight: 650; letter-spacing: -0.032em; color: var(--tn-text);
}
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div { gap: 6px; }
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button {
  height: 34px; min-width: 34px; padding: 0 10px; border-radius: 9px;
  background: var(--tn-bg); color: var(--tn-text-secondary); box-shadow: var(--tn-shadow-raised);
  font-size: .8125rem; font-weight: 600; transition: background-color .16s var(--tn-ease), color .16s var(--tn-ease), box-shadow .16s var(--tn-ease);
}
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button:first-child { padding: 0 14px; color: var(--tn-text); }
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button:hover { background: var(--tn-bg-hover); color: var(--tn-text); }
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button:active { background: var(--tn-bg-tertiary); }
main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button[aria-label] { width: 34px; padding: 0; }

/* Grid */
main > div:has(> .tn-card > [role="grid"]) [role="grid"] { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
main > div:has(> .tn-card > [role="grid"]) [role="grid"] > [role="row"] { margin-bottom: 8px; gap: var(--cal-gap); }
main > div:has(> .tn-card > [role="grid"]) [role="columnheader"] {
  padding: 0 10px; text-align: left; font-size: .75rem; line-height: 1rem; font-weight: 600; color: var(--tn-text-tertiary);
}
main > div:has(> .tn-card > [role="grid"]) [role="rowgroup"] {
  flex: 1 1 auto; min-height: 0; gap: var(--cal-gap); grid-auto-rows: minmax(84px, 1fr);
}

/* Day cell */
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] {
  position: relative; height: auto; min-height: 0; padding: 8px 8px 10px;
  align-items: flex-start; justify-content: space-between;
  border: 1px solid var(--tn-separator); border-radius: var(--cal-radius); background: var(--tn-bg);
  opacity: 1; cursor: pointer;
  transition: background-color .16s var(--tn-ease), border-color .16s var(--tn-ease), box-shadow .16s var(--tn-ease);
}
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"]:hover { background: var(--tn-bg-subtle); border-color: var(--tn-separator-strong); }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"]:active { background: var(--tn-bg-tertiary); }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"]:focus-visible { outline: none; box-shadow: var(--tn-shadow-focus); }

/* Day number */
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:first-child {
  width: 28px; height: 28px; font-size: .84375rem; font-weight: 550; color: var(--tn-text); letter-spacing: -0.01em;
  transition: background-color .16s var(--tn-ease), color .16s var(--tn-ease);
}

/* Days outside the month: quiet, still clickable */
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"].opacity-35 { background: var(--tn-bg-subtle); border-color: transparent; }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"].opacity-35 > span:first-child { color: #a9b2bd; font-weight: 500; }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"].opacity-35 > span:nth-child(2) { opacity: .5; }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"].opacity-35:hover { border-color: var(--tn-separator); }

/* Selected day: frost fill, glacier hairline, accent number */
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"][aria-selected="true"] {
  background: var(--tn-accent-soft); border-color: var(--cal-sel-line);
}
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"][aria-selected="true"]:hover { background: var(--tn-accent-soft-hover); }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"][aria-selected="true"] > span:first-child { color: var(--tn-accent-hover); font-weight: 700; }

/* Today: solid glacier disc (kept from the app), lifted slightly; it reads apart from the selection fill. */
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span.bg-tn-accent:first-child {
  color: var(--tn-text-on-accent); font-weight: 650; box-shadow: 0 1px 2px rgb(11 122 143 / .35);
}
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"][aria-selected="true"] > span.bg-tn-accent:first-child { color: var(--tn-text-on-accent); }

/* Event markers (category colours, unchanged semantics) */
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:nth-child(2) { margin: 0 0 0 6px; gap: 4px; }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:nth-child(2) > span.rounded-full { width: 7px; height: 7px; box-shadow: 0 0 0 1.5px var(--tn-bg); }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"][aria-selected="true"] > span:nth-child(2) > span.rounded-full { box-shadow: 0 0 0 1.5px var(--tn-accent-soft); }
main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:nth-child(2) > span:not(.rounded-full) { margin-left: 2px; font-size: .6875rem; font-weight: 600; color: var(--tn-text-tertiary); }

/* Day panel: one column-tall surface that pairs with the month card */
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 18px 16px 16px; border-radius: 14px; background: var(--tn-bg); box-shadow: var(--tn-shadow-card);
}
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child > h2 {
  margin: 0 0 14px; padding: 4px 4px 14px; border-bottom: 1px solid var(--tn-separator);
  font-size: 1.0625rem; line-height: 1.5rem; font-weight: 650; letter-spacing: -0.015em; color: var(--tn-text);
}
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child > .tn-card {
  background: transparent; box-shadow: none; border-radius: 0; padding: 0 4px; overflow: visible;
}
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child > .tn-card > p { color: var(--tn-text-secondary); font-size: .8125rem; }

/* Event cards */
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul { display: flex; flex-direction: column; gap: 8px; }
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li {
  border: 1px solid var(--tn-separator); border-radius: 11px; background: var(--tn-bg); overflow: hidden;
  transition: border-color .16s var(--tn-ease), box-shadow .16s var(--tn-ease);
}
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li:hover { border-color: var(--tn-separator-strong); box-shadow: 0 2px 8px -4px rgb(22 32 48 / .14); }
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li > a {
  gap: 12px; padding: 12px 14px; align-items: center; transition: background-color .16s var(--tn-ease);
}
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li > a:hover { background: var(--tn-bg-subtle); }
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li > a > .tn-dot { align-self: flex-start; margin-top: 5px; box-shadow: 0 0 0 3px var(--tn-bg-tertiary); }
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li > a > span:nth-child(2) > span:first-child {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere;
  font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: -0.005em; color: var(--tn-text);
}
main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child ul > li > a > span:nth-child(2) > span:last-child {
  margin-top: 2px; font-size: .75rem; line-height: 1rem; color: var(--tn-text-tertiary);
}

/* ---------- sizes ---------- */
/* Desktop: the month and the day panel share one height that follows the window. */
@media (min-width: 64rem) {
  /* Height follows the window, but rows never grow past ~148px: 4- and 5-week months stay compact on tall screens. */
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2) {
    --cal-weeks: 5;
    grid-template-columns: minmax(0, 1fr) 300px;
    height: min(clamp(560px, calc(100dvh - var(--tn-topbar-height) - var(--tn-safe-top) - 48px), 980px), calc(var(--cal-weeks) * 148px + 176px));
  }
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2):has([role="rowgroup"] > :nth-child(36)) { --cal-weeks: 6; }
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2):not(:has([role="rowgroup"] > :nth-child(29))) { --cal-weeks: 4; }
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child { overflow-y: auto; }
  main > div:has(> .tn-card > [role="grid"]) [role="rowgroup"] { grid-auto-rows: minmax(0, 1fr); }
}
@media (min-width: 80rem) {
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2) { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  main > div:has(> .tn-card > [role="grid"]) > .tn-card { padding: 24px 24px 20px; }
  main > div:has(> .tn-card > [role="grid"]) { --cal-gap: 8px; }
}

/* Tablet: month on top, day panel below. */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  main > div:has(> .tn-card > [role="grid"]) [role="rowgroup"] { grid-auto-rows: 88px; }
}

/* Phone: compact centred cells, comfortable touch targets. */
@media (max-width: 39.99rem) {
  main > div:has(> .tn-card > [role="grid"]) { --cal-gap: 3px; --cal-radius: 10px; }
  main > div:has(> .tn-card > [role="grid"]) > .tn-card { padding: 14px 8px 10px; border-radius: 14px; }
  main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child { margin-bottom: 12px; padding: 0 6px; }
  main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > h1 { font-size: 1.375rem; line-height: 1.75rem; }
  main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button { height: 36px; min-width: 36px; }
  main > div:has(> .tn-card > [role="grid"]) > .tn-card > div:first-child > div > button[aria-label] { width: 36px; }
  main > div:has(> .tn-card > [role="grid"]) [role="grid"] > [role="row"] { margin-bottom: 6px; }
  main > div:has(> .tn-card > [role="grid"]) [role="columnheader"] { padding: 0; text-align: center; font-size: .6875rem; }
  main > div:has(> .tn-card > [role="grid"]) [role="rowgroup"] { grid-auto-rows: 52px; }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] {
    padding: 5px 0 6px; align-items: center; justify-content: flex-start; gap: 3px; border-color: transparent;
  }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"].opacity-35 { background: transparent; }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:nth-child(2) { margin: 0; gap: 3px; }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:nth-child(2) > span.rounded-full { width: 5px; height: 5px; box-shadow: none; }
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2) > div:last-child { padding: 16px 12px 12px; }
}

/* Phone in landscape: the app already switches to two columns; keep cells short. */
@media (orientation: landscape) and (max-height: 500px) {
  main > div:has(> .tn-card > [role="grid"]) [role="rowgroup"] { grid-auto-rows: 40px; }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] { padding: 0; align-items: center; justify-content: center; gap: 2px; border-color: transparent; }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"].opacity-35 { background: transparent; }
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:nth-child(2) { margin: 0; }
  main > div:has(> .tn-card > [role="grid"]) [role="columnheader"] { padding: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"],
  main > div:has(> .tn-card > [role="grid"]) [role="gridcell"] > span:first-child,
  main > div:has(> .tn-card > [role="grid"]):has(> div > h2) ul > li { transition: none; }
}
