@import 'tailwindcss'; @plugin 'tailwindcss-animate'; @custom-variant dark (&:is([data-kb-theme="dark"] *)); /* Touch sizing: a phone-width screen or any coarse pointer. Width alone let a phone turned to landscape (or a tablet) fall back to desktop density — 13px fields iOS zooms into and 26px buttons. Put `touch:` after the `sm:` compact size it overrides; custom variants sort after the breakpoints. */ @custom-variant touch { @media (pointer: coarse) { @slot; } @media (width < 40rem) { @slot; } } @utility container { margin-inline: auto; padding-inline: 1.25rem; @media (width >= --theme(--breakpoint-sm)) { max-width: none; } @media (width >= 1280px) { max-width: 1280px; } } @theme { --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --color-border: hsl(var(--border)); --color-input: hsl(var(--input)); --color-ring: hsl(var(--ring)); --color-background: hsl(var(--background)); --color-foreground: hsl(var(--foreground)); --color-primary: hsl(var(--primary)); --color-primary-foreground: hsl(var(--primary-foreground)); --color-secondary: hsl(var(--secondary)); --color-secondary-foreground: hsl(var(--secondary-foreground)); --color-destructive: hsl(var(--destructive)); --color-destructive-foreground: hsl(var(--destructive-foreground)); --color-muted: hsl(var(--muted)); --color-muted-foreground: hsl(var(--muted-foreground)); --color-accent: hsl(var(--accent)); --color-accent-foreground: hsl(var(--accent-foreground)); --color-popover: hsl(var(--popover)); --color-popover-foreground: hsl(var(--popover-foreground)); --color-card: hsl(var(--card)); --color-card-foreground: hsl(var(--card-foreground)); --color-success: hsl(var(--success)); --color-warning: hsl(var(--warning)); --color-info: hsl(var(--info)); /* Text-on-surface variants: the fills above are for buttons, dots and tints; small colored text uses these, which reach WCAG AA (4.5:1) on the page and card backgrounds in both themes. */ --color-primary-text: hsl(var(--primary-text)); --color-success-text: hsl(var(--success-text)); --color-warning-text: hsl(var(--warning-text)); --color-info-text: hsl(var(--info-text)); --color-destructive-text: hsl(var(--destructive-text)); --color-sidebar: hsl(var(--sidebar)); --color-sidebar-foreground: hsl(var(--sidebar-foreground)); /* Hezarfen Figma semantic aliases. Keep page code semantic while matching the shared design vocabulary across light and dark modes. */ --color-brand: hsl(var(--brand)); --color-brand-accent: hsl(var(--brand-accent)); --color-brand-hover: hsl(var(--brand-hover)); --color-brand-ink: hsl(var(--brand-ink)); --color-brand-wash: hsl(var(--brand-wash)); --color-surface-base: hsl(var(--surface-base)); --color-surface-overlay: hsl(var(--surface-overlay)); --color-surface-tint: hsl(var(--surface-tint)); --color-surface-fill: hsl(var(--surface-fill)); --color-text-strong: hsl(var(--text-strong)); --color-text-default: hsl(var(--text-default)); --color-text-subtle: hsl(var(--text-subtle)); --color-text-placeholder: hsl(var(--text-placeholder)); --color-border-line: hsl(var(--border-line)); --color-border-hairline: hsl(var(--border-hairline)); /* bdash radius scale: base 0.5rem, sm=r-4px, md=r-2px, lg=r, xl=r+4px */ --radius-3xl: calc(var(--radius) + 12px); --radius-2xl: calc(var(--radius) + 8px); --radius-xl: calc(var(--radius) + 4px); --radius-lg: var(--radius); --radius-md: calc(var(--radius) - 2px); --radius-sm: calc(var(--radius) - 4px); --animate-fade-up: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; --animate-accordion-down: accordion-down 0.25s cubic-bezier(0.16, 1, 0.3, 1); --animate-accordion-up: accordion-up 0.25s cubic-bezier(0.16, 1, 0.3, 1); @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes accordion-down { from { height: 0; } to { height: var(--kb-collapsible-content-height); } } @keyframes accordion-up { from { height: var(--kb-collapsible-content-height); } to { height: 0; } } } /* The default border color has changed to `currentcolor` in Tailwind CSS v4, so we've added these compatibility styles to make sure everything still looks the same as it did with Tailwind CSS v3. If we ever want to remove these styles, we need to add an explicit border color utility to any element that depends on these defaults. */ @layer base { button:not(:disabled), [role='button']:not([aria-disabled='true']) { cursor: pointer; } *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: var(--color-gray-200, currentcolor); } } @utility topbar-control { @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground; } /* AI action button uses the landing-page brand blue. The border is transparent and the tint is clipped inside it: a brand/20 rim on a brand/10 fill read as one blob that looked bigger than the h-9 icon controls beside it. */ @utility topbar-ai-control { @apply border border-transparent bg-brand/10 bg-clip-padding text-brand transition-colors hover:bg-brand/16 hover:text-brand; } @utility data-shell { @apply rounded-xl border border-border-line bg-surface-base; } @utility data-table-wrap { /* Scrolls sideways only. A height cap gave the table its own vertical * scroller inside the page, clipping the last rows of a page that fit. */ @apply isolate overflow-x-auto overflow-y-hidden rounded-xl border border-border-line bg-surface-base; } @utility data-table { @apply w-full caption-bottom text-sm; & thead { @apply sticky top-0 z-20 border-b border-border-hairline text-text-subtle; background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); } & th { /* No text-align here: `.data-table th` would out-specify the per-column * text-right/center utility on TableHead and force every header left. The * TableHead base class provides the left default; alignment stays utility-driven. * Title Case (no uppercase transform), light weight, muted. */ @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap px-3 text-xs font-medium tracking-normal text-text-subtle first:pl-4 last:pr-4; background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); } & td { /* tabular-nums: vertically aligned digits without a mono font. * One line per cell, cut with an ellipsis: a nowrap value longer than * its fixed-layout column used to run over the next cell's text. */ @apply overflow-hidden text-ellipsis whitespace-nowrap px-3 py-3 align-middle text-sm font-normal text-foreground tabular-nums first:pl-4 last:pr-4; } & tbody tr { @apply border-b border-border-hairline transition-colors data-[state=selected]:bg-muted; background-color: hsl(var(--card)); } & tbody tr:hover { background-color: color-mix(in oklab, hsl(var(--muted)) 40%, hsl(var(--card))); } & tbody tr[data-state='selected'] { background-color: hsl(var(--muted)); } } /* * Yatay kaydırmada sabit kalan (dondurulmuş) kolonlar. Altındaki içerik görünmesin * diye opak olmalı ama zebra/hover satır tonuyla da eşleşmeli: gövde hücresi satır * tonunu `inherit` ile alır, başlık hücresi başlık tonunu kullanır. Kayan içerikle * arasında görsel dikiş için kenara ince çizgi + yumuşak gölge eklenir. */ @utility table-sticky-left { background-color: inherit; border-right: 1px solid hsl(var(--border)); box-shadow: 4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } @utility table-sticky-right { background-color: inherit; border-left: 1px solid hsl(var(--border)); box-shadow: -4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } /* Dondurulmuş başlık hücreleri gövde hücrelerinin üstünde opak kalmalı. */ @utility table-sticky-head-left { background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); border-right: 1px solid hsl(var(--border)); box-shadow: 4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } @utility table-sticky-head-right { background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); border-left: 1px solid hsl(var(--border)); box-shadow: -4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } /* Frozen columns only cast their seam when something can slide under them. * On a table that fits, the shadow and heavier rule read as "more content to * the side" and invite a scroll that goes nowhere. */ .data-table-wrap:not([data-scrollable]) :is(.table-sticky-left, .table-sticky-right, .table-sticky-head-left, .table-sticky-head-right) { box-shadow: none; } .data-table-wrap:not([data-scrollable]) :is(.table-sticky-right, .table-sticky-head-right) { border-left-color: transparent; } .data-table-wrap:not([data-scrollable]) :is(.table-sticky-left, .table-sticky-head-left) { border-right-color: var(--color-border-hairline); } /* The header row stays in view while the page scrolls. `overflow-x: auto` * makes the frame its own scroller, which pins a sticky thead inside a box * that never scrolls vertically; a table that fits needs no sideways scroll, * so its frame only clips (rounded corners) and the thead sticks to the * page instead. A table wide enough to scroll sideways keeps its scroller * and a header that scrolls with it. */ .data-table-wrap:not([data-scrollable]) { overflow: clip; } /* In the page (not a side panel) the header clears the app's sticky top * bar, which only exists from lg up. */ #main-content .data-table-wrap:not([data-scrollable]) .data-table thead { top: 0; } @media (min-width: 64rem) { #main-content .data-table-wrap:not([data-scrollable]) .data-table thead { top: calc(49px + env(safe-area-inset-top)); } } /* İşlemler sütunu: sabit 110x45. */ .data-table td.table-action-cell, .data-table th.table-action-cell { width: 110px; min-width: 110px; max-width: 110px; height: 45px; padding-top: 0; padding-bottom: 0; } /* Insight ledgers are intentionally spreadsheet-like: centered metrics and * explicit cell rules make a wide scan easier than a card-style table. */ .insight-grid-table th, .insight-grid-table td { border-right: 1px solid hsl(var(--border)); text-align: center; } /* Headers centred, values from the left edge, as on every other table. */ .insight-grid-table td:not(.table-action-cell) { text-align: left; } .insight-grid-table th:last-child, .insight-grid-table td:last-child { border-right: 0; } .insight-grid-table tbody tr:nth-child(even) { background-color: color-mix(in oklab, hsl(var(--muted)) 18%, hsl(var(--card))); } @utility detail-breadcrumb { @apply flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground font-medium; & a { @apply transition-colors hover:text-foreground; } } @utility detail-action-group { /* A plain row: the pill buttons inside carry their own borders, and a * boxed frame around them read as one more, squarer control. */ @apply flex w-full flex-wrap items-center gap-2 sm:w-auto; } @utility detail-action-divider { @apply flex flex-1 items-center gap-1.5 border-t border-border pt-1.5 sm:ml-1 sm:flex-none sm:border-l sm:border-t-0 sm:pl-1.5 sm:pt-0; } @utility tab-panel-header { @apply flex flex-wrap items-center justify-between gap-3 rounded-lg border border-border/60 bg-muted/20 px-3 py-2; } @utility tab-panel-note { @apply rounded-lg border border-border/60 bg-muted/20 px-3 py-2 text-sm text-muted-foreground; } @utility detail-metric-card { @apply rounded-lg border border-border bg-card px-4 py-4 shadow-sm; } @utility side-panel-body { & form { @apply space-y-4 pb-4; } & form > .space-y-3 { @apply rounded-lg border border-border bg-card p-4; } & form > .space-y-4 { @apply rounded-lg border border-border bg-card p-4; } & form > .space-y-1\.5 { @apply rounded-lg border border-border bg-card p-4; } & form > .grid { @apply rounded-lg border border-border bg-card p-4; } /* Every field group is its own card, whatever its wrapper: a checkbox row, a picker rendered straight into the form or a space-y-2 block used to sit bare between carded siblings. Alerts, the sticky action bar and blocks that already draw a border keep their own look. */ & form > :is(div, fieldset, label, section):not(.flex:last-child, [role="alert"], .sticky, [class*="mt-auto"], [class*="border"]) { @apply rounded-lg border border-border bg-card p-4; } /* Read-only panels get the same cards: a block of detail fields. */ & :is(div, section):has(> [data-slot="detail-field"]):not([class*="border"]) { @apply rounded-lg border border-border bg-card p-4; } & label { @apply text-xs font-semibold text-muted-foreground/90 tracking-tight; } & input { @apply h-9 rounded-md; } & textarea { @apply rounded-md; } & select { @apply h-9 rounded-md; } /* The action bar sits flush on the panel's bottom edge: the body and the form drop their bottom padding, which otherwise left an empty strip under Kaydet / Vazgeç on every panel. */ &:has(form > .flex:last-child) { @apply pb-0; } & form:has(> .flex:last-child) { @apply pb-0; } /* A form wrapped in a div (a help line above it) still fills the panel, so its bar lands on the bottom edge instead of just above it. */ & > div:has(> form:last-child > .flex:last-child) { @apply flex min-h-full flex-col; } & > div > form:last-child:has(> .flex:last-child) { @apply flex-1; } /* mb-0 overrides a bar's own -mb-5, which (with bottom-0 here) pulled it over the last field. */ & form > .flex:last-child { @apply sticky bottom-0 -mx-5 mb-0 justify-end border-t border-border bg-background px-5 py-3; } & form > .flex.flex-wrap:last-child { @apply sticky bottom-0 -mx-5 mb-0 justify-end border-t border-border bg-background px-5 py-3; } /* Save / Cancel: touch-sized (h-10) on phones and touch screens, h-9 on a desktop pointer. */ & form > .flex:last-child button { @apply h-9 rounded-md px-4 font-medium touch:h-10; } & form > .flex.flex-wrap:last-child button { @apply h-9 rounded-md px-4 font-medium touch:h-10; } } @utility tactile-press { @apply active:scale-[0.97] transition-transform duration-150; } @utility animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; @media (prefers-reduced-motion: reduce) { animation: none; } } @utility num { font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; } @utility mono { font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; } @layer base { /* Hue-neutral gray scale + Carbon-style semantic colors. */ :root { /* Height of the area the user can actually see: the display minus the status bar / camera cutout at the top. Full-height layouts measure this instead of the viewport, which on mobile is taller than the page. */ --app-viewport: calc(100dvh - env(safe-area-inset-top)); /* The UA paints the caret, the text-selection handles, the keyboard and the overscroll canvas from this — and `light dark` in the meta tag makes it follow the OS, not the app. A dark app on a light phone then drew a black caret on a black field, and the strip revealed by overscrolling came back white. Pinning it per theme keeps that chrome in the theme. */ color-scheme: light; /* --accent-light / --accent-light-fg are set inline by preferences-context when the user picks an accent color. Figma brand blue is only the default; a saved user palette continues to win. */ --brand: 191.94 100% 42.35%; --brand-accent: 191.94 100% 42.35%; --brand-hover: 192.06 100% 37.06%; --brand-ink: 192.46 94.2% 27.06%; --brand-wash: 193.33 75% 95.29%; --surface-base: 0 0% 100%; --surface-overlay: 0 0% 97%; --surface-tint: 0 0% 96%; --surface-fill: 0 0% 90%; --text-strong: 0 0% 4%; --text-default: 240 6% 10%; --text-subtle: 0 0% 45%; --text-placeholder: 0 0% 63%; --border-line: 0 0% 4% / 0.1; --border-hairline: 0 0% 91%; --ui-accent: var(--accent-light, var(--brand)); --background: var(--surface-overlay); --foreground: var(--text-default); --card: 0 0% 100%; --card-foreground: 0 0% 8%; --popover: 0 0% 100%; --popover-foreground: 0 0% 8%; --primary: var(--ui-accent); --primary-foreground: var(--accent-light-fg, 0 0% 4%); --secondary: var(--surface-fill); --secondary-foreground: 0 0% 16%; --muted: var(--surface-tint); --muted-foreground: var(--text-subtle); --accent: var(--surface-fill); --accent-foreground: 0 0% 13%; --destructive: 356 82% 51%; --destructive-foreground: 0 0% 100%; --border: var(--border-hairline); --input: var(--border-line); --ring: var(--accent-light, var(--brand-ink)); --radius: 0.5rem; --success: 137 63% 39%; --warning: 38 92% 50%; --info: 219 98% 53%; --primary-text: var(--accent-light-text, var(--brand-ink)); --success-text: 137 63% 30%; --warning-text: 38 92% 31%; --info-text: 219 98% 50%; --destructive-text: 356 82% 46%; --surface-elevated: 0 0% 100%; --sidebar: 0 0% 98%; --sidebar-foreground: 0 0% 8%; /* unDraw illustration palette (src/lib/illustrations.ts). */ --illu-accent: hsl(var(--primary)); --illu-accent-2: hsl(349 100% 70%); --illu-ink: hsl(240 12% 22%); --illu-line: hsl(0 0% 82%); --illu-soft: hsl(0 0% 92%); --illu-paper: hsl(0 0% 100%); } [data-kb-theme="dark"] { /* --accent-dark / --accent-dark-fg are set inline by preferences-context — a separate, lighter-lightness variant of the same picked hue so it stays legible against this theme's near-black background. */ color-scheme: dark; --surface-base: 0 0% 6%; --surface-overlay: 0 0% 6%; --surface-tint: 0 0% 15%; --surface-fill: 0 0% 15%; --text-strong: 0 0% 98%; --text-default: 0 0% 96%; --text-subtle: 0 0% 63%; --text-placeholder: 0 0% 63%; --border-line: 0 0% 20%; --border-hairline: 0 0% 20%; --ui-accent: var(--accent-dark, var(--brand)); --background: var(--surface-overlay); --foreground: var(--text-strong); --card: var(--surface-base); --card-foreground: var(--text-strong); --popover: var(--surface-base); --popover-foreground: var(--text-strong); --primary: var(--ui-accent); --primary-foreground: var(--accent-dark-fg, 0 0% 4%); --secondary: var(--surface-fill); --secondary-foreground: 0 0% 98%; --muted: var(--surface-tint); --muted-foreground: var(--text-subtle); --accent: var(--surface-fill); --accent-foreground: 0 0% 98%; --destructive: 357 94% 64%; --destructive-foreground: 0 0% 100%; --border: var(--border-hairline); --input: var(--border-line); --ring: var(--accent-dark, var(--brand)); --success: 137 58% 58%; --warning: 38 92% 54%; --info: 219 98% 60%; --primary-text: var(--primary); --success-text: var(--success); --warning-text: var(--warning); --info-text: var(--info); --destructive-text: var(--destructive); --illu-ink: hsl(240 6% 72%); --illu-line: hsl(0 0% 30%); --illu-soft: hsl(0 0% 19%); --illu-paper: hsl(0 0% 11%); --surface-elevated: var(--surface-fill); --sidebar: var(--surface-base); --sidebar-foreground: 0 0% 98%; } * { @apply border-border; } html { @apply scroll-smooth bg-background; /* The canvas behind the page — what an overscroll bounce or a keyboard teardown reveals below the last element — is painted from `html`, not from `body`. Without this it falls back to the UA's white. */ overscroll-behavior-y: none; /* WCAG 2.4.11: a focused or anchored element must not land under the sticky 45px shell header. */ scroll-padding-top: calc(45px + env(safe-area-inset-top) + 0.5rem); /* Phones have no header; the floating action button replaced it. */ @media (width < 64rem) { scroll-padding-top: calc(env(safe-area-inset-top) + 0.5rem); } font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { @apply min-h-screen bg-background font-sans text-foreground antialiased selection:bg-primary/20 selection:text-primary-text; /* The mobile shells (Tauri on Android/iOS) draw the page edge to edge, so the status bar and the camera cutout sit on top of it. This padding is what starts the page below them; border-box keeps the min-height from counting it, so the page does not grow a scrollbar's worth of overflow. Every inset is 0 in a desktop browser, so the web build is unchanged. */ box-sizing: border-box; min-height: 100dvh; padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); } /* The padding above scrolls away with the page, which would let content slide up under the status bar and the camera. This band does not move: it paints the theme background over that strip at every scroll position, so the cutout area always matches the page instead of showing what is behind it. It sits above every overlay (modals z-70, toasts/date-picker z-80) because the strip must stay clean even while a drawer or dialog is open. */ body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: hsl(var(--background)); z-index: 90; pointer-events: none; } /* Form controls inherit `color` from Tailwind's preflight, but the caret and the selection highlight do not follow it, and a field that overrides its own background (the Çelebi composer is transparent on a card) could end up with a caret the same color as what is behind it. Naming all three keeps a focused field readable in either theme. */ input, textarea, select { color: hsl(var(--foreground)); caret-color: hsl(var(--primary)); -webkit-text-fill-color: currentColor; } /* `-webkit-text-fill-color` inherits as a resolved color, so without this the field's own fill would repaint the placeholder in the text color. */ input::placeholder, textarea::placeholder { -webkit-text-fill-color: currentColor; } input::selection, textarea::selection { background: hsl(var(--primary) / 0.3); color: hsl(var(--foreground)); } /* Keep scrolling available while removing native scrollbar chrome globally. */ * { -ms-overflow-style: none; scrollbar-width: none; } ::-webkit-scrollbar { display: none; } } @layer components { @keyframes pulse-glow { 0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 10px hsl(var(--primary) / 0.25)); } 50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 20px hsl(var(--primary) / 0.45)); } } } /* Profile cover: brand tint under an 8px pixel grid. */ .profile-cover { background-color: hsl(var(--primary) / 0.12); background-image: linear-gradient(hsl(var(--primary) / 0.1) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--primary) / 0.1) 1px, transparent 1px), linear-gradient(120deg, hsl(var(--primary) / 0.28), transparent 65%); background-size: 8px 8px, 8px 8px, 100% 100%; } /* Note bodies: the stored HTML from the note editor, read or edited. One stylesheet for both keeps what you type identical to what you read. */ @layer components { .note-prose { color: hsl(var(--foreground)); font-size: 0.95rem; line-height: 1.75; overflow-wrap: anywhere; } .note-prose > * + * { margin-top: 0.75em; } .note-prose h2 { margin-top: 1.4em; font-size: 1.4rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; } .note-prose h3 { margin-top: 1.2em; font-size: 1.12rem; font-weight: 650; line-height: 1.35; } .note-prose > :first-child { margin-top: 0; } .note-prose ul { padding-left: 1.4em; list-style: disc; } .note-prose ol { padding-left: 1.4em; list-style: decimal; } .note-prose li + li { margin-top: 0.25em; } .note-prose li::marker { color: hsl(var(--muted-foreground)); } .note-prose blockquote { border-left: 3px solid hsl(var(--primary) / 0.55); padding-left: 1em; color: hsl(var(--muted-foreground)); } .note-prose pre { border: 1px solid hsl(var(--border)); border-radius: 0.5rem; background: hsl(var(--muted) / 0.6); padding: 0.75em 1em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; line-height: 1.6; white-space: pre-wrap; } .note-prose code { border-radius: 0.3rem; background: hsl(var(--muted) / 0.8); padding: 0.1em 0.35em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; } .note-prose pre code { background: transparent; padding: 0; } .note-prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; } /* Placeholder for an empty contentEditable body. */ .note-prose[data-empty="true"]::before { content: attr(data-placeholder); color: hsl(var(--muted-foreground) / 0.7); pointer-events: none; position: absolute; } } /* iOS Safari zooms the page into any focused field under 16px. Unlayered, so it outranks every text-* utility on a field, shared or one-off, without each form having to remember a phone size. */ @media (pointer: coarse), (width < 40rem) { input:not([type='checkbox'], [type='radio'], [type='range'], [type='color'], [type='file']), textarea, select { font-size: 16px; } }