@font-face { font-family: "Twemoji Country Flags"; src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F; font-display: swap; }
:root {
    --color-primary: #0f172a;
    --color-accent: #0369a1;
    --color-bg: #f4f7fb;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-soft: 0 4px 16px -6px rgba(15, 23, 42, .12), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-pop: 0 12px 32px -10px rgba(15, 23, 42, .22);

    --radius: 1rem;
}

body {
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(3, 105, 161, .05), transparent 70%),
        var(--color-bg);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
}

.min-h-dvh { min-height: 100vh; min-height: 100dvh; }

th, td,
.cat-kpi-val, .cat-col-val, .cov-act, .cov-exp, .cell-num, .nav-badge {
    font-variant-numeric: tabular-nums;
}
.tnum { font-variant-numeric: tabular-nums; }


.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.nav-link {
    position: relative;
    display: flex; align-items: center; gap: .7rem;
    min-height: 2.6rem; padding: 0 .75rem;
    border: 1px solid transparent; border-radius: .6rem;
    font-weight: 600;
    font-size: .9rem;
    color: #475569;
    white-space: nowrap;
    text-align: left; background: none; width: 100%; cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover { background: #f1f5f9; color: #0f172a; }
.nav-active { background: #e0f2fe; color: #075985 !important; border-color: #bae6fd; }
.nav-ico { width: 1.15rem; height: 1.15rem; flex: none; color: #64748b; }
.nav-active .nav-ico { color: #0284c7; }
.nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem; margin-left: .35rem;
    font-size: .65rem; font-weight: 800; line-height: 1;
    color: #fff; background: #dc2626; border-radius: 1rem; vertical-align: middle;
}
.badge-brand { background: #0284c7; }

.app-shell {
    display: grid; min-height: 100vh; min-height: 100dvh;
    grid-template-columns: 16rem minmax(0, 1fr); grid-template-areas: "nav main";
}
.app-nav {
    grid-area: nav; position: sticky; top: 0; z-index: 45;
    height: 100vh; height: 100dvh; min-width: 0;
    display: flex; flex-direction: column;
    background: #fff; border-right: 1px solid #e2e8f0;
}
.app-main { grid-area: main; min-width: 0; }
.app-brand {
    display: flex; align-items: center; gap: .65rem; flex: none;
    height: 4rem; padding: 0 1.25rem; white-space: nowrap; overflow: hidden;
}
.app-brand-mark {
    width: 2.25rem; height: 2.25rem; flex: none; border-radius: .6rem;
    background: #0f172a; color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: background-color .2s ease;
}
.app-brand:hover .app-brand-mark { background: #0369a1; }
.app-brand-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.app-brand-name span { color: #0284c7; }
.app-nav-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: .25rem .75rem .75rem; scrollbar-width: thin; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list .nav-link { order: 100; }
.nav-list .nav-link.nav-dragging { opacity: .4; }
.nav-list .nav-link.nav-drop { outline: 1px dashed #0369a1; outline-offset: -1px; background: #f0f9ff; }
.app-nav-foot { flex: none; border-top: 1px solid #e2e8f0; padding: .6rem .75rem .75rem; }
.app-appearance[aria-expanded="true"] { background: #f1f5f9; color: #0f172a; }
.app-profile { display: flex; align-items: center; gap: .65rem; margin-top: .5rem; padding: .6rem .4rem 0; border-top: 1px solid #f1f5f9; }
.app-face {
    width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; overflow: hidden;
    background: #0284c7; color: #fff; font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}
.app-person { flex: 1; min-width: 0; line-height: 1.25; }
.app-profile .face-btn { padding: 0; border: 0; cursor: pointer; }
.app-profile .face-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.app-tools { display: flex; align-items: center; gap: .1rem; flex: none; }
.app-tools .theme-toggle { width: 2.1rem; height: 2.1rem; }
.app-logout { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; color: #64748b; transition: background-color .2s ease, color .2s ease; }
.app-logout:hover { background: #fff1f2; color: #f43f5e; }
.app-logout svg { width: 1.15rem; height: 1.15rem; }
.app-person strong { display: block; font-size: .8rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-person small { display: block; font-size: .72rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top {
    position: sticky; top: 0; z-index: 40; height: 4rem; flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0 1.5rem; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.app-top-left { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.app-crumb { font-size: .9rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-burger {
    display: none; width: 2.5rem; height: 2.5rem; flex: none; border-radius: .6rem;
    align-items: center; justify-content: center; color: #475569;
}
.app-burger:hover { background: #f1f5f9; color: #0f172a; }
.app-overlay { display: none; }

html[data-nav="right"] .app-shell { grid-template-columns: minmax(0, 1fr) 16rem; grid-template-areas: "main nav"; }
html[data-nav="right"] .app-nav { border-right: 0; border-left: 1px solid #e2e8f0; }

html[data-nav="compact"] .app-shell { grid-template-columns: 4.75rem minmax(0, 1fr); }
html[data-nav="compact"] .app-brand { justify-content: center; padding: 0; }
html[data-nav="compact"] .app-brand-name,
html[data-nav="compact"] .app-nav .nav-name,
html[data-nav="compact"] .app-person { display: none; }
html[data-nav="compact"] .app-nav-scroll { padding: .25rem .6rem .75rem; scrollbar-width: none; }
html[data-nav="compact"] .app-nav-scroll::-webkit-scrollbar { display: none; }
html[data-nav="compact"] .app-nav .nav-link { justify-content: center; padding: 0; }
html[data-nav="compact"] .app-nav .nav-badge {
    position: absolute; top: .2rem; right: .2rem; margin: 0;
    min-width: .95rem; height: .95rem; padding: 0 .2rem; font-size: .58rem;
}
html[data-nav="compact"] .app-nav-foot { padding: .6rem; }
html[data-nav="compact"] .app-profile { flex-direction: column; justify-content: center; gap: .35rem; padding: .6rem 0 0; }
html[data-nav="compact"] .app-tools { flex-direction: column; }

@media (min-width: 768px) {
    html[data-nav="top"] .app-shell {
        grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 4rem auto;
        grid-template-areas: "nav top" "main main";
    }
    html[data-nav="top"] .app-main { display: contents; }
    html[data-nav="top"] .app-nav {
        height: 4rem; flex-direction: row; align-items: center; gap: .75rem;
        border-right: 0; border-bottom: 1px solid #e2e8f0; padding-left: 1rem;
    }
    html[data-nav="top"] .app-brand { height: 4rem; padding: 0 .25rem 0 0; }
    html[data-nav="top"] .app-nav-scroll {
        height: 4rem; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
        display: flex; align-items: center;
    }
    html[data-nav="top"] .app-nav-scroll::-webkit-scrollbar { display: none; }
    html[data-nav="top"] .nav-list { flex-direction: row; align-items: center; gap: 2px; min-width: max-content; }
    html[data-nav="top"] .nav-list .nav-link { width: auto; min-height: 2.4rem; padding: 0 .7rem; gap: .5rem; }
    html[data-nav="top"] .nav-list .nav-name { flex: none; }
    html[data-nav="top"] .app-nav-foot { border: 0; padding: 0; display: flex; align-items: center; }
    html[data-nav="top"] .app-appearance { width: auto; padding: 0 .6rem; }
    html[data-nav="top"] .app-appearance .nav-name,
    html[data-nav="top"] .app-crumb { display: none; }
    html[data-nav="top"] .app-profile { margin: 0; padding: 0 0 0 .5rem; border: 0; gap: .5rem; }
    html[data-nav="top"] .app-person { flex: none; max-width: 11rem; }
    html[data-nav="top"] .app-profile .face-menu { top: calc(100% + 8px); bottom: auto; left: 0; right: auto; }
    html[data-nav="top"] .app-top { grid-area: top; padding: 0 1.25rem 0 .5rem; }
    html[data-nav="top"] .app-main > main { grid-area: main; }
}
.nav-arrow { display: none; }
@media (min-width: 768px) {
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow {
        display: inline-flex; align-items: center; justify-content: center; flex: none;
        width: 2rem; height: 2rem; border-radius: 999px; color: #475569; background: #f1f5f9; cursor: pointer;
        transition: opacity .2s ease, transform .25s ease, background-color .2s ease, color .2s ease;
    }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow:hover { background: #e0f2fe; color: #0369a1; }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow-prev:hover svg { transform: translateX(-2px); }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow-next:hover svg { transform: translateX(2px); }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow:disabled { opacity: 0; pointer-events: none; }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow-prev:disabled { transform: translateX(8px); }
    html[data-nav="top"] .app-nav.nav-overflow .nav-arrow-next:disabled { transform: translateX(-8px); }
    html[data-nav="top"] .app-nav.can-prev .app-nav-scroll {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem);
        mask-image: linear-gradient(to right, transparent, #000 1.5rem);
    }
    html[data-nav="top"] .app-nav.can-next .app-nav-scroll {
        -webkit-mask-image: linear-gradient(to left, transparent, #000 1.5rem);
        mask-image: linear-gradient(to left, transparent, #000 1.5rem);
    }
    html[data-nav="top"] .app-nav.can-prev.can-next .app-nav-scroll {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
        mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
    }
}
@media (prefers-reduced-motion: reduce) {
    .nav-arrow, .nav-arrow svg { transition: none !important; }
}
@media (min-width: 768px) and (max-width: 1279px) {
    html[data-nav="top"] .nav-list .nav-ico { display: none; }
    html[data-nav="top"] .app-person { display: none; }
}

@media (min-width: 768px) {
    html:not([data-nav="top"]) .app-top { display: none; }
    html:not([data-nav="top"]) .app-page { max-width: none; }
    html:not([data-nav="top"]) .sched-th { top: 0; }
    html:not([data-nav="top"]) .wiki-side,
    html:not([data-nav="top"]) .wiki-toc { top: 1rem; }
}

@media (min-width: 768px) {
    html[data-nav="right"] .sh-panel { right: 16rem; }
    html[data-nav="right"] .sh-panel { border-right: 1px solid #e2e8f0; }
}

@media (max-width: 767px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
    .app-nav {
        position: fixed; left: 0; top: 0; bottom: 0; width: 16rem; z-index: 70;
        transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
    }
    html[data-nav="right"] .app-nav { left: auto; right: 0; transform: translateX(100%); }
    html.nav-open .app-nav { transform: none; }
    html[data-nav="compact"] .app-brand { justify-content: flex-start; padding: 0 1.25rem; }
    html[data-nav="compact"] .app-brand-name,
    html[data-nav="compact"] .app-nav .nav-name,
    html[data-nav="compact"] .app-person { display: block; }
    html[data-nav="compact"] .app-nav .nav-link { justify-content: flex-start; padding: 0 .75rem; }
    html[data-nav="compact"] .app-nav .nav-badge { position: static; margin-left: .35rem; }
    html[data-nav="compact"] .app-profile { flex-direction: row; justify-content: flex-start; gap: .65rem; padding: .6rem .4rem 0; }
    html[data-nav="compact"] .app-tools { flex-direction: row; }
    html.nav-open .app-overlay {
        display: block; position: fixed; inset: 0; z-index: 65; background: rgba(15, 23, 42, .45); border: 0;
    }
    .app-burger { display: inline-flex; }
    .app-top { padding: 0 1rem; }
}

.appearance-pop {
    position: fixed; z-index: 90; width: min(22rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 1.5rem); overflow-y: auto; padding: 1rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
    box-shadow: 0 22px 55px rgba(23, 42, 80, .18);
}
.appearance-pop[hidden] { display: none; }
.ap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; padding-bottom: .7rem; border-bottom: 1px solid #f1f5f9; }
.ap-head strong { display: block; font-size: .9rem; font-weight: 800; color: #0f172a; }
.ap-head span { display: block; font-size: .72rem; color: #64748b; margin-top: .1rem; }
.ap-section { padding: .85rem 0; border-bottom: 1px solid #f1f5f9; }
.ap-label { font-size: .75rem; font-weight: 700; color: #334155; margin-bottom: .55rem; }
.ap-help { font-size: .7rem; color: #64748b; margin-top: .5rem; line-height: 1.45; }
.ap-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.ap-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.ap-choice {
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    padding: .55rem .2rem .45rem; border: 1px solid #e2e8f0; border-radius: .6rem;
    background: #f8fafc; color: #475569; font-size: .68rem; font-weight: 600; cursor: pointer;
}
.ap-theme { flex-direction: row; justify-content: center; padding: .55rem .3rem; font-size: .72rem; }
.ap-choice:hover { border-color: #0369a1; }
.ap-choice[aria-pressed="true"] { border-color: #0369a1; background: #e0f2fe; color: #0f172a; }
.ap-mini { position: relative; display: block; width: 2.4rem; height: 1.6rem; border: 1px solid #94a3b8; border-radius: .25rem; overflow: hidden; }
.ap-mini::before { content: ""; position: absolute; background: #0369a1; }
.ap-mini-left::before { left: 0; top: 0; bottom: 0; width: .7rem; }
.ap-mini-compact::before { left: 0; top: 0; bottom: 0; width: .3rem; }
.ap-mini-right::before { right: 0; top: 0; bottom: 0; width: .7rem; }
.ap-mini-top::before { left: 0; right: 0; top: 0; height: .45rem; }
.ap-order { max-height: 15rem; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: .6rem; background: #f8fafc; }
.ap-item {
    display: flex; align-items: center; gap: .5rem; min-height: 2.2rem; padding: .2rem .4rem .2rem .55rem;
    border-bottom: 1px solid #f1f5f9; font-size: .75rem; color: #334155; cursor: grab;
}
.ap-item:last-child { border-bottom: 0; }
.ap-item.nav-dragging { opacity: .4; }
.ap-item.nav-drop { outline: 1px dashed #0369a1; outline-offset: -1px; background: #f0f9ff; }
.ap-grip { width: .85rem; height: .85rem; flex: none; color: #94a3b8; }
.ap-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-move {
    width: 1.6rem; height: 1.6rem; flex: none; border-radius: .4rem; color: #64748b;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ap-move:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; }
.ap-move:disabled { opacity: .35; cursor: default; }
.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; }
.ap-reset { font-size: .72rem; font-weight: 600; color: #64748b; background: none; border: 0; cursor: pointer; padding: .2rem 0; }
.ap-reset:hover { color: #0f172a; text-decoration: underline; }
.ap-saved { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; color: #64748b; }
.ap-saved svg { color: #059669; }

@media (prefers-reduced-motion: reduce) {
    .app-nav { transition: none; }
}

.btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.2rem; border-radius: .7rem;
    font-weight: 700; font-size: .9rem;
    transition: background-color .2s ease, box-shadow .2s ease, transform .12s ease;
    cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
    background: var(--color-accent); color: #fff;
    box-shadow: 0 4px 12px -4px rgba(3, 105, 161, .5);
}
.btn-primary:hover { background: #075985; box-shadow: 0 6px 16px -4px rgba(3, 105, 161, .55); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    background: #fff; color: #0f172a; border-color: #e2e8f0; box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }

.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
    opacity: .45; cursor: not-allowed; box-shadow: none;
}
.btn-primary:disabled:hover, .btn-secondary:disabled:hover, .btn-danger:disabled:hover {
    background: inherit; border-color: inherit; transform: none;
}

.btn-copy { min-width: 8.5rem; justify-content: center; }
.btn-copied { background: #10b981; color: #fff; border-color: #10b981; }
.btn-copied:hover { background: #10b981; color: #fff; border-color: #10b981; }

.btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; border-radius: .65rem;
    color: #64748b; background: #fff; border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease; cursor: pointer;
}
.icon-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }

.input {
    width: 100%; padding: .65rem .9rem; border-radius: .7rem;
    border: 1px solid #cbd5e1; background: #fff;
    outline: none; transition: border-color .2s ease, box-shadow .2s ease; font-size: .92rem;
    color: #0f172a;
}
.input:focus { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3, 105, 161, .14); }

.select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding: .6rem 2.3rem .6rem .9rem; border-radius: .7rem;
    border: 1px solid #cbd5e1; background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.05rem;
    font-size: .9rem; font-weight: 600; color: #0f172a;
    outline: none; cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.select:hover { border-color: #94a3b8; }
.select:focus { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3, 105, 161, .14); }
.select:disabled { background-color: #f8fafc; color: #94a3b8; cursor: not-allowed; }

.cell {
    min-height: 60px; border-radius: .7rem; padding: .5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
    border: 1px solid transparent;
    position: relative;
    --dot: 5px; --dot-x: 5px; --dot-y: 5px;
}
.cell-clickable { cursor: pointer; }
.cell-clickable:hover { box-shadow: var(--shadow-soft); border-color: #7dd3fc; }
.cell-plus { color: #94a3b8; transition: color .15s ease; }
.cell-clickable:hover .cell-plus,
.cell-clickable:focus-visible .cell-plus { color: #0369a1; }

.cell:focus { outline: none; }
.cell:focus-visible { outline: 2px solid #0369a1; outline-offset: 1px; z-index: 6; }

.sched-th { background: #fff; }
@media (min-width: 768px) {
    .sched-th { position: sticky; top: 4rem; z-index: 20; }
    .sched-th-first { z-index: 21; }
}

.kind-empty   { background: #f8fafc; border-color: #eef2f6; color: #94a3b8; }
.kind-empty.cell-clickable:hover { background: #f0f9ff; border-color: #bae6fd; }
.kind-work    { background: #e0f2fe; border-color: #bae6fd; color: #075985; }
.kind-dayoff  { background: #f1f5f9; border-color: #e2e8f0; color: #64748b; }
.kind-vacation{ background: #fef3c7; border-color: #fde68a; color: #b45309; }
.kind-sick    { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.kind-training { background: #dcfce7; border-color: #86efac; color: #166534; }

.role-badge { font-size: .65rem; padding: .1rem .5rem; border-radius: 1rem; font-weight: 700; vertical-align: middle; margin-left: .35rem; }
.role-admin    { background: #e0f2fe; color: #075985; }
.role-head     { background: #ede9fe; color: #6d28d9; }
.role-manager  { background: #dbeafe; color: #1d4ed8; }
.role-employee { background: #f1f5f9; color: #475569; }

.kind-btn[data-active="true"] { border-color: #0369a1; background: #e0f2fe; color: #075985; box-shadow: 0 0 0 2px rgba(3,105,161,.14); }

.seg { display: inline-flex; background: #eef2f6; border-radius: .7rem; padding: .22rem; gap: .22rem; }
.seg-btn { padding: .4rem .9rem; border-radius: .5rem; font-weight: 700; font-size: .85rem; color: #475569; transition: all .2s ease; }
.seg-btn:hover { color: #0f172a; }
.seg-active { background: #fff; color: #0369a1; box-shadow: var(--shadow-sm); }

.dept-pill {
    padding: .45rem .85rem; border-radius: .7rem; font-weight: 700; font-size: .85rem;
    color: #475569; background: #fff; border: 1px solid #e2e8f0; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.dept-pill:hover { border-color: #7dd3fc; background: #f0f9ff; color: #0f172a; }
.dept-pill-active { background: #0369a1; color: #fff; border-color: #0369a1; box-shadow: 0 4px 12px -4px rgba(3, 105, 161, .5); }
.dept-pill-active:hover { background: #075985; color: #fff; }
.dept-pill-add { border-style: dashed; color: #0369a1; background: transparent; cursor: pointer; }
.dept-pill-add:hover { border-style: solid; }

.cell-compact { min-height: 42px; padding: .25rem; border-radius: .5rem; --dot: 4px; --dot-x: 3px; --dot-y: 3px; }

.cell-training::after,
.cell-mentoring::after,
.cell-bonus::before {
    content: ""; position: absolute; top: var(--dot-y); right: var(--dot-x);
    width: var(--dot); height: var(--dot); border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .65);
}
.cell-training::after { background: #16a34a; }
.cell-mentoring::after { background: #a855f7; }
.cell.cell-mentoring::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4 1 9l11 5 9-4.1V15h2V9z'/%3E%3Cpath d='M6 12.3V16c0 1.7 2.7 3 6 3s6-1.3 6-3v-3.7l-6 2.7z'/%3E%3C/svg%3E");
    top: -6px; right: auto; left: -5px; width: 15px; height: 15px; z-index: 3;
    display: flex; align-items: center; justify-content: center; line-height: 0;
    box-shadow: 0 0 0 1.5px #fff;
}
.cell-compact.cell-mentoring::after { top: -5px; left: -4px; width: 13px; height: 13px; }
.sx-rate {
    position: absolute; top: -6px; right: -4px; z-index: 3;
    padding: 1px 3px; border-radius: 5px; background: #f59e0b; color: #fff;
    font-size: 9px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 1.5px #fff;
}
.cell-bonus:has(.sx-rate)::before { display: none; }
.sx-x { display: none; }
th.sx-x { width: 44px; min-width: 44px; }
th.sx-x.sx-total { width: 52px; min-width: 52px; }
.sx-open .sx-x { display: table-cell; }
.sx-open .sx-c { display: none; }
.sx-short { display: none; }
.sx-open .sx-short { display: inline; }
.sx-open .sx-full { display: none; }
.sx-toggle { display: block; width: 100%; padding: .55rem 0; border-radius: .75rem; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.sx-toggle:hover { background: #d97706; }
.sx-sub { background: #fde68a; color: #92400e; }
.sx-sub-m { background: #e9d5ff; color: #7e22ce; }
.sx-head-m { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 8px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.sx-cap { width: 12px; height: 12px; fill: currentColor; }
.sx-num { background: #fafafa; border-color: #f1f5f9; color: #cbd5e1; font-weight: 800; }
.sx-num.sx-on { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.sx-num.sx-all.sx-on { background: #fef3c7; border-color: #f59e0b; }
.sx-num.sx-m.sx-on { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }
.cell-bonus::before { background: #f59e0b; }
.cell-bonus.cell-training::after,
.cell-bonus.cell-mentoring::after { right: calc(var(--dot-x) + var(--dot) + 3px); }

.legend-dot { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; }
.legend-wedge { width: .7rem; height: .7rem; display: inline-block; clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: .2rem; }
.legend-wedge-down { clip-path: polygon(0 0, 0 100%, 100% 100%); border-top-left-radius: 0; border-bottom-left-radius: .2rem; }

.swp-badge {
    position: absolute; right: 2px; bottom: 2px;
    width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; line-height: 1;
    color: #fff; box-shadow: 0 0 0 1.5px #fff;
}
.swp-badge svg { width: 10px; height: 10px; }
.swp-badge-offer { background: #e11d48; }
.swp-badge-swap { background: #4f46e5; }
.cell-compact .swp-badge {
    width: 12px; height: 12px; font-size: 9px;
    right: auto; left: 50%; bottom: -6px; transform: translateX(-50%);
    box-shadow: 0 0 0 2px #fff;
}
.cell-compact .swp-badge svg { width: 8px; height: 8px; }
.cell-compact.swp-pending, .cell-compact.swp-offered { margin-bottom: 7px; }

body.swp-picking .swp-ok {
    cursor: pointer;
    animation: swpPulse 1.3s ease-in-out infinite;
}
body.swp-picking .swp-ok:hover { transform: scale(1.06); z-index: 5; }
body.swp-picking .cell:not(.swp-ok) { opacity: .3; cursor: default; }

@keyframes swpPulse {
    0%, 100% { box-shadow: inset 0 0 0 2px #4f46e5, 0 0 0 0 rgba(79, 70, 229, .45); }
    50% { box-shadow: inset 0 0 0 2px #4f46e5, 0 0 0 6px rgba(79, 70, 229, 0); }
}

.swp-bar {
    position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
    z-index: 65; display: flex; align-items: center; gap: .9rem;
    padding: .7rem 1.1rem; border-radius: 999px;
    background: #1e293b; color: #fff; box-shadow: var(--shadow-pop);
}
.swp-bar-text { font-size: .85rem; font-weight: 600; }
.swp-bar-btn {
    font-size: .8rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px;
    background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
    transition: background-color .15s ease;
}
.swp-bar-btn:hover { background: rgba(255, 255, 255, .26); }
.swp-bar-go { background: #0284c7; }
.swp-bar-go:hover { background: #0369a1; }
.swp-bar-del { background: #e11d48; }
.swp-bar-del:hover { background: #be123c; }

.cell-xonly.kind-work {
    background: #fef3c7; border-color: #f59e0b; color: #92400e;
}

.sched-day {
    display: block; width: 100%; padding: 0; border: 0; background: none;
    color: inherit; font: inherit; cursor: pointer; border-radius: .55rem;
}
.sched-day:hover { text-decoration: underline; text-underline-offset: 2px; }
.sched-day:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }

.rst-group + .rst-group { margin-top: 1.1rem; }
.rst-head {
    display: flex; align-items: baseline; gap: .5rem;
    font-size: .8rem; font-weight: 800; color: #0369a1;
    text-transform: uppercase; letter-spacing: .02em;
}
.rst-time { font-size: .72rem; font-weight: 600; color: #94a3b8; text-transform: none; }
.rst-list {
    margin: .45rem 0 0; padding-left: 1.4rem; list-style: decimal;
    font-size: .9rem; color: #334155;
}
.rst-list li { padding: .12rem 0; }

.jr-tag {
    font-size: .72rem; font-weight: 800; padding: .1rem .5rem;
    border-radius: 999px; white-space: nowrap;
}
.jr-tag-swap { background: #eef2ff; color: #4338ca; }
.jr-tag-offer { background: #f0fdfa; color: #0f766e; }

.cell-picked {
    outline: 2px solid #0284c7; outline-offset: -2px;
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, .18);
}

.origin-mark {
    position: absolute; top: 0; left: 0; width: 13px; height: 13px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    border-top-left-radius: .7rem;
    background: #6366f1;
}
.cell-origin-offer .origin-mark { background: #0d9488; }
.cell-compact .origin-mark { width: 10px; height: 10px; border-top-left-radius: .5rem; }
#schedGrid.schedule-max .origin-mark { width: 9px; height: 9px; border-top-left-radius: .4rem; }

.cat-dot, .adm-dot, .rate-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1;
    display: inline-block; transition: background-color .2s ease, width .2s ease;
}
.cat-dot[data-active="1"], .adm-dot[data-active="1"], .rate-dot[data-active="1"] { background: #0369a1; width: 18px; border-radius: 4px; }

.rate-reasons { display: flex; flex-direction: column; gap: .5rem; }
.rate-reason { display: flex; align-items: flex-start; gap: .75rem; border: 1px solid #ffe4e6; background: #fff7f8; border-radius: .9rem; padding: .7rem .85rem; }
.rate-reason-body { flex: 1; min-width: 0; }
.rate-reason-meta { font-size: .75rem; color: #64748b; margin-bottom: .1rem; }
.rate-reason-text { font-size: .875rem; color: #334155; overflow-wrap: anywhere; }
.rate-link { display: inline-block; margin-top: .25rem; font-size: .78rem; color: #0369a1; overflow-wrap: anywhere; }
.rate-link:hover { text-decoration: underline; }
.rate-reason-gone { background: #f8fafc; border: 1px dashed #cbd5e1; }
.rate-reason-gone .rate-reason-meta, .rate-reason-gone .rate-reason-text { text-decoration: line-through; color: #94a3b8; }
.rate-reason-gone .rate-link { color: #94a3b8; }
.rate-gone-note { font-size: .72rem; color: #64748b; margin-top: .3rem; }
.rate-act { flex-shrink: 0; }
.rate-del { width: 2.1rem; height: 2.1rem; border-radius: .6rem; border: 1px solid #fecdd3; background: #fff; color: #e11d48; display: inline-flex; align-items: center; justify-content: center; }
.rate-del:hover { background: #fff1f2; }
.rate-back { border: 1px solid #c7d2fe; background: #fff; color: #4338ca; border-radius: .6rem; padding: .4rem .7rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.rate-back:hover { background: #eef2ff; }
.rate-gone-pill { display: inline-block; font-size: .68rem; font-weight: 800; color: #64748b; background: #e2e8f0; border-radius: .4rem; padding: .05rem .4rem; text-transform: none; letter-spacing: 0; }
.rate-note { margin: -.5rem 0 1.25rem; padding: .5rem .75rem; border-radius: .7rem; background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; font-size: .78rem; }
.rate-more { align-self: flex-start; }
.rate-card-gone { background: #f8fafc !important; border-style: dashed !important; }
.rate-card-gone .font-semibold { text-decoration: line-through; color: #94a3b8; }
.rate-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.rate-table-wrap { overflow-x: auto; }
.rate-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.rate-table th { text-align: left; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: .5rem; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.rate-table td { padding: .55rem .5rem; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.rate-table .c { text-align: center; }
#rateRows tr { cursor: pointer; }
#rateRows tr:hover td { background: #f8fafc; }
#rateRows tr.rate-row-on td { background: #e0f2fe; }
#rateRows tr.rate-row-on td:first-child { box-shadow: inset 3px 0 0 #0369a1; }
.rate-name { font-weight: 700; color: #0f172a; }
.rate-name span { font-weight: 600; color: #94a3b8; margin-left: .2rem; }
.rate-stack { display: flex; height: .75rem; min-width: 9rem; border-radius: 999px; overflow: hidden; background: #f1f5f9; }
.rate-stack i { display: block; height: 100%; }
.rate-s5 { background: #34d399; }
.rate-s4 { background: #86efac; }
.rate-s3 { background: #fbbf24; }
.rate-s2 { background: #fb7185; }
.rate-s1 { background: #e11d48; }
.rate-one { color: #e11d48; font-weight: 800; }
.rate-csi { color: #0369a1; font-weight: 800; }
.rate-up { color: #15803d; font-weight: 700; font-size: .78rem; }
.rate-down { color: #b91c1c; font-weight: 700; font-size: .78rem; }
.rate-spark { width: 6.9rem; height: 1.6rem; display: block; }
.rate-spark polyline { fill: none; stroke: #0369a1; stroke-width: 1.6; }
.rate-card { margin-top: 1rem; border: 1px solid #bae6fd; background: #f8fcff; border-radius: 1.1rem; padding: 1rem; }
.rate-card-head { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.rate-ava { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: #0369a1; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rate-card-title div { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.rate-card-title span { font-size: .78rem; color: #64748b; }
.rate-pager { margin-left: auto; display: flex; gap: .4rem; }
.rate-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.rate-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; padding: .7rem; text-align: center; }
.rate-kpi b { display: block; font-size: 1.3rem; font-weight: 800; color: #1e293b; }
.rate-kpi > span { font-size: .75rem; color: #64748b; }
.rate-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
.rate-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin: 1.1rem 0 .5rem; }
.rate-dist-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; font-size: .78rem; }
.rate-dist-lbl { width: 7.5rem; flex-shrink: 0; }
.rate-dist-bar { flex: 1; height: .6rem; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.rate-dist-bar i { display: block; height: 100%; border-radius: 999px; }
.rate-dist-num { width: 5.5rem; text-align: right; color: #64748b; flex-shrink: 0; }
.rate-chart { display: flex; align-items: flex-end; gap: 2px; height: 8.5rem; border-bottom: 1px solid #e2e8f0; padding-top: .35rem; }
.rate-day { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; cursor: default; }
.rate-day i { display: block; width: 100%; }
.rate-day:hover { outline: 2px solid #0369a1; }
.rate-day-empty { height: 2px; background: #e2e8f0; }
.rate-chart-nums { display: flex; gap: 2px; font-size: .6rem; color: #94a3b8; margin-top: .2rem; }
.rate-chart-nums span { flex: 1 1 0; text-align: center; }
.rate-readout { font-size: .75rem; color: #475569; margin-top: .4rem; min-height: 1.1rem; }
.rate-legend { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .72rem; color: #64748b; margin-top: .3rem; }
.rate-legend i { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; margin-right: .25rem; vertical-align: -1px; }
.rate-none { font-size: .8rem; color: #15803d; background: #ecfdf5; border-radius: .7rem; padding: .5rem .7rem; }
@media (max-width: 900px) {
    .rate-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rate-grid2 { grid-template-columns: minmax(0, 1fr); }
}

.cat-chart { display: flex; align-items: flex-end; gap: 4px; height: 230px; }
.cat-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.cat-col-val { font-size: 11px; font-weight: 700; color: #64748b; text-align: center; height: 15px; line-height: 15px; }
.cat-col-track { flex: 1; display: flex; align-items: flex-end; }
.cat-col-bar {
    width: 100%; border-radius: 4px; overflow: hidden; min-height: 2px;
    display: flex; flex-direction: column-reverse; background: #f1f5f9;
    transition: height .35s ease;
}
.cat-col-lbl {
    font-size: 11px; color: #64748b; text-align: center; margin-top: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cat-col { cursor: pointer; border-radius: .35rem; }
.cat-col:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
.cat-col:hover .cat-col-val, .cat-col:focus .cat-col-val { color: #0f172a; }

.cat-readout {
    margin-top: .6rem; min-height: 2.2rem;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
    padding: .45rem .6rem; border-radius: .6rem; background: #f8fafc;
    font-size: .78rem; line-height: 1.4;
}
.cat-readout-hint { color: #64748b; }
.cat-readout-key { font-weight: 800; color: #0f172a; }
.cat-readout-total {
    font-weight: 800; color: #0369a1; font-variant-numeric: tabular-nums;
}
.cat-readout-parts { color: #475569; overflow-wrap: anywhere; }

.csi-tag {
    display: inline-block; padding: 0 .35rem; border-radius: .3rem;
    font-size: .7rem; font-weight: 700; vertical-align: baseline;
}
.csi-tag.csi-good { background: #dcfce7; color: #15803d; }
.csi-tag.csi-mid { background: #fef3c7; color: #b45309; }
.csi-tag.csi-low { background: #fee2e2; color: #b91c1c; }

.csi-dot {
    display: inline-block; width: .55rem; height: .55rem; border-radius: 50%;
    vertical-align: baseline; margin-left: .1rem;
}
.csi-dot.csi-good { background: #16a34a; }
.csi-dot.csi-mid { background: #d97706; }
.csi-dot.csi-low { background: #dc2626; }

.xs-row {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem;
    padding: .55rem; border-radius: .65rem;
    border: 1px solid #fde68a; background: #fffbeb;
}
.xs-row + .xs-row { margin-top: .5rem; }
.xs-lbl {
    display: block; font-size: .62rem; font-weight: 700; color: #92400e;
    text-transform: uppercase; letter-spacing: .02em; margin-bottom: .15rem;
}
.xs-field { flex: 0 0 6.5rem; }
.xs-mults { display: flex; gap: .25rem; }
.xs-mult {
    padding: .3rem .5rem; border-radius: .4rem; cursor: pointer;
    border: 1px solid #fcd34d; background: #fff;
    font-size: .72rem; font-weight: 700; color: #92400e;
    font-variant-numeric: tabular-nums;
}
.xs-mult[data-on="1"] { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.xs-del {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; border-radius: .45rem; cursor: pointer;
    color: #b45309; background: #fff; border: 1px solid #fcd34d;
}
.xs-del:hover { background: #fef3c7; }
.xs-sum { font-size: .72rem; color: #92400e; font-weight: 700; }
.cat-group { display: flex; align-items: flex-end; gap: 1px; }
.cat-gbar { flex: 1 1 0; min-width: 0; min-height: 1px; border-radius: 2px 2px 0 0; transition: height .35s ease; }

.cat-item { cursor: pointer; transition: opacity .15s ease; }
.cat-item:hover { opacity: .75; }
.cat-item[data-off="1"] { opacity: .35; }
.cat-item[data-off="1"] .cat-item-bar { background: #cbd5e1 !important; }

.cat-kpi { border-radius: .75rem; background: #f8fafc; padding: .7rem .9rem; }
.cat-kpi-val { font-size: 1.35rem; font-weight: 800; color: #1e293b; line-height: 1.1; }
.cat-kpi-lbl { font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .02em; margin-top: .15rem; }
.cell-selected { outline: 2px solid #0284c7; outline-offset: -1px; background-color: #bae6fd; }
.sched-dragging { user-select: none; }
.sched-dragging .cell-clickable { cursor: cell; }
.sched-me > td:first-child { background: #f0f9ff; box-shadow: inset 3px 0 0 #0284c7; }
.sched-me [data-name] { color: #0369a1; }
.sched-me .cell { filter: drop-shadow(0 0 4px rgba(2, 132, 199, .45)); }

.slot-time-field { width: 8rem; }
.input-time { padding-left: .5rem; padding-right: .35rem; }

#cellTip {
    position: fixed; z-index: 70; display: none;
    width: max-content; max-width: calc(100vw - 1rem);
    background: #0f172a; color: #fff; font-size: .78rem; line-height: 1.5;
    padding: .5rem .65rem; border-radius: .55rem; box-shadow: var(--shadow-pop);
    pointer-events: none;
    grid-template-columns: auto auto; justify-content: start; gap: 0 .45rem;
}
#cellTip .tip-k { color: #94a3b8; white-space: nowrap; }
#cellTip .tip-sep { grid-column: 1 / -1; height: 1px; background: rgba(148, 163, 184, .35); margin: .3rem 0; }
#cellTip .tip-total { font-weight: 800; color: #7dd3fc; }
#cellTip > span { white-space: nowrap; }
#cellTip.tip-tight { width: calc(100vw - 1rem); }
#cellTip.tip-tight > span { white-space: normal; overflow-wrap: break-word; }
#cellTip > span.tip-wrap { white-space: normal; overflow-wrap: break-word; max-width: 22rem; }

.cell-extra {
    background: #fffbeb; border-color: #fde68a;
    color: #92400e; font-weight: 800;
}
.cell-extra-on { background: #fef3c7; border-color: #f59e0b; }
.cell-hl {
    box-shadow: inset 0 0 0 2px #f59e0b, 0 0 0 4px rgba(245, 158, 11, .25);
    border-color: #f59e0b !important;
}

.cell-paired {
    box-shadow: inset 0 0 0 2px #7c3aed, 0 0 0 4px rgba(124, 58, 237, .25);
    border-color: #7c3aed !important;
}

.board-scroll { overflow-x: auto; min-height: 55vh; padding-bottom: .5rem; }
.board-col {
    flex: 0 0 280px; width: 280px; background: #eef2f6; border-radius: .8rem;
    padding: .6rem; display: flex; flex-direction: column;
    max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px);
}
.board-col.col-dragging { opacity: .4; }
.board-col-head { display: flex; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.board-col-grip { cursor: grab; color: #64748b; display: flex; align-items: center; }
.board-col-grip:active { cursor: grabbing; }
.board-col-title {
    flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; color: #0f172a;
    background: transparent; border: 1px solid transparent; border-radius: .4rem; padding: .2rem .4rem;
}
.board-col-title:hover { background: #fff; }
.board-col-title:focus { background: #fff; border-color: #0369a1; outline: none; }
.board-col-del {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.6rem; height: 1.6rem; border-radius: .4rem; color: #64748b; cursor: pointer;
}
.board-col-del:hover { background: #fee2e2; color: #dc2626; }
.board-cards { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; min-height: 14px; padding: 2px; }
.board-cards.drag-over { background: #dbeafe; border-radius: .5rem; }
.board-card {
    background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid transparent;
    border-radius: .6rem; padding: .55rem .7rem; box-shadow: var(--shadow-sm); cursor: pointer;
    transition: border-color .15s ease;
}
.board-card:hover { border-color: #7dd3fc; }
.card-menu {
    position: fixed; z-index: 70; min-width: 12rem; padding: .35rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem;
    box-shadow: var(--shadow-pop);
}
.card-menu-item {
    display: block; width: 100%; text-align: left; padding: .45rem .7rem;
    border-radius: .5rem; font-size: .85rem; color: #1e293b;
}
.card-menu-item:hover, .card-menu-item:focus-visible { background: #f1f5f9; outline: none; }
.card-menu-title {
    padding: .5rem .7rem .2rem; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .02em; color: #64748b;
}
.card-menu-sep { height: 1px; margin: .3rem .2rem; background: #eef2f7; }
.card-menu-danger { color: #e11d48; }
.card-menu-danger:hover { background: #fff1f2; }
.board-card.dragging { opacity: .4; }
.board-card-title { font-size: .88rem; font-weight: 600; color: #1e293b; word-break: break-word; }
.board-card-desc { font-size: .72rem; color: #64748b; margin-top: .25rem; }
.card-sky { border-left-color: #0ea5e9; }
.card-emerald { border-left-color: #10b981; }
.card-amber { border-left-color: #f59e0b; }
.card-rose { border-left-color: #f43f5e; }
.card-violet { border-left-color: #8b5cf6; }
.card-slate { border-left-color: #64748b; }
.board-add-input {
    width: 100%; padding: .5rem .6rem; border-radius: .5rem; border: 1px solid transparent;
    background: rgba(255, 255, 255, .55); font-size: .85rem; color: #0f172a; font-weight: 600;
}
.board-add-input::placeholder { color: #64748b; }
.board-add-input:hover { background: #fff; }
.board-add-input:focus { background: #fff; border-color: #0369a1; outline: none; }
.board-add-card {
    width: 100%; margin-top: .5rem; padding: .5rem .6rem; border-radius: .5rem; border: 1px solid transparent;
    background: rgba(255, 255, 255, .55); font-size: .85rem; color: #64748b; font-weight: 600; text-align: left;
}
.board-add-card:hover { background: #fff; color: #0f172a; }
.board-add-card:focus-visible { background: #fff; border-color: #0369a1; outline: none; }
.board-add-col { flex: 0 0 280px; width: 280px; }
.board-add-col-input { background: rgba(255, 255, 255, .35); }
.sw { width: 1.7rem; height: 1.7rem; border-radius: .45rem; border: 2px solid transparent; cursor: pointer; }
.sw.selected { border-color: #0f172a; }
.sw-none { background: #fff; box-shadow: inset 0 0 0 1px #cbd5e1; }
.sw-sky { background: #0ea5e9; }
.sw-emerald { background: #10b981; }
.sw-amber { background: #f59e0b; }
.sw-rose { background: #f43f5e; }
.sw-violet { background: #8b5cf6; }
.sw-slate { background: #64748b; }

.board-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .4rem; }
.board-card-meta:empty { display: none; }
.board-badge { display: inline-flex; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 700; padding: .1rem .35rem; border-radius: .35rem; }
.badge-neutral { background: #f1f5f9; color: #64748b; }
.badge-due { background: #e0f2fe; color: #075985; }
.badge-overdue { background: #fee2e2; color: #b91c1c; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-escalation { background: #ede9fe; color: #6d28d9; font-weight: 800; }
.badge-traders { background: #ede9fe; color: #6d28d9; }
.badge-merchants { background: #ccfbf1; color: #0f766e; }
.board-avatar { margin-left: auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #0284c7; color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.board-avatars { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.board-avatars .board-avatar { margin-left: 0; }
.board-avatar-more { background: #e2e8f0; color: #475569; }
.board-title-input { font-size: 1.05rem; font-weight: 800; color: #0f172a; background: transparent; border: 1px solid transparent; border-radius: .5rem; padding: .3rem .5rem; max-width: 22rem; }
.board-title-input:hover { background: #fff; border-color: #e2e8f0; }
.board-title-input:focus { background: #fff; border-color: #0369a1; outline: none; }
.check-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; padding: .15rem 0; }
.check-item input[type=checkbox] { width: 1rem; height: 1rem; accent-color: #0369a1; flex-shrink: 0; }
.check-item span { flex: 1; min-width: 0; word-break: break-word; color: #1e293b; }
.check-item .check-done { text-decoration: line-through; color: #94a3b8; }
.check-item button { color: #cbd5e1; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.check-item button:hover { color: #f43f5e; }

.disclosure-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .55rem .75rem; border-radius: .6rem; background: #f8fafc;
    border: 1px solid #eef2f6; color: #0f172a; text-align: left; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.disclosure-btn:hover { background: #f0f9ff; border-color: #bae6fd; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.pay-scroll { overflow-x: auto; }
.pay-name { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 11rem; }
.pay-scroll.is-scrolled .pay-name { box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .18); }

.pay-kpi-lbl {
    font-size: .7rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .02em;
}
.pay-kpi-val {
    margin-top: .35rem; font-size: 1.75rem; font-weight: 800; line-height: 1.1;
    color: #1e293b; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.pay-kpi-unit { font-size: 1rem; font-weight: 700; color: #64748b; }
.pay-avatar-mentor { background: #9333ea; }
.pay-avatar-spec { background: #7c3aed; }

.mn-toggle {
    display: flex; align-items: center; gap: .625rem; width: 100%;
    min-width: 0; padding: 0; background: none; border: 0;
    color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.mn-toggle:hover .mn-chevron { color: #9333ea; }
.mn-toggle:focus-visible { outline: 2px solid #9333ea; outline-offset: 2px; border-radius: .5rem; }
.mn-chevron { display: flex; color: #94a3b8; transition: transform .18s ease; }
.mn-toggle[aria-expanded="true"] .mn-chevron { transform: rotate(90deg); color: #9333ea; }

.mn-cell { padding: 0; }
.mn-sub {
    width: 100%; border-collapse: collapse; font-size: .8125rem;
    background: #faf8ff; border-left: 3px solid #ddd6fe;
}
.mn-sub th {
    padding: .5rem .75rem; font-size: .68rem; font-weight: 700; color: #7c3aed;
    text-transform: uppercase; letter-spacing: .02em; text-align: left;
}
.mn-sub td { padding: .45rem .75rem; color: #475569; font-variant-numeric: tabular-nums; }
.mn-sub .mn-num { text-align: right; }
.mn-sub tbody tr + tr td { border-top: 1px solid #ede9fe; }

.tm-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

.tm-card {
    padding: .85rem; border-radius: .8rem;
    border: 1px solid #eef2f6; background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}
.tm-card:hover { border-color: #bae6fd; background: #f8fbff; }
.tm-card-spec { border-color: #ede9fe; }
.tm-card-spec:hover { border-color: #ddd6fe; background: #faf8ff; }

.tm-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; background: #0369a1;
}
.tm-avatar-spec { background: #7c3aed; }

.tm-fields {
    margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #f1f5f9;
    display: flex; flex-direction: column; gap: .4rem;
}
.tm-field { display: grid; grid-template-columns: 5.25rem 1fr; align-items: center; gap: .5rem; }
.tm-label { font-size: .72rem; font-weight: 700; color: #64748b; }
.tm-control-row { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.tm-own { grid-column: 1 / -1; }
.tm-own-rate { grid-column: 2; }

.tm-control {
    width: 100%; min-width: 0; min-height: 2.25rem;
    padding: .35rem .55rem; border-radius: .5rem;
    border: 1px solid #e2e8f0; background: #fff;
    font-size: .85rem; color: #0f172a; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tm-control:hover { border-color: #cbd5e1; }
.tm-control:focus { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3, 105, 161, .14); }
select.tm-control { cursor: pointer; font-weight: 600; }
.tm-control-ro, .tm-control-ro:hover { background: #f8fafc; border-color: #e2e8f0; color: #475569; cursor: default; }
.tm-control-ro:focus { border-color: #e2e8f0; box-shadow: none; }

.tm-rate {
    flex-shrink: 0; font-size: .75rem; font-weight: 700; color: #475569;
    white-space: nowrap; font-variant-numeric: tabular-nums;
}

.tm-save {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: .5rem; cursor: pointer;
    color: #0369a1; background: #f0f9ff; border: 1px solid #bae6fd;
    transition: background-color .15s ease, border-color .15s ease;
}
.tm-save:hover { background: #e0f2fe; border-color: #7dd3fc; }

.tm-token-anchor { position: relative; height: 0; }
.tm-token-pop {
    position: absolute; top: .55rem; left: -.35rem; right: -.35rem; z-index: 30;
    padding: .85rem; border-radius: .8rem;
    background: #fff; border: 1px solid #a7f3d0; box-shadow: var(--shadow-pop);
    animation: modalPop .22s cubic-bezier(.16, 1, .3, 1);
}
.tm-token-pop::before {
    content: ""; position: absolute; top: -7px; right: 3.825rem;
    width: 12px; height: 12px; background: #fff;
    border-left: 1px solid #a7f3d0; border-top: 1px solid #a7f3d0;
    transform: rotate(45deg);
}
.tm-token-code {
    flex: 1 1 auto; padding: .45rem .65rem; border-radius: .5rem;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem; font-weight: 700; white-space: nowrap; user-select: all;
}
.tm-token-close {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; border-radius: .5rem; border: 0;
    color: #64748b; background: transparent; cursor: pointer;
}
.tm-token-close:hover { background: #f1f5f9; color: #0f172a; }

.icon-btn-warn { color: #b45309; }
.icon-btn-warn:hover { background: #fffbeb; color: #92400e; border-color: #fcd34d; }

.settings-tabs, .tk-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.settings-tabs::-webkit-scrollbar, .tk-tabs::-webkit-scrollbar { display: none; }
.settings-tabs .seg, .tk-tabs .seg { flex-wrap: nowrap; width: max-content; }
.settings-tabs .seg-btn, .tk-tabs .seg-btn { white-space: nowrap; flex-shrink: 0; }

.stab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.15rem; height: 1.15rem; margin-left: .4rem; padding: 0 .3rem;
    font-size: .68rem; font-weight: 800; line-height: 1;
    border-radius: 1rem; background: #e2e8f0; color: #475569;
    font-variant-numeric: tabular-nums;
}
.seg-active .stab-count { background: #e0f2fe; color: #075985; }

.settings-title { font-size: .95rem; font-weight: 700; color: #0f172a; }
.settings-hint { font-size: .78rem; color: #64748b; margin-top: .15rem; margin-bottom: .75rem; line-height: 1.45; }
.settings-label {
    display: block; font-size: .65rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .02em; margin-bottom: .2rem;
}

.settings-row, .settings-add {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem;
    border-radius: .75rem; padding: .6rem;
}
.settings-row { background: #f8fafc; border: 1px solid #eef2f6; }
.settings-add { border: 1px dashed #cbd5e1; background: #fff; }
.settings-actions { display: flex; align-items: flex-end; gap: .5rem; margin-left: auto; }

.settings-empty {
    padding: .7rem .85rem; border-radius: .75rem;
    background: #f8fafc; border: 1px solid #eef2f6;
    font-size: .82rem; color: #64748b;
}

.settings-note { padding: .7rem .85rem; border-radius: .75rem; font-size: .78rem; line-height: 1.45; }
.settings-note-bad { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font-weight: 600; }
.settings-note-warn { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }

.settings-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .35rem .3rem .65rem; border-radius: .6rem;
    font-size: .85rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.settings-chip-num { background: #e0f2fe; color: #075985; }
.settings-chip-bad { background: #fff1f2; color: #be123c; }
.settings-chip-plain { background: #f1f5f9; color: #475569; }
/* Число рядом с названием: без плашки, иначе читается как выделенный текст. */
.count-note { color: #94a3b8; font-weight: 700; margin-left: .3rem; }

/* Подсказка в пустом редакторе рассылки: contenteditable сам её не рисует. */
#editor:empty::before { content: attr(data-placeholder); color: #94a3b8; }
#editor:focus { outline: none; border-color: #7dd3fc; }
/* Вкладки выбора чатов на узком экране прокручиваются, а не уезжают за край. */
#presetModal .seg { overflow-x: auto; flex-shrink: 0; }

/* Документация: markdown отдаётся как есть, оформление задаём здесь. */
.docs-body { color: #334155; line-height: 1.7; }
.docs-body h1 { font-size: 1.75rem; font-weight: 800; color: #0f172a; margin: 0 0 1rem; }
.docs-body h2 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 2rem 0 .75rem;
                padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.docs-body h3 { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 1.5rem 0 .5rem; }
.docs-body p { margin: 0 0 1rem; }
.docs-body ul, .docs-body ol { margin: 0 0 1rem 1.25rem; }
.docs-body li { margin: .35rem 0; }
.docs-body a { color: #0369a1; text-decoration: underline; text-underline-offset: 2px; }
.docs-body a:hover { color: #075985; }
.docs-body strong { color: #0f172a; font-weight: 700; }
.docs-body code { background: #f1f5f9; color: #0f172a; padding: .1rem .35rem;
                  border-radius: .3rem; font-size: .85em; }
.docs-body pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .7rem;
                 overflow-x: auto; margin: 0 0 1rem; font-size: .85rem; line-height: 1.5; }
.docs-body pre code { background: none; color: inherit; padding: 0; }
.docs-body blockquote { border-left: 3px solid #bae6fd; background: #f0f9ff;
                        padding: .6rem .9rem; margin: 0 0 1rem; border-radius: .4rem; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .9rem;
                   display: block; overflow-x: auto; }
.docs-body th, .docs-body td { border: 1px solid #e2e8f0; padding: .5rem .7rem; text-align: left; }
.docs-body th { background: #f8fafc; font-weight: 700; color: #0f172a; }
.docs-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }

/* Ряд разделов в шапке прокручивается, но полосу прокрутки не показываем. */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.settings-chip-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.35rem; height: 1.35rem; border-radius: .35rem;
    color: inherit; opacity: .55; cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease;
}
.settings-chip-x:hover { opacity: 1; background: rgba(15, 23, 42, .08); }

.settings-suggest {
    padding: .3rem .55rem; border-radius: .5rem;
    background: #fff; border: 1px solid #fcd34d;
    font-size: .78rem; font-weight: 700; color: #92400e; cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s ease, background-color .15s ease;
}
.settings-suggest:hover { border-color: #d97706; background: #fffbeb; }

.icon-btn-danger { color: #e11d48; border-color: #fecdd3; }
.icon-btn-danger:hover { background: #fff1f2; color: #be123c; border-color: #fda4af; }

.toggle-btn {
    padding: .5rem .9rem; border-radius: .7rem; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; font-size: .85rem; font-weight: 700; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.toggle-btn:hover { border-color: #7dd3fc; background: #f0f9ff; }
.tb-teams { max-height: 15rem; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: .75rem; }
.tb-team { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .75rem; font-size: .88rem; border-bottom: 1px solid #f1f5f9; }
.tb-team:last-of-type { border-bottom: 0; }
.tb-team:hover { background: #f0f9ff; }
.tb-team-box { width: 1rem; height: 1rem; flex-shrink: 0; border: 1.5px solid #94a3b8; border-radius: .3rem; }
.tb-team[aria-pressed="true"] .tb-team-box { background: #0369a1; border-color: #0369a1; box-shadow: inset 0 0 0 2px #fff; }
.tb-team[aria-pressed="true"] { color: #0369a1; font-weight: 700; }
.tb-chip { cursor: pointer; }
.toggle-btn[data-active="true"] {
    background: #0369a1; color: #fff; border-color: #0369a1;
    box-shadow: 0 4px 12px -4px rgba(3, 105, 161, .5);
}
.toggle-btn[data-active="true"]:hover { background: #075985; color: #fff; }

.cell-num { font-weight: 800; line-height: 1; }
.cell-num-1 { font-size: 1.5rem; }
.cell-num-2 { font-size: 1.15rem; }
.cell-num-3 { font-size: .9rem; }
.cell-num-sm { font-size: 1rem; }
.cell-nums {
    display: flex; align-items: center; justify-content: center;
    gap: .3rem; flex-wrap: nowrap; line-height: 1;
}
.cell-nums .cell-num + .cell-num::before {
    content: "\00B7"; margin-right: .3rem; opacity: .45; font-weight: 600;
}

.preset-btn:active { transform: scale(.97); }
.preset-btn[data-active="true"] {
    border-color: #0369a1; background: #e0f2fe; color: #075985;
    box-shadow: 0 0 0 2px rgba(3, 105, 161, .18);
}

.bar { width: 0; transition: width .8s cubic-bezier(.4, 0, .2, 1); }

.dept-check { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: .55rem; border: 1px solid #e2e8f0; cursor: pointer; transition: all .15s ease; font-size: .85rem; font-weight: 600; color: #334155; }
.dept-check:hover { border-color: #7dd3fc; background: #f0f9ff; }
.dept-check input { accent-color: #0369a1; width: 1rem; height: 1rem; }
.chat-gear { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; color: #64748b; }
.chat-gear:hover { background: #f1f5f9; color: #0284c7; }
.range-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.range-cal-head { text-align: center; font-size: .7rem; font-weight: 700; color: #94a3b8; padding: .25rem 0; }
.range-day { height: 2.25rem; border-radius: .5rem; font-size: .85rem; font-weight: 600; color: #334155; transition: background .15s ease; }
.range-day:hover { background: #f0f9ff; }
.range-day-in { background: #e0f2fe; color: #075985; }
.range-day-edge { background: #0369a1; color: #fff; }
.range-day-edge:hover { background: #075985; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(15, 23, 42, .5);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    animation: fadeIn .18s ease;
}
.modal-card {
    background: #fff; border-radius: 1.25rem; padding: 1.6rem;
    width: 100%; max-width: 26rem; box-shadow: var(--shadow-pop);
    border: 1px solid #e2e8f0;
    animation: modalPop .22s cubic-bezier(.16, 1, .3, 1);
    max-height: 92vh; overflow-y: auto;
}

.modal-flex { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.modal-head { padding: 1.15rem 1.5rem .85rem; border-bottom: 1px solid #eef2f7; flex-shrink: 0; }
.modal-scroll { display: flex; flex-direction: column; min-height: 0; }
.modal-body { padding: 1.15rem 1.5rem 1.35rem; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot {
    padding: .85rem 1.5rem 1.05rem; border-top: 1px solid #eef2f7;
    background: #fff; flex-shrink: 0;
}

.modal-body, .modal-card { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.modal-body::-webkit-scrollbar, .modal-card::-webkit-scrollbar { width: 11px; }
.modal-body::-webkit-scrollbar-track, .modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb, .modal-card::-webkit-scrollbar-thumb {
    background: #cbd5e1; border-radius: 999px;
    border: 3px solid transparent; background-clip: content-box;
}
.modal-body::-webkit-scrollbar-thumb:hover, .modal-card::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%,75%{transform:translateX(-5px);} 50%{transform:translateX(5px);} }

.animate-rise { animation: rise .4s ease both; }
html.nav-swapped .animate-rise { animation: none; }
.animate-shake { animation: shake .35s ease; }
.animate-float { animation: none; }

body.sched-maxed .animate-rise { transform: none !important; animation: none !important; }
body.sched-maxed main { position: static !important; z-index: auto !important; }

.sched-exit-btn { position: fixed; top: 1rem; right: 1rem; z-index: 55; }

#schedGrid.schedule-max {
    position: fixed; inset: 0; z-index: 50; margin: 0;
    max-width: none; border-radius: 0; box-shadow: none;
    overflow: auto; padding: .75rem 3.5rem .75rem .75rem; background: #fff;
}
#schedGrid.schedule-max table { border-spacing: 2px 2px !important; }
#schedGrid.schedule-max thead th { position: sticky; top: 0; z-index: 20; padding: .2rem .3rem; }
#schedGrid.schedule-max thead th:first-child { z-index: 21; }
#schedGrid.schedule-max tbody td { padding: 0; }
#schedGrid.schedule-max .cell { min-height: 32px; padding: .1rem; border-radius: .4rem; font-size: 13px; --dot: 4px; --dot-x: 2px; --dot-y: 2px; }
#schedGrid.schedule-max .cell-compact div { font-size: 11px; line-height: 1.1; }
#schedGrid.schedule-max .cov { min-height: 30px; padding: .2rem; }
#schedGrid.schedule-max tbody tr:not(.cov-row) td:first-child { padding: 0 .5rem; }
#schedGrid.schedule-max tbody tr:not(.cov-row) td:first-child .rounded-full { width: 1.7rem !important; height: 1.7rem !important; font-size: .75rem; }
#schedGrid.schedule-max tbody tr:not(.cov-row) td:first-child .text-xs { display: none; }
#schedGrid.schedule-max tbody tr:not(.cov-row) td:first-child .text-sm { font-size: .85rem; line-height: 1.15; }

.cov-row td:first-child { border-top: 2px solid #e2e8f0; }
.cov { min-height: 34px; display: flex; align-items: baseline; justify-content: center; gap: 1px; border-radius: .5rem; padding: .3rem .2rem; line-height: 1; }
.cov-act { font-weight: 800; font-size: .85rem; }
.cov-exp { opacity: .55; font-size: .7rem; }
.cov-ok { background: #dcfce7; color: #15803d; }
.cov-under { background: #fef3c7; color: #b45309; }
.cov-none { background: #f1f5f9; color: #64748b; }

.notes-scroll { max-height: 20rem; overflow-y: auto; padding-right: .25rem; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.notes-scroll::-webkit-scrollbar { width: 6px; }
.notes-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.notes-scroll::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

.toast-wrap {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
    display: flex; flex-direction: column; gap: .6rem; width: 21rem; max-width: calc(100vw - 2rem);
    pointer-events: none;
}
.toast {
    pointer-events: auto; position: relative; overflow: hidden; cursor: pointer;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem;
    box-shadow: var(--shadow-pop);
    animation: toastIn .22s cubic-bezier(.16, 1, .3, 1) both;
}
.toast-out { animation: toastOut .2s ease forwards; }
.toast-row { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem .9rem; }
.toast-icon {
    width: 2rem; height: 2rem; border-radius: .6rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.toast-icon svg { width: 1.05rem; height: 1.05rem; }
.toast-offer .toast-icon { background: #0d9488; }
.toast-swap .toast-icon { background: #4f46e5; }
.toast-body { min-width: 0; flex: 1; }
.toast-title { font-size: .875rem; font-weight: 700; color: #0f172a; line-height: 1.25; }
.toast-text { font-size: .78rem; color: #64748b; margin-top: .15rem; overflow-wrap: anywhere; }
.toast-close {
    flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: .4rem; cursor: pointer;
    color: #64748b; font-size: 1.1rem; line-height: 1; background: transparent;
    display: flex; align-items: center; justify-content: center;
}
.toast-close:hover { background: #f1f5f9; color: #475569; }
.toast-bar {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    transform-origin: left center;
    animation-name: toastBar; animation-timing-function: linear; animation-fill-mode: forwards;
}
.toast-offer .toast-bar { background: #0d9488; }
.toast-swap .toast-bar { background: #4f46e5; }
.toast:hover .toast-bar { animation-play-state: paused; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(12px); } }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-board .toast-icon { background: #7c3aed; }
.toast-board .toast-bar { background: #7c3aed; }
.toast-ticket .toast-icon { background: #0284c7; }
.toast-ticket .toast-bar { background: #0284c7; }
.toast-card .toast-icon { background: #7c3aed; }
.toast-card .toast-bar { background: #7c3aed; }

.face-wrap { position: relative; }
.face-btn { cursor: pointer; }
.face-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
    min-width: 132px; padding: 6px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    display: none;
}
.face-menu[data-open="1"] { display: block; }
.face-item {
    display: block; width: 100%; text-align: left;
    padding: 6px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #334155;
    background: none; border: 0; cursor: pointer;
}
.face-item:hover { background: #f1f5f9; color: #0f172a; }
.face-item-drop:hover { background: #fff1f2; color: #e11d48; }
.face-err { padding: 4px 10px; font-size: 12px; font-weight: 600; color: #e11d48; }
.face-alias { margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid #f1f5f9; min-width: 240px; }
.face-alias-label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.face-alias-row { display: flex; gap: 6px; }
.face-alias-row .input { min-width: 0; padding: 6px 8px; font-size: 13px; }

.note-mark {
    position: absolute; bottom: 0; left: 0; width: 13px; height: 13px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    border-bottom-left-radius: .7rem;
    background: #e11d48;
}
.cell-compact .note-mark { width: 10px; height: 10px; border-bottom-left-radius: .5rem; }
#schedGrid.schedule-max .note-mark { width: 9px; height: 9px; border-bottom-left-radius: .4rem; }

.wiki-branch { list-style: none; margin: 0; padding-left: .75rem; }
.wiki-branch .wiki-branch { border-left: 1px solid #e2e8f0; }
.wiki-link { display: block; padding: .3rem .5rem; border-radius: .5rem; font-size: .875rem; color: #334155; }
.wiki-link:hover { background: #f1f5f9; color: #0f172a; }
.wiki-link-on { background: #e0f2fe; color: #075985; font-weight: 700; }
.wiki-tree-add { margin: .1rem 0 .2rem .5rem; }
.wiki-tree-add summary { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border-radius: .3rem; color: #94a3b8; font-size: .8rem; font-weight: 700; cursor: pointer; list-style: none; }
.wiki-tree-add summary::-webkit-details-marker { display: none; }
.wiki-tree-add summary:hover, .wiki-tree-add summary:focus { color: #0f172a; background: #f1f5f9; }
.wiki-tree-add-form { margin-top: .2rem; }
.wiki-tree-add-form input { width: 100%; font-size: .78rem; padding: .25rem .4rem; border: 1px solid #e2e8f0; border-radius: .4rem; }
.docs-body img { max-width: 100%; border-radius: .7rem; margin: .6rem 0; }
.wiki-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 1.5rem; align-items: start; }
.wiki-side { position: sticky; top: 5rem; max-height: calc(100dvh - 6rem); overflow-y: auto; padding-right: .4rem; }
@media (max-width: 1200px) { .wiki-shell { grid-template-columns: 230px minmax(0, 1fr); } .wiki-toc { display: none; } }
@media (max-width: 860px) { .wiki-shell { grid-template-columns: minmax(0, 1fr); } .wiki-side { position: static; } }
.wiki-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.wiki-search-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .45rem .6rem; border: 1px solid #e2e8f0; border-radius: .6rem; background: #f8fafc; color: #64748b; font-size: .82rem; margin-bottom: .8rem; }
.wiki-search-btn:hover { background: #f1f5f9; color: #0f172a; }
.wiki-kbd { border: 1px solid #e2e8f0; border-radius: .35rem; padding: 0 .3rem; font-size: .7rem; background: #fff; }
.wiki-find { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .35); display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; }
.wiki-find-box { width: min(620px, 92vw); max-height: 76vh; display: flex; flex-direction: column; background: #fff; border-radius: .9rem; padding: .8rem; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.wiki-find-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 .3rem; }
.wiki-find-tab { padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; background: #f1f5f9; color: #334155; }
.wiki-find-tab.wiki-find-on { background: #4f46e5; color: #fff; }
.wiki-find-list { overflow-y: auto; min-height: 0; }
.wiki-find-group { padding: .5rem .4rem .2rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #94a3b8; }
.wiki-hit { display: flex; gap: .5rem; padding: .45rem .5rem; border-radius: .5rem; color: #0f172a; }
.wiki-hit:hover, .wiki-hit.wiki-hit-on { background: #eef2ff; }
.wiki-hit-icon { width: 1.2rem; flex: none; text-align: center; }
.wiki-hit-body { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; }
.wiki-hit-snip { color: #475569; font-size: .78rem; overflow-wrap: anywhere; }
.wiki-hit-path { color: #94a3b8; font-size: .72rem; }
.wiki-hit mark { background: #fef08a; color: inherit; border-radius: .15rem; padding: 0 .05rem; }
.wiki-find-foot { display: flex; gap: 1rem; padding-top: .5rem; margin-top: .3rem; border-top: 1px solid #eef2f6; font-size: .72rem; color: #94a3b8; }
@media (max-width: 768px) { .wiki-find { padding-top: 0; } .wiki-find-box { width: 100vw; max-height: 100vh; border-radius: 0; } .wiki-find-foot { display: none; } }
.wiki-main { min-width: 0; }
.wiki-title { font-size: 1.9rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.wiki-crumb { font-size: .78rem; color: #64748b; margin-bottom: .3rem; }
.wiki-crumb a:hover { text-decoration: underline; }
.wiki-stamp { font-size: .75rem; color: #94a3b8; margin: .3rem 0 1.2rem; }
.wiki-toc { position: sticky; top: 5rem; font-size: .8rem; }
.wiki-toc-link { display: block; padding: .25rem 0 .25rem .6rem; color: #64748b; border-left: 2px solid #e2e8f0; }
.wiki-toc-link:hover { color: #0f172a; }
.wiki-toc-on { color: #0369a1; border-left-color: #0369a1; }
.wiki-toc-3 { padding-left: 1.3rem; }
.wiki-steps { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #e2e8f0; }
.wiki-step { display: block; padding: .7rem .9rem; border: 1px solid #e2e8f0; border-radius: .7rem; font-weight: 700; color: #0f172a; font-size: .875rem; }
.wiki-step:hover { border-color: #bae6fd; background: #f0f9ff; }
.wiki-step-next { text-align: right; margin-left: auto; }
.wiki-step-note { display: block; font-size: .7rem; font-weight: 600; color: #94a3b8; }
.wiki-article { font-size: .95rem; color: #1f2937; line-height: 1.75; }
.wiki-article h2, .wiki-article h3 { font-weight: 800; color: #0f172a; line-height: 1.3; scroll-margin-top: 5rem; }
.wiki-article h2 { font-size: 1.35rem; margin: 2rem 0 .7rem; }
.wiki-article h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.wiki-anchor { margin-left: .4rem; color: #cbd5e1; font-weight: 400; opacity: 0; }
.wiki-article h2:hover .wiki-anchor, .wiki-article h3:hover .wiki-anchor { opacity: 1; }
.wiki-article p { margin: .7rem 0; }
.wiki-article ul, .wiki-article ol { margin: .7rem 0 .7rem 1.4rem; }
.wiki-article ul { list-style: disc; }
.wiki-article ol { list-style: decimal; }
.wiki-article .wiki-todo { list-style: none; margin-left: 0; }
.wiki-todo li { display: flex; gap: .55rem; align-items: flex-start; }
.wiki-todo input[type="checkbox"] { margin-top: .5rem; flex-shrink: 0; accent-color: #0284c7; }
.wiki-todo li > span { flex: 1; min-width: 0; }
.wiki-todo-done > span { text-decoration: line-through; color: #94a3b8; }
.wiki-article .wiki-mention { display: inline-block; padding: 0 .3rem; border-radius: .35rem; background: #eef2ff; color: #3730a3; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.wiki-article a.wiki-mention:hover, .wiki-editing .wiki-mention[data-page]:not(.wiki-mention-gone):hover { background: #e0e7ff; cursor: pointer; }
.wiki-mention[data-user]::before { content: "@"; }
.wiki-article .wiki-mention-gone { background: #f1f5f9; color: #94a3b8; font-weight: 500; text-decoration: line-through; }
.wiki-article .wiki-video { display: block; max-width: 100%; margin: .6rem 0; border-radius: .6rem; background: #0f172a; }
.wiki-article .wiki-file { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin: .4rem 0; padding: .55rem .85rem; border: 1px solid #e2e8f0; border-radius: .6rem; background: #f8fafc; color: #0f172a; text-decoration: none; }
.wiki-article .wiki-file:hover { background: #f1f5f9; }
.wiki-article .wiki-file::before { content: ""; flex: none; width: .9rem; height: 1.1rem; border: 2px solid #94a3b8; border-radius: .15rem; }
.wiki-file-name { font-weight: 600; overflow-wrap: anywhere; }
.wiki-file-size { flex: none; color: #64748b; font-size: .8rem; }
.wiki-diff > div, .wiki-diff > details { margin-bottom: .5rem; }
.wiki-diff div.wiki-diff-add { background: #dcfce7; color: #166534; border-radius: .4rem; padding: .15rem .5rem; }
.wiki-diff div.wiki-diff-del { background: #fee2e2; color: #991b1b; border-radius: .4rem; padding: .15rem .5rem; text-decoration: line-through; }
.wiki-diff div.wiki-diff-add img { outline: 3px solid #22c55e; }
.wiki-diff div.wiki-diff-del img { outline: 3px solid #ef4444; }
.wiki-diff ins.wiki-diff-add { background: #dcfce7; color: #166534; text-decoration: none; border-radius: .2rem; padding: 0 .15rem; }
.wiki-diff del.wiki-diff-del { background: #fee2e2; color: #991b1b; border-radius: .2rem; padding: 0 .15rem; }
.wiki-diff-same { opacity: .55; }
.wiki-diff-note { display: inline-block; margin-left: .4rem; font-size: .75rem; font-style: italic; color: #64748b; }
.wiki-diff-title { font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; }
.wiki-diff-fold > summary { cursor: pointer; font-size: .8rem; color: #64748b; padding: .25rem 0; }
.wiki-diff-row pre { white-space: pre-wrap; font-size: .8rem; background: #f8fafc; padding: .5rem; border-radius: .4rem; }
.wiki-article .wiki-quote { margin: .7rem 0; padding: .1rem 0 .1rem .9rem; border-left: 3px solid #cbd5e1; color: #334155; }
.wiki-undo { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: .8rem; padding: .5rem .55rem .5rem 1rem; background: #0f172a; color: #e2e8f0; border-radius: .75rem; box-shadow: 0 16px 34px -14px rgba(15, 23, 42, .6); font-size: .85rem; }
.wiki-article a { color: #0369a1; text-decoration: underline; }
.wiki-article code { background: #f1f5f9; padding: .1rem .35rem; border-radius: .35rem; font-size: .85em; }
.wiki-article img { max-width: 100%; border-radius: .7rem; margin: .7rem 0; }
.wiki-article table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 1rem 0; }
.wiki-article th, .wiki-article td { border: 1px solid #cbd5e1; padding: .5rem .7rem; text-align: left; vertical-align: top; font-size: .875rem; overflow-wrap: anywhere; }
.wiki-article th { background: #f8fafc; font-weight: 700; }
.wiki-article hr { border: none; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.wiki-note { padding: .6rem .9rem; border-radius: .6rem; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.wiki-note-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.wiki-code { position: relative; margin: 1rem 0; }
.wiki-code pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .7rem; overflow-x: auto; font-size: .85rem; }
.wiki-code code { background: none; color: inherit; padding: 0; }
.wiki-copy { position: absolute; top: .5rem; right: .5rem; padding: .2rem .5rem; border-radius: .4rem; background: rgba(226, 232, 240, .15); color: #e2e8f0; font-size: .72rem; }
.wiki-copy:hover { background: rgba(226, 232, 240, .3); }
.wiki-toggle { margin: 1rem 0; border: 1px solid #e2e8f0; border-radius: .7rem; background: #f8fafc; padding: .5rem .9rem; }
.wiki-toggle > summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.wiki-toggle > summary:hover { color: #0369a1; }
.wiki-toggle[open] > summary { margin-bottom: .3rem; }
.wiki-toggle-body { border-top: 1px solid #e2e8f0; padding-top: .3rem; }
.wiki-toggle-body > :first-child { margin-top: .3rem; }
.wiki-cols { display: flex; align-items: flex-start; gap: 1.2rem; margin: 1rem 0; }
.wiki-col { flex: 1 1 0; min-width: 0; }
.wiki-col > :first-child { margin-top: 0; }
@media (max-width: 640px) {
    .wiki-cols { display: block; }
    .wiki-col + .wiki-col { margin-top: 1rem; }
}
.wiki-callout { display: flex; flex-direction: column; gap: .2rem; border-left: 3px solid #7dd3fc; background: #f0f9ff; padding: .7rem .9rem; border-radius: .5rem; margin: 1rem 0; }
.wiki-callout-head { font-weight: 700; font-size: .8rem; color: #075985; }
.wiki-callout-warning { border-left-color: #fbbf24; background: #fffbeb; }
.wiki-callout-warning .wiki-callout-head { color: #92400e; }
.wiki-callout-danger { border-left-color: #fb7185; background: #fff1f2; }
.wiki-callout-danger .wiki-callout-head { color: #9f1239; }
.wiki-tool-sep { width: 1px; height: 1.2rem; background: #e2e8f0; }
.wiki-state { font-size: .75rem; color: #94a3b8; }
.wiki-state-bad { color: #b91c1c; font-weight: 700; }
.wiki-ctx { position: fixed; z-index: 90; display: flex; flex-direction: column; min-width: 160px; background: #fff; border: 1px solid #e2e8f0; border-radius: .6rem; padding: .3rem; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); }
.wiki-ctx-item { display: block; width: 100%; text-align: left; padding: .4rem .6rem; border-radius: .4rem; font-size: .82rem; font-weight: 600; color: #334155; background: none; }
.wiki-ctx-item:hover { background: #f1f5f9; color: #0f172a; }
.wiki-c-red { color: #b91c1c; }
.wiki-c-orange { color: #c2410c; }
.wiki-c-green { color: #15803d; }
.wiki-c-blue { color: #1d4ed8; }
.wiki-c-purple { color: #7e22ce; }
.wiki-c-gray { color: #64748b; }
.wiki-bg-yellow { background: #fef3c7; }
.wiki-bg-green { background: #dcfce7; }
.wiki-bg-blue { background: #dbeafe; }
.wiki-bg-pink { background: #fce7f3; }
.wiki-bg-gray { background: #e2e8f0; }
.wiki-bg-yellow, .wiki-bg-green, .wiki-bg-blue, .wiki-bg-pink, .wiki-bg-gray { padding: .05rem .2rem; border-radius: .25rem; }
.wiki-ctx-color { min-width: 200px; }
.wiki-size { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; margin: 0 .15rem; border: 1px solid #334155; border-radius: .45rem; background: #1e293b; }
.wiki-size:focus-within { border-color: #60a5fa; }
.wiki-size-field { width: 2.6rem; padding: .3rem .1rem .3rem .5rem; border: 0; outline: none; background: transparent; color: #f8fafc; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wiki-size-bad { color: #fca5a5; }
.wiki-size-open { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; align-self: stretch; color: #cbd5e1; background: none; border-radius: 0 .4rem .4rem 0; }
.wiki-size-open:hover { color: #fff; background: #334155; }
.wiki-size-open svg { width: .75rem; height: .75rem; }
.wiki-size-list { position: absolute; top: calc(100% + .4rem); left: -1px; z-index: 2; display: flex; flex-direction: column; width: 4.6rem; max-height: 15rem; overflow-y: auto; padding: .25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .6rem; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); }
.wiki-size-list.hidden { display: none; }
.wiki-size-opt { padding: .25rem .55rem; border-radius: .35rem; text-align: left; font-size: .82rem; font-variant-numeric: tabular-nums; color: #334155; background: none; }
.wiki-size-opt:hover, .wiki-size-on { background: #f1f5f9; color: #0f172a; }
.wiki-size-step { width: auto; padding-left: .5rem; padding-right: .5rem; }
.wiki-size-step small { margin-left: .05rem; font-size: .7em; }
.wiki-ctx-note { padding: .3rem .6rem 0; font-size: .72rem; color: #94a3b8; }
.wiki-ctx-sep { height: 1px; margin: .3rem .2rem; background: #e2e8f0; }
.wiki-ctx-dark { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .1rem; min-width: 0; max-width: calc(100vw - 1rem); padding: .25rem; background: #0f172a; border-color: #0f172a; border-radius: .7rem; box-shadow: 0 16px 34px -14px rgba(15, 23, 42, .6); }
.wiki-ctx-dark .wiki-ctx-item { width: auto; white-space: nowrap; padding: .3rem .5rem; color: #e2e8f0; }
.wiki-ctx-dark .wiki-ctx-item:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.wiki-ctx-bar { align-self: stretch; width: 1px; margin: .25rem .15rem; background: rgba(255, 255, 255, .18); }
.wiki-ctx-link { gap: .25rem; }
.wiki-link-field { width: 18rem; max-width: 60vw; padding: .35rem .6rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: .5rem; background: rgba(255, 255, 255, .08); color: #f8fafc; font-size: .82rem; outline: none; }
.wiki-link-field::placeholder { color: #94a3b8; }
.wiki-link-field:focus { border-color: #818cf8; background: rgba(255, 255, 255, .12); }
.wiki-link-field.wiki-link-bad { border-color: #f87171; }
.wiki-link-peek { max-width: 22rem; padding: .3rem .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #93c5fd; font-size: .82rem; text-decoration: underline; }
.wiki-link-peek:hover { color: #fff; }
.wiki-slash { position: fixed; z-index: 92; width: 300px; max-height: 340px; overflow-y: auto; padding: .35rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .35); font-size: .85rem; }
.wiki-slash-group { padding: .5rem .5rem .25rem; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.wiki-slash-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .3rem .5rem; border-radius: .55rem; text-align: left; color: #0f172a; font-weight: 600; background: none; }
.wiki-slash-item:hover, .wiki-slash-on { background: #f1f5f9; }
.wiki-slash-glyph { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.9rem; height: 1.9rem; border: 1px solid #e2e8f0; border-radius: .5rem; background: #fff; color: #334155; font-size: .75rem; font-weight: 800; }
.wiki-slash-mark { margin-left: auto; font-size: .72rem; font-weight: 600; color: #94a3b8; }
.wiki-plus { position: absolute; left: -1.25rem; top: .3rem; display: flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.4rem; border-radius: .3rem; color: #64748b; opacity: 0; }
.wiki-plus svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.wiki-plus:hover { background: #e2e8f0; color: #1e293b; }
.wiki-block:hover > .wiki-plus { opacity: 1; }
.wiki-frozen .wiki-plus { display: none; }
.wiki-editing p.wiki-rich:empty:focus::before, .wiki-doc-empty p.wiki-rich:empty::before { content: attr(data-hint); color: #94a3b8; pointer-events: none; }
.wiki-swatches { display: flex; gap: .3rem; padding: .3rem .6rem; }
.wiki-swatch { width: 1.3rem; height: 1.3rem; border-radius: .35rem; border: 1px solid #e2e8f0; }
.wiki-swatch.wiki-c-red, .wiki-swatch.wiki-c-orange, .wiki-swatch.wiki-c-green, .wiki-swatch.wiki-c-blue, .wiki-swatch.wiki-c-purple, .wiki-swatch.wiki-c-gray { background: currentColor; }
.wiki-swatch:hover { border-color: #94a3b8; }
.wiki-block { position: relative; padding: .2rem 0 .2rem 1.6rem; border-radius: .5rem; }
.wiki-editing .wiki-block:hover { background: #f8fafc; }
.wiki-grip { position: absolute; left: 0; top: .3rem; display: flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.4rem; border-radius: .3rem; cursor: grab; color: #64748b; opacity: 0; }
.wiki-grip svg { width: 10px; height: 16px; fill: currentColor; pointer-events: none; }
.wiki-block:hover > .wiki-grip { opacity: 1; }
.wiki-grip:hover { background: #e2e8f0; color: #1e293b; }
#wikiArticle.wiki-editing > .wiki-block { margin-left: -1.6rem; }
.wiki-main:has(> .wiki-editing) { padding-left: 1.6rem; }
.wiki-frozen .wiki-grip { display: none; }
.wiki-block-hl { background: #fef9c3; border-radius: .4rem; transition: background .6s; }
.wiki-article .wiki-block-body[class*="wiki-bg-"], .wiki-article > [class*="wiki-bg-"] { padding: .15rem .45rem; border-radius: .4rem; }
@media (hover: none) {
    .wiki-block-here > .wiki-grip, .wiki-block-here > .wiki-plus { opacity: 1; }
}
.wiki-frozen .wiki-block:hover { background: none; }
.wiki-title[contenteditable="plaintext-only"]:focus { outline: none; }
.wiki-editing [contenteditable="true"]:focus { outline: none; }
.wiki-block.wiki-drop-above::before, .wiki-block.wiki-drop-below::after {
    content: ''; position: absolute; left: 0; right: 0; height: 2px;
    background: #0284c7; border-radius: 1px; pointer-events: none;
}
.wiki-block.wiki-drop-above::before { top: -1px; }
.wiki-block.wiki-drop-below::after { bottom: -1px; }
.wiki-rich { min-height: 1.4rem; }
#wikiEditorDoc [contenteditable] { outline: none; }
.wiki-plain {
    width: 100%; padding: .35rem .5rem; border-radius: .5rem; font-size: .9rem;
    font-family: inherit; -webkit-appearance: none; -moz-appearance: none;
    appearance: none; border: none; background: none;
}
textarea.wiki-plain { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.wiki-code-edit { position: relative; background: #0f172a; border-radius: .7rem; padding: 2.2rem 1rem 1rem; }
.wiki-code-edit .wiki-plain { background: none; color: #e2e8f0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.wiki-code-edit select {
    position: absolute; top: .5rem; right: .5rem; width: auto;
    padding: .15rem 1.6rem .15rem .5rem; font-size: .72rem; font-weight: 600;
    color: #e2e8f0; background-color: rgba(226, 232, 240, .15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    border: none;
}
.wiki-code-edit select:hover { background-color: rgba(226, 232, 240, .25); }
.wiki-block-img { max-width: 100%; border-radius: .6rem; }
.wiki-img-wrap { position: relative; display: block; max-width: 100%; }
.wiki-img-wrap .wiki-block-img { display: block; width: 100%; margin: 0; }
.wiki-img-grip { position: absolute; right: -7px; bottom: -7px; width: 15px; height: 15px; border: 2px solid #0284c7; background: #fff; border-radius: .25rem; cursor: nwse-resize; touch-action: none; }
.wiki-img-grip:hover { background: #e0f2fe; }
.wiki-img-note { position: absolute; right: .4rem; top: .4rem; padding: .1rem .4rem; border-radius: .3rem; background: rgba(15, 23, 42, .75); color: #fff; font-size: .72rem; font-weight: 700; }
.wiki-img-sizes { display: flex; gap: .3rem; margin-top: .4rem; }
.wiki-img-size { padding: .18rem .5rem; border-radius: .4rem; background: #f1f5f9; color: #64748b; font-size: .75rem; font-weight: 700; }
.wiki-img-size:hover { background: #e2e8f0; color: #0f172a; }
.wiki-img-size-on { background: #0284c7; color: #fff; }
.wiki-img-size-on:hover { background: #0284c7; color: #fff; }
.wiki-toggle-edit { margin: 1rem 0; border: 1px solid #e2e8f0; border-radius: .7rem; background: #f8fafc; padding: .4rem .8rem; }
.wiki-toggle-head { display: flex; align-items: flex-start; gap: .35rem; }
.wiki-toggle-mark { flex: none; width: 1.1rem; height: 1.5rem; color: #94a3b8; font-size: .75rem; line-height: 1.5rem; transition: transform .15s; }
.wiki-toggle-mark:hover { color: #0369a1; }
.wiki-toggle-edit.wiki-toggle-open > .wiki-toggle-head .wiki-toggle-mark { transform: rotate(90deg); }
.wiki-toggle-title { flex: 1; min-width: 0; font-weight: 700; color: #0f172a; }
.wiki-toggle-kids { margin: .2rem 0 .2rem 1.1rem; padding-left: .5rem; border-left: 1px solid #e2e8f0; }
.wiki-toggle-kids > .wiki-block:first-child > .wiki-block-body > :first-child { margin-top: 0; }
.wiki-editing .wiki-col { position: relative; padding: 1.1rem .3rem .3rem; border: 1px dashed #e2e8f0; border-radius: .5rem; }
.wiki-editing .wiki-col > .wiki-block:first-of-type > .wiki-block-body > :first-child { margin-top: 0; }
.wiki-col-x { position: absolute; top: .15rem; right: .3rem; color: #cbd5e1; font-size: .9rem; line-height: 1; opacity: 0; }
.wiki-col:hover > .wiki-col-x { opacity: 1; }
.wiki-col-x:hover { color: #e11d48; }
.wiki-cols-add { margin-top: .4rem; padding: .25rem .6rem; border-radius: .4rem; background: #f1f5f9; color: #334155; font-size: .78rem; font-weight: 700; }
.wiki-cols-add:hover { background: #e2e8f0; color: #0f172a; }
.wiki-drop > .wiki-node-row { outline: 2px solid #0369a1; outline-offset: 1px; }
.wiki-side-label { display: block; margin: .9rem 0 .3rem .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.wiki-favs { margin-bottom: .25rem; }
.wiki-fav-link { display: flex; align-items: center; gap: .35rem; }
.wiki-node-row { position: relative; display: flex; align-items: center; gap: .1rem; border-radius: .5rem; }
.wiki-node-row:hover { background: #f8fafc; }
.wiki-node-row .wiki-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: .35rem; }
.wiki-node-on { background: #e0f2fe; }
.wiki-node-on:hover { background: #e0f2fe; }
.wiki-node-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-node-icon { flex-shrink: 0; width: 1.15rem; text-align: center; }
.wiki-caret, .wiki-caret-gap { flex-shrink: 0; width: 1.1rem; height: 1.1rem; }
.wiki-caret { display: inline-flex; align-items: center; justify-content: center; border-radius: .3rem; color: #94a3b8; }
.wiki-caret:hover { background: #e2e8f0; color: #0f172a; }
.wiki-caret svg { width: .75rem; height: .75rem; transition: transform .15s ease; }
.wiki-caret[aria-expanded="true"] svg { transform: rotate(90deg); }
.wiki-count { flex-shrink: 0; padding: 0 .25rem; font-size: .7rem; color: #94a3b8; }
.wiki-more { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; border-radius: .3rem; color: #64748b; opacity: 0; }
.wiki-more svg { width: .9rem; height: .9rem; fill: currentColor; }
.wiki-more:hover, .wiki-more:focus-visible { background: #e2e8f0; color: #0f172a; opacity: 1; }
.wiki-node-row .wiki-tree-add { flex-shrink: 0; margin: 0; }
.wiki-node-row .wiki-tree-add summary { opacity: 0; }
.wiki-node-row:hover .wiki-more, .wiki-node-row:focus-within .wiki-more,
.wiki-node-row:hover .wiki-tree-add summary, .wiki-node-row:focus-within .wiki-tree-add summary,
.wiki-node-row .wiki-tree-add[open] summary { opacity: 1; }
.wiki-node-row .wiki-tree-add-form { position: absolute; left: 1.2rem; right: 0; top: 100%; z-index: 5; margin-top: .15rem; }
@media (hover: none) { .wiki-more, .wiki-node-row .wiki-tree-add summary { opacity: 1; } }
.wiki-rename { flex: 1; min-width: 0; margin: 0; }
.wiki-rename input { width: 100%; padding: .2rem .4rem; font-size: .85rem; border: 1px solid #93c5fd; border-radius: .4rem; }
.wiki-menu { position: fixed; z-index: 70; min-width: 13rem; padding: .3rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; box-shadow: var(--shadow-pop); }
.wiki-menu form { margin: 0; }
.wiki-menu-item { display: block; width: 100%; padding: .45rem .6rem; border-radius: .5rem; font-size: .85rem; text-align: left; color: #0f172a; }
.wiki-menu-item:hover, .wiki-menu-item:focus-visible { background: #f1f5f9; }
.wiki-menu-danger { color: #be123c; }
.wiki-menu-sep { display: block; height: 1px; margin: .3rem .2rem; background: #f1f5f9; }
.wiki-menu-kbd { float: right; padding-left: 1rem; font-size: .72rem; color: #94a3b8; }
.wiki-menu-check::after { content: ""; float: right; width: .35rem; height: .7rem; margin: .1rem .25rem 0 0; border: solid #0284c7; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wiki-pick-card { max-width: 30rem; }
.wiki-pick-list { max-height: 55vh; overflow-y: auto; }
.wiki-pick-item { display: block; width: 100%; padding: .4rem .6rem; border-radius: .5rem; font-size: .875rem; text-align: left; color: #0f172a; overflow-wrap: anywhere; }
.wiki-pick-item:hover, .wiki-pick-item:focus-visible { background: #f1f5f9; }
.wiki-pick-root { font-weight: 600; color: #0369a1; }
.wiki-pick-on { background: #e0f2fe; font-weight: 600; }
.wiki-pick-group + .wiki-pick-group { margin-top: .5rem; }
.wiki-pick-head { padding: .35rem .6rem .2rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.wiki-pick-person { display: flex; align-items: center; gap: .6rem; }
.wiki-pick-person.hidden { display: none; }
.wiki-pick-face { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: #e0f2fe; color: #0369a1; font-size: .75rem; font-weight: 700; overflow: hidden; }
.wiki-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.wiki-head .wiki-crumb { min-width: 0; margin: 0; }
.wiki-crumb-here { color: #334155; font-weight: 600; }
.wiki-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.wiki-head .wiki-stamp { margin: 0 .3rem 0 0; }
.wiki-head-btn { padding: .35rem .75rem; font-size: .8rem; }
.wiki-head .wiki-more { width: 2rem; height: 2rem; opacity: 1; }
.wiki-star-form { margin: 0; }
.wiki-star { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .5rem; color: #94a3b8; }
.wiki-star svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.wiki-star:hover, .wiki-star:focus-visible { background: #f1f5f9; color: #d97706; }
.wiki-star-on { color: #d97706; }
.wiki-star-on svg { fill: currentColor; }
.wiki-cover { position: relative; height: 10rem; margin-bottom: .6rem; border-radius: .9rem; }
.wiki-cover-img { background-color: #e2e8f0; background-size: cover; background-position: center; }
.wiki-cover-g1 { background: linear-gradient(120deg, #e0f2fe, #bae6fd 45%, #c7d2fe); }
.wiki-cover-g2 { background: linear-gradient(120deg, #dcfce7, #a7f3d0 50%, #bfdbfe); }
.wiki-cover-g3 { background: linear-gradient(120deg, #fef3c7, #fde68a 45%, #fecaca); }
.wiki-cover-g4 { background: linear-gradient(120deg, #fae8ff, #f5d0fe 45%, #c7d2fe); }
.wiki-cover-g5 { background: linear-gradient(120deg, #ffe4e6, #fecdd3 45%, #fed7aa); }
.wiki-cover-g6 { background: linear-gradient(120deg, #f1f5f9, #cbd5e1 55%, #94a3b8); }
.wiki-cover-g7 { background: linear-gradient(120deg, #0f172a, #1e3a8a 55%, #0369a1); }
.wiki-cover-g8 { background: linear-gradient(120deg, #134e4a, #0f766e 50%, #65a30d); }
.wiki-cover-change { position: absolute; right: .6rem; bottom: .6rem; padding: .3rem .7rem; border-radius: .5rem; font-size: .78rem; font-weight: 600; color: #0f172a; background: rgba(255, 255, 255, .9); opacity: 0; }
.wiki-cover:hover .wiki-cover-change, .wiki-cover-change:focus-visible { opacity: 1; }
.wiki-icon { margin: .2rem 0 .3rem; font-size: 3rem; line-height: 1; }
.wiki-icon-over { position: relative; margin-top: -2.4rem; padding-left: .6rem; }
.wiki-icon-btn { padding: .1rem .2rem; border-radius: .6rem; line-height: 1; }
.wiki-icon-img { display: inline-block; width: 1.1em; height: 1.1em; object-fit: cover; border-radius: .22em; vertical-align: -.2em; }
.wiki-icon .wiki-icon-img { width: 1em; height: 1em; vertical-align: top; }
.wiki-icon-btn:hover, .wiki-icon-btn:focus-visible { background: rgba(241, 245, 249, .9); }
.wiki-addons { display: flex; gap: .4rem; min-height: 1.6rem; opacity: 0; }
.wiki-main:hover .wiki-addons, .wiki-addons:focus-within { opacity: 1; }
.wiki-addon { padding: .2rem .5rem; border-radius: .4rem; font-size: .8rem; color: #64748b; }
.wiki-addon:hover, .wiki-addon:focus-visible { background: #f1f5f9; color: #0f172a; }
.wiki-props { display: grid; gap: .35rem; margin: .7rem 0 1.4rem; padding: .7rem 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; font-size: .85rem; }
.wiki-prop { display: flex; align-items: center; gap: .75rem; min-height: 1.8rem; }
.wiki-prop-name { flex-shrink: 0; width: 8.5rem; color: #64748b; }
.wiki-prop-value { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; color: #0f172a; }
.wiki-prop-form { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.wiki-prop-btn { padding: .15rem .5rem; border-radius: .4rem; color: #334155; }
.wiki-prop-btn:hover, .wiki-prop-btn:focus-visible { background: #f1f5f9; color: #0f172a; }
.wiki-prop-select { margin-left: .25rem; padding: .1rem .3rem; font-size: .8rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .4rem; }
.wiki-status { display: inline-flex; align-items: center; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.wiki-status-fresh { background: #dcfce7; color: #166534; }
.wiki-status-stale { background: #fef3c7; color: #92400e; }
.wiki-status-note { font-size: .78rem; color: #64748b; }
.wiki-label-chip { display: inline-flex; align-items: center; gap: .1rem; padding: .05rem .55rem; border-radius: 999px; background: #f1f5f9; }
.wiki-label { font-size: .78rem; color: #334155; }
.wiki-label:hover { text-decoration: underline; }
.wiki-label-drop { width: 1.1rem; height: 1.1rem; margin-right: -.35rem; border-radius: 999px; line-height: 1; color: #94a3b8; }
.wiki-label-drop:hover, .wiki-label-drop:focus-visible { background: #e2e8f0; color: #0f172a; }
.wiki-label-input { width: 8rem; padding: .15rem .4rem; font-size: .8rem; background: transparent; border: 1px dashed #cbd5e1; border-radius: .4rem; }
.wiki-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr)); gap: .2rem; max-height: 50vh; overflow-y: auto; }
.wiki-pick-icon { display: flex; align-items: center; justify-content: center; height: 2.5rem; padding: 0; font-size: 1.4rem; }
.wiki-cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wiki-cover-pick { height: 3.2rem; border: 2px solid transparent; border-radius: .6rem; }
.wiki-cover-pick:hover, .wiki-cover-pick:focus-visible { border-color: #0369a1; }
.wiki-toc-rail { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; padding: .6rem .5rem; border: 1px solid transparent; border-radius: .75rem; }
.wiki-toc-rail .wiki-toc-head { display: none; }
.wiki-toc-rail .wiki-toc-link { display: block; padding: 0; border-left: 0; }
.wiki-toc-rail .wiki-toc-link::before { content: ""; display: block; width: 1.1rem; height: 3px; border-radius: 2px; background: #cbd5e1; }
.wiki-toc-rail .wiki-toc-3::before { width: .7rem; }
.wiki-toc-rail .wiki-toc-on::before { background: #0369a1; }
.wiki-toc-rail .wiki-toc-text { display: none; }
.wiki-toc:hover .wiki-toc-rail, .wiki-toc:focus-within .wiki-toc-rail { align-items: stretch; gap: 0; max-height: calc(100dvh - 7rem); overflow-y: auto; background: #fff; border-color: #e2e8f0; box-shadow: var(--shadow-pop); }
.wiki-toc:hover .wiki-toc-head, .wiki-toc:focus-within .wiki-toc-head { display: block; }
.wiki-toc:hover .wiki-toc-link, .wiki-toc:focus-within .wiki-toc-link { padding: .25rem .4rem; border-radius: .4rem; }
.wiki-toc:hover .wiki-toc-3, .wiki-toc:focus-within .wiki-toc-3 { padding-left: 1.1rem; }
.wiki-toc:hover .wiki-toc-link::before, .wiki-toc:focus-within .wiki-toc-link::before { display: none; }
.wiki-toc:hover .wiki-toc-text, .wiki-toc:focus-within .wiki-toc-text { display: block; }
.wiki-toc:hover .wiki-toc-on, .wiki-toc:focus-within .wiki-toc-on { background: #f0f9ff; }
@media (hover: none) { .wiki-addons, .wiki-cover-change { opacity: 1; } }
@media (max-width: 640px) {
    .wiki-cover { height: 6rem; }
    .wiki-prop { flex-direction: column; align-items: flex-start; gap: .2rem; }
    .wiki-prop-name { width: auto; }
    .wiki-cover-grid { grid-template-columns: repeat(2, 1fr); }
}
.wiki-trash-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: .75rem; padding: .4rem .5rem; border-radius: .5rem; font-size: .85rem; color: #64748b; }
.wiki-trash-btn:hover { background: #f1f5f9; color: #0f172a; }
.wiki-trash-card { max-width: 34rem; }
.wiki-tpl-new { display: flex; gap: .5rem; margin-bottom: .75rem; }
.wiki-tpl-new .input { flex: 1; min-width: 0; }
.wiki-tpl-row { display: flex; flex-direction: column; padding: .5rem .6rem; border-radius: .5rem; }
.wiki-tpl-row:hover { background: #f8fafc; }
.wiki-tpl-plaque { background: #eef2ff; color: #3730a3; }
.wiki-tpl-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .85rem; color: #64748b; }
.wiki-trash-tpl { margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: .7rem; font-weight: 600; }
.wiki-hist-card { max-width: 1100px; width: calc(100vw - 2rem); }
.wiki-hist { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1rem; max-height: 72vh; }
.wiki-hist-list { overflow-y: auto; border-right: 1px solid #eef2f6; padding-right: .5rem; }
.wiki-ver { display: block; width: 100%; text-align: left; padding: .5rem .6rem; border-radius: .5rem; }
.wiki-ver:hover { background: #f8fafc; }
.wiki-ver.wiki-ver-on { background: #eef2ff; }
.wiki-ver b { display: block; font-size: .85rem; }
.wiki-ver small { display: block; color: #64748b; font-size: .75rem; }
.wiki-ver-now { font-size: .7rem; font-weight: 600; color: #4f46e5; }
.wiki-hist-main { overflow-y: auto; min-width: 0; }
.wiki-hist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-bottom: .6rem; margin-bottom: .8rem; border-bottom: 1px solid #eef2f6; font-size: .85rem; font-weight: 600; }
.wiki-hist-bar form { margin-left: auto; }
.wiki-hist-switch { display: inline-flex; gap: .25rem; }
.wiki-hist-with { padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 500; background: #f1f5f9; color: #334155; }
.wiki-hist-with.wiki-hist-with-on { background: #4f46e5; color: #fff; }
@media (max-width: 768px) {
    .wiki-hist { grid-template-columns: 1fr; max-height: none; }
    .wiki-hist-list { border-right: 0; padding-right: 0; max-height: 30vh; }
}
.wiki-trash-row { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid #f1f5f9; }
.wiki-trash-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wiki-trash-title { font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.wiki-trash-note { font-size: .78rem; color: #64748b; }
.wiki-plaque { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .75rem 1rem; border-radius: .75rem; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-weight: 600; }
.wiki-plaque-note { font-weight: 400; font-size: .85rem; color: #7c2d12; }
@media (max-width: 640px) { .wiki-trash-row { flex-wrap: wrap; } .wiki-trash-name { flex-basis: 100%; } }
.wiki-table-edit { position: relative; }
.wiki-table-edit th { position: relative; padding-right: 1.7rem; }
.wiki-cell-box { min-height: 1.3em; outline: none; white-space: pre-wrap; }
.wiki-table-edit td.wiki-table-gutter, .wiki-table-edit th.wiki-table-gutter { border: none; padding: 0; background: none; font-weight: 400; width: 1.3rem; min-width: 1.3rem; }
.wiki-row-del { display: none; width: 1.1rem; height: 1.1rem; border-radius: .3rem; color: #cbd5e1; font-size: .85rem; line-height: 1; }
.wiki-table-edit tbody tr:hover .wiki-row-del { display: inline-flex; align-items: center; justify-content: center; }
.wiki-row-del:hover { color: #e11d48; background: #fee2e2; }
.wiki-col-del { display: none; position: absolute; top: .3rem; right: .3rem; width: 1.1rem; height: 1.1rem; border-radius: .3rem; color: #94a3b8; font-size: .8rem; line-height: 1; background: #fff; }
.wiki-table-edit th:hover .wiki-col-del { display: inline-flex; align-items: center; justify-content: center; }
.wiki-col-del:hover { color: #e11d48; background: #fee2e2; }
.wiki-table-controls { display: flex; gap: .5rem; margin: -.5rem 0 1rem; }
.wiki-table-add { padding: .25rem .6rem; border-radius: .4rem; background: #f1f5f9; color: #334155; font-size: .78rem; font-weight: 700; }
.wiki-table-add:hover { background: #e2e8f0; color: #0f172a; }
.shift-spec { background: #faf5ff; border-color: #e9d5ff; }
.shift-lead { background: #eef2ff; border-color: #c7d2fe; }
.avatar-lead { background-image: linear-gradient(to bottom right, #818cf8, #4f46e5); }
.shift-split { grid-column: 1 / -1; border-top: 1px solid #e2e8f0; }

.tk-list { border: 1px solid #eef2f6; border-radius: .8rem; overflow: hidden; background: #fff; }
.tk-head {
    display: flex; gap: .75rem; padding: .6rem 1rem;
    background: #f8fafc; border-bottom: 1px solid #eef2f6;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b;
}
.tk-col-num { width: 3.5rem; flex-shrink: 0; }
.tk-col-title { flex: 1; min-width: 10rem; }
.tk-col-kind { width: 9rem; flex-shrink: 0; }
.tk-col-prio { width: 7.5rem; flex-shrink: 0; }
@media (max-width: 1100px) { .tk-list:not(.tk-list-wide) .tk-col-kind { display: none; } }
.tk-col-dept { width: 7rem; flex-shrink: 0; }
.tk-col-author { width: 10rem; flex-shrink: 0; }
.tk-col-status { width: 7rem; flex-shrink: 0; }
.tk-col-worker { width: 8rem; flex-shrink: 0; }
.tk-list-wide { overflow-x: auto; container-type: inline-size; }
.tk-list-wide .tk-head, .tk-list-wide .tk-row { min-width: 70.5rem; }
.tk-list-wide .tk-col-title { min-width: 8rem; }
.tk-list-wide .tk-col-kind { width: 7.5rem; }
.tk-list-wide .tk-col-author { width: 8.5rem; }
.tk-list-wide .tk-col-worker { width: 7.5rem; }
@container (max-width: 70.5rem) {
    .tk-list-wide .tk-col-kind { display: none; }
    .tk-list-wide .tk-head, .tk-list-wide .tk-row { min-width: 62rem; }
}
.tk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.tk-col-taker { width: 8rem; flex-shrink: 0; }
.tk-col-date { width: 6rem; flex-shrink: 0; text-align: right; white-space: nowrap; }
.tk-col-rate { width: 6rem; flex-shrink: 0; }
.tk-col-limit { width: 9rem; flex-shrink: 0; text-align: right; }
.tk-row {
    display: flex; gap: .75rem; align-items: center; padding: .7rem 1rem;
    border-top: 1px solid #eef2f6; font-size: .9rem; color: #0f172a;
}
.tk-head + .tk-row { border-top: 0; }
a.tk-row:hover { background: #f8fafc; }
.tk-name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sub { display: block; font-size: .78rem; color: #64748b; }
.tk-status { display: inline-block; border-radius: .45rem; padding: .15rem .5rem; font-size: .75rem; font-weight: 700; }
.tk-status-waiting { background: #fef3c7; color: #92400e; }
.tk-status-in_work { background: #e0f2fe; color: #075985; }
.tk-status-done { background: #dcfce7; color: #15803d; }
.tk-val { display: inline-block; border-radius: .45rem; padding: .1rem .5rem; font-size: .8rem; font-weight: 700; }
.tk-vals { display: flex; flex-wrap: wrap; gap: .3rem; }
.tk-val-env { background: #e0e7ff; color: #3730a3; }
.tk-val-integration { background: #e0f2fe; color: #075985; }
.tk-val-traffic { background: #f3e8ff; color: #7e22ce; }
.tk-val-flag { background: #dcfce7; color: #15803d; }
.tk-val-rate { background: #fef3c7; color: #92400e; }
.tk-prio { display: inline-block; border-radius: .45rem; padding: .15rem .5rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.tk-prio-low { background: #f1f5f9; color: #475569; }
.tk-prio-medium { background: #e0f2fe; color: #075985; }
.tk-prio-high { background: #ffedd5; color: #c2410c; }
.tk-prio-critical { background: #fee2e2; color: #b91c1c; font-weight: 800; }
.tk-prio-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.tk-prio-choice { position: relative; }
.tk-prio-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-prio-choice .tk-prio { cursor: pointer; padding: .4rem .85rem; font-size: .85rem; border: 2px solid transparent; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.tk-prio-choice:hover .tk-prio { opacity: .85; }
.tk-prio-choice input:checked + .tk-prio { opacity: 1; border-color: currentColor; }
.tk-prio-choice input:focus-visible + .tk-prio { outline: 2px solid #0369a1; outline-offset: 2px; }
.tk-prio-menu { position: relative; display: inline-block; }
.tk-prio-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; color: #64748b; }
.tk-prio-menu summary::-webkit-details-marker { display: none; }
.tk-prio-menu summary:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; border-radius: .45rem; }
.tk-prio-list { position: absolute; z-index: 20; top: calc(100% + .35rem); left: 0; min-width: 11rem; padding: .3rem; display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .6rem; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); }
.tk-prio-item { display: block; width: 100%; text-align: left; padding: .3rem .4rem; border-radius: .4rem; background: none; }
.tk-prio-item:hover, .tk-prio-item[aria-current] { background: #f1f5f9; }
.tk-prio-opt-low { color: #475569; }
.tk-prio-opt-medium { color: #075985; }
.tk-prio-opt-high { color: #c2410c; }
.tk-prio-opt-critical { color: #b91c1c; font-weight: 700; }
.tk-history { display: grid; gap: .35rem; font-size: .9rem; }
.tk-ev { display: flex; align-items: baseline; gap: .5rem; }
.tk-ev::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0; background: #0ea5e9; }
.tk-ev-return::before { background: #f59e0b; }
.tk-ev-close::before { background: #22c55e; }
.tk-when { color: #64748b; font-size: .82rem; }
.tk-comments { display: grid; gap: .9rem; }
.tk-comment { display: flex; gap: .65rem; align-items: flex-start; }
.tk-avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background-image: linear-gradient(to bottom right, #38bdf8, #0369a1);
    color: #fff; font-weight: 800; font-size: .85rem;
}
.tk-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-size: .88rem; }
.tk-bubble {
    margin-top: .25rem; padding: .55rem .8rem; border-radius: .3rem 1rem 1rem 1rem;
    background: #f1f5f9; color: #0f172a; font-size: .92rem; width: fit-content; max-width: 100%;
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.tk-composer { margin-top: 1.25rem; }
.tk-composer-row { display: flex; gap: .65rem; align-items: flex-end; }
.tk-field {
    flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: .35rem;
    padding: .4rem .4rem .4rem .85rem; border: 1px solid #cbd5e1; border-radius: 1.1rem;
    background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.tk-field:focus-within { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3, 105, 161, .14); }
.tk-field textarea {
    flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: transparent;
    font-size: .92rem; line-height: 1.45; padding: .35rem 0; max-height: 200px; color: #0f172a;
}
.tk-icon-btn {
    width: 2.1rem; height: 2.1rem; border-radius: .7rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #64748b;
}
.tk-icon-btn:hover, .tk-icon-btn[aria-expanded="true"] { background: #f0f9ff; color: #0369a1; }
.tk-send {
    width: 2.2rem; height: 2.2rem; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-accent); color: #fff; box-shadow: 0 4px 12px -4px rgba(3, 105, 161, .5);
}
.tk-send:hover { background: #075985; }
.tk-emoji-panel {
    margin: .5rem 0 0 2.75rem; padding: .5rem; width: 17rem; max-width: calc(100% - 2.75rem);
    border: 1px solid #e2e8f0; border-radius: .9rem; background: #fff; box-shadow: var(--shadow-pop);
}
.tk-emoji-title { font-size: .72rem; font-weight: 700; color: #64748b; margin: 0 0 .35rem .15rem; }
.tk-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .1rem; }
.tk-emoji-pick { font-size: 1.25rem; line-height: 1; padding: .3rem 0; border-radius: .45rem; }
.tk-emoji-pick:hover { background: #f1f5f9; }
.tk-hint { font-size: .72rem; color: #94a3b8; margin: .35rem 0 0 2.75rem; }
.tk-composer-error { margin-left: 2.75rem; }
.tk-kv { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem 1rem; font-size: .92rem; }
.tk-kv dt { color: #64748b; }
.tk-kv dd { font-weight: 600; margin: 0; }
.tk-empty { padding: 2.5rem 1rem; text-align: center; color: #64748b; font-size: .9rem; }
.tk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.tk-filters .input { width: auto; padding: .55rem .7rem; }
.tk-filters .select { padding-top: .55rem; padding-bottom: .55rem; max-width: 12rem; }
.tk-f-q { flex: 0 1 15rem; min-width: 11rem; }
.tk-f-dates { display: inline-flex; align-items: center; gap: .35rem; }
.tk-f-sep { color: #64748b; font-size: .85rem; }
.tk-f-reset { font-size: .85rem; font-weight: 600; color: #0369a1; }
.tk-f-reset:hover { text-decoration: underline; }
.tk-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.tk-pager-info { color: #64748b; font-size: .85rem; }
.tk-pager-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.tk-page {
    min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem; border-radius: .6rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font-size: .88rem; font-weight: 600;
}
a.tk-page:hover { border-color: #94a3b8; background: #f8fafc; }
.tk-page-on { background: #0369a1; border-color: #0369a1; color: #fff; }
.tk-page-gap { color: #94a3b8; padding: 0 .2rem; }
.tk-form {
    padding: 1rem; margin-bottom: 1.25rem; border-radius: .8rem;
    border: 1px solid #e0f2fe; background: #f8fbff;
}
.tk-form textarea { resize: vertical; min-height: 7rem; }
@media (max-width: 640px) {
    .tk-col-kind, .tk-col-dept, .tk-col-author, .tk-col-taker, .tk-col-worker, .tk-col-date { display: none; }
    .tk-list-wide .tk-head, .tk-list-wide .tk-row { min-width: 0; }
    .tk-col-limit { width: 6rem; }
    .tk-kv { grid-template-columns: 1fr; gap: .1rem; }
    .tk-kv dd { margin-bottom: .5rem; }
}

.tk-wizard { max-width: 40rem; }
.tk-progress { display: flex; gap: .4rem; margin-top: .75rem; }
.tk-progress span { flex: 1; height: .25rem; border-radius: .25rem; background: #e2e8f0; }
.tk-progress span.tk-on { background: var(--color-accent); }
.tk-label { display: block; font-size: .85rem; font-weight: 700; color: #0f172a; margin-bottom: .35rem; }
.tk-label i { font-style: normal; color: #4f46e5; }
.tk-error { min-height: 0; color: #e11d48; font-size: .78rem; margin-top: .3rem; }
.tk-error:empty { display: none; }
.tk-bad { border-color: #f43f5e !important; background: #fff1f2; }
.tk-choices { display: grid; gap: .5rem; }
.tk-choice {
    display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; cursor: pointer;
    border: 1px solid #e2e8f0; border-radius: .7rem; font-weight: 600; font-size: .9rem;
}
.tk-choice:has(input:checked) { border-color: var(--color-accent); background: #f0f9ff; }
.tk-seg-group { flex-wrap: wrap; }
.tk-seg { cursor: pointer; }
.tk-block { margin-bottom: 1.25rem; }
.tk-block-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.tk-count { background: #eef2ff; color: #4338ca; font-size: .75rem; font-weight: 700; border-radius: .5rem; padding: .2rem .55rem; }
.tk-note { font-size: .78rem; color: #64748b; margin: .4rem 0; }
.tk-card { border: 1px solid #e2e8f0; border-radius: .9rem; padding: .9rem; margin-bottom: .6rem; background: #fff; }
.tk-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.tk-card-head .tk-card-del { margin-left: auto; }
.tk-num { background: #eef2f6; color: #475569; font-weight: 800; font-size: .75rem; border-radius: .45rem; padding: .15rem .45rem; }
.tk-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .7rem; }
.tk-unit { position: relative; }
.tk-unit .input { padding-right: 3.2rem; }
.tk-unit span {
    position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
    font-size: .78rem; font-weight: 700; color: #64748b; pointer-events: none;
}
.tk-add {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; margin-top: .2rem;
    border: 1px dashed #a5b4fc; background: #f5f7ff; color: #4338ca; border-radius: .7rem;
    font-weight: 700; font-size: .85rem;
}
.tk-add:hover { background: #eef2ff; }
@media (max-width: 640px) {
    .tk-row3 { grid-template-columns: 1fr; }
}
.tk-cashbox + .tk-cashbox { border-top: 1px dashed #e2e8f0; margin-top: 1.25rem; }
.tk-link { color: #0369a1; font-weight: 600; overflow-wrap: anywhere; }
.tk-link:hover { text-decoration: underline; }
.tk-box { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: .9rem; padding: .8rem .9rem; margin-bottom: .6rem; background: #fff; }
.tk-box-main { min-width: 0; flex: 1 1 14rem; }
.tk-box-url { font-size: .8rem; color: #0369a1; overflow-wrap: anywhere; white-space: pre-line; }
.tk-box-meta { font-size: .8rem; color: #64748b; margin-top: .15rem; }
.tk-box-warn { font-size: .78rem; font-weight: 600; color: #e11d48; margin-top: .3rem; }
.tk-box-actions { display: flex; gap: .9rem; flex-shrink: 0; }
.tk-link-btn { font-size: .82rem; font-weight: 700; color: #4f46e5; }
.tk-link-btn:hover { text-decoration: underline; }
.tk-link-danger { color: #e11d48; }
.tk-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: #0f172a; cursor: pointer; }
.tk-check input { width: 1rem; height: 1rem; accent-color: #4f46e5; flex-shrink: 0; }
.tk-flags { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-top: .35rem; }
.tk-flags .tk-check { font-weight: 500; }
.tk-cp { display: block; margin-top: .15rem; font-size: .72rem; font-weight: 600; color: #7c3aed; }
.tk-label.tk-off, .tk-label.tk-off i { color: #94a3b8; }
.tk-wizard .input:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.tk-count:empty { display: none; }
.tk-doc { font-size: .95rem; line-height: 1.6; color: #0f172a; overflow-wrap: anywhere; }
.tk-doc ul, .tk-doc ol { margin: .35rem 0 .35rem 1.4rem; }
.tk-doc ul { list-style: disc; }
.tk-doc ol { list-style: decimal; }
.tk-doc blockquote { margin: .5rem 0; padding: .35rem .8rem; border-left: 3px solid #c7d2fe; background: #f8fafc; color: #475569; border-radius: 0 .5rem .5rem 0; }
.tk-doc a { color: #0369a1; text-decoration: underline; text-underline-offset: 2px; }
.tk-editor { border: 1.5px solid #cbd5e1; border-radius: .9rem; background: #fff; overflow: hidden; }
.tk-editor:focus-within { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
.tk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; padding: .35rem .4rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.tk-tool { min-width: 2rem; height: 2rem; padding: 0 .35rem; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; color: #334155; font-size: .9rem; }
.tk-tool.tk-tool-file { margin-left: auto; padding: 0 .65rem; background: #e0f2fe; color: #0369a1; font-size: .78rem; font-weight: 700; }
.tk-tool.tk-tool-file:hover { background: #bae6fd; }
.tk-files { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 .75rem .75rem; }
.tk-files:empty { display: none; }
.tk-files-view { padding: .6rem 0 0; }
.tk-file { position: relative; display: inline-flex; align-items: center; height: 4.4rem; border: 1px solid #e2e8f0; border-radius: .6rem; background: #f8fafc; overflow: hidden; }
.tk-file-img { width: 7rem; }
.tk-file-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-file-doc { padding: 0 1.6rem 0 .75rem; max-width: 15rem; gap: .5rem; color: #0f172a; text-decoration: none; }
.tk-file-doc::before { content: ""; flex: none; width: .85rem; height: 1.1rem; border: 2px solid #94a3b8; border-radius: .15rem; }
.tk-file-name { font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.tk-file-name small { display: block; font-weight: 500; color: #64748b; font-size: .72rem; }
.tk-files-view .tk-file-img { width: 9.5rem; height: 6rem; }
.tk-files-view .tk-file-doc { height: 6rem; padding-right: .9rem; }
.tk-file-open { display: flex; align-items: center; align-self: stretch; min-width: 0; color: inherit; text-decoration: none; }
.tk-file-img .tk-file-open { width: 100%; height: 100%; }
.tk-file-drop { position: absolute; top: .25rem; right: .25rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(15, 23, 42, .65); color: #fff; font-size: .75rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tk-choice-tall { align-items: flex-start; }
.tk-choice-tall input { margin-top: .2rem; }
.tk-choice-note { display: block; font-size: .78rem; font-weight: 500; color: #64748b; margin-top: .1rem; }
.tk-who { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: .7rem; background: #f8fafc; }
.tk-who b { display: block; font-size: .9rem; }
.tk-who small { display: block; font-size: .78rem; color: #64748b; }
.tk-who-face { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #38bdf8, #0284c7); color: #fff; font-weight: 800; font-size: .85rem; }
.tk-who-face.tk-who-small { width: 1.6rem; height: 1.6rem; font-size: .72rem; }
.tk-who-line { display: inline-flex; align-items: center; gap: .5rem; }
.tk-seg-badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-size: .78rem; font-weight: 800; }
.tk-sub-cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28rem; }
.tk-links .tk-url-row { margin-top: .5rem; }
.tk-tool:hover { background: #eef2f6; }
.tk-tool.on, .tk-tool[aria-expanded="true"] { background: #e0f2fe; color: #0369a1; }
.tk-tool-sep { width: 1px; height: 1.1rem; background: #e2e8f0; margin: 0 .25rem; }
.tk-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .6rem; border-bottom: 1px solid #e2e8f0; }
.tk-link-row .input { flex: 1 1 12rem; min-width: 0; }
.tk-link-row .tk-error { flex-basis: 100%; margin-top: 0; }
.tk-body-emoji { margin: .5rem .6rem 0; max-width: calc(100% - 1.2rem); box-shadow: none; }
.tk-editor-area { min-height: 10rem; max-height: 22rem; overflow-y: auto; padding: .7rem .85rem; outline: none; }
.tk-editor-area:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.tk-editor-foot { display: flex; justify-content: flex-end; padding: 0 .75rem .45rem; font-size: .72rem; color: #94a3b8; }
.tk-editor-foot .tk-over { color: #e11d48; font-weight: 700; }
.tk-name-line { display: flex; align-items: center; min-width: 0; }
.tk-name-line .tk-name { min-width: 0; }
.tk-dot { display: inline-block; flex-shrink: 0; width: .5rem; height: .5rem; margin-left: .4rem; border-radius: 50%; background: #dc2626; vertical-align: middle; box-shadow: 0 0 0 2px #fee2e2; }
.tk-auto { border-color: #7dd3fc !important; background: #f0f9ff; }
.tk-auto-hint { font-size: .75rem; color: #0369a1; margin-top: .45rem; }
.cfg-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.cfg-head p { margin-top: .2rem; max-width: 46rem; }
.cfg-note { margin-bottom: 1rem; padding: .6rem .8rem; border-radius: .75rem; font-size: .85rem; font-weight: 600; }
.cfg-note-ok { background: #ecfdf5; color: #047857; }
.cfg-note-err { background: #fff1f2; color: #be123c; }
.cfg-new { border: 1.5px dashed #c7d2fe; border-radius: 1rem; padding: .9rem; margin-bottom: .9rem; background: #f8faff; }
.cfg-geo-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cfg-geo-form .input { flex: 1 1 12rem; min-width: 0; }
.cfg-geo-form .cfg-cur { flex: 0 0 6rem; text-transform: uppercase; }
.cfg-geo-form .cfg-err { flex-basis: 100%; }
.cfg-grip { flex-shrink: 0; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 2rem; margin-left: -.35rem; border-radius: .35rem; color: #94a3b8; cursor: grab; }
.cfg-geo-head:hover .cfg-grip { color: #64748b; }
.cfg-grip:hover { color: #334155; background: #e2e8f0; }
.cfg-grip:active { cursor: grabbing; }
.cfg-grip svg { width: 1.1rem; height: 1.1rem; }
.cfg-dragging { opacity: .4; }
.cfg-geo { border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem; margin-top: .9rem; background: #fff; }
.cfg-geo-head { display: flex; align-items: center; gap: .6rem; }
.cfg-ava { width: 2.4rem; height: 2.4rem; border-radius: .7rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #0369a1; background: linear-gradient(135deg, #e0f2fe, #ede9fe); }
.cfg-geo-name { font-weight: 800; font-size: 1rem; color: #0f172a; overflow-wrap: break-word; }
.cfg-sub { font-size: .78rem; color: #64748b; }
.cfg-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; font-weight: 800; background: #e0f2fe; color: #0369a1; }
.cfg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--cfg-min, 34.5rem), 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.cfg-blk { background: #f8fafc; border-radius: .85rem; padding: .75rem; min-width: 0; }
.cfg-blk-head { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 800; color: #0f172a; margin-bottom: .4rem; }
.cfg-count { background: #eef2f6; color: #475569; font-size: .72rem; font-weight: 800; border-radius: .5rem; padding: .1rem .5rem; }
.cfg-line { display: grid; grid-template-columns: var(--cfg-cols, minmax(0, 1fr) 6.75rem 6.75rem 10.25rem); align-items: center; gap: .5rem; padding: .45rem .35rem; border-top: 1px solid #eef2f6; font-size: .85rem; }
.cfg-th { border-top: 0; padding-top: 0; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.cfg-name { font-weight: 600; color: #0f172a; overflow-wrap: break-word; min-width: 0; }
.cfg-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfg-limits { display: contents; }
.cfg-missing { grid-column: span 2; justify-self: end; font-size: .75rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 999px; padding: .15rem .6rem; }
.cfg-acts { display: flex; justify-content: flex-end; align-items: center; gap: .15rem; }
.cfg-edit { background: #f0f9ff; border-radius: .6rem; }
.cfg-edit .input { padding: .35rem .5rem; font-size: .85rem; min-width: 0; }
.cfg-in-num { text-align: right; }
.cfg-ok { width: 2rem; height: 2rem; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center; background: #0369a1; color: #fff; }
.cfg-ok:hover { background: #075985; }
.cfg-err { grid-column: 1 / -1; color: #e11d48; font-size: .78rem; font-weight: 600; }
.cfg-err:empty { display: none; }
.cfg-add { width: 100%; margin-top: .5rem; border: 1.5px dashed #c7d2fe; color: #4f46e5; border-radius: .65rem; padding: .45rem; font-size: .8rem; font-weight: 700; }
.cfg-add:hover { background: #eef2ff; }
.cfg-empty { font-size: .8rem; color: #64748b; padding: .35rem; }
.cfg-blk-stack .cfg-th { display: none; }
.cfg-blk-stack .cfg-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; row-gap: .3rem; }
.cfg-blk-stack .cfg-line > .cfg-name, .cfg-blk-stack .cfg-line > input[name="name"] { grid-column: 1 / 3; grid-row: 1; }
.cfg-blk-stack .cfg-pv-empty { display: none; }
.cfg-blk-stack .cfg-line > .cfg-acts { grid-column: 3; grid-row: 1; }
.cfg-blk-stack .cfg-limits { display: flex; flex-wrap: wrap; gap: .2rem 1rem; grid-column: 1 / -1; grid-row: 2; }
.cfg-blk-stack .cfg-limits .cfg-num, .cfg-blk-stack .cfg-line > .cfg-in-num { grid-row: 2; text-align: left; }
.cfg-blk-stack .cfg-line > .cfg-missing { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
.cfg-blk-stack .cfg-num::before { content: attr(data-label) " "; color: #94a3b8; font-size: .72rem; }
@media (max-width: 640px) {
    .cfg-geo { padding: .75rem; }
    .cfg-blk { padding: .6rem; }
    .cfg-th { display: none; }
    .cfg-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; row-gap: .3rem; }
    .cfg-line > .cfg-name, .cfg-line > input[name="name"] { grid-column: 1 / 3; grid-row: 1; }
    .cfg-pv-empty { display: none; }
    .cfg-line > .cfg-acts { grid-column: 3; grid-row: 1; }
    .cfg-line > .cfg-acts .icon-btn { width: 2rem; height: 2rem; }
    .cfg-grip { display: none; }
    .cfg-ava:not(.cfg-ava-flag) { display: none; }
    .cfg-ava-flag { width: 2rem; height: 2rem; }
    .cfg-limits { display: flex; flex-wrap: wrap; gap: .2rem 1rem; grid-column: 1 / -1; grid-row: 2; }
    .cfg-limits .cfg-num, .cfg-line > .cfg-in-num { grid-row: 2; text-align: left; }
    .cfg-line > .cfg-missing { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
    .cfg-num::before { content: attr(data-label) " "; color: #94a3b8; font-size: .72rem; }
}
.tk-urls { display: flex; flex-direction: column; gap: .4rem; }
.tk-url-row { display: flex; align-items: center; gap: .4rem; }
.tk-url-row .input { flex: 1; min-width: 0; }
.tk-rate-row .tk-unit { flex: 0 0 7.5rem; }
.tt-page { max-width: 48rem; }
.tt-stage { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 1px dashed #a5b4fc; border-radius: .9rem; background: #eef2ff; }
.tt-stage .input { flex: 1; min-width: 0; }
.tt-stage-num { font-weight: 800; font-size: .85rem; color: #4338ca; white-space: nowrap; }
.tk-stage-title { font-weight: 800; font-size: 1rem; color: #0f172a; margin-bottom: .75rem; }
.tk-kv .tk-stage-head { grid-column: 1 / -1; font-weight: 800; color: #0f172a; margin-top: .5rem; }
.tt-list { display: flex; flex-direction: column; gap: .5rem; }
.tt-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: #fff; }
.tt-order { display: flex; flex-direction: column; }
.tt-arrow { display: block; color: #64748b; line-height: 0; }
.tt-arrow:hover { color: #4f46e5; }
.tt-arrow:disabled { opacity: .25; cursor: default; }
.tt-fields { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.tt-field { padding: 1rem; border: 1px solid #e2e8f0; border-radius: .9rem; background: #fff; }
.tt-field-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.tt-field-grid { display: grid; grid-template-columns: 1fr 16rem; gap: .75rem; }
.tt-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .75rem; }
span.tt-checks { margin-top: 0; }
@media (max-width: 640px) { .tt-field-grid { grid-template-columns: 1fr; } }
.tk-rate-period { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tk-add-url { margin-top: .45rem; }
.cfg-geo-line { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.cfg-status { display: inline-flex; align-items: center; border-radius: 999px; padding: .1rem .55rem; font-size: .7rem; font-weight: 800; }
.cfg-status-on { background: #dcfce7; color: #15803d; }
.cfg-status-off { background: #f1f5f9; color: #64748b; }
.cfg-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: #0f172a; cursor: pointer; }
.cfg-check input { width: 1rem; height: 1rem; accent-color: #16a34a; }
.cfg-blk-title { display: inline-flex; align-items: center; gap: .35rem; }
.cfg-arrow { width: 1rem; height: 1rem; flex-shrink: 0; }
.cfg-arrow-in { color: #16a34a; }
.cfg-arrow-out { color: #dc2626; }
.tk-block-title { display: inline-flex; align-items: center; gap: .35rem; }
.tk-arrow { width: 1rem; height: 1rem; flex-shrink: 0; }
.tk-arrow-in { color: #16a34a; }
.tk-arrow-out { color: #dc2626; }
.cfg-flag, .cfg-country { font-family: "Twemoji Country Flags", "Plus Jakarta Sans", system-ui, sans-serif; }
.cfg-ava-flag { background: #fff; border: 1px solid #e2e8f0; }
.cfg-flag { font-size: 1.45rem; line-height: 1; }
.cfg-geo-form .cfg-country { flex: 0 1 15rem; }
.cfg-hist { max-width: 30rem; }
.cfg-hist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.cfg-hist-title { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.cfg-hist-sub { font-size: .82rem; color: #64748b; overflow-wrap: anywhere; }
.cfg-hist-list { display: flex; flex-direction: column; gap: .75rem; }
.cfg-hist-card { border: 1px solid #cbd5e1; border-radius: .9rem; padding: .75rem .9rem; }
.cfg-hist-t { font-weight: 800; font-size: .92rem; margin-bottom: .45rem; }
.cfg-hist-now { color: #16a34a; }
.cfg-hist-past { color: #dc2626; }
.cfg-hist-born { color: #0369a1; }
.cfg-hist-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .5rem; font-size: .85rem; padding: .1rem 0; }
.cfg-hist-row b { font-weight: 700; color: #334155; }
.cfg-hist-row > span { overflow-wrap: anywhere; }
.cfg-hist-old { color: #64748b; }
.cfg-hist-arr { color: #94a3b8; margin: 0 .3rem; }
.cfg-hist-new { font-weight: 800; color: #0f172a; }
@media (max-width: 640px) {
    .cfg-hist-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding: .2rem 0; }
}
.cfg-api-slot { display: contents; }
.cfg-api-btn { position: relative; color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
.cfg-api-btn-empty { color: #a5b4fc; background: #fff; border-style: dashed; }
.cfg-api-count { position: absolute; top: -.45rem; right: -.45rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 999px; background: #4f46e5; color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.cfg-api { max-width: 66rem; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cfg-api-wait { padding: 1.25rem 1.5rem; }
.cfg-api-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.25rem .6rem; flex-shrink: 0; }
.cfg-api-headtext { min-width: 0; }
.cfg-api-title { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.cfg-api-sub { font-size: .82rem; color: #64748b; overflow-wrap: anywhere; }
.cfg-api-sub b { color: #0f172a; }
.cfg-api-kind { border-radius: 999px; padding: .05rem .5rem; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.cfg-api-kind-in { background: #dcfce7; color: #15803d; }
.cfg-api-kind-out { background: #fee2e2; color: #b91c1c; }
.cfg-api-body { padding: 0 1.25rem 1rem; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.cfg-api-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid #eef2f6; }
.cfg-api-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: .3rem .75rem; font-size: .8rem; font-weight: 700; color: #475569; overflow-wrap: anywhere; }
button.cfg-api-chip:hover { border-color: #a5b4fc; }
.cfg-api-chip-on { background: #eef2ff; border-color: #a5b4fc; color: #3730a3; }
.cfg-api-chip-add { border-style: dashed; border-color: #c7d2fe; color: #4f46e5; }
.cfg-api-n { font-size: .68rem; font-weight: 800; background: #e0e7ff; color: #4338ca; border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.cfg-api-chip-on .cfg-api-n { background: #4f46e5; color: #fff; }
.cfg-api-steps { display: flex; align-items: center; overflow-x: auto; padding: .15rem .15rem .75rem; }
.cfg-api-st { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; border: 1px solid #e2e8f0; background: #fff; border-radius: .75rem; padding: .35rem .65rem .35rem .35rem; font-size: .82rem; font-weight: 700; color: #475569; white-space: nowrap; }
.cfg-api-st-on { border-color: #a5b4fc; background: #eef2ff; color: #3730a3; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.cfg-api-no { width: 1.5rem; height: 1.5rem; border-radius: .5rem; background: #eef2f6; color: #475569; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }
.cfg-api-st-on .cfg-api-no { background: #4f46e5; color: #fff; }
.cfg-api-st-t { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.cfg-api-st-line { flex: 0 0 1.4rem; height: 2px; background: #c7d2fe; }
.cfg-api-vb, .cfg-api-verb { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-weight: 600; color: #fff; border-radius: .35rem; }
.cfg-api-vb { font-size: .66rem; padding: .05rem .3rem; }
.cfg-api-verb { font-size: .75rem; padding: .2rem .5rem; flex-shrink: 0; }
.cfg-api-v-post { background: #16a34a; }
.cfg-api-v-get { background: #2563eb; }
.cfg-api-v-put, .cfg-api-v-patch { background: #d97706; }
.cfg-api-v-delete { background: #e11d48; }
.cfg-api-step-h { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .92rem; font-weight: 800; color: #0f172a; margin-bottom: .5rem; overflow-wrap: anywhere; }
.cfg-api-of { font-size: .7rem; font-weight: 800; color: #4338ca; background: #e0e7ff; border-radius: .45rem; padding: .1rem .45rem; white-space: nowrap; }
.cfg-api-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: .65rem; padding: .45rem .65rem; font-size: .8rem; margin-bottom: .5rem; white-space: pre-line; overflow-wrap: anywhere; }
.cfg-api-ep { display: flex; align-items: center; gap: .5rem; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: .75rem; padding: .35rem .35rem .35rem .5rem; }
.cfg-api-url { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .8rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-api-copy-url { width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid #e2e8f0; background: #fff; color: #64748b; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cfg-api-copy-url:hover { color: #0f172a; border-color: #cbd5e1; }
.cfg-api-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; margin-top: .75rem; }
.cfg-api-code { background: #0f172a; border-radius: .75rem; min-width: 0; }
.cfg-api-code-h { display: flex; align-items: center; justify-content: space-between; min-height: 2.4rem; padding: .45rem .6rem 0 .9rem; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.cfg-api-copy { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: #cbd5e1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: .5rem; padding: .3rem .6rem; }
.cfg-api-copy:hover { background: rgba(255, 255, 255, .12); }
.cfg-api-copy.cfg-api-done { color: #86efac; border-color: rgba(134, 239, 172, .4); }
.cfg-api-copy-url.cfg-api-done { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.cfg-api-copy.cfg-api-fail, .cfg-api-copy-url.cfg-api-fail { color: #fda4af; }
.cfg-api-pre { margin: 0; padding: .6rem .9rem .9rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .78rem; line-height: 1.6; color: #e2e8f0; overflow: auto; max-height: 24rem; white-space: pre; tab-size: 2; }
.cfg-api-nobody { padding: 1rem .9rem 1.2rem; color: #64748b; font-size: .8rem; font-style: italic; }
.api-k { color: #93c5fd; }
.api-s { color: #86efac; }
.api-n { color: #fdba74; }
.api-b { color: #c4b5fd; }
.cfg-api-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .75rem 1.25rem; border-top: 1px solid #eef2f6; background: #f8fafc; flex-shrink: 0; }
.cfg-api-meta { font-size: .75rem; color: #94a3b8; margin-right: auto; }
.cfg-api-foot .btn-secondary, .cfg-api-foot .btn-primary, .cfg-api-foot .btn-danger { padding: .5rem .9rem; font-size: .82rem; }
.cfg-api-foot .cfg-api-err { flex-basis: 100%; order: -1; }
.cfg-api-gap { margin-right: auto; }
.cfg-api-lbl { display: flex; align-items: center; gap: .5rem; margin: .75rem .1rem .35rem; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.cfg-api-form > .cfg-api-lbl:first-of-type { margin-top: 0; }
.cfg-api-opt { text-transform: none; letter-spacing: 0; font-weight: 600; color: #94a3b8; }
.cfg-api-form .input { padding: .5rem .65rem; font-size: .85rem; min-width: 0; }
.cfg-api-mono, .cfg-api-area, .cfg-api-verb-sel { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.cfg-api-ep-edit { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; }
.cfg-api-verb-sel { font-weight: 600; }
.cfg-api-edit-step { border: 1px solid #c7d2fe; background: #fafbff; border-radius: .9rem; padding: .6rem .8rem .8rem; }
.cfg-api-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.cfg-api-tools-t { font-size: .82rem; font-weight: 800; color: #3730a3; margin-right: auto; }
.cfg-api-tool { border: 1px solid #e2e8f0; background: #fff; border-radius: .55rem; padding: .25rem .6rem; font-size: .75rem; font-weight: 700; color: #334155; }
.cfg-api-tool:hover { border-color: #cbd5e1; }
.cfg-api-tool:disabled { opacity: .45; cursor: default; }
.cfg-api-tool-del { color: #e11d48; border-color: #fecdd3; }
.cfg-api-st-add { border-style: dashed; border-color: #c7d2fe; color: #4f46e5; padding: .35rem .7rem; }
.cfg-api-st-bad { border-color: #fda4af; box-shadow: 0 0 0 3px rgba(225, 29, 72, .12); }
.cfg-api-st-bad .cfg-api-no { background: #e11d48; color: #fff; }
.cfg-api-field { min-width: 0; }
.cfg-api-field .cfg-api-lbl { margin-top: 0; }
.cfg-api-json { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .72rem; font-weight: 700; }
.cfg-api-json-ok { color: #15803d; }
.cfg-api-json-empty { color: #94a3b8; }
.cfg-api-json-bad { color: #e11d48; }
.cfg-api-fmt { text-transform: none; letter-spacing: 0; font-size: .72rem; font-weight: 700; color: #4f46e5; border: 1px solid #c7d2fe; background: #fff; border-radius: .45rem; padding: .15rem .5rem; }
.cfg-api-fmt:hover { background: #eef2ff; }
.cfg-api-area { width: 100%; min-height: 13rem; resize: vertical; font-size: .78rem; line-height: 1.55; white-space: pre; tab-size: 2; }
@media (max-width: 860px) {
    .cfg-api-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .cfg-api-head { padding: .9rem 1rem .5rem; }
    .cfg-api-body { padding: 0 1rem .9rem; }
    .cfg-api-foot { padding: .65rem 1rem; }
}
.bc-card { max-width: 55rem; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bc-stripe { height: 6px; flex-shrink: 0; }
.bc-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bc-body { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; flex: 1; min-height: 0; overflow-y: auto; }
.bc-main { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.bc-side { background: #f8fafc; border-left: 1px solid #eef2f7; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.bc-head { display: flex; align-items: flex-start; gap: .6rem; }
.bc-title { width: 100%; font-size: 1.3rem; font-weight: 800; color: #0f172a; border: 1px solid transparent; border-radius: .6rem; padding: .25rem .5rem; margin-left: -.5rem; background: transparent; }
.bc-title:hover, .bc-title:focus { border-color: #e2e8f0; background: #fff; outline: none; }
.bc-title[readonly]:hover { border-color: transparent; }
.bc-title::placeholder { color: #94a3b8; }
.bc-title.bc-bad { border-color: #e11d48; background: #fff; }
.bc-kind { flex-wrap: wrap; align-self: flex-start; }
.bc-kind-btn { cursor: pointer; }
.bc-kind-btn:has(input:focus-visible) { outline: 2px solid #0369a1; outline-offset: 1px; }
.bc-esc { display: flex; flex-direction: column; gap: 1rem; }
.bc-segs { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.bc-req { font-style: normal; color: #4f46e5; }
.bc-facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; font-size: .9rem; }
.bc-facts dt { color: #64748b; font-weight: 700; }
.bc-facts dd { overflow-wrap: anywhere; }
.bc-meta { font-size: .78rem; color: #64748b; margin-top: .1rem; overflow-wrap: anywhere; }
.bc-author { display: inline; }
.bc-h { font-size: .72rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.bc-main .tk-editor-area { min-height: 7rem; max-height: 300px; }
.bc-doc { font-size: .92rem; }
.bc-progress { color: #10b981; text-transform: none; letter-spacing: 0; }
.bc-bar { height: 6px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin-bottom: .5rem; }
.bc-bar i { display: block; height: 100%; width: 0; background: #10b981; border-radius: 99px; transition: width .2s ease; }
.bc-checks { display: flex; flex-direction: column; }
.bc-check { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: .6rem; font-size: .9rem; cursor: pointer; }
.bc-check:hover { background: #f1f5f9; }
.bc-check input { width: 1.05rem; height: 1.05rem; accent-color: #10b981; flex-shrink: 0; }
.bc-check span { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #1e293b; }
.bc-check-done span { color: #94a3b8; text-decoration: line-through; }
.bc-check button { color: #cbd5e1; font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.bc-check button:hover { color: #f43f5e; }
.bc-add-item { width: 100%; margin-top: .4rem; border: 1.5px dashed #cbd5e1; border-radius: .6rem; padding: .5rem .6rem; font-size: .9rem; background: #fff; }
.bc-add-item:focus { outline: none; border-style: solid; border-color: #0369a1; }
.bc-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bc-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; padding: .15rem .55rem .15rem .15rem; font-size: .8rem; font-weight: 600; color: #334155; }
.bc-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-chip-x { color: #94a3b8; font-size: 1rem; line-height: 1; }
.bc-chip-x:hover { color: #e11d48; }
.bc-ava { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #0284c7; color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bc-none { font-size: .8rem; color: #94a3b8; }
.bc-plus { margin-top: .45rem; border-radius: 999px; border: 1.5px dashed #c7d2fe; color: #4f46e5; padding: .2rem .7rem; font-size: .8rem; font-weight: 700; background: #fff; }
.bc-plus:hover { background: #eef2ff; }
.bc-picker { margin-top: .5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; box-shadow: 0 12px 30px -14px rgba(15, 23, 42, .35); padding: .5rem; }
.bc-picker .input { padding: .4rem .6rem; font-size: .85rem; }
.bc-people { max-height: 15rem; overflow-y: auto; margin-top: .35rem; }
.bc-grp { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin: .5rem .35rem .2rem; }
.bc-person { display: flex; align-items: center; gap: .5rem; padding: .3rem .35rem; border-radius: .55rem; font-size: .85rem; cursor: pointer; }
.bc-person:hover { background: #f1f5f9; }
.bc-person input { width: 1rem; height: 1rem; accent-color: #0284c7; flex-shrink: 0; }
.bc-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-due { display: inline-flex; align-items: center; gap: .4rem; border-radius: .6rem; padding: .35rem .65rem; font-size: .82rem; font-weight: 700; background: #fff; border: 1px solid #e2e8f0; color: #334155; }
.bc-due:disabled { cursor: default; }
.bc-due-none { color: #94a3b8; font-weight: 600; }
.bc-due-today { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.bc-due-over { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.bc-due-wrap { position: relative; display: inline-block; }
.bc-date { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.bc-quick { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.bc-q { font-size: .72rem; font-weight: 700; color: #475569; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: .15rem .55rem; }
.bc-q:hover { background: #f1f5f9; }
.bc-dots { display: flex; flex-wrap: nowrap; gap: .35rem; }
.bc-dots .sw { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.bc-toggle { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem; border-radius: .75rem; background: #fff; border: 1px solid #e2e8f0; cursor: pointer; }
.bc-toggle b { display: block; font-size: .85rem; color: #0f172a; }
.bc-toggle small { display: block; font-size: .72rem; color: #64748b; }
.bc-switch { appearance: none; width: 2.2rem; height: 1.25rem; border-radius: 99px; background: #cbd5e1; position: relative; flex-shrink: 0; cursor: pointer; transition: background-color .15s ease; margin-top: .1rem; }
.bc-switch::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.bc-switch:checked { background: #4f46e5; }
.bc-switch:checked::after { transform: translateX(.95rem); }
.bc-actions { display: flex; flex-direction: column; gap: .35rem; margin-top: auto; }
.bc-act { display: flex; align-items: center; gap: .45rem; border-radius: .65rem; border: 1px solid #e2e8f0; background: #fff; padding: .45rem .7rem; font-size: .82rem; font-weight: 700; color: #334155; }
.bc-act:hover { background: #f1f5f9; }
.bc-act-danger { color: #e11d48; border-color: #fecdd3; }
.bc-act-danger:hover { background: #fff1f2; }
.bc-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1.25rem; border-top: 1px solid #eef2f7; background: #fff; flex-shrink: 0; }
@media (max-width: 760px) {
    .bc-body { grid-template-columns: minmax(0, 1fr); }
    .bc-side { border-left: 0; border-top: 1px solid #eef2f7; }
    .bc-main { padding: 1rem; }
}
.cfg-edit > .cfg-acts { grid-column: -2 / -1; }
.cfg-pv { white-space: normal; overflow-wrap: anywhere; }
.cfg-params-edit { grid-column: 1 / -1; padding: .2rem .1rem .1rem; }
.cfg-params-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin: .3rem 0 .35rem; }
.cfg-param-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12rem) auto; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.cfg-param-add { font-size: .78rem; font-weight: 700; color: #4f46e5; border: 1.5px dashed #c7d2fe; border-radius: .55rem; padding: .25rem .65rem; background: #fff; }
.cfg-param-add:hover { background: #eef2ff; }
.cfg-note-badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; font-size: .74rem; font-weight: 800; padding: .25rem .65rem; }
.cfg-note-badge:hover { background: #fde68a; }
.cfg-note-add { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; color: #b45309; border: 1.5px dashed #fcd34d; background: #fffdf5; font-size: .74rem; font-weight: 700; padding: .2rem .6rem; }
.cfg-note-add:hover { background: #fef3c7; }
.cfg-geo-note { margin-top: .8rem; max-width: 40rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; box-shadow: 0 16px 36px -18px rgba(15, 23, 42, .35); padding: .75rem .9rem; }
.cfg-note-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.cfg-note-title { flex: 1; font-size: .85rem; font-weight: 800; color: #0f172a; }
.cfg-note-edit { font-size: .74rem; font-weight: 700; color: #92400e; border: 1px solid #fcd34d; background: #fff; border-radius: 999px; padding: .2rem .65rem; }
.cfg-note-edit:hover { background: #fef3c7; }
.cfg-note-body { font-size: .88rem; color: #334155; }
.cfg-note-meta { font-size: .72rem; color: #94a3b8; margin-top: .5rem; }
.cfg-note-area { width: 100%; min-height: 7rem; resize: vertical; line-height: 1.5; }
.cfg-note-acts { display: flex; gap: .5rem; margin-top: .5rem; }
@media (max-width: 640px) {
    .cfg-param-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .cfg-note-badge > span, .cfg-note-add > span { display: none; }
    .cfg-note-badge, .cfg-note-add { padding: .45rem; flex-shrink: 0; margin-left: auto; }
    .cfg-geo-head { flex-wrap: wrap; row-gap: .5rem; }
    .cfg-geo-head > .min-w-0 { flex-basis: calc(100% - 3rem); }
}
.sched-ev-row th { padding: 0; background: transparent; height: 2.1rem; vertical-align: bottom; text-align: center; }
.sched-ev-btn { position: relative; width: 1.95rem; height: 1.95rem; border-radius: 999px; border: 1px solid #fde68a; background: #fffbeb; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sched-ev-btn:hover { background: #fef3c7; }
.sched-ev-btn:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.sched-ev-emo, .dev-emo { display: inline-block; line-height: 1; transform-origin: 50% 15%; animation: devSway 2.8s ease-in-out infinite; }
.sched-ev-emo { font-size: 1.05rem; }
.sched-ev-past { border-color: #e2e8f0; background: #f8fafc; filter: grayscale(1); opacity: .55; }
.sched-ev-past .sched-ev-emo { animation: none; }
.sched-ev-count { position: absolute; top: -.4rem; right: -.4rem; min-width: .95rem; height: .95rem; padding: 0 .25rem; border-radius: 999px; background: #e11d48; color: #fff; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
@keyframes devSway { 0%, 66%, 100% { transform: rotate(0); } 70% { transform: rotate(16deg); } 74% { transform: rotate(-13deg); } 78% { transform: rotate(10deg); } 82% { transform: rotate(-7deg); } 86% { transform: rotate(4deg); } 90% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .sched-ev-emo, .dev-emo { animation: none; } }
.dev-pop { position: fixed; z-index: 80; width: 19rem; max-width: calc(100vw - 1rem); background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .4); padding: .7rem .85rem; }
.dev-pop::before { content: ""; position: absolute; top: -.4rem; left: var(--dev-arrow, 1.65rem); width: .7rem; height: .7rem; background: #fff; border-left: 1px solid #e2e8f0; border-top: 1px solid #e2e8f0; transform: rotate(45deg); }
.dev-pop-head { font-size: .72rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.dev-row { display: flex; align-items: flex-start; gap: .5rem; padding: .45rem 0; border-top: 1px solid #f1f5f9; }
.dev-row:first-of-type { border-top: 0; }
.dev-pop-head + .dev-row { border-top: 0; }
.dev-row-emo { font-size: 1.15rem; line-height: 1.2; flex-shrink: 0; }
.dev-row-time { font-weight: 800; color: #b45309; font-size: .82rem; white-space: nowrap; min-width: 3.4rem; padding-top: .1rem; }
.dev-row-text { min-width: 0; flex: 1; }
.dev-row-title { font-weight: 700; font-size: .88rem; color: #0f172a; overflow-wrap: anywhere; }
.dev-row-note { font-size: .78rem; color: #64748b; white-space: pre-line; overflow-wrap: anywhere; }
.dev-row-by { font-size: .7rem; color: #94a3b8; margin-top: .1rem; }
.dev-row-acts { display: flex; gap: .25rem; flex-shrink: 0; }
.dev-mini { width: 1.7rem; height: 1.7rem; border-radius: .5rem; border: 1px solid #fde68a; background: #fff; color: #92400e; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.dev-mini:hover { background: #fef3c7; }
.dev-mini-danger { color: #e11d48; border-color: #fecdd3; }
.dev-mini-danger:hover { background: #fff1f2; }
.dev-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: .9rem; padding: .6rem .75rem; margin-bottom: .9rem; }
.dev-box .dev-row { border-top-color: #fde68a; }
.dev-head { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: .04em; }
.dev-head span { flex: 1; }
.dev-add { font-size: .75rem; font-weight: 700; color: #92400e; border: 1px solid #fcd34d; background: #fff; border-radius: 999px; padding: .2rem .65rem; text-transform: none; letter-spacing: 0; }
.dev-add:hover { background: #fef3c7; }
.dev-empty { font-size: .8rem; color: #a16207; padding: .3rem 0 .1rem; }
.dev-form { background: #fff; border: 1px solid #fde68a; border-radius: .75rem; padding: .6rem; margin-top: .5rem; display: flex; flex-direction: column; gap: .5rem; }
#dayModal .modal-card { max-width: 30rem; }
.dev-form-row { display: grid; grid-template-columns: 2.6rem 7.5rem minmax(0, 1fr); gap: .45rem; }
.dev-emo-btn { height: 2.45rem; border: 1.5px solid #fbbf24; border-radius: .65rem; background: #fffbeb; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.dev-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .15rem; max-height: 11rem; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: .7rem; padding: .35rem; box-shadow: 0 12px 28px -16px rgba(15, 23, 42, .35); }
.dev-pick { height: 2.1rem; border-radius: .5rem; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.dev-pick:hover { background: #f1f5f9; }
.dev-pick.sel { background: #fef3c7; box-shadow: inset 0 0 0 1.5px #f59e0b; }
.dev-form-acts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dev-hint { font-size: .72rem; color: #94a3b8; }
@media (max-width: 640px) {
    .dev-form-row { grid-template-columns: 2.6rem minmax(0, 1fr); }
    .dev-form-row input[name="title"] { grid-column: 1 / -1; }
    .dev-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; color: #64748b; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.theme-toggle:hover { background: #f1f5f9; color: #0369a1; }
.theme-toggle:active { transform: scale(.9); }
.theme-icon { width: 1.25rem; height: 1.25rem; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.theme-core { transition: r .4s ease; }
.theme-mask { transition: cx .4s ease, cy .4s ease; }
.theme-rays { transform-origin: center; transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
html[data-theme="dark"] .theme-icon { transform: rotate(-30deg); }
html[data-theme="dark"] .theme-core { r: 8px; }
html[data-theme="dark"] .theme-mask { cx: 17px; cy: 7px; }
html[data-theme="dark"] .theme-rays { opacity: 0; transform: rotate(60deg) scale(.4); }
.theme-moving::view-transition-old(root), .theme-moving::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-moving::view-transition-old(root) { z-index: 1; }
.theme-moving::view-transition-new(root) { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
    .theme-icon, .theme-core, .theme-mask, .theme-rays { transition: none; }
}

.sh-panel { position: fixed; top: var(--sh-top, 0); right: 0; bottom: 0; width: min(360px, 100vw); background: #fff; border-left: 1px solid #e2e8f0; box-shadow: -12px 0 32px -12px rgba(15, 23, 42, .18); z-index: 30; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; }
.sh-panel.open { transform: none; }
.sh-panel-head { padding: 1rem 1.1rem .8rem; border-bottom: 1px solid #eef2f7; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.sh-panel-title { font-weight: 800; color: #0f172a; }
.sh-sub { font-size: .78rem; color: #64748b; }
.sh-list { overflow-y: auto; padding: .6rem .7rem 1rem; flex: 1; }
.sh-day { font-size: .7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin: .7rem .4rem .3rem; }
.sh-item { border: 1px solid transparent; border-radius: .7rem; margin-bottom: .15rem; }
.sh-item.on { background: #f0f9ff; border-color: #bae6fd; }
.sh-head { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: .7rem; }
.sh-head:hover { background: #f8fafc; }
.sh-item.on .sh-head:hover { background: transparent; }
.sh-line { display: flex; gap: .5rem; align-items: baseline; }
.sh-time { font-size: .78rem; font-weight: 700; color: #64748b; flex-shrink: 0; }
.sh-title { font-size: .86rem; font-weight: 700; color: #0f172a; }
.sh-who { display: block; font-size: .78rem; color: #64748b; margin-top: .1rem; padding-left: 2.6rem; }
.sh-rows { margin: 0 .7rem .6rem 3.3rem; display: grid; gap: .15rem; }
.sh-row { font-size: .78rem; color: #334155; padding: .2rem .4rem; border-radius: .4rem; }
.sh-row:hover { background: #e0f2fe; }
.sh-fields { color: #94a3b8; }
.sh-empty { font-size: .85rem; color: #64748b; text-align: center; padding: 2rem 1rem; }
.sh-more { display: block; margin: .6rem auto 0; }
.sh-banner { margin: 0 0 .8rem; padding: .7rem 1rem; border-radius: .9rem; background: #f0f9ff; border: 1px solid #bae6fd; font-size: .88rem; color: #0c4a6e; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.sh-banner.hidden { display: none; }
.sh-legend { margin-top: .3rem; display: flex; flex-wrap: wrap; gap: .8rem; font-size: .78rem; color: #475569; }
.sh-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.sh-dot { width: .7rem; height: .7rem; border-radius: .2rem; display: inline-block; }
.sh-dot-add { background: #16a34a; }
.sh-dot-del { background: #dc2626; }
.sh-dot-chg { background: #d97706; }
.cell.sh-add { outline: 2px solid #16a34a; outline-offset: -2px; }
.cell.sh-del { outline: 2px dashed #dc2626; outline-offset: -2px; background: #fff1f2 !important; }
.cell.sh-chg { outline: 2px solid #d97706; outline-offset: -2px; }
.sh-was { display: block; font-size: .62rem; font-weight: 800; line-height: 1.1; margin-top: .15rem; }
.cell.sh-add .sh-was { color: #15803d; }
.cell.sh-del .sh-was { color: #b91c1c; text-decoration: line-through; }
.cell.sh-chg .sh-was { color: #b45309; }
main.sh-open { margin-right: 360px; transition: margin-right .2s ease; }
main.sh-open #schedGrid, main.sh-open #specGrid { overflow: auto; max-height: calc(100vh - 6rem); }
main.sh-open .sched-th { top: 0; }
main.sh-open #schedGrid table, main.sh-open #specGrid table { min-width: var(--sh-min); }
html.sx-open main.sh-open #schedGrid table, html.sx-open main.sh-open #specGrid table { min-width: calc(var(--sh-min) + var(--sh-more)); }
main.sh-open .sched-th-first { z-index: 22; background: #fff; }
@media (max-width: 640px) { main.sh-open { margin-right: 0; } }
.rec-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem; margin-bottom: 1rem; }
.rec-search { position: relative; flex: 1 1 18rem; min-width: 0; }
.rec-search svg { position: absolute; left: .8rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.rec-search .input { padding-left: 2.3rem; }
.rec-status { width: auto; min-width: 10rem; }
.rec-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.rec-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: .7rem; font-weight: 700; font-size: .9rem; color: #64748b; border: 1px solid #e2e8f0; background: #fff; }
.rec-tab:hover { color: #0f172a; border-color: #cbd5e1; }
.rec-tab-on { color: #075985; background: #e0f2fe; border-color: #bae6fd; }
.rec-tab .cnt { min-width: 1.4rem; padding: 0 .4rem; border-radius: 1rem; font-size: .72rem; text-align: center; background: #f1f5f9; color: #475569; font-variant-numeric: tabular-nums; }
.rec-tab-on .cnt { background: #fff; color: #075985; }
.rec-found { font-size: .85rem; color: #64748b; }
.rec-reset { font-size: .85rem; font-weight: 700; color: #0369a1; }
.rec-list { display: grid; gap: .7rem; }
.rec-item { padding: 1rem 1.1rem; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.rec-item:hover, .rec-item:focus-visible { border-color: #bae6fd; box-shadow: var(--shadow-pop); outline: none; }
.rec-kind-inc { border-left: 3px solid #f59e0b; }
.rec-kind-inc.rec-pr-crit { border-left-color: #ef4444; }
.rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.rec-code { font-size: .74rem; font-weight: 700; color: #94a3b8; font-variant-numeric: tabular-nums; }
.rec-title { font-size: .98rem; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.rec-desc { margin: .35rem 0 .6rem; font-size: .86rem; color: #334155; overflow-wrap: anywhere; }
.rec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .78rem; color: #64748b; }
.rec-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.rec-chip { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 1rem; font-size: .72rem; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.rec-chip-dept { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.rec-pri-crit { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.rec-pri-high { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.rec-pri-mid { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.rec-st-new { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.rec-st-waiting { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.rec-st-done { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.rec-hit { margin-top: .6rem; padding: .45rem .6rem; border-radius: .55rem; font-size: .8rem; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; }
.rec-item mark, .rec-hit mark { background: #fde68a; color: inherit; border-radius: .2rem; padding: 0 .1rem; }
.rec-overlay { position: fixed; inset: 0; z-index: 76; background: rgba(15, 23, 42, .4); display: none; }
.rec-overlay.rec-open { display: block; }
.rec-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 77; width: min(34rem, 100vw); background: #fff; border-left: 1px solid #e2e8f0; box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; }
.rec-drawer.rec-open { transform: none; }
.rec-card-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; background: #fff; border-bottom: 1px solid #e2e8f0; }
.rec-card-title { margin-top: .15rem; font-size: 1.1rem; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.rec-card-body { padding: 1rem 1.25rem 1.5rem; }
.rec-card-body .rec-chips { justify-content: flex-start; }
.rec-kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .45rem .75rem; margin: 1rem 0; font-size: .86rem; }
.rec-kv dt { color: #64748b; }
.rec-kv dd { margin: 0; color: #0f172a; font-weight: 600; overflow-wrap: anywhere; }
.rec-label { margin: 1.1rem 0 .45rem; font-size: .78rem; font-weight: 800; color: #0f172a; }
.rec-body { font-size: .9rem; color: #334155; overflow-wrap: anywhere; }
.rec-history { margin: 0; padding: 0; list-style: none; border-left: 2px solid #e2e8f0; }
.rec-history li { position: relative; padding: 0 0 .7rem 1rem; font-size: .84rem; }
.rec-history li::before { content: ""; position: absolute; left: -.38rem; top: .35rem; width: .6rem; height: .6rem; border-radius: 50%; background: #10b981; }
.rec-history b { display: block; color: #0f172a; font-weight: 700; overflow-wrap: anywhere; }
.rec-history span { color: #64748b; font-size: .76rem; }
.rec-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin: 1rem 0 .2rem; }
.rec-pick { display: flex; flex-direction: column; gap: .25rem; font-size: .74rem; font-weight: 700; color: #64748b; }
.rec-pick .select { min-width: 10rem; }
.rec-form { display: grid; gap: .9rem; }
.rec-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rec-flabel { font-size: .8rem; font-weight: 700; color: #0f172a; }
.rec-req { color: #dc2626; }
.rec-ta { min-height: 5rem; resize: vertical; }
.rec-toggle { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: #334155; }
.rec-kind-fields { display: grid; gap: .9rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.rec-err { min-height: 0; font-size: .78rem; font-weight: 600; color: #dc2626; }
.rec-err:empty { display: none; }
.rec-form-foot { display: flex; gap: .6rem; padding-top: .3rem; }
.rec-files { display: flex; flex-wrap: wrap; gap: .45rem; }
.rec-files:empty { display: none; }
.rec-file { position: relative; display: inline-flex; align-items: center; max-width: 100%; border: 1px solid #e2e8f0; border-radius: .6rem; background: #f8fafc; }
.rec-file a { display: flex; flex-direction: column; padding: .45rem 1.9rem .45rem .7rem; font-size: .8rem; font-weight: 700; color: #0f172a; overflow-wrap: anywhere; text-decoration: none; }
.rec-file a small { font-size: .7rem; font-weight: 500; color: #64748b; }
.rec-files .rec-file:not(:has(.rec-file-drop)) a { padding-right: .7rem; }
.rec-file-drop { position: absolute; top: .3rem; right: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff; font-size: .75rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.rec-file-add { align-self: flex-start; padding: .35rem .7rem; border: 1px dashed #cbd5e1; border-radius: .55rem; font-size: .8rem; font-weight: 700; color: #475569; background: none; }
.rec-file-add:hover { border-color: #0369a1; color: #0369a1; }
.rf-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.rf-card { padding: 1rem 1.1rem; }
.rf-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.rf-head h2 { font-size: 1rem; font-weight: 800; color: #0f172a; }
.rf-list { display: grid; gap: .45rem; }
.rf-row { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; }
.rf-row.rf-off { opacity: .55; }
.rf-row.rf-dragging { outline: 2px dashed #0369a1; outline-offset: -2px; }
.rf-grip { color: #94a3b8; cursor: grab; letter-spacing: -.15em; user-select: none; }
.rf-name { flex: 1; min-width: 0; }
.rf-name b { display: block; font-size: .88rem; color: #0f172a; }
.rf-name span { display: block; font-size: .74rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-small { padding: .35rem .7rem; font-size: .78rem; }
.rf-switch { position: relative; flex: none; width: 2.2rem; height: 1.25rem; border-radius: 1rem; background: #cbd5e1; transition: background-color .2s ease; }
.rf-switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: .85rem; height: .85rem; border-radius: 50%; background: #fff; transition: left .15s ease; }
.rf-switch.rf-on { background: #0369a1; }
.rf-switch.rf-on::after { left: 1.15rem; }
.rf-drop { flex: none; width: 1.7rem; height: 1.7rem; border-radius: .5rem; color: #94a3b8; font-size: 1rem; }
.rf-drop:hover { background: #fef2f2; color: #dc2626; }
.rf-form { display: grid; gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.rf-form h3 { font-size: .92rem; font-weight: 800; color: #0f172a; }
.rf-preview { display: grid; gap: .9rem; margin: 0; padding: 1rem; border: 1px dashed #cbd5e1; border-radius: .9rem; background: #f8fafc; min-width: 0; }
.rf-fake-editor { min-height: 4.5rem; color: #94a3b8; font-size: .85rem; }
@media (max-width: 900px) { .rf-split { grid-template-columns: 1fr; } }
.ms-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.ms-eyebrow { font-size: .85rem; font-weight: 600; color: #64748b; margin-bottom: .2rem; }
.ms-eyebrow b { color: #0369a1; font-weight: 700; }
.ms-action { display: flex; align-items: center; gap: .75rem; }
.ms-action .btn-primary svg { width: 20px; height: 20px; }
.ms-passed { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.1rem; border-radius: .9rem; background: #ecfdf5; color: #047857; font-weight: 700; font-size: .92rem; }
.ms-passed svg { width: 18px; height: 18px; }
.ms-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.ms-step { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: .9rem; border: 1px solid #e2e8f0; background: #fff; }
.ms-step .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; background: #f1f5f9; color: #64748b; }
.ms-step .n svg { width: 16px; height: 16px; }
.ms-step b { display: block; font-size: .88rem; color: #0f172a; }
.ms-step .s { display: block; font-size: .75rem; color: #64748b; }
.ms-step.done .n { background: #d1fae5; color: #047857; }
.ms-step.now { border-color: #7dd3fc; background: #f0f9ff; box-shadow: 0 0 0 3px #e0f2fe; }
.ms-step.now .n { background: #0369a1; color: #fff; }
.ms-step.off { opacity: .55; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.ms-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.ms-card { padding: 0; overflow: hidden; }
.ms-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; }
.ms-card-head h2 { font-size: 1rem; font-weight: 800; color: #0f172a; }
.ms-card-body { padding: 1rem 1.25rem; }
.ms-card button svg { width: 16px; height: 16px; flex: none; }
.ms-sub { font-size: .8rem; color: #64748b; }
.ms-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #f1f5f9; color: #475569; white-space: nowrap; }
.ms-chip svg { width: 13px; height: 13px; }
.ms-chip.red { background: #ffe4e6; color: #be123c; }
.ms-chip.amber { background: #fef3c7; color: #b45309; }
.ms-chip.blue { background: #e0f2fe; color: #075985; }
.ms-chip.green { background: #d1fae5; color: #047857; }
.ms-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-top: 1px solid #f1f5f9; }
.ms-card-head + .ms-row { border-top: 0; }
.ms-row .mark { width: 4px; align-self: stretch; border-radius: 4px; background: #cbd5e1; flex: none; }
.ms-row .mark.red { background: #e11d48; }
.ms-row .mark.amber { background: #f59e0b; }
.ms-row .mark.blue { background: #0284c7; }
.ms-row .t { flex: 1; min-width: 0; }
.ms-row .t b { display: block; font-size: .88rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-row .t a:hover b { color: #0369a1; }
.ms-row .t > span { font-size: .75rem; color: #64748b; }
.ms-row.ok { background: #f0fdf4; }
.ms-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: #64748b; }
.ms-foot { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: .8rem 1.25rem; border-top: 1px solid #f1f5f9; background: #f8fafc; }
.ms-sm { padding: .4rem .8rem; font-size: .8rem; border-radius: .6rem; }
.ms-ok { background: #047857; color: #fff; box-shadow: none; }
.ms-ok:hover { background: #065f46; }
.ms-done { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: #047857; }
.ms-done svg { width: 16px; height: 16px; }
.ms-quote { font-size: .9rem; line-height: 1.55; color: #334155; white-space: pre-line; margin-bottom: .6rem; }
.ms-faces { display: flex; }
.ms-face { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #fff; background: #10b981; border: 2px solid #fff; margin-left: -6px; overflow: hidden; }
.ms-face:first-child { margin-left: 0; }
.ms-presence { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: #64748b; }
.ms-typing { color: #0369a1; font-weight: 600; }
.ms-typing i { display: inline-block; width: 14px; overflow: hidden; vertical-align: bottom; white-space: nowrap; animation: ms-dots 1.2s steps(4) infinite; }
.ms-typing i::after { content: "..."; }
@keyframes ms-dots { 0% { width: 0; } 100% { width: 14px; } }
.ms-textarea { width: 100%; min-height: 150px; resize: vertical; border: 1px solid #e2e8f0; border-radius: .8rem; padding: .8rem .9rem; font: inherit; font-size: .9rem; line-height: 1.55; color: #0f172a; background: #fff; }
.ms-textarea:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px #e0f2fe; }
.ms-hero { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1rem; background: #ecfdf5; border: 1px solid #a7f3d0; }
.ms-hero .ico { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #047857; display: flex; align-items: center; justify-content: center; flex: none; }
.ms-hero .ico svg { width: 24px; height: 24px; }
.ms-hero h2 { font-size: 1.05rem; font-weight: 800; color: #065f46; }
.ms-hero .ms-sub { color: #047857; }
.ms-person { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; }
.ms-person.shift-lead, .ms-person.shift-spec { border: 1px solid; border-radius: .7rem; padding: .45rem .55rem; margin: .2rem 0; }
.ms-person .av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #fff; background: #10b981; flex: none; overflow: hidden; }
.ms-person .av.me { background: #0369a1; }
.ms-person .av.s { background: #e2e8f0; color: #475569; }
.ms-person .nm { flex: 1; min-width: 0; }
.ms-person .nm b { display: block; font-size: .86rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-person .nm > span { font-size: .74rem; color: #64748b; }
.ms-you { color: #0369a1; font-weight: 600; }
.ms-label { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin: .9rem 0 .2rem; }
.ms-col > .ms-label { margin: 0 .2rem -.5rem; }
.ms-today { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ms-today .tm { font-size: 1.6rem; font-weight: 800; color: #0369a1; letter-spacing: -.02em; }
.ms-today .tm.ms-muted { color: #94a3b8; }
.ms-kpis { display: flex; gap: 1rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #f1f5f9; }
.ms-kpis div { flex: 1; }
.ms-kpis b { display: block; font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.ms-kpis span { font-size: .72rem; color: #64748b; }
.ms-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ms-empty { padding: 1rem 1.25rem; font-size: .85rem; color: #64748b; }
.ms-link { font-size: .83rem; font-weight: 700; color: #0369a1; }
.ms-link:hover { color: #075985; }
.ms-off { text-align: center; padding: 2.2rem 1.5rem; }
.ms-flash { animation: ms-flash 1.2s ease; }
@keyframes ms-flash { 0%, 100% { box-shadow: var(--shadow-soft); } 40% { box-shadow: 0 0 0 6px #bae6fd; } }
.ms-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #0f172a; color: #fff; padding: .7rem 1.1rem; border-radius: .8rem; font-weight: 600; font-size: .88rem; transition: .25s; z-index: 90; pointer-events: none; }
.ms-toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 1100px) { .ms-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ms-split { grid-template-columns: 1fr; } .ms-steps { grid-template-columns: 1fr; } }
.lo-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin-bottom:1.25rem}
.lo-kpi{padding:.9rem 1.1rem}
.lo-kpi span{display:block;font-size:.78rem;color:#64748b}
.lo-kpi b{display:block;font-size:1.55rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;line-height:1.2;margin-top:.15rem}
.lo-kpi b small{font-size:.85rem;font-weight:600;color:#64748b;letter-spacing:0}
.lo-kpi b.red{color:#be123c}
.lo-attn{margin-bottom:1.25rem}
.lo-dept{font-size:.72rem;font-weight:700;color:#475569;background:#f1f5f9;border-radius:.4rem;padding:.1rem .45rem;white-space:nowrap}
.lo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,30rem),1fr));gap:1.25rem}
.lo-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.lo-card .ms-card-head{align-items:flex-start}
.lo-card .ms-card-head h2{font-size:1.05rem}
.lo-line{font-size:.8rem;color:#64748b;margin-top:.15rem}
.lo-line b{color:#334155;font-weight:700}
.lo-quote{margin:.9rem 1.25rem 0;padding:.6rem .8rem;border-left:3px solid #e2e8f0;font-size:.84rem;line-height:1.5;color:#334155;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lo-quote.draft{border-left-color:#7dd3fc}
.lo-quote.empty{color:#94a3b8;font-style:normal}
.lo-people{padding:.5rem 1.25rem .4rem}
.lo-people .ms-label{margin-top:.5rem}
.lo-st{font-size:.74rem;font-weight:700;white-space:nowrap;display:inline-flex;align-items:center;gap:.25rem}
.lo-st svg{width:14px;height:14px}
.lo-st.ok{color:#047857}.lo-st.wip{color:#b45309}.lo-st.no{color:#94a3b8}.lo-st.bad{color:#be123c}
.lo-foot{margin-top:auto;display:flex;align-items:center;gap:1.1rem;padding:.75rem 1.25rem;border-top:1px solid #f1f5f9;background:#f8fafc;font-size:.8rem;color:#64748b}
.lo-foot b{color:#0f172a;font-weight:800}
.lo-foot b.red{color:#be123c}
.lo-foot .grow{flex:1}
.lo-next{padding:.55rem 1.25rem .8rem;font-size:.78rem;color:#64748b}
.lo-next b{color:#334155}
.lo-empty-shift{margin:.6rem 0;padding:.6rem .8rem;border-radius:.7rem;background:#f8fafc;font-size:.83rem;color:#64748b}
.lo-shade{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:70;opacity:0;pointer-events:none;transition:.2s}
.lo-shade.on{opacity:1;pointer-events:auto}
.lo-drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,100%);background:#fff;z-index:75;transform:translateX(100%);transition:.25s;display:flex;flex-direction:column;box-shadow:-20px 0 40px -20px rgba(15,23,42,.35)}
.lo-drawer.on{transform:none}
.lo-drawer:not(.on){box-shadow:none}
.lo-drawer .dh{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;border-bottom:1px solid #f1f5f9}
.lo-drawer .dh h2{font-size:1.15rem;font-weight:800;color:#0f172a}
.lo-drawer .db{overflow:auto;padding:0 0 1.5rem}
.lo-drawer .sec{padding:1rem 1.25rem 0}
.lo-drawer .sec h3{font-size:.9rem;font-weight:800;color:#0f172a;margin-bottom:.4rem;display:flex;align-items:center;gap:.5rem}
.lo-drawer .ms-row{padding:.6rem 0}
.lo-drawer .ms-quote{background:#f8fafc;border-radius:.7rem;padding:.7rem .85rem}
.lo-who{display:flex;gap:.25rem;flex:none}
.lo-who .ms-face{width:24px;height:24px;font-size:.65rem;margin-left:0}
.lo-who .ms-face.s{background:#f1f5f9;color:#94a3b8;border-color:#fff}
@media (max-width:1100px){.lo-kpis{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.lo-grid{grid-template-columns:1fr}}
@media (max-width:560px){.lo-kpis{grid-template-columns:1fr 1fr}.lo-foot{flex-wrap:wrap;gap:.6rem}}
.lo-arow{cursor:pointer;color:inherit;text-decoration:none}
.lo-arow:hover{background:#f8fafc}
.lo-chev{width:16px;height:16px;color:#94a3b8;flex:none}
.lo-by{margin:.3rem 1.25rem 0;font-size:.74rem;color:#64748b}
.lo-alias{color:#64748b;font-weight:400}
.lo-chipline{margin-top:.4rem}
.ms-person .av.guest{background:#f59e0b}
.lo-foot button.ms-link{background:none;border:0;padding:0;cursor:pointer}
.lo-drawer .ms-row a b{color:inherit}
.rec-actions{margin-left:auto}
.ms-parts > span + span{margin-left:.9rem}
.rec-seg{display:inline-flex;background:#f1f5f9;border-radius:.7rem;padding:.2rem;gap:.2rem;align-self:flex-start}
.rec-seg button{border:0;background:transparent;border-radius:.55rem;padding:.4rem .8rem;font-weight:700;font-size:.82rem;color:#475569;cursor:pointer}
.rec-period[data-period="moment"] [data-period-mode="moment"],.rec-period[data-period="period"] [data-period-mode="period"]{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.08)}
.rec-period{display:flex;flex-direction:column;gap:.5rem}
.rec-period-times{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.rec-period-times label{display:flex;flex-direction:column;gap:.25rem}
.rec-period-times small{font-size:.74rem;color:#64748b}
.rec-period-times em{font-style:normal;font-size:.72rem;color:#94a3b8}
@media (max-width:560px){.rec-period-times{grid-template-columns:1fr}}
.rj-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.25rem}
.rj-kpi{display:flex;justify-content:space-between;align-items:flex-start;padding:1.2rem 1.4rem}
.rj-kpi span{display:block;font-size:.85rem;color:#64748b}
.rj-kpi b{display:block;font-size:2rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;line-height:1.15;margin:.35rem 0 .2rem}
.rj-kpi small{font-size:.76rem;color:#94a3b8}
.rj-kpi .ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:none}
.rj-kpi .ico svg{width:22px;height:22px}
.rj-kpi .ico.grey{background:#f1f5f9;color:#64748b}.rj-kpi .ico.amber{background:#fef3c7;color:#b45309}.rj-kpi .ico.green{background:#d1fae5;color:#047857}
.rj-card{padding:0;overflow:hidden}
.rj-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem .9rem}
.rj-search{position:relative;flex:1 1 18rem}
.rj-search svg{position:absolute;left:.8rem;top:50%;width:1rem;height:1rem;transform:translateY(-50%);color:#94a3b8}
.rj-search .input{padding-left:2.3rem}
.rj-period{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem 1rem;font-size:.82rem;color:#64748b;flex-wrap:wrap}
.rj-period svg{width:16px;height:16px}
.rj-period .input{width:auto;padding:.35rem .6rem;font-size:.82rem}
.rj-table{width:100%;border-collapse:collapse;font-size:.88rem}
.rj-table th{background:#f8fafc;text-align:left;font-size:.76rem;font-weight:700;color:#64748b;padding:.65rem 1rem;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;white-space:nowrap}
.rj-table td{padding:.75rem 1rem;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.rj-date{white-space:nowrap}
.rj-date b{display:block;font-weight:700;color:#0f172a}
.rj-date span{font-size:.76rem;color:#64748b}
.rj-geo{display:inline-block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.74rem;font-weight:700;border:1px solid #e2e8f0;border-radius:.4rem;padding:.12rem .45rem;color:#334155;background:#fff}
.rj-what b{display:flex;align-items:center;gap:.45rem;font-weight:700;color:#0f172a}
.rj-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem;color:#94a3b8;font-weight:600}
.rj-pr{font-size:.66rem;font-weight:800;border-radius:.35rem;padding:.08rem .35rem}
.rj-pr.crit{background:#ffe4e6;color:#be123c}.rj-pr.high{background:#fef3c7;color:#b45309}
.rj-st{display:inline-flex;align-items:center;gap:.35rem;font-size:.76rem;font-weight:700;border-radius:.45rem;padding:.2rem .55rem;white-space:nowrap}
.rj-st::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.rj-st.new{background:#e0f2fe;color:#075985}.rj-st.in_work{background:#fef3c7;color:#b45309}.rj-st.waiting{background:#ede9fe;color:#6d28d9}.rj-st.done{background:#d1fae5;color:#047857}
.rj-who{display:flex;align-items:center;gap:.55rem;white-space:nowrap;color:#334155}
.rj-who i{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:.68rem;font-weight:800;background:#e0f2fe;color:#075985;flex:none}
.rj-arrow{color:#94a3b8;width:18px;height:18px}
.rj-due.late{color:#be123c;font-weight:700}
.rj-pages{display:flex;gap:.3rem}
.rj-empty{padding:2.5rem;text-align:center;color:#64748b}
.rj-date span.live{color:#b45309;font-weight:600}
.rj-imgs{white-space:nowrap;flex:none;display:inline-flex;align-items:center;gap:.2rem;font-size:.72rem;font-weight:700;color:#64748b}
.rj-imgs svg{width:14px;height:14px;flex:none}
.rj-seg{display:inline-flex;background:#f1f5f9;border-radius:.7rem;padding:.2rem;gap:.2rem}
.rj-geo-menu{position:relative}
.rj-geo-list{display:none;position:absolute;top:calc(100% + .3rem);left:0;z-index:20;background:#fff;border:1px solid #e2e8f0;border-radius:.7rem;box-shadow:var(--shadow-pop);padding:.35rem;min-width:9.5rem}
.rj-geo-list label{display:flex;align-items:center;gap:.5rem;padding:.4rem .5rem;border-radius:.45rem;font-size:.86rem;font-weight:600;cursor:pointer}
.rj-geo-list label:hover{background:#f8fafc}
.rj-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1.25rem .9rem;align-items:center}
.rj-chip{display:inline-flex;align-items:center;gap:.3rem;border:0;background:#e0f2fe;color:#075985;border-radius:999px;padding:.25rem .45rem .25rem .7rem;font-size:.78rem;font-weight:700;cursor:pointer}
.rj-chip svg{width:13px;height:13px}
.rj-reset{border:0;background:none;color:#0369a1;font-size:.78rem;font-weight:700;cursor:pointer;margin-left:.3rem}
.rj-filters{display:flex;flex-direction:column;padding:0 1.25rem}
.rj-row1{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.rj-tabs{display:flex;gap:.35rem;background:#f1f5f9;border-radius:.8rem;padding:.25rem}
.rj-tab{border-radius:.6rem;padding:.45rem .9rem;font-weight:700;font-size:.9rem;color:#475569;display:flex;gap:.45rem;align-items:center}
.rj-tab .cnt{font-size:.72rem;background:#e2e8f0;color:#475569;border-radius:999px;padding:.05rem .45rem}
.rj-tab[aria-current="true"]{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.08)}
.rj-tab[aria-current="true"] .cnt{background:#e0f2fe;color:#075985}
.rj-seg a{border-radius:.55rem;padding:.45rem .8rem;font-weight:700;font-size:.85rem;color:#475569}
.rj-seg a[aria-pressed="true"]{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.08)}
.rj-geo-menu > summary{list-style:none;cursor:pointer;min-width:9.5rem;display:flex;align-items:center}
.rj-geo-menu > summary::-webkit-details-marker{display:none}
.rj-geo-menu[open] .rj-geo-list{display:block}
.rj-quick{border:1px solid #e2e8f0;background:#fff;border-radius:.6rem;padding:.35rem .7rem;font-size:.78rem;font-weight:700;color:#475569}
.rj-quick[aria-pressed="true"]{background:#e0f2fe;border-color:#bae6fd;color:#075985}
.rj-scroll{overflow-x:auto}
.rj-row{cursor:pointer}
.rj-row:hover td,.rj-row:focus-visible td{background:#f8fafc}
.rj-row:focus-visible{outline:2px solid #38bdf8;outline-offset:-2px}
.rj-row.done td{color:#64748b}
.rj-row.done td>*{filter:grayscale(1);opacity:.55}
.rj-row.done:hover td>*,.rj-row.done:focus-visible td>*{opacity:.8}
.rj-what .rj-snip{display:block;font-size:.78rem;color:#64748b;max-width:38rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rj-what .rj-hit{color:#475569}
.rj-what b{flex-wrap:wrap}
.rj-foreign{font-size:.68rem;font-weight:700;color:#6d28d9;background:#ede9fe;border-radius:.35rem;padding:.08rem .35rem}
.rj-none{color:#94a3b8}
.rj-who i{overflow:hidden}
.rj-pages a{min-width:32px;height:32px;border-radius:.55rem;border:1px solid #e2e8f0;background:#fff;font-weight:700;color:#475569;display:flex;align-items:center;justify-content:center}
.rj-pages a[aria-current="true"]{background:#0369a1;border-color:#0369a1;color:#fff}
.rj-chip:hover{background:#bae6fd}
.rj-export svg{width:18px;height:18px}
.rj-export{display:inline-flex;align-items:center;gap:.4rem}
@media (max-width:900px){.rj-kpis{grid-template-columns:1fr}.rj-hide-sm{display:none}}
.rj-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1.25rem;font-size:.82rem;color:#64748b}
.rec-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.6rem}
.rec-thumb{border:1px solid #e2e8f0;border-radius:.6rem;overflow:hidden;padding:0;background:#fff;cursor:zoom-in;aspect-ratio:16/10}
.rec-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rec-zoom{position:fixed;inset:0;z-index:95;background:rgba(15,23,42,.82);display:none;align-items:center;justify-content:center;cursor:zoom-out;padding:1.5rem}
.rec-zoom.rec-open{display:flex}
.rec-zoom img{max-width:min(1100px,94vw);max-height:88vh;border-radius:.6rem;background:#fff}
.rec-drop{border:1.5px dashed #cbd5e1;border-radius:.8rem;padding:.8rem;text-align:center;cursor:pointer;color:#64748b;display:flex;flex-direction:column;align-items:center;gap:.2rem;margin-top:.5rem}
.rec-drop svg{width:24px;height:24px;color:#94a3b8}
.rec-drop b{font-size:.84rem;color:#334155}
.rec-drop small{font-size:.74rem}
.rec-drop:hover,.rec-drop:focus-visible,.rec-drop.rec-drop-over{border-color:#38bdf8;background:#f0f9ff;outline:none}
.rec-file-pic a{display:block;width:96px;height:60px;border-radius:.5rem;overflow:hidden;border:1px solid #e2e8f0;padding:0}
.rec-file-pic img{width:100%;height:100%;object-fit:cover;display:block}
.rj-gap{min-width:24px;height:32px;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:700}
.hh-filters{padding-top:1.1rem}
.hh-dept{width:auto;min-width:12rem}
.hh-cnt{font-size:.72rem;color:#64748b;margin-left:.2rem}
.hh-pair b{display:block;font-weight:700;color:#0f172a;white-space:nowrap}
.hh-pair span{font-size:.76rem;color:#64748b}
.hh-num{white-space:nowrap;font-variant-numeric:tabular-nums}
[data-zoom]{cursor:zoom-in}
.wiki-article:not(.wiki-editing) img{cursor:zoom-in}
.img-zoom{flex-direction:column;gap:.9rem}
.img-zoom-dl{display:inline-flex;align-items:center;padding:.45rem 1rem;border-radius:999px;background:#fff;color:#0f172a;font-size:.85rem;font-weight:700;cursor:pointer}
.img-zoom-dl:hover{background:#e0f2fe;color:#0369a1}
.img-zoom-dl[hidden]{display:none}
.tb-thumb{width:1.75rem;height:1.75rem;object-fit:cover;border-radius:.35rem;margin-right:.4rem;vertical-align:middle;display:inline-block}
.lt-tabs{display:flex;gap:.35rem;background:#f1f5f9;border-radius:.8rem;padding:.25rem;width:max-content;max-width:100%}
.lt-tabs a{border-radius:.6rem;padding:.45rem .95rem;font-weight:700;font-size:.9rem;color:#475569}
.lt-tabs a.on{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.08)}
.lt-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin:1rem 0 1.25rem}
.lt-period{font-weight:800;color:#0f172a;min-width:7.5rem;text-align:center;white-space:nowrap}
.lt-off{opacity:.35;pointer-events:none}
.lt-dept{width:auto;min-width:11rem}
.lt-rule{font-size:.8rem;color:#64748b;max-width:48rem;line-height:1.45;margin:-.4rem 0 1.25rem}
.lt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}
.lt-kpi{padding:1.1rem 1.25rem}
.lt-kpi span{display:block;font-size:.84rem;color:#64748b}
.lt-kpi b{display:block;font-size:1.9rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;line-height:1.2;margin:.15rem 0 .1rem;font-variant-numeric:tabular-nums}
.lt-kpi b.red{color:#be123c}
.lt-kpi b.amber{color:#b45309}
.lt-kpi b.green{color:#047857}
.lt-kpi small{font-size:.76rem;color:#94a3b8}
.lt-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1fr);gap:1.25rem;align-items:start}
.lt-grid.lt-even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.lt-gap{margin-bottom:1.25rem}
.lt-card{padding:0;overflow:hidden}
.lt-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:1rem 1.25rem .75rem}
.lt-head h2{font-size:1rem;font-weight:800;color:#0f172a}
.lt-head span{font-size:.78rem;color:#94a3b8}
.lt-chart{padding:.5rem 1.25rem 1.1rem}
.lt-cols{position:relative;display:flex;align-items:flex-end;gap:.45rem;height:150px;border-bottom:1px solid #e2e8f0}
.lt-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.lt-col i{display:block;width:100%;max-width:28px;border-radius:.35rem .35rem 0 0;background:#bae6fd}
.lt-col i.late{background:#fb7185}
.lt-col em{font-style:normal;font-size:.68rem;color:#64748b;margin-bottom:.2rem;font-variant-numeric:tabular-nums}
.lt-line{position:absolute;left:0;right:0;border-top:1.5px dashed #f59e0b}
.lt-line span{position:absolute;right:0;top:-1.15rem;font-size:.68rem;color:#b45309;font-weight:700}
.lt-labels{display:flex;gap:.45rem;margin-top:.35rem}
.lt-labels span{flex:1;min-width:0;text-align:center;font-size:.68rem;color:#94a3b8;white-space:nowrap;overflow:hidden}
.lt-row{display:flex;align-items:center;gap:.75rem;padding:.7rem 1.25rem;border-top:1px solid #f1f5f9;cursor:pointer}
.lt-row:hover,.lt-row:focus-visible{background:#f8fafc}
.lt-row.lt-static{cursor:default}
.lt-row .mk{width:4px;align-self:stretch;border-radius:4px;background:#fb7185;flex:none}
.lt-row .mk.amber{background:#f59e0b}
.lt-row .t{flex:1;min-width:0}
.lt-row .t b{display:block;font-size:.88rem;font-weight:700;color:#0f172a}
.lt-row .t span{font-size:.76rem;color:#64748b}
.lt-row .v{font-weight:800;font-size:.86rem;color:#be123c;white-space:nowrap;font-variant-numeric:tabular-nums}
.lt-row .v.amber{color:#b45309}
.lt-empty{padding:1.5rem 1.25rem;color:#64748b;font-size:.88rem;border-top:1px solid #f1f5f9}
.lt-table th,.lt-table td{white-space:nowrap}
.lt-table td.n,.lt-table th.n{text-align:right;font-variant-numeric:tabular-nums}
.lt-table td.bad{color:#be123c;font-weight:800}
.lt-table td.warn{color:#b45309;font-weight:800}
.lt-table tr.sel td{background:#f0f9ff}
.lt-name{color:#0f172a}
.lt-pct{display:flex;align-items:center;gap:.5rem;min-width:6rem}
.lt-pct i{flex:1;height:6px;border-radius:99px;background:#f1f5f9;position:relative;overflow:hidden}
.lt-pct i b{position:absolute;top:0;bottom:0;left:0;border-radius:99px;background:#10b981}
.lt-pct i b.mid{background:#f59e0b}
.lt-pct i b.bad{background:#ef4444}
.lt-pct span{font-size:.78rem;font-weight:700;color:#334155;font-variant-numeric:tabular-nums;width:2.6rem;text-align:right}
.lt-who{display:flex;align-items:center;gap:.55rem;white-space:nowrap;color:#0f172a;font-weight:700}
.lt-filter{font-size:.78rem;color:#0369a1;font-weight:700}
.nav-badge.amber{background:#f59e0b}
@media (max-width:1100px){.lt-grid,.lt-grid.lt-even{grid-template-columns:minmax(0,1fr)}.lt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
