/* Opinzo – base styles. Mobile first; no inline styles (CSP: style-src 'self').
 *
 * The look comes from Lendilo: a cool page, white cards, one strong action colour – here violet,
 * with coral kept for the logo. Status is told by colour AND words.
 * Light only. Every text colour passes WCAG AA on the background it sits on. */

/* Figtree (SIL Open Font License, see ../fonts/OFL-Figtree.txt) – served from our own server:
 * no third-party requests, and the CSP allows fonts from 'self' only. */
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/figtree-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;

    --c-page: #f5f5fa;
    --c-bg: #ffffff;
    --c-surface: #f1f0f8;
    --c-surface-soft: #f9f8fc;
    --c-text: #17142c;
    --c-muted: #5b5873;
    --c-subtle: #4c4966;
    --c-border: #e4e3ef;
    --c-border-soft: #efeef6;
    --c-border-button: #d8d6e4;
    --c-border-strong: #8d8aa3;
    --c-brand: #4a2fb0;
    --c-brand-strong: #371f8a;
    --c-brand-soft: #efebfb;
    --c-brand-tint: #e5dff9;
    --c-accent: #ff6f4d;
    --c-on-brand: #ffffff;
    --c-focus: #4a2fb0;
    --c-success: #2a721c;
    --c-success-bg: #e8f5e3;
    --c-warning-border: #e39417;
    --c-warning-bg: #fdf0e1;
    --c-warning-text: #9a4a06;
    --c-danger: #b91c1c;
    --c-danger-bg: #fdeeee;

    /* Status: background, text, dot. */
    --c-ok-bg: #e8f5e3;
    --c-ok: #2a721c;
    --c-ok-dot: #3baa2a;
    --c-out-bg: #e6eefa;
    --c-out: #234c94;
    --c-out-dot: #2f5fb3;
    --c-late-bg: #fdf0e1;
    --c-late: #9a4a06;
    --c-late-dot: #e39417;
    --c-late-bar: #f7b33f;
    --c-booked: #6d28d9;
    --c-booked-bg: #f1eafd;

    --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
    --radius: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 2px rgb(23 20 44 / 0.04);
    --shadow: 0 1px 2px rgb(23 20 44 / 0.05), 0 10px 28px rgb(23 20 44 / 0.10);
    --shadow-button: 0 1px 2px rgb(23 20 44 / 0.05);
    --container: 82.5rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --tap: 44px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.45;
    color: var(--c-text);
    background: var(--c-page);
}

main {
    flex: 1;
}

main:focus {
    outline: none;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--c-brand);
}

a:hover {
    color: var(--c-brand-strong);
}

:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Utilities ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--c-brand);
    color: var(--c-on-brand);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* Honeypot: invisible to people, tempting for bots. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.inline-form {
    display: inline;
    margin: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--tap);
    padding: 0.5rem 1.125rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn svg {
    flex: none;
}

.btn--primary {
    background: var(--c-brand);
    color: var(--c-on-brand);
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.14), 0 1px 2px rgb(23 20 44 / 0.14);
}

.btn--primary:hover,
.btn--primary[aria-current="page"] {
    background: var(--c-brand-strong);
    color: var(--c-on-brand);
}

/* The secondary button: white with a border. */
.btn--ghost {
    border-color: var(--c-border-button);
    background: var(--c-bg);
    color: var(--c-text);
    box-shadow: var(--shadow-button);
}

.btn--ghost:hover {
    border-color: var(--c-border-strong);
    background: var(--c-surface-soft);
    color: var(--c-text);
}

/* A strong second action where green is already taken (e.g. "Add equipment" beside "Lend out"). */
.btn--dark {
    background: var(--c-text);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 2px rgb(23 20 44 / 0.18);
}

.btn--dark:hover {
    background: #000000;
    color: #ffffff;
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    min-height: 68px;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--tap);
    color: var(--c-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

/* 400×92 source shown at 34px high, so it stays sharp on high-density screens. */
.brand__logo {
    display: block;
    width: auto;
    height: 34px;
}

@media (max-width: 30rem) {
    .brand__logo {
        height: 28px;
    }
}

/* ---------- Language switcher ---------- */

.lang-switch {
    position: relative;
}

.lang-switch__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: var(--tap);
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--c-muted);
    cursor: pointer;
    list-style: none;
}

.lang-switch__toggle::-webkit-details-marker {
    display: none;
}

.lang-switch__toggle:hover {
    background: var(--c-surface);
    color: var(--c-text);
}

/* A hairline keeps white-edged flags (Denmark, France…) visible on a white background. */
.lang-switch__flag {
    flex: none;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
    object-fit: cover;
}

.lang-switch__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 50;
    min-width: 12rem;
    margin: 0;
    padding: 0.375rem;
    list-style: none;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.lang-switch__menu a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    padding: 0 0.75rem;
    border-radius: 6px;
    color: var(--c-text);
    text-decoration: none;
}

.lang-switch__menu a:hover {
    background: var(--c-surface);
}

.lang-switch__menu a[aria-current="true"] {
    font-weight: 700;
    color: var(--c-brand);
}

/* ---------- Messages and errors ---------- */

.page-message {
    padding-block: 3rem;
    max-width: 40rem;
}

.page-message__text {
    color: var(--c-muted);
}

.alert {
    margin-block: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
}

.alert--error {
    background: var(--c-danger-bg);
    border-color: var(--c-danger);
}

.alert__title {
    font-size: 1rem;
}

.alert__list {
    margin: 0;
    padding-left: 1.25rem;
}

.debug {
    margin-top: 2rem;
    padding: 1rem;
    overflow: auto;
    font-size: 0.8125rem;
    background: var(--c-surface);
    border-radius: var(--radius-sm);
}

.alert--success {
    background: var(--c-success-bg);
    border-color: var(--c-success);
}

.alert--info {
    background: var(--c-brand-soft);
    border-color: var(--c-brand);
}

/* ---------- More buttons ---------- */

.btn--block {
    width: 100%;
}

.btn--lg {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--sm {
    min-height: 40px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
}

.btn--danger {
    color: var(--c-danger);
    border-color: var(--c-border);
}

.btn--danger:hover {
    background: var(--c-danger-bg);
    border-color: var(--c-danger);
}

.btn--link {
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    color: var(--c-brand);
    font-weight: 500;
    text-decoration: underline;
}

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

.form {
    display: grid;
    gap: 1.125rem;
}

.form--wide {
    max-width: 36rem;
    margin-bottom: 2.5rem;
}

.form--inline {
    grid-template-columns: 1fr;
    align-items: end;
}

@media (min-width: 40rem) {
    .form--inline {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.form__note {
    margin: 1rem 0 0;
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.form__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    margin-top: 0.5rem;
}

/* align-content: start – a field next to a taller one (e.g. due date + shortcuts) keeps its
 * own height instead of stretching its input. */
.field {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.field__label {
    font-size: 0.9375rem;
    font-weight: 700;
}

.field__optional {
    font-weight: 500;
    color: var(--c-muted);
}

.field__input {
    width: 100%;
    min-height: 48px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    color: var(--c-text);
    font: inherit;
}

.field__input::placeholder {
    color: #69728a;
}

/* A search field with a magnifier drawn in front (the icon is an <svg> sibling). */
.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field__icon {
    position: absolute;
    left: 14px;
    color: var(--c-muted);
    pointer-events: none;
}

.search-field .field__input {
    padding-left: 44px;
}

.field__input:disabled {
    background: var(--c-surface);
    color: var(--c-muted);
}

.field__input[aria-invalid="true"] {
    border-color: var(--c-danger);
}

.field__input--code {
    font-size: 1.75rem;
    letter-spacing: 0.3em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.field__help {
    margin: 0;
    color: var(--c-muted);
    font-size: 0.875rem;
}

.field__error {
    margin: 0;
    color: var(--c-danger);
    font-size: 0.9375rem;
    font-weight: 600;
}

.field__static {
    margin: 0;
}

.field--check {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 0.625rem;
}

.field--check input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    accent-color: var(--c-brand);
}

.field--check .field__error {
    grid-column: 1 / -1;
}

/* ---------- Auth cards (login, signup, confirm, invitation) ---------- */

.auth {
    padding-block: 2.5rem;
    max-width: 30rem;
}

.auth__card {
    padding: 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card), 0 14px 36px rgb(23 20 44 / 0.06);
}

@media (min-width: 30rem) {
    .auth__card {
        padding: 2rem;
    }
}

.auth__title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.auth__lead {
    color: var(--c-muted);
}

.auth__switch {
    margin-top: 1.25rem;
    text-align: center;
}

.bullets {
    padding-left: 1.25rem;
}

/* ---------- App pages ---------- */

.page {
    padding-block: 2.5rem 4rem;
}

.page__title {
    font-size: clamp(1.875rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.page__lead {
    color: var(--c-muted);
    max-width: 42rem;
}

.page__eyebrow {
    margin: 0 0 0.375rem;
    color: var(--c-muted);
    font-size: 0.9375rem;
    font-weight: 600;
}

.card {
    margin-block: 1.5rem;
    padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
}

.card--muted {
    background: var(--c-surface-soft);
}

.card__title {
    font-size: 1.125rem;
    font-weight: 700;
}

.card__text {
    color: var(--c-muted);
}

.steps {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.375rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 2rem;
}

.section-head__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.section-head__meta {
    margin: 0;
    color: var(--c-muted);
}

.list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}

.list__item + .list__item {
    border-top: 1px solid var(--c-border-soft);
}

.list__item--pending {
    background: var(--c-surface);
}

.list__main {
    min-width: 0;
}

.list__title {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.list__title a {
    color: var(--c-text);
    text-decoration: none;
}

.list__title a:hover {
    text-decoration: underline;
}

.list__meta {
    margin: 0;
    color: var(--c-muted);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 0.375rem;
    min-height: 26px;
    padding: 0 0.625rem;
    border-radius: 999px;
    background: var(--c-ok-bg);
    color: var(--c-ok);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.badge--muted {
    background: var(--c-surface);
    color: var(--c-subtle);
}

/* Tabs are pills, like the main navigation. */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
}

.tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--tap);
    padding: 0 0.875rem;
    border: 1px solid var(--c-border-button);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.tabs__link:hover {
    border-color: var(--c-border-strong);
    color: var(--c-text);
}

.tabs__link[aria-current="page"] {
    border-color: var(--c-brand);
    background: var(--c-brand);
    color: #ffffff;
    font-weight: 700;
}

/* ---------- App header: navigation, organisation switcher, account menu ---------- */

/* One row on wide screens: logo · organisation | navigation | Lend out · account.
 * Narrower, the navigation drops to a second row and scrolls sideways. */
.site-header__start {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.site-header__divider {
    flex: none;
    width: 1px;
    height: 24px;
    background: var(--c-border);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
}

.org-name,
.org-switch .menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--tap);
    max-width: 16rem;
    padding: 0 0.625rem 0 0.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.org-name__text,
.org-switch .menu__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--c-brand-strong);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.menu {
    position: relative;
    min-width: 0;
}

.menu__toggle {
    display: inline-flex;
    align-items: center;
    max-width: 16rem;
    min-height: var(--tap);
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    overflow: hidden;
    white-space: nowrap;
}

.menu__toggle::-webkit-details-marker {
    display: none;
}

.menu__chevron {
    flex: none;
    color: var(--c-muted);
}

.menu__toggle:hover {
    background: var(--c-surface-soft);
}

.menu__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.375rem);
    z-index: 50;
    min-width: 15rem;
    padding: 0.375rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.menu__panel--right {
    left: auto;
    right: 0;
}

.menu__heading {
    display: grid;
    padding: 0.5rem 0.75rem 0.625rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--c-border-soft);
}

.menu__heading-name {
    font-weight: 700;
}

.menu__heading-meta {
    color: var(--c-muted);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.menu__form {
    margin: 0;
}

.menu__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--c-text);
    font: inherit;
    font-size: 0.9375rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.menu__item:hover {
    background: var(--c-surface);
    color: var(--c-text);
}

.menu__item[aria-current="true"] {
    font-weight: 700;
    color: var(--c-brand-strong);
}

.menu__item--add {
    margin-top: 0.25rem;
    color: var(--c-brand);
    border-top: 1px solid var(--c-border-soft);
    border-radius: 0 0 8px 8px;
}

/* The account button: the admin's initials in a circle. */
.account-menu .menu__toggle {
    justify-content: center;
    width: var(--tap);
    padding: 0;
    border-radius: 999px;
    background: var(--c-brand-tint);
    color: var(--c-brand-strong);
    font-size: 0.875rem;
    font-weight: 800;
}

.account-menu .menu__toggle:hover {
    background: #d6ddf5;
}

.app-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.app-nav__inner {
    display: flex;
    gap: 0.25rem;
}

.app-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--c-subtle);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.app-nav__link:hover {
    background: var(--c-surface-soft);
    color: var(--c-text);
}

.app-nav__link[aria-current="page"] {
    background: var(--c-brand-soft);
    color: var(--c-brand-strong);
    font-weight: 700;
}

@media (max-width: 68rem) {
    .app-nav {
        order: 3;
        flex-basis: 100%;
        margin-inline: -0.5rem;
    }
}

/* ---------- Equipment ---------- */

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.page-head .page__title {
    margin: 0;
}

.breadcrumb {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: var(--c-muted);
    text-decoration: none;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filters__search {
    flex: 1 1 16rem;
}

.filters .field {
    gap: 0;
}

.list-count {
    margin: 0 0 0.5rem;
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.empty {
    padding: 2.5rem 1.5rem;
    border: 1px dashed #c8ceda;
    border-radius: var(--radius);
    background: var(--c-bg);
    color: var(--c-muted);
    text-align: center;
}

.empty__title {
    color: var(--c-text);
}

.empty__title {
    font-size: 1.25rem;
}

.empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pager__status {
    color: var(--c-muted);
}

.page__footer-link {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.facts {
    display: grid;
    gap: 0;
    margin: 0 0 2rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
}

.facts__row {
    display: grid;
    gap: 0.25rem 1rem;
    padding: 0.875rem 1.5rem;
}

.facts__row + .facts__row {
    border-top: 1px solid var(--c-border-soft);
}

@media (min-width: 40rem) {
    .facts__row {
        grid-template-columns: 12rem 1fr;
    }
}

.facts dt {
    color: var(--c-muted);
    font-weight: 600;
}

.facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.field__input--file {
    padding: 0.5rem;
}

.field--narrow {
    max-width: 12rem;
}

.fieldset {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.danger-zone {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.delete-form {
    gap: 0.75rem;
}

/* ---------- Lending ---------- */

.alert--action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.badge--danger {
    background: var(--c-late-bg);
    color: var(--c-late);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat a {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
}

.stat a:hover {
    background: var(--c-surface);
}

.stat__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    color: var(--c-muted);
}

.stat--alert a {
    border-color: var(--c-danger);
    background: var(--c-danger-bg);
}

.stat--alert .stat__value {
    color: var(--c-danger);
}

.filters--wrap {
    align-items: end;
}

/* The lend form */

/* The legend sits on the card edge by default; float it inside like a heading. */

.step {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--c-brand-soft);
    color: var(--c-brand-strong);
    font-size: 0.9375rem;
    font-weight: 800;
}

.form-row {
    display: grid;
    align-items: start;
    gap: 1rem 1.25rem;
}

/* Date inputs have a wide built-in minimum; without this they push out of the card. */
.form-row > * {
    min-width: 0;
}

@media (min-width: 36rem) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
}

.chips[hidden] {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: var(--tap);
    padding: 0 0.875rem;
    border: 1px solid var(--c-border-button);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--c-border-strong);
}

.chip[aria-pressed="true"] {
    border-color: var(--c-brand);
    background: var(--c-brand-soft);
    color: var(--c-brand-strong);
}

/* ---------- People and "My loans" ---------- */

.field--narrow-wide {
    max-width: 20rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 1.5rem;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: 0.875rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.site-footer__inner p {
    margin: 0 0 0.25rem;
}

.site-footer__contact a {
    font-weight: 600;
}

.site-footer__copy {
    margin: 0;
}

/* ---------- Bookings, catalog and self-service ---------- */

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    margin-left: 0.375rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    background: var(--c-danger);
    color: var(--c-bg);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.nav-badge--muted {
    background: var(--c-surface);
    color: var(--c-muted);
    border: 1px solid var(--c-border);
}

.field__help--indent {
    margin: -0.25rem 0 0.75rem 1.875rem;
}

.copy-link {
    margin: 0 0 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    background: var(--c-surface);
    overflow-wrap: anywhere;
}

.log {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid var(--c-border);
}

.log__item {
    display: grid;
    gap: 0.125rem;
    padding: 0.5rem 0 0.5rem 1rem;
}

.log__when {
    color: var(--c-muted);
    font-size: 0.8125rem;
}

.log__note {
    color: var(--c-muted);
    font-size: 0.9375rem;
}

/* ---------- Item form: type choice ---------- */

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

.choice-cards > legend {
    margin-bottom: 0.5rem;
}

.choice-cards .field__error {
    grid-column: 1 / -1;
}

.choice-cards__option {
    position: relative;
}

.choice-cards__option input {
    position: absolute;
    top: 1.05rem;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    accent-color: var(--c-brand);
}

.choice-cards__option label {
    display: grid;
    gap: 0.25rem;
    height: 100%;
    padding: 0.875rem 1rem 0.875rem 2.875rem;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    cursor: pointer;
}

.choice-cards__option input:checked + label {
    border-color: var(--c-brand);
    background: var(--c-brand-soft);
}

.choice-cards__option input:focus-visible + label {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
}

.choice-cards__title {
    font-weight: 700;
}

.choice-cards__help {
    color: var(--c-muted);
    font-size: 0.875rem;
}

/* Only the fields of the chosen type. Without :has (old browsers) both show – still works. */

.choice-cards__option input:disabled + label {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------- QR code and labels ---------- */

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* The code stays black on white in dark mode too – scanners need the contrast. */

.check-list {
    display: grid;
    gap: 0.375rem;
    max-height: 22rem;
    margin: 0.25rem 0 0;
    padding: 0.75rem 1rem;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
}

.check-list .field--check {
    margin: 0;
}

.check-list__meta {
    color: var(--c-muted);
    font-size: 0.875rem;
}

/* The start position and cut lines only apply to label sheets. */

/* ---------- Import, export and data ---------- */

.plain-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.plain-list li + li {
    margin-top: 0.375rem;
}

.data-exports {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.data-exports__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--c-border);
}

.data-exports__links {
    white-space: nowrap;
}

.deleted-org {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.deleted-org p {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 0.75rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th,
.table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}

.table th {
    background: var(--c-surface);
    font-weight: 600;
    white-space: nowrap;
}

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

.table__row--bad td {
    color: var(--c-danger);
}

.table__row--muted td {
    color: var(--c-muted);
}

/* ==========================================================================
   2026 look: shared pieces (thumbs, codes, status pills, panels)
   ========================================================================== */

.page-head--end {
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.page__sub {
    margin: 0.375rem 0 0;
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--tap);
    color: var(--c-subtle);
    font-weight: 600;
    text-decoration: none;
}

.icon-link:hover {
    color: var(--c-text);
}

/* An item's picture, or its first letter. */

/* An identifier / serial number. */
.code {
    display: inline-block;
    padding: 0 0.375rem;
    border: 1px solid #dde1ea;
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    vertical-align: middle;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 28px;
    padding: 0 0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.status__dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.status--ok { background: var(--c-ok-bg); color: var(--c-ok); }
.status--ok .status__dot,
.status__dot--ok { background: var(--c-ok-dot); }
.status--out { background: var(--c-out-bg); color: var(--c-out); }
.status--out .status__dot,
.status__dot--out { background: var(--c-out-dot); }
.status--late { background: var(--c-late-bg); color: var(--c-late); }
.status--late .status__dot,
.status__dot--late { background: var(--c-late-dot); }

.status--muted { background: var(--c-surface); color: var(--c-subtle); }

.filter-chip .status__dot {
    width: 8px;
    height: 8px;
}

.count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    margin-left: 0.375rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--c-border-soft);
    color: var(--c-subtle);
    font-size: 0.8125rem;
    font-weight: 700;
    vertical-align: middle;
}

/* A white card with a header row and a list: the overview's building block. */
.panel {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
}

.panel__head--plain {
    padding: 0;
    border: 0;
}

.panel__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.panel__link {
    font-size: 0.875rem;
    font-weight: 700;
}

.panel__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.panel__note,
.panel__empty p {
    margin: 0;
    padding: 1.25rem 1.5rem;
    color: var(--c-muted);
}

.panel__empty {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
}

.panel__empty .btn {
    margin-left: 1.5rem;
}

/* ==========================================================================
   Overview
   ========================================================================== */

/* ==========================================================================
   Equipment list
   ========================================================================== */

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.25rem 0 1.25rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--tap);
    padding: 0 0.875rem;
    border: 1px solid var(--c-border-button);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--c-border-strong);
    color: var(--c-text);
}

.filter-chip__count {
    color: var(--c-muted);
    font-weight: 600;
}

.filter-chip__count--late {
    color: var(--c-late);
    font-weight: 700;
}

.filter-chip[aria-current="page"] {
    border-color: var(--c-brand);
    background: var(--c-brand);
    color: #ffffff;
    font-weight: 700;
}

.filter-chip[aria-current="page"] .filter-chip__count {
    color: #c9cff0;
}

.table-card {
    margin-bottom: 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface-soft);
    color: var(--c-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 1.5rem;
}

.data-table tbody tr + tr td {
    border-top: 1px solid var(--c-border-soft);
}

.data-table tbody tr:hover td {
    background: var(--c-surface-soft);
}

.row-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.row-cell__main {
    display: grid;
    gap: 0.1875rem;
    min-width: 0;
}

.row-cell__name {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.row-cell__name a {
    color: var(--c-text);
    text-decoration: none;
}

.row-cell__name a:hover {
    text-decoration: underline;
}

.row-cell__meta {
    margin: 0;
    color: var(--c-muted);
    font-size: 0.875rem;
}

.status-cell {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
}

a.person-cell:hover {
    color: var(--c-text);
    text-decoration: underline;
}

.data-table .due {
    justify-items: start;
}

.table-none {
    color: var(--c-muted);
}

/* Narrow screens: every row becomes a small card; the column names come from data-label. */
@media (max-width: 47.99rem) {
    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .data-table,
.data-table tbody,
.data-table tr,
.data-table td {
        display: block;
    }

    .data-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
        padding: 1rem 1.25rem;
    }

    .data-table tbody tr + tr {
        border-top: 1px solid var(--c-border-soft);
    }

    .data-table tbody tr + tr td {
        border-top: 0;
    }

    .data-table td,
.data-table td:first-child {
        padding: 0;
    }

    .data-table td:first-child {
        grid-column: 1 / -1;
    }

    .data-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        color: var(--c-muted);
        font-size: 0.75rem;
        font-weight: 700;
    }

    .data-table tbody tr:hover td {
        background: none;
    }
}

/* ==========================================================================
   Lend out: three steps and a summary beside them
   ========================================================================== */

.chips {
    padding-top: 0.25rem;
}

/* A booking ahead on an item in the lend form: in the search results and on the chosen line. */

/* Images in the item's edit form: each with a "Remove" box, saved with the rest of the form. */

/* ==========================================================================
   Item and category icons (Lucide, our own sprite) and the icon picker
   ========================================================================== */

/* The radio sits under its label: still focusable and announced, the label is the target. */

/* Public catalog and QR page: the icon where there is no photo. */

/* Settings → Subscription */
.price-list {
    display: grid;
    gap: 0;
    margin: 0 0 var(--space-3, 12px);
    padding: 0;
    list-style: none;
}

.price-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 0;
    border-top: 1px solid #e0e5ef;
}

.price-list__label {
    flex: 1 1 200px;
}

/* ------------------------------------------------------------------ Opinzo */

.usage-banner { margin-top: 1rem; }
.usage-banner .alert { margin-bottom: 0; }

.card__subtitle { margin: 1.75rem 0 0.25rem; font-size: 1rem; font-weight: 700; }
.card__title .icon { vertical-align: -3px; margin-right: 0.25rem; color: var(--c-brand); }
.stat--new .stat__value { color: var(--c-brand); }
.stat a { background: var(--c-bg); box-shadow: var(--shadow-card); }

/* Overview */
.dashboard__grid { display: grid; gap: 1.25rem; }
.quick-channel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.875rem 1.5rem; }
.quick-channel + .quick-channel { border-top: 1px solid var(--c-border-soft); }
.quick-channel__main { display: grid; gap: 0.125rem; min-width: 0; }
.quick-channel__name { color: var(--c-text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.quick-channel__name:hover { text-decoration: underline; }
.quick-channel__meta { color: var(--c-muted); font-size: 0.875rem; }
.panel__list > li + li > .entry-row { border-top: 1px solid var(--c-border-soft); }

@media (min-width: 60rem) {
    .dashboard__grid { grid-template-columns: 3fr 2fr; align-items: start; }
}

/* A response in a list */
.entry-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.5rem; color: inherit; text-decoration: none; }
.entry-row:hover { background: var(--c-surface-soft); }
.entry-row__main { display: grid; gap: 0.125rem; min-width: 0; }
.entry-row__title { font-weight: 500; overflow-wrap: anywhere; }
.entry-row--unread { box-shadow: inset 3px 0 0 var(--c-brand); }
.entry-row--unread .entry-row__title { font-weight: 700; }
.entry-row__excerpt { color: var(--c-subtle); font-size: 0.9375rem; overflow-wrap: anywhere; }
.entry-row__meta { color: var(--c-muted); font-size: 0.8125rem; }
.entry-row__side { flex: none; }

.score { display: inline-block; min-width: 2.75rem; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-brand-strong); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.score__of { color: var(--c-muted); font-size: 0.75em; font-weight: 600; }
.score--lg { font-size: 1.25rem; padding: 0.25rem 0.75rem; }
.score--symbol { min-width: 2.25rem; font-weight: 400; line-height: 1.4; }
.field__input--auto { width: auto; max-width: 100%; }

/* Channels */
.data-table__actions { text-align: right; }
.type-cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.type-card { display: grid; gap: 0.375rem; padding: 1.5rem; border: 2px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); color: inherit; text-decoration: none; box-shadow: var(--shadow-card); }
.type-card:hover, .type-card:focus-visible { border-color: var(--c-brand); background: var(--c-brand-soft); color: inherit; }
.type-card__icon { color: var(--c-brand); }
.type-card__title { font-size: 1.25rem; font-weight: 800; }
.type-card__examples { color: var(--c-muted); font-size: 0.875rem; }

@media (min-width: 40rem) {
    .type-cards { grid-template-columns: 1fr 1fr; }
}

.category-line { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.625rem; }
.category-line input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--c-brand); }
.channel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.logo-preview { display: block; max-width: 200px; max-height: 96px; border-radius: var(--radius-sm); }

/* Sharing */
.copy-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.copy-row .field__input { flex: 1 1 16rem; min-width: 0; background: var(--c-surface-soft); }
.field__input--snippet, .code-block { font-family: var(--font-mono); font-size: 0.8125rem; }
.field__input--color { width: 5rem; padding: 0.25rem; }
.code-block { margin: 0.5rem 0 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--c-surface); overflow-x: auto; }
.qr-share { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.qr-share__code { display: block; flex: none; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #ffffff; }
.qr-share__main { flex: 1 1 16rem; min-width: 0; }
.widget-form { margin-top: 1.25rem; }
.widget-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0; }
.widget-preview__button { padding: 0.625rem 1.125rem; border-radius: 999px; background: var(--c-brand); color: #ffffff; font-size: 0.9375rem; font-weight: 600; box-shadow: 0 4px 14px rgb(23 20 44 / 0.2); }
.qr-screen { display: grid; justify-items: center; gap: 0.75rem; padding: 1.5rem 1rem 3rem; text-align: center; }
.qr-screen__title { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.qr-screen__lead { margin: 0; color: var(--c-muted); font-size: 1.25rem; }
.qr-screen__code { display: block; width: min(70vh, 90vw); height: auto; }
.qr-screen__url { margin: 0; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }

/* Results */
.headline { display: grid; gap: 0.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); box-shadow: var(--shadow-card); }
.headline__value { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.headline__of { color: var(--c-muted); font-size: 0.5em; font-weight: 600; letter-spacing: 0; }
.headline__label { color: var(--c-muted); }
.results-grid { display: grid; gap: 1.25rem; align-items: start; }
.results-grid > .card { margin: 0; }
.results-comments { margin-top: 1.25rem; }

@media (min-width: 52rem) {
    .results-grid { grid-template-columns: 1fr 1fr; }
}

.bars { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.bars__row { display: grid; grid-template-columns: minmax(2rem, 9rem) 1fr 2.5rem; align-items: center; gap: 0.75rem; font-size: 0.9375rem; }
.bars__label { color: var(--c-subtle); overflow-wrap: anywhere; }
.bars__track { display: block; border-radius: 4px; background: var(--c-surface); }
.bars__bar { fill: var(--c-brand); }
.bars__value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.columns { position: relative; margin: 0.75rem 0 0; }
.columns__plot { display: block; }
.columns__axis { stroke: var(--c-border); stroke-width: 1; }
.columns__bar { fill: var(--c-brand); }
.columns__hit { fill: transparent; }
.columns__slot:hover .columns__bar { fill: var(--c-brand-strong); }
.columns__slot:hover .columns__hit { fill: var(--c-surface); }
.columns__tick { fill: var(--c-muted); font-size: 12px; }

.comment { padding: 1rem 1.5rem; }
.comment + .comment { border-top: 1px solid var(--c-border-soft); }
.comment__body { margin: 0 0 0.375rem; overflow-wrap: anywhere; }
.comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; color: var(--c-muted); font-size: 0.875rem; }
.comment__meta a { color: inherit; }
.export-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-top: 1.5rem; color: var(--c-muted); font-size: 0.9375rem; }
.prewrap { white-space: pre-wrap; }

/* One response */
.entry-layout { display: grid; gap: 1.25rem; align-items: start; }
.entry-layout .card { margin: 0 0 1.25rem; }
.entry-layout .panel { margin: 0 0 1.25rem; }
.entry-layout__main, .entry-layout__side { min-width: 0; }
.entry__eyebrow { margin: 0 0 0.5rem; color: var(--c-muted); font-size: 0.875rem; }
.entry__eyebrow a { color: inherit; }
.entry__title { margin: 0 0 0.75rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.entry__rating { display: flex; gap: 0.5rem; margin: 0 0 0.75rem; }
.entry__body { margin: 0 0 1.25rem; font-size: 1.0625rem; overflow-wrap: anywhere; }
.message { padding: 1rem 1.5rem; }
.message + .message { border-top: 1px solid var(--c-border-soft); }
.message--note { background: var(--c-surface-soft); }
.message__meta { margin: 0 0 0.375rem; color: var(--c-muted); font-size: 0.875rem; }
.message__body { margin: 0; overflow-wrap: anywhere; }
.side-actions { display: grid; gap: 0.5rem; }
.side-actions__delete summary { list-style: none; cursor: pointer; }
.side-actions__delete summary::-webkit-details-marker { display: none; }
.side-actions__delete[open] summary { margin-bottom: 0.5rem; }

@media (min-width: 56rem) {
    .entry-layout { grid-template-columns: minmax(0, 1fr) 18rem; }
}

/* Start page */
/* The feedback form (also inside the widget) */
.fb { min-height: 100dvh; background: var(--c-page); }
.fb__main { display: grid; justify-items: center; gap: 1rem; padding: 1.25rem 1rem 2rem; }
.fb__card { width: 100%; max-width: 32rem; padding: 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); box-shadow: var(--shadow-card); }
.fb--embed { background: var(--c-bg); }
.fb--embed .fb__main { padding: 0; gap: 0; }
.fb--embed .fb__card { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 1.25rem 1.25rem 0.5rem; }
.fb--embed .fb__title { padding-right: 2.5rem; }
.fb__head { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.fb__logo { display: block; max-width: 180px; max-height: 64px; width: auto; height: auto; }
.fb__title { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.fb__intro { margin: 0 0 1rem; color: var(--c-muted); overflow-wrap: anywhere; }
.fb__foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; width: 100%; max-width: 32rem; color: var(--c-muted); font-size: 0.875rem; }
.fb--embed .fb__foot { max-width: none; padding: 0.5rem 1.25rem 1rem; }
.fb__foot a { color: inherit; }
.fb__brand { margin: 0; }
.fb__lang summary { cursor: pointer; }
.fb__lang-list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.fb__lang-list a[aria-current] { color: var(--c-text); font-weight: 700; }
.fb__message { display: grid; justify-items: center; gap: 0.25rem; padding: 1rem 0; text-align: center; }
.fb__message p { margin: 0 0 0.5rem; }
.fb__message-title { margin: 0.5rem 0 0.25rem; font-size: 1.25rem; font-weight: 800; }
.fb__check { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: var(--c-success-bg); color: var(--c-success); }
.fb__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.fb__unsent { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--c-surface); text-align: left; overflow-wrap: anywhere; }
.fb__categories { margin: 0; padding: 0; border: 0; }

.rating { margin: 0; padding: 0; border: 0; }
.rating__question { margin-bottom: 0.625rem; padding: 0; font-size: 1.0625rem; font-weight: 700; }
.rating__options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.rating__option { position: relative; }
.rating__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rating__option label { display: grid; place-items: center; min-height: 3.25rem; border: 2px solid var(--c-border-button); border-radius: var(--radius-md); background: var(--c-bg); font-size: 1.25rem; font-weight: 800; cursor: pointer; }
.rating__option input:hover + label { border-color: var(--c-brand); }
.rating__option input:checked + label { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.rating__option input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/* Other scales: thumbs (2), smileys (3), 1–10 and 0–10 – two rows on a phone, one when there's room. */
.rating__options--2 { grid-template-columns: repeat(2, 1fr); }
.rating__options--3 { grid-template-columns: repeat(3, 1fr); }
.rating__options--10 { grid-template-columns: repeat(5, 1fr); }
.rating__options--11 { grid-template-columns: repeat(6, 1fr); }
.rating--symbols .rating__option label { min-height: 4rem; font-size: 2rem; font-weight: 400; line-height: 1; }
@media (min-width: 34rem) {
    .rating__options--10 { grid-template-columns: repeat(10, 1fr); gap: 0.375rem; }
    .rating__options--11 { grid-template-columns: repeat(11, 1fr); gap: 0.375rem; }
    .rating__options--10 .rating__option label, .rating__options--11 .rating__option label { font-size: 1.0625rem; }
}
.rating__scale { display: flex; justify-content: space-between; gap: 1rem; margin: 0.375rem 0 0; color: var(--c-muted); font-size: 0.8125rem; }

.chips-radio { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips-radio__option { position: relative; }
.chips-radio__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips-radio__option label { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border: 2px solid var(--c-border-button); border-radius: 999px; background: var(--c-bg); font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.chips-radio__option input:hover + label { border-color: var(--c-brand); }
.chips-radio__option input:checked + label { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-strong); }
.chips-radio__option input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ---------- The public website ---------- */

.site-nav .app-nav__link {
    color: var(--c-text);
}

/* Narrow screens: returning admins need the login, and signing up is right below in the hero. */
.site-header__signup {
    display: none;
}

@media (min-width: 40rem) {
    .site-header__signup {
        display: inline-flex;
    }
}

.site-hero {
    padding-block: 3rem 3.5rem;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.site-hero--plain {
    padding-block: 3rem 2.5rem;
}

.site-hero__inner {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 60rem) {
    .site-hero__inner {
        grid-template-columns: 1.05fr 1fr;
        gap: 4rem;
    }

    .site-hero {
        padding-block: 5rem;
    }

    .site-hero--plain {
        padding-block: 4rem 3rem;
    }
}

.site-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.site-hero__lead {
    margin: 0;
    color: var(--c-muted);
    font-size: 1.1875rem;
    line-height: 1.5;
}

.site-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0.875rem;
}

.site-hero__note {
    margin: 0;
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.site-mock {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow);
}

.site-mock__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--c-surface-soft);
    border-bottom: 1px solid var(--c-border);
}

.site-mock__title {
    font-weight: 700;
}

.site-mock__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--c-brand);
    color: var(--c-on-brand);
    font-size: 0.875rem;
    font-weight: 600;
}

.site-mock__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8125rem 1.125rem;
}

.site-mock__row + .site-mock__row {
    border-top: 1px solid var(--c-border-soft);
}

.site-mock__thumb,
.site-card__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--c-brand-soft);
    color: var(--c-brand);
}

.site-mock__text {
    display: grid;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.site-mock__text strong,
.site-mock__text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-mock__text small {
    color: var(--c-muted);
    font-size: 0.8125rem;
}

.site-section {
    padding-block: 3.5rem;
}

.site-section--tight {
    padding-block: 2.5rem 3.5rem;
}

.site-section--white {
    background: var(--c-bg);
    border-block: 1px solid var(--c-border);
}

.site-section__title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.625rem, 4vw, 2.125rem);
    letter-spacing: -0.015em;
}

.site-section__lead {
    color: var(--c-muted);
    font-size: 1.125rem;
}

.site-section__more {
    margin: 1.5rem 0 0;
    font-weight: 600;
}

.site-narrow {
    max-width: 48rem;
}

.site-center {
    text-align: center;
}

.site-steps,
.site-grid,
.site-plans {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .site-steps,
    .site-grid--three,
    .site-plans {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 60rem) {
    .site-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-steps__item,
.site-card,
.site-plan {
    padding: 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
}

.site-steps__item p,
.site-card p {
    margin: 0;
    color: var(--c-muted);
}

.site-steps__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.875rem;
    border-radius: 50%;
    background: var(--c-brand);
    color: var(--c-on-brand);
    font-weight: 700;
}

.site-card__icon {
    margin-bottom: 0.875rem;
}

.site-card__title {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
}

.site-faq {
    border-bottom: 1px solid var(--c-border);
}

.site-faq__q {
    padding-block: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.site-faq__a {
    margin: 0 0 1.125rem;
    color: var(--c-muted);
}

.site-cta {
    padding-block: 3.5rem;
    background: var(--c-brand);
    color: var(--c-on-brand);
    text-align: center;
}

.site-cta__title {
    margin: 0 0 0.5rem;
    color: inherit;
    font-size: clamp(1.625rem, 4vw, 2.125rem);
}

.site-cta__text {
    margin: 0 0 1.5rem;
    color: inherit;
    opacity: 0.9;
}

.site-cta__btn {
    background: var(--c-bg);
    color: var(--c-brand);
}

.site-cta__btn:hover {
    background: var(--c-brand-soft);
    color: var(--c-brand-strong);
}

.site-features {
    display: grid;
    gap: 1rem;
    max-width: 52rem;
}

.site-feature {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow-card);
}

@media (min-width: 40rem) {
    .site-feature {
        grid-template-columns: auto 1fr;
        gap: 1.25rem;
    }
}

.site-feature .site-card__icon {
    margin: 0;
}

.site-feature__title {
    margin: 0 0 0.375rem;
    font-size: 1.3125rem;
}

.site-feature p {
    margin: 0;
    color: var(--c-muted);
}

.site-checks {
    display: grid;
    gap: 0.375rem;
    margin: 0.875rem 0;
    padding: 0;
    list-style: none;
}

.site-checks li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.site-checks svg {
    flex: none;
    margin-top: 0.25rem;
    color: var(--c-success);
}

.site-feature__more {
    font-weight: 600;
}

.site-plan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-plan--main {
    border: 2px solid var(--c-brand);
}

.site-plan__name {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.site-plan__price {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-plan__sub {
    margin: 0 0 0.875rem;
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.site-plan__text {
    flex: 1;
    margin: 0 0 1.25rem;
}

.site-plans__note {
    margin: 1.25rem 0 0;
    color: var(--c-muted);
    font-size: 0.9375rem;
    text-align: center;
}

.site-table-wrap {
    overflow-x: auto;
}

.site-table {
    width: 100%;
    border-collapse: collapse;
}

.site-table th,
.site-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
}

.site-table tbody th {
    font-weight: 500;
    text-align: left;
}

.site-table svg {
    color: var(--c-success);
    vertical-align: middle;
}

.site-search {
    margin-top: 1.5rem;
}

.site-guides {
    display: grid;
    gap: 2rem;
}

@media (min-width: 48rem) {
    .site-guides {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

.site-guides__title {
    margin: 0 0 0.75rem;
    font-size: 1.1875rem;
}

.site-guides__list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-guide-link {
    display: grid;
    gap: 0.125rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-bg);
    color: var(--c-text);
    text-decoration: none;
}

.site-guide-link:hover {
    border-color: var(--c-brand);
}

.site-guide-link strong {
    color: var(--c-brand);
}

.site-guide-link span {
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.site-guides__empty {
    color: var(--c-muted);
}

.guide h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.25rem;
}

.guide ol,
.guide ul {
    padding-left: 1.375rem;
}

.guide li + li {
    margin-top: 0.5rem;
}

.guide__tip {
    padding: 0.875rem 1.125rem;
    border-left: 4px solid var(--c-brand);
    border-radius: var(--radius-sm);
    background: var(--c-brand-soft);
}

.guide__related-title {
    margin: 2.5rem 0 0.75rem;
    font-size: 1.125rem;
}

.site-footer__heading {
    margin: 0 0 0.25rem;
    color: var(--c-text);
    font-weight: 700;
}

.site-footer__links {
    display: grid;
    gap: 0.25rem;
    align-content: start;
}

.site-footer__links--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.site-footer__links a {
    color: inherit;
}

.site-footer__copy {
    flex-basis: 100%;
}

.page--narrow {
    max-width: 46rem;
}

.legal h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.1875rem;
}

.legal li + li {
    margin-top: 0.375rem;
}

.legal__updated {
    margin-top: -0.75rem;
    color: var(--c-muted);
    font-size: 0.9375rem;
}

.legal__company {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--c-brand);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
}

.legal__table-wrap {
    overflow-x: auto;
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal__table th,
.legal__table td {
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}

.legal__rule {
    margin: 2.5rem 0 1rem;
    border: 0;
    border-top: 1px solid var(--c-border);
}

.legal__foot {
    color: var(--c-muted);
}

/* The website's header on a phone: logo, flag and login on one row. The language name stays for screen readers. */
@media (max-width: 30rem) {
    .site-nav ~ .site-header__actions .lang-switch__toggle > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* Longer words for "log in" (fr, es) must still fit beside the logo on a phone. */
@media (max-width: 30rem) {
    .site-nav ~ .site-header__actions {
        gap: 0.25rem;
    }

    .site-nav ~ .site-header__actions .btn {
        padding-inline: 0.625rem;
        font-size: 0.875rem;
    }
}

/* ---------- The public website: Opinzo's additions ---------- */

.site-hero__eyebrow { margin: 0 0 0.75rem; color: var(--c-brand); font-weight: 800; }
.site-section__note { margin: 1rem 0 0; color: var(--c-muted); font-size: 0.9375rem; }
.site-card .site-card__more { margin-top: 0.875rem; font-weight: 600; }
.site-card--link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.site-card--link:hover, .site-card--link:focus-visible { border-color: var(--c-brand); }
.site-card--link .site-card__title { color: var(--c-brand); font-weight: 700; }
.site-card__text { color: var(--c-muted); }
.site-grid--two { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
    .site-grid--two { grid-template-columns: repeat(2, 1fr); }
    .site-plans--two { grid-template-columns: repeat(2, minmax(0, 22rem)); justify-content: center; }
}
.site-faq__group { margin: 2rem 0 0.25rem; font-size: 1.25rem; }
.site-faq__group:first-child { margin-top: 0; }
.site-feature__label, .site-feature .site-feature__label { margin: 1rem 0 0.25rem; color: var(--c-text); font-weight: 600; }
.site-feature .code-block { white-space: pre-wrap; word-break: break-all; }

/* Text beside a picture: stacked on a phone, side by side when there's room. */
.site-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) {
    .site-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.site-list, .site-numbered { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.site-list li, .site-numbered li { display: flex; gap: 0.875rem; align-items: flex-start; }
.site-list .site-card__icon { margin: 0; }
.site-numbered .site-steps__n { flex: none; margin: 0; }
.site-numbered li > span:last-child { padding-top: 0.25rem; }
.site-split .code-block { white-space: pre-wrap; word-break: break-all; }

.site-mock__count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font-size: 0.8125rem; font-weight: 700; }

/* The feedback form, drawn for the website. */
.site-form-mock { width: 100%; max-width: 24rem; justify-self: center; padding: 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); box-shadow: var(--shadow); }
.site-form-mock__name { margin: 0 0 1rem; color: var(--c-muted); font-size: 0.875rem; font-weight: 600; }
.site-form-mock__q { margin: 0 0 0.625rem; font-size: 1.0625rem; font-weight: 700; }
.site-form-mock__options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.site-form-mock__option { display: grid; place-items: center; min-height: 2.75rem; border: 2px solid var(--c-border-button); border-radius: var(--radius-md); font-size: 1.125rem; font-weight: 800; }
.site-form-mock__option--on { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.site-form-mock__comment { margin: 1rem 0; padding: 0.75rem; min-height: 4.5rem; border: 1px solid var(--c-border-button); border-radius: var(--radius-sm); color: var(--c-text); }
.site-form-mock__send { display: block; padding: 0.75rem; border-radius: var(--radius-sm); background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; text-align: center; }
.site-form-mock__brand { margin: 1rem 0 0; color: var(--c-muted); font-size: 0.8125rem; text-align: center; }
