/* HP Content Review — minimal base styles. Bude nahrazeno design systémem v Phase 1. */

:root {
    --c-bg: #f5f6f8;
    --c-surface: #ffffff;
    --c-border: #dfe3e8;
    --c-text: #1a1f2b;
    --c-muted: #5b6470;
    --c-brand: #1d3a78;      /* HP navy */
    --c-accent: #c69b4e;     /* HP gold */
    --c-ok: #1f7a3a;
    --c-fail: #b3261e;
    --c-warn: #b2700f;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(20, 25, 35, .06);
    --gap: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.5;
}

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

.layout { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    background: var(--c-brand);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow);
}
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.05rem; }
.topbar__nav { display: flex; gap: 16px; flex: 1; }
.topbar__nav a:hover { text-decoration: underline; }
.topbar__user { display: flex; gap: 12px; align-items: center; }
.btn-link { background: none; border: 0; cursor: pointer; padding: 0; }

/* ===== AI Model switcher v topbaru ===== */
.model-switcher { position: relative; }
.model-switcher__trigger {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-family: inherit;
}
.model-switcher__trigger:hover { background: rgba(255, 255, 255, .2); }
.model-switcher__label { font-weight: 500; }
.model-switcher__caret { opacity: .7; font-size: .75rem; }

.model-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 320px;
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(20, 25, 35, .15);
    z-index: 100;
    max-height: 540px;
    overflow-y: auto;
}

.model-switcher__group { border-bottom: 1px solid var(--c-border); }
.model-switcher__group:last-child { border-bottom: 0; }
.model-switcher__group-head {
    background: var(--c-bg);
    padding: 6px 14px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-muted);
}

/* Override .topbar a { color: #fff } — dropdown stojí uvnitř topbaru. */
.topbar .model-switcher__menu a,
.model-switcher__item {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-bg);
    transition: background-color .1s;
}
.model-switcher__item:last-child { border-bottom: 0; }
.topbar .model-switcher__menu a:hover,
.model-switcher__item:hover { background: var(--c-bg); color: var(--c-text); }
.topbar .model-switcher__menu a.is-current,
.model-switcher__item.is-current { background: #e8f0fc; color: var(--c-brand); font-weight: 500; }
.model-switcher__item.is-unavailable {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}
.model-switcher__item.is-switching { opacity: .5; pointer-events: none; }

.model-switcher__item-main { display: flex; align-items: center; gap: 8px; }
.model-switcher__name { flex: 1; }
.model-switcher__active { color: var(--c-ok); }
.model-switcher__missing { color: var(--c-muted); font-size: .75rem; font-style: italic; }

.model-switcher__note {
    font-size: .75rem;
    color: var(--c-muted);
    margin-top: 2px;
}

.content { padding: 24px; width: 100%; }
.content--narrow { max-width: 880px; margin: 0 auto; }   /* opt-in pro detail/single-form views */
h1 { margin: 0 0 16px; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap);
}
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.card dt { color: var(--c-muted); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .8rem;
    margin-right: 6px;
}
.badge--ok   { background: #e3f2e9; color: var(--c-ok); }
.badge--fail { background: #fce8e6; color: var(--c-fail); }
.badge--warn { background: #fff3e0; color: var(--c-warn); }
.badge--complete   { background: #e3f2e9; color: var(--c-ok); }
.badge--good       { background: #e8f0fc; color: #1e4a8a; }
.badge--partial    { background: #fff3e0; color: var(--c-warn); }
.badge--incomplete { background: #fce8e6; color: var(--c-fail); }
.badge--lang       { background: #f0e8fc; color: #4a2a8a; font-family: monospace; font-weight: 600; }

.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; }
.subhead { color: var(--c-muted); margin-top: 4px; font-size: .95rem; }

.legend {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.legend strong { color: var(--c-text); margin-right: 6px; }

.team-grid {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.team-name { font-weight: 500; }

/* Tabulator theme overrides — clean a brand-aligned */
.tabulator { font-size: .92rem; border: 0; }
.tabulator .tabulator-header { background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.tabulator .tabulator-row.tabulator-row-even { background: #fafbfc; }
.tabulator-row:hover { background: #f0f4fa !important; }


/* ===== Team detail ===== */

.breadcrumb { color: var(--c-muted); font-size: .9rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-brand); text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

.team-detail { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--gap); }

.detail-header {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    align-items: center;
}
.detail-header__photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
}
.photo-placeholder {
    width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-bg);
    border: 1px dashed var(--c-border);
    border-radius: var(--radius);
    color: var(--c-muted);
    font-size: .85rem;
}
.detail-header__info h1 { margin: 0 0 4px; }
.detail-header__info .position { margin: 0 0 12px; color: var(--c-muted); font-size: 1.05rem; }
.detail-header__actions { display: flex; flex-direction: column; gap: 8px; }
.btn--ghost { background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); padding: 8px 14px; }
.btn--ghost:hover { background: #ebeef3; }

.lang-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; }
.lang-strip strong { margin-right: 4px; color: var(--c-muted); }
.lang-pill {
    display: inline-flex; gap: 6px; align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    font-size: .85rem;
    text-decoration: none;
}
.lang-pill:hover { background: #ebeef3; }
.lang-pill--current { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.lang-pill--missing { color: var(--c-fail); background: #fff5f5; border-color: #fcd2cd; opacity: .8; }
.lang-pill__score { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: 999px; font-size: .75rem; }

.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { padding: 14px 20px; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.card__head h2 { margin: 0; font-size: 1rem; }

.schema-card { padding-bottom: 16px; }
.schema-bars { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.schema-bar__label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.schema-bar__label strong { color: var(--c-text); }
.schema-bar__label span { color: var(--c-muted); }
.schema-bar__track { height: 8px; background: var(--c-bg); border-radius: 999px; overflow: hidden; }
.schema-bar__fill { height: 100%; transition: width .3s; }
.schema-bar__fill--core            { background: var(--c-brand); }
.schema-bar__fill--schema_critical { background: var(--c-accent); }
.schema-bar__fill--nice_to_have    { background: #8fa8c8; }

.missing-list { padding: 0 20px 8px; font-size: .9rem; }
.missing-list summary { color: var(--c-muted); cursor: pointer; padding: 8px 0; }
.missing-list ul { columns: 3; margin: 8px 0 0; padding-left: 20px; }
.missing-list code { font-size: .85rem; }

.fields-list { display: grid; grid-template-columns: 220px 1fr; gap: 12px 24px; padding: 16px 20px; margin: 0; }
.fields-list dt { color: var(--c-muted); align-self: start; padding-top: 4px; }
.fields-list dt code { background: var(--c-bg); padding: 2px 6px; border-radius: 4px; }
.fields-list dd { margin: 0; min-width: 0; }
.fields-list .empty { color: var(--c-muted); font-style: italic; }
.fields-list .thumb { max-width: 120px; max-height: 120px; border-radius: 4px; border: 1px solid var(--c-border); display: block; }
.fields-list small { display: block; color: var(--c-muted); margin-top: 4px; font-size: .8rem; word-break: break-all; }
.fields-list .longtext { white-space: pre-wrap; }
.fields-list .inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fields-list .inline-list li {
    background: var(--c-bg); padding: 3px 10px; border-radius: 999px;
    border: 1px solid var(--c-border); font-size: .85rem;
}
.fields-list .raw {
    background: #1a1f2b; color: #c8d1e0; padding: 8px 12px;
    border-radius: 4px; font-size: .8rem; overflow-x: auto;
}

.kv { display: grid; grid-template-columns: 220px 1fr; gap: 6px 24px; padding: 16px 20px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; }

/* Filter banner (article list filtered by spec/branch) */
.filter-banner {
    background: #e8f0fc;
    border: 1px solid #c2d4f0;
    border-left: 4px solid var(--c-brand);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .9rem;
}
.filter-banner__icon { font-size: 1.2rem; }
.filter-banner__text { flex: 1; color: var(--c-text); }
.filter-banner__text code {
    background: var(--c-surface);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: .85em;
}
.filter-banner__back,
.filter-banner__clear {
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-brand);
    border: 1px solid var(--c-border);
    font-size: .85rem;
}
.filter-banner__back:hover,
.filter-banner__clear:hover { background: var(--c-bg); }
.filter-banner__clear { color: var(--c-fail); border-color: #fcd2cd; }

/* Mini pills pro per-language translation status v Tabulatoru */
.mini-pill {
    display: inline-block;
    padding: 1px 7px;
    margin-right: 2px;
    border-radius: 4px;
    font-size: .75rem;
    font-family: monospace;
    font-weight: 600;
}
.mini-pill--ok   { background: #e3f2e9; color: var(--c-ok); }
.mini-pill--miss { background: #fce8e6; color: var(--c-fail); opacity: .7; }

/* AI feature pills v article gridu — 5 znaků S/K/L/A/F */
.ai-pill {
    display: inline-block;
    width: 22px;
    text-align: center;
    margin-right: 3px;
    padding: 2px 0;
    border-radius: 4px;
    font-size: .72rem;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    line-height: 1.2;
}
.ai-pill--on  { background: var(--c-brand); color: #fff; }
.ai-pill--off { background: var(--c-bg); color: var(--c-muted); border: 1px solid var(--c-border); }

.article-title { font-weight: 500; }

/* Author audit (article detail) */
.author-audit__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 16px 20px;
}
.author-audit__column h3 { margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--c-muted); }
.author-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.author-list li { padding: 6px 12px; background: var(--c-bg); border-radius: var(--radius); display: flex; align-items: center; gap: 10px; }
.author-list a { text-decoration: none; font-weight: 500; }
.author-list small { color: var(--c-muted); }
.author-list__order { color: var(--c-muted); font-weight: 600; min-width: 22px; }
.author-list__empty { color: var(--c-muted); font-style: italic; padding: 8px 12px; background: #fff5f5; border: 1px solid #fcd2cd; }
.author-list__actions { margin-left: auto; display: flex; gap: 4px; }
.author-list__actions button {
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: .75rem;
    line-height: 1;
    color: var(--c-muted);
}
.author-list__actions button:hover:not(:disabled) { background: var(--c-surface); color: var(--c-text); }
.author-list__actions button:disabled { opacity: .3; cursor: not-allowed; }
.author-list__actions button[data-action*="removeAuthor"] { color: var(--c-fail); border-color: #fcd2cd; }
.author-list__actions button[data-action*="removeAuthor"]:hover:not(:disabled) { background: var(--c-fail); color: #fff; }

.author-audit__column .empty { padding: 12px; background: #fff5f5; border: 1px solid #fcd2cd; border-radius: var(--radius); }
.author-audit__column .muted { color: var(--c-muted); display: block; margin-top: 4px; }

.author-edit { margin-top: 12px; position: relative; }
.author-edit input[type=text] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: .9rem;
}
.author-edit__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(20, 25, 35, .12);
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
}
.suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover { background: var(--c-bg); }
.suggestion strong { font-weight: 500; }
.suggestion small { color: var(--c-muted); font-size: .8rem; }
.suggestion--empty { color: var(--c-muted); font-style: italic; cursor: default; }
.suggestion--selected { opacity: .5; cursor: not-allowed; }
.suggestion__badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-ok);
    font-size: .8rem;
}

.author-edit__footer { margin-top: 12px; display: flex; gap: 16px; align-items: center; }
.author-edit__footer .btn { padding: 8px 16px; font-size: .9rem; }
.author-edit__footer .btn:disabled { opacity: .5; cursor: not-allowed; }

.author-edit__status { font-size: .9rem; }
.author-edit__status--pending { color: var(--c-muted); }
.author-edit__status--success { color: var(--c-ok); }
.author-edit__status--error { color: var(--c-fail); }

@media (max-width: 768px) {
    .author-audit__body { grid-template-columns: 1fr; }
}

/* ===== Sprint A4 queue ===== */
.a4-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.a4-stats { display: flex; gap: 16px; }
.a4-stat {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.a4-stat strong { display: block; font-size: 1.8rem; color: var(--c-brand); }
.a4-stat span { color: var(--c-muted); font-size: .85rem; }

.btn--small { padding: 4px 10px; font-size: .8rem; }
.link-small { font-size: .8rem; margin-left: 8px; color: var(--c-muted); }

/* Tabulator row marker pro done state */
.tabulator-row.row--done { background: #e3f2e9 !important; opacity: .7; }

/* Inline expand panel */
.a4-expand {
    background: #f8faff;
    border-bottom: 2px solid var(--c-brand);
    padding: 16px 20px;
    border-left: 4px solid var(--c-brand);
}
.a4-expand__inner h3 { margin: 0 0 4px; font-size: 1rem; }
.a4-expand .muted { color: var(--c-muted); font-size: .85rem; margin: 0 0 12px; }
.a4-search {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font-size: .95rem;
}
.a4-suggestions {
    margin-top: 4px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(20, 25, 35, .08);
}
.a4-selected {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.a4-selected li {
    background: var(--c-bg);
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
}
.a4-selected .order { color: var(--c-muted); font-weight: 600; }
.a4-selected small { color: var(--c-muted); }
.a4-selected .remove-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid #fcd2cd;
    color: var(--c-fail);
    border-radius: 4px;
    width: 22px; height: 22px;
    cursor: pointer;
    font-size: .75rem;
    line-height: 1;
}
.a4-selected .remove-btn:hover { background: var(--c-fail); color: #fff; }

.a4-footer { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.a4-status { font-size: .9rem; }
.a4-status--pending { color: var(--c-muted); }
.a4-status--success { color: var(--c-ok); }
.a4-status--error { color: var(--c-fail); }

/* ===== AI metadata sekce ===== */
.ai-metadata .muted { color: var(--c-muted); font-size: .85rem; }
.ai-metadata__intro { padding: 12px 20px; border-bottom: 1px solid var(--c-border); color: var(--c-muted); font-size: .9rem; }
.ai-metadata__intro p { margin: 0; }

.ai-field {
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
}
.ai-field:last-of-type { border-bottom: 0; }
.ai-field--manual { background: #fafbfc; }

.ai-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}
.ai-field__label { display: flex; align-items: center; gap: 8px; }
.ai-field__icon { font-size: 1.2rem; }
.ai-field__label code {
    color: var(--c-muted);
    font-size: .75rem;
    background: var(--c-bg);
    padding: 1px 6px;
    border-radius: 3px;
}
.ai-field__actions { display: flex; gap: 6px; }
.ai-field__actions .btn { padding: 4px 10px; font-size: .8rem; }
.ai-field__actions .btn:disabled { opacity: .5; cursor: not-allowed; }

.ai-field__desc {
    color: var(--c-muted);
    font-size: .8rem;
    margin: 0 0 10px;
}

.ai-field__value {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: .9rem;
    line-height: 1.5;
    min-height: 20px;
}
.ai-field__value .empty { color: var(--c-muted); font-style: italic; }
.ai-field__value p { margin: 0 0 8px; }
.ai-field__value p:last-child { margin-bottom: 0; }

.ai-field__raw {
    margin: 0;
    white-space: pre-wrap;
    font-family: ui-monospace, monospace;
    font-size: .85rem;
    color: var(--c-text);
}

.ai-field__preview {
    margin-top: 10px;
    border: 1px dashed var(--c-warn);
    background: #fff9ee;
    border-radius: var(--radius);
    padding: 12px 14px;
}
.ai-field__preview-content {
    font-size: .9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-bottom: 10px;
}
.ai-field__preview-actions {
    display: flex;
    gap: 8px;
}

.ai-field__status {
    margin-top: 6px;
    font-size: .85rem;
    min-height: 18px;
}
.ai-field__status--pending { color: var(--c-muted); }
.ai-field__status--success { color: var(--c-ok); }
.ai-field__status--error { color: var(--c-fail); }

.ai-metadata__audit {
    padding: 12px 20px;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
}
.ai-metadata__audit summary { cursor: pointer; color: var(--c-muted); font-size: .85rem; }
.ai-metadata__audit pre {
    margin: 8px 0 0;
    padding: 10px;
    background: var(--c-surface);
    border-radius: var(--radius);
    font-size: .8rem;
    overflow-x: auto;
}

/* ===== Action cards (home) ===== */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
    margin-bottom: 24px;
}
.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--c-text);
    transition: transform .15s, border-color .15s;
}
.action-card:hover { transform: translateY(-2px); border-color: var(--c-brand); }
.action-card--alert { border-left: 4px solid var(--c-warn); }
.action-card--alert:hover { border-color: var(--c-warn); }
.action-card__icon { font-size: 2.2rem; }
.action-card__body { flex: 1; }
.action-card__body h2 { margin: 0 0 4px; font-size: .95rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .02em; }
.action-card__primary { font-size: 2rem; font-weight: 600; margin: 0; color: var(--c-text); }
.action-card__sub { margin: 0; color: var(--c-muted); font-size: .85rem; }
.action-card__cta { color: var(--c-brand); font-weight: 500; }

/* Distribution bar (team completeness) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--gap);
    margin-bottom: 24px;
}
.dist-bar { padding: 16px 20px; }
.dist-bar__track {
    height: 18px;
    background: var(--c-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    margin-bottom: 16px;
    border: 1px solid var(--c-border);
}
.dist-bar__seg { height: 100%; transition: width .3s; }
.dist-bar__seg--complete   { background: #1f7a3a; }
.dist-bar__seg--good       { background: #2868b4; }
.dist-bar__seg--partial    { background: #b2700f; }
.dist-bar__seg--incomplete { background: #b3261e; }

.dist-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.dist-legend li { display: flex; align-items: center; gap: 8px; }

.recent-activity table { margin: 0; }
.recent-activity th { font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; }
.recent-activity time { color: var(--c-muted); font-size: .85rem; }
.recent-activity code { background: var(--c-bg); padding: 2px 6px; border-radius: 3px; font-size: .85rem; }
.empty-state { padding: 24px; text-align: center; color: var(--c-muted); }

/* ===== Comparison view (side-by-side translations) ===== */
.compare-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.compare-legend { display: flex; gap: 8px; flex-wrap: wrap; }

.diff-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
}
.diff-pill--different        { background: #e3f2e9; color: var(--c-ok); }
.diff-pill--identical        { background: #fff3e0; color: var(--c-warn); }
.diff-pill--partial_missing  { background: #fce8e6; color: var(--c-fail); }
.diff-pill--all_missing      { background: var(--c-bg); color: var(--c-muted); }
.diff-pill--single           { background: var(--c-bg); color: var(--c-muted); }

.compare-table-wrap {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.compare-table th,
.compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.compare-table thead th {
    background: var(--c-bg);
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 2px solid var(--c-border);
}

.compare-table__field {
    width: 200px;
    background: #fafbfc;
    font-weight: 500;
    border-right: 1px solid var(--c-border);
}

.compare-table__lang { width: auto; min-width: 250px; }
.compare-table__lang--current { background: #e8f0fc; }
.compare-table__lang-head { display: flex; align-items: center; gap: 8px; }
.compare-table__lang-head strong { font-weight: 500; }
.compare-table__lang-head .muted { color: var(--c-muted); font-size: .8rem; font-weight: 400; }
.compare-table__lang-actions { display: flex; gap: 12px; margin-top: 4px; font-size: .8rem; }
.compare-table__lang-actions a { color: var(--c-brand); text-decoration: none; }
.compare-table__lang-actions a:hover { text-decoration: underline; }

.compare-row__head { display: flex; flex-direction: column; gap: 4px; }
.compare-row__label { font-weight: 500; }
.compare-row__key {
    color: var(--c-muted);
    font-size: .75rem;
    background: var(--c-bg);
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
    font-family: ui-monospace, monospace;
}

/* Row status — subtle left-border cue */
.compare-row { transition: background-color .15s; }
.compare-row:hover { background: #fafbfc; }
.compare-row--identical { background: #fff9ee; }
.compare-row--partial_missing { background: #fff5f5; }
.compare-row--different td:not(.compare-table__field) { }

.compare-cell--empty { background: #fbfbfb; }
.compare-cell--empty .empty { color: var(--c-muted); font-style: italic; }
.compare-cell .thumb { max-width: 360px; max-height: 360px; width: 100%; height: auto; }

.compare-longtext {
    white-space: pre-wrap;
    font-size: .9rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}
.compare-longtext__meta { font-size: .75rem; margin-top: 6px; }

@media (max-width: 1100px) {
    .compare-table__field { width: 150px; }
}

/* ===== Heroes program ===== */
.heroes-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.heroes-month-switch label { color: var(--c-muted); font-size: .9rem; margin-right: 6px; }
.heroes-month-switch input[type=month] {
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.heroes-current__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px 20px;
}
.heroes-card {
    display: block;
    text-decoration: none;
    color: var(--c-text);
    padding: 14px 16px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-brand);
    border-radius: var(--radius);
    transition: transform .1s;
}
.heroes-card:hover { transform: translateY(-1px); background: var(--c-surface); }
.heroes-card__name { font-weight: 600; margin-bottom: 8px; }
.heroes-card__progress { margin-bottom: 6px; }
.heroes-card__progress-bar {
    height: 6px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}
.heroes-card__progress-fill { height: 100%; background: var(--c-brand); transition: width .3s; }
.heroes-card__progress-text { font-size: .8rem; color: var(--c-muted); }
.heroes-card__status .badge { font-size: .75rem; }

/* Audit checklist v Hero detailu */
.heroes-audit__progress-wrap { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--c-muted); }
.heroes-audit__progress-bar {
    width: 200px;
    height: 8px;
    background: var(--c-bg);
    border-radius: 999px;
    border: 1px solid var(--c-border);
    overflow: hidden;
}
.heroes-audit__progress-fill { height: 100%; background: var(--c-brand); transition: width .3s; }

.audit-list { list-style: none; padding: 0 20px; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.audit-item {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    transition: background-color .1s;
}
.audit-item[data-status=done] { background: #e3f2e9; border-color: #b6dec3; }
.audit-item[data-status=fix_needed] { background: #fff3e0; border-color: #f5cea5; }
.audit-item[data-status=skip] { opacity: .6; }

.audit-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-item__head select {
    padding: 4px 8px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: .85rem;
    background: var(--c-surface);
}
.audit-item__label { flex: 1; }
.audit-item__key {
    color: var(--c-muted);
    font-size: .75rem;
    background: var(--c-surface);
    padding: 1px 6px;
    border-radius: 3px;
}
.audit-item__remove {
    background: transparent;
    border: 1px solid #fcd2cd;
    color: var(--c-fail);
    border-radius: 4px;
    width: 24px; height: 24px;
    cursor: pointer;
    font-size: .75rem;
}
.audit-item__remove:hover { background: var(--c-fail); color: #fff; }
.audit-item__note {
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: .85rem;
    font-family: inherit;
    background: var(--c-surface);
    resize: vertical;
}

.audit-add { padding: 12px 20px; border-top: 1px solid var(--c-border); background: var(--c-bg); }
.audit-add h3 { margin: 0 0 8px; font-size: .85rem; color: var(--c-muted); text-transform: uppercase; }
.audit-add__row { display: flex; gap: 8px; }
.audit-add__row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: .85rem;
}

.audit-footer { padding: 16px 20px; border-top: 1px solid var(--c-border); display: flex; gap: 16px; align-items: center; }
.audit-status { font-size: .9rem; }
.audit-status--pending { color: var(--c-muted); }
.audit-status--success { color: var(--c-ok); }
.audit-status--error { color: var(--c-fail); }

.muted-h3 {
    margin: 12px 0 6px;
    font-size: .8rem;
    text-transform: uppercase;
    color: var(--c-muted);
    letter-spacing: .03em;
}

/* Rank list (top categories / years) */
.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-list__row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.rank-list__label { font-weight: 500; }
.rank-list__count { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.rank-list__bar { height: 6px; background: var(--c-brand); border-radius: 999px; min-width: 4px; max-width: 100%; }

/* Login */
.login-card {
    max-width: 380px;
    margin: 80px auto;
    background: var(--c-surface);
    padding: 32px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.4rem; margin-bottom: 20px; }
.login-card label { display: block; margin: 14px 0 4px; color: var(--c-muted); font-size: .9rem; }
.login-card input[type=email],
.login-card input[type=password] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 1rem;
}
.login-card .remember { margin: 16px 0; font-size: .9rem; }

.btn {
    display: inline-block;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.btn--primary { background: var(--c-brand); color: #fff; width: 100%; }
.btn--primary:hover { background: #142f60; }

.flash {
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.flash--error   { background: #fce8e6; color: var(--c-fail); }
.flash--success { background: #e3f2e9; color: var(--c-ok); }
.flash--notice  { background: #fff3e0; color: var(--c-warn); }

/* Plain HTML tables (recent activity, analytics, audit log).
 * Tabulator má vlastní theme — NIKDY tady ne-globálnit `table/th/td` selectory,
 * Tabulator interně používá <table> a my bychom mu rozbili layout. */
.card table,
.recent-activity table,
.compare-table:not(.tabulator) {
    border-collapse: collapse;
    width: 100%;
}
.card table th,
.card table td,
.recent-activity th,
.recent-activity td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.card table th,
.recent-activity th {
    background: var(--c-bg);
    font-weight: 600;
}

/* ───── AI Traffic ───── */

.ai-traffic-filters {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ai-traffic-filters__hosts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.ai-traffic-filters__range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ai-traffic-host {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--c-bg);
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}
.ai-traffic-host input { cursor: pointer; }

.stat-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    align-items: center;
}
.stat-card__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 12px;
}
.stat-card__label { color: var(--c-muted); font-size: 13px; }
.stat-card__value { font-size: 26px; font-weight: 600; line-height: 1.1; }
.stat-card__sub   { color: var(--c-muted); font-size: 12px; }

.ai-traffic-chart-card .card__body { padding: 16px; }
.ai-traffic-chart-card canvas { max-height: 280px; }

.ai-traffic-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 900px) { .ai-traffic-row { grid-template-columns: 1fr; } }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th, .data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.data-table th { background: var(--c-bg); font-weight: 600; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table code.path {
    font-size: 12px;
    color: var(--c-text);
    background: var(--c-bg);
    padding: 2px 5px;
    border-radius: 3px;
    max-width: 420px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ai-source-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
}
.ai-source-tag--chatgpt    { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.ai-source-tag--claude     { background: #fef3c7; color: #78350f; border-color: #fcd34d; }
.ai-source-tag--perplexity { background: #ddd6fe; color: #4c1d95; border-color: #a78bfa; }
.ai-source-tag--gemini     { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.ai-source-tag--copilot    { background: #fce7f3; color: #831843; border-color: #f9a8d4; }
.ai-source-tag--ai-bot     { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }

.kv-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 6px 16px;
    margin: 0;
}
.kv-grid dt { font-weight: 600; color: var(--c-muted); }
.kv-grid dd { margin: 0; word-break: break-all; }

/* ───── AI Queue ───── */

.ai-queue-stats {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 16px;
}
.stat-card--queued  { border-left: 3px solid #b2700f; }
.stat-card--running { border-left: 3px solid #0ea5e9; }
.stat-card--done    { border-left: 3px solid #1f7a3a; }
.stat-card--failed  { border-left: 3px solid #b3261e; }

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
}
.status-badge--queued  { background: #fef3c7; color: #78350f; border-color: #fcd34d; }
.status-badge--running { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.status-badge--done    { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.status-badge--failed  { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }

.task-chip {
    display: inline-block;
    padding: 1px 7px;
    margin-right: 3px;
    font-size: 11px;
    background: var(--c-bg);
    color: var(--c-muted);
    border-radius: 3px;
    border: 1px solid var(--c-border);
}

.error-msg {
    color: var(--c-fail);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ai-queue-widget__counts {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ai-queue-widget__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ai-queue-widget__table th, .ai-queue-widget__table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.ai-queue-widget__table th { background: var(--c-bg); font-weight: 600; }

/* ───── SEO module ───── */

.seo-settings-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
}
@media (max-width: 1100px) { .seo-settings-grid { grid-template-columns: 1fr; } }

.seo-add-form {
    background: var(--c-bg);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.seo-add-form__row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.seo-add-form__row input[type="text"],
.seo-add-form__row select {
    padding: 6px 8px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-surface);
    font-size: 14px;
}
.seo-add-form__row input[type="text"] { flex: 1 1 200px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

.inline { display: inline; }
.actions { white-space: nowrap; }
.is-disabled { opacity: 0.5; }
.is-own { background: rgba(29, 58, 120, 0.04); }

.seo-locale-switch {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.btn-link--danger { color: var(--c-fail); }
.btn-link--danger:hover { text-decoration: underline; }

.rank-top3  { color: #1f7a3a; }
.rank-top10 { color: #1d3a78; }

.sparkline {
    display: inline-flex;
    gap: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}
.sparkline__cell {
    min-width: 22px;
    padding: 1px 3px;
    background: var(--c-bg);
    border-radius: 2px;
    text-align: center;
    color: var(--c-text);
}

/* AI preview — editable textarea */
.ai-field__preview-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}
.ai-field__preview-textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(29, 58, 120, 0.15);
}

/* ───── User admin + profile ───── */

.user-roles-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}
.user-pw-reset { position: relative; }
.user-pw-reset summary { list-style: none; cursor: pointer; }
.user-pw-reset__form {
    position: absolute;
    right: 0;
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.user-pw-reset__form input {
    padding: 6px 8px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
}

.profile-password-card { max-width: 480px; }
.profile-password-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0;
}
.profile-password-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
}
.profile-password-form input {
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: 14px;
}
.profile-password-form button { align-self: flex-start; }

/* ───── Article insights panel ───── */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 16px;
}
@media (max-width: 1100px) { .insights-grid { grid-template-columns: 1fr; } }
.insights-col h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.insights-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.insights-stat { display: flex; flex-direction: column; }
.insights-stat__value { font-size: 22px; font-weight: 600; line-height: 1.1; }
.insights-stat__label { font-size: 12px; color: var(--c-muted); }
.data-table--compact { font-size: 12px; }
.data-table--compact th, .data-table--compact td { padding: 4px 8px; }

/* Heroes — jazykové odznáčky mutací */
.lang-chip {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--c-brand);
    background: rgba(29, 58, 120, 0.08);
    border-radius: 3px;
    vertical-align: middle;
}

/* ───── Hero detail — jazyková matice + taby ───── */

.lang-matrix td:first-child { font-weight: 500; color: var(--c-muted); }
.lang-matrix th.num, .lang-matrix td.num { text-align: center; min-width: 90px; }

.lang-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;
}
.lang-tab {
    padding: 8px 16px;
    border: 1px solid var(--c-border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: var(--c-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text);
    position: relative;
    top: 1px;
}
.lang-tab.is-active {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-surface);
}
/* Barevný levý okraj dle completeness */
.lang-tab--complete   { border-top: 3px solid #1f7a3a; }
.lang-tab--good       { border-top: 3px solid #1d3a78; }
.lang-tab--partial    { border-top: 3px solid #b2700f; }
.lang-tab--incomplete { border-top: 3px solid #b3261e; }

.lang-panel { padding: 20px; }
.lang-panel.is-hidden { display: none; }

.lang-panel__kpis {
    display: flex;
    gap: 24px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;
}
.lang-panel__kpis > div { display: flex; flex-direction: column; }
.kpi__val { font-size: 20px; font-weight: 600; line-height: 1.1; }
.kpi__lbl { font-size: 12px; color: var(--c-muted); }

.lang-panel__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 16px;
}
@media (max-width: 900px) { .lang-panel__cols { grid-template-columns: 1fr; } }

/* ───── Hero — poznámky týmu ───── */
.notes-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.note-item {
    padding: 10px 12px;
    background: var(--c-bg);
    border-radius: 6px;
    border-left: 3px solid var(--c-accent);
}
.note-item--empty { border-left-color: var(--c-border); color: var(--c-muted); }
.note-item__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-muted); margin-bottom: 4px; }
.note-item__head strong { color: var(--c-text); }
.note-item__head time { flex: 1; }
.note-item__remove { border: none; background: none; color: var(--c-muted); cursor: pointer; font-size: 14px; }
.note-item__remove:hover { color: var(--c-fail); }
.note-item__text { font-size: 14px; line-height: 1.5; }
.notes-add textarea {
    width: 100%; box-sizing: border-box; padding: 8px 10px;
    border: 1px solid var(--c-border); border-radius: 4px; font: inherit; font-size: 14px; resize: vertical;
}
.notes-add__footer { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.notes-add__status { font-size: 13px; color: var(--c-muted); }

/* ───── Hero — překladové mezery ───── */
.is-gap { background: rgba(178, 112, 15, 0.05); }
.tg-ok { color: #1f7a3a; font-weight: 700; }
.tg-missing { color: #b3261e; font-weight: 700; }

/* Lang chip — přítomný vs chybějící překlad */
.lang-chip--on  { color: #1f7a3a; background: rgba(31,122,58,0.10); }
.lang-chip--off { color: var(--c-muted); background: var(--c-bg); opacity: 0.5; text-decoration: line-through; }

/* ───── Content score — čtenost indikátor (👤 lidé / 🔍 google / 🤖 ai) ───── */
.score {
    display: inline-block;
    padding: 1px 6px;
    margin-right: 3px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    border-radius: 3px;
    background: var(--c-bg);
    color: var(--c-muted);
    white-space: nowrap;
}
.score--l0 { opacity: 0.45; }
.score--l1 { color: var(--c-text); }
.score--l2 { color: var(--c-text); background: rgba(29,58,120,0.08); }
.score--l3 { color: #1d3a78; background: rgba(29,58,120,0.15); font-weight: 600; }
.score--l4 { color: #fff; background: var(--c-brand); font-weight: 600; }
