:root {
    --navy: #0a1f44;
    --navy2: #12306b;
    --gold: #c29b5c;
    --gold2: #a8813f;
    --ink: #1c2a44;
    --mut: #5d6b82;
    --bg: #f4f6fa;
    --line: #e1e6ee;
    --ser: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --san: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 15px/1.6 var(--san);
    color: var(--ink);
    background: var(--bg)
}

img {
    max-width: 100%
}

a {
    color: inherit
}

h1,
h2,
.ser {
    font-family: var(--ser);
    font-weight: 600;
    margin: 0
}

h3 {
    margin: 0
}

p {
    margin: 0
}

.wrap {
    width: min(1200px, 92%);
    margin: auto
}

.mt {
    color: var(--mut);
    font-size: 13.5px
}

.c {
    text-align: center
}

.ta {
    text-align: right;
    white-space: nowrap
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: 8px 12px;
    z-index: 99
}

.skip:focus {
    left: 8px
}

.ic {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.17em
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 18px;
    font: 600 14px var(--san);
    cursor: pointer;
    text-decoration: none;
    transition: .15s;
    white-space: nowrap
}

.btn.gold {
    background: var(--gold);
    color: #fff
}

.btn.gold:hover {
    background: var(--gold2)
}

.btn.navy {
    background: var(--navy);
    color: #fff
}

.btn.navy:hover {
    background: var(--navy2)
}

.btn.out {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    background: transparent
}

.btn.out:hover {
    background: rgba(255, 255, 255, .12)
}

.btn.ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink)
}

.btn.ghost:hover {
    border-color: var(--gold)
}

.btn.danger {
    background: #b3261e;
    color: #fff
}

.btn.sm {
    padding: 7px 14px;
    font-size: 12.5px
}

.btn.block {
    width: 100%
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed
}

.lnk {
    background: none;
    border: 0;
    color: var(--navy);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 4px
}

/* header */
.hd {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.hd-in {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px
}

.logo img {
    height: 54px;
    display: block
}

.panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.panel nav {
    display: flex;
    gap: 30px;
    margin-left: 36px
}

.panel nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
    padding: 8px 0;
    border-bottom: 2px solid transparent
}

.panel nav a:hover,
.panel nav a.on {
    color: var(--gold);
    border-color: var(--gold)
}

.hd-r {
    display: flex;
    align-items: center;
    gap: 14px
}

.ib {
    color: #fff;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px
}

.burger {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    border-radius: 4px;
    width: 42px;
    height: 40px;
    cursor: pointer;
    place-items: center
}

/* hero */
.hero {
    background: linear-gradient(90deg, var(--navy) 0, var(--navy) 38%, rgba(10, 31, 68, .6) 68%, rgba(10, 31, 68, .15)), url(../images/hero.jpg) no-repeat right center/auto 100%, var(--navy);
    color: #fff;
    padding: 44px 0 40px
}

.eyebrow {
    color: var(--gold);
    letter-spacing: .14em;
    font-size: 13.5px;
    text-transform: uppercase;
    margin-bottom: 12px
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 48px);
    line-height: 1.15;
    margin-bottom: 16px
}

.lead {
    max-width: 600px;
    margin-bottom: 26px;
    font-size: 15.5px;
    color: #e8edf7
}

.sb {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 6px 6px 6px 16px;
    max-width: 690px;
    color: var(--navy)
}

.sb input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font: inherit;
    padding: 10px 4px;
    color: var(--ink)
}

.sb .ic {
    width: 22px;
    height: 22px
}

.hf {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    max-width: 700px
}

.hf select {
    background: rgba(10, 31, 68, .55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 4px;
    padding: 9px 12px;
    font: 13px var(--san);
    min-width: 150px
}

.hf option,
.fl option {
    color: var(--ink);
    background: #fff
}

.adv {
    color: #fff;
    margin-left: auto;
    font-size: 13.5px;
    display: inline-flex;
    gap: 8px;
    align-items: center
}

/* features */
.f4 {
    background: #fff;
    padding: 30px 0
}

.f4 .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.f4 div {
    padding: 6px 28px;
    border-left: 1px solid var(--line)
}

.f4 div:first-child {
    border: 0;
    padding-left: 0
}

.f4 .ic {
    width: 34px;
    height: 34px;
    color: var(--gold2);
    stroke-width: 1.3;
    margin-bottom: 8px
}

.f4 h3 {
    font: 600 18px var(--ser);
    margin-bottom: 4px
}

.f4 p {
    font-size: 13.5px;
    color: var(--mut)
}

/* sections */
.sec {
    padding: 34px 0 8px
}

.sh {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px
}

.sec .sh:after {
    content: "";
    width: 50px;
    height: 2px;
    background: var(--gold)
}

.sec .hh {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px
}

.sec .hh a {
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    gap: 6px;
    align-items: center
}

.card,
.cc,
.rc,
.res,
.tw,
.empty,
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px
}

.grid5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 26px
}

.cc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    text-decoration: none;
    transition: .15s
}

.cc:hover,
.res:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(10, 31, 68, .08)
}

.cc .ic {
    width: 34px;
    height: 34px;
    color: var(--gold2);
    stroke-width: 1.3
}

.cc strong {
    display: block;
    font-size: 14.5px
}

.cc small {
    color: var(--mut);
    font-size: 12.5px
}

.cc>.ic:last-child {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--navy)
}

.cc.big {
    align-items: flex-start;
    padding: 22px
}

.cc.big p {
    font-size: 13.5px;
    color: var(--mut);
    margin: 6px 0
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding-bottom: 40px
}

.rc {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.rc h3 {
    font: 600 15px/1.4 var(--san)
}

.rc a {
    text-decoration: none
}

.rc .btn {
    align-self: flex-start;
    margin-top: 10px;
    color: #fff
}

.cit {
    color: var(--mut);
    font-size: 13.5px
}

.tag {
    align-self: flex-start;
    background: #eaeef6;
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block
}

.pb {
    background: linear-gradient(90deg, rgba(10, 31, 68, .93) 0, rgba(10, 31, 68, .8) 45%, rgba(10, 31, 68, .5) 100%), url(../images/pages-hero.png) center/cover no-repeat, var(--navy);
    color: #fff;
    padding: 54px 0
}

.pb h1 {
    font-size: clamp(28px, 4vw, 38px)
}

.pb p {
    color: #d6deee;
    margin-top: 6px;
    max-width: 680px
}

.pb.sm {
    padding: 34px 0
}

.pb p.eyebrow {
    color: var(--gold);
    max-width: none
}

.nl {
    display: block;
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8fa0c4;
    padding: 12px 12px 4px
}

.bc {
    font-size: 13px;
    color: #b9c5de;
    margin-bottom: 10px
}

.bc a {
    text-decoration: none
}

.bc a:hover {
    color: var(--gold)
}

/* library */
.lib {
    padding: 28px 0 50px
}

.fl {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px
}

.fl-q {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 4px 4px 4px 12px;
    margin-bottom: 12px;
    color: var(--navy)
}

.fl-q input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font: inherit;
    padding: 8px 4px
}

.fl-g {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px
}

.fl-a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--mut);
    gap: 12px;
    flex-wrap: wrap
}

select,
input:not([type=checkbox]),
textarea {
    font: inherit;
    color: var(--ink)
}

.fl select,
.fg select,
.fg input,
.fg textarea,
.tb input,
.tb select {
    width: 100%;
    border: 1px solid #cfd7e4;
    border-radius: 4px;
    padding: 9px 11px;
    background: #fff
}

.res {
    padding: 18px 20px;
    margin-bottom: 14px;
    display: grid;
    gap: 6px;
    transition: .15s
}

.res-h {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.res h3 {
    font: 600 17px/1.4 var(--ser)
}

.res h3 a {
    text-decoration: none
}

.res h3 a:hover {
    color: var(--gold2)
}

.meta {
    display: flex;
    gap: 6px 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--mut)
}

.sum {
    font-size: 14px
}

.res .btn {
    justify-self: start;
    margin-top: 6px
}

.pg {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px
}

.pg button {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font: 600 13px var(--san);
    padding: 0 12px
}

.pg .on {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy)
}

.pg button:disabled {
    opacity: .45;
    cursor: not-allowed
}

.empty {
    text-align: center;
    padding: 46px 20px;
    display: grid;
    justify-items: center;
    gap: 8px
}

.empty .ic {
    width: 38px;
    height: 38px;
    color: var(--gold2)
}

.empty h3 {
    font: 600 20px var(--ser)
}

.empty p {
    color: var(--mut);
    margin-bottom: 8px
}

/* report */
.rp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding: 28px 0 50px;
    align-items: start
}

.rp .card,
.card {
    padding: 24px
}

.rp-main .card {
    margin-bottom: 20px
}

.rp-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px
}

.rp .sh {
    font-size: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px
}

.rep h3 {
    font: 600 15px var(--san);
    letter-spacing: .06em;
    margin: 20px 0 6px;
    color: var(--navy)
}

.rep p {
    margin-bottom: 10px;
    font-family: var(--ser);
    font-size: 16.5px;
    line-height: 1.75
}

dl {
    margin: 0
}

dl dt {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mut);
    margin-top: 12px
}

dl dd {
    margin: 2px 0 0;
    font-weight: 500
}

.acts {
    display: grid;
    gap: 10px
}

.badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e5f4ea;
    color: #1e6b3a
}

.badge.d {
    background: #fff3dc;
    color: #8a5a00
}

.note {
    background: #fff3dc;
    border: 1px solid #f0d9a8;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13.5px
}

.pbar {
    padding: 40px 0 50px
}

.ctc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 36px 0 50px
}

.txt p {
    margin-bottom: 12px
}

.txt h2 {
    font-size: 22px;
    margin: 24px 0 8px
}

.ft {
    background: var(--navy);
    color: #fff;
    margin-top: 20px;
    font-size: 12.5px
}

.ft-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 20px 0
}

.ft-in>p {
    text-align: center
}

.ft-in>a {
    justify-self: start;
    display: flex
}

.ft nav {
    justify-self: end
}

.ft-by {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    padding: 16px 0
}

.by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(194, 155, 92, .16);
    border: 1px solid rgba(194, 155, 92, .6);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    transition: .15s
}

.by strong {
    color: var(--gold)
}

.by .ic {
    color: var(--gold)
}

.ft a.by:hover {
    background: var(--gold);
    color: var(--navy)
}

.ft a.by:hover strong,
.ft a.by:hover .ic {
    color: var(--navy)
}

.ft img {
    height: 46px
}

.ft nav {
    display: flex;
    gap: 16px
}

.ft a {
    text-decoration: none
}

.ft a:hover {
    color: var(--gold)
}

/* forms */
.fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px
}

.fg {
    margin-bottom: 14px
}

.fg.w {
    grid-column: 1/-1
}

.fg label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px
}

.fg label i {
    color: #b3261e;
    font-style: normal
}

.fg textarea {
    resize: vertical;
    min-height: 90px
}

.fg .bad {
    border-color: #b3261e
}

.er {
    display: block;
    color: #b3261e;
    font-size: 12px;
    min-height: 0
}

.fa {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px
}

.ck {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    cursor: pointer
}

.rw {
    display: flex;
    justify-content: space-between;
    margin: 4px 0 16px;
    font-size: 13.5px
}

.rw a {
    color: var(--navy)
}

.tgl {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--line)
}

/* auth */
.au {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg)
}

.au-c {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden
}

.au-h {
    background: var(--navy);
    padding: 14px;
    text-align: center
}

.au-h img {
    height: 48px
}

.au-b {
    padding: 22px 26px
}

.au-b h1 {
    font-size: 24px;
    margin-bottom: 4px
}

.au-b form {
    margin-top: 14px
}

.au-f {
    text-align: center;
    margin-top: 12px;
    font-size: 13.5px
}

/* modal + toast */
.mo {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 68, .55);
    display: grid;
    place-items: center;
    z-index: 100;
    padding: 16px
}

.md {
    background: #fff;
    border-radius: 6px;
    width: min(500px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3)
}

.md h3 {
    font: 600 20px var(--ser);
    margin-bottom: 12px
}

.mb {
    margin-bottom: 18px;
    font-size: 14.5px
}

.mb .fg:last-child {
    margin-bottom: 0
}

.ma {
    display: flex;
    gap: 10px;
    justify-content: flex-end
}

#toasts {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    z-index: 200;
    width: min(380px, calc(100% - 32px))
}

.toast {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--navy);
    border-radius: 4px;
    padding: 12px 12px 12px 14px;
    box-shadow: 0 8px 24px rgba(10, 31, 68, .18);
    font-size: 14px;
    animation: ti .2s ease
}

.toast span {
    flex: 1
}

.toast button {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--mut);
    padding: 0
}

.toast.success {
    border-left-color: #1e8a4c
}

.toast.success>.ic {
    color: #1e8a4c
}

.toast.error {
    border-left-color: #b3261e
}

.toast.error>.ic {
    color: #b3261e
}

.toast.warning {
    border-left-color: #d08a00
}

.toast.warning>.ic {
    color: #d08a00
}

@keyframes ti {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }
}

/* admin */
.ad {
    display: flex;
    min-height: 100vh
}

.sb2 {
    width: 250px;
    background: var(--navy);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    z-index: 40;
    overflow: auto
}

.sb2 .logo {
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 10px
}

.sb2 .logo img {
    height: 48px
}

.sb2 nav {
    display: grid;
    padding: 6px 10px;
    gap: 2px
}

.sb2 nav a,
.sb2 nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d6deee;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 4px;
    background: none;
    border: 0;
    font: 500 14px var(--san);
    cursor: pointer;
    text-align: left
}

.sb2 nav a:hover,
.sb2 nav button:hover {
    background: rgba(255, 255, 255, .08)
}

.sb2 nav a.on {
    background: rgba(194, 155, 92, .2);
    color: var(--gold)
}

.vp {
    margin: auto 20px 6px;
    color: #aab8d6;
    font-size: 13px
}

.ov {
    display: none
}

.am {
    margin-left: 250px;
    flex: 1;
    min-width: 0
}

.at {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 20
}

.at h1 {
    font-size: 22px
}

.who {
    margin-left: auto;
    font-size: 13.5px;
    color: var(--mut);
    display: flex;
    gap: 8px;
    align-items: center
}

.at .burger {
    display: none;
    color: var(--navy);
    border-color: var(--line);
    margin: 0
}

.ac {
    padding: 26px 28px 40px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px
}

.stat {
    padding: 18px
}

.stat b {
    display: block;
    font: 600 30px var(--ser);
    color: var(--navy)
}

.stat span {
    font-size: 13px;
    color: var(--mut)
}

.cols2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start
}

.cols2 .card {
    margin: 0
}

.cols2 .sh {
    font-size: 19px;
    margin-bottom: 14px
}

.tb {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.tb input {
    flex: 1;
    min-width: 200px
}

.tb select {
    width: auto
}

.tw {
    overflow-x: auto;
    margin-bottom: 20px
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 720px
}

.tbl th {
    text-align: left;
    background: #f1f4f9;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mut);
    padding: 11px 14px
}

.tbl td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    vertical-align: top
}

.tbl .ta {
    text-align: right
}

.ib2 {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--navy);
    margin-left: 4px
}

.ib2:hover {
    border-color: var(--gold);
    color: var(--gold2)
}

.ib2.del:hover {
    color: #b3261e;
    border-color: #b3261e
}

.si p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px
}

.si p span:first-child {
    color: var(--mut)
}

@media(max-width:980px) {
    .burger {
        display: grid
    }

    .panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 4% 20px;
        border-top: 1px solid rgba(255, 255, 255, .12)
    }

    .panel.open {
        display: flex
    }

    .panel nav {
        flex-direction: column;
        gap: 0;
        margin: 0
    }

    .panel nav a {
        padding: 13px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1)
    }

    .hd-r {
        flex-wrap: wrap;
        margin-top: 14px
    }

    .ft-in {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center
    }

    .ft-in>a,
    .ft nav {
        justify-self: center
    }

    .fl-g {
        grid-template-columns: repeat(2, 1fr)
    }

    .f4 .wrap {
        grid-template-columns: 1fr 1fr;
        gap: 18px 0
    }

    .f4 div:nth-child(3) {
        border-left: 0;
        padding-left: 0
    }

    .rp {
        grid-template-columns: 1fr
    }

    .rp-side {
        position: static
    }

    .ctc,
    .cols2 {
        grid-template-columns: 1fr
    }

    .sb2 {
        transform: translateX(-100%);
        transition: transform .2s
    }

    .sb2.open {
        transform: none
    }

    .ov.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 31, 68, .5);
        z-index: 35
    }

    .am {
        margin-left: 0
    }

    .at .burger {
        display: grid
    }

    .stats {
        grid-template-columns: 1fr 1fr
    }

    .ac {
        padding: 20px 16px
    }

    .at {
        padding: 12px 16px
    }
}

@media(max-width:640px) {
    .hero {
        background: linear-gradient(rgba(10, 31, 68, .88), rgba(10, 31, 68, .88)), url(../images/hero.jpg) center/cover, var(--navy)
    }

    .sb {
        flex-wrap: wrap;
        padding: 10px
    }

    .sb input {
        flex-basis: 70%
    }

    .sb .btn {
        width: 100%
    }

    .hf select {
        flex: 1 1 100%
    }

    .adv {
        margin: 0
    }

    .f4 .wrap {
        grid-template-columns: 1fr
    }

    .f4 div {
        border: 0 !important;
        padding: 0 !important
    }

    .fl-g,
    .fgrid,
    .stats {
        grid-template-columns: 1fr
    }

    .at h1 {
        font-size: 18px
    }

    .who span {
        display: none
    }

    .ma {
        flex-direction: column-reverse
    }

    .ma .btn {
        width: 100%
    }
}

@media print {

    .hd,
    .ft,
    .rp-side,
    .bc,
    .skip,
    #toasts {
        display: none !important
    }

    .pb {
        background: #fff;
        color: #000;
        padding: 0
    }

    .rp {
        display: block
    }

    .card {
        border: 0
    }
}

/* homepage load + scroll animation */
.hero .wrap>* {
    animation: hIn .8s cubic-bezier(.2, .7, .2, 1) both
}

.hero .wrap>:nth-child(2) {
    animation-delay: .12s
}

.hero .wrap>:nth-child(3) {
    animation-delay: .22s
}

.hero .wrap>:nth-child(4) {
    animation-delay: .32s
}

.hero .wrap>:nth-child(5) {
    animation-delay: .42s
}

@keyframes hIn {
    from {
        opacity: 0;
        transform: translateY(18px)
    }
}

.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease
}

.rv.in {
    opacity: 1;
    transform: none
}

@media(prefers-reduced-motion:reduce) {
    .hero .wrap>* {
        animation: none
    }

    .rv {
        opacity: 1;
        transform: none;
        transition: none
    }
}

/* ---------- membership / locked content ---------- */
.panel nav {
    gap: 22px;
    margin-left: 24px
}

.panel nav a {
    font-size: 14px;
    white-space: nowrap
}

.stf {
    opacity: .6;
    font-size: 12px
}

.hcta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px
}

.mband {
    background: #fbf6ec;
    border-top: 1px solid #eadfc8;
    border-bottom: 1px solid #eadfc8;
    padding: 26px 0
}

.mband .wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center
}

.mband h2 {
    font-size: 22px;
    margin-bottom: 4px
}

.mband p {
    color: var(--mut);
    font-size: 14px
}

.mp {
    display: grid;
    gap: 2px;
    font-size: 13px;
    color: var(--mut)
}

.mp b {
    font: 600 20px var(--ser);
    color: var(--navy)
}

.lock {
    position: relative;
    text-align: center;
    border: 1px dashed #cdb27d;
    background: #fbf6ec;
    border-radius: 6px;
    padding: 34px 20px;
    overflow: hidden
}

.lock:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .45;
    background: repeating-linear-gradient(#e6dcc6 0 7px, transparent 7px 20px)
}

.lock>* {
    position: relative
}

.lk {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold)
}

.lk .ic {
    width: 24px;
    height: 24px
}

.lt {
    font: 600 12px var(--san);
    letter-spacing: .18em;
    color: var(--gold2);
    margin: 12px 0 4px
}

.lock p {
    margin-bottom: 4px
}

.lock .fa {
    justify-content: center;
    margin-top: 14px
}

.tag.mem {
    background: var(--gold);
    color: #fff;
    vertical-align: middle;
    margin-left: 8px;
    font-size: 10px
}

.price {
    font: 600 32px var(--ser);
    color: var(--navy)
}

.dl .btn {
    margin-top: 12px
}

.dl .mt {
    margin-top: 2px
}

.mgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px
}

.mgrid ul,
.plan ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 8px
}

.mgrid li,
.plan li {
    display: flex;
    gap: 8px;
    font-size: 14px
}

.mgrid li .ic,
.plan li .ic {
    color: var(--gold2);
    margin-top: 3px
}

.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 820px;
    margin: 8px auto 22px
}

.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px 28px 28px;
    position: relative;
    display: flex;
    flex-direction: column
}

.plan.best {
    border: 2px solid var(--gold)
}

.plan h3 {
    font: 600 13px var(--san);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mut)
}

.pp {
    font: 600 40px var(--ser);
    color: var(--navy);
    margin-top: 6px;
    line-height: 1.1
}

.per {
    color: var(--mut)
}

.plan ul {
    flex: 1;
    margin-top: 16px
}

.plan .btn {
    margin-top: 22px
}

.ribbon {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--gold);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px
}

.yes {
    color: var(--gold2);
    display: inline-flex
}

.fs {
    margin-bottom: 18px
}

.fs>.mt {
    margin: -8px 0 14px
}

.acc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start
}

.si .fa {
    margin-top: 14px
}

@media(max-width:1180px) {
    .burger {
        display: grid
    }

    .panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 4% 20px;
        border-top: 1px solid rgba(255, 255, 255, .12)
    }

    .panel.open {
        display: flex
    }

    .panel nav {
        flex-direction: column;
        gap: 0;
        margin: 0
    }

    .panel nav a {
        padding: 13px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1)
    }

    .hd-r {
        flex-wrap: wrap;
        margin-top: 14px
    }
}

@media(max-width:820px) {

    .mgrid,
    .plans,
    .mband .wrap,
    .acc {
        grid-template-columns: 1fr
    }

    .mband .btn {
        justify-self: start
    }
}

.tw {
    position: relative;
    max-width: 100%
}

.cols2>*,
.acc>* {
    min-width: 0
}

@media(max-width:980px) {

    .cols2,
    .acc {
        grid-template-columns: minmax(0, 1fr)
    }
}

/* ---------- gated section (member-only content preview) ---------- */
.gated {
    border-left: 3px solid var(--gold);
    background: #fbf6ec;
    border-radius: 4px;
    padding: 18px 20px 20px;
    margin-top: 6px
}

.gated-preview {
    font-family: var(--ser);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink);
    margin: 0
}

.gated-more {
    margin: 10px 0 16px;
    color: var(--mut);
    font-size: 13.5px
}

.gated-cta {
    margin-top: 4px
}

@media(max-width:640px) {
    .gated {
        padding: 16px 16px 18px
    }

    .gated-cta {
        width: 100%
    }
}

/* ---------- password show/hide toggle ---------- */
.pw {
    position: relative;
    display: block
}

.pw input {
    width: 100%;
    border: 1px solid #cfd7e4;
    border-radius: 4px;
    padding: 9px 44px 9px 11px;
    background: #fff;
    font: inherit;
    color: var(--ink)
}

.pw input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 0;
    border-color: var(--gold)
}

.pw-t {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    border-radius: 4px;
    color: var(--mut);
    cursor: pointer;
    padding: 0
}

.pw-t:hover {
    color: var(--navy);
    background: rgba(10, 31, 68, .06)
}

.pw-t .ic {
    width: 18px;
    height: 18px
}

/* ---------- welcome name in header ---------- */
.welcome {
    color: var(--gold);
    font-size: 13.5px;
    font-weight: 600;
    margin-right: 2px;
    white-space: nowrap
}

@media(max-width:1180px) {
    .welcome {
        display: none
    }
}

/* ---------- auth card width ---------- */
.au-w {
    width: 100%;
    max-width: 360px
}

/* Item 79c — cover image.
   The homepage card cover is a fixed-size thumbnail block sitting at
   the top-left of the card, aligned with the text. It does NOT stretch
   to fill the card width, regardless of how many reports are visible. */
.rc-cv {
    display: block;
    width: 200px;
    height: 140px;
    margin: 0 0 12px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f6fa;
    flex: 0 0 auto;
}

.rc-cv img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Library result card cover — fixed 180x135 block on the left. */
.res {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
}

.res:not(:has(.res-cv)) {
    grid-template-columns: 1fr;
}

.res-cv {
    display: block;
    width: 180px;
    height: 135px;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f6fa;
}

.res-cv img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 640px) {
    .res { grid-template-columns: 1fr; }
    .res-cv { width: 100%; height: 180px; }
    .rc-cv { width: 160px; height: 110px; }
}

/* Report page cover — full width as before. */
.rp-cover {
    padding: 0 !important;
    overflow: hidden;
}

.rp-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

/* ----------------------------------------------------------------- */
/* Admin sidebar — scrollable nav with VS Code-style thin scrollbar  */
/* ----------------------------------------------------------------- */
/* The sidebar keeps its fixed width. Only the inner nav scrolls.    */
/* The scrollbar lives inside the sidebar, styled to be subtle.      */

/* The sidebar itself is a flex column, so the nav can flex and scroll. */
.ad .sb2 {
    display: flex;
    flex-direction: column;
    overflow: hidden;           /* clip overflow at the sidebar edge */
}

/* The <nav> element is the scrollable region. */
.ad .sb2 > nav {
    flex: 1 1 auto;
    min-height: 0;              /* allows flex item to shrink and scroll */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;      /* Firefox */
    scrollbar-color: #526581 transparent;
}

/* WebKit / Chromium — thin track, muted thumb, subtle rounding. */
.ad .sb2 > nav::-webkit-scrollbar {
    width: 8px;
}
.ad .sb2 > nav::-webkit-scrollbar-track {
    background: transparent;
}
.ad .sb2 > nav::-webkit-scrollbar-thumb {
    background-color: #526581;
    border-radius: 8px;
    border: 2px solid transparent;   /* keeps thumb visually inset */
    background-clip: padding-box;
}
.ad .sb2 > nav::-webkit-scrollbar-thumb:hover {
    background-color: #7a8fae;       /* lighter on hover for visibility */
    background-clip: padding-box;
}
.ad .sb2 > nav::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox hover state — same idea, using scrollbar-color. */
.ad .sb2 > nav:hover {
    scrollbar-color: #7a8fae transparent;
}

/* Make sure the sidebar's own top and bottom links stay put. */
.ad .sb2 > .logo,
.ad .sb2 > .vp {
    flex: 0 0 auto;
}