/* ==========================================================================
   CorpTrace — кабинет закрытой беты
   --------------------------------------------------------------------------
   Обычный CSS, а не Tailwind: кабинет не должен зависеть от `npm run build`
   и от того, какая версия Tailwind сейчас настроена в проекте. Файл отдаётся
   как статика из public/, ставится линком в layouts/cabinet.blade.php.

   Палитра: графит + изумруд (референс по структуре — infonet.fr, цвет свой).
   ========================================================================== */

:root {
    --ct-graphite: #0f1729;
    --ct-graphite-2: #182337;
    --ct-graphite-3: #24314a;
    --ct-ink: #0f172a;
    --ct-body: #334155;
    --ct-muted: #64748b;
    --ct-faint: #94a3b8;
    --ct-line: #e2e8f0;
    --ct-line-soft: #eef2f6;
    --ct-bg: #f6f8fa;
    --ct-white: #ffffff;

    --ct-emerald: #059669;
    --ct-emerald-dark: #047857;
    --ct-emerald-light: #ecfdf5;
    --ct-emerald-border: #a7f3d0;

    --ct-amber: #b45309;
    --ct-amber-light: #fffbeb;
    --ct-amber-border: #fde68a;

    --ct-rose: #be123c;
    --ct-rose-light: #fff1f2;

    --ct-radius: 8px;
    --ct-radius-lg: 12px;
    --ct-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --ct-shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
    --ct-shadow-lg: 0 18px 48px rgba(15, 23, 42, .18);
    --ct-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", "PingFang HK", "Microsoft JhengHei", sans-serif;
    --ct-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body.ct {
    margin: 0;
    font-family: var(--ct-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ct-body);
    background: var(--ct-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ct-emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ct-ink); margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

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

.ct-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ct-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 24px; }
.ct-wrap--narrow { max-width: 1120px; }

/* ---------------------------------------------------------------- topbar -- */

.ct-topbar {
    background: var(--ct-graphite);
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    position: sticky;
    top: 0;
    z-index: 60;
}
.ct-topbar__inner { display: flex; align-items: center; gap: 28px; height: 62px; }

.ct-logo { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700;
    letter-spacing: .10em; font-size: 16px; text-transform: uppercase; }
.ct-logo:hover { text-decoration: none; }
.ct-logo__mark { width: 27px; height: 27px; flex: none; }
.ct-logo__sub { color: var(--ct-emerald); font-weight: 600; letter-spacing: .16em; font-size: 9.5px;
    border: 1px solid rgba(5, 150, 105, .45); border-radius: 0; padding: 2px 6px; }

.ct-nav { display: flex; align-items: center; gap: 4px; }
.ct-nav a {
    color: #94a3b8; font-size: 13.5px; font-weight: 500; padding: 7px 11px;
    border-radius: 0; transition: background .12s, color .12s;
}
.ct-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.ct-nav a.is-active { color: #fff; background: rgba(5, 150, 105, .18); }

.ct-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.ct-access-pill {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: #6ee7b7;
    background: rgba(5, 150, 105, .14); border: 1px solid rgba(5, 150, 105, .35);
    padding: 4px 10px; border-radius: 0;
}
.ct-access-pill__dot { width: 6px; height: 6px; border-radius: 0; background: var(--ct-emerald); }

.ct-user { position: relative; }
.ct-user__btn {
    display: flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer;
    color: #e2e8f0; font-family: inherit; font-size: 13px; padding: 4px 6px; border-radius: 0;
}
.ct-user__btn:hover { background: rgba(255, 255, 255, .07); }
.ct-user__avatar {
    width: 28px; height: 28px; border-radius: 0; background: var(--ct-emerald);
    color: #fff; font-weight: 600; font-size: 12px; display: grid; place-items: center; flex: none;
}
.ct-user__menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff;
    border: 1px solid var(--ct-line); border-radius: 0; box-shadow: var(--ct-shadow-md);
    padding: 6px; z-index: 70;
}
.ct-user__head { padding: 10px 10px 8px; border-bottom: 1px solid var(--ct-line-soft); margin-bottom: 6px; }
.ct-user__name { color: var(--ct-ink); font-weight: 600; font-size: 13.5px; }
.ct-user__mail { color: var(--ct-muted); font-size: 12px; word-break: break-all; }
.ct-user__menu button, .ct-user__menu a {
    display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: 13.5px; color: var(--ct-body); padding: 8px 10px;
    border-radius: 0;
}
.ct-user__menu button:hover, .ct-user__menu a:hover { background: var(--ct-bg); text-decoration: none; }

/* ------------------------------------------------------------- subheader -- */

.ct-subhead { background: #fff; border-bottom: 1px solid var(--ct-line); }
.ct-subhead__inner { display: flex; align-items: flex-end; gap: 20px; padding: 18px 0 0; flex-wrap: wrap; }
.ct-breadcrumb { font-size: 12px; color: var(--ct-faint); margin-bottom: 4px; }
.ct-breadcrumb a { color: var(--ct-muted); }
.ct-subhead__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-subhead__meta { color: var(--ct-muted); font-size: 13px; margin-top: 5px; }
.ct-subhead__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.ct-tabs { display: flex; gap: 2px; margin-top: 16px; }
.ct-tabs a {
    padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--ct-muted);
    border-bottom: 2px solid transparent; border-radius: 0;
}
.ct-tabs a:hover { color: var(--ct-ink); background: var(--ct-bg); text-decoration: none; }
.ct-tabs a.is-active { color: var(--ct-emerald-dark); border-bottom-color: var(--ct-emerald); font-weight: 600; }

.ct-main { flex: 1; padding: 24px 0 56px; }

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

.ct-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1;
    padding: 9px 15px; border-radius: 0; border: 1px solid transparent; cursor: pointer;
    background: var(--ct-white); color: var(--ct-ink); border-color: var(--ct-line);
    transition: background .12s, border-color .12s, color .12s; white-space: nowrap;
}
.ct-btn:hover { background: var(--ct-bg); text-decoration: none; }
.ct-btn svg { width: 15px; height: 15px; flex: none; }

.ct-btn--primary { background: var(--ct-emerald); border-color: var(--ct-emerald); color: #fff; }
.ct-btn--primary:hover { background: var(--ct-emerald-dark); border-color: var(--ct-emerald-dark); }
.ct-btn--dark { background: var(--ct-graphite); border-color: var(--ct-graphite); color: #fff; }
.ct-btn--dark:hover { background: var(--ct-graphite-2); }
.ct-btn--ghost { background: transparent; border-color: transparent; color: var(--ct-muted); }
.ct-btn--ghost:hover { background: var(--ct-bg); color: var(--ct-ink); }
.ct-btn--sm { padding: 6px 10px; font-size: 12.5px; }
.ct-btn--block { width: 100%; }
.ct-btn--lg { padding: 12px 20px; font-size: 14.5px; }

/* Заблокированные действия (экспорт, оплата) — не disabled-атрибут, а стиль:
   кнопка остаётся кликабельной, чтобы объяснить, почему нельзя. */
.ct-btn--locked {
    background: #f1f5f9; border-color: var(--ct-line); color: var(--ct-faint); cursor: not-allowed;
}
.ct-btn--locked:hover { background: #f1f5f9; }

.ct-iconbtn {
    display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 0;
    border: 1px solid transparent; background: none; cursor: pointer; color: var(--ct-faint);
    transition: background .12s, color .12s;
}
.ct-iconbtn:hover { background: var(--ct-line-soft); color: var(--ct-ink); }
.ct-iconbtn svg { width: 16px; height: 16px; }
.ct-iconbtn.is-on { color: var(--ct-emerald); }
.ct-iconbtn.is-on-amber { color: var(--ct-amber); }

/* ----------------------------------------------------------------- cards -- */

.ct-card { background: #fff; border: 1px solid var(--ct-line); border-radius: 0;
    box-shadow: var(--ct-shadow); }
.ct-card__head { padding: 16px 18px; border-bottom: 1px solid var(--ct-line-soft);
    display: flex; align-items: center; gap: 12px; }
.ct-card__body { padding: 18px; }
.ct-card__foot { padding: 14px 18px; border-top: 1px solid var(--ct-line-soft); background: #fcfdfe;
    border-radius: 0; }

.ct-grid { display: grid; gap: 18px; }
.ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ct-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ct-grid--3, .ct-grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ hero -- */

.ct-hero {
    background: linear-gradient(135deg, var(--ct-graphite) 0%, #14203a 55%, #123329 100%);
    color: #cbd5e1; border-radius: 0; padding: 30px 32px; margin-bottom: 22px;
    position: relative; overflow: hidden;
}
.ct-hero::after {
    content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(5, 150, 105, .30), transparent 62%);
}
.ct-hero h1 { color: #fff; font-size: 26px; max-width: 720px; position: relative; }
.ct-hero p { max-width: 660px; margin: 10px 0 0; font-size: 14.5px; color: #94a3b8; position: relative; }
.ct-hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 24px; position: relative; }
.ct-hero__stat b { display: block; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ct-hero__stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #7c8ba1; }

/* -------------------------------------------------------- dataset cards -- */

.ct-ds { display: flex; flex-direction: column; }
.ct-ds__top { padding: 18px 18px 0; }
.ct-ds__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ct-faint); font-weight: 600; }
.ct-ds__name { font-size: 16px; margin: 7px 0 8px; }
.ct-ds__desc { color: var(--ct-muted); font-size: 13px; margin: 0; }
.ct-ds__counts { display: flex; gap: 18px; padding: 16px 18px; margin-top: 14px;
    border-top: 1px solid var(--ct-line-soft); border-bottom: 1px solid var(--ct-line-soft);
    background: #fcfdfe; }
.ct-ds__count b { display: block; color: var(--ct-ink); font-size: 17px; font-weight: 700; }
.ct-ds__count span { font-size: 11px; color: var(--ct-faint); text-transform: uppercase; letter-spacing: .05em; }
.ct-ds__list { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 7px; flex: 1; }
.ct-ds__list li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ct-body); }
.ct-ds__list li::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 0;
    background: var(--ct-emerald-border); border: 1px solid var(--ct-emerald);
}
.ct-ds__foot { padding: 14px 18px; border-top: 1px solid var(--ct-line-soft);
    display: flex; align-items: center; gap: 12px; }
.ct-ds__price { margin-left: auto; text-align: right; }
.ct-ds__price b { display: block; color: var(--ct-ink); font-size: 17px; font-weight: 700; }
.ct-ds__price span { font-size: 11px; color: var(--ct-faint); }

/* ---------------------------------------------------------------- badges -- */

.ct-badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
    padding: 3px 8px; border-radius: 0; border: 1px solid var(--ct-line);
    background: var(--ct-bg); color: var(--ct-muted); white-space: nowrap; line-height: 1.4;
}
.ct-badge--emerald { background: var(--ct-emerald-light); border-color: var(--ct-emerald-border);
    color: var(--ct-emerald-dark); }
.ct-badge--amber { background: var(--ct-amber-light); border-color: var(--ct-amber-border); color: var(--ct-amber); }
.ct-badge--rose { background: var(--ct-rose-light); border-color: #fecdd3; color: var(--ct-rose); }
.ct-badge--graphite { background: #eef2f7; border-color: #dbe3ec; color: var(--ct-graphite-3); }

.ct-note {
    display: flex; gap: 10px; padding: 12px 14px; border-radius: 0;
    font-size: 13px; border: 1px solid var(--ct-line); background: var(--ct-bg); color: var(--ct-body);
}
.ct-note--amber { background: var(--ct-amber-light); border-color: var(--ct-amber-border); color: #92400e; }
.ct-note--emerald { background: var(--ct-emerald-light); border-color: var(--ct-emerald-border); color: #065f46; }
.ct-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

/* ------------------------------------------------------------ browser UI -- */

.ct-browser { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .ct-browser { grid-template-columns: minmax(0, 1fr); } }

/* Панель фильтров прокручивается вместе со страницей: без sticky и без
   внутреннего скролла — иначе получается две независимые полосы прокрутки. */
.ct-filters { background: #fff; border: 1px solid var(--ct-line);
    border-radius: 0; box-shadow: var(--ct-shadow); }
.ct-filters__head { padding: 13px 15px; border-bottom: 1px solid var(--ct-line-soft);
    display: flex; align-items: center; gap: 8px; }
.ct-filters__head h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ct-muted); }
.ct-filters__body { padding: 4px 0 10px; }

.ct-fgroup { border-bottom: 1px solid var(--ct-line-soft); }
.ct-fgroup:last-child { border-bottom: 0; }
.ct-fgroup__btn {
    width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0;
    cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ct-ink);
    padding: 11px 15px; text-align: left;
}
.ct-fgroup__btn:hover { background: #fbfcfd; }
.ct-fgroup__btn svg { width: 13px; height: 13px; color: var(--ct-faint); transition: transform .15s; }
.ct-fgroup__btn .ct-fgroup__n { margin-left: auto; font-size: 11px; color: #fff; background: var(--ct-emerald);
    border-radius: 0; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 5px; }
.ct-fgroup__body { padding: 2px 15px 13px; display: grid; gap: 7px; }

.ct-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ct-body);
    cursor: pointer; line-height: 1.35; }
.ct-check input { margin: 2px 0 0; accent-color: var(--ct-emerald); width: 14px; height: 14px; flex: none; }
.ct-check__n { margin-left: auto; color: var(--ct-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ct-check:hover { color: var(--ct-ink); }

.ct-input, .ct-select {
    width: 100%; font-family: inherit; font-size: 13.5px; color: var(--ct-ink); background: #fff;
    border: 1px solid var(--ct-line); border-radius: 0; padding: 8px 11px; outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.ct-input:focus, .ct-select:focus { border-color: var(--ct-emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, .12); }
.ct-input::placeholder { color: var(--ct-faint); }
.ct-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 15px; padding-right: 28px; }
.ct-textarea { width: 100%; font-family: inherit; font-size: 13.5px; color: var(--ct-ink);
    border: 1px solid var(--ct-line); border-radius: 0; padding: 9px 11px; outline: none; resize: vertical;
    min-height: 74px; }
.ct-textarea:focus { border-color: var(--ct-emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, .12); }
.ct-range { display: flex; align-items: center; gap: 8px; }
.ct-range span { color: var(--ct-faint); font-size: 12px; }

/* ----------------------------------------------------------------- table -- */

.ct-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-search { position: relative; flex: 1; min-width: 240px; }
.ct-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--ct-faint); pointer-events: none; }
.ct-search .ct-input { padding-left: 34px; }

.ct-resultbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 0 2px 12px; font-size: 13px; color: var(--ct-muted); }
.ct-resultbar b { color: var(--ct-ink); font-variant-numeric: tabular-nums; }
.ct-resultbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.ct-tablewrap { background: #fff; border: 1px solid var(--ct-line); border-radius: 0;
    box-shadow: var(--ct-shadow); overflow: hidden; }
.ct-tablescroll { overflow-x: auto; }
table.ct-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ct-table thead th {
    position: sticky; top: 0; z-index: 2; background: #f8fafc; color: var(--ct-muted);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ct-line); white-space: nowrap;
}
.ct-table thead th.is-sortable { cursor: pointer; user-select: none; }
.ct-table thead th.is-sortable:hover { color: var(--ct-ink); }
.ct-table thead th .ct-sort { color: var(--ct-emerald); margin-left: 3px; }
.ct-table tbody td { padding: 11px 12px; border-bottom: 1px solid var(--ct-line-soft);
    vertical-align: top; color: var(--ct-body); }
.ct-table tbody tr:hover td { background: #fbfdfc; }
.ct-table tbody tr.is-hidden-row td { opacity: .48; }
.ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table .ct-col-actions { width: 92px; }
.ct-table .ct-col-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ct-orgname { display: block; font-weight: 600; color: var(--ct-ink); font-size: 13.5px;
    cursor: pointer; line-height: 1.35; }
.ct-orgname:hover { color: var(--ct-emerald-dark); }
.ct-orgsub { display: block; color: var(--ct-faint); font-size: 12px; margin-top: 2px; }
.ct-orgtags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Замаскированное значение: моноширинный, приглушённый, с замочком. */
.ct-masked {
    display: inline-flex; align-items: center; gap: 5px; font-family: var(--ct-mono); font-size: 12px;
    color: var(--ct-faint); background: #f4f6f8; border: 1px dashed #d6dee7; border-radius: 0;
    padding: 2px 7px; letter-spacing: .02em; cursor: help; white-space: nowrap;
}
.ct-masked svg { width: 11px; height: 11px; flex: none; opacity: .75; }
.ct-plain { font-family: var(--ct-mono); font-size: 12.5px; color: var(--ct-body); white-space: nowrap; }
.ct-empty-cell { color: #cbd5e1; }

.ct-meter { display: flex; align-items: center; gap: 7px; }
.ct-meter__bar { width: 42px; height: 5px; border-radius: 0; background: var(--ct-line); overflow: hidden; }
.ct-meter__fill { height: 100%; background: var(--ct-emerald); border-radius: 0; }
.ct-meter span { font-size: 12px; color: var(--ct-muted); font-variant-numeric: tabular-nums; }

.ct-stage-dot { width: 7px; height: 7px; border-radius: 0; flex: none; display: inline-block; }
.ct-stage--none { background: #cbd5e1; }
.ct-stage--interested { background: #38bdf8; }
.ct-stage--contacted { background: #a78bfa; }
.ct-stage--negotiating { background: #fbbf24; }
.ct-stage--won { background: var(--ct-emerald); }
.ct-stage--lost { background: #fb7185; }

.ct-pagination { display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border-top: 1px solid var(--ct-line-soft); background: #fcfdfe; font-size: 13px; color: var(--ct-muted); }
.ct-pagination__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ct-pagination__right .ct-btn[disabled] { opacity: .45; cursor: not-allowed; }

.ct-emptystate { padding: 56px 24px; text-align: center; color: var(--ct-muted); }
.ct-emptystate svg { width: 34px; height: 34px; color: #cbd5e1; margin-bottom: 12px; }
.ct-emptystate h3 { margin-bottom: 6px; }

/* ---------------------------------------------------------------- drawer -- */

.ct-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); z-index: 80;
    animation: ct-fade .14s ease-out; }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }

.ct-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 96vw; background: #fff;
    z-index: 90; box-shadow: var(--ct-shadow-lg); display: flex; flex-direction: column;
    animation: ct-slide .18s ease-out;
}
@keyframes ct-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.ct-drawer__head { padding: 16px 20px; border-bottom: 1px solid var(--ct-line); display: flex;
    align-items: flex-start; gap: 12px; }
.ct-drawer__title { font-size: 16px; }
.ct-drawer__sub { color: var(--ct-muted); font-size: 12.5px; margin-top: 3px; }
.ct-drawer__tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--ct-line);
    background: #fcfdfe; }
.ct-drawer__tabs button {
    background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ct-muted); padding: 10px 12px;
}
.ct-drawer__tabs button:hover { color: var(--ct-ink); }
.ct-drawer__tabs button.is-active { color: var(--ct-emerald-dark); border-bottom-color: var(--ct-emerald);
    font-weight: 600; }
.ct-drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.ct-drawer__foot { border-top: 1px solid var(--ct-line); padding: 12px 20px; display: flex;
    align-items: center; gap: 10px; background: #fcfdfe; }

.ct-deflist { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0; font-size: 13px; }
.ct-deflist dt { color: var(--ct-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ct-line-soft); }
.ct-deflist dd { margin: 0; color: var(--ct-ink); padding: 8px 0; border-bottom: 1px solid var(--ct-line-soft);
    word-break: break-word; }
.ct-deflist dt:last-of-type, .ct-deflist dd:last-of-type { border-bottom: 0; }

.ct-section { margin-bottom: 24px; }
.ct-section > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--ct-muted); margin-bottom: 10px; }

.ct-contact { border: 1px solid var(--ct-line); border-radius: 0; padding: 12px 14px;
    margin-bottom: 8px; background: #fcfdfe; }
.ct-contact__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-contact__label { color: var(--ct-muted); font-size: 12px; min-width: 54px; }

.ct-srcrow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
    border-bottom: 1px solid var(--ct-line-soft); font-size: 12.5px; }
.ct-srcrow:last-child { border-bottom: 0; }
.ct-srcrow__url { word-break: break-all; }

.ct-notelist { display: grid; gap: 10px; margin-top: 14px; }
.ct-noteitem { border: 1px solid var(--ct-line); border-left: 3px solid var(--ct-emerald);
    border-radius: 0; padding: 10px 12px; background: #fff; }
.ct-noteitem__meta { display: flex; align-items: center; gap: 8px; color: var(--ct-faint);
    font-size: 11.5px; margin-bottom: 5px; }
.ct-noteitem__meta button { margin-left: auto; }
.ct-noteitem p { margin: 0; white-space: pre-wrap; color: var(--ct-body); font-size: 13px; }

.ct-stagepick { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-stagepick button {
    display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12.5px;
    font-weight: 500; padding: 6px 11px; border-radius: 0; border: 1px solid var(--ct-line);
    background: #fff; color: var(--ct-body); cursor: pointer;
}
.ct-stagepick button:hover { border-color: var(--ct-faint); }
.ct-stagepick button.is-active { border-color: var(--ct-emerald); background: var(--ct-emerald-light);
    color: var(--ct-emerald-dark); font-weight: 600; }

/* --------------------------------------------------------------- pricing -- */

.ct-offer { display: flex; flex-direction: column; position: relative; }
.ct-offer--featured { border-color: var(--ct-emerald-border); box-shadow: 0 0 0 3px rgba(5, 150, 105, .08); }
.ct-offer__badge { position: absolute; top: -10px; right: 18px; background: var(--ct-emerald);
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 0; }
.ct-offer__head { padding: 22px 22px 0; }
.ct-offer__title { font-size: 17px; }
.ct-offer__sub { color: var(--ct-muted); font-size: 13px; margin-top: 4px; }
.ct-offer__price { padding: 18px 22px; display: flex; align-items: baseline; gap: 8px; }
.ct-offer__price b { font-size: 32px; color: var(--ct-ink); font-weight: 700; letter-spacing: -.02em; }
.ct-offer__price span { color: var(--ct-muted); font-size: 12.5px; }
.ct-offer__includes { padding: 0 22px 6px; }
.ct-offer__ds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ct-offer__features { list-style: none; margin: 0; padding: 0 22px 20px; display: grid; gap: 8px; flex: 1; }
.ct-offer__features li { display: flex; gap: 9px; font-size: 13px; color: var(--ct-body); }
.ct-offer__features svg { width: 15px; height: 15px; color: var(--ct-emerald); flex: none; margin-top: 1px; }
.ct-offer__foot { padding: 16px 22px; border-top: 1px solid var(--ct-line-soft); background: #fcfdfe;
    border-radius: 0; }
.ct-offer__foot .ct-note { margin-top: 10px; font-size: 12.5px; }

/* ------------------------------------------------------------------ misc -- */

.ct-kv { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.ct-kv dt { color: var(--ct-muted); }
.ct-kv dd { margin: 0; color: var(--ct-ink); font-weight: 500; }

.ct-flash { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120;
    background: var(--ct-graphite); color: #fff; font-size: 13.5px; padding: 11px 18px;
    border-radius: 0; box-shadow: var(--ct-shadow-lg); display: flex; align-items: center; gap: 9px; }
.ct-flash svg { width: 16px; height: 16px; color: #6ee7b7; }

.ct-loading { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130; overflow: hidden; }
.ct-loading::after { content: ""; display: block; height: 100%; width: 40%; background: var(--ct-emerald);
    animation: ct-bar 1s infinite ease-in-out; }
@keyframes ct-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.ct-skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
    background-size: 200% 100%; animation: ct-shimmer 1.2s infinite; border-radius: 0; }
@keyframes ct-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.ct-muted { color: var(--ct-muted); }
.ct-faint { color: var(--ct-faint); }
.ct-mono { font-family: var(--ct-mono); }
.ct-nowrap { white-space: nowrap; }
.ct-mt-0 { margin-top: 0; }
.ct-mt-1 { margin-top: 8px; }
.ct-mt-2 { margin-top: 16px; }
.ct-mt-3 { margin-top: 24px; }
.ct-mb-2 { margin-bottom: 16px; }
.ct-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-row--tight { gap: 6px; }
.ct-spacer { flex: 1; }

/* ------------------------------------------------------------ login page -- */

.ct-authwrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
    background: linear-gradient(135deg, var(--ct-graphite) 0%, #14203a 60%, #123329 100%); }
.ct-authcard { width: 100%; max-width: 460px; background: #fff; border-radius: 0;
    box-shadow: var(--ct-shadow-lg); padding: 34px; text-align: center; }
.ct-authcard h1 { font-size: 20px; margin-bottom: 8px; }
.ct-authcard p { color: var(--ct-muted); font-size: 14px; margin: 0 0 22px; }

/* ==========================================================================
   Дополнения: выпадашки на <details>, центральный герой, карточка-сплит,
   меню экспорта. Всё без зависимости от JS-фреймворка.
   ========================================================================== */

/* ------------------------------------------------- выпадающие меню -- */

.ct-dropdown { position: relative; display: inline-block; }
.ct-dropdown > summary { list-style: none; cursor: pointer; user-select: none; }
.ct-dropdown > summary::-webkit-details-marker { display: none; }
.ct-dropdown > summary::marker { content: ""; }
.ct-dropdown[open] > summary { background: var(--ct-bg); }

.ct-dropdown__menu {
    position: absolute; left: 0; top: calc(100% + 8px); min-width: 240px; z-index: 70;
    background: #fff; border: 1px solid var(--ct-line); border-radius: 0;
    box-shadow: var(--ct-shadow-md); padding: 6px; animation: ct-pop .12s ease-out;
}
.ct-dropdown__menu--right { left: auto; right: 0; }
@keyframes ct-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ct-dropdown__head { padding: 9px 12px 8px; border-bottom: 1px solid var(--ct-line-soft); margin-bottom: 6px; }
/* :not(.ct-exportitem) обязателен: селектор с элементом специфичнее одного
   класса и иначе перебивает display:flex у пунктов экспорта. */
.ct-dropdown__menu > a:not(.ct-exportitem),
.ct-dropdown__menu > .ct-dropdown__form button,
.ct-dropdown__menu .ct-row button:not(.ct-iconbtn) {
    display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: 13.5px; color: var(--ct-body); padding: 8px 12px; border-radius: 0;
}
.ct-dropdown__menu > a:not(.ct-exportitem):hover,
.ct-dropdown__menu > .ct-dropdown__form button:hover,
.ct-dropdown__menu .ct-row button:not(.ct-iconbtn):hover { background: var(--ct-bg); text-decoration: none; }
.ct-dropdown__form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--ct-line-soft); }

/* Шапка: меню пользователя на <details> --------------------------------- */

.ct-user > summary.ct-user__btn {
    display: flex; align-items: center; gap: 9px; color: #e2e8f0; font-size: 13px;
    padding: 4px 8px 4px 4px; border-radius: 0; background: none;
}
.ct-user > summary.ct-user__btn:hover { background: rgba(255, 255, 255, .09); }
.ct-user[open] > summary.ct-user__btn { background: rgba(255, 255, 255, .12); }
.ct-user__label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Кнопка-summary ведёт себя как обычная кнопка ------------------------- */

summary.ct-btn { display: inline-flex; }
summary.ct-btn::-webkit-details-marker { display: none; }
.ct-btn--muted { color: var(--ct-muted); }

/* ------------------------------------------------------ меню экспорта -- */

.ct-exportitem {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 0;
    color: var(--ct-body); text-decoration: none;
}
.ct-exportitem:hover { background: var(--ct-bg); text-decoration: none; }
.ct-exportitem__fmt {
    flex: none; width: 44px; height: 30px; display: grid; place-items: center; border-radius: 0;
    background: var(--ct-graphite); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.ct-exportitem__text { display: grid; line-height: 1.35; min-width: 0; flex: 1; }
.ct-exportitem__text b { color: var(--ct-ink); font-size: 13.5px; }
.ct-exportitem__text span { color: var(--ct-faint); font-size: 11.5px; }
.ct-exportitem__fmt { align-self: center; }
.ct-exportitem__lock { width: 14px; height: 14px; margin-left: auto; color: var(--ct-faint); flex: none; }

.ct-exportgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .ct-exportgrid { grid-template-columns: minmax(0, 1fr); } }
.ct-exportcard {
    border: 1px solid var(--ct-line); border-radius: 0; padding: 14px;
    display: grid; gap: 5px; justify-items: start; background: #fcfdfe;
}
.ct-exportcard.is-current { border-color: var(--ct-emerald); background: var(--ct-emerald-light); }
.ct-exportcard b { color: var(--ct-ink); font-size: 13.5px; }
.ct-exportcard span { font-size: 12px; }

/* ------------------------------------------------------ центральный герой */

.ct-hero--center { text-align: center; padding: 44px 32px 40px; }
.ct-hero--center h1 { margin: 0 auto; max-width: 760px; font-size: 30px; }
.ct-hero--center p { margin: 12px auto 0; max-width: 660px; }
.ct-hero--center .ct-hero__stats { justify-content: center; gap: 44px; margin-top: 30px; }
.ct-hero--center .ct-hero__stat { text-align: center; }
.ct-hero__eyebrow {
    display: inline-block; position: relative; margin-bottom: 14px; padding: 5px 14px;
    border-radius: 0; border: 1px solid rgba(5, 150, 105, .45); background: rgba(5, 150, 105, .14);
    color: #6ee7b7; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ct-hero__actions { position: relative; display: flex; justify-content: center; gap: 12px;
    margin-top: 28px; flex-wrap: wrap; }
.ct-btn--onDark { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22); color: #fff; }
.ct-btn--onDark:hover { background: rgba(255, 255, 255, .18); }

/* ------------------------------------------- список лицензий (кабинет) -- */

.ct-dsgroups { display: grid; gap: 14px; }

.ct-lic { overflow: hidden; }

.ct-lic__head {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 14px 18px; border-bottom: 1px solid var(--ct-line-soft);
}
.ct-lic__id { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; min-width: 0; }
.ct-lic__title { font-size: 15.5px; }
.ct-lic__buy { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ct-lic__price { text-align: right; line-height: 1.15; }
.ct-lic__price b { display: block; font-size: 20px; font-weight: 700; color: var(--ct-ink);
    letter-spacing: -.01em; }
.ct-lic__price span { font-size: 11.5px; color: var(--ct-faint); }

/* Режимы просмотра таблицы: все / избранное / с заметками / скрытые ------ */

.ct-viewtabs {
    display: flex; align-items: stretch; flex-wrap: wrap; margin-bottom: 12px;
    background: #fff; border: 1px solid var(--ct-line); box-shadow: var(--ct-shadow);
}
.ct-viewtab {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: none; border: 0; border-right: 1px solid var(--ct-line-soft);
    border-bottom: 2px solid transparent; border-radius: 0;
    font-family: inherit; font-size: 13px; color: var(--ct-muted); cursor: pointer;
    transition: background .12s, color .12s;
}
.ct-viewtab:last-child { border-right: 0; }
.ct-viewtab:hover { background: var(--ct-bg); color: var(--ct-ink); }
.ct-viewtab svg { width: 15px; height: 15px; flex: none; }
.ct-viewtab.is-active {
    color: var(--ct-ink); font-weight: 600; background: #fff;
    border-bottom-color: var(--ct-emerald);
}
.ct-viewtab.is-active svg { color: var(--ct-emerald); }
.ct-viewtab__n {
    font-size: 11.5px; line-height: 1; padding: 3px 6px; min-width: 21px; text-align: center;
    background: var(--ct-line-soft); color: var(--ct-faint);
}
.ct-viewtab.is-active .ct-viewtab__n { background: var(--ct-emerald-light); color: var(--ct-emerald); }

/* Строка базы: вся строка — ссылка, кнопка справа только обозначает действие. */
.ct-lic__row {
    display: flex; align-items: center; gap: 14px; padding: 13px 18px;
    border-bottom: 1px solid var(--ct-line-soft); color: var(--ct-body);
    transition: background .12s;
}
.ct-lic__row:last-child { border-bottom: 0; }
.ct-lic__row:hover { background: #fbfdfc; text-decoration: none; }
.ct-lic__row:hover .ct-lic__open { background: var(--ct-graphite); border-color: var(--ct-graphite); color: #fff; }
.ct-lic__icon { width: 17px; height: 17px; color: var(--ct-faint); flex: none; }
.ct-lic__name { flex: 1; min-width: 0; color: var(--ct-ink); font-weight: 600; font-size: 14px; }
.ct-lic__meta { display: block; margin-top: 2px; color: var(--ct-muted); font-size: 12.5px;
    font-weight: 400; }
.ct-lic__open { flex: none; }

.ct-lic__foot {
    display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
    padding: 10px 18px 12px; border-top: 1px solid var(--ct-line-soft); background: #fcfdfe;
}
.ct-lic__pending { display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
    color: var(--ct-amber); font-size: 12.5px; }
.ct-lic__pending svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 780px) {
    .ct-lic__buy { margin-left: 0; width: 100%; justify-content: space-between; }
    .ct-lic__row { flex-wrap: wrap; }
    .ct-lic__open { margin-left: auto; }
}

/* --------------------------------------------------------- прочее -- */

/* Адрес в таблице: две строки максимум, дальше многоточие. */
.ct-addr {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 12.5px; line-height: 1.4;
}

/* Подписи под значением в ячейке не должны раздувать строку выше двух строк. */
.ct-table td .ct-orgsub {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Состав лицензии в карточке базы — раскрывается на месте. */
.ct-included { min-width: 0; }
.ct-included[open] { flex-basis: 100%; }
.ct-included > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--ct-emerald-dark); padding: 6px 0;
}
.ct-included > summary::-webkit-details-marker { display: none; }
.ct-included > summary svg { transition: transform .15s; }
.ct-included[open] > summary svg { transform: rotate(180deg); }
.ct-included ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ct-included li { display: flex; gap: 9px; font-size: 13px; color: var(--ct-body); }
.ct-included li svg { width: 15px; height: 15px; color: var(--ct-emerald); flex: none; margin-top: 1px; }

/* Единственный блок на странице — занимает экран целиком, чтобы кабинет не
   выглядел «недогруженным». */
.ct-hero--solo {
    min-height: calc(100vh - 62px - 80px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px 32px;
}
.ct-hero--solo h1 { font-size: 34px; }
.ct-hero--solo p { font-size: 15px; }
.ct-hero--solo .ct-hero__actions { margin-top: 32px; }

/* ==========================================================================
   Левое меню кабинета и формы личного раздела
   ========================================================================== */

.ct-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.ct-layout__main { min-width: 0; }
@media (max-width: 940px) { .ct-layout { grid-template-columns: minmax(0, 1fr); } }

.ct-side { position: sticky; top: 82px; display: grid; gap: 18px; }
@media (max-width: 940px) { .ct-side { position: static; } }

.ct-side__home {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ct-muted);
    padding: 2px 0;
}
.ct-side__home svg { width: 13px; height: 13px; }
.ct-side__home:hover { color: var(--ct-ink); text-decoration: none; }

.ct-side__group { display: grid; gap: 2px; }
.ct-side__title {
    font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--ct-faint); padding: 0 10px 6px;
}
.ct-side__link {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 0;
    font-size: 13.5px; font-weight: 500; color: var(--ct-body); transition: background .12s, color .12s;
}
.ct-side__link svg { width: 16px; height: 16px; color: var(--ct-faint); flex: none; }
.ct-side__link:hover { background: #fff; color: var(--ct-ink); text-decoration: none; }
.ct-side__link:hover svg { color: var(--ct-muted); }
.ct-side__link.is-active {
    background: #fff; color: var(--ct-ink); font-weight: 600;
    box-shadow: inset 2px 0 0 var(--ct-emerald), var(--ct-shadow);
}
.ct-side__link.is-active svg { color: var(--ct-emerald); }

/* Точка «здесь ещё не заполнено» — мягкое напоминание, не ошибка. */
.ct-side__todo {
    margin-left: auto; width: 7px; height: 7px; border-radius: 0;
    background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .18);
}

.ct-side__card {
    background: #fff; border: 1px solid var(--ct-line); border-radius: 0;
    padding: 13px 14px; box-shadow: var(--ct-shadow);
}
.ct-side__cardtitle { color: var(--ct-ink); font-weight: 600; font-size: 13px; }
.ct-side__cardline { color: var(--ct-muted); font-size: 12px; margin-top: 3px; word-break: break-word; }
.ct-side__hint {
    display: flex; gap: 8px; margin-top: 11px; padding-top: 11px;
    border-top: 1px solid var(--ct-line-soft); font-size: 12px; color: var(--ct-amber); line-height: 1.4;
}
.ct-side__hint svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.ct-side__hint:hover { text-decoration: none; color: #92400e; }

/* --------------------------------------------------------------- формы -- */

.ct-formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 700px) { .ct-formgrid { grid-template-columns: minmax(0, 1fr); } }

.ct-field { display: grid; gap: 5px; min-width: 0; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-field__label { font-size: 12.5px; font-weight: 600; color: var(--ct-ink); }
.ct-field__label i { color: var(--ct-rose); font-style: normal; }
.ct-field__hint { font-size: 11.5px; color: var(--ct-faint); line-height: 1.4; }
.ct-field__error { font-size: 12px; color: var(--ct-rose); }
.ct-input.is-invalid, .ct-textarea.is-invalid { border-color: var(--ct-rose); }
.ct-input:disabled { background: var(--ct-bg); color: var(--ct-muted); cursor: not-allowed; }

/* ==========================================================================
   Личный раздел: уже общей ширины сайта + воздух в заголовке
   ========================================================================== */

/* Общая шапка сайта тянется на 1560, внутренний кабинет — на 1200.
   Разница ширины и есть тот сигнал «я внутри аккаунта, а не в общем разделе». */
.ct-wrap--cabinet { max-width: 1200px; }

/* Заголовок больше не прибит к границам: воздух сверху и снизу. */
.ct-subhead__inner { padding: 26px 0 22px; }
.ct-tabs { margin-top: 6px; }

/* У кабинета фон подложки чуть глубже, чем у общих страниц. */
.ct-subhead--cabinet { background: #fff; box-shadow: inset 0 -1px 0 var(--ct-line); }
.ct-subhead--cabinet + .ct-main { background:
    linear-gradient(180deg, #f2f5f8 0, var(--ct-bg) 220px); }
.ct-subhead--cabinet + .ct-main { padding-top: 28px; }

/* В узкой колонке шапка лицензии остаётся в одну строку. */
.ct-lic__id { flex: 1 1 auto; }
.ct-lic__buy { flex: none; }

/* ==========================================================================
   Публичная морда и страницы входа
   ========================================================================== */

.ct-authcard { text-align: left; }
.ct-authcard__logo {
    display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 22px;
    color: var(--ct-ink); font-weight: 700; letter-spacing: .10em; font-size: 16px;
    text-transform: uppercase;
}
.ct-authcard__logo:hover { text-decoration: none; }
.ct-authcard__logo .ct-logo__sub { color: var(--ct-emerald-dark); }
.ct-authcard h1 { text-align: center; }
.ct-authcard p { text-align: center; }

.ct-authform { display: grid; gap: 14px; margin-top: 4px; }
.ct-authform__row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 13px; }
.ct-authform .ct-btn--block { margin-top: 4px; }

.ct-authcard__foot {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ct-line-soft);
    text-align: center; font-size: 13.5px; color: var(--ct-muted);
}

/* Кнопки в шапке публичной морды: только контур, фон прозрачный. Чуть крупнее
   обычной кнопки — на тёмной шапке мелкая рамка теряется. */
.ct-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
    padding: 11px 20px;
    font-size: 14px;
}
.ct-btn--outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .70);
}

/* Колонка, которой в этой базе нет: видно, что вариант существует, но данных
   под него реестр не публикует. */
.ct-check.is-disabled { color: var(--ct-faint); cursor: default; }
.ct-check.is-disabled input { cursor: default; }
.ct-check__none { display: block; font-size: 11px; color: var(--ct-faint); margin-top: 1px; }

/* ------------------------------------------------- полоса лицензии базы -- */

/* Отдельная строка под заголовком: цене, типу лицензии и связанным базам
   нужна ширина, а в правом углу шапки они слипались и бейдж читался как
   вторая кнопка рядом с оплатой. */
/* Плашка лицензии на странице базы — та же карточка, что и в My datasets,
   только без списка строк: одна шапка (.ct-lic__head) и всё. */
.ct-lic--bar { margin-bottom: 18px; }
/* nowrap: иначе длинное имя второй базы выталкивает цену на отдельную строку,
   и плашка становится вдвое выше. Пусть лучше переносится сам текст. */
.ct-lic--bar .ct-lic__head { border-bottom: 0; flex-wrap: nowrap; gap: 18px; }
/* Бейдж и текст — в одну строку: бейдж не должен уезжать на свою. */
.ct-lic--bar .ct-lic__id { flex-wrap: nowrap; }
.ct-lic--bar .ct-lic__id > .ct-badge { flex: none; }

/* Слева от цены — с какой базой лицензия делится. Со страницы одной базы
   должно быть видно, за что именно платят. */
.ct-lic__with { color: var(--ct-muted); font-size: 13px; min-width: 0; line-height: 1.45; }
.ct-lic__with a { color: var(--ct-body); border-bottom: 1px solid var(--ct-line); }
.ct-lic__with a:hover { color: var(--ct-emerald); border-bottom-color: var(--ct-emerald); text-decoration: none; }
.ct-lic__with i { font-style: normal; color: var(--ct-faint); white-space: nowrap; }
.ct-lic__with i::before { content: ' · '; }
