.app-body {
    margin: 0;
    background: #f7f9fb;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app-body *,
.app-body *::before,
.app-body *::after {
    box-sizing: border-box;
}

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

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    border-right: 1px solid #1e293b;
    background: #091426;
    color: #f8fafc;
}

.app-brand {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    padding: 2rem 1.5rem 2.25rem;
    color: inherit;
    text-decoration: none;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
}

.app-brand-mark img {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
}

.app-brand strong {
    display: block;
    max-width: 9rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.9rem;
}

.app-brand small {
    display: block;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.app-nav,
.app-sidebar-footer {
    display: grid;
    gap: 0.375rem;
    padding: 0 1rem;
}

.app-sidebar-footer {
    margin-top: auto;
    padding-block: 1.5rem 2rem;
    border-top: 1px solid #1e293b;
}

.app-nav-link {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    min-height: 3rem;
    padding: 0 1rem;
    border-radius: 0.375rem;
    color: #9ca3af;
    font-weight: 500;
    text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link.is-active {
    background: #316bf3;
    color: #fff;
}

.app-nav-link.is-disabled {
    color: rgb(156 163 175 / 0.45);
    cursor: default;
    pointer-events: none;
}

.app-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    color: currentColor;
    font-size: 1.25rem;
}

.app-frame {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid #c5c6cd;
    background: rgb(247 249 251 / 0.95);
    backdrop-filter: blur(10px);
}

.app-topbar h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.app-main {
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
}

.app-flash {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.25rem;
    background: #fff;
    color: #191c1e;
    font-weight: 700;
}

.app-flash-success {
    border-color: #9bd8b8;
    background: #effaf4;
    color: #0f5132;
}

.app-flash-warning {
    border-color: #e4c06a;
    background: #fff8e6;
    color: #7a4b00;
}

.app-flash-error {
    border-color: #f1aeb5;
    background: #fff1f2;
    color: #842029;
}

.app-flash-info {
    border-color: #9ec5fe;
    background: #eef5ff;
    color: #084298;
}

.app-task-progress-panel { margin: 1rem 0; }
.app-task-progress-list { display: grid; gap: 1rem; }
.app-task-progress-row { padding: 0.75rem 0; border-top: 1px solid #e3e4e8; }
.app-task-progress-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.app-task-progress-row progress { width: 100%; height: 0.75rem; }

.app-site-hero,
.app-panel {
    border: 1px solid #c5c6cd;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.app-site-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.875rem;
}

.app-site-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.5rem;
    background: #eceef0;
}

.app-site-preview span {
    width: 2.5rem;
    height: 2rem;
    border: 1px solid #c5c6cd;
    background: linear-gradient(90deg, #dbe1ff 45%, #fff 45%);
    box-shadow: 0.35rem 0.35rem 0 #d8dadc;
}

.app-site-heading {
    min-width: 0;
}

.app-site-title-row {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-site-title-row h2 {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.875rem;
}

.app-status-pill,
.app-success-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #dcfce7;
    color: #00875f;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1rem;
}

.app-status-pill {
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    box-shadow: 0 0 1rem rgb(16 185 129 / 0.22);
}

.app-status-pill::before {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #10b981;
    content: "";
}

.app-status-pill.is-warning {
    background: #fef3c7;
    color: #b45309;
    box-shadow: 0 0 1rem rgb(245 158 11 / 0.18);
}

.app-status-pill.is-warning::before {
    background: #f59e0b;
}

.app-status-pill.is-error {
    background: #ffe4e6;
    color: #ba1a1a;
    box-shadow: 0 0 1rem rgb(225 29 72 / 0.16);
}

.app-status-pill.is-error::before {
    background: #e11d48;
}

.app-status-pill.is-neutral {
    background: #eceef0;
    color: #45474c;
    box-shadow: none;
}

.app-status-pill.is-neutral::before {
    background: #75777d;
}

.app-site-url {
    display: inline-block;
    margin-top: 0.375rem;
    color: #45474c;
    text-decoration: none;
}

.app-site-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.app-site-url-row form {
    margin: 0;
}

.app-site-url-row button {
    min-height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.app-site-url:hover {
    color: #0051d5;
}

.app-site-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 1.5rem 0 0;
}

.app-site-meta div {
    padding-right: 1.75rem;
    border-right: 1px solid #c5c6cd;
}

.app-site-meta div:last-child {
    border-right: 0;
}

.app-site-meta dt {
    color: #8590a6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-site-meta dd {
    margin: 0.25rem 0 0;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 800;
}

.app-site-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.app-site-check {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid #c5c6cd;
    border-radius: 999px;
    background: #fff;
    color: #45474c;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1rem;
}

.app-site-check strong {
    color: #091426;
    font-weight: 800;
}

.app-site-check.is-ok {
    border-color: #9bd8b8;
    background: #effaf4;
    color: #087443;
}

.app-site-check.is-ok strong {
    color: #087443;
}

.app-site-check.is-error {
    border-color: #f1aeb5;
    background: #fff1f2;
    color: #ba1a1a;
}

.app-site-check.is-error strong {
    color: #ba1a1a;
}

.app-site-check.is-neutral {
    background: #f2f3f5;
}

.app-link-value {
    color: #0051d5 !important;
}

.app-site-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-self: stretch;
    justify-content: center;
    min-width: 12rem;
}

.app-site-actions form {
    width: 100%;
}

.app-site-actions .app-action-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
}

.app-site-actions .app-action-group .app-update-backup-choice {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 0 0.45rem;
}

.app-action-group select {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 3rem;
    padding: 0 0.75rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.125rem 0 0 0.125rem;
    background: #fff;
    color: #191c1e;
    font: inherit;
}

.app-action-group button {
    grid-column: 2;
    grid-row: 2;
    border-radius: 0 0.125rem 0.125rem 0;
}

.app-action-group select:disabled {
    border-color: #d8dadc;
    background: #eceef0;
    color: #75777d;
}

.app-site-actions button {
    width: 100%;
    white-space: nowrap;
}

.app-primary-button,
.app-secondary-button,
.app-actions-panel button {
    display: inline-flex;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1rem;
    border-radius: 0.125rem;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.app-primary-button {
    border: 1px solid #0051d5;
    background: #0051d5;
    color: #fff;
}

.app-secondary-button {
    border: 1px solid #c5c6cd;
    background: #fff;
    color: #191c1e;
}

.app-primary-button:disabled,
.app-secondary-button:disabled {
    border-color: #d8dadc;
    background: #eceef0;
    color: #75777d;
    cursor: not-allowed;
}

.app-tabs {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    margin-top: 2rem;
    border-bottom: 1px solid #c5c6cd;
}

.app-tabs a {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    min-height: 3.5rem;
    border-bottom: 2px solid transparent;
    color: #2f3337;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.app-tabs a.is-active {
    border-color: #0051d5;
    color: #0051d5;
}

.app-tabs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #ba1a1a;
    color: #fff;
    font-size: 0.75rem;
}

.app-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.app-dashboard-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.app-cache-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.app-cache-overview-grid > .app-cache-overview-items {
    display: contents;
}

.app-cache-overview-grid > .app-cache-overview-items > article,
.app-cache-overview-grid > .app-collapsible-panel {
    min-width: 0;
    height: 100%;
}

.app-cache-overview-grid > .app-events-panel {
    margin-top: 0;
    height: 100%;
}

.app-cache-overview-grid > .app-cache-flush-action {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding: 1rem 1.5rem;
}

.app-cache-overview-grid > .app-cache-flush-action form {
    margin: 0;
}

.app-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.app-summary-tile {
    display: grid;
    gap: 0.5rem;
}

.app-summary-tile span {
    color: #45474c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-summary-tile strong {
    color: #091426;
    font-size: 1.75rem;
    line-height: 2rem;
}

.app-panel {
    padding: 1.5rem;
}

.app-panel-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.app-panel h2,
.app-panel-header h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.app-panel-header span {
    color: #45474c;
}

.app-source-list summary,
.app-page-details summary {
    cursor: pointer;
    color: #0051d5;
    font-weight: 700;
}

.app-source-list ul {
    display: grid;
    gap: 0.25rem;
    max-width: 32rem;
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    overflow-wrap: anywhere;
}

.app-page-latest-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.app-page-latest-stats dt {
    color: #8590a6;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-page-latest-stats dd { margin: 0.2rem 0 0; }

.app-page-chart-caption {
    margin: 0 0 0.35rem;
    color: #8590a6;
    font-size: 0.7rem;
    font-style: italic;
}

.app-page-duration-chart {
    position: relative;
    height: 13rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e3e5;
}

.app-page-duration-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.app-site-metrics-chart-panel {
    margin-top: 1.5rem;
}

.app-site-metrics-chart {
    position: relative;
    height: 18rem;
    margin-top: 1rem;
    border-top: 1px solid #e0e3e5;
}

.app-site-metrics-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.app-update-components {
    margin: 1rem 0 0;
    padding: 0;
    box-shadow: none;
}

.app-update-components .app-panel-header { padding: 1rem 1.25rem; }

.app-backup-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.app-general-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.app-general-overview-grid > .app-events-panel {
    margin-top: 0;
}

.app-general-overview-grid > .app-panel {
    min-width: 0;
    height: 100%;
}

.app-configuration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.app-configuration-grid > .app-events-panel {
    min-width: 0;
    margin-top: 0;
}

.app-configuration-grid .app-panel-header {
    padding: 1rem 1.25rem;
}

.app-configuration-grid .app-panel-header h2 {
    font-size: 0.95rem;
    line-height: 1.25rem;
}

.app-configuration-grid .app-form-panel {
    padding: 0 1.25rem 1.25rem;
}

.app-configuration-grid .app-form-panel form {
    max-width: none;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.app-configuration-grid .app-form-panel label {
    font-size: 0.875rem;
}

.app-chart {
    display: grid;
    height: 13rem;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.25rem;
    align-items: end;
    padding: 1.5rem 0 0;
}

.app-chart span {
    border-radius: 0.125rem 0.125rem 0 0;
    background: #dbe1ff;
}

.app-chart .is-current {
    background: #316bf3;
}

.app-chart .h-4 { height: 38%; }
.app-chart .h-5 { height: 55%; }
.app-chart .h-6 { height: 62%; }
.app-chart .h-7 { height: 70%; }
.app-chart .h-8 { height: 76%; }
.app-chart .h-9 { height: 82%; }
.app-chart .h-10 { height: 94%; }

.app-chart-axis {
    display: flex;
    justify-content: space-between;
    color: #8590a6;
    font-size: 0.75rem;
}

.app-update-chart {
    margin: 0 1.5rem 1.25rem;
    border-top: 1px solid #e0e3e5;
}

.app-update-chart .app-panel-header {
    padding: 1rem 0 0;
}

.app-update-chart-bars {
    display: grid;
    height: 12rem;
    grid-template-columns: repeat(12, minmax(2rem, 1fr));
    gap: 0.5rem;
    align-items: end;
    padding: 1rem 0 0;
}

.app-update-chart-column {
    display: grid;
    height: 100%;
    grid-template-rows: 1.25rem 1fr 1.25rem;
    gap: 0.25rem;
    align-items: end;
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
}

.app-update-chart-column strong {
    color: #091426;
    font-size: 0.75rem;
}

.app-update-chart-bar {
    display: block;
    width: 100%;
    min-height: 0.25rem;
    border-radius: 0.125rem 0.125rem 0 0;
    background: #316bf3;
}

.app-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e3e5;
    border-bottom: 1px solid #e0e3e5;
}

.app-history-filters label {
    display: grid;
    gap: 0.3rem;
    color: #45474c;
    font-size: 0.8125rem;
    font-weight: 700;
}

.app-history-filters input {
    min-height: 2.5rem;
    padding: 0 0.625rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.25rem;
    background: #fff;
    color: #091426;
    font: inherit;
}

.app-history-filters .app-primary-button,
.app-history-filters .app-secondary-button {
    min-height: 2.5rem;
    padding: 0 0.875rem;
}

.app-history-items {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-history-items li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.app-history-items li span {
    color: #6b7280;
    white-space: nowrap;
}

.app-history-items li small {
    color: #6b7280;
}

.app-history-items li.is-error strong,
.app-history-items li.is-error small {
    color: #b42318;
}

.app-snapshot-details summary {
    cursor: pointer;
    color: #0051d5;
    font-weight: 700;
}

.app-snapshot-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(16rem, 1fr));
    gap: 1.5rem;
    min-width: 34rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f7f8fa;
}

.app-snapshot-detail-grid h3 {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.app-snapshot-detail-grid ul {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-snapshot-detail-grid li span {
    color: #6b7280;
}

@media (max-width: 720px) {
    .app-snapshot-detail-grid {
        grid-template-columns: 1fr;
        min-width: 18rem;
    }
}

.app-actions-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.app-actions-panel form {
    margin: 0;
}

.app-actions-panel button {
    justify-content: space-between;
    width: 100%;
    border: 1px solid #c5c6cd;
    background: #fff;
    color: #191c1e;
    text-align: left;
}

.app-events-panel {
    margin-top: 1.5rem;
    padding: 0;
}

.app-collapsible-panel {
    overflow: hidden;
}

.app-collapsible-panel > summary {
    cursor: pointer;
    list-style: none;
}

.app-collapsible-panel > summary::-webkit-details-marker {
    display: none;
}

.app-collapsible-panel > summary::after {
    flex: 0 0 auto;
    color: #8590a6;
    font-size: 0.875rem;
    content: "+";
}

.app-collapsible-panel[open] > summary::after {
    content: "-";
}

.app-collapsible-panel > summary span {
    margin-left: auto;
}

.app-events-panel .app-panel-header {
    padding: 1.25rem 1.5rem;
}

.app-events-panel a {
    color: #0051d5;
    text-decoration: none;
}

.app-events-table {
    width: 100%;
    border-collapse: collapse;
}

.app-table-scroll {
    overflow-x: auto;
}

.app-events-table th,
.app-events-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e3e5;
    text-align: left;
}

.app-events-table th {
    background: #f2f4f6;
    color: #8590a6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-sites-dashboard-table td {
    vertical-align: middle;
}

.app-sites-dashboard-table td:first-child strong,
.app-sites-dashboard-table td:first-child a {
    display: block;
}

.app-sites-dashboard-table td:first-child a {
    margin-top: 0.25rem;
}

.app-site-name-link {
    color: #091426;
    font-weight: 800;
    text-decoration: none;
}

.app-site-name-link:hover {
    color: #0051d5;
}

.app-site-external-link {
    display: inline-flex !important;
    gap: 0.35rem;
    align-items: center;
    max-width: 14rem;
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.35rem;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.app-site-external-link::before {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 0.75rem;
    content: "↗";
}

.app-site-external-link:hover {
    color: #0051d5;
    text-decoration: underline;
}

.app-site-health-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 11rem;
}

.app-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
    min-width: 10.25rem;
}

.app-row-actions form {
    flex: 0 0 auto;
    margin: 0;
}

.app-row-actions a,
.app-row-actions button {
    width: 100%;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.125rem;
    background: #fff;
    color: #191c1e;
    cursor: pointer;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
}

.app-row-actions .app-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.app-action-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-row-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    font-weight: 700;
}

.app-row-actions .app-open-button {
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid #0051d5;
    border-radius: 0.125rem;
    background: #0051d5;
    color: #fff;
    text-decoration: none;
}

.app-row-actions .app-icon-button.app-open-button {
    background: #0051d5;
    border-color: #0051d5;
    color: #fff;
}

.app-row-actions .app-action-cache-button {
    border-color: #d59a00;
    background: #fff7df;
    color: #946500;
}

.app-row-actions .app-action-sync-button {
    border-color: #0b9960;
    background: #eafaf2;
    color: #087443;
}

.app-row-actions .app-icon-button.app-open-button:hover {
    background: #003f9f;
    color: #fff;
}

.app-row-actions .app-action-cache-button:hover {
    background: #ffedb5;
    color: #704b00;
}

.app-row-actions .app-action-sync-button:hover {
    background: #c9f4dd;
    color: #065c35;
}

.app-row-actions .app-danger-button.app-icon-button:hover {
    border-color: #8f111b;
    background: #8f111b;
    color: #fff;
}

.app-row-actions .app-danger-button.app-icon-button {
    border-color: #ba1a1a;
    background: #ba1a1a;
    color: #fff;
}

.app-health-count {
    display: inline-flex;
    min-width: 3.5rem;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border: 1px solid #c5c6cd;
    border-radius: 999px;
    font-weight: 800;
}

.app-health-count.is-ok {
    border-color: #9bd8b8;
    background: #effaf4;
    color: #087443;
}

.app-health-count.is-warning {
    border-color: #f1aeb5;
    background: #fff1f2;
    color: #ba1a1a;
}

.app-health-count.is-neutral {
    background: #f2f3f5;
    color: #45474c;
}

.app-success-badge {
    padding: 0.25rem 0.625rem;
}

.app-events-table tr.is-unread td:first-child {
    font-weight: 700;
}

.app-events-table tr.is-error td {
    background: #fff7f7;
}

.app-events-table tr.is-error td:first-child {
    color: #ba1a1a;
    font-weight: 700;
}

.app-notification-read-button {
    padding: 0.375rem 0.875rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.375rem;
    background: #fff;
    color: #191c1e;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
}

.app-notification-read-button:hover {
    border-color: #75777d;
}

.app-empty-state {
    display: grid;
    gap: 0.5rem;
}

.app-empty-state h2,
.app-empty-state p {
    margin: 0;
}

.app-empty-state p,
.app-empty-cell {
    color: #45474c;
}

.app-empty-cell {
    text-align: center !important;
}

.app-inline-alert {
    display: grid;
    gap: 0.375rem;
    border-top: 1px solid #e0e3e5;
    padding: 1.125rem 1.5rem;
    color: #191c1e;
}

.app-inline-alert strong {
    font-size: 0.92rem;
}

.app-inline-alert span {
    color: #45474c;
}

.app-inline-alert.is-warning {
    border-left: 3px solid #b7791f;
    background: #fffaf0;
}

.app-connector-update-alert {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.app-connector-update-alert form {
    margin: 0;
}

.app-detail-list {
    display: grid;
    gap: 0.875rem;
    margin: 1rem 0 0;
}

.app-detail-list div {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    border-top: 1px solid #e0e3e5;
    padding-top: 0.875rem;
}

.app-detail-list dt {
    color: #45474c;
    font-weight: 700;
}

.app-detail-list dd {
    margin: 0;
    color: #091426;
    font-weight: 800;
    text-align: right;
}

.app-activity-summary-list {
    margin: 0;
    padding: 1.25rem 1.5rem;
}

.app-activity-summary-list dd {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.app-activity-summary-date {
    color: #45474c;
    font-weight: 500;
    font-size: 0.8125rem;
}

.app-wordpress-inventory-list {
    gap: 0;
    margin: 0;
    padding: 0.25rem 1.5rem 1.25rem;
}

.app-wordpress-inventory-list div {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto;
    align-items: center;
    min-height: 3rem;
    padding: 0;
}

.app-wordpress-inventory-list div:first-child {
    border-top: 1px solid #e0e3e5;
}

.app-wordpress-inventory-list dt {
    color: #1f2937;
}

.app-wordpress-inventory-list dd {
    min-width: 4rem;
    font-size: 0.95rem;
}

.app-tab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 1.5rem 1.25rem;
}

.app-tab-actions form {
    margin: 0;
}

.app-action-help {
    flex: 1 1 100%;
    margin: 0;
    color: #45474c;
    font-size: 0.8125rem;
}

.app-tab-actions button {
    min-height: 2.5rem;
}

.app-backup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.app-backup-actions form {
    margin: 0;
}

.app-backup-media-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e3e5;
    background: #f7f8fa;
}

.app-backup-media-settings label {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

.app-backup-media-settings input[type="number"] {
    width: 4.5rem;
    min-height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.125rem;
    font: inherit;
}

.app-backup-actions button {
    padding: 0.35rem 0.6rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.125rem;
    background: #fff;
    color: #191c1e;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-backup-actions button:hover {
    border-color: #0051d5;
    color: #0051d5;
}

.app-backup-actions button.is-danger {
    color: #b32d2e;
}

.app-backup-actions button.is-danger:hover {
    border-color: #b32d2e;
}

.app-update-backup-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #45474c;
    font-size: 0.75rem;
    white-space: nowrap;
}

.app-danger-button {
    padding: 0.35rem 0.6rem;
    border: 1px solid #b32d2e;
    border-radius: 0.125rem;
    background: #fff;
    color: #b32d2e;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
}

.app-danger-button:hover {
    background: #b32d2e;
    color: #fff;
}

.app-tab-table {
    border-top: 1px solid #e0e3e5;
}

.app-inline-form {
    margin: 0;
}

.app-inline-form button {
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.125rem;
    background: #fff;
    color: #191c1e;
    cursor: pointer;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-inline-form button:hover {
    border-color: #0051d5;
    color: #0051d5;
}

.app-inline-form button:disabled {
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.app-events-table td span {
    color: #6b7280;
    font-size: 0.8125rem;
}

.app-tab-empty-state {
    padding: 1.5rem;
    border-top: 1px solid #e0e3e5;
}

.app-form-panel {
    padding: 1.5rem;
    border-top: 1px solid #e0e3e5;
}

.app-form-panel form {
    display: grid;
    max-width: 42rem;
    gap: 1rem;
}

.app-form-panel label {
    display: block;
    margin-bottom: 0.375rem;
    color: #45474c;
    font-weight: 700;
}

.app-form-panel input,
.app-form-panel select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.25rem;
    background: #fff;
    color: #091426;
    font: inherit;
}

.app-form-panel ul {
    margin: 0.375rem 0 0;
    padding-left: 1rem;
    color: #ba1a1a;
}

.app-form-actions {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    margin-top: 0.5rem;
}

.app-form-page-subtitle {
    margin: 0.25rem 0 0;
    color: #45474c;
    font-size: 0.9375rem;
}

.app-danger-button {
    border: 1px solid #ba1a1a;
    background: #fff;
    color: #ba1a1a;
}

.app-danger-button:hover {
    background: #ffe4e6;
}

.app-association-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: start;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e0e3e5;
}

.app-association-actions button {
    width: auto;
    min-height: 2.75rem;
    padding: 0 1rem;
    white-space: nowrap;
}

.app-association-body {
    padding: 1rem 1.5rem 1.25rem;
}

.app-association-panel.is-connected .app-association-body {
    padding-block: 0.5rem;
}

.app-association-panel.is-connected .app-association-status {
    text-align: left;
}

.app-form-stack {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.app-toolbox-panel .app-form-stack {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
}

.app-toolbox-panel > p {
    margin: 0;
    padding: 1rem 1.5rem 0;
}

.app-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.app-toolbox-grid .app-toolbox-panel {
    margin: 0;
}

.app-toolbox-plugin-list {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 1.5rem;
    padding: 0;
    list-style: none;
}

.app-toolbox-plugin-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-toolbox-action,
.app-toolbox-custom-form {
    margin: 0 1.5rem 1.5rem;
}

.app-toolbox-custom-form {
    display: grid;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e3e5;
}

.app-toolbox-custom-form > div {
    display: flex;
    gap: 0.75rem;
}

.app-toolbox-custom-form input {
    min-width: 0;
    flex: 1;
    padding: 0.65rem 0.75rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.25rem;
    font: inherit;
}

@media (max-width: 48rem) {
    .app-toolbox-grid {
        grid-template-columns: 1fr;
    }
}

.app-form-stack textarea {
    width: 100%;
    min-height: 7rem;
    padding: 0.75rem;
    border: 1px solid #c5c6cd;
    border-radius: 0.25rem;
    font: inherit;
    resize: vertical;
}

.app-backup-schedule-actions {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem 1.5rem;
}

.app-backup-schedule-actions button {
    min-height: 2.5rem;
    padding: 0 1rem;
    border: 1px solid #0051d5;
    border-radius: 0.125rem;
    background: #0051d5;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.app-backup-overview-grid > section:first-child > form {
    margin: 1rem 1.5rem 0;
}

.app-backup-overview-grid > section:first-child > form:last-child {
    margin-bottom: 1.5rem;
}

.app-association-status {
    max-width: 42rem;
    margin: 0 auto;
    color: #45474c;
    line-height: 1.5rem;
    text-align: center;
}

.app-association-code {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px dashed #0051d5;
    border-radius: 0.375rem;
    background: #eef3ff;
}

.app-association-code-label {
    color: #45474c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-association-code-value {
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    background: #fff;
    color: #0051d5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@media (max-width: 64rem) {
    .app-dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .app-sidebar {
        position: static;
        min-height: auto;
    }

    .app-brand {
        padding: 1rem;
    }

    .app-nav,
    .app-sidebar-footer {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem 1rem;
    }

    .app-sidebar-footer {
        margin-top: 0;
        border-top: 0;
    }

    .app-topbar {
        flex-wrap: wrap;
        padding-block: 0.75rem;
    }


    .app-site-hero,
    .app-dashboard-grid,
    .app-backup-overview-grid,
    .app-general-overview-grid,
    .app-configuration-grid,
    .app-cache-overview-grid {
        grid-template-columns: 1fr;
    }

    .app-cache-overview-grid > .app-cache-flush-action {
        grid-column: auto;
        grid-row: auto;
    }

    .app-page-latest-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-site-actions {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 36rem) {
    .app-dashboard-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 40rem) {
    .app-main {
        padding: 1rem;
    }

    .app-site-hero,
    .app-panel {
        padding: 1rem;
    }

    .app-site-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .app-site-meta div {
        border-right: 0;
        padding-right: 0;
    }

    .app-events-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .app-connector-update-alert {
        grid-template-columns: 1fr;
    }
}
