/* ==========================================================================
   CAMEL.Identity — shadcn/ui inspired theme layered over Bootstrap 5.3
   The app markup stays pure Bootstrap; this file re-maps Bootstrap's CSS
   variables and component styles onto shadcn's design tokens (zinc palette,
   near-black primary, hairline borders, soft focus rings, rounded-md/xl).
   ========================================================================== */

:root {
    /* shadcn design tokens (HSL triplets, consumed via hsl(var(--x))) --------- */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    /* Primary = the CMIC brand orange (#F18C20). Dark warm text keeps labels
       legible on the fill — white on this orange is only ~2.5:1. */
    --primary: 31 88% 54%;
    --primary-foreground: 30 70% 8%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5% 64.9%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;

    /* Semantic accents (readable on a light surface) ------------------------- */
    --success: 142 71% 45%;
    --success-fg: 142 72% 29%;
    --warning: 38 92% 50%;
    --warning-fg: 25 80% 34%;
    --info: 217 91% 60%;
    --info-fg: 221 83% 45%;

    /* Radius scale (shadcn) -------------------------------------------------- */
    --radius: 0.5rem;
    --radius-sm: calc(var(--radius) - 0.25rem);
    --radius-md: calc(var(--radius) - 0.125rem);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 0.25rem);

    /* Page background behind the white cards --------------------------------- */
    --app-bg: 240 6% 97%;

    /* Brand accent — the one spot of colour in the shell --------------------- */
    --cmic-accent: #F18C20;
    --cmic-sidebar-width: 240px;

    /* Re-point Bootstrap globals so utilities inherit the theme -------------- */
    --bs-body-bg: hsl(var(--background));
    --bs-body-color: hsl(var(--foreground));
    --bs-secondary-color: hsl(var(--muted-foreground));
    --bs-tertiary-color: hsl(var(--muted-foreground));
    --bs-border-color: hsl(var(--border));
    --bs-border-radius: var(--radius-md);
    --bs-border-radius-sm: var(--radius-sm);
    --bs-border-radius-lg: var(--radius-lg);
    --bs-emphasis-color: hsl(var(--foreground));
    --bs-heading-color: hsl(var(--foreground));
    --bs-success-rgb: 22, 163, 74;
    --bs-danger-rgb: 220, 38, 38;
    --bs-warning-rgb: 217, 119, 6;
    --bs-info-rgb: 37, 99, 235;
}

/* Base --------------------------------------------------------------------- */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif,
        system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: hsl(var(--foreground));
    background-color: hsl(var(--app-bg));
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: hsl(var(--foreground));
    font-weight: 600;
    letter-spacing: -0.011em;
}

hr {
    border-color: hsl(var(--border));
    opacity: 1;
}

a {
    color: hsl(var(--foreground));
    text-decoration-color: hsl(var(--border));
    text-underline-offset: 0.2em;
    transition: color 0.15s ease;
}

a:hover {
    color: hsl(var(--foreground) / 0.75);
}

code {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.84em;
}

code a { text-decoration: none; }

.text-body-secondary { color: hsl(var(--muted-foreground)) !important; }

::selection {
    background: hsl(var(--foreground) / 0.12);
}

.brand-mark {
    background: var(--cmic-accent);
    color: #241606;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Top navigation bar ------------------------------------------------------- */

.navbar {
    background-color: hsl(var(--background)) !important;
    border-bottom: 1px solid hsl(var(--border));
    min-height: 3.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --bs-navbar-color: hsl(var(--muted-foreground));
    --bs-navbar-hover-color: hsl(var(--foreground));
    --bs-navbar-active-color: hsl(var(--foreground));
    --bs-navbar-brand-color: hsl(var(--foreground));
    --bs-navbar-brand-hover-color: hsl(var(--foreground));
}

.navbar .navbar-brand {
    font-weight: 600;
    font-size: 1rem;
}

.navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar .navbar-toggler {
    border-color: hsl(var(--border));
    padding: 0.25rem 0.5rem;
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* "Sign out" reads as a shadcn outline button on the now-white bar */
.navbar .btn-outline-light {
    --bs-btn-color: hsl(var(--foreground));
    --bs-btn-border-color: hsl(var(--border));
    --bs-btn-bg: hsl(var(--background));
    --bs-btn-hover-bg: hsl(var(--accent));
    --bs-btn-hover-color: hsl(var(--accent-foreground));
    --bs-btn-hover-border-color: hsl(var(--border));
    --bs-btn-active-bg: hsl(var(--accent));
    --bs-btn-active-color: hsl(var(--accent-foreground));
    --bs-btn-active-border-color: hsl(var(--border));
}

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

.sidebar {
    background: hsl(var(--background));
    border-right: 1px solid hsl(var(--border));
    min-height: calc(100vh - 3.5rem);
}

.sidebar-nav .nav-link {
    color: hsl(var(--muted-foreground));
    border-radius: var(--radius-md);
    padding: 0.45rem 0.7rem;
    margin-bottom: 1px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav .nav-link:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.sidebar-nav .nav-link.active {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-weight: 600;
}

.sidebar-nav .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4);
}

.nav-section {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: hsl(var(--muted-foreground));
    margin: 1.1rem 0 0.3rem 0.7rem;
    font-weight: 600;
}

/* Sign-in shell — split brand panel + form --------------------------------- */

body.centered {
    min-height: 100vh;
    background: hsl(var(--muted));
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Brand panel (left) ------------------------------------------------------- */
.auth-aside {
    position: relative;
    flex: 1.05 1 0;
    overflow: hidden;
    display: flex;
    color: #f8fafc;
    background:
        radial-gradient(130% 120% at 15% 0%, #3d2c12 0%, rgba(61, 44, 18, 0) 55%),
        radial-gradient(120% 120% at 100% 100%, #a8600f 0%, rgba(168, 96, 15, 0) 45%),
        #17110a;
}

/* Fine identity lattice — one credential wiring many apps together. */
.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 30%, transparent 78%);
    mask-image: radial-gradient(120% 100% at 30% 20%, #000 30%, transparent 78%);
}

/* Soft brand glow behind the headline. */
.auth-aside::after {
    content: "";
    position: absolute;
    top: -12%;
    left: -8%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(241, 140, 32, 0.5) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    width: 100%;
    max-width: 30rem;
    margin-left: auto;
    padding: 3.5rem;
}

.auth-wordmark {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.auth-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cmic-accent);
    margin: 0 0 1.1rem;
}

.auth-headline {
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #f8fafc;
    margin: 0 0 1rem;
    max-width: 15ch;
}

.auth-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.72);
    margin: 0;
    max-width: 36ch;
}

.auth-aside-foot {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.5);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Form panel (right) ------------------------------------------------------- */
.auth-main {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 24rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07);
}

.auth-brand {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

/* The brand panel already carries the wordmark on the split view. */
@media (min-width: 62rem) {
    .auth-card .auth-brand { display: none; }
}

.auth-footer {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.8rem;
    margin-top: 1.25rem;
}

/* Collapse to a single centred card on narrow screens. */
@media (max-width: 61.99rem) {
    .auth-aside { display: none; }
}

.provider-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.78rem;
    margin: 1.25rem 0;
}

.provider-divider::before,
.provider-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: hsl(var(--border));
}

/* Provider selector — shadcn-style segmented control instead of raw
   Bootstrap tabs, so the sign-in methods read as one pill toggle. */
.auth-card .nav-tabs {
    display: flex;
    width: 100%;
    gap: 0.25rem;
    padding: 0.25rem;
    background: hsl(var(--muted));
    border: none;
    border-radius: var(--radius-lg);
}

.auth-card .nav-tabs .nav-item {
    flex: 1 1 0;
}

.auth-card .nav-tabs .nav-link {
    width: 100%;
    margin: 0;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: hsl(var(--muted-foreground));
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .nav-tabs .nav-link:hover {
    border: none;
    color: hsl(var(--foreground));
    isolation: auto;
}

.auth-card .nav-tabs .nav-link.active {
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.08), 0 1px 1px 0 rgb(0 0 0 / 0.04);
}

.auth-card .nav-tabs .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.45);
}

/* Cards -------------------------------------------------------------------- */

.stat-card,
.table-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}

.stat-card {
    padding: 1.1rem 1.25rem;
    height: 100%;
}

.table-card {
    overflow: hidden;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
    --bs-btn-border-radius: var(--radius-md);
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-font-weight: 500;
    --bs-btn-focus-box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease;
}

.btn-sm {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-font-size: 0.8rem;
    --bs-btn-border-radius: var(--radius-sm);
}

.btn-lg {
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-font-size: 0.95rem;
    --bs-btn-border-radius: var(--radius-lg);
}

.btn-primary {
    /* Hover/active darken the orange (a plain alpha fade would lighten it
       against the white surface, which reads backwards for a press). */
    --bs-btn-bg: hsl(var(--primary));
    --bs-btn-border-color: hsl(var(--primary));
    --bs-btn-color: hsl(var(--primary-foreground));
    --bs-btn-hover-bg: hsl(31 84% 47%);
    --bs-btn-hover-border-color: hsl(31 84% 47%);
    --bs-btn-hover-color: hsl(var(--primary-foreground));
    --bs-btn-active-bg: hsl(31 82% 43%);
    --bs-btn-active-border-color: hsl(31 82% 43%);
    --bs-btn-active-color: hsl(var(--primary-foreground));
    --bs-btn-disabled-bg: hsl(var(--primary) / 0.55);
    --bs-btn-disabled-border-color: hsl(var(--primary) / 0.55);
    --bs-btn-disabled-color: hsl(var(--primary-foreground));
}

/* Outline variants all read as the neutral shadcn "outline" button */
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-dark {
    --bs-btn-color: hsl(var(--foreground));
    --bs-btn-border-color: hsl(var(--border));
    --bs-btn-bg: hsl(var(--background));
    --bs-btn-hover-bg: hsl(var(--accent));
    --bs-btn-hover-color: hsl(var(--accent-foreground));
    --bs-btn-hover-border-color: hsl(var(--border));
    --bs-btn-active-bg: hsl(var(--accent));
    --bs-btn-active-color: hsl(var(--accent-foreground));
    --bs-btn-active-border-color: hsl(var(--border));
    --bs-btn-disabled-color: hsl(var(--muted-foreground));
    --bs-btn-disabled-border-color: hsl(var(--border));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.03);
}

.btn-secondary {
    --bs-btn-bg: hsl(var(--secondary));
    --bs-btn-border-color: hsl(var(--secondary));
    --bs-btn-color: hsl(var(--secondary-foreground));
    --bs-btn-hover-bg: hsl(var(--secondary) / 0.8);
    --bs-btn-hover-border-color: hsl(var(--secondary) / 0.8);
    --bs-btn-hover-color: hsl(var(--secondary-foreground));
    --bs-btn-active-bg: hsl(var(--secondary) / 0.8);
    --bs-btn-active-color: hsl(var(--secondary-foreground));
}

.btn-danger {
    --bs-btn-bg: hsl(var(--destructive));
    --bs-btn-border-color: hsl(var(--destructive));
    --bs-btn-color: hsl(var(--destructive-foreground));
    --bs-btn-hover-bg: hsl(var(--destructive) / 0.9);
    --bs-btn-hover-border-color: hsl(var(--destructive) / 0.9);
    --bs-btn-hover-color: hsl(var(--destructive-foreground));
    --bs-btn-active-bg: hsl(var(--destructive) / 0.9);
    --bs-btn-active-color: hsl(var(--destructive-foreground));
}

.btn-link {
    --bs-btn-color: hsl(var(--foreground));
    --bs-btn-hover-color: hsl(var(--foreground) / 0.75);
    --bs-btn-font-weight: 500;
    text-underline-offset: 0.2em;
}

/* Forms -------------------------------------------------------------------- */

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.4rem;
}

.form-text {
    color: hsl(var(--muted-foreground));
    font-size: 0.8rem;
}

.form-control,
.form-select {
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    border-color: hsl(var(--input));
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    min-height: 2.25rem;
    padding: 0.375rem 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.03);
}

.form-control-sm,
.form-select-sm {
    min-height: 2rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.form-control::placeholder {
    color: hsl(var(--muted-foreground));
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    border-color: hsl(var(--ring));
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35);
}

.form-check-input {
    border-color: hsl(var(--input));
}

.form-check-input:checked {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.form-check-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35);
}

.form-check-label {
    font-size: 0.875rem;
}

.input-group-text {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--input));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Tables ------------------------------------------------------------------- */

.table {
    --bs-table-color: hsl(var(--foreground));
    --bs-table-border-color: hsl(var(--border));
    --bs-table-hover-color: hsl(var(--foreground));
    --bs-table-hover-bg: hsl(var(--muted) / 0.6);
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.65rem 0.75rem;
    border-bottom-color: hsl(var(--border));
}

.table > thead {
    border-color: hsl(var(--border));
}

.table thead th,
.table-card .table thead th {
    background: transparent;
    color: hsl(var(--muted-foreground));
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
    font-weight: 500;
    border-bottom: 1px solid hsl(var(--border));
}

.table-card .table tbody tr:hover > * {
    background: hsl(var(--muted) / 0.5);
}

.table-card .table > :not(caption) > *:last-child > * {
    border-bottom-width: 0;
}

/* Badges ------------------------------------------------------------------- */

.badge {
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0;
    padding: 0.28em 0.6em;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
}

.badge.text-bg-secondary {
    background: hsl(var(--secondary)) !important;
    color: hsl(var(--secondary-foreground)) !important;
    border-color: hsl(var(--border));
}

.badge.text-bg-success {
    background: hsl(var(--success) / 0.12) !important;
    color: hsl(var(--success-fg)) !important;
    border-color: hsl(var(--success) / 0.25);
}

.badge.text-bg-danger {
    background: hsl(var(--destructive) / 0.1) !important;
    color: hsl(var(--destructive) / 0.9) !important;
    border-color: hsl(var(--destructive) / 0.25);
}

.badge.text-bg-warning {
    background: hsl(var(--warning) / 0.15) !important;
    color: hsl(var(--warning-fg)) !important;
    border-color: hsl(var(--warning) / 0.3);
}

.badge.text-bg-info {
    background: hsl(var(--info) / 0.12) !important;
    color: hsl(var(--info-fg)) !important;
    border-color: hsl(var(--info) / 0.25);
}

/* Alerts ------------------------------------------------------------------- */

.alert {
    --bs-alert-border-radius: var(--radius-lg);
    border: 1px solid transparent;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
}

.alert-success {
    --bs-alert-bg: hsl(var(--success) / 0.1);
    --bs-alert-border-color: hsl(var(--success) / 0.3);
    --bs-alert-color: hsl(var(--success-fg));
}

.alert-danger {
    --bs-alert-bg: hsl(var(--destructive) / 0.09);
    --bs-alert-border-color: hsl(var(--destructive) / 0.3);
    --bs-alert-color: hsl(var(--destructive) / 0.95);
}

.alert-warning {
    --bs-alert-bg: hsl(var(--warning) / 0.12);
    --bs-alert-border-color: hsl(var(--warning) / 0.3);
    --bs-alert-color: hsl(var(--warning-fg));
}

.alert-info {
    --bs-alert-bg: hsl(var(--info) / 0.1);
    --bs-alert-border-color: hsl(var(--info) / 0.3);
    --bs-alert-color: hsl(var(--info-fg));
}

/* The validation-summary tag helper always renders its container, even with
   no errors. Hide it while valid so the alert box only appears on failure. */
.validation-summary-valid {
    display: none;
}

/* Pagination --------------------------------------------------------------- */

.pagination {
    --bs-pagination-color: hsl(var(--foreground));
    --bs-pagination-bg: hsl(var(--background));
    --bs-pagination-border-color: hsl(var(--border));
    --bs-pagination-border-radius: var(--radius-md);
    --bs-pagination-hover-color: hsl(var(--accent-foreground));
    --bs-pagination-hover-bg: hsl(var(--accent));
    --bs-pagination-hover-border-color: hsl(var(--border));
    --bs-pagination-focus-color: hsl(var(--foreground));
    --bs-pagination-focus-bg: hsl(var(--accent));
    --bs-pagination-focus-box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35);
    --bs-pagination-active-bg: hsl(var(--primary));
    --bs-pagination-active-border-color: hsl(var(--primary));
    --bs-pagination-active-color: hsl(var(--primary-foreground));
    --bs-pagination-disabled-color: hsl(var(--muted-foreground));
    --bs-pagination-disabled-bg: hsl(var(--background));
    --bs-pagination-disabled-border-color: hsl(var(--border));
}

/* Secrets / preformatted keys ---------------------------------------------- */

code.secret {
    display: block;
    padding: 0.75rem;
    background: hsl(var(--muted));
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius-md);
    word-break: break-all;
    color: hsl(var(--foreground));
}

/* Dashboard sign-in trend chart -------------------------------------------- */

.trend {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 8rem;
}

.trend .trend-day {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    min-width: 0;
}

.trend .bar-success {
    background: hsl(var(--success));
    border-radius: 2px 2px 0 0;
}

.trend .bar-failed {
    background: hsl(var(--destructive));
    border-radius: 2px 2px 0 0;
}

/* Keyboard focus safety net ------------------------------------------------ */

a:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
