:root {
    color-scheme: light;
    --ink: #171927;
    --muted: #595c72;
    --line: #dfe0ec;
    --indigo: #4932cd;
    --pale: #f0edff;
    --background: #f8f8fc;
    font: 16px/1.55 Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
main { min-height: 68vh; padding-bottom: 64px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--indigo); }
p { color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.07; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 7vw, 5.7rem); font-weight: 780; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.35rem; }
h1 em { font-style: normal; color: #b4a5ff; }
.wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-inner, nav, .actions, .admin-tools, .section-head, .footer, .footer div {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.top-inner, .admin-tools, .section-head, .footer { justify-content: space-between; }
.top-inner { min-height: 76px; }
nav { gap: 26px; font-weight: 650; font-size: .91rem; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1.26rem; font-weight: 800; letter-spacing: -.045em; }
.brand-seo { color: var(--muted); font-size: .87rem; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; background: var(--indigo); align-items: end; justify-content: center; gap: 3px; padding-bottom: 8px; }
.brand-mark i { width: 3px; height: 7px; background: white; border-radius: 3px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 15px; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 25px; margin-top: 38px; background: #171631; color: #fff; min-height: 456px; isolation: isolate; }
.hero-text { padding: clamp(31px, 5.5vw, 72px); align-self: center; position: relative; z-index: 1; }
.eyebrow { color: var(--indigo); font-size: .72rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 18px; }
.eyebrow span { display: inline-block; background: currentColor; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.hero .eyebrow, .hero .intro { color: #d8d2f4; }
.intro { font-size: 1.08rem; max-width: 46ch; margin-top: 22px; }
.hero .actions { margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 9px; padding: .74rem 1.07rem; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
.compact { padding: .52rem .82rem; }
.primary { color: white; background: var(--indigo); }
.primary:hover { background: #3521a6; color: white; }
.outline { border-color: #c8c9dd; color: var(--ink); background: #fff; }
.outline:hover { background: var(--pale); color: var(--indigo); }
.hero .primary { background: #e2daff; color: #211647; }
.hero .primary:hover { background: white; }
.hero .outline { background: #24223f; border-color: #625a86; color: white; }
.hero .outline:hover { background: #38305a; }
.art { position: relative; overflow: hidden; min-height: 240px; background: radial-gradient(ellipse at 65% 48%, #4f3693 0, transparent 67%); }
.art-orbit { position: absolute; border: 1px solid #9584ce50; border-radius: 50%; width: 410px; height: 410px; inset: 50% auto auto 55%; transform: translate(-50%, -50%); }
.orbit-two { width: 345px; height: 345px; }
.art-cross { position: absolute; color: #b4a5ff; font-size: 1.2rem; }
.cross-one { top: 18%; right: 17%; }
.cross-two { bottom: 18%; left: 9%; }
.chart { position: absolute; width: min(310px, 75%); inset: 50% auto auto 53%; transform: translate(-50%, -50%) rotate(-8deg); padding: 16px 20px 22px; border: 1px solid #9f8ee18c; border-radius: 18px; background: linear-gradient(140deg, #4a3c77, #24213e 80%); box-shadow: 0 22px 50px #0f0b27a0; }
.chart-top { display: flex; align-items: center; justify-content: space-between; }
.chart-dots { display: flex; gap: 5px; }
.chart-dots i { width: 5px; height: 5px; border-radius: 50%; background: #a394d1; }
.chart-arrow { border: 1px solid #c5afff88; color: #ece5ff; background: #725cc4; width: 30px; height: 30px; border-radius: 8px; text-align: center; }
.bars { height: 120px; margin-top: 12px; display: flex; gap: 8px; align-items: end; border-bottom: 1px solid #ac9cd28a; background: repeating-linear-gradient(to top, transparent 0 29px, #c6b2ff28 29px 30px); }
.bars i { flex: 1; border-radius: 4px 4px 0 0; height: 18%; background: linear-gradient(#a79aff, #5344ab); }
.bars i:nth-child(2) { height: 29%; }
.bars i:nth-child(3) { height: 25%; }
.bars i:nth-child(4) { height: 47%; }
.bars i:nth-child(5) { height: 56%; }
.bars i:nth-child(6) { height: 74%; }
.bars i:nth-child(7) { height: 94%; background: linear-gradient(#e0d5ff, #8b77ff); }
.spaced { margin-top: 46px; }
.section-head { margin-bottom: 20px; }
.section-head p { margin: 8px 0 0; }
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.35rem); }
.page-head .intro { margin-bottom: 0; margin-top: 13px; }
.cards, .admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 23px; min-width: 0; }
.card h2 + p, .card h3 + p { margin-top: 10px; }
.tile { display: grid; place-items: center; width: 40px; height: 40px; color: var(--indigo); background: var(--pale); border-radius: 10px; margin-bottom: 16px; font-weight: 800; }
.text-link { color: var(--indigo); font-weight: 750; }
.text-link:hover { text-decoration: underline; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack p, dl { margin: 0; }
.narrow { max-width: 620px; }
label { display: grid; gap: 6px; font-weight: 650; }
label small, .fine { font-size: .82rem; font-weight: 400; color: var(--muted); }
input, textarea { border: 1px solid #bfc2d4; border-radius: 8px; font: inherit; padding: .59rem .75rem; width: 100%; min-width: 0; color: var(--ink); background: white; }
textarea { resize: vertical; }
input[type=checkbox] { width: auto; }
.check { display: flex; gap: 8px; align-items: start; font-weight: 500; }
:focus-visible { outline: 3px solid #7c66ee; outline-offset: 3px; }
.search { max-width: 490px; margin-bottom: 18px; }
.notice, .note { background: var(--pale); color: #31246e; border-radius: 10px; padding: 13px 16px; }
.notice { margin-top: 18px; margin-bottom: 14px; }
.note p { margin-top: 5px; }
dt { color: var(--muted); font-size: .83rem; font-weight: 700; }
dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.admin-tools { margin-bottom: 18px; }
.separate { border-top: 1px solid var(--line); padding-top: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; margin-top: 14px; }
td, th { border-bottom: 1px solid var(--line); padding: 10px; }
td small { display: block; color: var(--muted); }
.footer { border-top: 1px solid var(--line); min-height: 78px; color: var(--muted); font-size: .9rem; }
.footer-brand { font-weight: 800; color: var(--ink); }
[hidden] { display: none !important; }
@media (max-width: 780px) {
    .wrap { width: calc(100% - 36px); }
    .hero { grid-template-columns: 1fr; margin-top: 20px; }
    .art { min-height: 230px; }
    .art-orbit { width: 300px; height: 300px; }
    .orbit-two { width: 245px; height: 245px; }
    .cards, .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .top-inner { gap: 6px; padding: 10px 0; }
    nav { gap: 10px; }
    .brand-seo { display: none; }
}

.catalog-empty, .process {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(20px, 3.5vw, 34px);
}
.catalog-empty {
    background: white;
    display: flex;
    gap: 16px 28px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.catalog-empty p { margin: 8px 0 0; }
.process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
    background: #efedf8;
}
.process p { margin: 10px 0 0; }
.process ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 16px; }
.process li::marker { color: var(--indigo); font-weight: 800; }
.process li { padding-inline-start: 8px; }
.process li span { display: block; color: var(--muted); }
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.metric {
    display: grid;
    gap: 4px;
    padding: 13px 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.metric strong { font-size: 1.65rem; line-height: 1.2; }
.metric.selected, .metric:hover { background: var(--pale); border-color: #a99be8; color: #32218b; }
.status {
    display: inline-block;
    padding: .15rem .54rem;
    border-radius: 6px;
    background: var(--pale);
    color: #37248c;
    font-size: .81rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-public { color: #135843; background: #e5f5ee; }
.visibility-form { margin-top: 5px; }
.pagination:not(:empty) { margin-top: 14px; }
.tracking-code { display: flex; gap: 8px; align-items: end; }
.tracking-code label { flex: 1; min-width: 0; }
.tracking-code button { flex: none; }
#copy-status:empty { display: none; }
.card:has(.search) .search { margin-top: 16px; }
@media (max-width: 600px) {
    .process { grid-template-columns: 1fr; }
    .tracking-code { align-items: start; flex-direction: column; }
    .tracking-code label { width: 100%; }
}

.portal {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.portal-side { display: grid; align-content: start; gap: 18px; }
.portal-side strong { overflow-wrap: anywhere; }
.portal-nav { display: grid; gap: 5px; align-items: stretch; }
.portal-nav a {
    display: block;
    padding: .58rem .7rem;
    border-radius: 8px;
    color: var(--muted);
}
.portal-nav a[aria-current], .portal-nav a:hover { background: var(--pale); color: var(--indigo); }
.portal > .stack { min-width: 0; }
.portal .admin-tools { margin-bottom: 0; }
.portal .metrics { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
select {
    width: 100%;
    border: 1px solid #bfc2d4;
    padding: .59rem .75rem;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font: inherit;
}
.hero { box-shadow: 0 18px 45px #181a2b12; }
.cards .card { display: flex; flex-direction: column; align-items: flex-start; }
.cards .card .text-link { margin-top: auto; }
@media (max-width: 820px) {
    .portal { grid-template-columns: minmax(0, 1fr); }
    .portal-nav { display: flex; flex-wrap: wrap; }
    .top-inner { padding-block: 12px; }
    .top nav { gap: 8px; }
}
