:root {
    --bg-0: #000000;
    --bg-1: #070707;
    --bg-2: #0d0d0d;
    --bg-3: #141414;

    --line-soft: rgba(255, 255, 255, 0.08);
    --line-mid: rgba(255, 255, 255, 0.15);
    --line-strong: rgba(255, 255, 255, 0.22);

    --text-strong: #f4f6fb;
    --text: #c7cfdf;
    --text-muted: #8e98b0;

    --blue: #5d88ff;
    --blue-deep: #3b61ce;
    --amber: #e7b77a;
    --green: #36c48d;
    --red: #ff677e;

    --shadow-1: 0 14px 28px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 20px 36px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.app-shell {
    margin: 0;
    background: #000;
    color: var(--text);
    font-family: 'Public Sans', sans-serif;
    min-height: 100vh;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}

.is-hidden {
    display: none !important;
}

.inline {
    display: inline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header__inner {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 0.78rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand {
    min-width: 175px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__subtitle {
    color: var(--text-muted);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand__title {
    margin-top: 0.2rem;
    color: var(--text-strong);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--line-soft);
    background: var(--bg-1);
    border-radius: 999px;
    padding: 0.2rem;
}

.nav-link {
    border-radius: 999px;
    padding: 0.42rem 0.82rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-strong);
    background: var(--bg-2);
}

.nav-link.is-active {
    color: var(--text-strong);
    background: linear-gradient(135deg, rgba(93, 136, 255, 0.38), rgba(59, 97, 206, 0.5));
}

.header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.56rem;
}

.search-shell {
    position: relative;
}

.search-shell--desktop {
    width: min(420px, 42vw);
}

.search-shell--mobile {
    margin-top: 0.6rem;
}

.search-icon {
    position: absolute;
    left: 0.74rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.search-input {
    width: 100%;
    height: 2.36rem;
    border-radius: 999px;
    border: 1px solid var(--line-mid);
    background: var(--bg-1);
    color: var(--text-strong);
    padding: 0 0.8rem 0 2rem;
    font-size: 0.84rem;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: rgba(93, 136, 255, 0.76);
    box-shadow: 0 0 0 3px rgba(93, 136, 255, 0.2);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.34rem);
    left: 0;
    right: 0;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--line-mid);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-2);
    z-index: 80;
}

.search-result {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.52rem 0.58rem;
    text-align: left;
    cursor: pointer;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result:hover {
    background: var(--bg-2);
}

.search-result__poster {
    width: 38px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.search-result__title {
    color: var(--text-strong);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__meta {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    margin: 0;
    padding: 0.86rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-cta,
.owner-link {
    height: 2.34rem;
    border-radius: 999px;
    border: 1px solid var(--line-mid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.85rem;
    transition: all 0.2s ease;
}

.auth-cta {
    background: var(--bg-1);
    color: var(--text-strong);
    cursor: pointer;
}

.auth-cta:hover {
    border-color: rgba(231, 183, 122, 0.65);
    color: #ffe0b7;
}

.auth-cta--full {
    width: 100%;
}

.owner-link {
    background: linear-gradient(135deg, rgba(93, 136, 255, 0.3), rgba(59, 97, 206, 0.45));
    color: var(--text-strong);
}

.owner-link:hover {
    filter: brightness(1.1);
}

.mobile-toggle {
    width: 2.34rem;
    height: 2.34rem;
    border-radius: 10px;
    border: 1px solid var(--line-mid);
    background: var(--bg-1);
    color: var(--text-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    border-top: 1px solid transparent;
    padding: 0 1rem;
}

.mobile-panel.is-open {
    max-height: 520px;
    border-top-color: var(--line-soft);
    padding: 0.76rem 1rem 1rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav .nav-link {
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
}

.mobile-auth,
.owner-link--mobile {
    margin-top: 0.72rem;
}

.mobile-auth {
    width: 100%;
}

.owner-link--mobile {
    width: 100%;
}

.header-spacer {
    height: 82px;
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line-soft);
    background: #000;
}

.site-footer__inner {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

/* Page primitives */

.page-shell {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.page-shell--narrow {
    max-width: 760px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.page-heading--stack {
    align-items: flex-start;
}

.eyebrow {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-title {
    margin: 0.24rem 0 0;
    color: var(--text-strong);
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: 0.05em;
    line-height: 0.95;
}

.page-subtitle {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 70ch;
}

.mode-tag {
    border-radius: 999px;
    border: 1px solid var(--line-mid);
    padding: 0.45rem 0.78rem;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.mode-tag--owner {
    color: #dbffe9;
    background: rgba(54, 196, 141, 0.14);
    border-color: rgba(54, 196, 141, 0.46);
}

.mode-tag--public {
    color: #d9e5ff;
    background: rgba(93, 136, 255, 0.14);
    border-color: rgba(93, 136, 255, 0.42);
}

.panel {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--bg-1);
    box-shadow: var(--shadow-1);
    padding: 0.9rem;
}

.panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-bottom: 0.7rem;
}

.panel-head--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.panel-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 800;
}

.panel-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.empty-state {
    border: 1px dashed var(--line-mid);
    border-radius: 12px;
    padding: 0.95rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* Dense dashboard */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.metric-card {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--bg-1);
    padding: 0.65rem;
}

.metric-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.metric-value {
    display: block;
    margin-top: 0.36rem;
    color: var(--text-strong);
    font-size: 1.32rem;
    line-height: 1;
    font-weight: 800;
}

.metric-sub {
    display: block;
    margin-top: 0.28rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.panel--chart {
    min-height: 390px;
}

.chart-toolbar {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--bg-2);
    padding: 0.2rem;
    gap: 0.24rem;
}

.chart-toggle {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.38rem 0.66rem;
    cursor: pointer;
}

.chart-toggle.is-active {
    color: var(--text-strong);
    background: linear-gradient(135deg, rgba(93, 136, 255, 0.48), rgba(59, 97, 206, 0.58));
}

.chart-area {
    height: 310px;
}

.mini-list {
    display: grid;
    gap: 0.45rem;
}

.mini-item {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: var(--bg-2);
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 0.58rem;
    align-items: center;
    padding: 0.38rem;
}

.mini-poster {
    width: 38px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.mini-body {
    min-width: 0;
}

.mini-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-meta {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-values {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-end;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.79rem;
}

.stats-table th,
.stats-table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 0.45rem 0.35rem;
    text-align: left;
}

.stats-table th {
    color: var(--text-muted);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.stats-table td {
    color: var(--text);
}

/* Listing controls */

.sort-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-field {
    display: grid;
    gap: 0.2rem;
}

.sort-field span {
    color: var(--text-muted);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

select,
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"] {
    height: 2.2rem;
    border-radius: 9px;
    border: 1px solid var(--line-mid);
    background: var(--bg-2);
    color: var(--text-strong);
    padding: 0 0.66rem;
    font-family: inherit;
    font-size: 0.8rem;
}

select:focus,
input:focus {
    outline: none;
    border-color: rgba(93, 136, 255, 0.74);
    box-shadow: 0 0 0 3px rgba(93, 136, 255, 0.2);
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.info-chip {
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: var(--bg-1);
    padding: 0.56rem;
    display: grid;
    gap: 0.18rem;
}

.info-chip span {
    color: var(--text-muted);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.info-chip strong {
    color: var(--text-strong);
    font-size: 0.95rem;
}

/* Dense tables */

.dense-table-wrap {
    overflow: auto;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
}

.dense-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.dense-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.66rem 0.58rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}

.dense-table th.right,
.dense-table td.row-actions {
    text-align: right;
}

.dense-table td {
    padding: 0.56rem 0.58rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
    font-size: 0.8rem;
    white-space: nowrap;
}

.dense-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.movie-cell {
    min-width: 320px;
    position: relative;
}

.movie-cell__layout {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.54rem;
    align-items: center;
}

.poster-icon {
    width: 42px;
    height: 62px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--line-soft);
}

.movie-cell__body {
    min-width: 0;
}

.movie-title {
    color: var(--text-strong);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-sub {
    margin-top: 0.16rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genre-list {
    margin-top: 0.24rem;
    display: flex;
    gap: 0.28rem;
    flex-wrap: wrap;
}

.genre-chip {
    border-radius: 999px;
    border: 1px solid var(--line-mid);
    padding: 0.08rem 0.45rem;
    font-size: 0.62rem;
    color: var(--text-muted);
    background: var(--bg-2);
}

.tooltip-card {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid var(--line-mid);
    border-radius: 10px;
    padding: 0.62rem;
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.has-tooltip:hover .tooltip-card {
    opacity: 1;
    visibility: visible;
}

.tooltip-title {
    color: var(--text-strong);
    margin: 0 0 0.24rem;
    font-size: 0.83rem;
    font-weight: 700;
}

.tooltip-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.data-pill,
.delta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    border-radius: 999px;
    padding: 0.16rem 0.48rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.data-pill {
    border: 1px solid transparent;
}

.data-pill--user {
    color: #dce8ff;
    background: rgba(93, 136, 255, 0.22);
    border-color: rgba(93, 136, 255, 0.4);
}

.data-pill--tmdb {
    color: #ffe9c8;
    background: rgba(231, 183, 122, 0.2);
    border-color: rgba(231, 183, 122, 0.36);
}

.delta-pill--positive {
    color: #d8ffed;
    background: rgba(54, 196, 141, 0.2);
    border: 1px solid rgba(54, 196, 141, 0.38);
}

.delta-pill--negative {
    color: #ffdce2;
    background: rgba(255, 103, 126, 0.2);
    border: 1px solid rgba(255, 103, 126, 0.4);
}

.delta-pill--neutral {
    color: #e8edf9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-mid);
}

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.action-icon {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 8px;
    border: 1px solid var(--line-mid);
    background: var(--bg-2);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.action-icon--confirm:hover {
    color: #dbffe9;
    border-color: rgba(54, 196, 141, 0.44);
    background: rgba(54, 196, 141, 0.14);
}

.action-icon--danger:hover {
    color: #ffdce2;
    border-color: rgba(255, 103, 126, 0.44);
    background: rgba(255, 103, 126, 0.14);
}

/* Mobile cards */

.mobile-stack {
    display: grid;
    gap: 0.56rem;
}

.mobile-card {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--bg-2);
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.6rem;
    padding: 0.56rem;
}

.mobile-card__poster {
    width: 74px;
    height: 108px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line-soft);
}

.mobile-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
}

.mobile-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.24;
}

.mobile-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
}

.mobile-overview {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-actions {
    margin-top: auto;
    display: flex;
    gap: 0.34rem;
}

.mobile-action-form {
    flex: 1;
}

.action-btn {
    width: 100%;
    height: 2.05rem;
    border-radius: 8px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.action-btn--confirm {
    color: #eef3ff;
    background: linear-gradient(135deg, rgba(93, 136, 255, 0.9), rgba(59, 97, 206, 0.9));
}

.action-btn--danger {
    color: #ffdce2;
    background: rgba(255, 103, 126, 0.15);
    border-color: rgba(255, 103, 126, 0.32);
}

/* Buttons */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.52rem 0.82rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(93, 136, 255, 0.9), rgba(59, 97, 206, 0.92));
    color: #f3f7ff;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    background: var(--bg-2);
    border-color: var(--line-mid);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(231, 183, 122, 0.45);
    color: #ffe1b8;
}

.btn-block {
    width: 100%;
}

/* Auth */

.auth-panel {
    max-width: 620px;
    margin: 0 auto;
}

.auth-form {
    display: grid;
    gap: 0.65rem;
}

.auth-field {
    display: grid;
    gap: 0.2rem;
}

.auth-field span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.alert {
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.66rem;
    font-size: 0.8rem;
}

.alert--error {
    border-color: rgba(255, 103, 126, 0.4);
    background: rgba(255, 103, 126, 0.16);
    color: #ffdce2;
}

/* Modal */

.modal-root {
    position: fixed;
    inset: 0;
    z-index: 110;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
}

.modal-dialog {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-card {
    width: min(100%, 670px);
    border: 1px solid var(--line-mid);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-1);
    box-shadow: var(--shadow-2);
}

.modal-media {
    position: relative;
    height: 250px;
    border-bottom: 1px solid var(--line-soft);
}

.modal-media__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-mid);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
}

.modal-copy {
    padding: 0.9rem;
}

.modal-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.28rem;
    font-weight: 800;
}

.modal-meta {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.modal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.modal-overview {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.48;
}

.modal-tabs {
    margin-top: 0.76rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.36rem;
}

.modal-tab {
    border: 1px solid var(--line-mid);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
}

.modal-tab--active {
    color: var(--text-strong);
    background: linear-gradient(135deg, rgba(93, 136, 255, 0.4), rgba(59, 97, 206, 0.55));
}

.modal-form {
    margin-top: 0.75rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.66rem;
}

.modal-field {
    display: grid;
    gap: 0.18rem;
}

.modal-field span {
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Animation */

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    animation: riseIn 0.34s ease both;
}

.reveal-delay-1 {
    animation-delay: 0.06s;
}

.reveal-delay-2 {
    animation-delay: 0.12s;
}

.reveal-delay-3 {
    animation-delay: 0.18s;
}

/* Responsive */

.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}

@media (min-width: 980px) {
    .site-nav {
        display: inline-flex;
    }

    .mobile-toggle,
    .mobile-panel {
        display: none;
    }
}

@media (max-width: 979px) {
    .search-shell--desktop {
        display: none;
    }

    .auth-cta span {
        display: none;
    }

    .auth-cta {
        width: 2.34rem;
        padding: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .info-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chart-area {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .header-spacer {
        height: 80px;
    }

    .page-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-form {
        width: 100%;
    }

    .sort-field {
        flex: 1;
        min-width: 120px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-media {
        height: 190px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
}
