/*
 * The panels' look — Studio, a client's /admin, and the platform panel (redesign, 31 October 2026).
 *
 * PLAIN CSS, ON PURPOSE
 * Registered as a Filament asset (`App\Providers\Filament\PanelLook`), so `artisan filament:assets`
 * publishes it to public/css/app/ — and that command already runs on every `composer install`
 * (post-autoload-dump). No Vite entry, no Tailwind build, no new deploy step: a deploy that forgets
 * `npm run build` cannot take the panels down with a missing-manifest exception, and the worst a
 * missing file can do is leave Filament's own default look in place.
 *
 * It restyles Filament through its documented `fi-*` hooks and its colour variables (`--primary-*`,
 * `--gray-*`), so each panel keeps its own accent — Studio emerald, client amber, platform indigo —
 * and nothing here names a colour a panel provider also names.
 *
 * ONE RULE THAT IS LOAD-BEARING
 * Nothing that can contain a builder item may set `transform`, `filter`, `backdrop-filter`,
 * `perspective` or `contain`. Each makes an element the containing block for `position: fixed`
 * descendants, and the section picker's sheet is a fixed overlay rendered inside the builder — it
 * would shrink into the item instead of covering the screen. The topbar's blur is safe only because
 * the topbar holds no form.
 */

/* ---------------------------------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------------------------------- */

:root {
    --jp-radius-sm: 0.625rem;
    --jp-radius: 0.875rem;
    --jp-radius-lg: 1.125rem;
    --jp-canvas: oklch(0.985 0.002 260);
    --jp-surface: #ffffff;
    --jp-surface-2: oklch(0.975 0.003 260);
    --jp-border: color-mix(in oklab, var(--gray-950) 8%, transparent);
    --jp-border-strong: color-mix(in oklab, var(--gray-950) 14%, transparent);
    --jp-ink: var(--gray-950);
    --jp-muted: var(--gray-500);
    --jp-accent: var(--primary-600);
    --jp-accent-soft: color-mix(in oklab, var(--primary-500) 12%, transparent);
    --jp-accent-ring: color-mix(in oklab, var(--primary-500) 35%, transparent);
    --jp-shadow-sm: 0 1px 2px rgb(16 24 40 / 0.04), 0 1px 3px rgb(16 24 40 / 0.04);
    --jp-shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 8px 24px -6px rgb(16 24 40 / 0.08);
    --jp-shadow-lg: 0 24px 64px -12px rgb(16 24 40 / 0.28), 0 2px 6px rgb(16 24 40 / 0.06);
}

:root.dark {
    --jp-canvas: oklch(0.155 0.004 260);
    --jp-surface: oklch(0.195 0.005 260);
    --jp-surface-2: oklch(0.225 0.006 260);
    --jp-border: rgb(255 255 255 / 0.07);
    --jp-border-strong: rgb(255 255 255 / 0.12);
    --jp-ink: oklch(0.97 0 0);
    --jp-muted: var(--gray-400);
    --jp-accent: var(--primary-400);
    --jp-accent-soft: color-mix(in oklab, var(--primary-400) 14%, transparent);
    --jp-accent-ring: color-mix(in oklab, var(--primary-400) 40%, transparent);
    --jp-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --jp-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -10px rgb(0 0 0 / 0.5);
    --jp-shadow-lg: 0 30px 80px -10px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.06);
}

/* ---------------------------------------------------------------------------------------------
 * Canvas, type
 * ------------------------------------------------------------------------------------------- */

.fi-body {
    background-color: var(--jp-canvas);
    background-image: radial-gradient(
        1200px 500px at 0% -10%,
        color-mix(in oklab, var(--primary-500) 7%, transparent),
        transparent 60%
    );
    background-attachment: fixed;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    color: var(--jp-ink);
}

:root.dark .fi-body {
    background-image: radial-gradient(
        1000px 480px at 0% -10%,
        color-mix(in oklab, var(--primary-500) 10%, transparent),
        transparent 60%
    );
}

.fi-header-heading {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.fi-header-subheading {
    color: var(--jp-muted);
}

.fi-breadcrumbs-item-label {
    font-size: 0.8125rem;
    color: var(--jp-muted);
}

.fi-page-header-main-ctn {
    row-gap: 1.75rem;
}

/* ---------------------------------------------------------------------------------------------
 * Topbar
 * ------------------------------------------------------------------------------------------- */

.fi-topbar {
    background: color-mix(in oklab, var(--jp-surface) 78%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: none;
    border-bottom: 1px solid var(--jp-border);
    --tw-ring-shadow: 0 0 #0000;
}

.fi-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* A small mark in the panel's own accent, so the three panels are told apart at a glance. */
.fi-logo::before {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    box-shadow: 0 0 0 3px var(--jp-accent-soft);
    flex: none;
}

/* ---------------------------------------------------------------------------------------------
 * Sidebar
 * ------------------------------------------------------------------------------------------- */

.fi-sidebar-nav {
    padding-top: 1.25rem;
}

.fi-sidebar-item-btn {
    border-radius: var(--jp-radius-sm);
    padding: 0.5rem 0.75rem;
    position: relative;
    transition: background-color 120ms ease, color 120ms ease;
}

.fi-sidebar-item-btn:hover {
    background: color-mix(in oklab, var(--gray-500) 9%, transparent);
}

.fi-sidebar-item-label {
    font-weight: 500;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: var(--jp-accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary-500) 18%, transparent);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    content: '';
    position: absolute;
    inset-inline-start: -0.5rem;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: var(--jp-accent);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label {
    font-weight: 600;
}

.fi-sidebar-nav-groups {
    row-gap: 1.25rem;
}

.fi-sidebar-group-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* The client switcher at the top of Studio's sidebar: a card, so "which client am I editing" is
   the most visible fact on the screen. Editing the wrong client's site is the expensive mistake. */
.fi-tenant-menu-trigger {
    border-radius: var(--jp-radius);
    background: var(--jp-surface);
    box-shadow: var(--jp-shadow-sm), inset 0 0 0 1px var(--jp-border);
    padding: 0.625rem 0.75rem;
}

.fi-tenant-menu-trigger:hover {
    box-shadow: var(--jp-shadow-sm), inset 0 0 0 1px var(--jp-border-strong);
}

.fi-tenant-menu-trigger-text {
    gap: 0.05rem;
}

.fi-tenant-menu-trigger-tenant-name {
    font-weight: 600;
}

.fi-tenant-avatar,
.fi-tenant-menu .fi-avatar {
    border-radius: 0.5rem;
}

/* ---------------------------------------------------------------------------------------------
 * Surfaces: sections, tables, widgets, modals, dropdowns
 * ------------------------------------------------------------------------------------------- */

.fi-section:not(.fi-section-not-contained),
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-widget > .fi-section {
    border-radius: var(--jp-radius-lg);
    background: var(--jp-surface);
    box-shadow: var(--jp-shadow);
    --tw-ring-color: var(--jp-border);
}

.fi-section-header-heading {
    letter-spacing: -0.01em;
    font-weight: 600;
}

.fi-section-header-description {
    color: var(--jp-muted);
}

.fi-ta-header-cell {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jp-muted);
    background: var(--jp-surface-2);
}

.fi-ta-header-cell-sort-btn,
.fi-ta-header-cell-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fi-ta-row {
    transition: background-color 100ms ease;
}

.fi-ta-row:hover {
    background: color-mix(in oklab, var(--primary-500) 4%, transparent);
}

.fi-modal-window {
    border-radius: var(--jp-radius-lg);
    box-shadow: var(--jp-shadow-lg);
}

.fi-dropdown-panel {
    border-radius: var(--jp-radius);
    box-shadow: var(--jp-shadow-lg);
}

.fi-dropdown-list-item {
    border-radius: 0.5rem;
}

.fi-badge {
    border-radius: 999px;
}

/* ---------------------------------------------------------------------------------------------
 * Controls
 * ------------------------------------------------------------------------------------------- */

.fi-input-wrp {
    border-radius: var(--jp-radius-sm);
    background: var(--jp-surface);
    transition: box-shadow 120ms ease;
}

:root.dark .fi-input-wrp {
    background: color-mix(in oklab, var(--jp-surface-2) 80%, transparent);
}

.fi-input-wrp:focus-within:not(.fi-disabled) {
    --tw-ring-color: var(--jp-accent);
    box-shadow: 0 0 0 4px var(--jp-accent-ring);
}

.fi-input {
    padding-block: 0.5625rem;
}

.fi-fo-field-label-content {
    font-weight: 600;
    letter-spacing: -0.005em;
}

.fi-btn {
    border-radius: var(--jp-radius-sm);
    font-weight: 600;
    transition: background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.fi-btn.fi-color-primary:not(.fi-outlined) {
    background-image: linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 4px 14px -4px color-mix(in oklab, var(--primary-600) 55%, transparent),
        inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.fi-icon-btn {
    border-radius: 0.5rem;
}

.fi-form-actions {
    padding-top: 0.5rem;
}

/* ---------------------------------------------------------------------------------------------
 * The page builder
 * ------------------------------------------------------------------------------------------- */

/* No transform on hover — see the load-bearing rule at the top. */
.fi-fo-builder-item {
    border-radius: var(--jp-radius-lg);
    background: var(--jp-surface);
    box-shadow: var(--jp-shadow-sm);
    --tw-ring-color: var(--jp-border);
    transition: box-shadow 150ms ease;
}

.fi-fo-builder-item:hover,
.fi-fo-builder-item:focus-within {
    --tw-ring-color: color-mix(in oklab, var(--primary-500) 40%, transparent);
    box-shadow: var(--jp-shadow);
}

.fi-fo-builder-item-header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.fi-fo-builder-item-header-label {
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* The block's icon — the same one its picker card carries — as a small accent tile. */
.fi-fo-builder-item-header-icon {
    box-sizing: content-box;
    padding: 0.4rem;
    border-radius: 0.5rem;
    color: var(--jp-accent);
    background: var(--jp-accent-soft);
}

.fi-fo-builder-item-content {
    border-top-color: var(--jp-border);
}

.fi-fo-builder-item.fi-collapsed .fi-fo-builder-item-header {
    padding-block: 0.625rem;
}

/* "Add a section" at the foot of the page: a wide dashed drop-zone instead of a small button —
   the main thing an operator does on this screen should be the easiest thing to hit. */
.fi-fo-builder > .jp-picker,
.fi-fo-builder .fi-fo-builder-actions + .jp-picker,
.fi-fo-builder > div > .jp-picker:last-child {
    width: 100%;
}

.jp-picker:not(.fi-fo-builder-add-between-items .jp-picker) > .jp-picker-trigger {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
}

.jp-picker:not(.fi-fo-builder-add-between-items .jp-picker) > .jp-picker-trigger > .fi-btn {
    width: 100%;
    justify-content: center;
    min-height: 3.5rem;
    border-radius: var(--jp-radius-lg);
    background: transparent;
    border: 1.5px dashed color-mix(in oklab, var(--gray-500) 45%, transparent);
    box-shadow: none;
    color: var(--jp-muted);
    font-weight: 600;
    --tw-ring-shadow: 0 0 #0000;
}

.jp-picker:not(.fi-fo-builder-add-between-items .jp-picker) > .jp-picker-trigger > .fi-btn::before {
    content: '+';
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-inline-end: 0.25rem;
    border-radius: 999px;
    background: var(--jp-accent-soft);
    color: var(--jp-accent);
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 500;
}

.jp-picker:not(.fi-fo-builder-add-between-items .jp-picker) > .jp-picker-trigger > .fi-btn:hover {
    border-color: var(--jp-accent);
    color: var(--jp-accent);
    background: color-mix(in oklab, var(--primary-500) 5%, transparent);
}

/* ---------------------------------------------------------------------------------------------
 * The section picker sheet (resources/views/vendor/filament-forms/components/builder/block-picker)
 * ------------------------------------------------------------------------------------------- */

[x-cloak] {
    display: none !important;
}

.jp-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: color-mix(in oklab, var(--gray-950) 45%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

:root.dark .jp-picker-overlay {
    background: rgb(0 0 0 / 0.6);
}

.jp-picker-sheet {
    display: flex;
    flex-direction: column;
    width: min(74rem, 100%);
    max-height: min(46rem, calc(100dvh - 4rem));
    border-radius: 1.25rem;
    background: var(--jp-surface);
    box-shadow: var(--jp-shadow-lg);
    overflow: hidden;
    text-align: start;
    color: var(--jp-ink);
}

.jp-picker-head {
    display: grid;
    grid-template-columns: 1fr minmax(12rem, 18rem) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem 1rem 1.5rem;
    border-bottom: 1px solid var(--jp-border);
}

.jp-picker-titles {
    min-width: 0;
}

.jp-picker-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.jp-picker-subtitle {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: var(--jp-muted);
}

.jp-picker-search {
    position: relative;
    display: block;
}

.jp-picker-search-icon {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    color: var(--jp-muted);
    pointer-events: none;
}

.jp-picker-search input {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.875rem 0 2.25rem;
    border: 0;
    border-radius: var(--jp-radius-sm);
    background: var(--jp-surface-2);
    box-shadow: inset 0 0 0 1px var(--jp-border);
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    outline: none;
}

.jp-picker-search input:focus {
    box-shadow: inset 0 0 0 1px var(--jp-accent), 0 0 0 3px var(--jp-accent-soft);
}

.jp-picker-close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    color: var(--jp-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.jp-picker-close:hover {
    background: var(--jp-surface-2);
    color: var(--jp-ink);
}

.jp-picker-close .fi-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.jp-picker-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem 1.5rem 1.5rem;
    scrollbar-gutter: stable;
}

.jp-picker-group + .jp-picker-group {
    margin-top: 0.5rem;
}

.jp-picker-group-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1rem 0 0.75rem;
    background: var(--jp-surface);
}

.jp-picker-group-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jp-ink);
}

.jp-picker-group-hint {
    font-size: 0.8125rem;
    color: var(--jp-muted);
}

.jp-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 0.875rem;
}

.jp-picker-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: var(--jp-radius);
    background: var(--jp-surface);
    box-shadow: inset 0 0 0 1px var(--jp-border);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 140ms ease, background-color 140ms ease;
}

.jp-picker-item:hover,
.jp-picker-item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1.5px var(--jp-accent), 0 10px 28px -12px color-mix(in oklab, var(--primary-600) 45%, transparent);
}

.jp-picker-item[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.jp-picker-preview {
    display: block;
    padding: 0.75rem 0.75rem 0;
    background: var(--jp-surface-2);
}

.jp-picker-item:hover .jp-picker-preview {
    background: color-mix(in oklab, var(--primary-500) 7%, var(--jp-surface-2));
}

.jp-picker-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 0.875rem 0.875rem;
    border-top: 1px solid var(--jp-border);
}

.jp-picker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.jp-picker-icon {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    border-radius: 0.4rem;
    background: var(--jp-accent-soft);
    color: var(--jp-accent);
}

.jp-picker-icon .fi-icon,
.jp-picker-icon .fi-loading-indicator {
    width: 0.95rem;
    height: 0.95rem;
}

.jp-picker-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--jp-muted);
}

.jp-picker-empty {
    margin: 2rem 0 1rem;
    text-align: center;
    color: var(--jp-muted);
    font-size: 0.875rem;
}

/* Layout drawings */
.jp-pv {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: 0 -1px 0 var(--jp-border), 1px 0 0 var(--jp-border), -1px 0 0 var(--jp-border);
}

.jp-pv-bg { fill: var(--jp-surface); }
.jp-pv-img { fill: color-mix(in oklab, var(--primary-500) 22%, var(--jp-surface-2)); }
.jp-pv-on-img { fill: #ffffff; }
.jp-pv-dim { opacity: 0.6; }
.jp-pv-ink { fill: color-mix(in oklab, var(--jp-ink) 70%, transparent); }
.jp-pv-line { fill: color-mix(in oklab, var(--jp-ink) 16%, transparent); }
.jp-pv-rule { fill: var(--jp-border); }
.jp-pv-accent { fill: var(--jp-accent); }
.jp-pv-accent-soft { fill: var(--jp-accent-soft); }
.jp-pv-grey { fill: color-mix(in oklab, var(--jp-ink) 9%, white); }
.jp-pv-stroke { fill: none; stroke: #ffffff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* A white header bar and a line drawn on the light ground (4 Nov 2026, the Header block's cards). */
.jp-pv-paper { fill: #ffffff; stroke: var(--jp-border); stroke-width: 1; }
.jp-pv-stroke-ink { fill: none; stroke: color-mix(in oklab, var(--jp-ink) 70%, transparent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.jp-pv-fallback {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--jp-accent);
}

.jp-pv-fallback .fi-icon {
    width: 40px;
    height: 40px;
}

/* ---------------------------------------------------------------------------------------------
 * A theme's appearance settings on a block (3 Nov 2026) — App\Filament\Forms\ChoiceCards and
 * ScreenSizes, inside the block's "Appearance" fieldset. Same tokens and schematic drawings as the
 * section picker, so choosing how a slider looks feels like the same tool as choosing the slider.
 * ------------------------------------------------------------------------------------------- */

.jp-pv-guide { fill: none; stroke: var(--jp-accent); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0.7; }
.jp-pv-device { fill: var(--jp-surface); stroke: color-mix(in oklab, var(--jp-ink) 30%, transparent); stroke-width: 1.5; }
.jp-pv-device-line { fill: none; stroke: color-mix(in oklab, var(--jp-ink) 30%, transparent); stroke-width: 1.5; stroke-linejoin: round; }

.jp-appearance {
    border-radius: var(--jp-radius);
    border-color: var(--jp-border);
    background: var(--jp-surface-2);
}

.jp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.75rem;
}

.jp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--jp-radius);
    background: var(--jp-surface);
    box-shadow: inset 0 0 0 1px var(--jp-border);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 140ms ease;
}

.jp-card:hover {
    box-shadow: inset 0 0 0 1px var(--jp-border-strong), var(--jp-shadow-sm);
}

/* The radio is the control and the card is its label: hidden from sight, never from the keyboard. */
.jp-card-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.jp-card:has(.jp-card-input:focus-visible) {
    box-shadow: inset 0 0 0 1.5px var(--jp-accent), 0 0 0 3px var(--jp-accent-soft);
}

.jp-card:has(.jp-card-input:checked) {
    box-shadow: inset 0 0 0 1.5px var(--jp-accent), 0 10px 28px -14px color-mix(in oklab, var(--primary-600) 45%, transparent);
}

.jp-card-art {
    display: block;
    padding: 0.625rem 0.625rem 0;
    background: var(--jp-surface-2);
}

.jp-card:has(.jp-card-input:checked) .jp-card-art {
    background: color-mix(in oklab, var(--primary-500) 8%, var(--jp-surface-2));
}

.jp-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.75rem 0.75rem;
    border-top: 1px solid var(--jp-border);
}

.jp-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--jp-ink);
}

.jp-card-hint {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--jp-muted);
}

.jp-card-tick {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--jp-accent);
    color: #ffffff;
    opacity: 0;
    transition: opacity 140ms ease;
}

.jp-card-tick svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jp-card:has(.jp-card-input:checked) .jp-card-tick {
    opacity: 1;
}

.jp-screens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.75rem;
}

.jp-screen {
    display: grid;
    justify-items: center;
    gap: 0.125rem;
    padding: 0.75rem 0.75rem 0.875rem;
    border-radius: var(--jp-radius);
    background: var(--jp-surface);
    box-shadow: inset 0 0 0 1px var(--jp-border);
    text-align: center;
}

.jp-screen-art {
    display: block;
    width: 100%;
    max-width: 8rem;
    margin-bottom: 0.375rem;
}

.jp-screen-art .jp-pv {
    border-radius: 0;
    box-shadow: none;
}

.jp-screen-art .jp-pv-bg {
    fill: transparent;
}

.jp-screen-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--jp-ink);
}

.jp-screen-range {
    font-size: 0.6875rem;
    color: var(--jp-muted);
    margin-bottom: 0.5rem;
}

.jp-screen-input {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 10rem;
    border-radius: var(--jp-radius-sm);
    background: var(--jp-surface-2);
    box-shadow: inset 0 0 0 1px var(--jp-border);
}

/* − and + either side of the number. */
.jp-screen-step {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: var(--jp-muted);
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--jp-radius-sm);
}

.jp-screen-step:hover {
    color: var(--jp-accent);
    background: var(--jp-accent-soft);
}

.jp-screen-step:focus-visible {
    outline: 2px solid var(--jp-accent);
    outline-offset: -2px;
}

.jp-screen-input:focus-within {
    box-shadow: inset 0 0 0 1px var(--jp-accent), 0 0 0 3px var(--jp-accent-soft);
}

.jp-screen-input input {
    flex: 1;
    min-width: 0;
    height: 2.25rem;
    padding: 0 0.25rem;
    border: 0;
    background: transparent;
    color: var(--jp-ink);
    font: inherit;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    text-align: end;
    outline: none;
    box-shadow: none;
}

.jp-screen-input input::placeholder {
    color: var(--jp-muted);
    opacity: 0.8;
}

.jp-screen-unit {
    padding-inline: 0.125rem 0.125rem;
    font-size: 0.75rem;
    color: var(--jp-muted);
}

/* Phones: the sheet becomes a full-height panel and the header stacks. */
@media (max-width: 40rem) {
    .jp-picker-overlay {
        padding: 0;
        place-items: end stretch;
    }

    .jp-picker-sheet {
        width: 100%;
        max-height: 92dvh;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .jp-picker-head {
        grid-template-columns: 1fr auto;
        padding: 1rem;
    }

    .jp-picker-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .jp-picker-body {
        padding: 0.25rem 1rem 1.25rem;
        scrollbar-gutter: auto;
    }

    .jp-picker-group-hint {
        display: none;
    }

    .jp-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .jp-picker-description {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fi-sidebar-item-btn,
    .fi-fo-builder-item,
    .jp-picker-item,
    .fi-btn,
    .fi-input-wrp {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------------------------
 * Sign-in (all three panels' simple layout) — second pass, 31 October 2026
 *
 * The first thing a client sees of the product, and until now a white card on a grey page. The
 * page gets the panel's own accent as a soft mesh, the card a larger radius and a real shadow, and
 * the button its full height. Background layers only — nothing here may contain a builder, but the
 * load-bearing rule at the top of the file is kept anyway: no transform or filter on ancestors.
 * ------------------------------------------------------------------------------------------- */

.fi-simple-layout {
    background-color: var(--jp-canvas);
    background-image:
        radial-gradient(900px 520px at 12% 8%, color-mix(in oklab, var(--primary-400) 18%, transparent), transparent 62%),
        radial-gradient(760px 480px at 88% 92%, color-mix(in oklab, var(--primary-600) 14%, transparent), transparent 60%);
    background-attachment: fixed;
}

.fi-simple-main {
    border-radius: 1.5rem;
    border: 1px solid var(--jp-border);
    box-shadow: var(--jp-shadow-lg);
    padding-block: 2.75rem;
}

.fi-simple-header-heading {
    font-size: 1.625rem;
    letter-spacing: -0.03em;
}

.fi-simple-header-subheading {
    color: var(--jp-muted);
}

.fi-simple-main .fi-btn {
    min-height: 2.875rem;
}

.jp-auth-foot {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--jp-muted);
}

/* ---------------------------------------------------------------------------------------------
 * The dashboard's opening card (App\Filament\Widgets\Welcome)
 * ------------------------------------------------------------------------------------------- */

.jp-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--jp-radius-lg);
    border: 1px solid var(--jp-border);
    background:
        radial-gradient(600px 220px at 100% 0%, var(--jp-accent-soft), transparent 70%),
        var(--jp-surface);
    box-shadow: var(--jp-shadow-sm);
}

/* The greeting keeps its line when the shortcuts wrap under it on a narrow screen. */
.jp-welcome-text {
    min-width: 0;
    flex: 1 1 16rem;
}

.jp-welcome-date {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jp-muted);
}

.jp-welcome-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--jp-ink);
}

.jp-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jp-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--jp-border-strong);
    background: var(--jp-surface);
    color: var(--jp-ink);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.jp-shortcut:hover {
    border-color: var(--jp-accent);
    color: var(--jp-accent);
    background: var(--jp-accent-soft);
}

.jp-shortcut-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--jp-accent);
}

/* ---------------------------------------------------------------------------------------------
 * Stat cards, the setup guide's progress, empty tables
 * ------------------------------------------------------------------------------------------- */

.fi-wi-stats-overview-stat-label-ctn .fi-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.4rem;
    border-radius: 0.6rem;
    background: var(--jp-accent-soft);
    color: var(--jp-accent);
}

.fi-wi-stats-overview-stat-value {
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

/* Neutral on purpose — spec §8.11: the setup guide states progress, it does not praise it. */
.jp-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--jp-surface-2);
    border: 1px solid var(--jp-border);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.jp-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    opacity: 0.45;
}

.fi-ta-empty-state {
    padding-block: 3.5rem;
}

.fi-ta-empty-state-icon-bg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--jp-accent-soft);
    color: var(--jp-accent);
    box-shadow: inset 0 0 0 1px var(--jp-accent-ring);
}

.fi-ta-empty-state-icon-bg .fi-icon {
    color: var(--jp-accent);
}

.fi-ta-empty-state-heading {
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.fi-ta-empty-state-description {
    max-width: 30rem;
    margin-inline: auto;
    color: var(--jp-muted);
}

/* ---------------------------------------------------------------------------------------------
 * The utilities our own panel views use
 *
 * Filament 4+ ships a prebuilt stylesheet holding its own `fi-*` classes and nothing else, so a
 * `text-sm` or `py-2` written in one of *our* Blade views under resources/views/filament styled
 * nothing — the recent-changes log in Studio rendered its four columns jammed together, and the
 * tenant pages' muted helper text was full-strength. Found during this redesign by looking at the
 * page, not by any test. `PanelViewClassesTest` now fails on any class a panel view uses that
 * neither Filament's stylesheet nor this file defines, so the next one is caught on the commit
 * that writes it.
 *
 * Values are Tailwind 4's, so the views read as they were written.
 * ------------------------------------------------------------------------------------------- */

.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.py-1 { padding-block: 0.25rem; }
.py-2 { padding-block: 0.5rem; }
.pe-4 { padding-inline-end: 1rem; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
:root.dark .dark\:text-gray-300 { color: var(--gray-300); }
:root.dark .dark\:text-gray-400 { color: var(--gray-400); }
.border-t { border-top: 1px solid var(--jp-border); }
.border-b { border-bottom: 1px solid var(--jp-border); }
.border-gray-100 { border-color: var(--gray-100); }
:root.dark .dark\:border-gray-800 { border-color: var(--gray-800); }
.last\:border-0:last-child { border-width: 0; }

@media (min-width: 40rem) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Our own pages' button rows (`<div class="fi-form-actions">`). Filament uses the class but gives it
   no rule of its own outside its form layouts. */
.fi-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* A plain log table inside a section — Studio's recent changes. */
.jp-log {
    border-collapse: collapse;
}

.jp-log th {
    padding: 0 1rem 0.625rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jp-muted);
    text-align: start;
    border-bottom: 1px solid var(--jp-border);
}

.jp-log td {
    padding: 0.7rem 1rem 0.7rem 0;
    border-bottom: 1px solid var(--jp-border);
    vertical-align: top;
}

.jp-log tr:last-child td {
    border-bottom: 0;
}

.jp-log td:first-child {
    white-space: nowrap;
    color: var(--jp-muted);
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------------------------
 * Motion (31 October 2026)
 *
 * The founder's note was that the panels did not feel smooth, and the jolts were specific: every
 * click in the sidebar flashed the whole screen white while the next page loaded, the section
 * picker's sheet popped into place, and a pressed button gave nothing back. Filament's own modals,
 * slide-overs, dropdowns and notifications already ease, so they are left exactly as they are.
 *
 * Everything that moves sits inside `prefers-reduced-motion: no-preference`; `PanelLookTest` reads
 * this file for that. And the load-bearing rule at the top of the file still holds: nothing that
 * can contain a builder item is given a transform. The sheet is teleported to <body>, a button and
 * a picker card contain no fixed descendant, and the sidebar bar is a pseudo-element.
 *
 * NO `view-transition-name` ANYWHERE. A named element is captured on its own, without its backdrop
 * (the topbar's blur would vanish for the length of the fade), and the sidebar and topbar sit at the
 * same place on both pages, so inside the whole-page fade they already hold still.
 * ------------------------------------------------------------------------------------------- */

@keyframes jp-sheet-in {
    from {
        opacity: 0;
        translate: 0 0.75rem;
        scale: 0.985;
    }
}

@keyframes jp-rise {
    from {
        opacity: 0;
        translate: 0 0.75rem;
    }
}

@keyframes jp-bar-in {
    from {
        scale: 1 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /*
     * Page to page, the browser cross-fades instead of flashing white — cross-document view
     * transitions, CSS only, and these panels navigate with full page loads, so every sidebar link,
     * breadcrumb and post-save redirect gets it. A browser without the feature navigates as before.
     * Short, because this is a tool people click through all day.
     */
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 200ms;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* The picker's sheet rises into place as the overlay fades in (x-show restarts the animation). */
    .jp-picker-sheet {
        animation: jp-sheet-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* The sign-in card arrives rather than appearing. */
    .fi-simple-main {
        animation: jp-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* The active page's accent bar draws itself in the sidebar. */
    .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
        animation: jp-bar-in 320ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
    }

    /* A press gives a little under the finger. `scale`, so it composes with anything Filament sets. */
    .fi-btn,
    .fi-icon-btn,
    .jp-shortcut,
    .jp-picker-item {
        transition-property: background-color, border-color, box-shadow, color, scale;
        transition-duration: 140ms;
        transition-timing-function: ease;
    }

    .fi-btn:active:not(.fi-disabled):not([disabled]),
    .fi-icon-btn:active:not(.fi-disabled):not([disabled]),
    .jp-shortcut:active,
    .jp-picker-item:active:not([disabled]) {
        scale: 0.97;
    }
}

/* ---------------------------------------------------------------------------------------------
 * Edit Page (4 Nov 2026): section outline beside the editor, tabs inside a section, compact rows.
 * ------------------------------------------------------------------------------------------- */

/* Phones and tablets: no outline — the collapsed list is short enough to be its own. */
.jp-outline {
    display: none;
}

@media (min-width: 64rem) {
    .jp-outline {
        display: block;
        position: sticky;
        top: 5rem;
    }
}

.jp-outline {
    border: 1px solid var(--jp-border);
    border-radius: var(--jp-radius);
    background: var(--jp-surface-2);
    padding: 0.875rem 0.5rem 0.625rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}

.jp-outline__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.5rem 0.5rem;
}

.jp-outline__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jp-muted);
}

.jp-outline__view {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--jp-accent);
}

.jp-outline__icon {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.jp-outline__empty {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--jp-muted);
}

.jp-outline__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
}

.jp-outline__item {
    display: flex;
    min-width: 0;
    align-items: center;
    border-radius: 0.5rem;
}

.jp-outline__item:hover {
    background: color-mix(in oklab, var(--jp-ink) 5%, transparent);
}

.jp-outline__jump {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    text-align: start;
    font-size: 0.8125rem;
    color: var(--jp-ink);
}

.jp-outline__number {
    width: 1.25rem;
    flex: none;
    font-variant-numeric: tabular-nums;
    color: var(--jp-muted);
    text-align: end;
}

.jp-outline__jump .jp-outline__icon {
    color: var(--jp-accent);
}

.jp-outline__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-outline__site {
    padding: 0.4rem 0.5rem;
    color: var(--jp-muted);
    opacity: 0;
}

.jp-outline__item:hover .jp-outline__site,
.jp-outline__site:focus-visible {
    opacity: 1;
}

.jp-outline__site:hover {
    color: var(--jp-accent);
}

/* A collapsed section's summary can be long: one line, cut, never wrapping the header to two. */
.fi-fo-builder-item-header-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* An opened section lands below the sticky top bar, not under it. */
.fi-fo-builder-item {
    scroll-margin-top: 5.5rem;
}

/* Under the Look tab the picture cards are a size smaller: four grounds fit one row. */
.jp-section-tabs .jp-cards {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
}

/* An uploaded SVG icon, previewed at the size it is drawn. */
.jp-svg-preview {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    border: 1px solid var(--jp-border);
    border-radius: 0.5rem;
    color: var(--jp-accent);
}

.jp-svg-preview > svg {
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------------------------
 * B / I / U / link over every block text box (4 Nov 2026, `FormatBar`). Small and quiet on the
 * label row, so a box reads as a box first; the marks they type show in the box itself.
 * ------------------------------------------------------------------------------------------ */
.jp-format {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    margin-inline-start: auto;
    padding: 0.125rem;
    border-radius: var(--jp-radius-sm);
    background: var(--jp-surface-2);
    box-shadow: inset 0 0 0 1px var(--jp-border);
}

.jp-format__btn {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 0.375rem;
    color: var(--jp-muted);
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
}

.jp-format__btn:hover {
    background: var(--jp-accent-soft);
    color: var(--jp-accent);
}

.jp-format__btn:focus-visible {
    outline: 2px solid var(--jp-accent);
    outline-offset: 1px;
}

/* ---------------------------------------------------------------------------------------------
 * The platform dashboard's cards (6 November 2026) — App\Filament\Central\Widgets
 *
 * Lists, a client table and the system card. Uncoloured by their values on purpose (the platform
 * panel states facts, never verdicts — App\Platform\Dashboard\PlatformOverview); the one coloured
 * mark is the system card's state dot, which is about our server and never about a client.
 * ------------------------------------------------------------------------------------------- */

.jp-dash-lists {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.jp-dash-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem 1.375rem;
    border-radius: var(--jp-radius-lg);
    border: 1px solid var(--jp-border);
    background: var(--jp-surface);
    box-shadow: var(--jp-shadow-sm);
}

.jp-dash-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.jp-dash-card-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jp-muted);
}

.jp-dash-card-link {
    flex: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--jp-accent);
    text-decoration: none;
}

.jp-dash-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jp-dash-list,
.jp-dash-health {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jp-dash-row,
.jp-dash-health-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--jp-border);
}

.jp-dash-row:first-child,
.jp-dash-health-row:first-child {
    border-top: 0;
    padding-top: 0.25rem;
}

.jp-dash-row-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 0.125rem;
}

.jp-dash-row-title {
    overflow: hidden;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--jp-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-dash-row-meta {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--jp-muted);
}

.jp-dash-row-aside {
    flex: none;
    font-size: 0.8125rem;
    color: var(--jp-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.jp-dash-mono {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
    font-size: 0.875rem;
    letter-spacing: 0;
}

.jp-dash-empty,
.jp-dash-more {
    margin: 0;
    padding: 0.5rem 0 0.25rem;
    font-size: 0.875rem;
    color: var(--jp-muted);
}

.jp-dash-more {
    margin-top: auto;
    border-top: 1px solid var(--jp-border);
    padding-top: 0.7rem;
}

/* The client table: horizontal scroll inside the card on a phone, never the page. */
.jp-dash-table-wrap {
    /*
     * `width: 0` with a percentage `min-width` is what keeps the table from widening the page: a
     * percentage contributes nothing to the card's min-content size, so the grid around the widget
     * cannot be pushed past the viewport, and the wrapper still fills the card and scrolls inside it.
     */
    width: 0;
    min-width: calc(100% + 2.75rem);
    margin-inline: -1.375rem;
    overflow-x: auto;
    /* The containing block for `.jp-dash-sr`: an absolutely positioned child whose containing block
       sits outside the scroller is not clipped by it, and it widened the page to 887px on a phone. */
    position: relative;
}

.jp-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.jp-dash-table th {
    padding: 0.5rem 1rem 0.625rem;
    vertical-align: bottom;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    color: var(--jp-muted);
    border-bottom: 1px solid var(--jp-border);
}

.jp-dash-table th:first-child,
.jp-dash-table td:first-child {
    padding-left: 1.375rem;
}

.jp-dash-table th:last-child,
.jp-dash-table td:last-child {
    padding-right: 1.375rem;
}

.jp-dash-table td {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    color: var(--jp-ink);
    border-bottom: 1px solid var(--jp-border);
}

.jp-dash-table tbody tr:last-child td {
    border-bottom: 0;
}

.jp-dash-table tbody tr:hover td {
    background: color-mix(in oklab, var(--primary-500) 4%, transparent);
}

.jp-dash-table th.jp-dash-num,
.jp-dash-table td.jp-dash-num {
    text-align: right;
}

.jp-dash-strong {
    font-weight: 600;
}

.jp-dash-links {
    text-align: right;
}

.jp-dash-links .jp-dash-card-link + .jp-dash-card-link {
    margin-left: 0.875rem;
}

.jp-dash-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* The system card's state dot — the only coloured mark on the platform dashboard. */
.jp-dash-dot {
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--success-500, #22c55e);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--success-500, #22c55e) 16%, transparent);
}

.jp-dash-health-row[data-state="attention"] .jp-dash-dot {
    background: var(--warning-500, #f59e0b);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--warning-500, #f59e0b) 18%, transparent);
}

.jp-dash-health-row[data-state="attention"] .jp-dash-row-aside {
    color: var(--jp-ink);
    font-weight: 600;
}

@media (max-width: 640px) {
    /* Dot beside the label, and the reading under it rather than squeezed to the right. */
    .jp-dash-health-row {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
        row-gap: 0.25rem;
    }

    .jp-dash-health-row .jp-dash-dot {
        margin-top: 0.45rem;
    }

    .jp-dash-health-row .jp-dash-row-aside {
        grid-column: 2;
        text-align: left;
    }

}
