:root {
    --bg: #06101d;
    --bg-deep: #030a13;
    --surface: #0b1727;
    --surface-2: #101e30;
    --surface-3: #14253a;
    --line: #1e3148;
    --line-soft: rgba(102, 133, 165, .18);
    --text: #eef6ff;
    --muted: #8ea3ba;
    --muted-2: #60758c;
    --cyan: #38d6e9;
    --cyan-2: #0ea5b8;
    --blue: #428fe9;
    --green: #20c56e;
    --red: #ef5261;
    --amber: #f7b84b;
    --purple: #a78bfa;
    --shadow: 0 20px 60px rgba(0, 0, 0, .25);
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar: 252px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 0%, rgba(27, 119, 160, .1), transparent 28rem),
        var(--bg);
    font-size: 14px;
    line-height: 1.5;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

h2 {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(14, 28, 45, .98), rgba(5, 14, 25, .99)),
        var(--surface);
    border-right: 1px solid var(--line-soft);
}

.sidebar-top {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-weight: 760;
    font-size: 17px;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px 4px 10px 4px;
    color: #031016;
    background: linear-gradient(145deg, #64edf5, #25b9ce);
    box-shadow: 0 8px 24px rgba(56, 214, 233, .22);
    font-weight: 900;
}

.brand-large {
    font-size: 21px;
}

.brand-large .brand-mark {
    width: 43px;
    height: 43px;
    font-size: 21px;
}

.nav-list {
    padding: 22px 14px;
    display: grid;
    gap: 5px;
}

.nav-label {
    margin: 0 10px 9px;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.nav-item {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 600;
    transition: .18s ease;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .035);
}

.nav-item.active {
    color: #dffdff;
    border-color: rgba(56, 214, 233, .16);
    background: linear-gradient(90deg, rgba(56, 214, 233, .15), rgba(56, 214, 233, .04));
    box-shadow: inset 3px 0 var(--cyan);
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 18px;
    color: currentColor;
}

.sidebar-note {
    margin: auto 14px 14px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .025);
}

.sidebar-note strong,
.sidebar-note small {
    display: block;
}

.sidebar-note strong {
    color: var(--text);
    font-size: 12px;
}

.sidebar-note small {
    font-size: 10px;
    margin-top: 1px;
}

.live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(32, 197, 110, .1);
}

.sidebar-user {
    min-height: 74px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line-soft);
}

.avatar,
.user-cell > i {
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #bdf8ff;
    background: linear-gradient(145deg, #214966, #123044);
    font-style: normal;
    font-weight: 800;
}

.user-meta {
    min-width: 0;
    flex: 1;
}

.user-meta strong,
.user-meta span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-meta strong {
    font-size: 12px;
}

.user-meta span {
    color: var(--muted);
    font-size: 10px;
}

.main-area {
    min-height: 100vh;
    margin-left: var(--sidebar);
}

.topbar {
    min-height: 78px;
    padding: 13px clamp(20px, 3vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(6, 16, 29, .88);
    backdrop-filter: blur(15px);
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--cyan);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .16em;
}

.today-chip,
.owner-chip,
.scope-chip {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .025);
    font-size: 11px;
    white-space: nowrap;
}

.page-content {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 30px clamp(20px, 3vw, 42px) 54px;
}

.button,
.icon-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.button {
    min-height: 42px;
    padding: 0 17px;
    gap: 7px;
    border-radius: 10px;
    font-size: 12px;
}

.button:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #031014;
    background: linear-gradient(135deg, #56e5ee, #27bfd2);
    box-shadow: 0 10px 26px rgba(56, 214, 233, .17);
}

.button-primary:hover {
    background: linear-gradient(135deg, #70f0f6, #38cada);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface-2);
}

.button-ghost {
    border: 1px solid transparent;
    color: var(--muted);
    background: transparent;
}

.button-compact {
    min-height: 36px;
    padding: 0 13px;
}

.button-wide {
    width: 100%;
}

.icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: rgba(255, 255, 255, .025);
}

.icon-button:hover {
    color: var(--text);
    border-color: #365470;
    background: var(--surface-3);
}

.icon-danger:hover {
    color: #ff9ba5;
    border-color: rgba(239, 82, 97, .35);
    background: rgba(239, 82, 97, .1);
}

.mobile-only {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.flash-stack {
    position: fixed;
    z-index: 50;
    right: 26px;
    top: 92px;
    width: min(390px, calc(100vw - 32px));
    display: grid;
    gap: 8px;
}

.alert {
    min-height: 44px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: rgba(16, 30, 48, .97);
    box-shadow: var(--shadow);
    font-size: 12px;
}

.alert-success {
    border-color: rgba(32, 197, 110, .28);
    background: rgba(10, 55, 37, .98);
}

.alert-danger {
    border-color: rgba(239, 82, 97, .32);
    background: rgba(65, 20, 28, .98);
}

.alert-warning {
    border-color: rgba(247, 184, 75, .3);
    background: rgba(63, 45, 14, .98);
}

.alert-close {
    border: 0;
    color: currentColor;
    background: transparent;
    font-size: 18px;
}

.welcome-row,
.scorecard-intro,
.toolbar-row {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.welcome-row p,
.scorecard-intro p,
.section-copy {
    max-width: 720px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.text-link {
    color: var(--cyan);
    font-weight: 700;
    font-size: 12px;
}

.text-link span {
    margin-left: 6px;
}

.stats-grid {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card,
.panel {
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(145deg, rgba(17, 33, 52, .92), rgba(9, 23, 38, .92)),
        var(--surface);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .12);
}

.stat-card {
    min-height: 145px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -42px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(56, 214, 233, .05);
}

.stat-accent {
    border-color: rgba(56, 214, 233, .25);
    background:
        radial-gradient(circle at 100% 100%, rgba(56, 214, 233, .15), transparent 55%),
        linear-gradient(145deg, rgba(17, 43, 59, .95), rgba(8, 25, 39, .95));
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.stat-top i {
    font-style: normal;
    color: var(--cyan);
}

.stat-top .green {
    color: var(--green);
}

.stat-top .blue {
    color: var(--blue);
}

.stat-top .purple {
    color: var(--purple);
}

.stat-card > strong {
    display: block;
    margin-top: 15px;
    font-size: 29px;
    line-height: 1;
    letter-spacing: -.04em;
}

.stat-card > small {
    display: block;
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 10px;
}

.progress-track {
    height: 5px;
    margin-top: 17px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
}

.progress-track i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--bar, linear-gradient(90deg, var(--cyan-2), var(--cyan)));
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(290px, .8fr);
    gap: 20px;
}

.panel {
    border-radius: var(--radius);
}

.panel-wide {
    min-width: 0;
}

.section-heading {
    min-height: 76px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.content-feed {
    padding: 4px 20px 12px;
}

.feed-item {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.feed-item:last-child {
    border-bottom: 0;
}

.feed-item:hover .feed-copy strong {
    color: var(--cyan);
}

.platform-orb {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--platform);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--platform), transparent 86%);
}

.feed-copy {
    min-width: 0;
    flex: 1;
}

.feed-copy strong,
.feed-copy span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-copy strong {
    font-size: 12px;
}

.feed-copy span,
.feed-item time {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.badge {
    min-height: 25px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.badge-published {
    color: #88f0b6;
    border-color: rgba(32, 197, 110, .2);
    background: rgba(32, 197, 110, .1);
}

.badge-scheduled {
    color: #8bc2ff;
    border-color: rgba(66, 143, 233, .22);
    background: rgba(66, 143, 233, .11);
}

.badge-neutral {
    color: #b7c5d5;
    border-color: rgba(142, 163, 186, .2);
    background: rgba(142, 163, 186, .09);
}

.badge-archived {
    color: #8997a7;
    border-color: rgba(96, 117, 140, .17);
    background: rgba(96, 117, 140, .08);
}

.platform-bars {
    padding: 18px 20px 5px;
    display: grid;
    gap: 18px;
}

.bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
}

.bar-label > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--platform);
    background: color-mix(in srgb, var(--platform), transparent 88%);
    font-style: normal;
    font-size: 9px;
    font-weight: 850;
}

.bar-label strong {
    color: var(--text);
}

.platform-bar .progress-track {
    margin-top: 7px;
}

.quick-insight {
    margin: 20px;
    padding: 13px;
    display: flex;
    gap: 10px;
    border: 1px solid rgba(167, 139, 250, .17);
    border-radius: 10px;
    background: rgba(167, 139, 250, .06);
}

.quick-insight > span {
    color: var(--purple);
}

.quick-insight p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.quick-insight strong {
    color: var(--text);
}

.audit-panel {
    margin-top: 20px;
}

.activity-list {
    padding: 8px 20px 13px;
}

.activity-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line-soft);
    font-size: 11px;
}

.activity-item:last-child {
    border: 0;
}

.activity-item p {
    margin: 0;
    flex: 1;
}

.activity-item strong {
    color: var(--text);
}

.activity-item time {
    color: var(--muted-2);
    white-space: nowrap;
}

.activity-dot {
    width: 7px;
    height: 7px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
}

.empty-state,
.error-state {
    min-height: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state h3,
.error-state h2 {
    margin: 12px 0 5px;
}

.empty-state p,
.error-state p,
.muted {
    color: var(--muted);
}

.empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--cyan);
    background: var(--surface-2);
    font-size: 20px;
}

.error-state > span {
    color: var(--cyan);
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.debug-message {
    max-width: 700px;
    padding: 12px;
    overflow: auto;
    border: 1px solid rgba(239, 82, 97, .25);
    color: #ffb7be;
    background: rgba(239, 82, 97, .06);
    text-align: left;
    white-space: pre-wrap;
}

.filter-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-bar select,
.week-nav input {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: var(--surface-2);
    outline: none;
    font-size: 11px;
}

.search-field {
    min-width: 260px;
    flex: 1;
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
}

.search-field span {
    color: var(--muted);
    font-size: 17px;
}

.search-field input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.filter-reset {
    padding: 8px;
    color: var(--muted);
    font-size: 11px;
}

.table-panel {
    min-width: 0;
    overflow: hidden;
}

.table-heading {
    min-height: 88px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-table th,
.data-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}

.data-table thead th {
    color: var(--muted-2);
    background: rgba(3, 10, 19, .28);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, .02);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.content-table {
    min-width: 940px;
}

.table-title,
.table-subtitle {
    display: block;
}

.table-title {
    max-width: 330px;
    color: var(--text);
    font-weight: 700;
}

.table-title:hover {
    color: var(--cyan);
}

.table-subtitle {
    max-width: 330px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.platform-label,
.category-chip,
.category-name,
.user-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.platform-label i,
.category-chip i,
.category-name i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    display: inline-block;
    border-radius: 50%;
    background: var(--platform, var(--category));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--platform, var(--category)), transparent 87%);
}

.category-chip {
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    white-space: nowrap;
}

.cell-actions {
    text-align: right !important;
    white-space: nowrap;
}

.cell-actions > form,
.platform-card-actions > form {
    display: inline-flex;
}

.cell-actions .icon-button {
    margin-left: 4px;
}

.row-muted {
    opacity: .53;
}

.locked-label {
    color: var(--muted-2);
    font-size: 9px;
}

.pagination {
    padding: 17px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    border-top: 1px solid var(--line-soft);
}

.pagination a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
}

.pagination a.active {
    color: #031014;
    border-color: var(--cyan);
    background: var(--cyan);
}

.content-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 20px;
}

.form-panel {
    overflow: hidden;
}

.form-panel .form-grid,
.form-panel .form-stack {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field > span,
.form-section-title {
    color: #c8d5e4;
    font-size: 11px;
    font-weight: 700;
}

.field > span i {
    color: var(--cyan);
    font-style: normal;
}

.field small {
    color: var(--muted-2);
    font-size: 9px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: rgba(4, 14, 25, .62);
    outline: none;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
    line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-bar select:focus,
.week-nav input:focus,
.search-field:focus-within {
    border-color: rgba(56, 214, 233, .65);
    box-shadow: 0 0 0 3px rgba(56, 214, 233, .08);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #53677d;
}

.form-section-title {
    padding-top: 5px;
    color: var(--cyan);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sticky-panel {
    position: sticky;
    top: 98px;
}

.version-note {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
    font-size: 10px;
}

.version-note strong {
    color: var(--text);
}

.version-note small {
    grid-column: 1 / -1;
    margin-top: 3px;
}

.master-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.master-grid > aside {
    position: sticky;
    top: 98px;
}

.color-field {
    min-height: 42px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(4, 14, 25, .62);
}

.color-field input {
    width: 30px;
    height: 30px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.color-field span {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
}

.hidden {
    display: none !important;
}

.platform-card-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.platform-card {
    min-height: 76px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: rgba(255, 255, 255, .02);
}

.platform-card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--platform);
    background: color-mix(in srgb, var(--platform), transparent 88%);
    font-weight: 800;
}

.platform-card-copy {
    min-width: 0;
    flex: 1;
}

.platform-card-copy strong,
.platform-card-copy span {
    display: block;
}

.platform-card-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.platform-card-actions {
    display: flex;
    gap: 4px;
}

.user-cell > span > strong,
.user-cell > span > small {
    display: block;
}

.user-cell > span > small {
    margin-top: 2px;
    color: var(--muted);
}

.scorecard-intro {
    align-items: center;
}

.week-nav,
.week-nav form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.score-summary {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.score-summary-item {
    min-height: 58px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: var(--surface);
}

.score-summary-item > i {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-style: normal;
    background: rgba(255, 255, 255, .05);
}

.score-summary-item span {
    color: var(--muted);
    font-size: 9px;
}

.score-summary-item strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 15px;
}

.score-published {
    --score: var(--green);
}

.score-scheduled {
    --score: var(--blue);
}

.score-failed {
    --score: var(--red);
}

.score-projected {
    --score: #145191;
}

.score-empty {
    --score: #33475c;
}

.score-summary-item > i,
.legend .score-published i,
.legend .score-scheduled i,
.legend .score-failed i,
.legend .score-projected i,
.legend .score-empty i {
    color: var(--score);
}

.scorecard-panel {
    overflow: hidden;
}

.scorecard-scroll {
    width: 100%;
    overflow-x: auto;
}

.scorecard-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.scorecard-table th,
.scorecard-table td {
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-soft);
    text-align: center;
}

.scorecard-table thead th {
    height: 58px;
    color: var(--muted);
    background: rgba(3, 10, 19, .35);
    font-size: 9px;
}

.scorecard-table thead th:first-child,
.scorecard-table tbody tr:not(.platform-group-row) > th {
    width: 270px;
    padding: 0 16px;
    text-align: left;
}

.scorecard-table thead th:not(:first-child) {
    width: 90px;
}

.scorecard-table thead span,
.scorecard-table thead strong {
    display: block;
}

.scorecard-table thead strong {
    margin-top: 1px;
    color: var(--text);
    font-size: 15px;
}

.scorecard-table .today {
    box-shadow: inset 1px 0 var(--cyan), inset -1px 0 var(--cyan);
}

.platform-group-row th {
    height: 30px;
    padding: 0 16px;
    color: #d9e6f5;
    background: rgba(2, 8, 15, .8);
    font-size: 10px;
    text-align: center;
    letter-spacing: .01em;
}

.endpoint-name,
.scorecard-table tbody th small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.endpoint-name {
    color: #cbd8e6;
    font-size: 10px;
}

.scorecard-table tbody th small {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 500;
}

.score-cell {
    width: 100%;
    height: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #dfeeff;
    background: color-mix(in srgb, var(--score), transparent 70%);
}

.score-cell:hover {
    filter: brightness(1.25);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--score), white 20%);
}

.score-cell span {
    color: color-mix(in srgb, var(--score), white 44%);
}

.score-cell small {
    font-size: 8px;
}

.score-cell.score-empty {
    background: rgba(255, 255, 255, .012);
}

.scorecard-footer {
    min-height: 60px;
    padding: 12px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line-soft);
}

.scorecard-footer p {
    margin: 0;
    color: var(--muted-2);
    font-size: 9px;
}

.legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
}

.legend i {
    font-style: normal;
}

.modal {
    width: min(420px, calc(100vw - 30px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 30px 100px #000;
}

.modal::backdrop {
    background: rgba(0, 6, 13, .74);
    backdrop-filter: blur(4px);
}

.modal form {
    padding: 0 20px 20px;
}

.modal-header {
    min-height: 76px;
    margin: 0 -20px 18px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-soft);
}

.modal .button {
    margin-top: 18px;
}

.login-body,
.install-body {
    background:
        radial-gradient(circle at 14% 16%, rgba(56, 214, 233, .11), transparent 25rem),
        radial-gradient(circle at 86% 84%, rgba(31, 78, 124, .18), transparent 28rem),
        var(--bg-deep);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr);
}

.login-visual {
    min-height: 100vh;
    padding: clamp(30px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--line-soft);
}

.login-visual::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    left: 12%;
    bottom: -36%;
    border: 1px solid rgba(56, 214, 233, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(56, 214, 233, .02), 0 0 0 160px rgba(56, 214, 233, .012);
}

.login-copy {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.login-copy h1 {
    max-width: 650px;
    margin: 12px 0 18px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: .99;
    letter-spacing: -.065em;
}

.login-copy > p:last-child {
    max-width: 520px;
    color: var(--muted);
    font-size: 15px;
}

.login-panel {
    min-height: 100vh;
    padding: 34px;
    display: grid;
    place-items: center;
    background: rgba(8, 19, 32, .68);
}

.login-card {
    width: min(410px, 100%);
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h2 {
    margin: 9px 0 7px;
    font-size: 28px;
}

.login-heading p:last-child,
.login-security {
    color: var(--muted);
    font-size: 11px;
}

.login-form {
    display: grid;
    gap: 17px;
}

.login-form .button {
    margin-top: 4px;
}

.login-security {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    text-align: center;
}

.mini-scorecard {
    width: min(690px, 100%);
    padding: 17px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(8, 22, 37, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(9px);
}

.mini-head,
.mini-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.5fr) repeat(7, 1fr);
    align-items: center;
    gap: 7px;
}

.mini-head {
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 10px;
}

.mini-head strong {
    grid-column: 7 / 9;
    color: var(--cyan);
    text-align: right;
}

.mini-row {
    min-height: 31px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 9px;
}

.mini-row i {
    width: 100%;
    height: 16px;
    border-radius: 4px;
    background: rgba(45, 107, 177, .45);
}

.mini-row i.live {
    background: rgba(32, 197, 110, .8);
}

.mini-row i.empty {
    border: 1px solid var(--line-soft);
    background: transparent;
}

.install-shell {
    width: min(1200px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
}

.install-intro h1 {
    margin: 13px 0 17px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -.055em;
}

.install-intro > p:not(.eyebrow) {
    max-width: 520px;
    color: var(--muted);
}

.install-intro .eyebrow {
    margin-top: 80px;
}

.install-checks {
    margin-top: 30px;
    display: grid;
    gap: 10px;
    color: #b5c7d9;
    font-size: 11px;
}

.install-checks span::first-letter {
    color: var(--green);
}

.install-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 23, 39, .94);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.install-card > .alert {
    margin: 14px 20px 0;
}

.install-card .form-grid {
    padding: 22px;
}

@media (max-width: 1120px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .master-grid {
        grid-template-columns: 300px minmax(0, 1fr);
    }

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

    .login-shell {
        grid-template-columns: 1fr 420px;
    }

    .login-copy h1 {
        font-size: 48px;
    }

    .install-shell {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 32px));
    }

    .install-intro .eyebrow {
        margin-top: 48px;
    }
}

@media (max-width: 860px) {
    .mobile-only {
        display: inline-flex;
    }

    .sidebar {
        width: min(290px, calc(100vw - 54px));
        transform: translateX(-102%);
        transition: transform .22s ease;
        box-shadow: 20px 0 60px rgba(0, 0, 0, .36);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 29;
        inset: 0;
        display: block;
        pointer-events: none;
        opacity: 0;
        background: rgba(0, 5, 10, .65);
        transition: opacity .2s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        pointer-events: auto;
        opacity: 1;
    }

    .main-area {
        margin-left: 0;
    }

    .topbar {
        padding: 12px 17px;
    }

    .page-content {
        padding: 22px 16px 40px;
    }

    .today-chip {
        display: none;
    }

    .master-grid,
    .content-form {
        grid-template-columns: 1fr;
    }

    .master-grid > aside,
    .sticky-panel {
        position: static;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        padding: 24px;
    }
}

@media (max-width: 620px) {
    .topbar-actions .button {
        width: 38px;
        padding: 0;
        font-size: 0;
    }

    .topbar-actions .button span {
        font-size: 17px;
    }

    .welcome-row,
    .scorecard-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .stat-card {
        min-height: 132px;
        padding: 15px;
    }

    .stat-card > strong {
        font-size: 24px;
    }

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

    .field-wide {
        grid-column: auto;
    }

    .platform-card-grid {
        grid-template-columns: 1fr;
    }

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

    .week-nav {
        width: 100%;
    }

    .week-nav form {
        flex: 1;
    }

    .week-nav input {
        min-width: 0;
        width: 100%;
    }

    .scorecard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-bar > select,
    .search-field {
        width: 100%;
        min-width: 100%;
        flex: 1 0 100%;
    }

    .feed-item {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .feed-copy {
        flex-basis: calc(100% - 26px);
    }

    .feed-item .badge {
        margin-left: 20px;
    }

    .owner-chip {
        display: none;
    }

    .install-shell {
        padding: 24px 0;
    }

    .install-intro h1 {
        font-size: 39px;
    }

    .install-intro .eyebrow {
        margin-top: 45px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

