/* SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0 */ /* The app's stylesheet. Every colour, font and radius is a brand token: this file declares none of its own, so a white-label change is a change in config/brand.ts and nothing else (decision AT-D11). The fonts are the self-hosted woff2 files of @conusai-kit/brand; no external stylesheet or font host is referenced anywhere (self-hosted D20). */ @import "@conusai-kit/brand/tokens.css"; @import "@conusai-kit/ui/styles.css"; :root { /* The brand's tokens are dark by default and `.light` carries the light variant, so the browser's own colour scheme follows the class: a tenant brand's `light-dark()` ink (modules/branding) resolves against the same choice the tokens make, and never against the operating system's. */ color-scheme: dark; } .light { color-scheme: light; } body { margin: 0; background: var(--brand-background); color: var(--brand-foreground); font-family: var(--brand-font-sans); font-size: var(--brand-font-size-root, 16px); line-height: 1.5; } a { /* The ink, not the fill: the brand's own teal is 1.8:1 as text on white, which is why the ink exists. */ color: var(--brand-accent-ink); } main { padding: 1.5rem; max-width: 72rem; margin: 0 auto; } h1, h2, h3 { font-family: var(--brand-font-display); margin-block: 0 0.75rem; } table { width: 100%; border-collapse: collapse; } th, td { text-align: start; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--brand-border-soft); } .app-shell-header { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--brand-border-soft); } .app-error { border: 1px solid var(--brand-border-soft); border-radius: var(--brand-radius-panel, 8px); padding: 0.75rem 1rem; } /* The app's logo and an organization's, one image per theme: the other is hidden by the theme class. */ .app-logo { height: 1.75rem; width: auto; vertical-align: middle; } .app-logo-light { display: none; } .light .app-logo-light { display: inline; } .light .app-logo-dark { display: none; } .app-brand-link { display: inline-flex; gap: 0.5rem; align-items: center; } /* The brand settings' preview: the page's own tokens on a panel per theme, with the brand layer the organization layout will write drawn on the panel itself. */ .brand-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; } .brand-preview-panel { background: var(--brand-background); color: var(--brand-foreground); border: 1px solid var(--brand-border-strong); border-radius: var(--brand-radius-panel); padding: 1rem; } .brand-preview-action { background: var(--brand-accent); color: var(--brand-accent-foreground); border: 0; border-radius: var(--brand-radius-button); padding: 0.5rem 1rem; font: inherit; } .brand-preview-link { color: var(--brand-accent-ink); } /* The shell's controls, the form controls the pages use, and the states a page can be in. Brand tokens only: a white-label change is still a change in config/brand.ts and nothing else. */ .app-shell-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; } .app-control { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; } button, select, input { font: inherit; color: var(--brand-foreground); background: var(--brand-panel); border: 1px solid var(--brand-border-strong); border-radius: var(--brand-radius-button); padding: 0.4rem 0.75rem; } button { cursor: pointer; } button:disabled { opacity: 0.5; cursor: default; } button[aria-pressed="true"] { border-color: var(--brand-accent); } :focus-visible { outline: 2px solid var(--brand-accent-ink); outline-offset: 2px; } .kit-field { margin-block-end: 0.75rem; } .app-state { max-width: 40rem; margin: 3rem auto; } .app-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; } .app-breadcrumb li + li::before { content: "/"; margin-inline-end: 0.5rem; color: var(--brand-text-70); } .app-link-field { width: 100%; box-sizing: border-box; font-family: var(--brand-font-mono); } .app-loading { display: flex; gap: 0.75rem; align-items: center; color: var(--brand-text-80); } .app-spinner { width: 1rem; height: 1rem; border: 2px solid var(--brand-border-strong); border-top-color: var(--brand-accent); border-radius: 50%; animation: app-spin 0.8s linear infinite; } @keyframes app-spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .app-spinner { animation: none; } } /* The organization shell of @conusai-kit/ui: the bar with the organization's name, its switcher and its links, and the navigation of the modules, as two rows rather than a pile of unstyled elements. */ .kit-shell-bar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--brand-border-soft); } .kit-shell nav { padding: 0.5rem 1.5rem; border-bottom: 1px solid var(--brand-border-soft); } .kit-shell nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; } /* The account page's analytics panel (ADR-049): its two actions side by side, the irreversible one marked with the brand's warning tokens, and the erasure's confirmation set apart. */ .app-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; } /* The text stays the foreground colour, which keeps its contrast on the button's panel fill in both themes (the warning ink on that fill falls under WCAG's 4.5:1); the danger is carried by the heavier warning border and weight, not by colour alone, and the confirmation states it. */ .app-danger { border: 2px solid var(--brand-warning); color: var(--brand-foreground); font-weight: 600; } .app-confirm { border: 1px solid var(--brand-warning); border-radius: var(--brand-radius-panel, 8px); padding: 0.75rem 1rem; margin-block: 0.75rem; } .app-stack { display: grid; gap: 0.5rem; margin-block: 0.75rem; }