:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --border: #dbe4f0;
    --text: #17233b;
    --muted: #68758f;
    --blue: #0f5bd8;
    --blue-deep: #0a3482;
    --blue-soft: #edf4ff;
    --danger: #b33a3a;
    --warn: #a56c11;
    --success: #1f7a55;
    --shadow: 0 18px 36px rgba(12, 35, 82, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 91, 216, 0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(10, 52, 130, 0.12), transparent 28%),
        linear-gradient(180deg, #f9fbff, #edf2f8);
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.auth-copy h1,
.client-dashboard-hero-copy h2,
.client-panel-head strong,
.client-quota-number strong,
.dashboard-client-metric strong,
.dash-big,
.dash-card-title,
.table-bar strong,
.instruction-panel strong,
.instruction-card-title,
.instruction-note strong {
    font-family: "Iowan Old Style", Georgia, serif;
}

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

.auth-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.85), transparent 35%),
        linear-gradient(135deg, #0c2250, #102f73 40%, #eef4ff 40%, #f6f9ff 100%);
}

.auth-card {
    width: min(480px, 100%);
    padding: 26px;
    border-radius: 28px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(219, 228, 240, 0.9);
    box-shadow: 0 28px 60px rgba(7, 28, 73, 0.2);
    backdrop-filter: blur(12px);
}

.auth-card.auth-card-narrow {
    width: min(460px, 100%);
}

.auth-brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.brand-logo {
    display: block;
    object-fit: contain;
}

.auth-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    padding: 8px;
    box-shadow: 0 10px 24px rgba(12, 35, 82, 0.08);
}

.auth-kicker {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #f2b34f, #d78621);
    color: #0f214e;
    font-weight: 800;
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
}

.card,
.panel,
.table-card,
.release-sheet {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-form {
    width: 60%;
    display: grid;
    gap: 10px;
}

.auth-form.compact {
    gap: 8px;
}

.auth-copy {
    margin-bottom: 4px;
}

.auth-copy h1 {
    margin: 0 0 6px;
    font-size: 38px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.auth-copy p {
    margin: 0;
    color: var(--muted);
}

.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 8px;
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.check-inline input {
    width: 16px;
    height: 16px;
}

.maintenance-check {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 0 12px;
}

.maintenance-check .check-inline {
    color: var(--text);
    font-weight: 700;
}

.maintenance-check .muted {
    margin: 0;
}

.auth-link {
    color: var(--blue-deep);
    font-weight: 700;
}

.auth-link-back {
    display: inline-block;
    margin-top: 8px;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-reset-box {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.auth-reset-box small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.break-all {
    word-break: break-all;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px 10px;
    font: inherit;
    color: var(--text);
    background: #fbfdff;
}

/* Don't force checkboxes/radios to full width (needed for inline toggles like "Enable Forgot Password"). */
.field input[type="checkbox"],
.field input[type="radio"] {
    width: auto;
}

.compact-fields .field {
    gap: 4px;
    margin-bottom: 8px;
}

.compact-fields .field label {
    font-size: 12px;
}

.compact-fields .field input,
.compact-fields .field select,
.compact-fields .field textarea {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 10px;
}

.compact-fields .form-grid {
    gap: 8px 12px;
}

.compact-fields .split-inputs {
    gap: 8px;
}

.check-field label {
    font-size: 12px;
    font-weight: 800;
}

.checkbox-box {
    width: 100%;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfdff;
    display: grid;
    place-items: center;
}

.checkbox-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.field textarea {
    min-height: 92px;
    resize: vertical;
}

.button,
button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button.small,
button.small {
    padding: 8px 12px;
    font-size: 13px;
}

.button.tiny,
button.tiny {
    padding: 8px 12px;
    font-size: 12px;
}

.button-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff;
}

.button-soft {
    background: var(--blue-soft);
    color: var(--blue-deep);
}

.button-danger {
    background: #fcecec;
    color: var(--danger);
}

.button-warn {
    background: #fff4df;
    color: var(--warn);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 236px 1fr;
}

.sidebar {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 24%),
        linear-gradient(180deg, #081731, #0c2557);
    color: #fff;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100vh;
    position: relative;
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 10px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 550;
    letter-spacing: 0.01em;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    flex: 1;
    align-content: start;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 6px;
    padding-top: 8px;
}

.sidebar-spacer {
    flex: 1 1 auto;
    min-height: 1px;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.16);
    margin: 10px 0;
}

.url-list {
    margin: 10px 0 0 22px;
    padding: 0;
}

.url-list li {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.url-list code {
    white-space: nowrap;
}

.copy-btn {
    white-space: nowrap;
}

.nav-link {
    padding: 9px 11px;
    border-radius: 12px;
    color: rgba(255,255,255,0.84);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(1px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
    color: rgba(255,255,255,0.94);
}

.main {
    padding: 22px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

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

.settings-box .table-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-box-body {
    padding: 14px;
}

.settings-box--full {
    grid-column: 1 / -1;
}

.settings-box input[readonly] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    direction: ltr;
    text-align: left;
}

.global-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.title-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.page-head.compact {
    margin-bottom: 14px;
}

.page-head.split {
    align-items: flex-end;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.inline-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff4e3;
    color: #835616;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 500;
    margin-bottom: 18px;
}

.inline-stat.inline-stat-tight {
    margin-bottom: 0;
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.dash-cards--single {
    grid-template-columns: 1fr;
}

.dash-cards.dash-cards--snapshot {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dash-cards--snapshot .dash-card {
    padding: 12px 14px 13px;
    border-radius: 15px;
    box-shadow: 0 9px 20px rgba(10, 25, 60, 0.06);
}

.dash-cards--snapshot .dash-card-title {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #44526d;
}

.dash-cards--snapshot .dash-big {
    font-size: 32px;
    margin-top: 8px;
}

.dash-cards--snapshot .dash-list {
    margin: 10px 0 0 18px;
    font-size: 13px;
}

.dash-cards--snapshot .dash-count {
    padding: 2px 9px;
    font-size: 12px;
    background: #edf4ff;
    border-color: #d0ddfa;
    color: #22385f;
}

.dash-cards--snapshot .dash-kv {
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
}

.dashboard-alert-card {
    background: linear-gradient(180deg, #fff7f6, #fff0ef);
    border-color: #ebc1bc;
}

.dashboard-alert-card .dash-big,
.dashboard-alert-card .dash-count {
    color: #b42318;
}

.dashboard-alert-card .dash-card-title {
    color: #203a72;
}

.dashboard-alert-card .dash-site {
    color: var(--text);
}

.dashboard-alert-card .dash-count {
    background: #ffe9e8;
    border-color: #f0c2bd;
    color: #9f2b22;
}

.client-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 216, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 56%, #eef4ff 100%);
    border: 1px solid #dbe6f3;
    box-shadow: 0 16px 36px rgba(10, 25, 60, 0.08);
}

.client-dashboard-hero-copy h2 {
    margin: 6px 0 8px;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 750;
}

.client-dashboard-hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    max-width: 34ch;
}

.client-dashboard-hero-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(15, 91, 216, 0.08);
    color: var(--blue-deep);
    border: 1px solid rgba(15, 91, 216, 0.12);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.client-dashboard-hero-pill span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #1f7a55;
    box-shadow: 0 0 0 3px rgba(31, 122, 85, 0.12);
}

.client-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 14px;
    margin-top: 14px;
}

.client-panel {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(10, 25, 60, 0.06);
    overflow: hidden;
}

.client-panel--usage {
    background:
        radial-gradient(circle at top right, rgba(15, 91, 216, 0.06), transparent 28%),
        linear-gradient(180deg, #ffffff, #f8fbff);
}

.client-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
}

.client-panel-head strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #24324d;
}

.client-panel-hint {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    background: #f4f7fb;
    border: 1px solid #e3ebf5;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.client-dashboard-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 18px 18px;
}

.dashboard-client-metric--usage {
    position: relative;
    overflow: hidden;
    min-height: 90px;
    padding-top: 16px;
    padding-bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    border-color: #dfe8f5;
    box-shadow: 0 10px 24px rgba(10, 25, 60, 0.045);
}

.dashboard-client-metric--usage::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 91, 216, 0.22), rgba(15, 91, 216, 0.05));
}

.client-quota-main {
    padding: 0 18px 16px;
}

.client-quota-number {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.client-quota-number .muted {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-quota-number strong {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    font-weight: 800;
}

.client-progress-track {
    position: relative;
    height: 12px;
    background: linear-gradient(180deg, #edf2f8, #e6edf8);
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.client-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #0f5bd8, #2b74f0);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 91, 216, 0.28);
}

.client-quota-caption {
    margin-top: 10px;
    font-size: 12px;
}

.client-quota-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 18px 18px;
}

.dashboard-client-metric {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid #e3ebf5;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(10, 25, 60, 0.04);
    display: grid;
    gap: 5px;
}

.dashboard-client-metric .muted {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-client-metric strong {
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    font-weight: 800;
}

.dashboard-client-metric-foot {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.35;
    margin-top: auto;
}

.dashboard-client-metric--usage .muted {
    color: #5d6d89;
}

.dashboard-client-metric--usage strong {
    margin-top: 10px;
    font-size: 31px;
}

.dashboard-client-metric--usage .dashboard-client-metric-foot {
    display: block;
    padding-top: 4px;
}

.instruction-page {
    display: grid;
    gap: 14px;
}

.instructions-head .page-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.instruction-panel {
    padding: 14px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.instruction-panel strong {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.instruction-panel--featured {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.instruction-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.instruction-kicker {
    display: block;
    color: #6b7790;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

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

.instruction-card,
.instruction-note {
    background: #fff;
    border: 1px solid #e2e8f2;
    border-radius: 16px;
    padding: 12px 13px;
}

.instruction-card-title {
    font-weight: 700;
    font-size: 13px;
    color: #24324d;
    margin-bottom: 6px;
}

.instruction-copy {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.instruction-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.instruction-field span {
    color: #32415c;
    font-size: 12px;
    font-weight: 650;
}

.instruction-field input {
    width: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 9px 12px;
    font: inherit;
    background: #fbfdff;
    color: var(--text);
}

.instruction-command-preview-wrap {
    display: grid;
    gap: 10px;
}

.instruction-command-preview {
    margin: 0;
    padding: 11px 12px;
}

.instruction-command-preview code {
    font-size: 12.5px;
    line-height: 1.5;
}

.instruction-command-actions {
    display: flex;
    justify-content: flex-end;
}

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

.instruction-note strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

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

.instruction-list,
.instruction-url-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #4a5770;
    font-size: 12.5px;
    line-height: 1.55;
}

.instruction-url-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 8px;
}

.instruction-url-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    border: 1px solid #e6edf7;
    background: #fbfdff;
    border-radius: 12px;
    padding: 10px 10px;
}

.instruction-url-list code {
    font-size: 11.5px;
    line-height: 1.45;
    word-break: break-all;
}

.dash-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    padding: 16px 18px 18px;
    box-shadow: 0 12px 30px rgba(10, 25, 60, 0.07);
}

.dash-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 91, 216, 0.16), rgba(15, 91, 216, 0.04));
    pointer-events: none;
}

.dash-card-title {
    font-weight: 900;
    color: var(--blue-deep);
    letter-spacing: 0.2px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.dash-card-title span:first-child {
    color: #24365e;
}

.dash-card-title .muted {
    color: #6c7a94;
    font-weight: 750;
}

.dash-big {
    font-size: 42px;
    margin-top: 8px;
    color: #18253f;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.client-usage-table th,
.client-usage-table td {
    vertical-align: middle;
}

.client-usage-table td.num {
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.client-usage-table td.client-name {
    text-align: left;
    font-weight: 500;
}

.client-usage-table tbody tr:nth-child(odd) td {
    background: #fbfdff;
}

.client-usage-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.client-usage-table tbody tr:hover td,
.dashboard-progress-table tbody tr:hover td {
    background: #f1f6ff;
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    overflow: auto;
    margin: 10px 0 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

.code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
}

.team-table th,
.team-table td {
    vertical-align: middle;
}

.team-table td.team-name,
.team-table td.team-email {
    font-weight: 500;
}

.dash-list {
    margin: 12px 0 0 20px;
    padding: 0;
}

.dash-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0;
    padding: 5px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.dash-site {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-count {
    font-weight: 800;
    color: #20335a;
    background: #edf4ff;
    border: 1px solid #d5e2ff;
    border-radius: 999px;
    padding: 2px 10px;
}

.dash-kv {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.dash-kv > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.dash-kv > div > .muted {
    font-size: 11px;
    font-weight: 700;
    color: #66758f;
}

.dash-kv > div > strong {
    font-size: 12px;
    color: #1c2944;
}

/* Dashboard: keep automation timestamps on one line (avoid wrapping "AM" below). */
.dash-cards--snapshot .dash-kv strong {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Dashboard section header (lighter weight). */
.table-bar.table-bar--light {
    font-weight: 700;
}

.dashboard-section-title {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #50607e;
    background: linear-gradient(180deg, rgba(243, 247, 252, 0.8), rgba(255, 255, 255, 0.7));
    border-bottom: 1px solid #dbe4f0;
}

.dashboard-section-title strong {
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.02em;
    color: #1f2d49;
}

.dashboard-snapshot-body {
    padding: 10px 12px 12px;
}

.dashboard-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 2px;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 13px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid #cfdbea;
    box-shadow: 0 12px 26px rgba(10, 25, 60, 0.07);
}

.dashboard-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 91, 216, 0.30), rgba(15, 91, 216, 0.07));
}

.dashboard-kpi-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: #53617b;
    margin-bottom: 10px;
}

.dashboard-kpi-value {
    font-family: "Iowan Old Style", Georgia, serif;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1;
    font-weight: 700;
    color: #13203a;
    letter-spacing: -0.03em;
    margin-top: 1px;
}

.dashboard-kpi-note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
    color: #5d6a83;
    font-weight: 600;
}

.dashboard-kpi-card--success {
    background: linear-gradient(180deg, #f7fff9, #eaf8ee);
    border-color: #bddfca;
}

.dashboard-kpi-card--success::before {
    background: linear-gradient(90deg, rgba(31, 122, 85, 0.38), rgba(31, 122, 85, 0.08));
}

.dashboard-kpi-card--info {
    background: linear-gradient(180deg, #f7fbff, #e9f1ff);
    border-color: #c6d8f7;
}

.dashboard-kpi-card--info::before {
    background: linear-gradient(90deg, rgba(15, 91, 216, 0.34), rgba(15, 91, 216, 0.08));
}

.dashboard-kpi-card--indigo {
    background: linear-gradient(180deg, #faf8ff, #f0ecff);
    border-color: #d2cbf3;
}

.dashboard-kpi-card--indigo::before {
    background: linear-gradient(90deg, rgba(88, 64, 180, 0.34), rgba(88, 64, 180, 0.08));
}

.dashboard-kpi-card--warn {
    background: linear-gradient(180deg, #fffaf0, #fdf0df);
    border-color: #e8d0a1;
}

.dashboard-kpi-card--warn::before {
    background: linear-gradient(90deg, rgba(165, 108, 17, 0.34), rgba(165, 108, 17, 0.08));
}

.dashboard-kpi-card--danger {
    background: linear-gradient(180deg, #fff7f6, #ffe9e6);
    border-color: #e8beb6;
}

.dashboard-kpi-card--danger::before {
    background: linear-gradient(90deg, rgba(180, 35, 24, 0.34), rgba(180, 35, 24, 0.08));
}

.dashboard-kpi-card--neutral {
    background: linear-gradient(180deg, #fafcff, #eef3f9);
    border-color: #cfd9e7;
}

.dashboard-kpi-card--neutral::before {
    background: linear-gradient(90deg, rgba(95, 109, 132, 0.30), rgba(95, 109, 132, 0.08));
}

.dashboard-client-usage-card,
.dashboard-progress-card {
    overflow: hidden;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.02fr);
    gap: 14px;
    align-items: start;
}

.dashboard-compact-table th,
.dashboard-compact-table td,
.dashboard-progress-table th,
.dashboard-progress-table td {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 11.5px;
}

.dashboard-client-usage-card .dashboard-compact-table th,
.dashboard-client-usage-card .dashboard-compact-table td {
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-client-usage-card .dashboard-compact-table td.client-name,
.dashboard-client-usage-card .dashboard-compact-table td.num,
.dashboard-client-usage-card .dashboard-compact-table th {
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-compact-table th {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #61708c;
    white-space: nowrap;
}

.dashboard-compact-table td.num {
    font-size: 13px;
}

.dashboard-compact-table td.client-name {
    font-size: 13px;
}

.dashboard-compact-table tbody tr:nth-child(odd) td {
    background: #fbfdff;
}

.dashboard-compact-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.dashboard-progress-table th {
    font-weight: 700;
    color: #62708a;
}

.dashboard-progress-table td {
    font-weight: 650;
}

.dashboard-progress-table td:first-child,
.dashboard-progress-table td:nth-child(2) {
    color: #364156;
}

.dashboard-progress-title {
    font-weight: 850;
    color: #1f2d49;
}

.dashboard-progress-meta {
    font-size: 10.5px;
    margin-top: 2px;
    color: #71809b;
}

.dashboard-alert-empty {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f7f9fc;
    border: 1px solid #e8edf4;
    color: #6b778d;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
}

.dash-cards--snapshot > .dash-card:nth-child(1) {
    background: linear-gradient(180deg, #fffdfd, #fff7f7);
    border-color: #f0d6d6;
}

.dash-cards--snapshot > .dash-card:nth-child(1)::before {
    background: linear-gradient(90deg, rgba(180, 35, 24, 0.22), rgba(180, 35, 24, 0.04));
}

.dash-cards--snapshot > .dash-card:nth-child(2) {
    background: linear-gradient(180deg, #fffdf8, #fff9ef);
    border-color: #efd9b1;
}

.dash-cards--snapshot > .dash-card:nth-child(2)::before {
    background: linear-gradient(90deg, rgba(165, 108, 17, 0.20), rgba(165, 108, 17, 0.04));
}

.dash-cards--snapshot > .dash-card:nth-child(3) {
    background: linear-gradient(180deg, #fdfdff, #f6f9ff);
    border-color: #dbe4f3;
}

.dash-cards--snapshot > .dash-card:nth-child(3)::before {
    background: linear-gradient(90deg, rgba(15, 91, 216, 0.18), rgba(15, 91, 216, 0.04));
}

.dash-cards--snapshot > .dash-card:nth-child(4) {
    background: linear-gradient(180deg, #fbfffc, #f3fbf6);
    border-color: #cae4d4;
}

.dash-cards--snapshot > .dash-card:nth-child(4)::before {
    background: linear-gradient(90deg, rgba(31, 122, 85, 0.20), rgba(31, 122, 85, 0.04));
}

.dashboard-client-usage-card--full {
    grid-column: 1 / -1;
}

/* Executive dashboard: tighter, denser, more boardroom-like composition on wide displays. */
@media (min-width: 1180px) {
    .dashboard-snapshot-card {
        margin-top: 10px !important;
    }

    .dashboard-bottom-grid {
        grid-template-columns: minmax(0, 1.24fr) minmax(0, 1.04fr);
    }
}

@media (max-width: 1179px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1240px) {
    .dashboard-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .dashboard-compact-table td,
    .dashboard-progress-table td {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-width: 980px) {
    .dash-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .dashboard-kpi-strip {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1101px) {
    /* Keep the Network Snapshot cards in a single row on larger screens. */
    .dash-cards.dash-cards--snapshot {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 22px;
}

.content-grid.narrow {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
}

.form-panel {
    padding: 16px;
}

.form-panel.single {
    max-width: 920px;
}

.settings-panel.form-panel.single {
    max-width: none;
    width: 100%;
}

.settings-panel .field input,
.settings-panel .field select,
.settings-panel .field textarea {
    font-size: 14px;
}

.submit-form .form-panel.single {
    max-width: none;
    width: 100%;
}

.stack {
    display: grid;
    gap: 12px;
}

.clean-card {
    overflow: hidden;
}

.release-sheet {
    overflow: hidden;
}

.release-body.prose {
    min-width: 0;
}

.release-body.prose img,
.release-body.prose video,
.release-body.prose iframe {
    max-width: 100% !important;
    height: auto !important;
}

.release-body.prose img {
    display: block;
    margin: 14px auto;
}

.release-body.prose a {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #1d4ed8 !important;
    text-decoration: underline;
}

/* Public preview (no-login) */
.public-pr {
    padding: 30px 18px 42px;
    background:
        radial-gradient(circle at top left, rgba(15, 91, 216, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(18, 106, 69, 0.08), transparent 26%),
        linear-gradient(180deg, #f6f9ff, #edf3fb 60%, #eaf0f8);
}
.public-pr-sitehead {
    max-width: 980px;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.public-pr-note {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #fbfcff;
    color: #c2410c;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    text-align: center;
}
.public-pr-note--ready {
    background: linear-gradient(135deg, #eef8f2, #f7fbff);
    color: #126a45;
    border-color: rgba(18, 106, 69, 0.12);
    font-style: normal;
    font-weight: 650;
}
.public-pr-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px;
    display: grid;
    gap: 10px;
    box-shadow:
        0 26px 60px rgba(10, 25, 60, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}
.public-pr-brandrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.public-pr-brandbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 4px auto 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.public-pr-brandlogo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 320px;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}
.public-pr-brandmark {
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}
.public-pr-brandtext {
    font-size: 12px;
    font-weight: 650;
    color: #53627f;
}
.public-pr-hero {
    display: grid;
    gap: 20px;
}
.public-pr-hero-top {
    display: grid;
    gap: 10px;
    justify-items: start;
}
.public-pr-title-wrap {
    display: grid;
    gap: 14px;
    justify-items: center;
    width: 100%;
    padding: 10px 24px 10px;
}
.public-pr-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(13, 71, 161, 0.18);
    background: #f6f9ff;
    color: #0b2a66;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.public-pr-title {
    padding: 0;
    margin: 12px 0 14px;
    font-size: clamp(20px, 1.85vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    width: 100%;
    text-align: center;
}
.public-pr-submeta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0;
    font-weight: 500;
    padding-top: 0;
    width: 100%;
    text-align: center;
}
.public-pr-submeta--inline {
    padding: 0 10px 10px;
}
.public-pr-date {
    color: #667085;
    font-weight: 500;
}
.public-pr-cats {
    color: #111827;
    font-weight: 500;
}
.public-pr-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
    align-self: center;
    width: 100%;
}
.public-pr-actions .button {
    min-width: 198px;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 91, 216, 0.12);
}
.public-pr-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.public-pr-action-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}
.public-pr-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.public-pr-action-btn--pdf {
    background: linear-gradient(135deg, #2563eb, #0f5bd8 60%, #2047a5);
    border-color: rgba(15, 91, 216, 0.18);
    color: #fff;
    box-shadow: 0 14px 26px rgba(15, 91, 216, 0.18);
}
.public-pr-action-btn--pdf:hover {
    background: linear-gradient(135deg, #1d4ed8, #0b4ccd 60%, #1d4298);
}
.public-pr-action-btn--excel {
    background: linear-gradient(135deg, #f2fbf5, #e8f7ec);
    border-color: rgba(18, 106, 69, 0.16);
    color: #126a45;
    box-shadow: 0 14px 24px rgba(18, 106, 69, 0.10);
}
.public-pr-action-btn--excel:hover {
    background: linear-gradient(135deg, #e9f9ee, #def2e4);
}
.public-pr-action-btn--premium {
    background: linear-gradient(135deg, #fff8ea, #f4f0ff);
    border-color: rgba(92, 59, 0, 0.14);
    color: #5c3b00;
    box-shadow: 0 14px 24px rgba(92, 59, 0, 0.08);
}
.public-pr-action-btn--premium:hover {
    background: linear-gradient(135deg, #fff2d8, #ece5ff);
}
.public-pr-button-secondary {
    background: #f2f6ff;
    color: #22458e;
    border: 1px solid rgba(34, 69, 142, 0.10);
}
.public-pr-button-secondary:hover {
    background: #e9f0ff;
}
.public-pr-main-panel {
    background:
        radial-gradient(circle at top left, rgba(15, 91, 216, 0.03), transparent 28%),
        linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 10px 28px rgba(10, 25, 60, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.public-pr-download-panel {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto 10px;
}

@media (max-width: 720px) {
    .public-pr-sitehead {
        flex-direction: column;
        align-items: center;
    }
    .public-pr-note {
        text-align: center;
        width: 100%;
    }
    .public-pr-brandrow {
        margin-bottom: 8px;
    }
    .public-pr-image {
        padding: 6px 18px 10px 18px;
    }
    .public-pr-body {
        padding: 22px 18px;
    }
    .public-pr-summary {
        padding: 6px 18px 0 18px;
    }
    .public-pr-actions {
        width: 100%;
        justify-content: center;
    }
    .public-pr-actions .button {
        width: 100%;
        min-width: 0;
    }
    .public-pr-brandbar {
        width: 100%;
    }
    .public-pr-hero {
        justify-items: stretch;
    }
    .public-pr-title-wrap {
        justify-items: center;
        padding: 8px 10px 8px;
    }
    .public-pr-title {
        max-width: none;
        font-size: clamp(20px, 5.5vw, 28px);
    }
}
.public-pr-download-panel {
    display: grid;
    gap: 16px;
    justify-items: center;
    width: 100%;
    justify-self: stretch;
    padding: 18px 20px;
    margin: 0 auto 10px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(15, 91, 216, 0.05), transparent 34%),
        linear-gradient(180deg, #ffffff, #f7faff);
    border: 1px solid #d7e1ef;
    box-shadow:
        0 14px 34px rgba(12, 35, 82, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.92);
}
.public-pr-image {
    padding: 6px 24px 12px 24px;
    width: 100%;
}
.public-pr-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: none;
}
.public-pr-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.public-pr-summary {
    padding: 10px 30px 0 30px;
    margin: 0;
    font-weight: 600;
    color: #364152;
    font-size: 16px;
    line-height: 1.65;
}
.public-pr-body {
    margin-top: 24px;
    border-top: 1px solid #eef2f7;
    padding: 28px 34px 38px;
}
.public-pr-body.prose img,
.public-pr-body.prose video,
.public-pr-body.prose iframe {
    max-width: 100% !important;
    height: auto !important;
}
.public-pr-body.prose a {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #224fcb !important;
    text-decoration: underline;
}

.media-contact-block {
    margin-top: 22px;
}

.media-contact-title {
    font-weight: 650;
    font-size: 16px;
    margin: 0 0 6px;
}

.media-contact-row {
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

.media-contact-label {
    font-weight: 650;
}

.release-sheet table {
    width: 100%;
    table-layout: fixed;
}

.release-sheet td,
.release-sheet th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-bar {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.table-bar-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.table-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-actions select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
}

.toolbar-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.submissions-toolbar {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.client-filter-field {
    min-width: 160px;
    max-width: 190px;
    margin-bottom: 0;
}

.submissions-toolbar select,
.submissions-toolbar input {
    font-size: 12.5px;
    padding: 8px 10px;
}

.submissions-toolbar .search-field {
    min-width: 120px;
    max-width: 170px;
}

.submissions-toolbar .search-field input {
    min-width: 120px;
    max-width: 170px;
}

.filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.inline-search {
    margin-left: auto;
}

/* Avoid page-level horizontal scrolling on wide pages; allow controls to wrap as needed. */

.toolbar-form.compact .field {
    margin-bottom: 0;
}

.search-field {
    min-width: 150px;
    max-width: 240px;
    margin-bottom: 0;
}

.search-field input {
    min-width: 150px;
    max-width: 240px;
}

.client-releases #submission-search {
    font-size: 13px;
}

.client-releases #submission-search::placeholder {
    font-size: 10.5px;
}

.client-releases-table td.pr-code {
    font: inherit;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 400;
    letter-spacing: normal;
    white-space: nowrap;
}

.client-releases-table td.pr-title a {
    font: inherit;
    font-size: 13.5px;
    font-weight: 400;
}

.client-releases-table td.published-date {
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
}

.client-releases-table td .status {
    font-size: 11px;
}

.client-releases-table td,
.submissions-table td {
    vertical-align: middle !important;
}

.submissions-table td {
    font-size: 13.5px;
}

.submissions-table td.pr-code {
    font: inherit;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 400;
    letter-spacing: normal;
    white-space: nowrap;
}

.submissions-table td.pr-title a {
    font: inherit;
    font-size: 13.5px;
    font-weight: 400;
}

.submissions-table td.published-date {
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
}

.submissions-table td .status {
    font-size: 11px;
}

.table-card table tbody tr {
    transition: background 120ms ease;
}

.table-card table tbody tr:hover td {
    background: #eef6ff;
}

.inline-search-label {
    color: var(--blue-deep);
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.button.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.status-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding-bottom: 0;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    min-height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fcfdff, #f3f7fc);
    color: #31415d;
    border: 1px solid #d7e0ec;
    box-shadow: 0 6px 14px rgba(10, 25, 60, 0.03);
    font-weight: 650;
    font-size: 11.5px;
    white-space: nowrap;
    transition: box-shadow 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.status-tab-label {
    line-height: 1;
}

.status-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #30415e;
    font-size: 11px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(20, 40, 80, 0.06);
    flex: 0 0 auto;
}

.status-tab[data-status="published"], .status-guide-pill[data-status="published"] { background: #e9f7ef; color: #18794e; border-color: #d0eadb; }
.status-tab[data-status="approved"], .status-guide-pill[data-status="approved"] { background: #e8fbf7; color: #0b6b68; border-color: #cbeee7; }
.status-tab[data-status="submitted"], .status-guide-pill[data-status="submitted"] { background: #fff6e9; color: #9a5300; border-color: #f5d7ae; }
.status-tab[data-status="needs_review"], .status-guide-pill[data-status="needs_review"] { background: #fff1f1; color: #a12c2c; border-color: #f3c7c7; }
.status-tab[data-status="needs_revision"], .status-guide-pill[data-status="needs_revision"] { background: #ffecec; color: #b42318; border-color: #f2c0c0; }
.status-tab[data-status="review"], .status-guide-pill[data-status="review"] { background: #fff1f1; color: #a12c2c; border-color: #f3c7c7; }
.status-tab[data-status="saved"], .status-guide-pill[data-status="saved"] { background: #eef6ff; color: #175cd3; border-color: #d6e4fb; }
.status-tab[data-status="rejected"], .status-guide-pill[data-status="rejected"] { background: #ffecec; color: #b42318; border-color: #f2c0c0; }
.status-tab[data-status=""], .status-guide-pill[data-status=""] { background: #eef3fb; color: #395b85; border-color: #d6e1f3; }

.status-tab.active {
    background: linear-gradient(135deg, #0f5bd8, #0a3482);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(15, 91, 216, 0.22);
}

.status-tab.active .status-tab-count {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.status-tab:hover {
    box-shadow: 0 7px 16px rgba(10, 25, 60, 0.05);
    border-color: #c7d3e4;
}

.status-tab.active:hover {
    box-shadow: 0 10px 22px rgba(15, 91, 216, 0.24);
}

.filters-row {
    align-items: flex-end;
    gap: 12px;
}

.submissions-toolbar {
    align-items: flex-end;
    margin-left: auto;
}

.submissions-toolbar .field,
.submissions-toolbar .toolbar-actions {
    margin-bottom: 0;
}

.submissions-toolbar .field {
    align-self: flex-end;
}
.status-guide-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f8;
    vertical-align: top;
}

th {
    color: var(--blue);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
}

tr:last-child td {
    border-bottom: 0;
}

.muted {
    color: var(--muted);
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.report-col {
    width: 92px;
}

.report-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 84px;
    justify-content: center;
}

.action-col {
    width: 170px;
}

.action-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    justify-content: center;
}

.report-cell,
.action-cell {
    vertical-align: middle !important;
}

.report-cell {
    text-align: center;
}

.action-cell {
    text-align: center;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.action-stack-draft {
    align-items: flex-end;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 4px 8px;
    justify-content: end;
    align-items: center;
    text-align: right;
}

.action-grid .inline {
    margin: 0;
}

.action-line {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    justify-content: center;
}

.action-link {
    display: inline-flex;
    align-items: center;
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--blue-deep);
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.2;
}

.action-grid .action-link {
    white-space: nowrap;
}

.draft-action-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 6px 8px;
    align-items: center;
    justify-content: end;
}

.action-link:hover {
    color: var(--blue);
}

.action-grid .action-link,
.draft-action-grid .button,
.draft-action-grid .action-link {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    line-height: 28px;
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px rgba(15, 91, 216, 0.08);
}

.draft-action-grid .button-soft,
.draft-action-grid .button-primary,
.draft-action-grid .button-danger {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    line-height: 28px;
}

.draft-action-grid .button-soft {
    background: #edf4ff;
    color: var(--blue-deep);
    box-shadow: inset 0 0 0 1px rgba(15, 91, 216, 0.08);
}

.draft-action-grid .button-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 91, 216, 0.18);
}

.draft-action-grid .button-danger {
    background: #fff4f4;
    color: var(--danger);
    box-shadow: inset 0 0 0 1px rgba(179, 58, 58, 0.12);
}

.release-draft-actions {
    flex-wrap: wrap;
    gap: 8px;
}

.release-draft-actions .button,
.release-draft-actions .action-link {
    min-width: 116px;
    justify-content: center;
}

.release-draft-actions .button-primary {
    background: linear-gradient(135deg, #2d64de, #153f9e);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 91, 216, 0.24);
}

.release-draft-actions .button-soft {
    background: #f0f5ff;
    color: var(--blue-deep);
}

.release-draft-actions .button-danger {
    background: #fff3f3;
    color: var(--danger);
}

.release-draft-actions .button-primary:hover {
    filter: brightness(1.02);
}

.action-link-submit {
    color: var(--blue-deep);
    background: linear-gradient(180deg, #f7fbff, #e8f0ff);
}

.action-link-danger {
    color: var(--danger);
    background: #fff4f4;
    box-shadow: inset 0 0 0 1px rgba(179, 58, 58, 0.12);
}

.action-link-danger:hover {
    color: #8f2f2f;
}

.action-link-submit:hover,
.draft-action-grid .button:hover,
.draft-action-grid .action-link:hover {
    background: #e4efff;
}

.action-sep {
    color: #9cb0c8;
    font-weight: 700;
    margin: 0 2px;
}

.action-actions form.inline {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.current-featured .featured-preview {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
    position: relative;
}

.featured-thumb {
    position: relative;
    flex: 0 0 auto;
}

.current-featured .featured-preview img {
    width: 74px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e6eef9;
    background: #fff;
}

.current-featured.is-removed {
    opacity: 0.55;
}

.current-featured .featured-meta {
    min-width: 0;
}

.featured-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.featured-name {
    color: var(--muted);
    font-weight: 650;
    font-size: 13px;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-view {
    color: var(--blue-deep);
    font-weight: 650;
    font-size: 13px;
    text-decoration: underline;
}

.featured-actions {
    margin-top: 6px;
}

.remove-featured-link {
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
}

.remove-featured-link:hover {
    color: #8a1c14;
    text-decoration: none;
}

.remove-featured-note {
    margin-top: 6px;
    font-size: 12px;
}

.undo-remove-btn {
    border: 0;
    background: transparent;
    color: var(--blue-deep);
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    font-size: 12px;
}

.current-featured.is-removed .featured-preview img,
.current-featured.is-removed .featured-meta a,
.current-featured.is-removed .remove-featured-link {
    display: none;
}

.site-grid {
    table-layout: fixed;
}

.site-check-col,
.site-check-cell {
    width: 34px;
    padding-left: 8px;
    padding-right: 8px;
}

.site-serial-col,
.site-serial-cell {
    width: 56px;
    white-space: nowrap;
}

.site-url-col,
.site-url-cell {
    width: 200px;
    max-width: 200px;
    white-space: normal;
    word-break: break-word;
}

.site-metric-col,
.site-metric-cell {
    width: 110px;
    white-space: nowrap;
}

.site-author-col,
.site-author-cell {
    width: 84px;
    text-align: center;
    white-space: nowrap;
}

.site-flag-col,
.site-flag-cell {
    width: 78px;
    text-align: center;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-welcome {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.topbar-now {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    background: #f2f6ff;
    border: 1px solid #dbe6ff;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.th-sub {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pr-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pr-nav-floating {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 60;
    pointer-events: none;
}

.pr-nav-btn--float {
    pointer-events: auto;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    font-size: 14px;
    /* Visuals overridden below by the more specific `.pr-nav-btn.pr-nav-btn--float` rule. */
}

.pr-nav-btn--left {
    left: 18px;
}

.pr-nav-btn--right {
    right: 18px;
}

.pr-nav-btn--right.pr-nav-btn--float {
    right: auto;
}

@media (max-width: 800px) {
    .pr-nav-floating {
        display: none;
    }
}

.pr-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fbfdff;
    color: var(--blue-deep);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(10, 25, 60, 0.06);
}

.pr-nav-btn.pr-nav-btn--float {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 23, 49, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(10, 25, 60, 0.28);
    color: rgba(255, 255, 255, 0.96);
}

.pr-nav-btn:hover {
    background: #eef4ff;
}

.pr-nav-btn.pr-nav-btn--float:hover {
    background: rgba(12, 37, 87, 0.95);
    box-shadow: 0 22px 52px rgba(10, 25, 60, 0.34);
}

.pr-nav-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.inline-checks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status.success {
    background: #eaf7ef;
    color: var(--success);
}

.status.warning {
    background: #fff6e7;
    color: var(--warn);
}

.status.danger {
    background: #fdecec;
    color: var(--danger);
}

.status.info {
    background: #edf4ff;
    color: var(--blue-deep);
}

.notice,
.error-box {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.notice {
    background: #eef7ed;
    color: var(--success);
}

.error-box {
    background: #fdecec;
    color: var(--danger);
}

.split-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.split-inputs.wide-right {
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.2fr);
}

.submit-form {
    max-width: none;
    width: 100%;
}

.submit-form-modern {
    gap: 14px;
}

.submit-page-head {
    margin-bottom: 2px;
}

.page-subtitle {
    margin: 6px 0 0;
    max-width: 860px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.submit-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.55fr);
    gap: 16px;
    align-items: start;
}

.submit-main-col,
.submit-side-col {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.submit-panel {
    padding: 14px 15px;
}

.submit-panel-main {
    gap: 10px;
}

.submit-inline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr);
    gap: 12px;
    align-items: start;
}

.submit-featured-field .current-featured {
    margin-top: 8px;
}

.submit-panel-side {
    gap: 10px;
}

.submit-actions-copy {
    display: grid;
    gap: 4px;
}

.submit-actions-copy strong {
    font-size: 15px;
    font-weight: 700;
}

.submit-actions-copy .muted {
    font-size: 12px;
    line-height: 1.35;
}

.submit-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(12, 35, 82, 0.06);
}

.submit-actions-bar-bottom {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,249,255,0.99));
    border-color: #cfd9e8;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -2px 0 rgba(15, 23, 42, 0.10),
        0 16px 30px rgba(12, 35, 82, 0.07);
}

.submit-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.submit-actions-row .button {
    min-width: 134px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(12, 35, 82, 0.06);
}

.submit-actions-row .button-primary {
    min-width: 158px;
    box-shadow: 0 10px 20px rgba(15, 91, 216, 0.14);
}

.submit-actions-row .button-soft {
    background: linear-gradient(180deg, #fdfeff, #eef4fb);
    color: #1f3f84;
    border: 1px solid rgba(31, 63, 132, 0.18);
}

.submit-actions-row .button-soft:hover {
    background: linear-gradient(180deg, #f8fbff, #e6eefb);
    border-color: rgba(31, 63, 132, 0.24);
}

.submit-panel-media .submit-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
}

.submit-panel-media .submit-contact-grid .field {
    margin-bottom: 0;
}

.submit-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    align-content: start;
    grid-auto-rows: minmax(34px, auto);
    gap: 2px 10px;
}

.submit-category-grid .category-pill {
    min-height: 32px;
    padding: 0;
    align-items: center;
    font-size: 11px;
    line-height: 1.1;
    white-space: normal;
    border: 0;
    background: transparent;
    border-radius: 0;
    gap: 8px;
}

.submit-category-grid .category-pill span {
    white-space: normal;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.category-pill-plain input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.submit-panel-featured {
    display: grid;
    gap: 10px;
}

.submit-panel-media {
    display: grid;
    gap: 8px;
}

.submit-media-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.submit-media-note {
    font-size: 11px;
    line-height: 1.25;
}

.submit-contact-list {
    display: grid;
    gap: 6px;
}

.submit-contact-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 520px);
    align-items: center;
    gap: 0;
    margin: 2px 0;
    justify-content: start;
}

.submit-contact-row span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.submit-contact-row input {
    width: 60%;
    justify-self: start;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 11px;
    border: 1px solid #d5dde9 !important;
    background: #fbfdff;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.submit-contact-row .req-star {
    font-size: 11px;
    color: #c2410c;
}

.submit-panel-categories {
    display: grid;
    gap: 10px;
}

.submit-panel-categories .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    align-content: start;
    grid-auto-rows: minmax(30px, auto);
    gap: 0px 10px;
}

.submit-panel-categories .category-grid .category-pill {
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    gap: 8px;
    align-items: center;
    font-size: 14px !important;
}

.submit-panel-categories .category-grid .category-pill span {
    font-size: 14px !important;
    line-height: 1.12;
}

.category-controls input::placeholder {
    font-size: 11px;
    color: #8b96ab;
    opacity: 1;
}

.submit-retention-card {
    display: grid;
    gap: 10px;
}

.retention-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.retention-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: #d8e2f0;
    position: relative;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.retention-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(12, 35, 82, 0.18);
    transition: left 140ms ease, background 140ms ease;
}

.retention-toggle input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.retention-toggle input[type="checkbox"]:checked::after {
    left: 21px;
}

.retention-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.retention-copy strong {
    font-size: 15px;
    line-height: 1.1;
}

.retention-copy span {
    color: var(--muted);
    font-size: 13px;
}

.submit-retention-note {
    margin-top: -2px;
    line-height: 1.5;
}

.account-panel {
    max-width: 760px;
}

.account-meta {
    margin-bottom: 18px;
}

.account-fields {
    max-width: 440px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.editor-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

.editor-toolbar-row .word-count {
    white-space: nowrap;
    margin-left: auto;
}

.editor-toolbar button {
    background: var(--blue-soft);
    color: var(--blue-deep);
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.editor-toolbar button.is-active {
    background: #dbeafe;
    box-shadow: inset 0 0 0 2px rgba(13, 71, 161, 0.20);
}

.editor-toolbar.compact-editor {
    background: #eef2f7;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 5px;
    gap: 6px;
}

.editor-toolbar.compact-editor button {
    background: transparent;
    color: #111827;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
}

.editor-toolbar.compact-editor button:hover {
    background: rgba(15, 23, 42, 0.06);
}

.editor-toolbar.compact-editor button.is-active {
    background: #0b65d6;
    color: #ffffff;
    box-shadow: none;
}

.editor-toolbar button.is-uploading {
    opacity: 0.7;
    pointer-events: none;
}

.img-upload-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eef6ff;
    border: 1px solid rgba(15, 91, 216, 0.18);
    color: #0a3482;
    font-weight: 800;
    font-size: 13px;
    margin: 10px 0;
}

.img-upload-placeholder .spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(15, 91, 216, 0.25);
    border-top-color: rgba(15, 91, 216, 0.95);
    animation: kmSpin 0.8s linear infinite;
}

/* Submit PR: preview modal */
.modal-open {
    overflow: hidden;
}
.pr-preview-modal[hidden] {
    display: none;
}
.pr-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}
.pr-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.pr-preview-dialog {
    position: relative;
    width: min(980px, 96vw);
    max-height: min(86vh, 860px);
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 24px 70px rgba(10, 25, 60, 0.25);
    display: flex;
    flex-direction: column;
}
.pr-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fbfdff, #ffffff);
}
.pr-preview-title {
    font-weight: 800;
    letter-spacing: 0.2px;
}
.pr-preview-close {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    font-weight: 800;
    cursor: pointer;
}
.pr-preview-body {
    padding: 14px;
    overflow: auto;
}
.preview-sheet {
    max-width: 920px;
    margin: 0 auto;
}
.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    color: #667085;
    font-weight: 650;
}
.preview-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}
.preview-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    margin: 0 0 10px;
}
.preview-summary {
    margin: 0 0 12px;
    font-weight: 650;
    color: #344054;
}
.preview-contact {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
}
.preview-contact-title {
    font-weight: 650;
    margin-bottom: 6px;
}
.editor-toolbar.compact-editor button {
    padding: 6px 10px;
    font-size: 13px;
}

.editor-toolbar button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.editor-toolbar .fmt-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.fmt-letter {
    display: inline-block;
    width: 18px;
    text-align: center;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
    line-height: 1;
    font-size: 14px;
}

.fmt-letter.italic {
    font-style: italic;
    font-weight: 800;
}

.fmt-letter.underline {
    text-decoration: underline;
    font-weight: 900;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 6px;
}

.label-row label {
    flex: 1 1 auto;
}

.mini-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    text-align: right;
}

.toolbar-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
    margin: 0 4px;
    opacity: 0.8;
}

.form-actions {
    display: flex;
    gap: 34px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
}

.row-actions form.inline {
    display: inline;
}

.editor-head,
.category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.word-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.submit-form .mini-count,
.submit-form .word-count {
    color: #c2410c;
}

.editor-surface {
    height: clamp(500px, 62vh, 740px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    line-height: 1.75;
    overflow: auto;
}

.editor-surface a {
    color: #0a3482 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    cursor: pointer;
    font-weight: 500;
}

.editor-surface a:hover {
    color: var(--blue);
}

.editor-surface.compact-surface {
    min-height: 150px;
    line-height: 1.65;
    height: 160px;
}

.submit-panel-main .field input#pr_title,
.submit-panel-main .field textarea#pr_summary {
    font-size: 14px;
}

.submit-panel-main .field input#pr_title {
    padding-top: 8px;
    padding-bottom: 8px;
}

.submit-panel-main .field textarea#pr_summary {
    min-height: 90px;
}

.editor-surface blockquote {
    margin: 14px 0;
    padding: 10px 14px;
    border-left: 4px solid rgba(11, 101, 214, 0.45);
    background: rgba(238, 242, 247, 0.65);
    border-radius: 12px;
    color: #0f172a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow: auto;
    padding-right: 6px;
}

.category-controls {
    margin-bottom: 0;
}

.category-controls .field {
    max-width: 460px;
}

.submit-panel-main select[name="client_id"] {
    font-size: 13px;
}

.category-pill {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 8px;
    background: #fbfdff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.limit-note {
    color: #b33a3a;
    font-size: 13px;
    font-weight: 700;
}

.req-star {
    color: #b33a3a;
    font-weight: 900;
}

.editor-wrapper {
    position: relative;
}

.editor-html {
    width: 100%;
    height: 720px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    overflow: auto;
}

.img-resizer {
    position: absolute;
    border: 2px solid rgba(15, 91, 216, 0.55);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(12, 35, 82, 0.18);
    pointer-events: none;
    z-index: 5;
}

.img-resizer .handle {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 2px solid rgba(15, 91, 216, 0.95);
    border-radius: 3px;
    position: absolute;
    pointer-events: auto;
}

.img-resizer .handle.nw { left: -6px; top: -6px; cursor: nwse-resize; }
.img-resizer .handle.n  { left: 50%; top: -6px; transform: translateX(-50%); cursor: ns-resize; }
.img-resizer .handle.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.img-resizer .handle.e  { right: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.img-resizer .handle.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.img-resizer .handle.s  { left: 50%; bottom: -6px; transform: translateX(-50%); cursor: ns-resize; }
.img-resizer .handle.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.img-resizer .handle.w  { left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }

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

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

.field-span-2 {
    grid-column: span 2;
}

.release-sheet {
    padding: 28px;
}

.release-header {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
}

.release-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.release-header .pr-chip {
    font-size: 13px;
    padding: 5px 9px;
}

.release-head-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.release-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.release-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.release-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}

.release-title {
    margin: 10px 0 8px 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    text-align: center;
}

.release-meta--center {
    justify-content: center;
    text-align: center;
}

.pr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e6edf8;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.pr-chip--code {
    background: #ffffff;
    border-color: #dbe6ff;
    color: #0b2f6d;
    letter-spacing: 0.02em;
}

.pr-chip--release {
    background: #ffffff;
    border-color: #e6edf8;
    color: #334155;
}
.pr-chip--release .pr-chip-k {
    color: #64748b;
    font-weight: 650;
}
.pr-chip--release .pr-chip-v {
    display: inline-block;
    max-width: min(42vw, 260px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
    color: #0f172a;
    min-width: 0;
}

.pr-chip--urls {
    background: #ffffff;
    border-color: #d1e9dd;
    color: #1c6c3a;
}

.pr-chip--status {
    box-shadow: none;
}
.pr-chip--success {
    background: #eef9f1;
    border-color: #ccebd7;
    color: #1c6c3a;
}
.pr-chip--warning {
    background: #fff7e6;
    border-color: #ffe0a8;
    color: #845400;
}
.pr-chip--danger {
    background: #fff1f1;
    border-color: #ffd0d0;
    color: #8b1d1d;
}
.pr-chip--info {
    background: #f4f7ff;
    border-color: #dbe6ff;
    color: #0b2f6d;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    border: 0;
    font-weight: 650;
    color: #334155;
    background: transparent;
    box-shadow: none;
}
.meta-chip--date {
    color: #334155;
}
.meta-chip--cats {
    color: #7c2d12;
}

.title-release-id {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 650;
    color: #64748b;
    white-space: nowrap;
}

.title-release-id:hover {
    color: #0b2f6d;
}

.release-meta--center .meta-chip--date {
    color: #667085;
    font-weight: 500;
}
.release-meta--center .meta-chip--cats {
    color: #111827;
    font-weight: 500;
}

.release-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: none;
}

.release-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.release-summary {
    margin: 0;
    font-size: 18px;
    color: #36445f;
}

.prose {
    line-height: 1.9;
}

.prose p {
    margin: 0 0 16px;
}

.prose blockquote {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 4px solid rgba(148, 163, 184, 0.9);
    background: rgba(248, 250, 252, 0.9);
    border-radius: 14px;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

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

.detail-grid small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.release-contact,
.release-disclaimer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.release-disclaimer > div[style] {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    width: auto !important;
}

.release-disclaimer > *:first-child {
    margin-top: 0 !important;
}

.release-disclaimer p:first-child {
    margin-top: 0;
}

.download-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    position: relative;
    text-decoration: none !important;
}

.download-chip.icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    flex: 0 0 auto;
}

.download-chip::before {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    content: "";
}

.download-chip.pdf {
    background: #0c1d3f;
    color: #fff;
}

.download-chip.pdf::before {
    content: "PDF";
    background: #c23a3a;
}

.download-chip.pdf-premium {
    background: #0b1a33;
    color: #fff;
}

.download-chip.pdf-premium::before {
    content: "PRO";
    background: #c6a25e;
    color: #0b1a33;
}

.download-chip.excel {
    background: #eef3f9;
    color: #10244a;
}

.download-chip.excel::before {
    content: "XLS";
    background: #1d7a57;
}

.download-chip.excel.is-loading {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(29, 122, 87, 0.22);
    filter: brightness(1.03);
}

.download-chip.icon-only::before {
    width: 24px;
    height: 24px;
}

.download-chip.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.download-chip.pdf.is-loading::before {
    content: "PDF";
    background: rgba(194, 58, 58, 0.55);
}

.download-chip.pdf.is-loading {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(194, 58, 58, 0.22);
    filter: brightness(1.05);
}

.download-chip.pdf.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: kmSpin 0.8s linear infinite;
    pointer-events: none;
}

.dash-metric {
    font-size: 40px;
    font-weight: 900;
    margin-top: 8px;
    letter-spacing: 0.2px;
    line-height: 1.05;
}

@keyframes kmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pdf-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(12, 29, 63, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.2px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.pdf-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pdf-toast .spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: kmSpin 0.8s linear infinite;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
}

.pagination--smart {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination--ranges {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-summary {
    font-size: 12px;
    font-weight: 600;
}

.pagination-ranges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-gap {
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.pagination-jump {
    display: inline-flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-jump label {
    display: grid;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.pagination-jump input[type="number"] {
    width: 96px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    font: inherit;
    color: var(--text);
    background: #fbfdff;
}

.pagination-ranges .button.active {
    background: linear-gradient(135deg, #edf4ff, #dfeaff);
    color: var(--blue-deep);
    border-color: #bfd2fb;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 91, 216, 0.12);
    transform: translateY(-1px);
}

#site-table tbody tr {
    cursor: move;
}

#site-table tbody tr.dragging {
    opacity: 0.5;
}

@media (max-width: 1100px) {
    .app-shell,
    .content-grid,
    .content-grid.narrow,
    .form-grid,
    .category-grid,
    .split-inputs,
    .detail-grid,
    .dashboard-bottom-grid,
    .instruction-split,
    .instruction-inline-grid,
    .instruction-grid,
    .dashboard-client-strip,
    .dashboard-client-quota,
    .client-dashboard-grid,
    .client-dashboard-strip,
    .client-quota-grid,
    .submit-shell,
    .submit-inline-grid,
    .submit-contact-grid,
    .submit-category-grid {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 18px;
    }

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

    .auth-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-search {
        margin-left: 0;
    }

    .pagination--smart {
        justify-content: center;
    }

    .pagination-jump {
        width: 100%;
        justify-content: center;
    }

    .submit-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-actions-row {
        justify-content: stretch;
    }

    .submit-actions-row .button {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (min-width: 1101px) {
    /* Keep the filters in one row on desktop; allow tabs to scroll internally if needed. */
    .filters-row {
        flex-wrap: nowrap;
    }

    .status-tabs {
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .status-tabs::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .submissions-toolbar {
        flex-wrap: nowrap;
    }
}

@media (max-width: 760px) {
    .client-dashboard-hero {
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .client-dashboard-hero-copy h2 {
        font-size: 26px;
    }

    .instruction-url-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-client-metric strong {
        font-size: 24px;
    }

    .dashboard-client-metric--usage {
        min-height: 96px;
    }
}
