:root {
    --ink: #182322;
    --muted-ink: #58706c;
    --paper: #f7fbf9;
    --line: #cfe0da;
    --teal: #176d68;
    --teal-dark: #104a47;
    --coral: #ca513d;
    --gold: #d5a52b;
    --white: #ffffff;
    --danger: #a9342c;
    --success: #21715d;
    --shadow: 0 14px 32px rgba(24, 35, 34, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 109, 104, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 109, 104, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    font-family: "DM Sans", sans-serif;
    letter-spacing: 0;
}

body.public-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-page main {
    flex: 1;
}

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

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-width,
.masthead,
.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    background: rgba(247, 251, 249, 0.94);
    border-bottom: 1px solid var(--line);
}

.masthead {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Source Serif 4", serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.wordmark strong {
    color: var(--coral);
    font-weight: 700;
}

.wordmark-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--white);
    background: var(--teal);
    border: 3px solid var(--gold);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.brand-header {
    background: #020b1d;
    border-bottom: 0;
}

.brand-banner {
    width: 100%;
}

.brand-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.sticky-site-chrome {
    position: sticky;
    top: 0;
    z-index: 50;
}

.masthead-meta,
.section-bar,
.story-meta,
.story-time,
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.masthead-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted-ink);
}

.masthead-meta a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.section-bar {
    color: var(--white);
    background: #00142d;
    overflow-x: auto;
}

.sticky-section-bar {
    box-shadow: 0 5px 14px rgba(1, 20, 36, 0.24);
}

.section-bar-inner {
    display: flex;
    width: max-content;
    min-width: min(1180px, calc(100% - 40px));
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-inline: auto;
}

.section-links,
.currency-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.section-links {
    gap: 28px;
}

.currency-ticker {
    gap: 14px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.currency-ticker-label {
    color: #a9d5cc;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.currency-quote {
    display: inline-flex;
    gap: 5px;
    color: #dceee9;
    font-size: 11px;
}

.currency-quote strong {
    color: var(--white);
    font-size: 12px;
}

.top-stories {
    padding-top: 50px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading > p {
    margin: 0;
    color: var(--muted-ink);
    font-size: 14px;
}

.eyebrow {
    margin: 0;
    color: var(--coral);
}

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 30px;
    align-items: start;
}

.lead-story {
    min-width: 0;
}

.story-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--teal-dark);
}

.lead-image {
    aspect-ratio: 16 / 9;
}

.compact-image {
    aspect-ratio: 1 / 1;
}

.card-image {
    aspect-ratio: 16 / 10;
}

.story-image img {
    transition: transform 220ms ease;
}

.story-image:hover img {
    transform: scale(1.035);
}

.image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    font-family: "Source Serif 4", serif;
    font-size: clamp(20px, 4vw, 42px);
    font-weight: 600;
    text-align: center;
}

.image-fallback[hidden] {
    display: none;
}

.story-copy {
    padding-top: 18px;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 9px;
    color: var(--muted-ink);
}

.story-meta span {
    color: var(--teal);
}

.lead-story h1,
.compact-story h2,
.news-card h3,
.empty-news h1,
.latest-heading h2 {
    margin: 0;
    font-family: "Source Serif 4", serif;
    font-weight: 600;
    line-height: 1.04;
}

.lead-story h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.lead-story h1 a:hover,
.compact-story h2 a:hover,
.news-card h3 a:hover {
    color: var(--coral);
}

.story-excerpt,
.card-excerpt {
    color: #405451;
    line-height: 1.6;
}

.story-excerpt {
    max-width: 70ch;
    margin: 15px 0 0;
    font-size: 16px;
}

.side-stories {
    display: grid;
    gap: 20px;
}

.compact-story {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.compact-story:last-child {
    border-bottom: 0;
}

.compact-story h2 {
    font-size: 22px;
}

.story-time {
    margin: 10px 0 0;
    color: var(--muted-ink);
}

.latest-section {
    padding-block: 68px;
}

.latest-heading {
    align-items: end;
    padding-top: 18px;
    border-top: 4px solid var(--coral);
}

.latest-heading h2 {
    margin-top: 3px;
    font-size: 34px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 4px 0 rgba(23, 109, 104, 0.08);
    overflow: hidden;
}

.card-copy {
    padding: 18px;
}

.news-card h3 {
    font-size: 24px;
}

.card-excerpt {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.empty-news,
.setup-notice {
    padding-block: 104px;
}

.empty-news {
    max-width: 760px;
}

.empty-news h1 {
    margin-top: 10px;
    font-size: clamp(38px, 6vw, 68px);
}

.empty-news > p:last-child {
    max-width: 60ch;
    color: var(--muted-ink);
    font-size: 18px;
    line-height: 1.6;
}

.setup-notice p {
    margin: 0;
    color: var(--coral);
    font-weight: 700;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 26px;
    color: #dceee9;
    background: var(--teal-dark);
    font-size: 13px;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer-links a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.floating-social-links {
    display: grid;
    position: fixed;
    z-index: 10;
    top: 50%;
    right: 18px;
    gap: 8px;
    transform: translateY(-50%);
}

.floating-social-link {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(16, 74, 71, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-social-link:hover {
    transform: translateX(-3px);
    box-shadow: 0 12px 22px rgba(16, 74, 71, 0.3);
}

.floating-social-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.floating-social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.floating-social-link.is-facebook {
    background: #1877f2;
}

.floating-social-link.is-instagram {
    background: #d62976;
}

body > .site-footer {
    width: 100%;
    padding-inline: max(20px, calc((100vw - 1180px) / 2));
}

[data-news]:focus-visible,
.modal-close:focus-visible,
.modal-source-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.news-modal {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 24px 62px rgba(10, 44, 42, 0.28);
}

.news-modal::backdrop {
    background: rgba(10, 44, 42, 0.68);
}

.modal-surface {
    position: relative;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
    background: var(--teal-dark);
}

.modal-image-wrap {
    aspect-ratio: 16 / 9;
    background: var(--teal-dark);
}

.modal-image-wrap[hidden],
.modal-author[hidden],
.modal-excerpt[hidden] {
    display: none;
}

.modal-copy {
    padding: 30px;
}

.modal-meta {
    margin-bottom: 13px;
}

.modal-copy h2 {
    margin: 0;
    font-family: "Source Serif 4", serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 600;
    line-height: 1.06;
}

.modal-author,
.modal-excerpt {
    color: #405451;
    line-height: 1.6;
}

.modal-author {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.modal-excerpt {
    margin: 18px 0 0;
    font-size: 16px;
}

.modal-source-link {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    text-decoration: none;
}

.legal-main {
    width: min(820px, calc(100% - 40px));
    padding-block: 64px 84px;
}

.legal-content {
    max-width: 72ch;
}

.legal-content h1,
.legal-content h2 {
    font-family: "Source Serif 4", serif;
    font-weight: 600;
    line-height: 1.08;
}

.legal-content h1 {
    margin: 8px 0 14px;
    font-size: clamp(38px, 6vw, 62px);
}

.legal-content h2 {
    margin: 0;
    font-size: 28px;
}

.legal-content h3 {
    margin: 26px 0 0;
    color: var(--teal-dark);
    font-size: 17px;
    line-height: 1.35;
}

.legal-updated,
.legal-content p,
.legal-content li {
    color: #405451;
    line-height: 1.7;
}

.legal-updated {
    margin: 0;
    font-size: 14px;
}

.legal-intro {
    margin: 30px 0 0;
    color: var(--ink) !important;
    font-size: 19px;
}

.legal-section {
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.legal-section p {
    margin: 14px 0 0;
}

.legal-content a {
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.legal-contact {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.legal-contact a {
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.legal-signature {
    margin: 34px 0 0;
    color: var(--ink) !important;
}

@media (max-width: 840px) {
    .lead-grid {
        grid-template-columns: 1fr;
    }

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

    .compact-story {
        display: block;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .compact-image {
        margin-bottom: 12px;
        aspect-ratio: 16 / 10;
    }

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

@media (max-width: 620px) {
    .page-width,
    .masthead {
        width: min(100% - 28px, 1180px);
    }

    .masthead {
        min-height: 76px;
    }

    .wordmark {
        gap: 9px;
        font-size: 25px;
    }

    .wordmark-mark {
        width: 31px;
        height: 31px;
        border-width: 2px;
    }

    .masthead-meta span,
    .section-links span:nth-child(n + 3) {
        display: none;
    }

    .section-bar {
        scrollbar-width: thin;
    }

    .section-bar-inner {
        min-width: max-content;
        gap: 18px;
        margin: 0;
        padding-inline: 14px;
    }

    .section-links {
        gap: 22px;
    }

    .currency-ticker {
        gap: 12px;
        padding-left: 18px;
    }

    .top-stories {
        padding-top: 32px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }

    .side-stories,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .compact-story {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--line);
    }

    .compact-image {
        margin: 0;
        aspect-ratio: 1 / 1;
    }

    .compact-story h2 {
        font-size: 20px;
    }

    .latest-section {
        padding-block: 48px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .floating-social-links {
        top: auto;
        right: 12px;
        bottom: 16px;
        transform: none;
    }

    .floating-social-link {
        width: 44px;
        height: 44px;
    }

    .legal-main {
        width: min(100% - 28px, 820px);
        padding-block: 44px 56px;
    }

    .legal-content h2 {
        font-size: 25px;
    }

    .news-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }

    .modal-surface {
        max-height: calc(100dvh - 20px);
    }

    .modal-copy {
        padding: 24px 20px;
    }
}

.admin-page {
    min-height: 100vh;
    background-color: #eef5f2;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 250px minmax(0, 1fr);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    padding: 28px 20px 20px;
    color: #e5f3ee;
    background: var(--teal-dark);
}

.sidebar-wordmark {
    color: var(--white);
    font-size: 24px;
}

.sidebar-label {
    margin: 38px 10px 12px;
    color: #9bc6bb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav a {
    padding: 11px 12px;
    border-left: 3px solid transparent;
    color: #c4ddd5;
    font-size: 14px;
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    border-left-color: var(--gold);
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
}

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 16px 10px 0;
    border-top: 1px solid rgba(225, 245, 238, 0.22);
    color: #c4ddd5;
    font-size: 13px;
}

.sidebar-user button,
.text-danger {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-main {
    width: min(1320px, 100%);
    padding: 42px clamp(22px, 4vw, 64px) 64px;
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.admin-header h1,
.login-panel h2,
.login-intro h1,
.panel-heading h2,
.social-policy h2 {
    margin: 3px 0 0;
    font-family: "Source Serif 4", serif;
    font-weight: 600;
    line-height: 1.08;
}

.admin-header h1 {
    font-size: 40px;
}

.view-site-link,
.panel-heading > a,
.source-actions > a,
.editorial-copy > a {
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.alert {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-left: 4px solid;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    border-color: var(--success);
    color: #185643;
    background: #e2f3eb;
}

.alert-error,
.account-error {
    border-color: var(--danger);
    color: #7e2822;
    background: #fce9e6;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-grid article {
    min-height: 125px;
    padding: 20px;
    border-top: 4px solid var(--teal);
    background: var(--white);
    box-shadow: 0 3px 0 rgba(23, 109, 104, 0.08);
}

.metric-grid article:nth-child(2) {
    border-top-color: var(--coral);
}

.metric-grid article:nth-child(3) {
    border-top-color: var(--gold);
}

.metric-grid article:nth-child(4) {
    border-top-color: var(--teal-dark);
}

.metric-grid article:nth-child(5) {
    border-top-color: var(--coral);
}

.metric-grid span {
    display: block;
    color: var(--muted-ink);
    font-size: 13px;
    font-weight: 600;
}

.metric-grid strong {
    display: block;
    margin-top: 13px;
    font-family: "Source Serif 4", serif;
    font-size: 46px;
    line-height: 1;
}

.metric-grid .metric-date strong {
    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    line-height: 1.3;
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.tool-panel {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 3px 0 rgba(23, 109, 104, 0.07);
}

.admin-columns .tool-panel {
    margin-bottom: 0;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-heading h2,
.social-policy h2 {
    font-size: 25px;
}

.panel-heading > p {
    margin: 0;
}

.empty-copy,
.small-detail,
.social-policy p {
    margin: 0;
    color: var(--muted-ink);
    font-size: 14px;
    line-height: 1.55;
}

.small-detail {
    margin-top: 10px;
}

.source-status-list,
.source-list,
.editorial-list {
    display: grid;
}

.source-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.source-status-list > div:last-child,
.source-row:last-child,
.editorial-row:last-child {
    border-bottom: 0;
}

.status-dot,
.connection-state,
.queue-state,
.count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    color: var(--muted-ink);
    background: #f6faf8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-dot.is-on,
.connection-state.is-connected,
.state-published {
    border-color: #9bd5c1;
    color: #145643;
    background: #e5f5ee;
}

.state-failed {
    border-color: #e8b0aa;
    color: #8c2d25;
    background: #fce9e6;
}

.state-pending,
.state-processing {
    border-color: #ead598;
    color: #735618;
    background: #fff7db;
}

.data-table-wrap {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted-ink);
    font-size: 11px;
    text-transform: uppercase;
}

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

.stack-form label,
.numeric-setting {
    display: grid;
    gap: 6px;
    color: #38514c;
    font-size: 13px;
    font-weight: 700;
}

.stack-form input:not([type="checkbox"]),
.stack-form select,
.numeric-setting input {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #b9cec7;
    border-radius: 4px;
    color: var(--ink);
    background: #fbfefd;
}

.stack-form input:focus,
.stack-form select:focus,
.numeric-setting input:focus {
    outline: 3px solid rgba(23, 109, 104, 0.18);
    border-color: var(--teal);
}

.check-row {
    display: inline-flex !important;
    align-items: center;
    gap: 9px !important;
    color: var(--ink) !important;
    cursor: pointer;
}

.check-row input,
.queue-form input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

.button {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.button-primary {
    border-color: var(--teal);
    color: var(--white);
    background: var(--teal);
}

.button-primary:hover {
    border-color: var(--teal-dark);
    background: var(--teal-dark);
}

.button-secondary {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: var(--white);
}

.button-secondary:hover {
    color: var(--white);
    background: var(--teal);
}

.source-layout {
    grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
}

.source-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.source-row strong,
.editorial-copy strong {
    display: block;
    font-family: "Source Serif 4", serif;
    font-size: 20px;
    line-height: 1.15;
}

.source-row a,
.source-row p {
    display: inline-block;
    margin: 6px 10px 0 0;
    color: var(--muted-ink);
    font-size: 12px;
}

.source-row p {
    display: block;
    margin-right: 0;
    line-height: 1.4;
}

.source-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.text-danger {
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.text-danger:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    text-decoration: none;
}

.setting-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto 120px auto;
    align-items: end;
    gap: 20px;
}

.switch-row {
    min-height: 42px;
}

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

.social-account {
    min-width: 0;
}

.account-error {
    margin: 0;
    padding: 10px;
    border-left: 3px solid;
    font-size: 12px;
    line-height: 1.45;
}

.admin-note {
    max-width: 86ch;
    margin: 0;
    color: var(--muted-ink);
    font-size: 13px;
    line-height: 1.5;
}

.editorial-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.editorial-copy {
    min-width: 0;
}

.editorial-copy > span {
    display: block;
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.editorial-copy > a {
    display: inline-block;
    margin-top: 7px;
}

.editorial-actions,
.queue-form {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.queue-form label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-ink);
    font-size: 12px;
    font-weight: 700;
}

.login-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 8vw, 110px);
    color: var(--white);
    background-color: var(--teal-dark);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
}

.login-intro .wordmark {
    margin-bottom: 70px;
    color: var(--white);
}

.login-intro .eyebrow {
    color: #f2c959;
}

.login-intro h1 {
    max-width: 12ch;
    margin-top: 12px;
    font-size: clamp(42px, 5vw, 72px);
}

.login-intro > p:last-child {
    max-width: 46ch;
    color: #bfdcd3;
    font-size: 17px;
    line-height: 1.6;
}

.login-panel {
    align-self: center;
    width: min(430px, calc(100% - 48px));
    margin-inline: auto;
    padding: 38px;
    border-top: 4px solid var(--coral);
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-panel h2 {
    margin-bottom: 28px;
    font-size: 34px;
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 204px minmax(0, 1fr);
    }

    .setting-row {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .setting-row > div {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: 0;
        padding: 16px;
    }

    .sidebar-label,
    .sidebar-user {
        display: none;
    }

    .admin-nav {
        display: flex;
        margin-top: 16px;
        overflow-x: auto;
    }

    .admin-nav a {
        flex: 0 0 auto;
        border-bottom: 3px solid transparent;
        border-left: 0;
    }

    .admin-nav a:hover,
    .admin-nav a.is-active {
        border-bottom-color: var(--gold);
        border-left-color: transparent;
    }

    .admin-main {
        padding: 28px 16px 44px;
    }

    .admin-header h1 {
        font-size: 32px;
    }

    .metric-grid,
    .admin-columns,
    .account-grid,
    .source-layout {
        grid-template-columns: 1fr;
    }

    .editorial-row,
    .source-row {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }

    .editorial-actions {
        width: 100%;
        flex-wrap: wrap;
    }

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

    .login-intro {
        min-height: 350px;
        padding: 34px 28px;
    }

    .login-intro .wordmark {
        margin-bottom: 38px;
    }

    .login-panel {
        margin-block: 32px;
    }
}

@media (max-width: 480px) {
    .tool-panel {
        padding: 18px;
    }

    .admin-header {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .setting-row {
        grid-template-columns: 1fr;
    }

    .setting-row > div {
        grid-column: auto;
    }

    .source-actions,
    .queue-form {
        flex-wrap: wrap;
    }
}