:root {
    --ot-primary: #14527A;
    --ot-primary-hover: #0F3E5C;
    --ot-primary-soft: #E7F0F6;
    --ot-bg: #F4F6F9;
    --ot-surface: #FFFFFF;
    --ot-surface-alt: #FAFBFC;
    --ot-border: #E3E8EF;
    --ot-text: #141C25;
    --ot-muted: #5B6B7D;

    --st-present: #0F7B3F;
    --st-present-bg: #E9F6EF;
    --st-absent: #B42318;
    --st-absent-bg: #FEF3F2;
    --st-partial: #B45309;
    --st-partial-bg: #FFF7ED;
    --st-not_required: #5B6B7D;
    --st-not_required-bg: #F2F4F7;
    --st-unset: #94A3B3;
    --st-unset-bg: transparent;

    --ot-on-primary: #FFFFFF;

    --ot-admin: #6F42C1;
    --ot-admin-bg: #F5F0FF;
    --ot-admin-border: rgba(111, 66, 193, .45);

    --ot-radius: 10px;
    --ot-radius-sm: 8px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .06);
    --sh-2: 0 8px 24px rgba(16, 24, 40, .12);

    --bs-body-bg: var(--ot-bg);
    --bs-body-color: var(--ot-text);
    --bs-primary: var(--ot-primary);
    --bs-link-color: var(--ot-primary);
    --bs-link-hover-color: var(--ot-primary-hover);
    --bs-border-color: var(--ot-border);
    --bs-secondary-color: var(--ot-muted);
}

[data-bs-theme="dark"] {
    --ot-on-primary: #0B1218;
    --ot-primary: #4A9FD5;
    --ot-primary-hover: #6FB6E3;
    --ot-primary-soft: #16293A;
    --ot-bg: #0E141B;
    --ot-surface: #161E27;
    --ot-surface-alt: #1B242F;
    --ot-border: #26313D;
    --ot-text: #E6EBF0;
    --ot-muted: #94A3B3;

    --st-present: #3FBF7F;
    --st-present-bg: rgba(63, 191, 127, .12);
    --st-absent: #F87171;
    --st-absent-bg: rgba(248, 113, 113, .12);
    --st-partial: #FBBF24;
    --st-partial-bg: rgba(251, 191, 36, .12);
    --st-not_required: #8A97A6;
    --st-not_required-bg: rgba(138, 151, 166, .1);

    --ot-admin: #B79CF0;
    --ot-admin-bg: rgba(183, 156, 240, .12);
    --ot-admin-border: rgba(183, 156, 240, .5);

    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 8px 24px rgba(0, 0, 0, .5);
}

body {
    background: var(--ot-bg);
    color: var(--ot-text);
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
}

.card,
.list-group-item,
.dropdown-menu,
.card {
    border-radius: var(--ot-radius);
    box-shadow: var(--sh-1);
}

.card-header {
    background: var(--ot-surface-alt);
    border-bottom-color: var(--ot-border);
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--ot-primary);
    --bs-btn-border-color: var(--ot-primary);
    --bs-btn-color: var(--ot-on-primary);
    --bs-btn-hover-bg: var(--ot-primary-hover);
    --bs-btn-hover-border-color: var(--ot-primary-hover);
    --bs-btn-hover-color: var(--ot-on-primary);
    --bs-btn-active-bg: var(--ot-primary-hover);
    --bs-btn-active-color: var(--ot-on-primary);
    --bs-btn-disabled-bg: var(--ot-primary);
    --bs-btn-disabled-border-color: var(--ot-primary);
    --bs-btn-disabled-color: var(--ot-on-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--ot-primary);
    --bs-btn-border-color: var(--ot-primary);
    --bs-btn-hover-bg: var(--ot-primary);
    --bs-btn-hover-border-color: var(--ot-primary);
    --bs-btn-hover-color: var(--ot-on-primary);
    --bs-btn-active-bg: var(--ot-primary);
    --bs-btn-active-border-color: var(--ot-primary);
    --bs-btn-active-color: var(--ot-on-primary);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ot-text);
    --bs-table-border-color: var(--ot-border);
}

.table > thead {
    background: var(--ot-surface-alt);
}

.ic {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -.125em;
    flex: none;
}

.icon-sprite {
    display: none;
}

.admin-mark {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .05rem .4rem;
    border-radius: 4px;
    background: var(--ot-admin);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-mark .ic {
    width: .75rem;
    height: .75rem;
}

.admin-only > .sidenav__item,
.admin-only > .sidenav__item:hover {
    color: var(--ot-admin);
}

.admin-action {
    border: 1px dashed var(--ot-admin-border) !important;
    background: var(--ot-admin-bg);
    color: var(--ot-admin);
}

.admin-zone {
    border-left: 3px solid var(--ot-admin);
    background: linear-gradient(90deg, var(--ot-admin-bg), transparent 340px);
    padding: 1rem 0 1rem 1.25rem;
    border-radius: 0 var(--ot-radius) var(--ot-radius) 0;
}

.admin-zone__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.status-chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    height: 32px;
    padding: 0 .65rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface);
    color: var(--ot-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color .12s, border-color .12s, color .12s;
}

.chip:hover {
    border-color: var(--ot-muted);
}

.chip__text {
    white-space: nowrap;
}

.status-chips input:focus-visible + .chip {
    outline: 2px solid var(--ot-primary);
    outline-offset: 2px;
}

.status-chips input:checked + .chip {
    box-shadow: inset 0 0 0 1px currentColor;
}

.status-chips input[value="present"]:checked + .chip {
    background: var(--st-present-bg);
    border-color: var(--st-present);
    color: var(--st-present);
}

.status-chips input[value="absent"]:checked + .chip {
    background: var(--st-absent-bg);
    border-color: var(--st-absent);
    color: var(--st-absent);
}

.status-chips input[value="partial"]:checked + .chip {
    background: var(--st-partial-bg);
    border-color: var(--st-partial);
    color: var(--st-partial);
}

.status-chips input[value="not_required"]:checked + .chip {
    background: var(--st-not_required-bg);
    border-color: var(--st-not_required);
    color: var(--st-not_required);
}

.status-chips input[value="unset"]:checked + .chip {
    background: var(--ot-surface-alt);
    border-color: var(--st-unset);
    color: var(--st-unset);
}

.item-row {
    position: relative;
    border-left: 3px solid transparent;
    transition: background-color .15s, border-color .15s;
}

.item-row.status-present { border-left-color: var(--st-present); }
.item-row.status-absent { border-left-color: var(--st-absent); background: var(--st-absent-bg); }
.item-row.status-partial { border-left-color: var(--st-partial); background: var(--st-partial-bg); }
.item-row.status-not_required { border-left-color: var(--st-not_required); }

.item-row.is-saved::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 3px solid var(--st-present);
    pointer-events: none;
    animation: saved-flash .7s ease-out forwards;
}

@keyframes saved-flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.item-name {
    font-size: 14.5px;
    line-height: 1.4;
}

.item-note {
    font-size: .82rem;
    color: var(--ot-muted);
    line-height: 1.45;
}

.item-tag {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .7rem;
    font-weight: 600;
    padding: .1rem .4rem;
    border-radius: 4px;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    border: 1px solid var(--ot-border);
}

.item-tag--mandatory {
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    border-color: transparent;
}

.block-nav {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: .25rem;
}

.block-nav__item {
    display: block;
    padding: .4rem .5rem;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    color: var(--ot-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}

.block-nav__item:hover {
    background: var(--ot-surface-alt);
    color: var(--ot-text);
}

.block-nav__item.active {
    background: var(--ot-primary-soft);
    border-left-color: var(--ot-primary);
    color: var(--ot-primary);
    font-weight: 600;
}

.block-nav__bar {
    display: flex;
    height: 3px;
    margin-top: .3rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--ot-border);
}

.block-nav__bar span {
    display: block;
    height: 100%;
}

.block-nav__bar .ok { background: var(--st-present); }
.block-nav__bar .bad { background: var(--st-absent); }

.block-head {
    position: sticky;
    top: 62px;
    z-index: 3;
    background: var(--ot-surface-alt);
    border-bottom: 1px solid var(--ot-border);
}

.summary-panel {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.ring {
    --pct: 0;
    width: 132px;
    height: 132px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, var(--ot-surface) 58%, transparent 58.5%),
        conic-gradient(var(--st-present) 0 calc(var(--pct) * 1%), var(--st-absent) 0);
}

.ring__value {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ring__label {
    font-size: 11px;
    color: var(--ot-muted);
    text-align: center;
}

.num {
    font-variant-numeric: tabular-nums;
}

.fines-total {
    color: var(--st-absent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-tile {
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    padding: 1rem;
    height: 100%;
    box-shadow: var(--sh-1);
}

.stat-tile__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-tile__label {
    color: var(--ot-text);
    font-size: .9rem;
}

.stat-tile__hint {
    color: var(--ot-muted);
    font-size: .8rem;
    margin-top: .25rem;
}

.completeness {
    margin-bottom: 1rem;
}

.completeness__head {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    margin-bottom: .25rem;
}

.completeness__count {
    color: var(--ot-muted);
    font-variant-numeric: tabular-nums;
}

.completeness__hint {
    color: var(--ot-muted);
    font-size: .78rem;
    margin-top: .25rem;
}

.block-card {
    border: 1px solid var(--ot-border);
    border-left: 3px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s, background-color .12s;
}

.block-card:hover {
    box-shadow: var(--sh-1);
    border-color: var(--ot-muted);
}

.block-card.mandatory {
    border-left-color: var(--ot-primary);
    cursor: default;
}

.block-card.is-selected {
    border-left-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.mandatory-star {
    width: .9rem;
    height: .9rem;
    color: var(--ot-primary);
    vertical-align: -2px;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--ot-surface);
    border-top: 1px solid var(--ot-border);
    box-shadow: 0 -4px 16px rgba(16, 24, 40, .08);
    padding: .75rem 1rem;
    margin: 1rem -1rem -1.5rem;
    border-radius: var(--ot-radius) var(--ot-radius) 0 0;
}

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 340px;
    max-width: calc(100vw - 32px);
}

.toast-item {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-left: 4px solid var(--ot-muted);
    border-radius: var(--ot-radius-sm);
    box-shadow: var(--sh-2);
    padding: .7rem .8rem;
    font-size: 13.5px;
    animation: toast-in .18s ease-out;
}

.toast-item--success { border-left-color: var(--st-present); }
.toast-item--error { border-left-color: var(--st-absent); }
.toast-item--warning { border-left-color: var(--st-partial); }
.toast-item--info { border-left-color: var(--ot-primary); }

.toast-item__close {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--ot-muted);
    line-height: 1;
    font-size: 1.1rem;
    cursor: pointer;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ot-muted);
}

.empty-state .ic {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--ot-border);
    margin-bottom: .75rem;
}

.empty-state__title {
    color: var(--ot-text);
    font-weight: 600;
    margin-bottom: .35rem;
}

.theme-toggle {
    border: 0;
    background: none;
    color: var(--ot-muted);
    padding: .35rem;
    line-height: 1;
    border-radius: 50%;
}

.theme-toggle:hover {
    background: var(--ot-surface-alt);
    color: var(--ot-text);
}

.offline-banner {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    z-index: 1090;
    background: var(--st-absent);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--sh-2);
}

body.is-offline .offline-banner {
    display: block;
}

@media (max-width: 991.98px) {
    .chip {
        height: 40px;
        padding: 0 .55rem;
    }

    .summary-panel {
        position: static;
        max-height: none;
    }

    .block-nav {
        position: static;
        max-height: none;
        margin-bottom: 1rem;
    }

    .block-head {
        top: 56px;
    }

    .mobile-summary {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: var(--ot-surface);
        border-top: 1px solid var(--ot-border);
        box-shadow: 0 -4px 16px rgba(16, 24, 40, .12);
        padding: .5rem .75rem;
        display: flex;
        align-items: center;
        gap: .75rem;
        font-size: 13px;
    }

    body.has-mobile-summary {
        padding-bottom: 68px;
    }
}

@media (min-width: 992px) {
    .mobile-summary {
        display: none;
    }
}

@media print {
    .topbar, .sidenav, .block-nav, .summary-panel, .sticky-actions, .toast-stack {
        display: none !important;
    }
}

.comment-slot {
    margin-top: .35rem;
}

.comment-slot textarea {
    display: none;
}

.comment-slot.is-open textarea {
    display: block;
}

.comment-slot.is-open .comment-toggle {
    display: none;
}

.comment-toggle {
    padding: .1rem .35rem;
    font-size: .75rem;
    color: var(--ot-muted);
    border: 0;
    background: none;
}

.comment-toggle:hover {
    color: var(--ot-primary);
}

.item-row .list-group-item,
.list-group-item {
    padding: .65rem .9rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h1 {
    margin-bottom: .35rem;
}

main.container {
    padding-top: 1.75rem !important;
    padding-bottom: 3rem !important;
}

.breadcrumb {
    margin-bottom: 1.25rem;
    font-size: .875rem;
}

.card + .card {
    margin-top: 1rem;
}

.card-header {
    padding: .75rem 1.1rem;
}

.card-body {
    padding: 1.25rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--ot-border);
}

.guide-step:first-of-type {
    border-top: 0;
    padding-top: .5rem;
}

.guide-step__num {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-weight: 700;
    font-size: .95rem;
}

.guide-step__body {
    flex: 1;
    min-width: 0;
}

.guide-step__body p {
    margin-bottom: .6rem;
    line-height: 1.55;
}

.guide-step__body ul {
    margin-bottom: .6rem;
    padding-left: 1.1rem;
}

.guide-step__body li {
    margin-bottom: .35rem;
    line-height: 1.5;
}

.guide-step__body p:last-child,
.guide-step__body ul:last-child {
    margin-bottom: 0;
}

.deadline-row {
    border-left: 3px solid transparent;
    padding: .9rem 1.1rem;
}

.deadline-row--overdue { border-left-color: var(--st-absent); background: var(--st-absent-bg); }
.deadline-row--soon { border-left-color: var(--st-partial); }
.deadline-row--later { border-left-color: var(--st-present); }

.remediation-row {
    border-left: 3px solid var(--ot-border);
    padding: 1rem 1.1rem;
}

.remediation-row.status-done { border-left-color: var(--st-present); background: var(--st-present-bg); }
.remediation-row.status-in_progress { border-left-color: var(--st-partial); }
.remediation-row.is-overdue { border-left-color: var(--st-absent); background: var(--st-absent-bg); }

.remediation-row.is-saved::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-left: 3px solid var(--st-present);
    animation: saved-flash .7s ease-out forwards;
}

.remediation-row {
    position: relative;
}

.form-label-sm {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ot-muted);
    margin-bottom: .2rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.shared-head {
    padding: 1.5rem 0 0;
}

.accordion-button {
    background: var(--ot-surface);
    color: var(--ot-text);
    font-weight: 600;
    font-size: .95rem;
}

.accordion-button:not(.collapsed) {
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    box-shadow: none;
}

.accordion-body {
    color: var(--ot-muted);
    line-height: 1.55;
}

.alert {
    border-radius: var(--ot-radius);
    border-color: var(--ot-border);
}

.form-label {
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: .35rem;
}

.form-text {
    font-size: .8rem;
    color: var(--ot-muted);
}

@media (max-width: 575.98px) {
    .input-group[style*="width"],
    .form-select[style*="width"] {
        width: 100% !important;
    }

    .sticky-actions {
        margin-left: -.75rem;
        margin-right: -.75rem;
        padding: .65rem .75rem;
    }

    .sticky-actions .btn {
        flex: 1 1 auto;
    }

    .stat-tile {
        padding: .75rem;
    }

    .stat-tile__value {
        font-size: 1.4rem;
    }

    main.container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .guide-step {
        gap: .75rem;
    }

    .breadcrumb {
        font-size: .8rem;
    }
}

@media (max-width: 991.98px) {
    .status-chips {
        gap: .3rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

.guide p {
    line-height: 1.6;
    margin-bottom: .85rem;
}

.guide ul,
.guide ol,
.guide .guide-list {
    padding-left: 1.2rem;
    margin-bottom: .85rem;
}

.guide li {
    margin-bottom: .45rem;
    line-height: 1.55;
}

.guide p:last-child,
.guide ul:last-child,
.guide ol:last-child {
    margin-bottom: 0;
}

.guide code {
    background: var(--ot-surface-alt);
    border: 1px solid var(--ot-border);
    border-radius: 4px;
    padding: .1rem .35rem;
    font-size: .85em;
    color: var(--ot-text);
}

.card.admin-zone {
    border-radius: var(--ot-radius);
    padding: 0;
}

.admin-inline {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .45rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
}

.admin-inline:hover {
    background: var(--ot-admin);
    color: #fff;
}

.crumbs {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--ot-muted);
    margin-bottom: .35rem;
}

.crumbs a {
    color: var(--ot-muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--ot-primary);
    text-decoration: underline;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.page-head__title {
    margin: 0 0 .35rem;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.page-head__hint {
    margin: 0;
    max-width: 68ch;
    color: var(--ot-muted);
    line-height: 1.55;
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    padding: .35rem;
    margin-bottom: 1.5rem;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: 16px;
    box-shadow: var(--sh-1);
}

.tab-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex: 0 0 auto;
    padding: .55rem .9rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ot-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}

.tab-nav__item .ic {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
    opacity: .85;
}

.tab-nav__item:hover,
.tab-nav__item:focus-visible {
    background: var(--ot-surface-alt);
    color: var(--ot-text);
}

.tab-nav__item.active {
    background: var(--ot-primary);
    color: var(--ot-on-primary);
    box-shadow: var(--sh-1);
}

.tab-nav__item.active .ic {
    color: var(--ot-on-primary);
    opacity: 1;
}

@media (max-width: 767.98px) {
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        border-radius: 14px;
        mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }

    .tab-nav::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .tab-nav__item {
        scroll-snap-align: center;
        padding: .5rem .75rem;
        font-size: .85rem;
    }
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi {
    position: relative;
    padding: 1.1rem 1.2rem;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    box-shadow: var(--sh-1);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--ot-primary);
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
}

.kpi--danger::before { background: var(--st-absent); }
.kpi--warning::before { background: var(--st-partial); }
.kpi--success::before { background: var(--st-present); }
.kpi--muted::before { background: var(--st-not_required); }

.kpi__label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ot-muted);
    margin-bottom: .45rem;
}

.kpi__value {
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.kpi--danger .kpi__value { color: var(--st-absent); }
.kpi--warning .kpi__value { color: var(--st-partial); }
.kpi--success .kpi__value { color: var(--st-present); }

.kpi__hint {
    margin-top: .4rem;
    font-size: .82rem;
    color: var(--ot-muted);
    line-height: 1.4;
}

.panel {
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    box-shadow: var(--sh-1);
    margin-bottom: 1.5rem;
}

.panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ot-border);
}

.panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.panel__subtitle {
    margin: .2rem 0 0;
    font-size: .85rem;
    color: var(--ot-muted);
}

.panel__body {
    padding: 1.25rem;
}

.panel__body--flush {
    padding: 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ot-border);
}

.filter-bar__field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 170px;
}

.filter-bar__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ot-muted);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .88rem;
}

.grid-table th,
.grid-table td {
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--ot-border);
    vertical-align: top;
}

.grid-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--ot-surface-alt);
    font-weight: 600;
    font-size: .8rem;
    text-align: left;
    color: var(--ot-text);
    border-bottom: 2px solid var(--ot-border);
}

.grid-table tbody tr:hover td {
    background: var(--ot-primary-soft);
}

.grid-table .col-person {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--ot-surface);
    min-width: 220px;
    box-shadow: 1px 0 0 var(--ot-border);
}

.grid-table thead .col-person {
    z-index: 4;
    background: var(--ot-surface-alt);
}

.grid-table tbody tr:hover .col-person {
    background: var(--ot-primary-soft);
}

.person-name {
    font-weight: 600;
    line-height: 1.3;
}

.person-meta {
    font-size: .78rem;
    color: var(--ot-muted);
    line-height: 1.35;
}

.cell-training {
    min-width: 190px;
}

.cell-training__controls {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cell-training select,
.cell-training input[type="date"] {
    font-size: .82rem;
    padding: .25rem .45rem;
    border-radius: var(--ot-radius-sm);
    border: 1px solid var(--ot-border);
    background: var(--ot-surface);
    color: var(--ot-text);
    width: 100%;
}

.cell-training select:focus,
.cell-training input[type="date"]:focus {
    outline: 2px solid var(--ot-primary);
    outline-offset: 1px;
}

.cell-planned {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border: 1px solid transparent;
}

.state-ok .cell-planned {
    color: var(--st-present);
    background: var(--st-present-bg);
    border-color: rgba(15, 123, 63, .25);
}

.state-soon .cell-planned {
    color: var(--st-absent);
    background: var(--st-absent-bg);
    border-color: rgba(180, 35, 24, .4);
}

.state-overdue .cell-planned {
    color: #fff;
    background: var(--st-absent);
    border-color: var(--st-absent);
}

.state-none .cell-planned,
.state-exempt .cell-planned {
    color: var(--ot-muted);
    background: var(--st-not_required-bg);
    border-color: var(--ot-border);
}

.grid-table td.state-overdue { background: var(--st-absent-bg); }
.grid-table td.state-soon { background: var(--st-absent-bg); }

.cell-saved {
    animation: cell-flash 1.1s ease;
}

@keyframes cell-flash {
    0% { box-shadow: inset 0 0 0 2px var(--st-present); }
    100% { box-shadow: inset 0 0 0 2px transparent; }
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding: .85rem 1.25rem;
    font-size: .82rem;
    color: var(--ot-muted);
    border-top: 1px solid var(--ot-border);
}

.legend__item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.legend__dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    border: 1px solid transparent;
}

.legend__dot--overdue { background: var(--st-absent); }
.legend__dot--soon { background: var(--st-absent-bg); border-color: var(--st-absent); }
.legend__dot--ok { background: var(--st-present); }
.legend__dot--none { background: var(--st-not_required-bg); border-color: var(--ot-border); }

.state-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.state-pill--overdue { color: #fff; background: var(--st-absent); }
.state-pill--soon { color: var(--st-absent); background: var(--st-absent-bg); border: 1px solid var(--st-absent); }
.state-pill--ok { color: var(--st-present); background: var(--st-present-bg); }
.state-pill--none { color: var(--ot-muted); background: var(--st-not_required-bg); }
.state-pill--exempt { color: var(--ot-muted); background: var(--st-not_required-bg); }

.org-card {
    display: block;
    height: 100%;
    padding: 1.25rem 1.35rem;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    box-shadow: var(--sh-1);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.org-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
    border-color: var(--ot-primary);
    color: inherit;
}

.org-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .35rem;
}

.org-card__meta {
    font-size: .82rem;
    color: var(--ot-muted);
    margin-bottom: .9rem;
}

.org-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem 1.25rem;
}

.form-grid__full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: .3rem;
    color: var(--ot-text);
}

.form-field .form-text {
    font-size: .78rem;
    color: var(--ot-muted);
    margin-top: .25rem;
}

.form-field .invalid-feedback {
    display: block;
}

.sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.25rem;
    margin-top: 1rem;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    box-shadow: var(--sh-2);
}

.money {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.money--total {
    font-size: 1.15rem;
    color: var(--ot-primary);
}

.import-report {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .85rem;
}

.import-report__item {
    padding: .85rem 1rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-sm);
    background: var(--ot-surface-alt);
}

.import-report__value {
    font-size: 1.4rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.import-report__label {
    font-size: .8rem;
    color: var(--ot-muted);
}

.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    position: relative;
    padding: 0 0 1rem 2.4rem;
    line-height: 1.55;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-size: .82rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .page-head__title { font-size: 1.25rem; }

    .tab-nav {
        border-radius: var(--ot-radius);
        padding: .25rem;
    }

    .grid-table .col-person {
        position: static;
        box-shadow: none;
    }

    .grid-table,
    .grid-table thead,
    .grid-table tbody,
    .grid-table tr,
    .grid-table td {
        display: block;
        width: 100%;
    }

    .grid-table thead {
        display: none;
    }

    .grid-table tbody tr {
        margin-bottom: 1rem;
        border: 1px solid var(--ot-border);
        border-radius: var(--ot-radius);
        overflow: hidden;
        background: var(--ot-surface);
    }

    .grid-table td {
        border-bottom: 1px solid var(--ot-border);
    }

    .grid-table td:last-child {
        border-bottom: 0;
    }

    .grid-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--ot-muted);
        margin-bottom: .3rem;
    }

    .filter-bar__field {
        min-width: 100%;
    }
}

.forecast-chart {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    min-height: 240px;
    padding: .5rem .25rem 0;
    overflow-x: auto;
}

.forecast-chart__item {
    flex: 1 1 0;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.forecast-chart__bar-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 170px;
    padding: 0 .5rem;
    background: linear-gradient(to top, var(--ot-surface-alt) 0%, transparent 70%);
    border-radius: var(--ot-radius-sm) var(--ot-radius-sm) 0 0;
}

.forecast-chart__bar {
    width: 100%;
    max-width: 68px;
    min-height: 6px;
    border-radius: var(--ot-radius-sm) var(--ot-radius-sm) 0 0;
    background: linear-gradient(180deg, var(--ot-primary) 0%, var(--ot-primary-hover) 100%);
    box-shadow: var(--sh-1);
    transition: filter .18s ease, transform .18s ease;
}

.forecast-chart__bar:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.forecast-chart__value {
    font-size: .85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.forecast-chart__label {
    font-size: .8rem;
    color: var(--ot-muted);
}

.passport-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .forecast-chart {
        gap: .75rem;
    }

    .forecast-chart__item {
        min-width: 74px;
    }

    .forecast-chart__bar-wrap {
        height: 130px;
    }
}

[data-bs-theme="dark"] .tab-nav__item.active,
[data-bs-theme="dark"] .state-pill--overdue,
[data-bs-theme="dark"] .state-overdue .cell-planned {
    color: #0B1218;
}

[data-bs-theme="dark"] .tab-nav__item.active .ic {
    color: #0B1218;
}

[data-bs-theme="dark"] .state-pill--soon {
    color: var(--st-absent);
    background: rgba(248, 113, 113, .16);
}

[data-bs-theme="dark"] .forecast-chart__bar {
    background: linear-gradient(180deg, var(--ot-primary) 0%, #2E6E97 100%);
}

:root {
    --nav-rail: 92px;
    --nav-wide: 278px;
    --nav-gap: 18px;
    --topbar-h: 60px;
}

.app-shell {
    min-height: 100vh;
}

.app-main {
    padding: 1.75rem 0 3rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--topbar-h);
    padding: 0 1rem;
    background: var(--ot-surface);
    border-bottom: 1px solid var(--ot-border);
    position: sticky;
    top: 0;
    z-index: 1035;
}

.topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--ot-text);
    font-weight: 600;
    min-width: 0;
}

.topbar__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__mark,
.sidenav__mark {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.topbar__tools {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ot-muted);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
    background: var(--ot-primary-soft);
    border-color: var(--ot-border);
    color: var(--ot-primary);
}

.icon-btn .ic {
    width: 1.15rem;
    height: 1.15rem;
}

.sidenav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--nav-wide);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem .75rem;
    background: var(--ot-surface);
    border-left: 1px solid var(--ot-border);
    box-shadow: var(--sh-2);
    z-index: 1045;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.22, .61, .36, 1);
    overflow: hidden;
}

.sidenav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 23, .45);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity .2s ease;
}

.sidenav-backdrop.is-shown {
    opacity: 1;
}

.nav-open .sidenav {
    transform: translateX(0);
}

.sidenav__top {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
}

.sidenav__brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--ot-text);
    font-weight: 600;
    min-width: 0;
    flex: 1 1 auto;
}

.sidenav__brand-name {
    font-size: .95rem;
    line-height: 1.2;
}

.sidenav__pin,
.sidenav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ot-muted);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .2s ease;
}

.sidenav__pin .ic,
.sidenav__close .ic {
    width: 1rem;
    height: 1rem;
}

.sidenav__pin:hover,
.sidenav__pin:focus-visible,
.sidenav__close:hover,
.sidenav__close:focus-visible {
    background: var(--ot-primary-soft);
    border-color: var(--ot-border);
    color: var(--ot-primary);
}

.sidenav__pin[aria-pressed="true"] {
    background: var(--ot-primary-soft);
    border-color: var(--ot-primary);
    color: var(--ot-primary);
    transform: rotate(45deg);
}

.sidenav__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-top: .25rem;
    scrollbar-width: none;
}

.sidenav__body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidenav__group {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.sidenav__caption {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0 .65rem .35rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ot-muted);
    white-space: nowrap;
}

.sidenav__item,
.sidenav__user {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .6rem .65rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ot-text);
    text-decoration: none;
    text-align: left;
    font-size: .93rem;
    line-height: 1.25;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.sidenav__item .ic {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
    color: var(--ot-muted);
    transition: color .15s ease;
}

.sidenav__item:hover,
.sidenav__item:focus-visible,
.sidenav__user:hover,
.sidenav__user:focus-visible {
    background: var(--ot-surface-alt);
    border-color: var(--ot-border);
    color: var(--ot-text);
}

.sidenav__item:hover .ic,
.sidenav__item:focus-visible .ic {
    color: var(--ot-primary);
}

.sidenav__item.is-active,
.sidenav__user.is-active {
    background: var(--ot-primary-soft);
    border-color: var(--ot-primary);
    color: var(--ot-primary);
    font-weight: 600;
}

.sidenav__item.is-active .ic {
    color: var(--ot-primary);
}

.sidenav__label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidenav__short {
    display: none;
}

.sidenav__foot {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding-top: .65rem;
    border-top: 1px solid var(--ot-border);
}

.sidenav__foot form {
    margin: 0;
}

.sidenav__item--button {
    font: inherit;
    cursor: pointer;
}

.sidenav__user {
    align-items: center;
    padding: .55rem .6rem;
}

.sidenav__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--ot-primary);
    color: var(--ot-on-primary);
    font-weight: 600;
    font-size: .9rem;
}

.sidenav__user .sidenav__label {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.sidenav__user-name {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidenav__user-hint {
    font-size: .76rem;
    color: var(--ot-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidenav__caption-mark .admin-mark {
    margin: 0;
}

@media (max-width: 991.98px) {
    .sidenav {
        width: min(var(--nav-wide), 84vw);
    }

    .sidenav__pin {
        display: none;
    }
}

@media (min-width: 992px) {
    .topbar {
        display: none;
    }

    .app-main {
        padding: 2rem 0 3.5rem;
        margin-right: calc(var(--nav-rail) + var(--nav-gap));
        transition: margin-right .28s cubic-bezier(.22, .61, .36, 1);
    }

    .sidenav {
        top: var(--nav-gap);
        right: var(--nav-gap);
        bottom: var(--nav-gap);
        width: var(--nav-rail);
        padding: .85rem .65rem;
        border: 1px solid var(--ot-border);
        border-radius: 16px;
        box-shadow: var(--sh-1);
        transform: none;
        transition: width .28s cubic-bezier(.22, .61, .36, 1), box-shadow .2s ease;
    }

    .sidenav-backdrop {
        display: none;
    }

    .sidenav__close {
        display: none;
    }

    .sidenav__label,
    .sidenav__user .sidenav__label {
        display: none;
    }

    .sidenav__caption {
        height: 0;
        padding-bottom: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateX(6px);
        transition: opacity .18s ease, transform .22s ease;
    }

    .sidenav__group + .sidenav__group {
        border-top: 1px solid var(--ot-border);
        padding-top: .75rem;
    }

    .sidenav__brand {
        justify-content: center;
    }

    .sidenav__mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .sidenav:hover .sidenav__brand,
    .sidenav:focus-within .sidenav__brand,
    html[data-nav="pinned"] .sidenav__brand {
        justify-content: flex-start;
    }

    .sidenav:hover .sidenav__mark,
    .sidenav:focus-within .sidenav__mark,
    html[data-nav="pinned"] .sidenav__mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .sidenav__top {
        position: relative;
    }

    .sidenav__pin {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease, background .15s ease, color .15s ease;
    }

    .sidenav__pin[aria-pressed="true"] {
        transform: translateY(-50%) rotate(45deg);
    }

    .sidenav:hover,
    .sidenav:focus-within,
    html[data-nav="pinned"] .sidenav {
        width: var(--nav-wide);
        box-shadow: var(--sh-2);
    }

    .sidenav:hover .sidenav__label,
    .sidenav:focus-within .sidenav__label,
    html[data-nav="pinned"] .sidenav__label {
        display: block;
    }

    .sidenav:hover .sidenav__user .sidenav__label,
    .sidenav:focus-within .sidenav__user .sidenav__label,
    html[data-nav="pinned"] .sidenav__user .sidenav__label {
        display: flex;
    }

    .sidenav:hover .sidenav__caption,
    .sidenav:focus-within .sidenav__caption,
    html[data-nav="pinned"] .sidenav__caption {
        opacity: 1;
        transform: none;
    }

    .sidenav:hover .sidenav__caption,
    .sidenav:focus-within .sidenav__caption,
    html[data-nav="pinned"] .sidenav__caption {
        height: auto;
        padding-bottom: .35rem;
    }

    .sidenav:hover .sidenav__pin,
    .sidenav:focus-within .sidenav__pin,
    html[data-nav="pinned"] .sidenav__pin {
        opacity: 1;
        pointer-events: auto;
    }

    .sidenav__body {
        gap: .6rem;
        mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    }

    .sidenav__item {
        flex-direction: column;
        gap: .2rem;
        padding: .35rem .1rem;
        text-align: center;
    }

    .sidenav__item .ic {
        width: 1.15rem;
        height: 1.15rem;
        flex-basis: 1.15rem;
    }

    .sidenav__short {
        display: block;
        font-size: .61rem;
        line-height: 1.05;
        letter-spacing: .01em;
        color: var(--ot-muted);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidenav__item.is-active .sidenav__short,
    .sidenav__user.is-active .sidenav__short {
        color: var(--ot-primary);
    }

    .sidenav__group + .sidenav__group {
        padding-top: .45rem;
    }

    .sidenav__user {
        flex-direction: column;
        gap: .2rem;
        padding: .35rem .1rem;
        text-align: center;
    }

    .sidenav__avatar {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: .8rem;
    }

    .sidenav__foot {
        gap: .1rem;
        padding-top: .5rem;
    }

    .sidenav:hover .sidenav__item,
    .sidenav:focus-within .sidenav__item,
    html[data-nav="pinned"] .sidenav__item {
        flex-direction: row;
        gap: .75rem;
        padding: .6rem .65rem;
        text-align: left;
    }

    .sidenav:hover .sidenav__short,
    .sidenav:focus-within .sidenav__short,
    html[data-nav="pinned"] .sidenav__short {
        display: none;
    }

    .sidenav:hover .sidenav__user,
    .sidenav:focus-within .sidenav__user,
    html[data-nav="pinned"] .sidenav__user {
        flex-direction: row;
        gap: .75rem;
        justify-content: flex-start;
        padding: .55rem .6rem;
        text-align: left;
    }

    .sidenav:hover .sidenav__avatar,
    .sidenav:focus-within .sidenav__avatar,
    html[data-nav="pinned"] .sidenav__avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: .9rem;
    }

    .sidenav:hover .sidenav__body,
    .sidenav:focus-within .sidenav__body,
    html[data-nav="pinned"] .sidenav__body {
        gap: 1.1rem;
        mask-image: none;
    }

    .sidenav:hover .sidenav__group + .sidenav__group,
    .sidenav:focus-within .sidenav__group + .sidenav__group,
    html[data-nav="pinned"] .sidenav__group + .sidenav__group {
        padding-top: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidenav,
    .app-main,
    .sidenav__label,
    .sidenav__caption,
    .sidenav__pin {
        transition: none;
    }
}

.row + .panel,
.kpi-row + .panel,
.grid-wrap + .panel,
.page-head + .panel,
.panel + .panel,
.alert + .panel,
.tab-nav + .panel,
.filter-bar + .panel {
    margin-top: 1.5rem;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ot-border);
    border-radius: 20px;
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
    margin-bottom: 1.25rem;
}

.hero__glow {
    position: absolute;
    inset: -60% 40% auto -10%;
    height: 320px;
    background:
        radial-gradient(420px 220px at 30% 60%, var(--ot-primary-soft), transparent 70%),
        radial-gradient(360px 200px at 80% 30%, var(--st-present-bg), transparent 75%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 1.75rem 1.85rem;
}

.hero__person {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    min-width: 0;
}

.avatar-ring {
    position: relative;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(
            var(--ot-primary) calc(var(--ring) * 1%),
            var(--ot-border) calc(var(--ring) * 1%)
        );
}

.avatar-ring::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--ot-surface);
}

.avatar-ring__face {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--ot-primary);
    color: var(--ot-on-primary);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.avatar-ring__badge {
    position: absolute;
    z-index: 2;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: .1rem .45rem;
    border-radius: 999px;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface);
    font-size: .68rem;
    font-weight: 600;
    color: var(--ot-primary);
    white-space: nowrap;
}

.hero__text {
    min-width: 0;
}

.hero__eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ot-muted);
}

.hero__name {
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
    margin: .25rem 0 .1rem;
    color: var(--ot-text);
}

.hero__role {
    margin: 0;
    font-size: .95rem;
    color: var(--ot-muted);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .75rem;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .6rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface-alt);
    font-size: .8rem;
    color: var(--ot-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-chip .ic {
    width: .85rem;
    height: .85rem;
    flex: 0 0 .85rem;
}

.profile-chip--admin {
    border-color: var(--ot-admin-border);
    background: var(--ot-admin-bg);
    padding: .2rem .45rem;
}

.hero__aside {
    flex: 1 1 380px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.hero__note {
    padding: .75rem .9rem;
    border: 1px dashed var(--ot-primary);
    border-radius: 12px;
    background: var(--ot-primary-soft);
    font-size: .85rem;
    line-height: 1.5;
    color: var(--ot-text);
}

.hero__note--ok {
    border-style: solid;
    border-color: var(--st-present);
    background: var(--st-present-bg);
}

.hero__counters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding-top: .25rem;
}

.counter {
    position: relative;
    padding-left: .85rem;
}

.counter::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2rem;
    bottom: .2rem;
    width: 3px;
    border-radius: 2px;
    background: var(--ot-primary);
}

.counter--danger::before { background: var(--st-absent); }
.counter--warning::before { background: var(--st-partial); }

.counter__value {
    display: block;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.05;
    color: var(--ot-text);
}

.counter__label {
    display: block;
    font-size: .78rem;
    color: var(--ot-muted);
}

.quick-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.quick {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface);
    text-decoration: none;
    color: var(--ot-text);
    box-shadow: var(--sh-1);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.quick:hover,
.quick:focus-visible {
    transform: translateY(-2px);
    border-color: var(--ot-primary);
    box-shadow: var(--sh-2);
    color: var(--ot-text);
}

.quick__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.quick__icon .ic {
    width: 1.1rem;
    height: 1.1rem;
}

.quick__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.quick__title {
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.2;
}

.quick__hint {
    font-size: .78rem;
    color: var(--ot-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick__arrow {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    color: var(--ot-muted);
    transition: transform .18s ease, color .18s ease;
}

.quick:hover .quick__arrow {
    transform: translateX(3px);
    color: var(--ot-primary);
}

.road {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.road__card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface-alt);
    transition: border-color .18s ease, transform .18s ease;
}

.road__card:hover {
    border-color: var(--ot-primary);
    transform: translateY(-2px);
}

.road__card--wide {
    grid-column: 1 / -1;
}

.road__num {
    position: absolute;
    right: .35rem;
    top: -.85rem;
    font-size: 4.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ot-primary);
    opacity: .1;
    pointer-events: none;
}

.road__title {
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .45rem;
    color: var(--ot-text);
}

.road__text {
    position: relative;
    margin: 0;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--ot-muted);
}

.road__link {
    position: relative;
    display: inline-block;
    margin-top: .7rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ot-primary);
}

.faq {
    border-bottom: 1px solid var(--ot-border);
}

.faq:last-child {
    border-bottom: 0;
}

.faq__q {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem .25rem;
    font-size: .93rem;
    font-weight: 500;
    color: var(--ot-text);
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 7px;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface-alt);
    color: var(--ot-primary);
    font-size: 1rem;
    line-height: 1;
    transition: transform .18s ease, background .18s ease;
}

.faq[open] .faq__q::before {
    content: "-";
    background: var(--ot-primary-soft);
}

.faq__q:hover {
    color: var(--ot-primary);
}

.faq__a {
    padding: 0 .25rem .95rem 2.1rem;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--ot-muted);
}

.panel--accent {
    border-top: 3px solid var(--ot-primary);
}

@media (max-width: 767.98px) {
    .hero__inner {
        padding: 1.25rem 1.15rem;
        gap: 1.25rem;
    }

    .hero__person {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero__name {
        font-size: 1.3rem;
    }

    .hero__aside {
        max-width: none;
    }

    .road__num {
        font-size: 3.25rem;
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.profile-layout__side .panel:last-child,
.profile-layout__main .panel:last-child {
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .profile-hero__identity {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .profile-hero__text {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .profile-hero {
        padding: 1.15rem 1.1rem;
    }

    .profile-hero__avatar {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
        font-size: 1.25rem;
    }

    .profile-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-grid--one {
    grid-template-columns: minmax(0, 1fr);
}

.hint-list {
    margin: 0;
    padding-left: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    color: var(--ot-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.hint-list li::marker {
    color: var(--ot-primary);
}

.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: flow;
}

.flow__item {
    position: relative;
    counter-increment: flow;
    padding: 0 0 1.35rem 3rem;
}

.flow__item::before {
    content: counter(flow);
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ot-primary-soft);
    border: 1px solid var(--ot-primary);
    color: var(--ot-primary);
    font-size: .85rem;
    font-weight: 600;
}

.flow__item::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: 2.25rem;
    bottom: .35rem;
    width: 1px;
    background: var(--ot-border);
}

.flow__item:last-child {
    padding-bottom: 0;
}

.flow__item:last-child::after {
    display: none;
}

.flow__title {
    font-size: .98rem;
    font-weight: 600;
    margin: .2rem 0 .4rem;
    color: var(--ot-text);
}

.flow__text {
    margin: 0 0 .65rem;
    color: var(--ot-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.flow__item .hint-list {
    margin-bottom: .35rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.mini-card {
    padding: 1rem 1.05rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.mini-card:hover {
    border-color: var(--ot-primary);
    transform: translateY(-2px);
    box-shadow: var(--sh-1);
}

.mini-card__step {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ot-primary);
}

.mini-card__title {
    font-size: .95rem;
    font-weight: 600;
    margin: .3rem 0 .4rem;
    color: var(--ot-text);
}

.mini-card__text {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--ot-muted);
}

@media (min-width: 992px) {
    .flow__item {
        padding-left: 3.25rem;
    }
}

@media (max-width: 575.98px) {
    .flow__item {
        padding-left: 2.6rem;
    }

    .flow__item::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: .8rem;
    }

    .flow__item::after {
        left: .875rem;
        top: 2rem;
    }
}

[data-bs-theme="dark"] .state-soon .cell-planned {
    background: #3A2B33;
}

[data-bs-theme="dark"] .grid-table td.state-soon {
    background: rgba(248, 113, 113, .07);
}

.bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
}

.bulk-bar__text {
    font-size: .88rem;
    color: var(--ot-muted);
}

.grid-table .col-pick {
    width: 42px;
    text-align: center;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}

.brand-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ot-border);
    border-radius: 16px;
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
    text-decoration: none;
    color: var(--ot-text);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.brand-card:hover {
    transform: translateY(-2px);
    border-color: var(--ot-primary);
    box-shadow: var(--sh-2);
    color: var(--ot-text);
}

.brand-card__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    padding: 1rem;
    background:
        linear-gradient(45deg, var(--ot-surface-alt) 25%, transparent 25%) -8px 0/16px 16px,
        linear-gradient(-45deg, var(--ot-surface-alt) 25%, transparent 25%) -8px 0/16px 16px,
        linear-gradient(45deg, transparent 75%, var(--ot-surface-alt) 75%) 0 0/16px 16px,
        linear-gradient(-45deg, transparent 75%, var(--ot-surface-alt) 75%) 0 0/16px 16px,
        var(--ot-surface);
    border-bottom: 1px solid var(--ot-border);
}

.brand-card__frame img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.brand-card__empty {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    color: var(--ot-muted);
}

.brand-card__body {
    padding: .95rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.brand-card__name {
    font-weight: 600;
    line-height: 1.3;
}

.brand-card__meta,
.brand-card__size {
    font-size: .8rem;
    color: var(--ot-muted);
}

.brand-card__places {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .2rem;
}

.brand-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 1.5rem;
    align-items: start;
}

.brand-layout__side {
    padding-bottom: .5rem;
}

.brand-layout__preview {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .35rem;
    padding-bottom: 4.5rem;
}

@media (max-width: 1199.98px) {
    .brand-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-layout__preview {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

.brand-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: .85rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
}

.brand-current__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 64px;
    flex: 0 0 96px;
    border: 1px solid var(--ot-border);
    border-radius: 8px;
    background: var(--ot-surface);
}

.brand-current__frame img {
    max-width: 84px;
    max-height: 52px;
    object-fit: contain;
}

.brand-current__info {
    font-size: .84rem;
    line-height: 1.5;
    min-width: 0;
}

.place-list {
    display: grid;
    gap: .55rem;
}

.place {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .7rem .8rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.place:hover {
    border-color: var(--ot-primary);
}

.place__check {
    display: inline-flex;
    padding-top: .1rem;
}

.place__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.place__title {
    font-size: .9rem;
    font-weight: 500;
}

.place__hint {
    font-size: .78rem;
    color: var(--ot-muted);
}

.width-row {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.width-row .form-range {
    flex: 1 1 auto;
}

.width-row input[type="number"] {
    width: 90px;
    flex: 0 0 90px;
}

.align-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.align-option {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface-alt);
    font-size: .85rem;
    cursor: pointer;
}

.align-option:has(input:checked) {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-weight: 500;
}

.preview-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    margin-bottom: 1.1rem;
}

.preview-head__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 44px;
    flex: 0 0 64px;
    border: 1px dashed var(--ot-border);
    border-radius: 8px;
    background: var(--ot-surface);
    overflow: hidden;
}

.preview-head__logo img {
    max-width: 58px;
    max-height: 38px;
    object-fit: contain;
}

.preview-head__stub,
.sheet__stub {
    font-size: .7rem;
    color: var(--ot-muted);
}

.preview-head__name {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.25;
}

.preview-head__hint {
    font-size: .78rem;
    color: var(--ot-muted);
}

.sheet {
    position: relative;
    aspect-ratio: 210 / 297;
    padding: 8.5% 11.9%;
    border: 1px solid var(--ot-border);
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: var(--sh-2);
    overflow: hidden;
}

[data-bs-theme="dark"] .sheet {
    background: #F4F5F7;
}

.sheet__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 20%;
    margin-bottom: 4%;
    border: 1px dashed rgba(20, 82, 122, .35);
    border-radius: 3px;
    aspect-ratio: var(--logo-ratio, 3);
    overflow: hidden;
}

.sheet__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sheet--center .sheet__logo {
    margin-left: auto;
    margin-right: auto;
}

.sheet--right .sheet__logo {
    margin-left: auto;
}

.sheet__title {
    font-size: .72rem;
    font-weight: 600;
    color: #141C25;
    margin-bottom: 4%;
}

.sheet__line {
    height: 4px;
    border-radius: 2px;
    background: #D9DEE5;
    margin-bottom: 3%;
    width: 88%;
}

.sheet__line--wide { width: 100%; }
.sheet__line--short { width: 62%; }

.sheet__block {
    height: 46px;
    border-radius: 4px;
    border: 1px solid #D9DEE5;
    margin: 5% 0;
}

.sheet__ruler {
    position: absolute;
    left: 11.9%;
    bottom: 5%;
    font-size: .68rem;
    color: #5B6B7D;
    border-top: 1px dashed #C9D1DA;
    padding-top: .3rem;
}

.org-logo {
    display: block;
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}

.page-head--brand {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
}

.page-head--brand > div:not(.page-head__actions) {
    flex: 1 1 320px;
    min-width: 0;
}

.page-head--brand .org-logo {
    margin-top: .2rem;
}

.dropzone {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.05rem 1.1rem;
    border: 1px dashed var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface-alt);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.dropzone:hover,
.dropzone.is-over,
.dropzone:focus-within {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    color: var(--ot-primary);
}

.dropzone__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.dropzone__title {
    font-size: .93rem;
    font-weight: 600;
    color: var(--ot-text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropzone__hint {
    font-size: .8rem;
    color: var(--ot-muted);
}

.way-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.way {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--ot-border);
    border-radius: 16px;
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
}

.way__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.way__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.way__text {
    margin: 0;
    font-size: .87rem;
    line-height: 1.55;
    color: var(--ot-muted);
    flex: 1 1 auto;
}

.way__link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--ot-primary);
}

.way__form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.way__form input {
    flex: 1 1 160px;
    min-width: 0;
}

.group-title {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ot-muted);
    margin: 1.4rem 0 .75rem;
}

.group-title:first-child {
    margin-top: 0;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.template-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface-alt);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.template-card:hover {
    border-color: var(--ot-primary);
    transform: translateY(-2px);
    box-shadow: var(--sh-1);
}

.template-card__title {
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.template-card__text {
    margin: 0;
    font-size: .84rem;
    line-height: 1.5;
    color: var(--ot-muted);
    flex: 1 1 auto;
}

.template-card__tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface);
    font-size: .75rem;
    color: var(--ot-muted);
}

.tag--soft {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    margin-left: .4rem;
}

.tag--button {
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.tag--button:hover {
    border-color: var(--ot-primary);
    color: var(--ot-primary);
}

.tag--button.is-active {
    border-color: var(--ot-primary);
    background: var(--ot-primary);
    color: var(--ot-on-primary);
}

.constructor {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 1.5rem;
    align-items: start;
}

.constructor__side,
.editor__side {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .35rem;
    padding-bottom: 4.5rem;
}

@media (max-width: 1199.98px) {
    .constructor,
    .editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .constructor__side,
    .editor__side {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

.block-list {
    display: grid;
    gap: .6rem;
}

.block-pick {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem .95rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.block-pick:hover {
    border-color: var(--ot-primary);
}

.block-pick.is-checked {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.block-pick.is-suggested {
    box-shadow: inset 0 0 0 1px var(--ot-primary);
}

.block-pick__check {
    padding-top: .15rem;
}

.block-pick__body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.block-pick__title {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
}

.block-pick__lines {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.block-pick__line {
    position: relative;
    padding-left: .85rem;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ot-muted);
}

.block-pick__line::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ot-primary);
}

.revision-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.revision {
    padding: .75rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
}

.revision__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}

.revision__version {
    font-weight: 600;
    font-size: .88rem;
}

.revision__date {
    font-size: .8rem;
    color: var(--ot-muted);
}

.revision__comment {
    margin: .3rem 0 .55rem;
    font-size: .8rem;
    color: var(--ot-muted);
}

.sticky-bar--wide {
    grid-column: 1 / -1;
}

:root {
    --sb-track: rgba(20, 82, 122, .06);
    --sb-thumb: #C3CFDA;
    --sb-thumb-hover: #9BAFC1;
}

[data-bs-theme="dark"] {
    --sb-track: rgba(255, 255, 255, .04);
    --sb-thumb: #33414F;
    --sb-thumb-hover: #46596B;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--sb-track);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--sb-thumb);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sb-thumb-hover);
    background-clip: content-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.sidenav__body,
.tab-nav {
    scrollbar-width: none;
}

.table-wrap::-webkit-scrollbar {
    height: 10px;
}

.found-line {
    font-size: .85rem;
    color: var(--ot-muted);
    margin-bottom: 1rem;
}

.filter-bar__field--wide {
    flex: 2 1 260px;
}

.template-card__kind {
    display: inline-block;
    align-self: flex-start;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: 1.5rem;
}

.pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 40px;
    padding: .45rem .75rem;
    border: 1px solid var(--ot-border);
    border-radius: 10px;
    background: var(--ot-surface);
    color: var(--ot-text);
    font-size: .88rem;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.pager__item:hover {
    border-color: var(--ot-primary);
    color: var(--ot-primary);
}

.pager__item.is-current {
    background: var(--ot-primary);
    border-color: var(--ot-primary);
    color: var(--ot-on-primary);
    font-weight: 600;
}

.pager__item.is-disabled {
    color: var(--ot-muted);
    background: var(--ot-surface-alt);
    cursor: default;
}

.pager__gap {
    padding: 0 .25rem;
    color: var(--ot-muted);
}

.wizard {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.wizard__form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .35rem;
    padding-bottom: 4.5rem;
    position: sticky;
    top: 1.5rem;
}

.wizard__preview {
    position: sticky;
    top: 1.5rem;
}

@media (max-width: 1199.98px) {
    .wizard {
        grid-template-columns: minmax(0, 1fr);
    }

    .wizard__form,
    .wizard__preview {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

.fold {
    flex: 0 0 auto;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
}

.fold[open] {
    border-color: var(--ot-primary);
    box-shadow: var(--sh-2);
}

.fold[open] + .fold {
    margin-top: .15rem;
}

.fold__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    cursor: pointer;
    list-style: none;
    border-radius: 13px;
    transition: background .15s ease;
}

.fold[open] .fold__head {
    border-radius: 13px 13px 0 0;
    background: var(--ot-primary-soft);
}

.fold__head::-webkit-details-marker {
    display: none;
}

.fold__head:hover {
    background: var(--ot-surface-alt);
}

.fold__head::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ot-muted);
    border-bottom: 2px solid var(--ot-muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex: 0 0 8px;
    margin-left: auto;
}

.fold[open] .fold__head::after {
    transform: rotate(-135deg);
}

.fold__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ot-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

.fold[open] .fold__title {
    color: var(--ot-primary);
}

.fold__hint {
    font-size: .8rem;
    color: var(--ot-muted);
    white-space: nowrap;
}

.fold__count {
    display: inline-block;
    min-width: 1.4rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-weight: 600;
    text-align: center;
}

.fold__body {
    padding: 0 1rem 1.1rem;
    border-top: 1px solid var(--ot-border);
    padding-top: 1rem;
}

.fold__note {
    margin: 0 0 .75rem;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ot-muted);
}

.picker {
    position: relative;
}

.picker__search {
    position: relative;
    display: flex;
    align-items: center;
}

.picker__search .ic {
    position: absolute;
    left: .6rem;
    width: 1rem;
    height: 1rem;
    color: var(--ot-muted);
    pointer-events: none;
}

.picker__input {
    padding-left: 2rem;
}

.picker__results {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + .3rem);
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface);
    box-shadow: var(--sh-2);
    padding: .3rem;
}

.picker__option {
    display: block;
    width: 100%;
    padding: .5rem .6rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ot-text);
    font-size: .85rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.picker__option:hover,
.picker__option:focus-visible {
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.picker__empty {
    padding: .5rem .6rem;
    font-size: .8rem;
    color: var(--ot-muted);
}

.picker__chosen {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .7rem;
    min-height: 1.5rem;
}

.picker__chosen:empty::before {
    content: attr(data-empty);
    font-size: .8rem;
    color: var(--ot-muted);
}

.picker__chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .25rem .35rem .25rem .6rem;
    border: 1px solid var(--ot-primary);
    border-radius: 999px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-size: .8rem;
}

.picker__chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.picker__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ot-primary);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.picker__remove:hover {
    background: var(--ot-primary);
    color: var(--ot-on-primary);
}

.preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    margin-bottom: .75rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface);
}

.preview-bar__title {
    font-weight: 600;
    font-size: .9rem;
}

.preview-bar__meta {
    font-size: .8rem;
    color: var(--ot-muted);
    margin-right: auto;
}

.paper {
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding: 3.5% 6%;
    border: 1px solid var(--ot-border);
    border-radius: 6px;
    background: #FFFFFF;
    color: #141C25;
    box-shadow: var(--sh-2);
    font-family: "Times New Roman", Times, serif;
    font-size: .88rem;
    line-height: 1.5;
}

[data-bs-theme="dark"] .paper {
    background: #F5F6F8;
}

.paper__head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.paper__union,
.paper__approve {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    max-width: 46%;
    font-size: .82rem;
}

.paper__head .paper__approve {
    text-align: right;
    margin-left: auto;
}

.paper__muted {
    color: #5B6B7D;
}

.paper__line {
    border-top: 1px solid #C9D1DA;
    padding-top: .15rem;
    margin-top: .35rem;
}

.paper__title {
    text-align: center;
    margin: 2rem 0 2.5rem;
}

.paper__title-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.paper__title-sub {
    font-size: 1.05rem;
    font-weight: 600;
}

.paper__title-name {
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.paper__title-number {
    margin-top: .35rem;
    color: #5B6B7D;
}

.paper__section {
    margin: 1.4rem 0 .6rem;
    font-weight: 700;
    font-size: .95rem;
}

.paper__line-item {
    margin: 0 0 .35rem;
    text-align: justify;
    text-indent: 1.1rem;
}

.paper__empty {
    color: #5B6B7D;
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
}

.way--accent {
    border-color: var(--ot-primary);
    background:
        radial-gradient(600px 120px at 0% 0%, var(--ot-primary-soft), transparent 70%),
        var(--ot-surface);
}

@media print {
    .topbar,
    .sidenav,
    .sidenav-backdrop,
    .crumbs,
    .page-head,
    .tab-nav,
    .wizard__form,
    .preview-bar,
    .sticky-bar,
    .toast-stack,
    .offline-banner {
        display: none !important;
    }

    .app-main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .wizard {
        display: block;
    }

    .wizard__preview {
        position: static;
    }

    .paper {
        max-height: none;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        font-size: 12pt;
    }
}

.org-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 1rem;
}

.org-form .sticky-bar--wide {
    grid-column: auto;
}

.autosave {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: min(560px, calc(100vw - 2rem));
    padding: .7rem .9rem;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface);
    box-shadow: var(--sh-2);
    transition: border-color .2s ease, opacity .2s ease;
}

@media (min-width: 992px) {
    .autosave {
        left: calc(50% - (var(--nav-rail) + var(--nav-gap)) / 2);
    }
}

.autosave.is-dirty {
    border-color: var(--st-partial);
}

.autosave.is-saving {
    border-color: var(--ot-primary);
}

.autosave.is-stuck {
    border-color: color-mix(in srgb, var(--st-partial) 55%, transparent);
    background: var(--st-partial-bg);
}

.autosave.is-stuck .autosave__dot {
    background: var(--st-partial);
}

.autosave__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--st-present);
    box-shadow: 0 0 0 4px var(--st-present-bg);
}

.autosave.is-dirty .autosave__dot {
    background: var(--st-partial);
    box-shadow: 0 0 0 4px var(--st-partial-bg);
    animation: autosave-pulse 1.4s ease-in-out infinite;
}

.autosave.is-saving .autosave__dot {
    background: var(--ot-primary);
    box-shadow: 0 0 0 4px var(--ot-primary-soft);
    animation: autosave-pulse .8s ease-in-out infinite;
}

@keyframes autosave-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.75); opacity: .65; }
}

.autosave__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.autosave__state {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ot-text);
}

.autosave__meta {
    font-size: .78rem;
    color: var(--ot-muted);
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .autosave__dot {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .autosave {
        bottom: 5rem;
    }
}

@media (max-width: 575.98px) {
    .autosave {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .autosave__text {
        flex: 1 1 100%;
        order: 2;
    }
}

@media print {
    .autosave {
        display: none !important;
    }
}

.item-tag--shot {
    border-color: color-mix(in srgb, var(--bs-primary) 45%, transparent);
    color: var(--bs-primary);
}

.shots {
    margin-top: .5rem;
}

.shots__toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--bs-secondary-color);
    font-size: .82rem;
    line-height: 1.2;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.shots__toggle:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 8%, transparent);
}

.shots__toggle .ic {
    width: 1rem;
    height: 1rem;
}

.shots__count {
    display: none;
    min-width: 1.25rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
}

.shots.has-photos .shots__count {
    display: inline-block;
}

.shots.has-photos .shots__toggle {
    border-style: solid;
    border-color: color-mix(in srgb, var(--bs-primary) 45%, transparent);
    color: var(--bs-primary);
}

.shots__body {
    display: none;
    margin-top: .6rem;
}

.shots.is-open .shots__body {
    display: block;
}

.shots__drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    width: 100%;
    min-height: 92px;
    padding: .85rem 1rem;
    border: 1.5px dashed var(--bs-border-color);
    border-radius: var(--radius-md, .75rem);
    background: color-mix(in srgb, var(--bs-body-color) 3%, transparent);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.shots__drop:hover,
.shots__drop:focus-within {
    border-color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 7%, transparent);
}

.shots__drop.is-hover {
    border-color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 12%, transparent);
    transform: scale(1.01);
}

.shots__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.shots__icon {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--bs-primary);
}

.shots__hint {
    font-size: .86rem;
    font-weight: 500;
}

.shots__note {
    font-size: .74rem;
    color: var(--bs-secondary-color);
}

.shots__bar {
    display: none;
    height: 4px;
    margin-top: .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-body-color) 10%, transparent);
    overflow: hidden;
}

.shots.is-busy .shots__bar {
    display: block;
}

.shots__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--bs-primary);
    transition: width .2s ease;
}

.shots__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: .5rem;
    margin-top: .6rem;
}

.shots__grid:empty {
    margin-top: 0;
}

.shots__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius-md, .75rem);
    background: var(--bs-body-bg);
    overflow: hidden;
}

.shots__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: color-mix(in srgb, var(--bs-body-color) 6%, transparent);
    cursor: zoom-in;
}

.shots__kill {
    position: absolute;
    top: .3rem;
    right: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, .62);
    color: #fff;
    opacity: 0;
    transition: opacity .15s ease, background-color .15s ease;
}

.shots__tile:hover .shots__kill,
.shots__tile:focus-within .shots__kill {
    opacity: 1;
}

.shots__kill:hover {
    background: var(--bs-danger);
}

.shots__kill .ic {
    width: .8rem;
    height: .8rem;
}

.shots__cap {
    width: 100%;
    padding: .3rem .4rem;
    border: 0;
    border-top: 1px solid var(--bs-border-color);
    background: transparent;
    color: var(--bs-body-color);
    font-size: .72rem;
}

.shots__cap:focus {
    outline: none;
    background: color-mix(in srgb, var(--bs-primary) 8%, transparent);
}

.shots__meta {
    padding: 0 .4rem .3rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.shots__status {
    margin-top: .4rem;
    color: var(--bs-secondary-color);
    font-size: .74rem;
    min-height: 1rem;
}

.shots__status.is-error {
    color: var(--bs-danger);
}

.shot-box {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(9, 11, 16, .86);
    backdrop-filter: blur(3px);
}

.shot-box.is-open {
    display: flex;
}

.shot-box__img {
    max-width: min(1100px, 94vw);
    max-height: 84vh;
    border-radius: var(--radius-md, .75rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    object-fit: contain;
}

.shot-box__cap {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    max-width: 90vw;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, .7);
    color: #fff;
    font-size: .84rem;
    text-align: center;
}

.shot-box__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.shot-box__close:hover {
    background: rgba(255, 255, 255, .26);
}

@media (max-width: 575.98px) {
    .shots__grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    }
}

@media print {
    .shots,
    .shot-box {
        display: none !important;
    }
}

.foot {
    position: relative;
    margin-top: 3rem;
    padding: 2.5rem 0 1.5rem;
    background: var(--ot-surface);
    border-top: 1px solid var(--ot-border);
    overflow: hidden;
}

.foot__glow {
    position: absolute;
    inset: -60% 40% auto -10%;
    height: 320px;
    background:
        radial-gradient(60% 60% at 20% 50%, color-mix(in srgb, var(--ot-primary) 16%, transparent), transparent 70%),
        radial-gradient(50% 50% at 70% 40%, color-mix(in srgb, var(--st-present) 12%, transparent), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

.foot__inner {
    position: relative;
}

.foot__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
    gap: 1.75rem 2rem;
}

.foot__mark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: inherit;
    text-decoration: none;
}

.foot__mark img {
    border-radius: 10px;
}

.foot__name {
    display: block;
    font-weight: 700;
    letter-spacing: -.01em;
}

.foot__tag {
    display: block;
    color: var(--ot-muted);
    font-size: .78rem;
}

.foot__about {
    margin: .85rem 0 .75rem;
    max-width: 34ch;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.foot__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.foot__badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .6rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    font-size: .74rem;
}

.foot__badge .ic {
    width: .85rem;
    height: .85rem;
    color: var(--ot-primary);
}

.foot__head {
    margin-bottom: .6rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ot-muted);
}

.foot__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .38rem;
}

.foot__list a,
.foot__link-btn {
    position: relative;
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ot-text);
    font-size: .85rem;
    text-align: left;
    text-decoration: none;
    transition: color .15s ease;
}

.foot__list a::after,
.foot__link-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 1px;
    background: var(--ot-primary);
    transition: right .2s ease;
}

.foot__list a:hover,
.foot__link-btn:hover {
    color: var(--ot-primary);
}

.foot__list a:hover::after,
.foot__link-btn:hover::after {
    right: 0;
}

.foot__line {
    height: 1px;
    margin: 1.6rem 0 1rem;
    background: linear-gradient(
        90deg,
        transparent,
        var(--ot-border) 15%,
        var(--ot-border) 85%,
        transparent
    );
}

.foot__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    color: var(--ot-muted);
    font-size: .78rem;
}

.foot__legal {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
}

.foot__note {
    max-width: 52ch;
}

.cookie {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    width: min(520px, calc(100vw - 2.5rem));
    padding: 1rem 1.1rem;
    border: 1px solid var(--ot-border);
    border-radius: 16px;
    background: var(--ot-surface);
    box-shadow: var(--sh-2);
    animation: cookie-rise .35s cubic-bezier(.22, .61, .36, 1);
}

@keyframes cookie-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 12px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.cookie__title {
    font-weight: 600;
    font-size: .92rem;
}

.cookie__note {
    margin: .2rem 0 0;
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.45;
}

.cookie__actions {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 0 0 auto;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
    align-items: start;
}

.legal {
    padding: 1.75rem 2rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
}

.legal__head {
    margin: 1.6rem 0 .6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ot-text);
}

.legal__head:first-child {
    margin-top: 0;
}

.legal__text {
    margin: 0 0 .6rem;
    font-size: .92rem;
    line-height: 1.65;
    text-align: justify;
}

.legal__list {
    margin: 0 0 .8rem;
    padding-left: 1.2rem;
    font-size: .92rem;
    line-height: 1.6;
}

.legal__list li {
    margin-bottom: .25rem;
}

.legal-side {
    position: sticky;
    top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.legal-side__box {
    padding: 1rem 1.1rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
}

.legal-side__title {
    margin-bottom: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ot-muted);
}

.legal-side__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .35rem;
}

.legal-side__list a {
    font-size: .84rem;
    color: var(--ot-text);
    text-decoration: none;
}

.legal-side__list a:hover {
    color: var(--ot-primary);
}

.legal-side__list a.is-active {
    color: var(--ot-primary);
    font-weight: 600;
}

.legal-side__text {
    margin: 0 0 .25rem;
    font-size: .84rem;
    color: var(--ot-muted);
}

.doc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.doc-card:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
}

.doc-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.doc-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.doc-card__pill {
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    font-size: .7rem;
    white-space: nowrap;
}

.doc-card__pill--required {
    background: color-mix(in srgb, var(--st-absent) 12%, transparent);
    color: var(--st-absent);
}

.doc-card__pill--optional {
    background: color-mix(in srgb, var(--st-partial) 14%, transparent);
    color: var(--st-partial);
}

.doc-card__title {
    font-weight: 600;
    line-height: 1.35;
}

.doc-card__text {
    margin: .35rem 0 .75rem;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.doc-card__meta {
    margin-top: auto;
    color: var(--ot-muted);
    font-size: .74rem;
}

.facts {
    margin: 0;
    display: grid;
    gap: .55rem;
}

.facts__row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: .5rem 1rem;
}

.facts__row dt {
    color: var(--ot-muted);
    font-size: .82rem;
    font-weight: 500;
}

.facts__row dd {
    margin: 0;
    font-size: .88rem;
}

.shield-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.shield-card {
    padding: 1.25rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
}

.shield-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: .75rem;
    border-radius: 12px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.shield-card__title {
    margin: 0 0 .4rem;
    font-size: 1rem;
    font-weight: 600;
}

.shield-card__text {
    margin: 0;
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.talk-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .9rem;
}

.talk-list__q {
    display: block;
    font-weight: 600;
    font-size: .92rem;
}

.talk-list__a {
    display: block;
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .87rem;
    line-height: 1.55;
}

.consent-list {
    display: grid;
    gap: .6rem;
}

.consent-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.consent-row.is-stale {
    border-color: color-mix(in srgb, var(--st-partial) 45%, transparent);
}

.consent-row__title {
    font-weight: 600;
    color: var(--ot-text);
    text-decoration: none;
}

.consent-row__title:hover {
    color: var(--ot-primary);
}

.consent-row__meta {
    margin-top: .15rem;
    color: var(--ot-muted);
    font-size: .78rem;
}

.consent-row__side {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.signup-consents {
    display: grid;
    gap: .55rem;
    margin: 1rem 0 .25rem;
    padding: .9rem 1rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.signup-consents__head {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ot-muted);
}

.signup-consents__row {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .84rem;
    line-height: 1.45;
}

.signup-consents__row .form-check-input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

.signup-consents__row .invalid-feedback {
    display: block;
    font-size: .76rem;
}

.signup-consents__note {
    color: var(--ot-muted);
    font-size: .74rem;
}

@media (min-width: 992px) {
    .foot {
        margin-right: calc(var(--nav-rail) + var(--nav-gap));
    }
}

@media (max-width: 991.98px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .foot__grid {
        grid-template-columns: 1fr 1fr;
    }

    .foot__brand {
        grid-column: 1 / -1;
    }

    .legal {
        padding: 1.25rem 1.1rem;
    }

    .cookie {
        left: .75rem;
        right: .75rem;
        bottom: 4.75rem;
        width: auto;
        flex-wrap: wrap;
    }

    .cookie__actions {
        flex-direction: row;
        width: 100%;
    }

    .cookie__actions .btn {
        flex: 1;
    }

    .facts__row {
        grid-template-columns: 1fr;
        gap: .1rem;
    }
}

@media print {
    .foot,
    .cookie {
        display: none !important;
    }

    .legal {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}

.errpage {
    max-width: 640px;
    margin: 2rem auto 3rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--ot-border);
    border-radius: 20px;
    background: var(--ot-surface);
    box-shadow: var(--sh-1);
    text-align: center;
}

.errpage__art {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    margin-bottom: 1.25rem;
}

.errpage__code {
    position: relative;
    z-index: 2;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -.05em;
    background: linear-gradient(135deg, var(--ot-primary), var(--st-present));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.errpage__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed color-mix(in srgb, var(--ot-primary) 35%, transparent);
    animation: errpage-spin 26s linear infinite;
}

.errpage__ring::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        color-mix(in srgb, var(--ot-primary) 14%, transparent),
        transparent 70%
    );
}

@keyframes errpage-spin {
    to {
        transform: rotate(360deg);
    }
}

.errpage__icon {
    position: absolute;
    right: 6px;
    bottom: 10px;
    z-index: 2;
    width: 1.6rem;
    height: 1.6rem;
    padding: .35rem;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    color: var(--ot-primary);
}

.errpage__title {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.errpage__text {
    margin: 0 auto 1.25rem;
    max-width: 44ch;
    color: var(--ot-muted);
    line-height: 1.6;
}

.errpage__hint {
    display: inline-flex;
    align-items: flex-start;
    gap: .5rem;
    max-width: 48ch;
    margin: 0 auto 1.25rem;
    padding: .6rem .9rem;
    border-radius: 12px;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.45;
    text-align: left;
}

.errpage__hint .ic {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: .1rem;
    color: var(--ot-primary);
}

.errpage__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

@media (max-width: 575.98px) {
    .errpage {
        padding: 1.75rem 1.1rem;
    }

    .errpage__art {
        width: 120px;
        height: 120px;
    }

    .errpage__code {
        font-size: 2.6rem;
    }

    .errpage__actions .btn {
        flex: 1 1 100%;
    }
}

.legal-alert {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.25rem;
    padding: .8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--st-partial) 45%, transparent);
    border-radius: var(--ot-radius);
    background: var(--st-partial-bg);
}

.legal-alert > .ic {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    color: var(--st-partial);
}

.legal-alert__text {
    flex: 1 1 auto;
    min-width: 0;
}

.legal-alert__title {
    display: block;
    font-weight: 600;
    font-size: .9rem;
}

.legal-alert__hint {
    display: block;
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.legal-alert form {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .legal-alert {
        flex-wrap: wrap;
    }

    .legal-alert form {
        width: 100%;
    }

    .legal-alert form .btn {
        width: 100%;
    }
}

@media print {
    .legal-alert {
        display: none !important;
    }
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .75rem;
}

.upload-row__field {
    flex: 1 1 320px;
    min-width: 0;
}

.member-list {
    display: grid;
    gap: .5rem;
}

.member-row {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(150px, 1fr) minmax(180px, 1.2fr) auto;
    gap: .5rem;
    align-items: center;
}

.member-row__kill {
    padding: .25rem .5rem;
    line-height: 1;
}

.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: .6rem;
}

.pick {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.pick:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
}

.pick.is-on {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.pick__text {
    min-width: 0;
}

.pick__title {
    display: block;
    font-weight: 600;
    font-size: .88rem;
}

.pick__hint {
    display: block;
    color: var(--ot-muted);
    font-size: .76rem;
    line-height: 1.35;
}

.pick__hours {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
    width: 92px;
}

.pick__hours input {
    width: 100%;
    text-align: center;
}

.pick__unit {
    color: var(--ot-muted);
    font-size: .68rem;
    white-space: nowrap;
}

.people-list {
    display: grid;
    gap: .4rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: .25rem;
}

.people-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .75rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-sm);
    background: var(--ot-surface);
}

.people-row__main {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-width: 0;
    cursor: pointer;
}

.people-row__name {
    display: block;
    font-weight: 500;
    font-size: .9rem;
}

.people-row__hint {
    display: block;
    color: var(--ot-muted);
    font-size: .76rem;
}

.people-row__result {
    width: 190px;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .member-row {
        grid-template-columns: 1fr auto;
    }

    .member-row select {
        grid-column: 1 / -1;
    }

    .people-row {
        flex-wrap: wrap;
    }

    .people-row__result {
        width: 100%;
    }
}

.people-row.is-due {
    border-color: color-mix(in srgb, var(--st-partial) 45%, transparent);
    background: color-mix(in srgb, var(--st-partial) 7%, transparent);
}

.people-row__side {
    flex: 0 0 auto;
}

.exam-list {
    display: grid;
    gap: .75rem;
}

.exam-row {
    position: relative;
    padding: .9rem 1rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.exam-row__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
}

.exam-row__name {
    font-weight: 600;
    color: var(--ot-text);
    text-decoration: none;
}

.exam-row__name:hover {
    color: var(--ot-primary);
}

.exam-row__hint {
    display: block;
    color: var(--ot-muted);
    font-size: .78rem;
}

.exam-row__money {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.exam-row__sum {
    font-weight: 700;
    font-size: 1rem;
}

.exam-row__own {
    color: var(--ot-muted);
    font-size: .76rem;
}

.exam-row__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .6rem;
    margin-top: .7rem;
}

.exam-field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 150px;
}

.exam-field > span {
    color: var(--ot-muted);
    font-size: .72rem;
}

.exam-field--check {
    flex-direction: row;
    align-items: center;
    gap: .4rem;
    min-width: auto;
    padding-bottom: .35rem;
}

.exam-field--check > span {
    font-size: .8rem;
    color: var(--ot-text);
}

.exam-row__services {
    margin-top: .7rem;
}

.exam-row__services > summary {
    cursor: pointer;
    font-size: .84rem;
    color: var(--ot-primary);
}

.exam-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .4rem;
    margin-top: .6rem;
}

.exam-service {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .45rem;
    padding: .45rem .6rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-sm);
    background: var(--ot-surface);
    font-size: .82rem;
    cursor: pointer;
}

.exam-service.is-own {
    border-color: color-mix(in srgb, var(--st-present) 45%, transparent);
    background: var(--st-present-bg);
}

.exam-service__price {
    font-weight: 600;
    white-space: nowrap;
}

.exam-service__reason {
    grid-column: 2 / -1;
    color: var(--ot-muted);
    font-size: .7rem;
}

.exam-row__kill {
    position: absolute;
    top: .75rem;
    right: .75rem;
    opacity: 0;
    transition: opacity .15s ease;
}

.exam-row:hover .exam-row__kill,
.exam-row:focus-within .exam-row__kill {
    opacity: 1;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: .5rem;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-sm);
    background: var(--ot-surface-alt);
}

.price-row__name {
    font-size: .86rem;
}

.price-row__kind {
    display: block;
    color: var(--ot-muted);
    font-size: .7rem;
}

@media (max-width: 575.98px) {
    .exam-row__kill {
        position: static;
        opacity: 1;
        margin-top: .6rem;
    }

    .exam-field {
        min-width: 100%;
    }
}

.grade-bar {
    display: flex;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sh-1);
}

.grade-bar__part {
    flex: var(--part) 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    background: var(--tone);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.grade-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: .85rem;
}

.grade-legend__item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--ot-muted);
}

.grade-legend__dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--tone);
}

.grade-legend__range {
    color: var(--ot-muted);
    font-size: .74rem;
}

.grade-legend__count {
    font-weight: 700;
    color: var(--ot-text);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: .75rem;
}

.risk-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.risk-card:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
}

.risk-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.risk-card__number {
    color: var(--ot-muted);
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.risk-card__title {
    font-weight: 600;
    line-height: 1.35;
}

.risk-card__meta {
    color: var(--ot-muted);
    font-size: .8rem;
}

.risk-card__bottom {
    display: flex;
    gap: 1rem;
    margin-top: .35rem;
    padding-top: .5rem;
    border-top: 1px solid var(--ot-border);
    color: var(--ot-muted);
    font-size: .76rem;
}

.matrix__scroll {
    overflow-x: auto;
    padding-bottom: .25rem;
}

.matrix__table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 3px;
}

.matrix__corner {
    position: relative;
    width: 110px;
    padding: .35rem;
    background: transparent;
}

.matrix__axis {
    display: block;
    color: var(--ot-muted);
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
}

.matrix__axis--x {
    text-align: right;
}

.matrix__head,
.matrix__side {
    padding: .35rem .45rem;
    background: var(--ot-surface-alt);
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
}

.matrix__table .matrix__side {
    text-align: left;
    min-width: 108px;
}

.matrix__code {
    display: block;
    font-weight: 700;
    font-size: .78rem;
}

.matrix__name {
    display: block;
    color: var(--ot-muted);
    font-size: .68rem;
    line-height: 1.25;
}

.matrix__cell {
    padding: .4rem .3rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--tone) 22%, transparent);
    text-align: center;
    transition: transform .12s ease, box-shadow .12s ease;
}

.matrix__cell:hover {
    transform: scale(1.04);
    box-shadow: var(--sh-1);
}

.matrix__score {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: var(--tone);
}

.matrix__mark {
    display: block;
    color: var(--ot-muted);
    font-size: .62rem;
}

.matrix__legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .75rem;
}

.matrix__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 18%, transparent);
    color: var(--tone);
    font-size: .74rem;
    font-weight: 600;
}

.matrix__range {
    color: var(--ot-muted);
    font-weight: 400;
}

.risk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.risk-layout__side {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.risk-list {
    display: grid;
    gap: .6rem;
}

.risk-row {
    padding: .85rem 1rem;
    border: 1px solid var(--ot-border);
    border-left: 3px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
    transition: border-color .15s ease;
}

.risk-row.is-bad {
    border-left-color: var(--st-absent);
}

.risk-row__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem .75rem;
}

.risk-row__title {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-width: 0;
}

.risk-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 58px;
    padding: .3rem .4rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--tone) 18%, transparent);
    color: var(--tone);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.1;
}

.risk-badge__score {
    font-size: 1.05rem;
    font-weight: 800;
}

.risk-row__name {
    font-weight: 500;
    line-height: 1.4;
}

.risk-row__side {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.risk-row__grade {
    color: var(--ot-muted);
    font-size: .78rem;
}

.risk-row__event {
    margin: .5rem 0 0;
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.risk-row__grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 170px 170px;
    gap: .5rem;
    margin-top: .7rem;
}

.risk-field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.risk-field > span {
    color: var(--ot-muted);
    font-size: .7rem;
}

.risk-row__measures {
    margin: .7rem 0 0;
    padding-left: 1.1rem;
    color: var(--ot-text);
    font-size: .82rem;
    line-height: 1.5;
}

.risk-row__empty {
    margin: .7rem 0 0;
    color: var(--ot-muted);
    font-size: .78rem;
}

.risk-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ot-border);
}

.suggest-list {
    display: grid;
    gap: .4rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: .25rem;
}

.suggest {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-sm);
    background: var(--ot-surface);
    cursor: pointer;
    transition: border-color .15s ease;
}

.suggest:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 40%, transparent);
}

.suggest__name {
    display: block;
    font-size: .82rem;
    line-height: 1.35;
}

.suggest__meta {
    display: block;
    color: var(--ot-muted);
    font-size: .7rem;
}

.suggest__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.7rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--tone) 18%, transparent);
    color: var(--tone);
    font-weight: 700;
    font-size: .8rem;
}

.found-list {
    display: grid;
    gap: .5rem;
    margin-top: .75rem;
    max-height: 360px;
    overflow-y: auto;
}

.found {
    padding: .6rem .7rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-sm);
    background: var(--ot-surface-alt);
}

.found__name {
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.35;
}

.found__meta {
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .74rem;
}

.found__ppe {
    margin-top: .2rem;
    color: var(--ot-primary);
    font-size: .72rem;
}

.ppe-list {
    display: grid;
    gap: .5rem;
}

.ppe-row {
    padding: .55rem .7rem;
    border-left: 3px solid var(--ot-primary);
    border-radius: 0 var(--ot-radius-sm) var(--ot-radius-sm) 0;
    background: var(--ot-surface-alt);
}

.ppe-row__name {
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.35;
}

.ppe-row__norm {
    color: var(--ot-primary);
    font-size: .72rem;
}

.ppe-row__why {
    margin-top: .15rem;
    color: var(--ot-muted);
    font-size: .7rem;
    line-height: 1.35;
}

.upload-row__field--narrow {
    flex: 0 0 200px;
}

@media (max-width: 1199.98px) {
    .risk-layout {
        grid-template-columns: 1fr;
    }

    .risk-layout__side {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .risk-row__grid {
        grid-template-columns: 1fr;
    }

    .matrix__table {
        min-width: 460px;
    }

    .upload-row__field--narrow {
        flex: 1 1 100%;
    }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: .75rem;
}

.menu-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: .9rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.menu-card:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
}

.menu-card:hover .menu-card__arrow {
    transform: translateX(3px);
    opacity: 1;
}

.menu-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.menu-card__icon .ic {
    width: 1.15rem;
    height: 1.15rem;
}

.menu-card__body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.menu-card__title {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
}

.menu-card__text {
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.menu-card__arrow {
    width: 1rem;
    height: 1rem;
    margin-top: .7rem;
    color: var(--ot-primary);
    opacity: .45;
    transition: transform .16s ease, opacity .16s ease;
}

.menu-group + .menu-group {
    margin-top: 1rem;
}

.sidenav__item--menu {
    border: 1px dashed color-mix(in srgb, var(--ot-primary) 45%, transparent);
    background: color-mix(in srgb, var(--ot-primary) 8%, transparent);
}

.sidenav__item--menu:hover {
    background: color-mix(in srgb, var(--ot-primary) 14%, transparent);
}

.sidenav__item[data-hint] {
    position: relative;
}

.sidenav__item[data-hint]::after {
    content: attr(data-hint);
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    z-index: 40;
    width: max-content;
    max-width: 240px;
    padding: .5rem .7rem;
    border-radius: 10px;
    background: var(--ot-text);
    color: var(--ot-surface);
    font-size: .74rem;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    box-shadow: var(--sh-2);
}

@media (min-width: 992px) {
    .sidenav__item[data-hint]:hover::after,
    .sidenav__item[data-hint]:focus-visible::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 991.98px) {
    .sidenav__item[data-hint]::after {
        display: none;
    }

    .menu-card {
        padding: .85rem .95rem;
        gap: .75rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.chip-btn {
    padding: .3rem .7rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface-alt);
    color: var(--ot-text);
    font-size: .78rem;
    transition: border-color .15s ease, background-color .15s ease;
}

.chip-btn:hover {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.found--pick {
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.found--pick:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
}

.found--pick.is-picked {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.ppe-lines {
    display: grid;
    gap: .5rem;
}

.ppe-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 110px 120px auto;
    align-items: end;
    gap: .6rem;
    padding: .65rem .8rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.ppe-line__main {
    min-width: 0;
}

.ppe-line__name {
    display: block;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
}

.ppe-line__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .15rem;
    color: var(--ot-muted);
    font-size: .72rem;
}

.ppe-line__field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ppe-line__field > span {
    color: var(--ot-muted);
    font-size: .7rem;
}

.issue-list {
    display: grid;
    gap: .5rem;
}

.issue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ot-border);
    border-left: 3px solid var(--st-present);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.issue.is-expired {
    border-left-color: var(--st-absent);
    background: var(--st-absent-bg);
}

.issue__main {
    min-width: 0;
}

.issue__name {
    display: block;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
}

.issue__meta {
    display: block;
    margin-top: .15rem;
    color: var(--ot-muted);
    font-size: .74rem;
}

.issue__side {
    display: flex;
    align-items: center;
    gap: .5rem;
}

@media (max-width: 991.98px) {
    .ppe-line {
        grid-template-columns: 1fr 1fr;
    }

    .ppe-line__main {
        grid-column: 1 / -1;
    }

    .ppe-line form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .ppe-line {
        grid-template-columns: 1fr;
    }

    .issue {
        flex-direction: column;
        align-items: flex-start;
    }
}

.legal-alert--ok {
    border-color: color-mix(in srgb, var(--st-present) 45%, transparent);
    background: var(--st-present-bg);
}

.legal-alert--ok > .ic {
    color: var(--st-present);
}

.legal-alert--overdue {
    border-color: color-mix(in srgb, var(--st-absent) 45%, transparent);
    background: var(--st-absent-bg);
}

.legal-alert--overdue > .ic {
    color: var(--st-absent);
}

.panel--soft {
    border-style: dashed;
    background: var(--ot-surface-alt);
}

.note-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ot-muted);
    font-size: .85rem;
    line-height: 1.5;
}

.note-list li + li {
    margin-top: .35rem;
}

.sfr-optional {
    transition: opacity .15s ease;
}

.sfr-optional--off {
    opacity: .45;
}

.sfr-lines {
    display: grid;
    gap: .5rem;
}

.sfr-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 150px 150px auto;
    align-items: end;
    gap: .6rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.sfr-line__main {
    min-width: 0;
}

.sfr-line__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    margin-right: .4rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-size: .74rem;
    font-weight: 600;
}

.sfr-line__name {
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
}

.sfr-line__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .3rem;
}

.sfr-line__docs {
    flex: 1 1 100%;
    color: var(--ot-muted);
    font-size: .74rem;
    line-height: 1.45;
}

.sfr-line__field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.sfr-line__field > span {
    color: var(--ot-muted);
    font-size: .7rem;
}

.hint-rows {
    display: grid;
    gap: .55rem;
}

.hint-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .6rem;
    padding: .65rem .8rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.hint-row__name {
    font-size: .86rem;
    font-weight: 500;
}

.hint-row__value {
    text-align: right;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

.hint-row__text {
    grid-column: 1 / -1;
    color: var(--ot-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.law-list {
    display: grid;
    gap: .6rem;
}

.law-row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: .2rem .9rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ot-border);
    border-left: 3px solid var(--ot-primary);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.law-row__mark {
    color: var(--ot-primary);
    font-size: .84rem;
    font-weight: 600;
}

.law-row__text {
    color: var(--ot-text);
    font-size: .84rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .sfr-line {
        grid-template-columns: 1fr 1fr;
    }

    .sfr-line__main {
        grid-column: 1 / -1;
    }

    .sfr-line form {
        grid-column: 1 / -1;
    }

    .law-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sfr-line {
        grid-template-columns: 1fr;
    }
}


.access-list {
    display: grid;
    gap: .45rem;
}

.access-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .65rem .8rem;
    border: 1px solid var(--ot-border);
    border-left: 3px solid var(--st-present);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.access-row > .ic {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .15rem;
    color: var(--st-present);
}

.access-row--closed {
    border-left-color: var(--ot-border);
    opacity: .6;
}

.access-row--closed > .ic {
    color: var(--ot-muted);
}

.access-row__main {
    min-width: 0;
}

.access-row__name {
    display: block;
    font-size: .88rem;
    font-weight: 500;
}

.access-row__hint {
    display: block;
    color: var(--ot-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.sub-list {
    display: grid;
    gap: .6rem;
}

.sub-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto auto auto;
    align-items: center;
    gap: .6rem;
    padding: .75rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.sub-row__main {
    min-width: 0;
}

.sub-row__name {
    display: block;
    font-size: .88rem;
    font-weight: 500;
    word-break: break-word;
}

.sub-row__meta {
    display: block;
    margin-top: .12rem;
    color: var(--ot-muted);
    font-size: .76rem;
}

.sub-row__state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

.sub-row__date {
    color: var(--ot-muted);
    font-size: .74rem;
    white-space: nowrap;
}

.sub-row__form {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.sub-row__form input[name="amount"] {
    width: 6.5rem;
}

.sub-row__form input[name="months"] {
    width: 4rem;
}

.bar-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: end;
    gap: .4rem;
    min-height: 190px;
}

.bar-chart__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    min-width: 0;
}

.bar-chart__wrap {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 130px;
}

.bar-chart__bar {
    width: 100%;
    min-height: 3px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ot-primary) 85%, transparent),
        color-mix(in srgb, var(--ot-primary) 45%, transparent)
    );
}

.bar-chart__bar--alt {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--st-present) 80%, transparent),
        color-mix(in srgb, var(--st-present) 40%, transparent)
    );
}

.bar-chart__value {
    font-size: .76rem;
    font-weight: 600;
}

.bar-chart__label {
    color: var(--ot-muted);
    font-size: .68rem;
    text-transform: lowercase;
}

.count-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .6rem;
}

.count-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .15rem .6rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface-alt);
}

.count-card > .ic {
    grid-row: 1 / 3;
    width: 1.3rem;
    height: 1.3rem;
    color: var(--ot-primary);
}

.count-card__value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.count-card__title {
    color: var(--ot-muted);
    font-size: .74rem;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .sub-row {
        grid-template-columns: 1fr 1fr;
    }

    .sub-row__main {
        grid-column: 1 / -1;
    }

    .bar-chart {
        min-height: 160px;
    }

    .bar-chart__wrap {
        height: 105px;
    }
}

@media (max-width: 575.98px) {
    .sub-row {
        grid-template-columns: 1fr;
    }

    .sub-row__form {
        flex-wrap: wrap;
    }

    .bar-chart__label {
        font-size: .62rem;
    }
}

.sidenav__billing {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .65rem .65rem;
    border: 1px solid color-mix(in srgb, var(--ot-primary) 35%, transparent);
    border-radius: 10px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    text-decoration: none;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease;
}

.sidenav__billing .ic {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
}

.sidenav__billing:hover,
.sidenav__billing:focus-visible,
.sidenav__billing.is-active {
    border-color: var(--ot-primary);
    color: var(--ot-primary);
}

.sidenav__billing--locked {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--st-partial) 55%, transparent);
    background: var(--st-partial-bg);
    color: var(--st-partial);
}

.sidenav__billing--soon {
    border-color: color-mix(in srgb, var(--st-partial) 60%, transparent);
    background: var(--st-partial-bg);
    color: var(--st-partial);
}

.sidenav__billing-name {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidenav__billing-hint {
    display: block;
    font-size: .72rem;
    opacity: .8;
    white-space: nowrap;
}

.sidenav__item--locked {
    color: var(--ot-muted);
}

.sidenav__item--locked .sidenav__label {
    opacity: .7;
}

.sidenav__item--locked .sidenav__lock {
    width: .85rem;
    height: .85rem;
    flex: 0 0 .85rem;
    margin-left: auto;
    color: var(--ot-muted);
}

.sidenav__item--locked:hover .sidenav__lock {
    color: var(--st-partial);
}

.menu-card--locked {
    background: var(--ot-surface-alt);
}

.menu-card--locked .menu-card__icon,
.menu-card--locked .menu-card__text {
    opacity: .6;
}

.menu-card--locked .menu-card__arrow {
    opacity: .7;
    color: var(--st-partial);
}

.menu-card__lock {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--st-partial-bg);
    color: var(--st-partial);
    font-size: .68rem;
    font-weight: 600;
    vertical-align: middle;
}

.plans-page .app-main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 0;
}

.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--ot-primary) 18%, transparent), transparent 55%),
        radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--ot-primary) 12%, transparent), transparent 50%),
        var(--ot-bg);
}

.plans {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    padding-top: 1.75rem;
}

.plans-hero {
    display: grid;
    gap: 1.1rem;
    max-width: 780px;
    padding: 2.5rem 0 1rem;
}

.plans-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    padding: .35rem .8rem;
    border: 1px solid color-mix(in srgb, var(--ot-primary) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ot-surface) 70%, transparent);
    color: var(--ot-primary);
    font-size: .8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.plans-hero__badge .ic {
    width: .95rem;
    height: .95rem;
}

.plans-hero__title {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    background: linear-gradient(120deg, var(--ot-text), var(--ot-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plans-hero__text {
    margin: 0;
    max-width: 640px;
    color: var(--ot-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.plans-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .3rem;
}

.plans-hero__actions .btn-lg {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.4rem;
    font-size: .98rem;
    border-radius: 12px;
}

.plans-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .7rem;
    margin-top: .8rem;
}

.plans-fact {
    display: grid;
    gap: .15rem;
    padding: .85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 80%, transparent);
    border-radius: var(--ot-radius);
    background: color-mix(in srgb, var(--ot-surface) 72%, transparent);
    backdrop-filter: blur(10px);
}

.plans-fact__value {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.plans-fact__label {
    color: var(--ot-muted);
    font-size: .76rem;
}

.glass {
    padding: 1.4rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius-lg);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    box-shadow: var(--ot-shadow);
    backdrop-filter: blur(14px);
}

.glass__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
}

.glass__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.glass__subtitle {
    margin: .15rem 0 0;
    color: var(--ot-muted);
    font-size: .86rem;
}

.glass__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1rem;
}

.glass__note {
    flex: 1 1 320px;
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.trial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .7rem;
}

.trial-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .2rem .6rem;
    padding: .8rem .9rem;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    background: var(--ot-surface);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.trial-card:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
}

.trial-card:has(input:checked) {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.trial-card__title {
    font-size: .9rem;
    font-weight: 600;
}

.trial-card__hint {
    grid-column: 2;
    color: var(--ot-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.plans-block {
    display: grid;
    gap: 1rem;
    scroll-margin-top: 1.5rem;
}

.plans-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .9rem;
}

.plans-block__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.plans-block__subtitle {
    margin: .2rem 0 0;
    max-width: 560px;
    color: var(--ot-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.plans-block__note {
    margin: 0;
    padding: .8rem 1rem;
    border-left: 3px solid var(--ot-primary);
    border-radius: var(--ot-radius);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.5;
    backdrop-filter: blur(10px);
}

.period {
    display: inline-flex;
    padding: .25rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ot-surface) 80%, transparent);
    backdrop-filter: blur(10px);
}

.period__btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .95rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ot-muted);
    font-size: .84rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.period__btn.is-active {
    background: var(--ot-primary);
    color: #fff;
}

.period__gift {
    padding: .1rem .45rem;
    border-radius: 999px;
    background: color-mix(in srgb, #fff 22%, transparent);
    font-size: .68rem;
    font-weight: 600;
}

.period__btn:not(.is-active) .period__gift {
    background: var(--st-present-bg);
    color: var(--st-present);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 1rem;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1.15rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius-lg);
    background: color-mix(in srgb, var(--ot-surface) 80%, transparent);
    box-shadow: var(--ot-shadow);
    backdrop-filter: blur(14px);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.plan:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--ot-primary) 45%, transparent);
}

.plan--popular {
    border-color: color-mix(in srgb, var(--ot-primary) 60%, transparent);
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--ot-primary) 80%, transparent);
}

.plan--current {
    border-color: color-mix(in srgb, var(--st-present) 60%, transparent);
}

.plan__flag {
    position: absolute;
    top: -.75rem;
    left: 1.2rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--ot-primary), color-mix(in srgb, var(--ot-primary) 65%, #4A9FD5));
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.plan__head {
    display: grid;
    gap: .15rem;
}

.plan__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.plan__subtitle {
    margin: 0;
    min-height: 2.3rem;
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem;
    margin-top: .7rem;
    min-height: 2.1rem;
}

.plan__amount {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
}

.plan__amount--text {
    font-size: 1.2rem;
}

.plan__unit {
    color: var(--ot-muted);
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
}

.plan__yearly {
    margin: .15rem 0 0;
    min-height: 1.1rem;
    color: var(--st-present);
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.4;
}

.plan__facts {
    display: grid;
    gap: .55rem;
    margin: .9rem 0 0;
    padding: .9rem 0 0;
    border-top: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    list-style: none;
}

.plan__fact {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.45;
}

.plan__fact .ic {
    flex: 0 0 auto;
    width: .95rem;
    height: .95rem;
    margin-top: .15rem;
    color: var(--ot-primary);
}

.plan__fact--main {
    color: var(--ot-text);
    font-weight: 600;
}

.plan-common {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    padding: .8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    backdrop-filter: blur(10px);
}

.plan-common__label {
    color: var(--ot-text);
    font-size: .82rem;
    font-weight: 600;
}

.plan-common__item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ot-muted);
    font-size: .8rem;
}

.plan-common__item .ic {
    width: .9rem;
    height: .9rem;
    color: var(--st-present);
}

.plan__action {
    margin-top: auto;
    padding-top: 1rem;
}

.plan__current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem;
    border-radius: var(--ot-radius);
    background: var(--st-present-bg);
    color: var(--st-present);
    font-size: .86rem;
    font-weight: 600;
}

.plan__current .ic {
    width: 1rem;
    height: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .7rem;
}

.feature {
    display: flex;
    gap: .8rem;
    padding: .95rem 1rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    backdrop-filter: blur(10px);
}

.feature__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-size: .85rem;
    font-weight: 700;
}

.feature__body {
    display: grid;
    gap: .15rem;
}

.feature__title {
    font-size: .9rem;
    font-weight: 600;
}

.feature__text {
    color: var(--ot-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
}

.step {
    display: grid;
    gap: .35rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius-lg);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    backdrop-filter: blur(10px);
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--ot-primary);
    color: #fff;
    font-weight: 700;
}

.step__title {
    font-size: .95rem;
    font-weight: 600;
}

.step__text {
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.qa {
    display: grid;
    gap: .55rem;
}

.qa__item {
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    backdrop-filter: blur(10px);
}

.qa__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .85rem 1rem;
    cursor: pointer;
    list-style: none;
    font-size: .92rem;
    font-weight: 600;
}

.qa__question::-webkit-details-marker {
    display: none;
}

.qa__mark {
    flex: 0 0 auto;
    width: .95rem;
    height: .95rem;
    color: var(--ot-primary);
    transition: transform .18s ease;
}

.qa__item[open] .qa__mark {
    transform: rotate(45deg);
}

.qa__answer {
    margin: 0;
    padding: 0 1rem .95rem;
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.plans-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-radius: var(--ot-radius-lg);
    background: linear-gradient(120deg, var(--ot-primary), color-mix(in srgb, var(--ot-primary) 70%, #4A9FD5));
    color: #fff;
}

.plans-contact__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.plans-contact__text {
    margin: .3rem 0 0;
    max-width: 560px;
    font-size: .86rem;
    line-height: 1.5;
    opacity: .9;
}

.plans-contact .btn-primary {
    background: #fff;
    border-color: #fff;
    color: var(--ot-primary);
}

@media (max-width: 767.98px) {
    .plans-hero {
        padding-top: 1.4rem;
    }

    .plans-hero__facts {
        grid-template-columns: 1fr 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .period {
        width: 100%;
    }

    .period__btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.crumbs--public {
    position: relative;
    z-index: 1;
    padding-top: .5rem;
}

.plans-hero--feature {
    padding-top: 1.2rem;
}

.lp-prose {
    display: grid;
    gap: .8rem;
}

.lp-article {
    padding: 1.2rem 1.35rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius-lg);
    background: color-mix(in srgb, var(--ot-surface) 80%, transparent);
    backdrop-filter: blur(12px);
}

.lp-article__title {
    margin: 0 0 .45rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.lp-article__text {
    margin: 0;
    max-width: 780px;
    color: var(--ot-text);
    font-size: .94rem;
    line-height: 1.65;
}

.lp-article__text a {
    color: var(--ot-primary);
}

.lp-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-list__item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .75rem .9rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: var(--ot-radius);
    background: color-mix(in srgb, var(--ot-surface) 78%, transparent);
    font-size: .88rem;
    line-height: 1.45;
    backdrop-filter: blur(10px);
}

.lp-list__item .ic {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: .15rem;
    color: var(--st-present);
}

.lp-links {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.lp-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border: 1px solid color-mix(in srgb, var(--ot-border) 85%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ot-surface) 80%, transparent);
    color: var(--ot-text);
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.lp-link .ic {
    width: 1rem;
    height: 1rem;
    color: var(--ot-primary);
}

.lp-link:hover {
    border-color: var(--ot-primary);
    color: var(--ot-primary);
    transform: translateY(-1px);
}

.lp-link--accent {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.feature--link {
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.feature--link:hover {
    border-color: var(--ot-primary);
    transform: translateY(-2px);
    color: inherit;
}

.feature__index .ic {
    width: 1rem;
    height: 1rem;
}

.sidenav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: auto;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--st-absent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}

.plan__request {
    margin-top: .3rem;
    color: var(--ot-muted);
    text-decoration: none;
}

.plan__request:hover {
    color: var(--ot-primary);
}

.plans-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.request-modal {
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-lg);
    background: var(--ot-surface);
    color: var(--ot-text);
}

.request-modal__head {
    align-items: flex-start;
    border-bottom: 1px solid var(--ot-border);
}

.request-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.request-modal__hint {
    margin: .25rem 0 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.request-modal__note {
    margin: .9rem 0 0;
    color: var(--ot-muted);
    font-size: .76rem;
    line-height: 1.5;
}

.request-modal__foot {
    border-top: 1px solid var(--ot-border);
}

.request-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sub-row__comment {
    display: block;
    margin-top: .3rem;
    color: var(--ot-text);
    font-size: .8rem;
    line-height: 1.45;
}

.sub-row--request {
    grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr);
}

@media (max-width: 991.98px) {
    .sub-row--request {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .sidenav__item {
        position: relative;
    }

    .sidenav__badge {
        position: absolute;
        top: .35rem;
        right: .75rem;
        width: .55rem;
        height: .55rem;
        min-width: 0;
        margin: 0;
        padding: 0;
        font-size: 0;
        box-shadow: 0 0 0 2px var(--ot-surface);
    }

    .sidenav__item--locked .sidenav__lock {
        display: none;
    }

    .sidenav__item--locked .ic {
        opacity: .55;
    }

    .sidenav:hover .sidenav__badge,
    .sidenav:focus-within .sidenav__badge,
    html[data-nav="pinned"] .sidenav__badge {
        position: static;
        width: auto;
        height: 1.35rem;
        min-width: 1.35rem;
        margin-left: auto;
        padding: 0 .4rem;
        font-size: .7rem;
        box-shadow: none;
    }

    .sidenav:hover .sidenav__item--locked .sidenav__lock,
    .sidenav:focus-within .sidenav__item--locked .sidenav__lock,
    html[data-nav="pinned"] .sidenav__item--locked .sidenav__lock {
        display: block;
    }

    .sidenav:hover .sidenav__item--locked .ic,
    .sidenav:focus-within .sidenav__item--locked .ic,
    html[data-nav="pinned"] .sidenav__item--locked .ic {
        opacity: 1;
    }

    .sidenav__billing {
        flex-direction: column;
        gap: .2rem;
        padding: .4rem .1rem;
        text-align: center;
    }

    .sidenav__billing .sidenav__label {
        display: none;
    }

    .sidenav:hover .sidenav__billing,
    .sidenav:focus-within .sidenav__billing,
    html[data-nav="pinned"] .sidenav__billing {
        flex-direction: row;
        gap: .75rem;
        padding: .65rem .65rem;
        text-align: left;
    }

    .sidenav:hover .sidenav__billing .sidenav__label,
    .sidenav:focus-within .sidenav__billing .sidenav__label,
    html[data-nav="pinned"] .sidenav__billing .sidenav__label {
        display: block;
    }
}
