/*
 * Cortex9 App — layout and shared components.
 * Values come from tokens.css only (no colour literals here; tools/css-lint enforces it).
 * Class names: c9-<block>__<element>--<modifier>.
 */

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: var(--fs-14);
    line-height: var(--lh-body);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--ink);
    margin: 0;
    line-height: var(--lh-tight);
}

a {
    color: var(--action-text);
}

a:hover {
    color: var(--action-hover);
}

code,
kbd,
samp {
    font-family: var(--font-mono);
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* The browser's placeholder grey is 3.69:1 on a dark input (screen sweep 2, 07/11); --ink-3 is >= 4.5:1 in both themes. */
::placeholder {
    color: var(--ink-3);
    opacity: 1;
}

/* FocusOnNavigate moves focus to the page h1 (tabindex=-1) for screen readers; it is not a control,
   so it gets no ring. */
[tabindex="-1"]:focus {
    outline: none;
}

.c9-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

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

/* ── Boot splash (index.html, before Blazor starts) ───────────────────── */

.c9-boot {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-12);
}

.c9-boot__mark {
    width: 48px;
    height: 48px;
}

.c9-boot__text {
    font-family: var(--font-brand);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-19);
    color: var(--ink-2);
}

/* The download's real progress (Blazor sets the two variables while it loads). */
.c9-boot__bar {
    display: block;
    width: min(240px, 60vw);
    height: 4px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--line);
}

.c9-boot__fill {
    display: block;
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    border-radius: inherit;
    background: var(--action);
    transition: width 0.2s ease-out;
}

.c9-boot__pct {
    font-size: var(--fs-12);
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.c9-boot__pct::after {
    content: var(--blazor-load-percentage-text, "");
}

/* ── Shell ────────────────────────────────────────────────────────────── */

.c9-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* The page column: the sticky top bar over the main column (John, 31/10). */
.c9-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.c9-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--header-h);
    padding: 0 var(--gap-24);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

/* The part of the sidebar under the switcher: on a wide screen it scrolls on its own (John, 31/10); the logo and the
   switcher above it stay. A phone's drawer scrolls as one, as before. */
.c9-sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-18);
}

@media (min-width: 901px) {
    .c9-sidebar {
        overflow: hidden;
    }

    .c9-sidebar__scroll {
        overflow-y: auto;
        /* Room for the focus ring and the scrollbar at the edges. */
        margin: 0 calc(-1 * var(--gap-6));
        padding: 0 var(--gap-6) var(--gap-6);
    }

    /* A thin bar on a wide screen (John, 31/10): compact controls, still sticky; touch sizes stay on a phone. */
    .c9-topbar {
        min-height: 52px;
        padding: 0 var(--gap-20);
    }

    .c9-topbar .c9-segmented__option {
        min-height: 32px;
        padding: 0 var(--gap-12);
    }

    .c9-topbar .c9-icon-button {
        min-width: 34px;
        min-height: 34px;
    }

    .c9-topbar .c9-user__chip {
        min-height: 36px;
        padding: 2px var(--gap-12) 2px 2px;
    }

    .c9-topbar .c9-user__initials {
        width: 28px;
        height: 28px;
        font-size: var(--fs-12);
    }
}

/* The menu button and the logo are the phone's: on a wide screen the sidebar shows both. */
.c9-topbar .c9-topbar__menu,
.c9-topbar .c9-topbar__logo {
    display: none;
}

/* The light / dark switch in the bar (the icon button's margin-left:auto is for the old brand row). */
.c9-topbar .c9-theme-toggle {
    margin-left: 0;
}

/* Each language named in itself; on a phone its code. */
.c9-user__lang-short {
    display: none;
}

.c9-topbar__end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--gap-12);
    min-width: 0;
}

/* At 375 px the bar's end (language, theme, user) ran 21 px past the screen, so every page scrolled sideways
   (screen sweep 07/11). Under 420 px the logo keeps its mark and drops the word; the drawer still shows both. */
@media (max-width: 420px) {
    .c9-topbar .c9-wordmark {
        display: none;
    }
}

.c9-sidebar {
    flex: 0 0 var(--nav-w);
    width: var(--nav-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: var(--gap-20) var(--gap-14);
    display: flex;
    flex-direction: column;
    gap: var(--gap-18);
    /* The nav scrolls on its own; the page scrolls only for the main column. */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.c9-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--pad-page);
    display: flex;
    flex-direction: column;
    gap: var(--gap-24);
}

.c9-main__inner {
    width: 100%;
    max-width: var(--content-max);
    display: flex;
    flex-direction: column;
    gap: var(--gap-24);
}

.c9-scrim {
    display: none;
}

/* ── Brand row ────────────────────────────────────────────────────────── */

.c9-brand {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    padding: 0 var(--gap-8);
}

.c9-logo {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.c9-logo__stop-from {
    stop-color: var(--brand-from);
}

.c9-logo__stop-to {
    stop-color: var(--brand-to);
}

.c9-logo__line {
    fill: none;
    stroke: var(--logo-line);
    stroke-width: 4;
    stroke-linecap: round;
}

.c9-logo__tiles {
    fill: url(#c9-logo-gradient);
}

.c9-wordmark {
    font-family: var(--font-brand);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-19);
    color: var(--ink);
}

.c9-wordmark__nine {
    color: var(--brand);
}

/* On the brand gradient (login hero): the mark and the wordmark in white. */
.c9-logo--on-brand {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
}

.c9-logo--on-brand .c9-logo__tiles {
    fill: var(--on-brand);
}

.c9-logo--on-brand .c9-logo__line {
    stroke: var(--on-brand-soft);
}

.c9-wordmark--on-brand,
.c9-wordmark--on-brand .c9-wordmark__nine {
    color: var(--on-brand);
    font-size: var(--fs-28);
}

.c9-icon-button {
    flex: 0 0 auto;
    min-width: var(--touch);
    min-height: var(--touch);
    padding: 0;
    margin-left: auto;
    border-radius: var(--radius-10);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-icon-button:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.c9-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Widget card (the switcher's slot) ────────────────────────────────── */

.c9-widget-card {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    width: 100%;
    min-height: var(--touch);
    padding: var(--gap-10);
    border-radius: var(--radius-12);
    border: 1px solid var(--line);
    background: var(--surface-2);
    font: inherit;
    text-align: left;
    color: var(--ink);
}

.c9-widget-card__avatar {
    flex: 0 0 36px;
    height: 36px;
    border-radius: var(--radius-10);
    background: var(--brand-soft);
    color: var(--brand);
    font-family: var(--font-heading);
    font-weight: var(--fw-heavy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-widget-card__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.c9-widget-card__name {
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-widget-card__business {
    font-size: var(--fs-12);
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c9-widget-card--button {
    cursor: pointer;
}

.c9-widget-card--button:hover {
    border-color: var(--line-strong);
}

/* ── Widget switcher ──────────────────────────────────────────────────── */

.c9-switcher {
    position: relative;
}

/* The open list: an optional search box over the options. */
.c9-switcher__panel {
    position: absolute;
    top: calc(100% + var(--gap-6));
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    padding: var(--gap-6);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}

.c9-switcher__search {
    width: 100%;
}

.c9-switcher__list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 50vh;
    overflow-y: auto;
}

.c9-switcher__empty {
    margin: 0;
    padding: var(--gap-8) var(--gap-10);
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-switcher__option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: var(--touch);
    padding: var(--gap-6) var(--gap-10);
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-switcher__option:hover {
    background: var(--surface-2);
}

.c9-switcher__option--current {
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-switcher__name {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

.c9-switcher__business {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* ── Navigation ───────────────────────────────────────────────────────── */

.c9-nav {
    display: flex;
    flex-direction: column;
    gap: var(--gap-18);
}

.c9-nav__group {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-nav__title {
    padding: 0 var(--gap-12) var(--gap-6);
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

.c9-nav__link {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--nav-link-h);
    padding: 0 var(--gap-12);
    border-radius: var(--radius-8);
    text-decoration: none;
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.c9-nav__link:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.c9-nav__link--active,
.c9-nav__link--active:hover {
    background: var(--action-soft);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
}

.c9-nav__link--off {
    color: var(--ink-3);
}

.c9-nav__label {
    flex: 1;
    min-width: 0;
}

.c9-nav__badge {
    min-width: var(--badge-h);
    height: var(--badge-h);
    padding: 0 var(--gap-6);
    border-radius: var(--radius-pill);
    background: var(--action);
    color: var(--on-action);
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-nav__count {
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--warn);
}

/* On the active link's tint --warn is 4.46:1 in light (screen sweep 2, 07/11). */
.c9-nav__link--active .c9-nav__count {
    color: var(--warn-strong);
}

.c9-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--action);
}

.c9-nav__off {
    font-size: var(--fs-12);
}

/* KNOWLEDGE-SPLIT: Γνώση's five children, indented under it on a hairline, each with its count. */
.c9-nav__children {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    margin-left: var(--gap-20);
    padding-left: var(--gap-8);
    border-left: 1px solid var(--line);
}

.c9-nav__link--child {
    min-height: var(--touch);
    font-size: var(--fs-13);
}

.c9-nav__num {
    font-size: var(--fs-12);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.c9-nav__num--zero {
    color: var(--ink-3);
}

.c9-nav__footer {
    margin-top: auto;
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

/* ── User menu (the top bar's right side) ─────────────────────────────── */

.c9-user {
    position: relative;
    min-width: 0;
}

/* The UI language (Ελληνικά / English), left of the signed-in user. */
.c9-user__lang {
    font-size: var(--fs-12);
}

.c9-user__chip {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--touch);
    max-width: 320px;
    padding: var(--gap-4) var(--gap-14) var(--gap-4) var(--gap-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.c9-user__chip:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.c9-user__initials {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--action-soft);
    color: var(--action-text);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.c9-user__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
    line-height: 1.25;
}

.c9-user__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

.c9-user__role {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* Clicking anywhere else closes the menu. */
.c9-user__away {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: transparent;
    cursor: default;
}

.c9-user__menu {
    position: absolute;
    right: 0;
    top: calc(100% + var(--gap-6));
    z-index: 26;
    min-width: 200px;
    padding: var(--gap-6);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}

.c9-user__item {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    width: 100%;
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-user__item:hover,
.c9-user__item:focus-visible {
    background: var(--surface-2);
}

.c9-text-button {
    min-height: var(--touch);
    padding: 0 var(--gap-10);
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--action-text);
    font: inherit;
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-text-button:hover {
    background: var(--action-soft);
    color: var(--action-hover);
}

/* ── Page header ──────────────────────────────────────────────────────── */

.c9-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-16);
    align-items: flex-end;
    justify-content: space-between;
}

.c9-page-header__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    min-width: 0;
}

.c9-page-header__title {
    font-size: var(--fs-30);
    font-weight: var(--fw-heavy);
    letter-spacing: -0.02em;
}

.c9-page-header__lead {
    font-size: var(--fs-15);
    color: var(--ink-2);
}

.c9-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10);
    align-items: center;
}

/* ── Card and section ─────────────────────────────────────────────────── */

.c9-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    padding: var(--pad-card);
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

.c9-card__title {
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
}

.c9-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-section__title {
    font-size: var(--fs-15);
    font-weight: var(--fw-bold);
}

.c9-section__lead {
    margin: 0;
    color: var(--ink-2);
}

/* ── Status chip ──────────────────────────────────────────────────────── */

.c9-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    padding: var(--gap-4) var(--gap-10);
    border-radius: var(--radius-pill);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

.c9-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.c9-chip--on {
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-chip--off {
    background: var(--surface-2);
    color: var(--ink-3);
}

.c9-chip--warning {
    background: var(--warn-soft);
    color: var(--warn-strong);
    border: 1px solid var(--warn-line);
}

/* ── Toggle ───────────────────────────────────────────────────────────── */

.c9-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-12);
    min-height: var(--touch);
    padding: 0 var(--gap-4);
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.c9-toggle__track {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
}

.c9-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface);
}

.c9-toggle--on .c9-toggle__track {
    background: var(--dx-primary);
}

.c9-toggle--on .c9-toggle__thumb {
    left: 23px;
}

.c9-toggle:disabled {
    cursor: not-allowed;
    color: var(--ink-3);
}

/* ── Empty state ──────────────────────────────────────────────────────── */

.c9-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-8);
    padding: var(--gap-24) 0;
}

.c9-empty__title {
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
}

.c9-empty__text {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--fs-15);
}

/* ── Buttons and links that act as buttons ────────────────────────────── */

.c9-button {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-8);
    min-height: var(--touch);
    padding: 0 var(--gap-16);
    border-radius: var(--radius-10);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    cursor: pointer;
}

.c9-button:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.c9-button--primary {
    background: var(--action);
    border-color: var(--action);
    color: var(--on-action);
}

.c9-button--primary:hover {
    background: var(--action-hover);
    border-color: var(--action-hover);
    color: var(--surface);
}

.c9-button--block {
    width: 100%;
    justify-content: center;
}

.c9-button:disabled {
    cursor: progress;
    opacity: 0.7;
}

/* ── Forms ────────────────────────────────────────────────────────────── */

.c9-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-16);
}

.c9-form__error {
    margin: 0;
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-10);
    background: var(--warn-soft);
    color: var(--warn-strong);
    font-size: var(--fs-14);
}

.c9-field {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-field__label {
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink-2);
}

.c9-field__error {
    font-size: var(--fs-13);
    color: var(--warn-strong);
}

/* Every text field and textarea fills its card (John, 06/11: the old 760 px cap left half a 1200 px card empty).
   A form that should stay narrow caps its CARD (.c9-account, .c9-nt keep --field-max), never the field.
   Selects keep the cap: a 1200 px dropdown of short options reads as broken. */
.c9-select {
    max-width: var(--field-max);
}

.c9-input {
    width: 100%;
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.c9-input:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 0;
    border-color: var(--focus-ring);
}

.c9-input[aria-invalid="true"] {
    border-color: var(--warn);
}

/* ── Sign-in layout ───────────────────────────────────────────────────── */

.c9-auth {
    min-height: 100vh;
    display: flex;
    background: var(--surface);
}

.c9-auth__hero {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: var(--gap-48);
    overflow: hidden;
    background: var(--brand-gradient);
    color: var(--on-brand);
}

.c9-auth__scrim {
    position: absolute;
    inset: 0;
    background: var(--brand-scrim);
    pointer-events: none;
}

.c9-auth__hero-inner {
    position: relative;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-16);
}

.c9-auth__brand {
    display: flex;
    align-items: center;
    gap: var(--gap-12);
    margin-bottom: var(--gap-24);
}

.c9-auth__tagline {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-30);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-tight);
    color: var(--on-brand);
}

.c9-auth__sub {
    margin: 0;
    font-size: var(--fs-17);
    color: var(--on-brand-soft);
}

.c9-auth__panel {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-48) var(--gap-40);
    background: var(--surface);
}

.c9-auth__card {
    width: 100%;
    max-width: 380px;
}

.c9-auth__title {
    margin: 0 0 var(--gap-8);
    font-family: var(--font-heading);
    font-size: var(--fs-28);
    font-weight: var(--fw-heavy);
    color: var(--ink);
}

.c9-auth__lead {
    margin: 0 0 var(--gap-24);
    font-size: var(--fs-15);
    color: var(--ink-2);
}

/* ── Overview (Blazor B1, the canvas Overview board) ──────────────────── */

.c9-chip--brand {
    background: var(--brand-soft);
    color: var(--brand);
}

.c9-link {
    color: var(--action-text);
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

.c9-button--small {
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    font-size: var(--fs-13);
    color: var(--action-text);
}

/* A small primary keeps the primary's text colour (the small one's own is for an outline button). */
.c9-button--small.c9-button--primary {
    color: var(--on-action);
}

.c9-ov-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-16);
    align-items: flex-end;
    justify-content: space-between;
}

.c9-ov-header__title-block {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    min-width: 0;
}

.c9-ov-header__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

.c9-ov-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

/* The period switch: a pill group, the chosen option inked (canvas). */
.c9-segmented {
    display: inline-flex;
    gap: var(--gap-4);
    padding: var(--gap-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-segmented__option {
    min-height: var(--touch);
    padding: 0 var(--gap-14);
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-14);
    cursor: pointer;
}

.c9-segmented__option--on {
    background: var(--ink);
    color: var(--surface);
    font-weight: var(--fw-semibold);
}

.c9-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--gap-14);
}

.c9-kpi {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    padding: var(--gap-18) var(--gap-20);
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
}

.c9-kpi__label {
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink-2);
}

.c9-kpi__value {
    font-family: var(--font-heading);
    font-size: var(--fs-32);
    font-weight: var(--fw-heavy);
    color: var(--ink);
}

.c9-kpi__value--brand {
    color: var(--brand);
}

.c9-kpi__value--none {
    color: var(--ink-3);
}

.c9-kpi__sub {
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-3);
}

.c9-kpi__alert {
    color: var(--warn);
    font-weight: var(--fw-semibold);
}

.c9-ov-body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-24);
    transition: opacity 0.15s ease;
}

/* Another period is loading: the current numbers stay, a little dimmed. */
.c9-ov-body[aria-busy="true"] {
    opacity: 0.6;
}

.c9-ov-hint {
    margin: 0;
    padding: var(--gap-12) var(--gap-16);
    border-radius: var(--radius-12);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--fs-14);
}

/* The lower cards: a column of rows (as before) up to a wide screen; see the wide breakpoint below. */
.c9-ov-lower {
    display: flex;
    flex-direction: column;
    gap: var(--gap-24);
}

.c9-ov-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-20);
    align-items: stretch;
}

.c9-ov-row > .c9-data-card {
    flex: 2 1 320px;
    min-width: 0;
}

.c9-ov-row > .c9-data-card--wide {
    flex: 3 1 420px;
}

/* A card that loads its own data. */
.c9-data-card {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-data-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--gap-12);
    margin-bottom: var(--gap-6);
}

.c9-data-card__aside {
    display: flex;
    align-items: baseline;
    gap: var(--gap-12);
}

.c9-data-card__aside-text {
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-data-card__error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-12);
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.c9-data-card__empty {
    margin: 0;
    padding: var(--gap-12) 0;
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.c9-data-card__note {
    margin: var(--gap-8) 0 0;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-skeleton {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    padding: var(--gap-4) 0;
}

.c9-skeleton__line {
    display: block;
    height: 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    animation: c9-pulse 1.4s ease-in-out infinite;
}

.c9-skeleton__line--short {
    width: 45%;
}

.c9-skeleton__line--tall {
    height: 28px;
    width: 35%;
}

@keyframes c9-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* Overview journey (OVERVIEW-PROFILE): the steps the server's profile names, as a wrapping grid of tiles. Each number
   with an Inbox filter is a link; the bar is the c9-meter <progress>, so its width needs no inline style. */
.c9-journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-16);
}

.c9-journey__tile {
    min-width: 0;
    min-height: var(--touch);
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    padding: var(--gap-18) var(--gap-20);
    border: 1px solid transparent;
    border-radius: var(--radius-12);
    background: var(--surface-2);
    color: var(--ink);
    text-decoration: none;
}

.c9-journey__tile--link:hover {
    border-color: var(--line-strong);
}

.c9-journey__tile--action {
    background: var(--action-soft);
}

.c9-journey__tile--brand {
    background: var(--brand-soft);
}

.c9-journey__tile--warn {
    background: var(--warn-soft);
    border-color: var(--warn-line);
}

.c9-journey__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--gap-8);
}

.c9-journey__label {
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-journey__pct {
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
    color: var(--ink-2);
}

.c9-journey__value {
    font-family: var(--font-heading);
    font-size: var(--fs-28);
    font-weight: var(--fw-heavy);
    color: var(--ink);
}

.c9-journey__tile--action .c9-journey__label,
.c9-journey__tile--action .c9-journey__pct,
.c9-journey__tile--action .c9-journey__value {
    color: var(--action-text);
}

.c9-journey__tile--brand .c9-journey__label,
.c9-journey__tile--brand .c9-journey__pct,
.c9-journey__tile--brand .c9-journey__value {
    color: var(--brand);
}

.c9-journey__tile--warn .c9-journey__label,
.c9-journey__tile--warn .c9-journey__pct,
.c9-journey__tile--warn .c9-journey__value,
.c9-journey__tile--warn .c9-journey__hint {
    color: var(--warn-strong);
}

.c9-journey__bar {
    height: 6px;
}

.c9-journey__hint {
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-journey__aside {
    font-size: var(--fs-13);
    color: var(--ink-2);
}

/* OVERVIEW-BY-GOAL §5.3 — the day table's «Δεν ήρθε» toggle, in the corner of an ended appointment's cell (the cell is
   already position: relative; the toggle sits above the item button that fills it). */
.c9-cal__noshow {
    position: absolute;
    z-index: 1;
    right: var(--gap-6);
    bottom: var(--gap-6);
    min-height: var(--badge-h);
    padding: 0 var(--gap-8);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-11);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-cal__noshow:hover {
    border-color: var(--warn);
    color: var(--warn-strong);
}

.c9-cal__noshow--on {
    border-color: var(--warn-line);
    background: var(--warn-soft);
    color: var(--warn-strong);
}

/* OVERVIEW-BY-GOAL — the person card's request pills (each a link to its own list) and its footnote. */
.c9-journey__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-journey__pill {
    display: inline-flex;
    align-items: center;
    min-height: var(--badge-h);
    padding: 0 var(--gap-8);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.c9-journey__pill:hover {
    border-color: var(--line-strong);
}

.c9-journey__pill--ok {
    border-color: var(--action-line);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-journey__pill--warn {
    border-color: var(--warn-line);
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-journey__note {
    margin: var(--gap-12) 0 0;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

/* OVERVIEW-BY-GOAL — «Τι κάνει»: the levels as chips, then «Γιατί;» (a native <details>). */
.c9-goal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
    font-size: var(--fs-14);
}

.c9-goal__label {
    color: var(--ink-3);
    font-weight: var(--fw-semibold);
}

.c9-goal__why {
    flex-basis: 100%;
}

.c9-goal__why-toggle {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-goal__reasons {
    margin: 0;
    padding: var(--gap-10) var(--gap-14) var(--gap-10) var(--gap-24);
    max-width: var(--field-max);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--ink-2);
    line-height: var(--lh-body);
}

/* OVERVIEW-BY-GOAL — the «Ραντεβού» card (appointments). */
.c9-ov-bk__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--gap-6) var(--gap-12);
    margin: 0;
}

.c9-ov-bk__big {
    font-family: var(--font-heading);
    font-size: var(--fs-32);
    font-weight: var(--fw-heavy);
    color: var(--ink);
}

.c9-ov-bk__lead {
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.c9-ov-bk__sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: var(--gap-10);
    margin: var(--gap-8) 0 0;
    padding: 0;
    list-style: none;
}

.c9-ov-bk__source {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid transparent;
    border-radius: var(--radius-10);
    background: var(--surface-2);
}

.c9-ov-bk__source--staff {
    border-color: var(--line-strong);
    border-style: dashed;
    background: var(--surface);
}

.c9-ov-bk__source-value {
    font-family: var(--font-heading);
    font-size: var(--fs-19);
    font-weight: var(--fw-bold);
}

.c9-ov-bk__source-label {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-ov-bk__line {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-16);
    margin: var(--gap-8) 0 0;
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-ov-bk__noshow {
    color: var(--warn-strong);
    font-weight: var(--fw-semibold);
}

.c9-ov-bk__follow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-8);
    min-height: var(--touch);
    margin-top: var(--gap-12);
    padding: var(--gap-10) var(--gap-14);
    border-radius: var(--radius-10);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-14);
    text-decoration: none;
}

.c9-ov-bk__follow-go {
    font-weight: var(--fw-semibold);
}

/* OVERVIEW-BY-GOAL — «Δεν ήρθε κάποιος;»: ended appointments, one button each. */
.c9-ov-ns__day {
    margin: var(--gap-8) 0 0;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.c9-ov-ns__rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-ov-ns__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--gap-4) var(--gap-12);
    padding: var(--gap-8) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-14);
}

.c9-ov-ns__row:last-child {
    border-bottom: 0;
}

.c9-ov-ns__time {
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-ov-ns__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.c9-ov-ns__name {
    overflow-wrap: anywhere;
}

.c9-ov-ns__what {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-ov-ns__row--marked .c9-ov-ns__name {
    color: var(--warn-strong);
}

/* OVERVIEW-BY-GOAL — «Τι ρωτάνε»: a page per row, its count and a bar under it. */
.c9-ov-topic__label {
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.c9-ov-topic__label:hover {
    color: var(--action-text);
}

.c9-ov-topic__bar {
    flex-basis: 100%;
    height: 6px;
}

/* Rows (Τι δεν ήξερε, Χρειάζεται εσένα, Πρόσφατα). */
.c9-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-12);
    padding: var(--gap-12) 0;
    border-bottom: 1px solid var(--line);
}

.c9-row:last-child {
    border-bottom: 0;
}

.c9-row--attention {
    align-items: flex-start;
}

.c9-row__main {
    flex: 1 1 240px;
    min-width: 0;
    font-size: var(--fs-15);
    color: var(--ink);
}

.c9-row__meta {
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-row__dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: var(--gap-6);
    border-radius: 50%;
}

.c9-row__dot--warn {
    background: var(--warn);
}

.c9-row__dot--action {
    background: var(--action);
}

.c9-row__stack {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

.c9-row__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-row__quiet {
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-row .c9-icon {
    color: var(--action-text);
}

/* Πότε σε ψάχνουν */
.c9-busy {
    min-height: 180px;
}

.c9-busy-chart {
    width: 100%;
}

/* Χρήση αυτόν τον μήνα: native <progress>, styled through its own pseudo-elements. */
.c9-meters {
    display: flex;
    flex-direction: column;
    gap: var(--gap-18);
}

.c9-meter-row {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-meter-row__head {
    display: flex;
    justify-content: space-between;
    gap: var(--gap-12);
    font-size: var(--fs-14);
}

.c9-meter-row__label {
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

.c9-meter-row__value {
    color: var(--ink-2);
}

.c9-meter {
    appearance: none;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--line);
    color: var(--action);
}

.c9-meter::-webkit-progress-bar {
    background: var(--line);
}

.c9-meter::-webkit-progress-value {
    background: var(--action);
}

.c9-meter::-moz-progress-bar {
    background: var(--action);
}

.c9-meter--warn {
    color: var(--warn);
}

.c9-meter--warn::-webkit-progress-value {
    background: var(--warn);
}

.c9-meter--warn::-moz-progress-bar {
    background: var(--warn);
}

/* Πρόσφατα */
.c9-recent {
    gap: var(--gap-14);
}

.c9-recent__icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: var(--radius-10);
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-recent__icon .c9-icon {
    color: var(--brand);
}

.c9-recent__text {
    flex: 1 1 260px;
}

/* «Πρόσφατα»: a long summary is clamped to 3 lines until its «Διάβασε περισσότερα» button opens it. */
.c9-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.c9-recent__more {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: var(--fs-14);
    cursor: pointer;
}

.c9-recent__time {
    flex: 0 0 110px;
    text-align: right;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

/* ── Χαρακτήρας & γλώσσα (Blazor B2, the canvas Character board) ─────── */

.c9-char-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-20);
    align-items: flex-start;
    justify-content: space-between;
}

.c9-char-header__title {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    gap: var(--gap-16);
    align-items: flex-start;
}

.c9-char-header__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-14);
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-char-header__icon .c9-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
}

.c9-char-header__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    min-width: 0;
}

.c9-char-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
}

.c9-char-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-chip--outline {
    background: var(--surface-2);
    color: var(--ink-2);
    border: 1px solid var(--line);
}

.c9-chip--platform {
    background: var(--surface-2);
    color: var(--ink-3);
    border: 1px solid var(--line);
}

.c9-char-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-24);
    align-items: flex-start;
}

.c9-char-layout__main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

.c9-char-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

.c9-char-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

.c9-char-section__lead {
    margin: 0;
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-3);
}

.c9-char-section__text {
    margin: 0;
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

.c9-char-advanced {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-4);
    text-align: start;
}

/* Fields */
.c9-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-16);
}

/* Widths for fields side by side. Only inside a row: in a column container a flex-basis is a HEIGHT
   (Gotcha #37), which once opened a 100 px gap under the language select. */
.c9-field-row > .c9-field--narrow {
    flex: 1 1 200px;
}

.c9-field-row > .c9-field--wide {
    flex: 2 1 320px;
}

/* A lone narrow field (the language select) stays select-width rather than full-width. */
.c9-char-section > .c9-field--narrow {
    max-width: 320px;
}

.c9-field__hint {
    margin: 0;
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-3);
}

.c9-field__optional {
    font-weight: normal;
    color: var(--ink-3);
}

.c9-select {
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-14);
}

.c9-textarea {
    width: 100%;
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    resize: vertical;
}

/* A long-prose field (the assistant's character, instructions, greetings): at least 8 lines tall whatever its rows,
   still resizable downward to that floor and upward without limit. */
.c9-textarea--prose {
    min-height: calc(8 * var(--lh-body) * var(--fs-14) + 2 * var(--gap-10) + 2px);
}

/* A short multi-line field (John 11/11: the opening hours are a few lines, not prose). Named exceptions only:
   FieldWidthTests lists each one. */
.c9-textarea--short {
    min-height: calc(4 * var(--lh-body) * var(--fs-14) + 2 * var(--gap-10) + 2px);
}

/* PINNED FACTS PR3 — «Ερωτήσεις και απαντήσεις» inside «Βασικά στοιχεία»: one framed row per pair, the two fields
   stacked and the remove button beside them. */
.c9-char-pairs {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-char-pairs__title {
    margin: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-char-pair {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-8);
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
}

.c9-char-pair__fields {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-char-pair > .c9-icon-button {
    margin-left: 0;
}

.c9-char-pairs__add {
    align-self: flex-start;
}

.c9-textarea--code {
    font-family: var(--font-mono);
    font-size: var(--fs-13);
}

.c9-select:focus-visible,
.c9-textarea:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 0;
    border-color: var(--focus-ring);
}

/* A field kept but not in force (Βασικά στοιχεία: the typed hours while the calendar's are used) reads as such. */
.c9-textarea:disabled {
    background: var(--surface-2);
    color: var(--ink-3);
    cursor: not-allowed;
}

/* Ύφος: three equal choices. */
.c9-choice {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-choice__option {
    flex: 1 1 120px;
    min-height: var(--touch);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-8);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-choice__option--on {
    border-color: var(--action);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-14);
    align-items: center;
    justify-content: space-between;
}

.c9-switch-row__text {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-switch-row__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-switch-row__hint {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

/* Notes: a warning, a confirmation. */
.c9-callout {
    margin: 0;
    padding: var(--gap-12) var(--gap-14);
    border-radius: var(--radius-10);
    font-size: var(--fs-14);
    line-height: var(--lh-body);
}

.c9-callout--warn {
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    color: var(--warn-strong);
}

.c9-callout--ok {
    background: var(--action-soft);
    color: var(--action-text);
}

/* A neutral note (calendar sync: «Μετακινήθηκε από το Google», «the link is no longer needed»), and the strongest warning
   (a connection that expired): the palette has no red, so the warn tokens with a thicker edge. */
.c9-callout--note {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
}

.c9-callout--danger {
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    border-left: 4px solid var(--warn);
    color: var(--ink);
}

/* Text the owner can't edit: the platform's disclosure (greyed, a lock) and the phone form's first question. */
.c9-locked,
.c9-appended,
.c9-readonly {
    margin: 0;
    display: flex;
    gap: var(--gap-8);
    align-items: flex-start;
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-10);
    font-size: var(--fs-14);
}

.c9-locked {
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    color: var(--ink-3);
}

.c9-locked .c9-icon,
.c9-locked-row .c9-icon {
    color: var(--ink-3);
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.c9-appended {
    background: var(--brand-soft);
    color: var(--ink);
}

.c9-appended .c9-icon {
    color: var(--brand);
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.c9-readonly {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
}

.c9-readonly__note {
    color: var(--ink-3);
}

.c9-locked-row {
    flex-wrap: nowrap;
    align-items: flex-start;
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    color: var(--ink);
}

/* Τι ακούει */
.c9-preview {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

.c9-segmented--full {
    display: flex;
    background: var(--surface-2);
    border: 0;
}

.c9-segmented--full .c9-segmented__option {
    flex: 1;
}

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

.c9-preview__block {
    display: flex;
    gap: var(--gap-10);
    align-items: flex-start;
    padding: var(--gap-10) 0;
    border-bottom: 1px solid var(--line);
}

.c9-preview__number {
    flex: 0 0 22px;
    height: 22px;
    border-radius: var(--radius-6);
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-preview__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-preview__name {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-preview__text {
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-3);
    overflow-wrap: anywhere;
}

.c9-preview__source {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-4);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-preview__source--platform {
    color: var(--ink-3);
}

.c9-preview__source .c9-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.c9-preview__source--owner,
.c9-preview__source--addon {
    color: var(--action-text);
    font-weight: var(--fw-semibold);
}

.c9-preview__full {
    margin: 0;
    max-height: 420px;
    overflow: auto;
    padding: var(--gap-12);
    border-radius: var(--radius-10);
    background: var(--code-bg);
    color: var(--code-ink);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    line-height: var(--lh-body);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ── Blazor's error bar ───────────────────────────────────────────────── */

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: var(--gap-10) var(--gap-20);
    background: var(--warn-soft);
    color: var(--warn-strong);
    border-top: 1px solid var(--warn-line);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: var(--gap-12);
    top: var(--gap-6);
    min-width: var(--touch);
    min-height: var(--touch);
    border: 0;
    background: transparent;
    color: inherit;
    font-size: var(--fs-19);
    cursor: pointer;
}

/* ── Phone width: the sidebar becomes a drawer ────────────────────────── */

@media (max-width: 900px) {
    .c9-shell {
        flex-direction: column;
    }

    .c9-topbar {
        padding: 0 var(--gap-16);
    }

    .c9-topbar .c9-topbar__menu,
    .c9-topbar .c9-topbar__logo {
        display: flex;
    }

    .c9-topbar .c9-topbar__menu {
        margin-left: 0;
    }

    .c9-user__lang-full {
        display: none;
    }

    .c9-user__lang-short {
        display: inline;
    }

    /* Compact: only the initials. */
    .c9-user__who {
        display: none;
    }

    .c9-user__chip {
        padding: var(--gap-4);
    }

    .c9-topbar .c9-icon-button {
        margin-left: 0;
    }

    .c9-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        width: min(var(--nav-w), 86vw);
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s;
    }

    .c9-shell--drawer-open .c9-sidebar {
        transform: none;
        visibility: visible;
    }

    .c9-shell--drawer-open .c9-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        border: 0;
        background: var(--scrim);
    }

    .c9-main {
        padding: var(--pad-page-phone);
    }

    .c9-page-header__title {
        font-size: var(--fs-28);
    }

    /* Overview: the cards stack. */
    .c9-ov-header__actions {
        width: 100%;
    }

    .c9-recent__time {
        flex-basis: auto;
        text-align: left;
    }

    /* The journey's tiles: two to a row on a phone, the number a size down so «1.240» still fits at 375 px. */
    .c9-journey {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--gap-10);
    }

    .c9-journey__tile {
        padding: var(--gap-14);
    }

    /* OVERVIEW-BY-GOAL: the goal strip (3–4 steps) reads top to bottom on a phone; the person card stays 2 × 2. */
    .c9-journey--strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .c9-journey__value {
        font-size: var(--fs-19);
    }

    /* Sign-in: the hero becomes a band above the form. */
    .c9-auth {
        flex-direction: column;
    }

    .c9-auth__hero {
        flex: 0 0 auto;
        padding: var(--gap-24) var(--gap-20);
    }

    .c9-auth__brand {
        margin-bottom: 0;
    }

    .c9-auth__tagline,
    .c9-auth__sub {
        display: none;
    }

    .c9-auth__panel {
        flex: 1 1 auto;
        align-items: flex-start;
        padding: var(--gap-24) var(--gap-20);
    }
}

/* ── Wide screens (≥ 1760 px, e.g. 2560): use the width instead of stretching every card ─────────
   The Overview's lower cards become ONE 3-column grid: the two rows dissolve (display: contents) so
   their cards are placed directly, the busy chart takes two columns next to «Πρόσφατα». Text fields
   are capped by --field-max at every width. */
@media (min-width: 1760px) {
    .c9-ov-lower {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "topics unanswered needs"
            "busy busy usage"
            "recent recent recent";
        gap: var(--gap-24) var(--gap-20);
        align-items: stretch;
    }

    .c9-ov-lower > .c9-ov-row {
        display: contents;
    }

    .c9-ov-lower [data-card="topics"] { grid-area: topics; }
    .c9-ov-lower [data-card="unanswered"] { grid-area: unanswered; }
    .c9-ov-lower [data-card="needsYou"] { grid-area: needs; }
    .c9-ov-lower [data-card="usage"] { grid-area: usage; }
    /* The chart keeps its own height rather than stretching to the (taller) «Πρόσφατα» beside it. */
    .c9-ov-lower [data-card="busy"] { grid-area: busy; align-self: stretch; }
    .c9-ov-lower [data-card="recent"] { grid-area: recent; }
}

/* ── Τηλέφωνο (B4, canvas Phone board) ────────────────────────────────── */

.c9-phone-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-12);
}

.c9-phone-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-24);
    align-items: stretch;
}

.c9-phone-grid > * {
    flex: 1 1 360px;
    min-width: 0;
}

.c9-phone-stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap-24);
}

.c9-phone-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-10);
}

.c9-phone-card__head--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-4);
}

.c9-phone-card__lead,
.c9-phone-card__hint {
    margin: 0;
    color: var(--ink-3);
    line-height: var(--lh-body);
}

.c9-phone-card__lead {
    font-size: var(--fs-14);
}

.c9-phone-card__hint {
    font-size: var(--fs-13);
}

.c9-phone-number {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-12);
    padding: var(--gap-14);
    border-radius: var(--radius-12);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.c9-phone-number__icon {
    flex: 0 0 auto;
    display: inline-flex;
    padding: var(--gap-8);
    border-radius: var(--radius-10);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-phone-number__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    min-width: 0;
}

.c9-phone-number__label {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-phone-number__value {
    font-family: var(--font-heading);
    font-size: var(--fs-19);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-phone-number__hint {
    font-size: var(--fs-14);
    color: var(--ink-2);
    line-height: var(--lh-body);
}

.c9-phone-setup {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

.c9-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-steps__item {
    display: flex;
    gap: var(--gap-12);
    align-items: flex-start;
}

.c9-steps__n {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.c9-steps__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-steps__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-steps__hint {
    font-size: var(--fs-13);
    color: var(--ink-3);
    line-height: var(--lh-body);
}

.c9-phone-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-12);
}

.c9-phone-request {
    padding: var(--gap-14);
    border-radius: var(--radius-12);
    border: 1px solid var(--line);
}

.c9-phone-minutes {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-phone-minutes__figure {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-phone-minutes__used {
    font-family: var(--font-heading);
    font-size: var(--fs-30);
    font-weight: var(--fw-heavy);
    color: var(--ink);
}

.c9-phone-minutes__of {
    font-size: var(--fs-14);
    color: var(--ink-3);
}

.c9-phone-notes {
    margin: 0;
    padding-left: var(--gap-18);
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    font-size: var(--fs-13);
    color: var(--ink-2);
    line-height: var(--lh-body);
}

.c9-phone-info {
    margin: 0;
    display: flex;
    gap: var(--gap-8);
    align-items: flex-start;
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: var(--fs-14);
    line-height: var(--lh-body);
}

.c9-phone-info .c9-icon {
    flex: 0 0 auto;
    color: var(--ink-3);
}

.c9-voices {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-voice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-voice--on {
    border-color: var(--action);
    background: var(--action-soft);
}

.c9-voice__pick {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--touch);
    cursor: pointer;
}

.c9-voice__radio {
    width: 18px;
    height: 18px;
    accent-color: var(--action);
}

.c9-voice__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-voice__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-voice__kind {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-voice__error {
    flex-basis: 100%;
    font-size: var(--fs-13);
    color: var(--warn-strong);
}

/* «Τι ακούτε όταν σηκώσετε» (TRANSFER-V2): the transfer's announce mode, three radio rows in a frameless fieldset. */
.c9-phone-announce {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-phone-announce > legend {
    padding: 0;
}

.c9-phone-announce__option {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-10);
    min-height: var(--touch);
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
    cursor: pointer;
}

.c9-phone-announce__option--on {
    border-color: var(--action);
    background: var(--action-soft);
}

.c9-phone-announce__radio {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: var(--gap-2) 0 0;
    accent-color: var(--action);
}

.c9-phone-announce__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-phone-announce__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-phone-announce__hint {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-play {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
}

.c9-play[aria-pressed="true"] {
    border-color: var(--action);
    color: var(--action-text);
}

.c9-phone-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-phone-facts__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-4) var(--gap-12);
    font-size: var(--fs-14);
}

.c9-phone-facts__row dt {
    flex: 0 0 160px;
    color: var(--ink-3);
}

.c9-phone-facts__row dd {
    margin: 0;
    flex: 1 1 200px;
    color: var(--ink);
}

.c9-phone-facts__code {
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

/* «Αριθμός & σύνδεση» (admin): the checks, the confirm blocks and the SIP operator guidance. */
.c9-number__checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-number__confirm {
    display: block;
    margin-top: var(--gap-8);
}

.c9-number__para {
    margin: 0 0 var(--gap-8);
}

.c9-number__list {
    margin: 0 0 var(--gap-8);
    padding-left: var(--gap-18);
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-number__check {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
    margin-bottom: var(--gap-8);
}

.c9-number__guide {
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-number__guide summary {
    cursor: pointer;
    color: var(--action-text);
    margin-bottom: var(--gap-8);
}

/* «Τι λέει»: a row per moment, a column per language; one column without English. */
.c9-lines {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-lines__head,
.c9-lines__row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) 1fr 1fr;
    gap: var(--gap-12);
    align-items: start;
}

.c9-lines--one .c9-lines__head,
.c9-lines--one .c9-lines__row {
    grid-template-columns: minmax(150px, 0.8fr) 2fr;
}

.c9-lines__head {
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.c9-lines__row {
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-lines__when {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-lines__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-lines__hint {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-lines__cell {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    min-width: 0;
}

.c9-lines__fixed {
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-8);
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    color: var(--ink-2);
    font-size: var(--fs-14);
    line-height: var(--lh-body);
}

.c9-lines__input {
    resize: vertical;
    min-height: 0;
}

.c9-lines__heard {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* «Κλήσεις»: a plain table; it scrolls sideways inside its card at phone width. Positioned, so a visually-hidden
   header label (absolute) stays inside the scroll box instead of widening the page. */
.c9-table-wrap {
    position: relative;
    overflow-x: auto;
}

.c9-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-14);
}

.c9-table th {
    text-align: left;
    padding: var(--gap-8) var(--gap-10);
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
}

.c9-table td {
    padding: var(--gap-10);
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.c9-table__nowrap {
    white-space: nowrap;
}

.c9-table__quiet {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-call-caller {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-call-caller__number {
    font-weight: var(--fw-semibold);
}

.c9-call-caller__summary {
    font-size: var(--fs-13);
    color: var(--ink-3);
    line-height: var(--lh-body);
}

.c9-call-chip {
    display: inline-flex;
    padding: var(--gap-2) var(--gap-10);
    border-radius: var(--radius-pill);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.c9-call-chip--ok {
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-call-chip--info {
    background: var(--brand-soft);
    color: var(--brand);
}

.c9-call-chip--warn {
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-call-chip--danger {
    background: var(--warn-soft);
    color: var(--warn-strong);
    border: 1px solid var(--warn-line);
}

.c9-call-chip--muted {
    background: var(--surface-2);
    color: var(--ink-3);
}

/* The transcript drawer: a side panel over a scrim; full width on a phone. */
.c9-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--scrim);
}

.c9-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: min(480px, 100vw);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    padding: var(--pad-card);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
}

.c9-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-10);
}

.c9-drawer__meta,
.c9-drawer__note {
    margin: 0;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-transcript {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-transcript__turn {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    max-width: 88%;
    padding: var(--gap-8) var(--gap-12);
    border-radius: var(--radius-12);
    background: var(--surface-2);
}

.c9-transcript__turn--caller {
    align-self: flex-end;
    background: var(--action-soft);
}

.c9-transcript__who {
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-transcript__text {
    font-size: var(--fs-14);
    color: var(--ink);
    line-height: var(--lh-body);
}

/* «Για προχωρημένους»: the whole heading is the disclosure button. */
.c9-phone-adv__heading {
    margin: 0;
}

.c9-phone-adv__toggle {
    width: 100%;
    min-height: var(--touch);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-12);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-phone-adv__toggle[aria-expanded="true"] .c9-icon {
    transform: rotate(180deg);
}

.c9-phone-adv__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-phone-adv__select {
    max-width: 320px;
}

/* «Χρόνοι απάντησης» (settings gap m24–m26): a plain group, its three numbers side by side where they fit. */
.c9-phone-tuning {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    margin: 0;
    padding: 0;
    border: 0;
}

.c9-phone-tuning__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-12);
}

.c9-phone-adv {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

@media (max-width: 900px) {
    .c9-lines__head {
        display: none;
    }

    .c9-lines__row,
    .c9-lines--one .c9-lines__row {
        grid-template-columns: 1fr;
    }

    .c9-phone-facts__row dt {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c9-sidebar {
        transition: none;
    }
}

/* ── Παράδοση σε άνθρωπο (Blazor B5, the canvas Handoff board) ───────── */

.c9-ho-title {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
}

/* Two columns once there is room for two readable cards; one on a laptop half-screen and a phone. */
.c9-ho-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-20);
    align-items: flex-start;
}

.c9-ho-grid__col {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

/* A segmented choice inside a card stays its own width (a column flex parent would stretch it). */
.c9-char-section > .c9-segmented {
    align-self: flex-start;
}

.c9-ho-subtitle {
    margin: var(--gap-8) 0 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-ho-count {
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink-2);
}

/* Readiness */
.c9-ho-ready {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-ho-ready__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
    padding: var(--gap-10) 0;
    border-top: 1px solid var(--line);
}

.c9-ho-ready__row:first-child {
    border-top: 0;
}

.c9-ho-ready__mark {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-ho-ready__row--ok .c9-ho-ready__mark {
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-ho-ready__text {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-ho-ready__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-ho-ready__detail {
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-3);
}

.c9-ho-ready__fix {
    margin-left: auto;
}

/* Hours */
.c9-ho-days {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-ho-day {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
}

.c9-ho-day__name {
    flex: 0 0 100px;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-ho-day__times {
    display: inline-flex;
    gap: var(--gap-8);
    align-items: center;
    color: var(--ink-3);
}

.c9-ho-day__time {
    width: 84px;
    font-variant-numeric: tabular-nums;
}

.c9-ho-day__closed {
    font-size: var(--fs-14);
    color: var(--ink-3);
}

/* Settings gap h24: a day's windows (a lunch break = two), wrapping under each other on a narrow screen. */
.c9-ho-day__windows {
    display: flex;
    flex: 1 1 260px;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-16);
    align-items: center;
}

/* Εκτός ωραρίου: two option cards */
.c9-ho-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
}

/* ── Παράδοση → «Όταν δεν υπάρχει διαθέσιμος άνθρωπος» (CR-7): the tokens for own text, the hours the clock runs on,
   and the live preview (the line in a bubble, its due time and the reason). ── */

.c9-ho-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-ho-promise-hours {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-ho-promise-hours__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    justify-content: space-between;
}

.c9-ho-promise-hours__list {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--gap-2) var(--gap-14);
    font-size: var(--fs-13);
}

.c9-ho-promise-hours__list dt {
    color: var(--ink-3);
}

.c9-ho-promise-hours__list dd {
    margin: 0;
}

.c9-ho-preview__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    justify-content: space-between;
}

.c9-ho-preview__pick {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10);
    align-items: center;
    margin-top: var(--gap-8);
}

.c9-ho-preview {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    padding: var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface-2);
}

.c9-ho-preview__state {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
}

.c9-ho-preview__line {
    margin: 0;
    padding: var(--gap-12) var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
    font-size: var(--fs-15);
    line-height: var(--lh-body);
}

.c9-ho-preview__due {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    font-size: var(--fs-14);
}

.c9-ho-preview__due .c9-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.c9-ho-option {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    min-height: var(--touch);
    padding: var(--gap-12) var(--gap-14);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-ho-option--on {
    border-color: var(--action);
    background: var(--action-soft);
}

.c9-ho-option:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.c9-ho-option__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

.c9-ho-option--on .c9-ho-option__title {
    color: var(--action-text);
}

.c9-ho-option__hint {
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-3);
}

/* On a selected tint the muted text steps up to --ink-2: dark --ink-3 on --action-soft is 4.25:1 (screen sweep 07/11).
   Every "selected" surface that carries --ink-3 text is listed here, so the rule lives in one place. */
.c9-ho-option--on .c9-ho-option__hint,
.c9-voice--on .c9-voice__kind,
.c9-phone-announce__option--on .c9-phone-announce__hint,
.c9-inbox__row--on .c9-inbox__row-code,
.c9-inbox__row--on .c9-inbox__row-time,
.c9-inbox__row--on .c9-inbox__row-prev,
.c9-kn-entry--selected .c9-kn-entry__tokens,
.c9-nav__link--active.c9-nav__link--off {
    color: var(--ink-2);
}

/* Αν δεν απαντήσει κανείς: the minutes box and its unit */
.c9-ho-release {
    display: inline-flex;
    gap: var(--gap-8);
    align-items: center;
    color: var(--ink-3);
}

.c9-ho-release__minutes {
    width: 84px;
    font-variant-numeric: tabular-nums;
}

/* Ποιοι απαντούν */
.c9-ho-people,
.c9-ho-channels {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-ho-person,
.c9-ho-channel {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
    padding: var(--gap-10) 0;
    border-top: 1px solid var(--line);
}

.c9-ho-person:first-child,
.c9-ho-channel:first-child {
    border-top: 0;
}

.c9-ho-person__initials {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.c9-ho-person__text {
    flex: 1 1 180px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-ho-person__name,
.c9-ho-channel__name {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-ho-channel__name {
    flex: 1 1 200px;
}

.c9-ho-person__email {
    font-size: var(--fs-13);
    color: var(--ink-3);
    overflow-wrap: anywhere;
}

.c9-ho-person__channels {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

/* ── Γνώση (Blazor B3) ────────────────────────────────────────────────── */

.c9-kn-body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

/* Τι ξέρει τώρα: five tiles that wrap, two per row on a phone. */
.c9-kn-counts {
    margin: var(--gap-10) 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--gap-12);
}

.c9-kn-counts__item {
    display: flex;
    min-width: 0;
}

.c9-kn-count {
    flex: 1 1 auto;
    min-height: var(--touch);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon label go" "value value value" "sub sub sub";
    align-items: center;
    gap: var(--gap-4) var(--gap-8);
    padding: var(--gap-14) var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.c9-kn-count:hover {
    border-color: var(--action);
}

/* --focus-ring is a colour, not a shadow: "box-shadow: var(--focus-ring)" drew nothing (screen sweep 07/11). */
.c9-kn-count:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* An empty kind still shows: dashed, its zero muted. */
.c9-kn-count--empty {
    border-style: dashed;
    border-color: var(--line-strong);
}

.c9-kn-count--empty .c9-kn-count__value {
    color: var(--ink-3);
}

.c9-kn-count__go {
    grid-area: go;
    display: inline-flex;
    color: var(--action-text);
}

.c9-kn-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: baseline;
    justify-content: space-between;
}

/* «Γνώση › Ιστότοποι» above a child page's title. */
.c9-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: center;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-crumbs__sep {
    color: var(--ink-3);
}

.c9-kn-count__icon {
    grid-area: icon;
    display: inline-flex;
    color: var(--brand);
}

.c9-kn-count__label {
    grid-area: label;
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink-2);
}

.c9-kn-count__value {
    grid-area: value;
    font-family: var(--font-heading);
    font-size: var(--fs-28);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-tight);
    color: var(--ink);
}

.c9-kn-count__sub {
    grid-area: sub;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* Πρόσθεσε γνώση */
.c9-kn-add {
    gap: var(--gap-16);
}

.c9-kn-add--empty {
    border-color: var(--action);
    background: var(--action-soft);
}

.c9-kn-add__head {
    display: flex;
    gap: var(--gap-12);
    align-items: flex-start;
}

.c9-kn-add__icon {
    flex: 0 0 auto;
    display: inline-flex;
    padding: var(--gap-8);
    border-radius: var(--radius-10);
    background: var(--brand-soft);
    color: var(--brand);
}

.c9-kn-kinds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--gap-10);
}

.c9-kn-kind {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-6);
    min-height: var(--touch);
    padding: var(--gap-12) var(--gap-14);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-12);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: var(--fw-semibold);
    text-align: left;
    cursor: pointer;
}

.c9-kn-kind--on {
    border-color: var(--action);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-kn-kind__sub {
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-kn-add__hint {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-kn-add__hint > .c9-field__hint {
    flex: 1 1 320px;
    margin: 0;
}

/* KNOWLEDGE-SPLIT: a source as a card (Ιστότοποι, Έγγραφα, Feeds, Επίκαιρα). The head wraps on a narrow screen. */
.c9-kn-cards {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-kn-card {
    padding: 0;
    gap: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.c9-kn-card--error {
    border-color: var(--warn-line);
}

.c9-kn-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12) var(--gap-16);
    align-items: center;
    padding: var(--gap-14) var(--gap-16);
}

.c9-kn-card__toggle {
    flex: 1 1 320px;
    min-width: 0;
    min-height: var(--touch);
    display: flex;
    gap: var(--gap-12);
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-kn-card__toggle:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-8);
}

.c9-kn-card__toggle--static {
    cursor: default;
}

/* r14.13 — an uploaded file's name, renamed in place: the field takes the name's room, Save / Cancel beside it. */
.c9-kn-card__rename {
    gap: var(--gap-8);
    flex-wrap: wrap;
}

.c9-kn-card__rename-input {
    flex: 1 1 200px;
    min-width: 0;
}

.c9-kn-card__icon {
    flex: 0 0 auto;
    width: var(--touch);
    height: var(--touch);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    color: var(--action-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-kn-card__names {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-kn-card__name {
    font-size: var(--fs-15);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-kn-card__detail {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-kn-card__chip {
    display: inline-flex;
}

.c9-kn-card__count {
    min-width: 96px;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-kn-card__read {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-kn-card__chevron .c9-icon {
    transition: transform 0.15s ease;
}

.c9-kn-card__chevron--open .c9-icon {
    transform: rotate(180deg);
}

.c9-kn-card__error {
    margin: 0 var(--gap-16) var(--gap-14);
}

.c9-kn-card__message {
    padding: 0 var(--gap-16) var(--gap-14);
}

/* A file feed says, before the pick, that a new version replaces the old one (Audit on #480). */
.c9-kn-card__hint {
    margin: 0;
    padding: 0 var(--gap-16) var(--gap-14);
}

.c9-kn-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
    padding: var(--gap-20);
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.c9-kn-card__subtitle {
    margin: 0;
    font-size: var(--fs-15);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-kn-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    justify-content: flex-end;
}

.c9-kn-card__body > .c9-kn-card__foot {
    padding-top: var(--gap-16);
    border-top: 1px solid var(--line);
}

.c9-kn-card__result {
    flex: 1 1 240px;
    margin: 0;
    font-size: var(--fs-13);
    color: var(--action-text);
}

.c9-kn-card__result--warn {
    color: var(--warn-strong);
}

/* An opened website: how it reads (left) and its last read (right); stacked on a narrow screen, the read first. */
.c9-kn-site-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "form report";
    gap: var(--gap-20);
}

.c9-kn-site-body__form,
.c9-kn-site-body__report {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-kn-site-body__form {
    grid-area: form;
}

.c9-kn-site-body__report {
    grid-area: report;
}

/* The last read in three numbers. */
.c9-kn-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap-10);
}

.c9-kn-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--gap-2);
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
}

.c9-kn-stat__label {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-kn-stat__value {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-19);
    font-weight: var(--fw-heavy);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* «Μεμονωμένες σελίδες»: a row per page. */
.c9-kn-single {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
    overflow: hidden;
}

.c9-kn-single__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-16);
    align-items: center;
    padding: var(--gap-10) var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-kn-single__row:first-child {
    border-top: 0;
}

.c9-kn-single__names {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-kn-single__wide {
    flex: 1 1 100%;
}

/* A single page's full address: long, so it wraps rather than pushing the row wide. */
.c9-kn-single__url {
    overflow-wrap: anywhere;
}

/* Above a page's cards: what it holds, and «Άνοιξε / Κλείσε όλες». */
.c9-kn-listbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-kn-listbar__summary {
    margin: 0;
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-kn-listbar__summary strong {
    color: var(--ink);
}

.c9-kn-listbar__warn {
    font-weight: var(--fw-semibold);
    color: var(--warn-strong);
}

.c9-kn-empty__add {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

/* The row helpers the cards share. */
.c9-kn-table__actions-head {
    text-align: right;
}

.c9-kn-row__next {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-kn-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    justify-content: flex-end;
}

.c9-kn-row__actions .c9-icon-button {
    margin-left: 0;
}

/* Gap #15 — a file feed's «Ανέβασε νέα έκδοση»: an icon button that is a label around a visually-hidden file input, so
   the ring follows the input's keyboard focus. */
.c9-kn-card__upload {
    position: relative;
}

.c9-kn-card__upload:focus-within {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.c9-kn-card__upload--busy {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Gap #15 — «Αντιστοίχιση πεδίων»: the first entries, then the fields the assistant reads. */
.c9-kn-map__preview {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-kn-map__entry {
    padding: var(--gap-8) var(--gap-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    font-size: var(--fs-13);
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.c9-kn-map__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.c9-kn-map__fields {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-kn-map__name {
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

.c9-kn-row__confirm {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-kn-row__error {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-10);
    background: var(--warn-soft);
}

.c9-kn-row__error-text {
    flex: 1 1 100%;
    margin: 0;
    font-size: var(--fs-14);
    color: var(--warn-strong);
}

.c9-kn-row__error-detail {
    flex: 1 1 240px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.c9-kn-row__message {
    margin: 0;
    font-size: var(--fs-13);
    color: var(--warn-strong);
}

.c9-kn-site,
.c9-kn-site__advanced {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

.c9-kn-site__reread {
    flex: 0 0 auto;
    justify-content: flex-end;
}

/* Gap #16: «Διάβασέ τον ξανά από την αρχή» and its inline confirm, under the address row. */
.c9-kn-site__recrawl {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

/* B3.1's read report, inside an opened website row. */
.c9-kn-report {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    padding: var(--gap-12) var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
}

.c9-kn-report__line,
.c9-kn-report__warning {
    margin: 0;
    font-size: var(--fs-14);
    color: var(--ink);
}

.c9-kn-report__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    overflow-wrap: anywhere;
}

.c9-kn-report__page {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-4) var(--gap-10);
    align-items: center;
    padding: var(--gap-6) 0;
    border-top: 1px solid var(--line);
}

.c9-kn-report__url {
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-kn-report__sub {
    flex: 1 1 100%;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

@media (max-width: 900px) {
    .c9-kn-site-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "report" "form";
    }

    .c9-kn-card__count,
    .c9-kn-card__read {
        min-width: 0;
    }
}

/* Mobile artboard: the head is the name, then the chip, count and last read on one wrapping line, then the buttons. */
@media (max-width: 640px) {
    .c9-kn-card__head {
        padding: var(--gap-12) var(--gap-14);
        gap: var(--gap-8) var(--gap-12);
    }

    .c9-kn-card__toggle {
        flex-basis: 100%;
    }

    .c9-kn-card__body {
        padding: var(--gap-14);
    }

    .c9-kn-card__foot > .c9-button {
        flex: 1 1 0;
    }

    .c9-kn-row__actions {
        margin-left: auto;
    }
}

/* Τι δεν ήξερε */
.c9-kn-questions {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-kn-question {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10) var(--gap-12);
    align-items: center;
    padding: var(--gap-12) 0;
    border-top: 1px solid var(--line);
}

.c9-kn-question:first-child {
    border-top: 0;
}

.c9-kn-question__text {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    overflow-wrap: anywhere;
}

.c9-kn-question__q {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-kn-question__meta {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-kn-question__chips,
.c9-kn-question__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

.c9-kn-question__answer {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

/* Δεν ήξερε: the filters right of the title, the undo / answered note, the pager. */
.c9-un-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-16);
    align-items: center;
}

.c9-un-filter {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-un-toast {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
    margin: var(--gap-12) 0 0;
}

.c9-un-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-12);
    margin-top: var(--gap-12);
}

.c9-un-pager__buttons {
    display: inline-flex;
    gap: var(--gap-8);
}

/* Τι μπαίνει στην απάντηση (ENRICH-4): four rows × (in the text, at the end, not at all). Each row is a fieldset whose
   legend is floated, so it lays out as the first grid cell instead of sitting in the border. On a wide card the
   column header names the placements and the radios' own labels are for a screen reader; on a phone the header
   goes and each radio shows its label, one per line under the row's name. */
.c9-kn-reply {
    display: flex;
    flex-direction: column;
}

.c9-kn-reply__row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: var(--gap-10);
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: var(--gap-8) 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.c9-kn-reply__row--head {
    border-top: 0;
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.c9-kn-reply__col {
    text-align: center;
}

.c9-kn-reply__legend {
    float: left;
    padding: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-kn-reply__option {
    display: flex;
    gap: var(--gap-10);
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    cursor: pointer;
}

/* Sources have no «in the text»: their first option sits under «Στο τέλος». */
.c9-kn-reply__option--from-end {
    grid-column: 3;
}

.c9-kn-reply__radio {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--action);
}

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

@media (max-width: 640px) {
    .c9-kn-reply__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .c9-kn-reply__row--head {
        display: none;
    }

    .c9-kn-reply__option {
        justify-content: flex-start;
    }

    .c9-kn-reply__option--from-end {
        grid-column: auto;
    }

    .c9-kn-reply__text {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: var(--fs-14);
        color: var(--ink-2);
    }
}

/* Για προχωρημένους · Για διαχειριστές */
.c9-kn-admin {
    gap: var(--gap-16);
}

.c9-kn-admin__toggle {
    display: flex;
    gap: var(--gap-12);
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--touch);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-kn-admin__titles {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

.c9-kn-admin__eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.c9-kn-admin__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-kn-admin__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--gap-12);
}

/* The side panel: from the right on a wide screen, the whole width on a phone. */
.c9-kn-panel__scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--scrim);
}

.c9-kn-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 71;
    width: min(480px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
}

.c9-kn-panel__head {
    display: flex;
    gap: var(--gap-10);
    align-items: center;
    padding: var(--gap-16) var(--gap-20);
    border-bottom: 1px solid var(--line);
}

.c9-kn-panel__icon {
    display: inline-flex;
    color: var(--brand);
}

.c9-kn-panel__body {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
    padding: var(--gap-20);
}

.c9-kn-panel__body > .c9-segmented,
.c9-kn-panel__body > .c9-button,
.c9-kn-admin > .c9-button {
    align-self: flex-start;
}

.c9-kn-panel__foot {
    display: flex;
    gap: var(--gap-12);
    align-items: center;
    justify-content: flex-end;
    padding: var(--gap-14) var(--gap-20);
    border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
    .c9-kn-panel__head,
    .c9-kn-panel__body,
    .c9-kn-panel__foot {
        padding-left: var(--gap-16);
        padding-right: var(--gap-16);
    }
}

/* ── «Έλεγξε τον βοηθό μου» (Blazor B11) ─────────────────────────────── */

.c9-sc {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-sc-card {
    margin-bottom: var(--gap-20);
}

.c9-sc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-sc__item {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-12);
    align-items: flex-start;
    padding: var(--gap-10) 0;
    border-top: 1px solid var(--line);
}

.c9-sc__item:first-child {
    border-top: 0;
}

.c9-sc__item--fix .c9-sc__title {
    color: var(--warn-strong);
}

.c9-sc__text {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    overflow-wrap: anywhere;
}

.c9-sc__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-sc__detail {
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

.c9-sc__quote {
    margin-top: var(--gap-4);
    padding: var(--gap-6) var(--gap-10);
    border-left: 3px solid var(--line-strong);
    border-radius: var(--radius-6);
    background: var(--surface-2);
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-sc__fix {
    margin-left: auto;
    white-space: nowrap;
}

.c9-sc__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10);
    align-items: center;
    justify-content: space-between;
    padding-top: var(--gap-8);
    border-top: 1px solid var(--line);
}

.c9-sc__when {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* ── Γνώση B3.2: the pages a website read, a page's text, Πολυμέσα ── */
.c9-kn-site__language {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: baseline;
    margin: 0;
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-kn-pages {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    margin-top: var(--gap-8);
    padding-top: var(--gap-16);
    border-top: 1px solid var(--line);
}

.c9-kn-pages__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: baseline;
}

.c9-kn-pages__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-kn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
}

.c9-kn-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 360px;
    min-width: 0;
}

.c9-kn-search .c9-input {
    width: 100%;
    padding-left: 38px;
}

.c9-kn-search__icon {
    position: absolute;
    left: var(--gap-12);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--ink-3);
}

.c9-kn-search__icon .c9-icon {
    width: 18px;
    height: 18px;
}

.c9-kn-filter {
    flex-wrap: wrap;
}

.c9-kn-filter .c9-segmented__option {
    min-height: 36px;
    font-size: var(--fs-13);
}

/* No opacity: at .75 the count fell to 3.3:1 on the selected chip and 4.2:1 on the attention chip (screen sweep 07/11). */
.c9-kn-filter__n {
    margin-left: var(--gap-4);
    font-variant-numeric: tabular-nums;
}

.c9-kn-bulk {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
    padding: var(--gap-10) var(--gap-14);
    border-radius: var(--radius-10);
    background: var(--action-soft);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
}

.c9-kn-pagelist {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.c9-kn-page {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 84px 110px minmax(150px, 220px) 170px;
    gap: var(--gap-12);
    align-items: center;
    padding: var(--gap-10) var(--gap-14);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.c9-kn-page--head {
    border-top: 0;
    background: var(--surface-2);
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.c9-kn-page--muted {
    background: var(--surface-2);
}

.c9-kn-page--selected {
    background: var(--action-soft);
}

.c9-check {
    width: 18px;
    height: 18px;
    accent-color: var(--dx-primary);
    cursor: pointer;
}

.c9-kn-page__name {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 0;
}

.c9-kn-page__link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: var(--fw-semibold);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.c9-kn-page__link:hover {
    color: var(--action-text);
    text-decoration: underline;
}

.c9-kn-page__link:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-6);
}

.c9-kn-page__title {
    color: var(--ink-2);
}

.c9-kn-page__url {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-3);
    overflow-wrap: anywhere;
}

.c9-kn-page__num,
.c9-kn-page__when {
    font-size: var(--fs-13);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.c9-kn-page__num {
    text-align: right;
}

.c9-kn-pager {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-kn-pager__buttons {
    display: inline-flex;
    gap: var(--gap-8);
}

.c9-kn-chunks {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-kn-chunk {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: var(--gap-10);
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface-2);
}

.c9-kn-chunk__n {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: var(--fs-12);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.c9-kn-chunk__text {
    margin: 0;
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    color: var(--ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Γνώση › Καταχωρίσεις (gap #14): the stats tiles are the hub's tiles without the link; then one row per entry. */
.c9-kn-count--static:hover {
    border-color: var(--line);
}

.c9-kn-entries__sort {
    flex: 0 0 auto;
}

/* The select-all box beside the count. */
.c9-kn-entries__summary {
    display: inline-flex;
    gap: var(--gap-10);
    align-items: center;
}

.c9-kn-entries {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.c9-kn-entry {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: var(--gap-12);
    align-items: start;
    padding: var(--gap-12) var(--gap-14);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.c9-kn-entry:first-child {
    border-top: 0;
}

.c9-kn-entry > .c9-check {
    margin-top: var(--gap-2);
}

.c9-kn-entry--selected {
    background: var(--action-soft);
}

.c9-kn-entry__open {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.c9-kn-entry__open:hover .c9-kn-entry__source {
    color: var(--action-text);
    text-decoration: underline;
}

.c9-kn-entry__open:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-6);
}

.c9-kn-entry__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-8);
    align-items: center;
    min-width: 0;
}

.c9-kn-entry__source {
    font-weight: var(--fw-semibold);
    overflow-wrap: anywhere;
}

/* Two lines of the text, then an ellipsis. */
.c9-kn-entry__preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.c9-kn-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-8);
    align-items: center;
    justify-content: flex-end;
}

.c9-kn-entry__tokens {
    font-size: var(--fs-12);
    font-variant-numeric: tabular-nums;
    color: var(--ink-3);
    white-space: nowrap;
}

.c9-kn-entry__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-kn-entry__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    margin: 0;
}

.c9-kn-entry__delete {
    margin-right: auto;
}

/* «Σβήσε όλα τα …»: the count, «μόνο όσα έληξαν» for events, and the typed «ναι». */
.c9-kn-danger {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    padding: var(--gap-14) var(--gap-16);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-12);
    background: var(--warn-soft);
}

.c9-kn-danger__text {
    margin: 0;
    font-weight: var(--fw-semibold);
    color: var(--warn-strong);
}

.c9-kn-danger__option {
    display: inline-flex;
    gap: var(--gap-8);
    align-items: center;
    font-size: var(--fs-14);
    color: var(--ink);
}

.c9-kn-danger__yes {
    max-width: 200px;
}

.c9-kn-danger__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
    align-items: center;
}

@media (max-width: 640px) {
    .c9-kn-entry {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: var(--gap-6) var(--gap-10);
    }

    .c9-kn-entry__meta {
        grid-column: 2;
        justify-content: flex-start;
    }

    .c9-kn-entries__sort,
    .c9-kn-entries__sort .c9-select {
        width: 100%;
    }
}

.c9-kn-media {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

/* The kind filter: pills with their counts. */
.c9-kn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-kn-chip {
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-13);
    cursor: pointer;
}

.c9-kn-chip--on {
    border-color: var(--action);
    background: var(--action-soft);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
}

/* «Θέλουν καλύτερο τίτλο · N» beside the kind chips: a to-do, so warm until it is the filter in use. */
.c9-kn-chip--attention:not(.c9-kn-chip--on) {
    border-color: var(--warn-line);
    color: var(--warn-strong);
}

.c9-kn-media__source {
    margin: 0;
    min-width: 0;
}

.c9-kn-media__source .c9-select {
    min-width: 200px;
}

.c9-kn-media__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap-14);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-kn-mitem {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
    overflow: hidden;
}

/* A card's preview: one low band (the mockup's 104 px), a gallery's first images side by side in it. */
.c9-kn-mitem > .c9-kn-thumb {
    width: 100%;
    height: 112px;
    aspect-ratio: auto;
    border-width: 0 0 1px;
    border-radius: 0;
}

.c9-kn-mitem > .c9-kn-thumbs {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--line);
}

.c9-kn-mitem > .c9-kn-thumbs .c9-kn-thumb {
    height: 112px;
    aspect-ratio: auto;
    border-width: 0;
    border-radius: 0;
}

.c9-kn-mitem__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    align-items: flex-start;
    min-width: 0;
    padding: var(--gap-14) var(--gap-14) 0;
}

.c9-kn-mitem__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-kn-mitem__file {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-kn-mitem__title {
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.c9-kn-mitem__type {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-kn-mitem__desc {
    display: -webkit-box;
    margin: 0;
    max-width: 75ch;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: var(--fs-13);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

.c9-kn-mitem__actions {
    padding: var(--gap-10) var(--gap-14) var(--gap-14);
}

.c9-kn-thumb {
    display: grid;
    place-items: center;
    width: 132px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: var(--radius-8);
    background: var(--surface-2);
    color: var(--ink-3);
    object-fit: cover;
}

.c9-kn-thumb .c9-icon {
    width: 26px;
    height: 26px;
}

.c9-kn-thumb--image {
    position: relative;
    overflow: hidden;
}

/* Over the icon: an image that does not load leaves the icon showing. */
.c9-kn-thumb__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c9-kn-thumb--image {
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-kn-thumb--video,
.c9-kn-thumb--audio {
    border-color: var(--code-bg);
    background: var(--code-bg);
    color: var(--code-ink);
}

.c9-kn-thumb--pdf {
    border-color: var(--warn-line);
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-kn-thumb--more {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--surface);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.c9-kn-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-4);
    width: 132px;
    max-width: 100%;
}

.c9-kn-thumbs .c9-kn-thumb {
    width: 100%;
    aspect-ratio: 1.6;
}

.c9-kn-files {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-kn-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--gap-10);
    align-items: center;
}

/* A media file's address and its caption, one under the other (gaps m18 / h16). */
.c9-kn-file__fields {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    min-width: 0;
}

/* «Πρόσθεσε αρχείο» under the list: its own width, the icon beside the words. */
.c9-kn-files__add {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
}

@media (max-width: 1100px) {
    .c9-kn-page {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .c9-kn-page--head > :nth-child(n + 3) {
        display: none;
    }

    .c9-kn-page > .c9-kn-page__num,
    .c9-kn-page > .c9-kn-page__when {
        display: none;
    }

    .c9-kn-page > [data-chip] {
        grid-column: 2;
    }

    .c9-kn-page > .c9-kn-row__actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 640px) {
    .c9-kn-page {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: var(--gap-6) var(--gap-10);
    }

    .c9-kn-page > .c9-kn-row__actions {
        grid-column: 2;
        grid-row: auto;
        justify-content: flex-start;
    }

    .c9-kn-page--head > :nth-child(n + 2) {
        display: none;
    }

    .c9-kn-search {
        max-width: none;
    }

    .c9-kn-media__source,
    .c9-kn-media__source .c9-select {
        width: 100%;
        min-width: 0;
    }
}

/* Χαρακτήρας: how much of a field's limit is used. */
.c9-charcount {
    margin: var(--gap-4) 0 0;
    font-size: var(--fs-12);
    font-variant-numeric: tabular-nums;
    color: var(--ink-3);
    text-align: right;
}

.c9-charcount--near {
    color: var(--warn-strong);
    font-weight: var(--fw-semibold);
}

/* Τηλέφωνο: the calls' order, and a call's conversation. */
.c9-calls-sort {
    margin-bottom: var(--gap-12);
}

.c9-call-caller__link {
    font-size: var(--fs-13);
}

/* Παράδοση: Telegram connected here (bot → group → ready). */
.c9-ho-telegram {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    align-items: flex-start;
    flex: 1 1 100%;
    min-width: 0;
}

.c9-ho-telegram__steps {
    margin: 0;
    padding-left: var(--gap-20);
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-ho-telegram__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

.c9-ho-telegram__row .c9-input {
    flex: 1 1 260px;
    min-width: 0;
}

.c9-ho-telegram__code {
    padding: var(--gap-2) var(--gap-6);
    border-radius: var(--radius-6);
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    color: var(--ink);
    user-select: all;
}

/* Παράδοση: the Mon–Fri shortcut and what changes on the phone. */
.c9-ho-weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    padding: var(--gap-10) var(--gap-12);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-10);
}

.c9-ho-weekdays .c9-field__label {
    margin: 0;
}

.c9-ho-phone-note {
    display: flex;
    gap: var(--gap-8);
    align-items: flex-start;
    margin: 0;
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-ho-phone-note .c9-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--ink-3);
}

/* Ειδοποιήσεις (B10): one section — on/off, one email, the language, a box per kind. */
.c9-nt {
    max-width: var(--field-max);
}

.c9-nt__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-16);
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.c9-nt .c9-segmented {
    align-self: flex-start;
}

.c9-nt__body:disabled {
    opacity: 0.55;
}

.c9-nt__kinds {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.c9-nt__kind {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: var(--gap-12);
    align-items: center;
    padding: var(--gap-12) var(--gap-14);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.c9-nt__kind:first-child {
    border-top: 0;
}

.c9-nt__kind-text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 0;
    cursor: pointer;
}

.c9-nt__kind-title {
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-nt__kind-hint {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-nt__notes {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    margin: var(--gap-8) 0 0;
    padding: var(--gap-14) 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.c9-nt__notes li {
    display: flex;
    gap: var(--gap-8);
    align-items: flex-start;
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-nt__notes .c9-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--ink-3);
}

@media (max-width: 640px) {
    .c9-nt__kind {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .c9-nt__kind > .c9-button {
        grid-column: 2;
        justify-self: start;
    }
}

/* ── Ραντεβού (Blazor B6-UI) ──────────────────────────────────────────
   The screen reuses the handoff board's grid, readiness rows and option cards (c9-ho-*); these are the few bits it adds. */

/* «Συνδεδεμένο ως …» / the plan line, with its button beside it (below it on a phone). */
.c9-bk-who {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-bk-who > .c9-char-section__text {
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.c9-bk-quiet {
    color: var(--ink-3);
}

.c9-bk-badge {
    display: inline-block;
    margin-left: var(--gap-6);
    padding: var(--gap-2) var(--gap-8);
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    vertical-align: middle;
}

/* The settings that only mean something under «Βρίσκει τα ραντεβού όσων ξανακαλούν». */
.c9-bk-nested {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    padding-left: var(--gap-16);
    border-left: 2px solid var(--line);
}

.c9-bk-range {
    display: flex;
    gap: var(--gap-12);
    align-items: center;
}

.c9-bk-range input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: var(--touch);
    accent-color: var(--action);
}

.c9-bk-range__value {
    flex: 0 0 auto;
    min-width: 4ch;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.c9-bk-phone {
    display: block;
    font-variant-numeric: tabular-nums;
}

.c9-bk-row-link {
    margin-left: var(--gap-12);
}

/* A column flex item is as wide as its widest content by default: let the card shrink, so the table scrolls
   inside it at phone width instead of widening the page. */
.c9-bk-recent {
    min-width: 0;
}

/* ── Εισερχόμενα (the Inbox: the list and the conversation side by side; one at a time on a phone) ── */

.c9-inbox {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: var(--gap-20);
    align-items: start;
}

.c9-inbox__list,
.c9-inbox__reader {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    padding: var(--gap-14);
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-inbox__list-top {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-inbox__search .c9-input {
    width: 100%;
}

.c9-inbox__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-inbox__chip {
    min-height: 32px;
    padding: 0 var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-13);
    cursor: pointer;
}

.c9-inbox__chip--on {
    border-color: var(--action);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-inbox__rows {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-inbox__row {
    display: flex;
    gap: var(--gap-10);
    padding: var(--gap-10);
    border-radius: var(--radius-10);
    color: var(--ink);
    text-decoration: none;
}

.c9-inbox__row:hover {
    background: var(--surface-2);
}

.c9-inbox__row--on {
    background: var(--action-soft);
}

.c9-inbox__avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.c9-inbox__row--awaiting .c9-inbox__avatar {
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-inbox__row-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

.c9-inbox__row-top {
    display: flex;
    gap: var(--gap-6);
    align-items: baseline;
}

.c9-inbox__row-name {
    font-weight: var(--fw-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c9-inbox__row-code {
    color: var(--ink-3);
    font-size: var(--fs-12);
    font-weight: normal;
}

.c9-inbox__row-time {
    margin-left: auto;
    color: var(--ink-3);
    font-size: var(--fs-12);
    white-space: nowrap;
}

.c9-inbox__row-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-inbox__stale {
    box-shadow: 0 0 0 2px var(--warn-strong) inset;
}

.c9-inbox__flag {
    padding: 0 var(--gap-6);
    border-radius: var(--radius-6);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--fs-12);
}

.c9-inbox__row-prev {
    color: var(--ink-3);
    font-size: var(--fs-13);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Help desk → the requests (CR-8): the group headers (the queue, the requests) and one request in the reader (its
   facts, «Του είπαμε», the actions and the history). ── */

.c9-inbox__group {
    margin: 0;
    padding: var(--gap-10) var(--gap-14) var(--gap-6);
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.c9-rq {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
}

.c9-rq__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-rq__facts {
    margin: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--gap-6) var(--gap-14);
    font-size: var(--fs-14);
}

.c9-rq__facts dt {
    color: var(--ink-3);
}

.c9-rq__facts dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-rq__said {
    margin: 0;
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface-2);
    font-size: var(--fs-14);
}

.c9-rq__actions {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-rq__buttons,
.c9-rq__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: flex-end;
}

.c9-rq__history {
    margin: 0;
    padding-left: var(--gap-18);
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-rq__when {
    color: var(--ink-3);
}

.c9-inbox__more {
    align-self: center;
}

.c9-inbox__hide-empty {
    display: inline-flex;
    gap: var(--gap-6);
    align-items: center;
    color: var(--ink-3);
    font-size: var(--fs-13);
}

.c9-inbox__pick {
    min-height: 240px;
    justify-content: center;
    text-align: center;
}

.c9-inbox__back {
    display: none;
}

.c9-inbox__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10) var(--gap-16);
    align-items: flex-start;
    justify-content: space-between;
}

.c9-inbox__who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

/* TEST-CONVERSATION FLAG: the reader's «Δοκιμή» tag sits under the state line, its own width. */
.c9-inbox__test {
    align-self: flex-start;
}

.c9-inbox__name {
    margin: 0;
    font-size: var(--fs-17);
    overflow-wrap: anywhere;
}

.c9-inbox__state {
    color: var(--ink-3);
    font-size: var(--fs-13);
}

.c9-inbox__state[data-state="awaiting"] {
    color: var(--warn-strong);
    font-weight: var(--fw-semibold);
}

.c9-inbox__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-inbox__confirm {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
}

.c9-inbox__strip {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-20);
    font-size: var(--fs-13);
}

.c9-inbox__strip dt {
    color: var(--ink-3);
    font-size: var(--fs-12);
}

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

.c9-inbox__dim {
    color: var(--ink-3);
    text-decoration: line-through;
}

.c9-inbox__before,
.c9-inbox__block,
.c9-inbox__call,
.c9-inbox__lead {
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    font-size: var(--fs-14);
}

.c9-inbox__before p,
.c9-inbox__block p {
    margin: var(--gap-4) 0 0;
}

.c9-inbox__block-title {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.c9-inbox__src {
    margin-left: var(--gap-6);
    color: var(--ink-3);
    font-weight: normal;
}

.c9-inbox__quiet {
    color: var(--ink-3);
    font-size: var(--fs-13);
}

.c9-inbox__lead {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: center;
    overflow-wrap: anywhere;
}

.c9-inbox__call {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    align-items: flex-start;
}

.c9-inbox__call-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-12);
    align-items: baseline;
}

.c9-inbox__call-num {
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
}

.c9-inbox__line {
    margin: 0;
    font-size: var(--fs-13);
}

.c9-inbox__thread {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-inbox__older {
    align-self: center;
}

.c9-inbox__messages {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-msg {
    max-width: 82%;
    padding: var(--gap-8) var(--gap-12);
    border-radius: var(--radius-12);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    min-width: 0;
}

.c9-msg--visitor {
    align-self: flex-start;
}

.c9-msg--ai {
    align-self: flex-end;
    background: var(--brand-soft);
}

.c9-msg--op {
    align-self: flex-end;
    background: var(--action-soft);
}

.c9-msg--system {
    align-self: center;
    max-width: 100%;
    background: none;
    color: var(--ink-3);
    font-size: var(--fs-13);
    font-style: italic;
    text-align: center;
}

.c9-msg__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: baseline;
    color: var(--ink-3);
    font-size: var(--fs-12);
}

/* «Γιατί το είπε;» (staff only): a small outlined button with an icon, so it reads as an action next to the meta. */
.c9-msg__why {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-4);
    padding: var(--gap-2) var(--gap-8);
    border: 1px solid var(--action);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--action-text);
    font: inherit;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-msg__why:hover {
    background: var(--action-soft);
    color: var(--action-hover);
}

.c9-msg__why .c9-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

/* On a phone the two pills are tap targets: 44 px tall, like every other control there. */
@media (max-width: 900px), (pointer: coarse) {
    .c9-msg__why {
        min-height: var(--touch);
        padding-inline: var(--gap-12);
    }
}

.c9-msg__text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ReplyText: an assistant reply's markdown (paragraphs, lists, bold, italic, links) — Inbox, Δοκιμή, wizard, contacts. */
.c9-reply {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-reply p,
.c9-reply ul,
.c9-reply ol {
    margin: 0;
}

.c9-reply ul,
.c9-reply ol {
    padding-left: var(--gap-20);
}

.c9-reply li + li {
    margin-top: var(--gap-2);
}

.c9-msg__block {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-13);
}

.c9-msg__places {
    flex-direction: column;
    align-items: flex-start;
}

.c9-msg__block-title {
    width: 100%;
    color: var(--ink-3);
}

.c9-msg__slot,
.c9-msg__source,
.c9-msg__chip {
    padding: var(--gap-2) var(--gap-8);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-size: var(--fs-12);
    text-decoration: none;
}

.c9-msg__source span {
    font-weight: var(--fw-bold);
}

.c9-msg__sources {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

/* A media group where its {{media:N}} marker stood (or under the reply, when the reply did not place it). */
.c9-msg__media {
    align-items: flex-start;
}

.c9-msg__thumb img {
    display: block;
    max-width: 140px;
    max-height: 100px;
    border-radius: var(--radius-8);
    object-fit: cover;
}

.c9-inbox__callnote {
    margin: 0;
}

.c9-inbox__composer {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-inbox__composer .c9-textarea {
    width: 100%;
}

.c9-inbox__composer-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
}

.c9-inbox__composer-bar .c9-button {
    margin-left: auto;
}

/* The reply box with its dictation mic beside it. */
.c9-inbox__field {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-8);
}

.c9-inbox__field .c9-textarea {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.c9-inbox__saved {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    padding: var(--gap-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
}

.c9-inbox__saved-item {
    padding: var(--gap-6) var(--gap-8);
    border: 0;
    border-radius: var(--radius-8);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-13);
    text-align: left;
    cursor: pointer;
}

.c9-inbox__trace {
    gap: var(--gap-12);
}

.c9-inbox__chunks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    font-size: var(--fs-13);
}

.c9-inbox__chunks li {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: baseline;
}

.c9-inbox__score {
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-semibold);
}

.c9-inbox__tool summary {
    cursor: pointer;
    font-size: var(--fs-13);
}

.c9-inbox__pre {
    margin: var(--gap-6) 0 0;
    padding: var(--gap-8);
    max-height: 320px;
    overflow: auto;
    border-radius: var(--radius-8);
    background: var(--surface-2);
    font-size: var(--fs-12);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* On a phone the list and the conversation are two screens: /app/inbox lists, /app/inbox/{id} reads. */
@media (max-width: 900px) {
    .c9-inbox {
        grid-template-columns: minmax(0, 1fr);
    }

    .c9-inbox--reading .c9-inbox__list,
    .c9-inbox:not(.c9-inbox--reading) .c9-inbox__reader {
        display: none;
    }

    .c9-inbox__back {
        display: inline;
    }

    .c9-msg {
        max-width: 92%;
    }
}

/* The operator's alerts on the Inbox header: sound · desktop · away (a row of chips that wraps). */
.c9-inbox__alerts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: center;
}

span.c9-inbox__chip {
    display: inline-flex;
    align-items: center;
    cursor: default;
}

/* A call in the Inbox list: the phone instead of initials. */
.c9-inbox__avatar--call {
    background: var(--action-soft);
    color: var(--action-text);
}

/* Overview «Πρόσφατα»: the name opens the conversation in the Inbox. */
.c9-recent__link {
    color: inherit;
    text-decoration: none;
}

.c9-recent__link:hover {
    color: var(--action-text);
    text-decoration: underline;
}

/* ── Επαφές (B9): the list, a contact's card and notes, the settings' fields and phone-form steps ── */

.c9-ct-tabs {
    align-self: flex-start;
}

.c9-ct-tabs .c9-segmented__option {
    text-decoration: none;
}

/* ── Πλατφόρμα (admin) ── the tabs are the Contacts segmented links above; the cards are the usual c9-card. */
.c9-pf-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--gap-6) var(--gap-14);
    padding: var(--gap-12) var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-pf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-8) var(--gap-12);
}

.c9-pf-now {
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.c9-pf-now strong {
    color: var(--ink);
}

.c9-pf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

.c9-pf-confirm {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-pf-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--gap-6) var(--gap-14);
    margin: 0;
    font-size: var(--fs-14);
}

.c9-pf-facts dt {
    color: var(--ink-3);
}

.c9-pf-facts dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-pf-users-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-12);
}

.c9-pf-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
}

.c9-pf-kpi {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 130px;
    padding: var(--gap-10) var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-pf-kpi__value {
    font-family: var(--font-heading);
    font-size: var(--fs-19);
    font-weight: var(--fw-heavy);
    font-variant-numeric: tabular-nums;
}

.c9-pf-users {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--gap-20);
    align-items: start;
}

.c9-pf-users__detail {
    position: sticky;
    top: calc(var(--header-h) + var(--gap-16));
    min-width: 0;
}

@media (max-width: 1100px) {
    .c9-pf-users {
        grid-template-columns: minmax(0, 1fr);
    }

    .c9-pf-users__detail {
        position: static;
    }
}

.c9-pf-search {
    flex: 1 1 240px;
    max-width: 420px;
}

.c9-pf-row--on td {
    background: var(--action-soft);
}

.c9-pf-row-open {
    text-align: left;
    overflow-wrap: anywhere;
}

.c9-pf-role {
    background: var(--surface-2);
    color: var(--ink-2);
}

.c9-pf-role--admin {
    background: var(--brand-soft);
    color: var(--brand);
}

.c9-pf-role--moderator {
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-pf-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-10);
}

.c9-pf-email {
    overflow-wrap: anywhere;
    min-width: 0;
}

.c9-pf-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
}

.c9-pf-list__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-8) var(--gap-12);
    padding: var(--gap-10) var(--gap-12);
    border-bottom: 1px solid var(--line);
}

.c9-pf-list__row:last-child {
    border-bottom: 0;
}

.c9-pf-list__text {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 0;
}

.c9-pf-danger {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    padding-top: var(--gap-14);
    border-top: 1px solid var(--line);
}

.c9-pf-subform {
    padding: var(--gap-14) var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface-2);
}

.c9-pf-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-12) var(--gap-16);
}

.c9-pf-ind {
    display: flex;
    align-items: center;
    gap: var(--gap-12);
    min-width: 0;
}

.c9-pf-ind__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-8);
    background: var(--surface-2);
    font-size: var(--fs-17);
}

.c9-pf-list__full {
    flex-basis: 100%;
}

.c9-pf-catalogue,
.c9-pf-ops {
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

/* Εργαλεία ανά κλάδο: the tool column stays while the industries scroll sideways; a phone gets one industry at a time. */
.c9-pf-grid-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
}

.c9-pf-grid {
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-14);
}

.c9-pf-grid th,
.c9-pf-grid td {
    padding: var(--gap-8) var(--gap-12);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    vertical-align: middle;
}

.c9-pf-grid tbody tr:last-child th,
.c9-pf-grid tbody tr:last-child td {
    border-bottom: 0;
}

.c9-pf-grid thead th {
    background: var(--surface-2);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    text-align: center;
    min-width: 112px;
}

.c9-pf-grid__tool {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 240px;
    border-right: 1px solid var(--line);
    text-align: left;
}

.c9-pf-grid thead .c9-pf-grid__tool {
    text-align: left;
}

.c9-pf-grid tbody .c9-pf-grid__tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-10);
    font-weight: var(--fw-semibold);
}

.c9-pf-grid__name {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 0;
}

.c9-pf-grid__ind {
    line-height: var(--lh-tight);
}

.c9-pf-grid__ind--off {
    color: var(--ink-3);
}

.c9-pf-grid__cell {
    text-align: center;
}

.c9-pf-grid__check {
    width: 20px;
    height: 20px;
    accent-color: var(--dx-primary);
    cursor: pointer;
}

.c9-pf-grid__row--off .c9-pf-grid__cell,
.c9-pf-grid__row--off .c9-pf-grid__name {
    color: var(--ink-3);
}

.c9-pf-grid-narrow {
    display: none;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-pf-saved {
    min-height: var(--fs-14);
    margin: 0;
    color: var(--action-text);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

@media (max-width: 700px) {
    .c9-pf-grid-wrap {
        display: none;
    }

    .c9-pf-grid-narrow {
        display: flex;
    }
}

.c9-pf-health {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: var(--gap-20);
    align-items: start;
}

.c9-pf-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--gap-12);
    max-width: var(--field-max);
}

.c9-pf-diff {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--gap-12);
}

.c9-pf-diff__side {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    min-width: 0;
}

.c9-pf-code {
    margin: 0;
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-8);
    background: var(--code-bg);
    color: var(--code-ink);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.c9-ct-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-12);
}

.c9-ct-kpi {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    padding: var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-ct-kpi__label {
    color: var(--ink-2);
    font-size: var(--fs-13);
}

.c9-ct-kpi__value {
    font-size: var(--fs-28);
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
}

.c9-ct-kpi__hint {
    color: var(--ink-3);
    font-size: var(--fs-12);
}

.c9-ct-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    padding: var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-ct-list__bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10);
    align-items: center;
    justify-content: space-between;
}

.c9-ct-list__search {
    flex: 1 1 260px;
    min-width: 0;
}

.c9-ct-list__exports {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-ct-list__filters {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-ct-list__chip-label {
    align-self: center;
    min-width: 88px;
    color: var(--ink-3);
    font-size: var(--fs-12);
}

.c9-ct-list__grouping {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-16);
}

.c9-ct-list__rows {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-ct-list__pager {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    justify-content: flex-end;
}

.c9-ct-row {
    border-top: 1px solid var(--line);
}

.c9-ct-row--open {
    background: var(--surface-2);
    border-radius: var(--radius-10);
}

.c9-ct-row__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    padding: var(--gap-10);
}

.c9-ct-row__toggle {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-4) var(--gap-10);
    align-items: baseline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-ct-row__name {
    font-weight: var(--fw-semibold);
    overflow-wrap: anywhere;
}

.c9-ct-row__contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    color: var(--ink-2);
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

.c9-ct-row__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-ct-row__partial {
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-ct-row__time {
    margin-left: auto;
    color: var(--ink-3);
    font-size: var(--fs-12);
    white-space: nowrap;
}

.c9-ct-row__status {
    flex-wrap: wrap;
}

.c9-ct-row__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    padding: 0 var(--gap-10) var(--gap-12);
}

.c9-ct-row__sub {
    margin: var(--gap-6) 0 0;
    color: var(--ink-2);
    font-size: var(--fs-13);
}

.c9-ct-card {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    padding: var(--gap-12);
    border-radius: var(--radius-10);
    background: var(--surface);
    font-size: var(--fs-14);
}

.c9-ct-card__block p {
    margin: var(--gap-4) 0 0;
    overflow-wrap: anywhere;
}

.c9-ct-card__title {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: center;
    margin: 0;
    color: var(--ink-2);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.c9-ct-card__quote {
    font-style: italic;
}

.c9-ct-card__line span {
    color: var(--ink-3);
}

.c9-ct-card__answers {
    margin: var(--gap-6) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-ct-card__answers dt {
    color: var(--ink-3);
    font-size: var(--fs-12);
}

.c9-ct-card__answers dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.c9-ct-card__marker {
    margin-left: var(--gap-6);
    color: var(--ink-3);
    font-size: var(--fs-12);
}

.c9-ct-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
}

/* Επαφές → Ρυθμίσεις, the CRM webhook card (gap #21): the URL with its save, the masked secret with «Αλλαγή», the test
   with its result as text. */
.c9-ct-crm__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

.c9-ct-crm__row .c9-input {
    flex: 1 1 240px;
    min-width: 0;
}

.c9-ct-crm__mask {
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-ct-crm__result {
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

.c9-ct-crm__result--ok {
    color: var(--action-text);
}

.c9-ct-crm__result--failed {
    color: var(--warn-strong);
}

.c9-ct-notes {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-ct-notes__add {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    align-items: flex-start;
}

.c9-ct-notes__add .c9-textarea {
    width: 100%;
}

.c9-ct-notes__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-ct-note {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-4) var(--gap-10);
    align-items: baseline;
    padding: var(--gap-8) var(--gap-10);
    border-radius: var(--radius-8);
    background: var(--surface);
}

.c9-ct-note--system {
    background: var(--brand-soft);
}

.c9-ct-note__text {
    flex: 1 1 100%;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.c9-ct-note__delete {
    padding: 0;
    border: 0;
    background: none;
    color: var(--action-text);
    font: inherit;
    font-size: var(--fs-12);
    cursor: pointer;
}

.c9-ct-fields {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-14);
}

.c9-ct-fields th,
.c9-ct-fields td {
    padding: var(--gap-6) var(--gap-8);
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.c9-ct-fields thead th {
    color: var(--ink-3);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
}

.c9-input--narrow {
    width: 7rem;
}

/* ── A contact's «Αιτήματα» (CR-8): one line each — what, the due chip, and why · where · when · open. ── */

.c9-ct-requests {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-ct-requests__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--gap-4) var(--gap-12);
    align-items: center;
    padding: var(--gap-10) 0;
    border-bottom: 1px solid var(--line);
}

.c9-ct-requests__row:last-child {
    border-bottom: 0;
}

.c9-ct-requests__what {
    font-weight: var(--fw-semibold);
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-ct-requests__meta {
    grid-column: 1 / -1;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* ── Επαφές → «Στοιχεία πελάτη» (CR-2): the levels, the matrix (rows × Επαφή · Πριν τον άνθρωπο · Για ραντεβού; it
   scrolls sideways inside its card at phone width), the provider's locked cells and «Τι θα κάνει». ── */

.c9-cd-head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-cd-levels {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-12);
}

.c9-cd-level {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-6);
    padding: var(--gap-12) var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
}

.c9-cd-level--off {
    background: var(--surface-2);
}

.c9-cd-level__n {
    font-size: var(--fs-13);
    font-weight: var(--fw-heavy);
    color: var(--brand);
}

.c9-cd-level__name {
    font-size: var(--fs-15);
    font-weight: var(--fw-bold);
}

.c9-cd-level__where {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-cd-level__lock {
    display: inline-flex;
    gap: var(--gap-6);
    align-items: center;
}

.c9-cd-level__lock .c9-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.c9-cd-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
}

.c9-cd-matrix {
    min-width: 760px;
}

.c9-cd-matrix th,
.c9-cd-matrix td {
    vertical-align: middle;
}

.c9-cd-matrix thead th {
    background: var(--surface-2);
    vertical-align: top;
}

.c9-cd-col {
    min-width: 178px;
}

.c9-cd-col .c9-chip {
    margin-top: var(--gap-6);
}

.c9-cd-col__name {
    display: block;
    font-size: var(--fs-12);
    color: var(--ink);
}

.c9-cd-col__cap {
    display: block;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    color: var(--ink-3);
}

.c9-cd-cell {
    min-width: 150px;
}

.c9-cd-col--off,
.c9-cd-cell--off {
    background: var(--surface-2);
}

/* A row's name is a header cell: two classes, so the shared table's small caps (.c9-table th) do not apply. */
.c9-cd-matrix .c9-cd-rowhead {
    min-width: 260px;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    color: var(--ink);
}

.c9-cd-rowname {
    display: block;
    font-weight: var(--fw-semibold);
}

.c9-cd-rowhint {
    display: block;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-cd-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--gap-6) var(--gap-8);
    align-items: center;
}

.c9-cd-question__lang {
    grid-column: 1;
    display: flex;
    gap: var(--gap-8);
    align-items: center;
}

.c9-cd-question__lang span {
    flex: 0 0 24px;
    color: var(--ink-3);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
}

.c9-cd-question__lang .c9-input {
    flex: 1 1 auto;
    min-width: 0;
}

.c9-cd-question .c9-icon-button {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.c9-cd-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-12);
    align-items: center;
}

.c9-cd-tick {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    min-height: 32px;
    font-size: var(--fs-13);
    cursor: pointer;
}

.c9-cd-tick--req {
    color: var(--ink-2);
}

.c9-cd-cell--off .c9-cd-ticks {
    opacity: 0.55;
}

.c9-cd-add {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10);
    align-items: center;
    justify-content: space-between;
}

.c9-cd-foot {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-cd-foot b {
    color: var(--brand);
}

.c9-cd-notes {
    margin: var(--gap-6) 0 0;
    padding-left: var(--gap-18);
}

.c9-cd-plan {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap-12);
}

.c9-cd-plan__col {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    padding: var(--gap-12) var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    font-size: var(--fs-14);
}

.c9-cd-plan__col--off {
    background: var(--surface-2);
    color: var(--ink-3);
}

.c9-cd-plan__head {
    display: flex;
    gap: var(--gap-8);
    align-items: center;
    justify-content: space-between;
    font-weight: var(--fw-bold);
}

.c9-cd-plan__list {
    margin: 0;
    padding-left: var(--gap-18);
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

@media (max-width: 1100px) {
    .c9-cd-levels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .c9-cd-plan {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .c9-cd-levels {
        grid-template-columns: 1fr;
    }
}

/* ── Εργαλεία (B7): a tool's head (name, state, switch), its fields, sub-sections, cost lines ── */

.c9-tl-summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-16);
    align-items: baseline;
    margin: 0;
    font-size: var(--fs-14);
}

.c9-tl-summary__warn {
    color: var(--warn-strong);
    font-weight: var(--fw-semibold);
}

.c9-tl-head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: flex-start;
}

.c9-tl-head__text {
    flex: 1 1 240px;
    min-width: 0;
}

.c9-tl-head__text .c9-field__hint {
    margin: var(--gap-4) 0 0;
}

.c9-tl-head__state {
    display: inline-flex;
    align-items: center;
}

.c9-tl-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-12);
}

.c9-tl-sub {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-tl-sub__title {
    margin: 0;
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
}

.c9-tl-cost {
    margin: 0;
    padding: var(--gap-8) var(--gap-10);
    border-radius: var(--radius-8);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--fs-13);
}

.c9-tl-others {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-tl-others li {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
}

/* ── Chat / Φωνή στο site (B8): the two door tabs, the copy fields, the uploads, the readiness list and the two sketches ── */

.c9-st-tabs {
    align-self: flex-start;
}

.c9-st-tabs .c9-segmented__option {
    text-decoration: none;
}

.c9-st-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-12);
}

.c9-st-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-12);
}

.c9-st-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
}

.c9-st-copy {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-8);
}

.c9-st-copy__value {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--gap-8) var(--gap-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-8);
    background: var(--code-bg);
    color: var(--code-ink);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    overflow-wrap: anywhere;
    user-select: all;
}

.c9-st-color {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
}

.c9-st-color .c9-input {
    flex: 1 1 auto;
    min-width: 0;
}

.c9-st-color input[type="color"] {
    flex: 0 0 auto;
    width: var(--touch);
    height: var(--touch);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-8);
    background: var(--surface);
}

.c9-st-starter + .c9-st-starter {
    margin-top: var(--gap-6);
}

.c9-st-image {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-st-image__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

.c9-st-image__thumb {
    max-width: 220px;
    max-height: 74px;
    border: 1px solid var(--line);
    border-radius: var(--radius-8);
    object-fit: cover;
}

.c9-st-image__thumb--logo {
    width: 56px;
    height: 56px;
    max-width: none;
    border-radius: var(--radius-pill);
}

.c9-st-image__pick {
    position: relative;
    cursor: pointer;
}

/* «Ενεργοποίηση φωνής στο site»: the server's error line and, for an admin, the read-back detail (text). */
.c9-st-agent-error {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.c9-st-agent-error__detail {
    margin-block: var(--gap-6);
    font-size: var(--fs-13);
}

.c9-st-checks {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-st-check {
    display: flex;
    align-items: baseline;
    gap: var(--gap-8);
    font-size: var(--fs-14);
}

.c9-st-check__mark {
    flex: 0 0 auto;
    font-weight: var(--fw-bold);
}

.c9-st-check--ok .c9-st-check__mark {
    color: var(--action-text);
}

.c9-st-check--no .c9-st-check__mark {
    color: var(--warn-strong);
}

.c9-st-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--gap-4) var(--gap-12);
    margin: 0;
    font-size: var(--fs-13);
}

.c9-st-facts dt {
    color: var(--ink-3);
}

.c9-st-facts dd {
    margin: 0;
    color: var(--ink);
}

/* The chat sketch: its colours come from the owner's choices, set on the box as --st-primary / --st-secondary
   (cortex9Files.tint). r14.12: painted as widget.js paints — header, send and bubble = the second colour. */
.c9-st-preview {
    display: flex;
    flex-direction: column;
    max-width: 380px;
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
    overflow: hidden;
}

.c9-st-preview__head {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    padding: var(--gap-12);
    background: var(--st-secondary, var(--st-primary, var(--brand)));
    color: var(--on-brand);
}

.c9-st-preview__logo,
.c9-st-preview__initial {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    object-fit: cover;
}

.c9-st-preview__initial {
    display: grid;
    place-items: center;
    background: var(--brand-scrim);
    font-weight: var(--fw-bold);
}

.c9-st-preview__who {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    font-size: var(--fs-13);
}

.c9-st-preview__ai {
    padding: 0 var(--gap-4);
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    color: var(--st-secondary, var(--st-primary, var(--brand)));
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
}

.c9-st-preview__ai-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-4);
}

.c9-st-preview__visitor {
    align-self: flex-end;
    max-width: 80%;
    padding: var(--gap-6) var(--gap-10);
    border-radius: var(--radius-12);
    background: var(--st-primary, var(--brand));
    color: var(--on-brand);
    font-size: var(--fs-13);
}

.c9-st-preview__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    min-height: 140px;
    padding: var(--gap-12);
    background: var(--surface-2);
}

.c9-st-preview__banner {
    width: 100%;
    max-height: 110px;
    border-radius: var(--radius-8);
    object-fit: cover;
}

.c9-st-preview__state,
.c9-st-preview__disclosure {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--fs-13);
}

.c9-st-preview__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-st-preview__chip {
    padding: var(--gap-4) var(--gap-10);
    border: 1px solid var(--st-primary, var(--brand));
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: var(--fs-12);
}

.c9-st-preview__input {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
    margin: var(--gap-10) var(--gap-12);
    padding: var(--gap-4) var(--gap-4) var(--gap-4) var(--gap-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink-3);
    font-size: var(--fs-13);
}

.c9-st-preview__placeholder {
    flex: 1 1 auto;
    min-width: 0;
}

.c9-st-preview__send,
.c9-st-preview__bubble {
    flex: 0 0 auto;
    border-radius: var(--radius-pill);
    background: var(--st-secondary, var(--st-primary, var(--brand)));
}

.c9-st-preview__send {
    width: 24px;
    height: 24px;
}

.c9-st-preview__launcher {
    display: flex;
    justify-content: flex-end;
    max-width: 380px;
}

.c9-st-preview__launcher[data-preview-launcher="left"] {
    justify-content: flex-start;
}

.c9-st-preview__bubble {
    width: 40px;
    height: 40px;
    box-shadow: var(--shadow-pop);
}

.c9-st-preview__foot {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    padding: 0 var(--gap-12) var(--gap-10);
    color: var(--ink-3);
    font-size: var(--fs-11);
}

.c9-st-preview__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

/* The voice.html sketch. */
.c9-st-vpreview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-8);
    max-width: 380px;
    padding: var(--gap-20) var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface-2);
    text-align: center;
}

.c9-st-vpreview__name {
    font-size: var(--fs-15);
}

.c9-st-vpreview__talk {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: var(--on-brand);
}

.c9-st-vpreview__talk svg {
    width: 30px;
    height: 30px;
}

.c9-st-vpreview__line {
    margin: 0;
    color: var(--ink);
    font-size: var(--fs-14);
}

.c9-st-vpreview__quiet {
    margin: 0;
    color: var(--ink-3);
    font-size: var(--fs-12);
}

/* ── Αναφορές (B12): the window line, the five numbers with their change, the cards' tiles and lists, the charts, and
   the admin / moderator «Πώς δουλεύει» ── */

.c9-rp {
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

.c9-rp[data-reloading="True"] {
    opacity: 0.7;
}

.c9-rp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-10);
}

/* At 375 px the four Greek series names were 4 px wider than the card (screen sweep 2): they wrap instead. */
.c9-rp-head .c9-segmented {
    flex-wrap: wrap;
}

.c9-rp-chart {
    width: 100%;
}

.c9-rp-delta {
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-rp-delta--up {
    color: var(--action-text);
}

.c9-rp-delta--down {
    color: var(--warn-strong);
}

.c9-rp-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--gap-12);
}

.c9-rp-tile {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 0;
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
}

.c9-rp-tile__value {
    font-size: var(--fs-19);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-rp-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-rp-list__row {
    display: flex;
    align-items: baseline;
    gap: var(--gap-10);
    padding: var(--gap-8) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-14);
}

.c9-rp-list__row:last-child {
    border-bottom: 0;
}

.c9-rp-list__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-rp-list__count {
    flex: 0 0 auto;
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-rp-advanced {
    padding: var(--pad-card);
}

.c9-rp-advanced__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--gap-10);
    min-height: var(--touch);
    cursor: pointer;
}

.c9-rp-advanced__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
    margin-top: var(--gap-14);
}

.c9-rp-sub {
    margin: 0;
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
}

.c9-rp-funnel {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-rp-funnel__row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: var(--gap-12);
    padding: var(--gap-8) 0;
    border-bottom: 1px solid var(--line);
}

.c9-rp-funnel__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: var(--fs-13);
}

.c9-rp-funnel__count {
    font-weight: var(--fw-semibold);
}

.c9-rp-funnel__pct {
    color: var(--ink-3);
    font-size: var(--fs-13);
}

@media (max-width: 600px) {
    .c9-rp-funnel__row {
        grid-template-columns: 1fr auto auto;
    }

    .c9-rp-funnel__row .c9-link {
        grid-column: 1 / -1;
    }
}

.c9-rp-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

/* ── Μέλη (B10): who gets in, the members list with its filters and row actions, the add panel and the expiry emails ── */

.c9-mb {
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

.c9-mb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-10);
}

.c9-mb-policies {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.c9-mb-best {
    margin-top: var(--gap-6);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--brand);
}

.c9-mb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
}

.c9-mb-row .c9-input {
    flex: 1 1 240px;
    min-width: 0;
}

.c9-mb-confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-10);
    background: var(--warn-soft);
    color: var(--ink);
    font-size: var(--fs-14);
}

.c9-mb-savebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: var(--gap-12);
}

.c9-mb-counters,
.c9-mb-presets {
    flex-wrap: wrap;
}

.c9-mb-n {
    margin-left: var(--gap-4);
    font-variant-numeric: tabular-nums;
}

.c9-mb-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-12);
}

.c9-mb-search {
    flex: 1 1 280px;
    max-width: 460px;
    min-width: 0;
}

.c9-mb-check {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-8);
    font-size: var(--fs-14);
    color: var(--ink);
    cursor: pointer;
}

.c9-mb-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.c9-mb-member {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    gap: var(--gap-12) var(--gap-16);
    align-items: center;
    padding: var(--gap-12) var(--gap-14);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.c9-mb-member:first-child {
    border-top: 0;
}

.c9-mb-member__who,
.c9-mb-member__state {
    display: grid;
    gap: var(--gap-2);
    min-width: 0;
}

.c9-mb-member__email {
    font-weight: var(--fw-semibold);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.c9-mb-member__sub {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-mb-member__state .c9-chip {
    justify-self: start;
}

.c9-mb-note {
    max-width: 320px;
    font-size: var(--fs-13);
}

.c9-mb-member__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    justify-content: flex-end;
}

.c9-mb-member__extra {
    grid-column: 1 / -1;
}

.c9-mb-danger {
    color: var(--warn-strong);
}

.c9-mb-menu {
    position: relative;
    display: inline-flex;
}

.c9-mb-menu__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 5;
    display: grid;
    min-width: 150px;
    padding: var(--gap-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-10);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}

.c9-mb-menu__list button {
    padding: var(--gap-8) var(--gap-10);
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-14);
    text-align: left;
    cursor: pointer;
}

.c9-mb-menu__list button:hover,
.c9-mb-menu__list button:focus-visible {
    background: var(--surface-2);
}

.c9-mb-date {
    max-width: 180px;
}

.c9-mb-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-12);
}

.c9-mb-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap-16);
}

.c9-mb-side {
    display: grid;
    gap: var(--gap-12);
    align-content: start;
}

.c9-mb-sub {
    margin: 0;
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
}

.c9-mb-outcomes {
    display: grid;
    gap: var(--gap-6);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-14);
}

.c9-mb-outcomes li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
    overflow-wrap: anywhere;
}

.c9-mb-expiry {
    padding: var(--pad-card);
}

.c9-mb-expiry__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--gap-10);
    min-height: var(--touch);
    cursor: pointer;
}

.c9-mb-expiry__title {
    font-family: var(--font-heading);
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
    color: var(--ink);
}

.c9-mb-expiry__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
    margin-top: var(--gap-14);
}

.c9-mb-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

.c9-mb-num {
    width: 90px;
}

@media (max-width: 900px) {
    .c9-mb-member {
        grid-template-columns: 1fr;
    }

    .c9-mb-member__actions {
        justify-content: flex-start;
    }
}

/* ── Ρυθμίσεις ─────────────────────────────────────────────────────────── */

.c9-set-number {
    max-width: 120px;
}

.c9-set-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: start;
    gap: var(--gap-12);
}

.c9-set-links__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    font-size: var(--fs-14);
}

.c9-set-danger {
    border-color: var(--warn-line);
}

.c9-set-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-button--danger {
    color: var(--warn-strong);
    border-color: var(--warn-line);
}

.c9-button--danger:not(:disabled):hover {
    background: var(--warn-soft);
}

/* ── Δοκιμή ────────────────────────────────────────────────────────────── */

/* «Δοκίμασε το chat» in Δοκιμή's header: the button with its hint underneath, a readable measure. */
.c9-ts-try {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-6);
    max-width: 380px;
}

.c9-ts-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-8);
}

.c9-ts-chat {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-ts-bubble {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    max-width: 92%;
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-12);
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    overflow-wrap: anywhere;
}

.c9-ts-bubble--me {
    align-self: flex-end;
    background: var(--brand);
    color: var(--on-brand);
}

.c9-ts-bubble--ai {
    align-self: flex-start;
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
}

.c9-ts-bubble--pending {
    color: var(--ink-3);
}

.c9-ts-bubble--error {
    align-self: flex-start;
    background: var(--warn-soft);
    color: var(--warn-strong);
    border: 1px solid var(--warn-line);
}

.c9-ts-used,
.c9-ts-tool {
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-ts-used--yes {
    color: var(--action-text);
}

.c9-ts-ask {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

.c9-ts-ask .c9-input {
    flex: 1 1 220px;
    min-width: 0;
}

.c9-ts-chunks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-ts-chunk {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--gap-8) var(--gap-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    font-size: var(--fs-14);
    overflow-wrap: anywhere;
}

.c9-ts-score,
.c9-ts-line {
    font-size: var(--fs-13);
    color: var(--ink-2);
}

.c9-ts-line {
    margin: 0;
    overflow-wrap: anywhere;
}

.c9-ts-toggle {
    align-self: flex-start;
}

.c9-ts-prompt {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    min-width: 0;
}

.c9-ts-pre {
    margin: 0;
    max-height: 320px;
    overflow: auto;
    padding: var(--gap-10);
    border-radius: var(--radius-10);
    background: var(--code-bg);
    color: var(--code-ink);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.c9-ts-advanced summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: baseline;
    cursor: pointer;
}

.c9-ts-summary {
    display: inline;
    margin: 0;
}

.c9-ts-advanced__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
    margin-top: var(--gap-12);
    min-width: 0;
}

.c9-ts-check {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.c9-ts-grid {
    display: grid;
    grid-template-columns: minmax(90px, auto) minmax(0, 120px) minmax(0, 120px);
    gap: var(--gap-8) var(--gap-10);
    align-items: center;
}

.c9-ts-grid__kind {
    font-size: var(--fs-14);
    color: var(--ink);
}

.c9-ts-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--gap-12);
}

/* ── Εισερχόμενα: the list's keys, the picked saved reply, the saved-replies manager ── */

.c9-inbox__keys {
    margin: var(--gap-8) 0 0;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

@media (max-width: 900px), (pointer: coarse) {
    .c9-inbox__keys {
        display: none;
    }
}

.c9-inbox__saved-item--on {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

.c9-inbox__manage {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-inbox__manage-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: flex-start;
    padding: var(--gap-10) 0;
    border-top: 1px solid var(--line);
}

.c9-inbox__manage-row:first-child {
    border-top: 0;
}

.c9-inbox__manage-text {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--fs-14);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.c9-inbox__manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
    align-items: center;
    font-size: var(--fs-13);
}

.c9-inbox__manage-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    padding-top: var(--gap-14);
    border-top: 1px solid var(--line);
}

/* ── Τηλέφωνο: «Λέξεις που πρέπει να ακούει σωστά» ── */

.c9-words {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-words__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-4);
}

.c9-words__remove {
    border: 0;
    background: none;
    color: var(--ink-3);
    font: inherit;
    font-size: var(--fs-14);
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.c9-words__remove:hover,
.c9-words__remove:focus-visible {
    color: var(--ink);
}

.c9-words__add {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

.c9-words__add .c9-input {
    flex: 1 1 200px;
    min-width: 0;
}

/* ── Chat στο site: «Επιτρεπτά sites» — the c9-words chips; its own Save sits in the card ── */

.c9-allowed {
    min-width: 0;
}

.c9-allowed .c9-words__chip {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.c9-allowed__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
}

.c9-allowed__confirm {
    margin: 0;
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

/* A phone is a finger: the × is a full touch target there. */
@media (max-width: 640px) {
    .c9-allowed .c9-words__remove {
        min-width: var(--touch);
        min-height: var(--touch);
    }
}

/* Trace drawer: a voice turn's wait and steps. */
.c9-inbox__voice-wait {
    margin: 0;
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* Κλήσεις: the caller's wait; 2″ and more reads as slow. */
.c9-call-wait {
    font-variant-numeric: tabular-nums;
}

.c9-call-wait--slow {
    color: var(--warn-strong);
    font-weight: var(--fw-semibold);
}

/* Τηλέφωνο before the line is set up (B4): the settings group, read-only; a fieldset with no frame of its own. */
.c9-phone-locked {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);
}

.c9-phone-locked:disabled {
    opacity: 0.7;
}

/* Παράδοση → Telegram: a customer links their own chat (type=operator). */
.c9-ho-telegram__mine {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-8);
}

/* ── Νέος βοηθός (the wizard) ─────────────────────────────────────────── */

.c9-switcher__new {
    display: block;
    margin: var(--gap-6) 0 0;
    padding: var(--gap-6) var(--gap-10);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--action-text);
    text-decoration: none;
    border-radius: var(--radius-8);
}

.c9-switcher__new:hover,
.c9-switcher__new:focus-visible {
    background: var(--surface-2);
}

.c9-wz-steps {
    list-style: none;
    margin: 0 0 var(--gap-16);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-wz-step {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-8);
    min-height: 36px;
    padding: 0 var(--gap-14) 0 var(--gap-6);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-3);
    font-size: var(--fs-14);
}

.c9-wz-step__n {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink-2);
    font-weight: var(--fw-bold);
    font-size: var(--fs-13);
}

.c9-wz-step--on {
    border-color: var(--brand);
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

.c9-wz-step--on .c9-wz-step__n {
    background: var(--brand);
    color: var(--on-brand);
}

.c9-wz-step--done {
    color: var(--ink-2);
}

.c9-wz-step--done .c9-wz-step__n {
    color: var(--action-text);
}

.c9-wz-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--gap-10);
}

.c9-wz-preset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.c9-wz-preset--on {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.c9-wz-preset__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

.c9-wz-preset__text {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-wz-applies {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    padding: var(--gap-12);
    border-radius: var(--radius-10);
    background: var(--surface-2);
}

.c9-wz-list {
    margin: 0;
    padding-left: var(--gap-20);
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    font-size: var(--fs-14);
    color: var(--ink);
}

.c9-wz-list--numbered {
    list-style: decimal;
}

.c9-wz-aside {
    background: var(--surface-2);
}

.c9-wz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10);
    align-items: center;
    justify-content: flex-end;
}

.c9-wz-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-8);
}

.c9-wz-progress {
    width: 100%;
    height: 10px;
    accent-color: var(--brand);
}

.c9-wz-pages {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-wz-page {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    justify-content: space-between;
    padding: var(--gap-10) 0;
    border-top: 1px solid var(--line);
}

.c9-wz-page:first-child {
    border-top: 0;
}

.c9-wz-page__main {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--fs-14);
    overflow-wrap: anywhere;
}

.c9-wz-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-12);
}

.c9-wz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-wz-qr {
    align-self: flex-start;
}

.c9-wz-next {
    gap: var(--gap-12);
}

.c9-wz-next__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: var(--fs-14);
}

/* Νέος βοηθός: the caller's unfinished assistants on step 1. */
.c9-wz-unfinished {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-wz-unfinished__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-8);
    padding: var(--gap-8) 0;
    border-bottom: 1px solid var(--line);
}

.c9-wz-unfinished__name {
    font-weight: var(--fw-semibold);
    color: var(--ink);
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-wz-unfinished__actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
}

.c9-wz-unfinished__confirm {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-wz-unfinished__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── «Οι βοηθοί μου» (John, 31/10) ─────────────────────────────────────── */

.c9-switcher__links {
    display: flex;
    flex-direction: column;
}

.c9-switcher__links .c9-switcher__new {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
}

.c9-home__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gap-16);
}

.c9-home__titles {
    min-width: 0;
}

.c9-home__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-12);
}

.c9-home__tile {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    padding: var(--gap-14) var(--gap-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.c9-home__tile--warn {
    background: var(--warn-soft);
    border-color: var(--warn-line);
    color: var(--warn-strong);
}

.c9-home__tile-label {
    font-size: var(--fs-12);
    color: inherit;
}

.c9-home__tile-value {
    font-size: var(--fs-28);
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

.c9-home__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--gap-12);
}

.c9-home__search {
    flex: 1 1 320px;
    min-width: 0;
}

.c9-home__search .c9-input {
    width: 100%;
}

.c9-home__select {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

.c9-home__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: var(--gap-16);
}

.c9-home__card {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
    min-width: 0;
}

.c9-home__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap-12);
}

.c9-home__card-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* The status chip stays on one line beside the name. */
.c9-home__card-head > :last-child {
    flex: none;
    white-space: nowrap;
}

.c9-home__card-name {
    margin: 0;
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.c9-home__channels {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-home__today {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap-8);
    margin: 0;
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-home__today dt {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-home__today dd {
    margin: 0;
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
}

.c9-home__waiting {
    padding: var(--gap-6) var(--gap-10);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-8);
    background: var(--warn-soft);
    color: var(--warn-strong);
    font-size: var(--fs-13);
    text-decoration: none;
}

.c9-home__actions {
    display: flex;
    gap: var(--gap-8);
    margin-top: auto;
}

.c9-home__open {
    flex: 1;
    justify-content: center;
}

.c9-home .c9-home__more,
.c9-home__actions .c9-home__more {
    margin-left: 0;
}

.c9-home__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-6);
    padding-top: var(--gap-10);
    border-top: 1px solid var(--line);
}

.c9-home__delete {
    color: var(--warn-strong);
}

.c9-home__more-row {
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .c9-home__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c9-home__tile-value {
        font-size: var(--fs-19);
    }
}

/* The signed-in email, at the top of the user menu. */
.c9-user__menu-email {
    display: block;
    padding: var(--gap-6) var(--gap-12) var(--gap-8);
    color: var(--ink-3);
    font-size: var(--fs-12);
    overflow-wrap: anywhere;
}

/* The app's one chart (Components/Charts/C9Chart, 6/11: it replaced the three DevExpress charts). SVG with x in percent
   and y in pixels; every colour is a token here, so the light / dark switch needs no code. */
.c9-chart {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    width: 100%;
    min-width: 0;
    margin: 0;
    container-type: inline-size;
}

/* A narrow chart names half as many days (C9Chart.LabelClass). */
@container (max-width: 480px) {
    .c9-chart__label--dense {
        display: none;
    }
}

.c9-chart__frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--radius-6);
}

.c9-chart__frame--axis {
    grid-template-columns: auto minmax(0, 1fr);
}

.c9-chart__frame:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}

.c9-chart__plot,
.c9-chart__axis {
    display: block;
    overflow: visible;
}

.c9-chart__grid {
    stroke: var(--line);
    stroke-width: 1;
}

.c9-chart__label,
.c9-chart__axis-label,
.c9-chart__value,
.c9-chart__tip {
    font-family: var(--font-ui);
    font-size: var(--fs-12);
    font-variant-numeric: tabular-nums;
}

.c9-chart__label,
.c9-chart__axis-label {
    fill: var(--ink-3);
}

.c9-chart__value {
    fill: var(--ink-2);
    font-weight: var(--fw-semibold);
}

.c9-chart__bar--muted {
    fill: var(--brand-muted);
}

.c9-chart__bar--brand {
    fill: var(--brand);
}

.c9-chart__bar--action {
    fill: var(--action);
}

/* The bar the tip is on. */
.c9-chart__bar--active {
    stroke: var(--ink);
    stroke-width: 1.5;
}

.c9-chart__line {
    stroke-width: 2;
    stroke-linecap: round;
}

.c9-chart__line--brand {
    stroke: var(--brand);
}

.c9-chart__line--action {
    stroke: var(--action);
}

.c9-chart__line--muted {
    stroke: var(--brand-muted);
}

.c9-chart__dot {
    stroke: var(--surface);
    stroke-width: 1.5;
}

.c9-chart__dot--brand {
    fill: var(--brand);
}

.c9-chart__dot--action {
    fill: var(--action);
}

.c9-chart__dot--muted {
    fill: var(--brand-muted);
}

/* A whole day's column catches the pointer, so a short bar is as easy to hover as a tall one. */
.c9-chart__hit {
    fill: none;
    pointer-events: all;
}

/* The tip's halo is the card's own surface, so it reads over the grid lines in both themes. */
.c9-chart__tip {
    fill: var(--ink);
    font-weight: var(--fw-semibold);
    paint-order: stroke;
    stroke: var(--surface);
    stroke-width: 4px;
    stroke-linejoin: round;
    pointer-events: none;
}

.c9-chart__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-6) var(--gap-16);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-12);
    color: var(--ink-2);
}

.c9-chart__legend li {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
}

.c9-chart__swatch {
    display: inline-block;
    width: var(--gap-12);
    height: var(--gap-4);
    border-radius: var(--radius-pill);
}

.c9-chart__swatch--brand {
    background: var(--brand);
}

.c9-chart__swatch--action {
    background: var(--action);
}

.c9-chart__swatch--muted {
    background: var(--brand-muted);
}

/* The wizard's preview of the starter questions: quoted text, not chips — nothing to click there (Chrome QA 6/11). */
.c9-wz-samples {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-wz-sample {
    color: var(--ink-2);
    font-size: var(--fs-13);
    cursor: default;
}

.c9-wz-sample::before {
    content: "«";
}

.c9-wz-sample::after {
    content: "»";
}

/* «Αλλαγή κωδικού» / «Νέος χρήστης»: one form card, as wide as a form needs. */
.c9-account {
    max-width: var(--field-max);
}

/* ── Ημερολόγιο (native booking A4b-1): the pro's day and week, read-only ─────────────────────────────── */
/* The day is a table (AgendaGrid decides every cell; rowspan sizes an item, so no inline position). Colours come from
   the palette: an appointment on action-soft, a hold on brand-soft, a no-show on warn-soft, a break or a closure muted. */

.c9-cal {
    --cal-row: 28px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-16);
}

.c9-cal__bar,
.c9-cal__bar-group,
.c9-cal__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-12);
}

.c9-cal__bar {
    justify-content: space-between;
}

.c9-cal__nav {
    gap: var(--gap-4);
}

.c9-cal__step {
    display: grid;
    place-items: center;
    width: var(--touch);
    height: var(--touch);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.c9-cal__step:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.c9-cal__date {
    min-width: 200px;
    text-align: center;
    font-weight: var(--fw-bold);
}

.c9-cal__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-cal__stat {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-4);
    min-height: 30px;
    padding: 0 var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: var(--fs-13);
}

.c9-cal__stat--muted {
    background: var(--surface-2);
    color: var(--ink-2);
}

.c9-cal__body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--gap-16);
}

.c9-cal__main {
    flex: 999 1 560px;
    min-width: 0;
}

.c9-cal__panel {
    flex: 1 1 280px;
    max-width: 360px;
}

/* The day table. */
.c9-cal__board {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
}

.c9-cal__table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    table-layout: fixed;
}

.c9-cal__corner {
    width: 64px;
}

.c9-cal__staff {
    padding: var(--gap-12);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    text-align: left;
    font-weight: var(--fw-semibold);
}

.c9-cal__initial {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: var(--gap-8);
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.c9-cal__staff-name {
    vertical-align: middle;
}

.c9-cal__row {
    height: var(--cal-row);
}

.c9-cal__time {
    padding: 0 var(--gap-8);
    vertical-align: top;
    text-align: right;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: normal;
    color: var(--ink-3);
}

.c9-cal__cell {
    padding: 0;
    border-left: 1px solid var(--line);
}

.c9-cal__row--hour .c9-cal__cell {
    border-top: 1px solid var(--line);
}

.c9-cal__cell--off {
    background: var(--bg);
}

.c9-cal__cell--break {
    background: var(--surface-2);
    vertical-align: top;
}

.c9-cal__break {
    display: block;
    padding: var(--gap-4) var(--gap-8);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-cal__cell--item {
    position: relative;
    height: var(--cal-row);
}

/* An item is a button: in a table cell it fills the cell, in a list it is a row. */
.c9-cal__item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    box-sizing: border-box;
    padding: var(--gap-4) var(--gap-8);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-8);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-12);
    text-align: left;
    overflow: hidden;
    cursor: pointer;
}

.c9-cal__cell--item > .c9-cal__item {
    position: absolute;
    inset: 2px 4px;
    padding: var(--gap-2) var(--gap-8);
    line-height: var(--lh-tight);
}

/* Inset: the cell clips what sticks out. "outline: var(--focus-ring)" alone sets only a colour, so no ring drew (screen sweep 2). */
.c9-cal__item:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

/* One step tall: the name only (the row says the time; the panel says the rest). */
.c9-cal__item--short .c9-cal__item-sub {
    display: none;
}

.c9-cal__item[aria-pressed="true"] {
    border: 2px solid var(--action-text);
    background: var(--action-soft);
}

.c9-cal__item--hold {
    background: var(--brand-soft);
    color: var(--brand);
}

.c9-cal__item--noshow {
    background: var(--warn-soft);
    border-color: var(--warn-line);
    color: var(--warn-strong);
}

.c9-cal__item--closed {
    background: var(--surface-2);
    color: var(--ink-2);
}

/* Calendar sync: busy in the person's own calendar, hatched so it reads without colour; an appointment over one, the
   warning look (its line says «Σύγκρουση με Google», never the colour alone). */
.c9-cal__item--external {
    border-style: dashed;
    background: repeating-linear-gradient(45deg, var(--line) 0 4px, var(--surface-2) 4px 8px);
    color: var(--ink-2);
}

.c9-cal__item--conflict {
    background: var(--warn-soft);
    border-color: var(--warn-line);
    color: var(--warn-strong);
}

/* The panel's calendar-sync lines: where a busy time came from, a conflict with «Το ξέρω, μένει», a move with «Αναίρεση». */
.c9-cal__sync-note {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    align-items: flex-start;
}

.c9-cal__sync-line {
    margin: 0;
}

.c9-cal__item-title {
    font-weight: var(--fw-bold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c9-cal__item-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The list: a day on the phone, and each day of the week. */
.c9-cal__list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-cal__item--row {
    flex-direction: row;
    align-items: center;
    gap: var(--gap-12);
    width: 100%;
    min-height: var(--touch);
    padding: var(--gap-8) var(--gap-12);
    border-radius: var(--radius-12);
    font-size: var(--fs-14);
}

.c9-cal__item-time {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-weight: var(--fw-semibold);
}

.c9-cal__item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.c9-cal__item--row .c9-cal__item-sub {
    font-size: var(--fs-12);
    color: var(--ink-2);
}

.c9-cal__none {
    margin: 0;
    color: var(--ink-3);
    font-size: var(--fs-13);
}

.c9-cal__phone {
    display: none;
}

/* The week: seven day columns, each a list. */
.c9-cal__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: var(--gap-8);
    overflow-x: auto;
}

.c9-cal__day {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    padding: var(--gap-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-cal__day--today {
    border-color: var(--action);
}

.c9-cal__day-head {
    margin: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
}

.c9-cal__day .c9-cal__item--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--gap-6) var(--gap-8);
    font-size: var(--fs-13);
}

/* The panel. */
.c9-cal__panel-head {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-cal__panel-when {
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--action-text);
}

.c9-cal__panel-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-19);
}

.c9-cal__panel-service,
.c9-cal__panel-pick {
    margin: 0;
    color: var(--ink-2);
}

.c9-cal__facts {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--gap-8) var(--gap-12);
    margin: 0;
    font-size: var(--fs-13);
}

.c9-cal__facts dt {
    color: var(--ink-3);
}

.c9-cal__facts dd {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.c9-cal__fact-line {
    display: block;
}

.c9-cal__mono {
    font-family: var(--font-mono);
}

.c9-cal__hold-note {
    margin: 0;
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-10);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-13);
}

/* A4b-2b — the forms: a day and its free starts as chips. */
.c9-cal__picker {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-cal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-cal__chip {
    min-height: var(--touch);
    min-width: 64px;
    padding: 0 var(--gap-10);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    cursor: pointer;
}

.c9-cal__chip:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.c9-cal__chip--on {
    border-color: var(--action-text);
    background: var(--action-soft);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
}

/* A4b-2a — the panel's actions and the «are you sure?» before a cancel. */
.c9-cal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-8);
}

.c9-cal__confirm {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-10);
    background: var(--warn-soft);
    color: var(--warn-strong);
    font-size: var(--fs-13);
}

/* Calendar polish (John's mockup, 11/11): where an appointment came from, told apart by lightness and not by hue alone —
   the phone solid brand, the chat a soft teal with a border, «από εσάς» neutral with a border — and «Ακυρώθηκε». */
.c9-cal__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 1px var(--gap-6);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: var(--fs-11);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    white-space: nowrap;
    text-decoration: none;
}

.c9-cal__badge--phone {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand-solid);
}

.c9-cal__badge--chat {
    border-color: var(--action-line);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-cal__badge--manual {
    border-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--ink-2);
}

.c9-cal__badge--canceled {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink-3);
}

/* An item's first line: the name, and the badge at its end. */
.c9-cal__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-6);
    min-width: 0;
}

.c9-cal__item-head > .c9-cal__item-title {
    min-width: 0;
}

.c9-cal__item--row > .c9-cal__badge {
    margin-left: auto;
}

/* A canceled appointment (shown on request): faded and struck through, never only by colour. */
.c9-cal__item--canceled {
    border-style: dashed;
    background: var(--surface-2);
    color: var(--ink-3);
}

.c9-cal__item--canceled .c9-cal__item-title,
.c9-cal__item--canceled .c9-cal__item-sub,
.c9-cal__item--canceled .c9-cal__item-time {
    text-decoration: line-through;
}

/* The legend and «Εμφάνιση ακυρωμένων». */
.c9-cal__strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-8) var(--gap-16);
    padding: var(--gap-8) var(--gap-14);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-cal__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8) var(--gap-12);
    font-size: var(--fs-13);
}

.c9-cal__legend-title,
.c9-cal__legend-busy {
    color: var(--ink-3);
}

.c9-cal__legend-busy {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
}

/* A future external busy block (Google / Outlook): hatched, so it reads without colour. */
.c9-cal__busy-sample {
    width: 26px;
    height: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-6);
    background: repeating-linear-gradient(45deg, var(--line) 0 4px, var(--surface-2) 4px 8px);
}

.c9-cal__conflict-sample {
    width: 26px;
    height: 14px;
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-6);
    background: var(--warn-soft);
}

.c9-cal__show-canceled {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-8);
    min-height: var(--touch);
    font-size: var(--fs-13);
    cursor: pointer;
}

/* The week: a day nobody works is muted and dashed. */
.c9-cal__day--closed {
    border-style: dashed;
    background: var(--surface-2);
}

.c9-cal__closed-title {
    margin: 0;
    font-weight: var(--fw-semibold);
    color: var(--ink-2);
}

/* The panel's top: what and when, then the badge (and the sheet's ✕). */
.c9-cal__panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap-8);
}

.c9-cal__panel-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--gap-8);
}

/* Large team (John, 11/11): «Άτομα», a multi-select with a search. */
.c9-cal__people {
    position: relative;
}

.c9-cal__people-button {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    min-height: var(--touch);
}

.c9-cal__people-label {
    color: var(--ink-3);
}

.c9-cal__people-summary {
    font-weight: var(--fw-semibold);
}

.c9-cal__people-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.c9-cal__people-pop {
    position: absolute;
    top: calc(100% + var(--gap-4));
    right: 0;
    z-index: 41;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    width: min(320px, calc(100vw - 32px));
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}

.c9-cal__people-modes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-cal__people-mode,
.c9-cal__name-chip {
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-13);
    white-space: nowrap;
    cursor: pointer;
}

.c9-cal__people-mode[aria-pressed="true"],
.c9-cal__name-chip--on {
    border-color: var(--action-text);
    background: var(--action-soft);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
}

.c9-cal__people-mode:focus-visible,
.c9-cal__name-chip:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.c9-cal__people-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-cal__people-person {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--touch);
    cursor: pointer;
}

/* Past six columns the day scrolls inside its own box: 140-px columns, the times fixed left and the names fixed on top. */
.c9-cal__board--wide {
    max-height: 72vh;
    overflow: auto;
}

.c9-cal__board--wide .c9-cal__table {
    width: auto;
    min-width: 100%;
    table-layout: auto;
}

.c9-cal__board--wide .c9-cal__staff {
    width: 140px;
    min-width: 140px;
}

.c9-cal__board--wide .c9-cal__corner,
.c9-cal__board--wide .c9-cal__time {
    width: 64px;
    min-width: 64px;
}

.c9-cal__sticky-top {
    position: sticky;
    top: 0;
    z-index: 2;
}

.c9-cal__sticky-left {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
}

.c9-cal__sticky-top.c9-cal__sticky-left {
    z-index: 3;
    background: var(--surface-2);
}

/* SKILLS §8 (John's OK, 11/11) — the «Ομάδα» view: people as rows, hours across. The table is AgendaGrid's day drawn
   sideways (colspan), so these rules only size and colour it: the names column and the hours row stay put while the box
   scrolls, the «now» step is one <col>, «Όλη η μέρα» fits the day and «Λεπτομέρεια» keeps each step's width. */
.c9-team__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10) var(--gap-16);
    margin-bottom: var(--gap-12);
    padding: var(--gap-10) var(--gap-14);
}

.c9-team__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
}

.c9-team__filter--end {
    margin-left: auto;
}

/* The quick groups from the skills: its chips may take the row's free width and wrap. */
.c9-team__filter--skills {
    flex: 1 1 auto;
    min-width: 0;
}

.c9-team__filter-label {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-team__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-team__count {
    margin-left: var(--gap-4);
    font-weight: normal;
    color: var(--ink-3);
}

.c9-team__search {
    width: 210px;
}

.c9-team__board {
    max-height: 72vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-14);
    background: var(--surface);
}

.c9-team__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.c9-team__col-person {
    width: 240px;
}

/* «Λεπτομέρεια»: the table is as wide as its <col>s (240 px + 160 px an hour), never widened by an item's text. */
.c9-team__board--detail .c9-team__table {
    width: max-content;
}

.c9-team__board--detail .c9-team__cell,
.c9-team__board--detail .c9-team__hour {
    max-width: 0;
    overflow: hidden;
}

.c9-team__board--detail .c9-team__table--s15 .c9-team__col {
    width: 40px;
}

.c9-team__board--detail .c9-team__table--s30 .c9-team__col {
    width: 80px;
}

.c9-team__col--now {
    background: var(--action-soft);
}

.c9-team__corner,
.c9-team__hour {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: var(--gap-8) var(--gap-6);
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    text-align: left;
    font-size: var(--fs-12);
    color: var(--ink-2);
}

.c9-team__corner {
    left: 0;
    z-index: 3;
    font-weight: var(--fw-semibold);
}

.c9-team__hour {
    border-left: 1px solid var(--line);
    font-family: var(--font-mono);
    font-weight: normal;
}

.c9-team__row {
    height: 60px;
}

.c9-team__person {
    position: sticky;
    left: 0;
    z-index: 1;
    padding: var(--gap-8) var(--gap-12);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    text-align: left;
    font-weight: normal;
}

.c9-team__person-top,
.c9-team__person-sub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--gap-8);
}

.c9-team__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: var(--fw-semibold);
}

.c9-team__hours,
.c9-team__skills {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-team__free {
    white-space: nowrap;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--action-text);
}

.c9-team__cell {
    padding: 2px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.c9-team__cell--off {
    background: var(--bg);
}

.c9-team__cell--break {
    background: var(--surface-2);
}

/* A cell holding an appointment: the item fills it edge to edge. */
.c9-team__cell--item {
    padding: 1px;
}

/* A free cell: its «+» button opens «Νέο ραντεβού» for that person and time. */
.c9-team__cell--free {
    background: var(--surface);
}

.c9-team__break {
    padding: 0 var(--gap-6);
    white-space: nowrap;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-team__item {
    width: 100%;
    min-height: 48px;
    overflow: hidden;
    text-align: left;
}

.c9-team__item .c9-cal__item-title,
.c9-team__item .c9-cal__item-sub {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* «Όλη η μέρα»: a 30′ step is narrow, so an item keeps its time and name and leaves its source badge to «Λεπτομέρεια». */
.c9-team__board:not(.c9-team__board--detail) .c9-team__item .c9-cal__badge {
    display: none;
}

.c9-team__gap {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: transparent;
    cursor: pointer;
}

.c9-team__gap:hover,
.c9-team__gap:focus-visible {
    outline: 1px dashed var(--action);
    background: var(--action-soft);
    color: var(--action-text);
}

.c9-team__gap-plus {
    font-weight: var(--fw-bold);
}

/* The phone: «who is free», grouped (decision D); the table is for a wide screen. */
.c9-team__phone {
    display: none;
}

.c9-team__group {
    margin-bottom: var(--gap-14);
}

.c9-team__group-title {
    margin: 0 0 var(--gap-6);
    text-transform: uppercase;
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    color: var(--ink-2);
}

.c9-team__group-title--free {
    color: var(--action-text);
}

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

.c9-team__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-10);
    width: 100%;
    min-height: 56px;
    padding: var(--gap-8) var(--gap-14);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.c9-team__lines li:last-child .c9-team__line {
    border-bottom: 0;
}

.c9-team__line-who,
.c9-team__line-state {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.c9-team__line-state {
    align-items: flex-end;
    text-align: right;
}

.c9-team__state {
    font-weight: var(--fw-semibold);
}

.c9-team__state--free {
    color: var(--action-text);
}

.c9-team__line-sub {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-cal__people-groups-title {
    margin: var(--gap-8) 0 var(--gap-4);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

@media (max-width: 720px) {
    .c9-team__board,
    .c9-team__wide-only,
    .c9-team__filter--end .c9-segmented {
        display: none;
    }

    .c9-team__phone {
        display: block;
    }

    .c9-team__filter--end {
        margin-left: 0;
    }
}

/* The phone: one person at a time, the names as a row that scrolls sideways. */
.c9-cal__name-chips {
    display: flex;
    gap: var(--gap-6);
    margin-bottom: var(--gap-10);
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.c9-cal__name-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* The phone's bottom sheet: hidden on a wide screen (the panel beside the day shows the same). */
.c9-cal__sheet,
.c9-cal__sheet-scrim {
    display: none;
}

.c9-cal__sheet-grip {
    align-self: center;
    width: 40px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
}

/* The phone: the day becomes the list (the mockup's «Η μέρα μου»), the week's columns stack and the details open as a
   bottom sheet over the list. */
@media (max-width: 720px) {
    .c9-cal__board {
        display: none;
    }

    .c9-cal__phone {
        display: block;
    }

    .c9-cal__week {
        grid-template-columns: 1fr;
    }

    .c9-cal__panel {
        max-width: none;
    }

    .c9-cal__panel--details {
        display: none;
    }

    .c9-cal__sheet-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: var(--scrim);
    }

    .c9-cal__sheet {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        gap: var(--gap-12);
        max-height: 85vh;
        overflow-y: auto;
        padding: var(--gap-10) var(--gap-16) var(--gap-20);
        border-top: 1px solid var(--line);
        border-radius: var(--radius-14) var(--radius-14) 0 0;
        background: var(--surface);
        box-shadow: var(--shadow-pop);
    }

    .c9-cal__people-pop {
        right: auto;
        left: 0;
    }

    .c9-cal__sheet .c9-cal__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ── Ραντεβού: the native Setup board (booking A4b-3b): the preset row, the staff list, the services table, the dialogs'
   picks and the weekly hours. Dialogs are the shared c9-drawer; the table is the shared c9-table. ── */

/* A card's title with its «+ Πρόσθεσε» beside it (below it on a phone). */
/* F10 — «Η τιμή είναι ελάχιστη («από»)» under the service's price. */
.c9-bs-check {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--touch);
    cursor: pointer;
}

.c9-bs-head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    justify-content: space-between;
}

.c9-bs-head > .c9-card__title {
    margin: 0;
}

/* «Πρότυπο από τον κλάδο: Κομμωτήριο · Άλλαξε πρότυπο». */
.c9-bs-preset {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
}

.c9-bs-preset__name {
    flex: 1 1 160px;
    min-width: 0;
    font-weight: var(--fw-semibold);
    overflow-wrap: anywhere;
}

/* The staff list: a person per row, their tags, «Επεξεργασία». */
.c9-bs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.c9-bs-list__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
    padding: var(--gap-10) 0;
    border-top: 1px solid var(--line);
}

.c9-bs-list__row:first-child {
    border-top: 0;
}

.c9-bs-list__row--off .c9-bs-list__main,
.c9-bs-row--off > td {
    color: var(--ink-3);
}

.c9-bs-list__main {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.c9-bs-list__name {
    font-weight: var(--fw-semibold);
    overflow-wrap: anywhere;
}

.c9-bs-list__meta {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-bs-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

/* A small label on a row: «Ωράριο επιχείρησης», «Ανενεργό», «Κανείς». */
.c9-bs-tag {
    display: inline-block;
    padding: var(--gap-2) var(--gap-8);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--fs-12);
    white-space: nowrap;
}

.c9-bs-tag--off {
    color: var(--ink-3);
}

.c9-bs-tag--warn {
    background: var(--warn-soft);
    color: var(--warn-strong);
}

.c9-bs-list__name + .c9-bs-tag {
    margin-left: var(--gap-8);
}

/* A row's name that opens its dialog (the services table): the first column, so it is on screen on a phone. */
.c9-bs-name-edit {
    padding: 0;
    text-align: start;
}

/* Short number fields (minutes, a price, a priority). */
.c9-bs-number {
    max-width: 120px;
}

/* Two fields side by side (Διάρκεια · Κενό μετά); stacked on a phone. */
.c9-bs-pair {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-12);
}

.c9-bs-pair > .c9-field {
    flex: 1 1 140px;
}

/* Toggle chips: «Ποιος την κάνει» (one per person) and the presets of «Άλλαξε πρότυπο». */
.c9-bs-picks,
.c9-bs-choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-bs-pick {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    cursor: pointer;
}

.c9-bs-pick--on {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: var(--fw-semibold);
}

.c9-bs-pick__now {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* A dialog's buttons, at its end. */
.c9-bs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    justify-content: flex-end;
    margin-top: auto;
    padding-top: var(--gap-12);
}

/* The weekly hours: a day per row, its «Ανοιχτά» and its from–to. */
.c9-bs-week {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-bs-week__day {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-12);
    align-items: center;
}

.c9-bs-week__name {
    flex: 0 0 96px;
    font-weight: var(--fw-semibold);
}

.c9-bs-week__times {
    display: inline-flex;
    gap: var(--gap-6);
    align-items: center;
}

.c9-bs-week__time {
    width: 72px;
}

.c9-bs-week__closed {
    color: var(--ink-3);
}

/* A4b-3c — the settings cards: a sub-heading inside a card, a built-in field with its mode, the business's questions. */
.c9-bs-subtitle {
    margin: var(--gap-8) 0 0;
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
}

/* After the appointment — «Δείτε τα μηνύματα»: the server's own message text, as written (line breaks kept). */
.c9-bs-preview {
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.c9-bs-mode {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6) var(--gap-12);
    align-items: center;
}

.c9-bs-mode > .c9-field__label {
    flex: 0 0 120px;
}

/* A5c — «Στο κινητό σου»: the replace-the-link confirmation inline on its row, and the link shown once under it. */
.c9-bs-confirm {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    font-size: var(--fs-13);
    color: var(--warn-strong);
}

.c9-bs-feed-link {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-8);
}

.c9-bs-feed-link > .c9-field {
    align-self: stretch;
}

/* «Τα ραντεβού στο κινητό σας»: «Για ποιον» (one option per business / person, wrapping on a phone), then the link's three
   steps with the chosen one's state and button. */
.c9-bs-who {
    flex-wrap: wrap;
    max-width: 100%;
}

.c9-bs-link-flow {
    display: flex;
    flex-direction: column;
    gap: var(--gap-12);
}

.c9-bs-steps {
    margin: 0;
    padding-left: var(--gap-20);
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

.c9-bs-feed {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8) var(--gap-12);
    align-items: center;
}

/* Calendar sync (CALENDAR-SYNC-DESIGN §7): the chosen one's connection inside that card. */
.c9-sync {
    display: flex;
    flex-direction: column;
    gap: var(--gap-14);
    padding: var(--gap-16) var(--gap-18);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-sync__account {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-10) var(--gap-14);
    align-items: center;
    justify-content: space-between;
}

.c9-sync__who {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
    min-width: 0;
}

.c9-sync__name {
    margin: 0;
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.c9-sync__meta {
    font-size: var(--fs-13);
    color: var(--ink-3);
    overflow-wrap: anywhere;
}

.c9-sync__option-head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
    justify-content: space-between;
}

.c9-sync__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
    align-items: center;
}

.c9-sync__facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--gap-8) var(--gap-16);
    margin: 0;
    font-size: var(--fs-14);
}

.c9-sync__facts > dt {
    color: var(--ink-3);
}

.c9-sync__facts > dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-sync__invite,
.c9-sync__calendars {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.c9-sync__calendar {
    display: flex;
    gap: var(--gap-10);
    align-items: center;
    min-height: var(--touch);
    font-size: var(--fs-14);
    cursor: pointer;
}

.c9-sync__confirm {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    align-items: flex-start;
}

/* On a phone the facts stack: the label over its value. */
@media (max-width: 640px) {
    .c9-sync__facts {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gap-2);
    }

    .c9-sync__facts > dd {
        margin-bottom: var(--gap-8);
    }
}

/* ── SKILLS: «Ειδικότητες» (SKILLS-DESIGN §5): the card's rows, the one-line form, a person's skill chips and checkboxes,
   the services table's «Ειδικότητα · ποιοι». Rows reuse c9-bs-list, chips c9-bs-tag. ── */

/* A skill's row: its name, its people (chips), «N υπηρεσίες», «Μετονομασία»; wraps on a phone. */
.c9-sk-row__name {
    flex: 1 1 140px;
    min-width: 0;
}

.c9-sk-row__people {
    flex: 2 1 220px;
    min-width: 0;
    align-items: center;
}

/* 2+ people, one skill: «Όλοι: Κουρέας · + Προσθέστε ειδικότητα». */
.c9-sk-one {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-4) var(--gap-8);
    align-items: center;
    margin: 0;
}

.c9-sk-one__add {
    padding: 0 var(--gap-6);
}

/* A person's skills on the staff list (they replaced the free «ρόλος»). */
.c9-sk-chip {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: var(--fw-semibold);
}

/* The person dialog's «Ειδικότητες»: one checkbox row per skill, a full tap target each. */
.c9-sk-fieldset {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.c9-sk-checks {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-sk-check {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    cursor: pointer;
}

.c9-sk-check--on {
    border-color: var(--brand);
    background: var(--brand-soft);
}

/* The skill dialog's «Διαγραφή» sits at the start, away from «Αποθήκευση». */
.c9-sk-delete {
    margin-right: auto;
}

/* The services table: «Βαφή · Μαρία, Κώστας», the people muted. */
.c9-sk-cell__skill {
    font-weight: var(--fw-semibold);
}

.c9-sk-cell__who {
    color: var(--ink-3);
}

/* ── «Βοηθός ρυθμίσεων», phase A (CONFIG-ASSISTANT-A; the approved mockup's layout, these tokens) ────────────── */

/* The top bar's opener: an icon and «Βοηθός»; the icon alone on a phone (its aria-label keeps the name). */
.c9-topbar__assistant {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-6);
    min-width: var(--touch);
    min-height: var(--touch);
    padding: 0 var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-topbar__assistant .c9-icon {
    color: var(--action-text);
}

.c9-topbar__assistant:hover {
    border-color: var(--action);
}

@media (min-width: 901px) {
    .c9-topbar .c9-topbar__assistant {
        min-height: 34px;
    }
}

@media (max-width: 900px) {
    .c9-topbar__assistant {
        padding: 0;
    }

    .c9-topbar__assistant-text {
        display: none;
    }
}

/* With the opener the bar's end is five touch targets: under 420 px they sit closer, so 375 px never scrolls sideways. */
@media (max-width: 420px) {
    .c9-topbar {
        gap: var(--gap-8);
    }

    .c9-topbar__end {
        gap: var(--gap-4);
    }
}

/* The panel: a side panel over a scrim, ~448 px and full height; the whole screen on a phone. Above the drawers. */
.c9-as-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--scrim);
}

.c9-as {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 71;
    width: min(448px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
}

.c9-as__head {
    display: flex;
    align-items: center;
    gap: var(--gap-10);
    padding: var(--gap-12) var(--gap-18);
    border-bottom: 1px solid var(--line);
}

.c9-as__mark {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-10);
    background: var(--brand-gradient);
    color: var(--on-brand);
    display: grid;
    place-items: center;
}

.c9-as__mark .c9-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.c9-as__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.c9-as__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-15);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-tight);
}

.c9-as__subtitle {
    margin: 0;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-as__close {
    margin-left: 0;
}

.c9-as__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: var(--gap-16) var(--gap-18);
}

.c9-as__intro {
    margin: 0;
    color: var(--ink-2);
}

.c9-as__log {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-18);
}

.c9-as__exchange {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    scroll-margin-top: var(--gap-12);
}

/* The owner's question, on the right (the mockup's bubble). */
.c9-as__owner {
    align-self: flex-end;
    max-width: 85%;
    margin: 0;
    padding: var(--gap-10) var(--gap-12);
    border-radius: var(--radius-12);
    background: var(--surface-2);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.c9-as__status {
    margin: 0;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-as__error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-10);
    padding: var(--gap-10) var(--gap-12);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-10);
    background: var(--warn-soft);
    color: var(--warn-strong);
    font-size: var(--fs-14);
}

.c9-as__foot {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    padding: var(--gap-12) var(--gap-18) var(--gap-16);
    border-top: 1px solid var(--line);
}

.c9-as__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-as__chip {
    min-height: 36px;
    padding: 0 var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-13);
    cursor: pointer;
}

.c9-as__chip:hover {
    border-color: var(--action);
    color: var(--action-text);
}

.c9-as__chip:disabled,
.c9-as-choice:disabled {
    cursor: progress;
    opacity: 0.6;
}

.c9-as__ask {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
    padding: var(--gap-2) var(--gap-4) var(--gap-2) var(--gap-12);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-12);
    background: var(--surface);
}

/* The field's own ring is the box's: the whole row lights up while the question is typed. */
.c9-as__ask:focus-within {
    border-color: var(--focus-ring);
    outline: 2px solid var(--focus-ring);
    outline-offset: 0;
}

.c9-as__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: var(--touch);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.c9-as__input:focus-visible {
    outline: none;
}

.c9-as__send {
    flex: 0 0 auto;
    width: var(--touch);
    height: var(--touch);
    border: 0;
    border-radius: var(--radius-10);
    background: var(--action);
    color: var(--on-action);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.c9-as__send:disabled {
    background: var(--surface-2);
    color: var(--ink-3);
    cursor: default;
}

@media (max-width: 900px), (pointer: coarse) {
    .c9-as__chip {
        min-height: var(--touch);
    }
}

/* One answer, in the DTO's order: the text, the cards, the choices, the links, the proposals. */
.c9-as-answer {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-as-answer__text {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.c9-as-turn {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-as-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.c9-as-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--gap-4) var(--gap-10);
    padding: var(--gap-8) var(--gap-12);
    background: var(--surface-2);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    color: var(--ink-2);
}

.c9-as-card__threshold {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--gap-6);
}

.c9-as-card__current {
    font-weight: normal;
    color: var(--ink-3);
}

.c9-as-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    padding: var(--gap-8) var(--gap-12);
}

/* PINNED FACTS PR3 — «Οι επισκέπτες ρωτούν N φορές: …» and its «Πρόσθεσε στα βασικά στοιχεία». */
.c9-as-suggestion {
    align-items: flex-start;
    gap: var(--gap-8);
}

.c9-as-suggestion__text {
    margin: 0;
    font-size: var(--fs-14);
    line-height: var(--lh-body);
    color: var(--ink);
}

.c9-as-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c9-as-candidate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--gap-8);
    padding: var(--gap-8) var(--gap-12);
    border-top: 1px solid var(--line);
    font-size: var(--fs-13);
}

.c9-as-candidate__what {
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-as-candidate__score {
    font-family: var(--font-mono);
    font-weight: var(--fw-semibold);
}

.c9-as-candidate__chip {
    justify-self: end;
    padding: var(--gap-2) var(--gap-8);
    font-size: var(--fs-12);
    white-space: nowrap;
}

/* The question and the reply the turn card is about. */
.c9-as-said {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--gap-4) var(--gap-10);
    padding: var(--gap-8) var(--gap-12);
    font-size: var(--fs-13);
}

.c9-as-said dt {
    font-weight: var(--fw-semibold);
    color: var(--ink-3);
}

.c9-as-said dd {
    margin: 0;
}

/* Visitor text (a question, a reply, a query): plain text in its own element, never typed quotes around it. */
.c9-as-quote {
    color: var(--ink);
    font-weight: var(--fw-semibold);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.c9-as-fact {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-4) var(--gap-6);
    font-size: var(--fs-13);
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.c9-as-fact--quiet {
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-as-tool {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    padding: var(--gap-8) var(--gap-12);
    border-top: 1px solid var(--line);
    font-size: var(--fs-13);
}

.c9-as-tool__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
}

.c9-as-tool__name {
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.c9-as-tool__ms {
    font-family: var(--font-mono);
    color: var(--ink-3);
}

.c9-as-tool__summary {
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.c9-as-tool__label {
    font-weight: var(--fw-semibold);
}

/* A tool's arguments / result, pretty-printed (AssistantText.Readable): wraps, scrolls past a few lines. */
.c9-as-tool__json {
    margin: 0;
    padding: var(--gap-8);
    max-height: 240px;
    overflow: auto;
    border-radius: var(--radius-8);
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.c9-as-shown {
    margin: 0;
    padding-left: var(--gap-16);
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

/* «Τι έλεγξα»: a setting and its value; a value the check found wrong is in the warn colour. */
.c9-as-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--gap-4) var(--gap-10);
    padding: var(--gap-8) var(--gap-12);
    border-top: 1px solid var(--line);
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

.c9-as-pair__value {
    font-weight: var(--fw-semibold);
}

.c9-as-pair__value--warn {
    color: var(--warn-strong);
}

.c9-as-pair__value--mono {
    font-family: var(--font-mono);
    font-weight: normal;
}

.c9-as-choices,
.c9-as-links {
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-as-choice,
.c9-as-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-10);
    min-height: var(--touch);
    padding: var(--gap-6) var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    background: var(--surface);
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
}

.c9-as-choice {
    color: var(--ink);
    cursor: pointer;
}

.c9-as-choice__at {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-as-link {
    color: var(--action-text);
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.c9-as-choice:hover,
.c9-as-link:hover {
    border-color: var(--action);
    background: var(--action-soft);
}

.c9-as-link__go {
    flex: 0 0 auto;
}

/* The proposal (the mockup's «Πρόταση αλλαγής» box, phase B): what would change; an applyable one has «Εφαρμογή» /
   «Όχι τώρα» and the promise line, then «Έγινε: …» with «Αναίρεση». The same card in the panel and in the checks bar. */
.c9-as-proposal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-8);
    padding: var(--gap-12);
    border: 1px solid var(--action);
    border-radius: var(--radius-12);
    background: var(--action-soft);
}

.c9-as-proposal__title {
    font-weight: var(--fw-semibold);
}

.c9-as-proposal__change,
.c9-as-proposal__done {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--gap-6);
    font-size: var(--fs-13);
    overflow-wrap: anywhere;
}

.c9-as-proposal__done {
    font-size: var(--fs-14);
}

.c9-as-proposal__from {
    color: var(--ink-3);
}

.c9-as-proposal__to {
    text-decoration: none;
    font-weight: var(--fw-semibold);
}

/* An empty value reads «κενό», in italics. */
.c9-as-proposal__empty {
    font-style: italic;
    font-weight: normal;
}

.c9-as-proposal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-8);
}

.c9-as-proposal__note {
    margin: 0;
    font-size: var(--fs-12);
    color: var(--ink-2);
}

.c9-as-proposal__error {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8);
    font-size: var(--fs-13);
    color: var(--warn-strong);
}

/* «Ιστορικό αλλαγών»: a small expandable section at the foot of the conversation. */
.c9-as-history {
    margin-top: var(--gap-18);
    padding-top: var(--gap-12);
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-as-history__toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-6);
    min-height: var(--touch);
    padding: 0 var(--gap-4);
    border: 0;
    background: none;
    color: var(--action-text);
    font: inherit;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}

.c9-as-history__toggle[aria-expanded="true"] .c9-icon {
    transform: rotate(180deg);
}

.c9-as-history__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
}

.c9-as-history__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-6);
}

.c9-as-history__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-6) var(--gap-10);
    padding: var(--gap-8) var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-10);
    font-size: var(--fs-13);
}

.c9-as-history__what {
    flex: 1 1 200px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.c9-as-history__at {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

/* The panel's intro: «Έλεγχος τώρα» and when the last check ran (phase C). */
.c9-as__checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-8) var(--gap-12);
    margin-top: var(--gap-12);
}

.c9-as__checked {
    font-size: var(--fs-13);
    color: var(--ink-3);
}

/* ── The automatic-check bar (CONFIG-ASSISTANT phase C): under the top bar, one line that expands ────────────── */
.c9-checks {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: var(--action-soft);
}

.c9-checks--warn {
    border-bottom-color: var(--warn-line);
    background: var(--warn-soft);
}

.c9-checks__line {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
    min-width: 0;
    padding: 0 var(--gap-20);
}

.c9-checks__toggle {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-8);
    min-height: var(--touch);
    padding: 0;
    border: 0;
    background: none;
    color: var(--action-text);
    font: inherit;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    text-align: left;
    cursor: pointer;
}

.c9-checks--warn .c9-checks__toggle {
    color: var(--warn-strong);
}

.c9-checks__count {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c9-checks__toggle .c9-icon {
    flex: 0 0 auto;
}

.c9-checks__toggle[aria-expanded="true"] .c9-icon:last-child {
    transform: rotate(180deg);
}

.c9-checks__run {
    flex: 0 0 auto;
}

.c9-checks__body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
    padding: 0 var(--gap-20) var(--gap-16);
}

.c9-checks__when,
.c9-checks__error {
    margin: 0;
    font-size: var(--fs-13);
    color: var(--ink-3);
}

.c9-checks__error {
    color: var(--warn-strong);
}

.c9-checks__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

.c9-checks__item {
    display: flex;
    flex-direction: column;
    gap: var(--gap-8);
    max-width: 760px;
    padding: var(--gap-12);
    border: 1px solid var(--line);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.c9-checks__item--warn {
    border-color: var(--warn-line);
}

.c9-checks__head {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
}

.c9-checks__title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: var(--fw-semibold);
    overflow-wrap: anywhere;
}

.c9-checks__ai {
    flex: 0 0 auto;
    font-size: var(--fs-12);
}

.c9-checks__dismiss {
    margin-left: 0;
}

.c9-checks__text {
    margin: 0;
    font-size: var(--fs-14);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.c9-checks__quote {
    margin: 0;
    padding: var(--gap-6) var(--gap-10);
    border-radius: var(--radius-8);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: var(--fs-13);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.c9-checks__confirm {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .c9-checks__line,
    .c9-checks__body {
        padding-left: var(--gap-16);
        padding-right: var(--gap-16);
    }
}

/* «Ρώτα τον βοηθό για αυτή τη συζήτηση» in the trace drawer. */
.c9-inbox__ask {
    align-self: flex-start;
}

/* Γνώση › «Για προχωρημένους»: the thresholds as one block (#kn-threshold). */
.c9-kn-admin__group {
    display: flex;
    flex-direction: column;
    gap: var(--gap-10);
}

/* A link to a card (#anchor, js/fragment.js): the sticky bar never covers it, and it is ringed for a moment. */
.c9-main__inner [id] {
    scroll-margin-top: calc(var(--header-h) + var(--gap-16));
}

.c9-reveal,
.c9-reveal:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
    animation: c9-reveal 2.5s ease-out forwards;
}

@keyframes c9-reveal {
    0%,
    60% {
        outline-color: var(--focus-ring);
    }

    100% {
        outline-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c9-reveal,
    .c9-reveal:focus {
        animation: none;
    }
}

/* Dictation (DICTATION-DESIGN): the mic and the EL/EN chip beside a box, the status line and the warning under it. The mic is
   grey; asking = soft teal; listening = FILLED with a pulsing ring (never colour alone: the clock and the level beside it say
   it too); a problem = the warning amber; a browser without dictation = a muted dashed mic. The palette has no red. */
.c9-dictation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-6);
    flex: 0 0 auto;
}

.c9-dictation--inline {
    flex-direction: row;
}

.c9-dictation__mic {
    position: relative;
    width: var(--touch);
    height: var(--touch);
    padding: 0;
    flex: 0 0 auto;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-dictation__mic .c9-icon {
    width: 20px;
    height: 20px;
}

.c9-dictation__mic:hover {
    color: var(--ink);
    border-color: var(--off);
}

.c9-dictation__mic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.c9-dictation__slash {
    display: none;
}

.c9-dictation[data-state="asking"] .c9-dictation__mic {
    color: var(--action-text);
    border-color: var(--action-line);
    background: var(--action-soft);
    cursor: progress;
}

.c9-dictation[data-state="asking"] .c9-icon {
    animation: c9-pulse 1s ease-in-out infinite;
}

.c9-dictation[data-state="listening"] .c9-dictation__mic {
    background: var(--action);
    border-color: var(--action);
    color: var(--on-action);
}

.c9-dictation[data-state="listening"] .c9-dictation__mic::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--action);
    opacity: 0.55;
    pointer-events: none;
    animation: c9-dictation-ring 1.5s ease-out infinite;
}

.c9-dictation[data-state="blocked"] .c9-dictation__mic,
.c9-dictation[data-state="nomic"] .c9-dictation__mic,
.c9-dictation[data-state="unavailable"] .c9-dictation__mic {
    color: var(--warn-strong);
    background: var(--warn-soft);
    border-color: var(--warn-line);
}

.c9-dictation[data-state="blocked"] .c9-dictation__slash,
.c9-dictation[data-state="nomic"] .c9-dictation__slash {
    display: block;
}

.c9-dictation[data-state="unsupported"] .c9-dictation__mic {
    color: var(--off);
    border-style: dashed;
    opacity: 0.75;
    cursor: default;
}

.c9-dictation__lang {
    min-width: 36px;
    height: 24px;
    padding: 0 var(--gap-8);
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-11);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    cursor: pointer;
}

.c9-dictation__lang:hover {
    color: var(--ink);
    border-color: var(--off);
}

.c9-dictation__status {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-4) var(--gap-10);
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.c9-dictation__rec {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-8);
    color: var(--action-text);
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
}

.c9-dictation__level {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-2);
    height: 14px;
}

.c9-dictation__level i {
    display: block;
    width: 3px;
    height: 4px;
    border-radius: var(--gap-2);
    background: var(--action);
    animation: c9-dictation-level 0.9s ease-in-out infinite;
}

.c9-dictation__level i:nth-child(2) {
    animation-delay: 0.15s;
}

.c9-dictation__level i:nth-child(3) {
    animation-delay: 0.3s;
}

.c9-dictation__level i:nth-child(4) {
    animation-delay: 0.45s;
}

.c9-dictation__note {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
}

.c9-dictation__steps {
    margin: var(--gap-2) 0 0;
    padding-left: var(--gap-20);
}

/* The box being dictated into: the composer says so with an action border (set by js/dictation.js while it listens). */
[data-dictation-scope][data-dictating] .c9-textarea,
[data-dictation-scope][data-dictating] .c9-input {
    border-color: var(--action);
    box-shadow: 0 0 0 3px var(--action-soft);
}

@keyframes c9-dictation-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes c9-dictation-level {
    0%,
    100% { height: 4px; }
    50% { height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .c9-dictation[data-state="asking"] .c9-icon,
    .c9-dictation[data-state="listening"] .c9-dictation__mic::after,
    .c9-dictation__level i {
        animation: none;
    }

    .c9-dictation__level i {
        height: 10px;
    }

    .c9-dictation[data-state="listening"] .c9-dictation__mic::after {
        opacity: 0.5;
        transform: scale(1.12);
    }
}
