/* Chad's Tools OS / ServerAdmin shared UI system */

:root {
    --bg: #f5f6f8;
    --panel: #ffffff;
    --panel-soft: #fafafa;
    --text: #1f2933;
    --muted: #687385;
    --border: #d9dee7;
    --border-strong: #b9c0cc;
    --primary: #1f4f82;
    --primary-soft: #e7f1fb;
    --success: #1f7a3f;
    --success-soft: #e8f7ee;
    --danger: #a12727;
    --danger-soft: #fdeaea;
    --warning: #7a5200;
    --warning-soft: #fff4d6;
    --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 17px;
}

code {
    background: #eef1f5;
    border: 1px solid #dde3eb;
    border-radius: 6px;
    padding: 2px 5px;
    word-break: break-word;
}

pre {
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    background: #111827;
    color: #f3f4f6;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
}

/* Top navigation */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.brand {
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
}

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

.topnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 14px;
    background: var(--panel-soft);
    color: var(--text);
    text-decoration: none;
}

.topnav a:hover {
    background: #eef2f7;
}

/* Page layout */

.page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
}

.portal-mode .page {
    max-width: 1120px;
    padding: 36px 24px;
}

.page-header {
    margin-bottom: 18px;
}

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

.small {
    font-size: 13px;
}

/* Cards */

.card,
.section-card,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.card > h1,
.card > h2,
.section-card > h2 {
    margin-bottom: 10px;
}

.empty-state {
    border-style: dashed;
    color: var(--muted);
}

.danger-zone {
    border-color: #efb4b4;
    background: #fffafa;
}

/* Portal */

.portal-hero {
    margin-bottom: 24px;
}

.portal-hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.app-grid,
.script-grid,
.grid {
    display: grid;
    gap: 16px;
}

.app-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    margin-top: 24px;
}

.script-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.app-card,
.script-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.app-card h2 {
    margin: 8px 0 10px;
    font-size: 20px;
}

.app-card p {
    color: #3f4855;
    line-height: 1.45;
    min-height: 56px;
}

.app-icon {
    font-size: 30px;
}

.card-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

/* Buttons */

.btn,
.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--panel-soft);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #eef2f7;
    text-decoration: none;
}

.btn-primary {
    border-color: #9ab5d6;
    background: var(--primary-soft);
    color: #173b61;
}

.btn-primary:hover {
    background: #d8e9fa;
}

.btn-danger {
    border-color: #e5a4a4;
    background: var(--danger-soft);
    color: var(--danger);
}

.btn-danger:hover {
    background: #fbd7d7;
}

.btn-alert {
    border-color: #dfc06b;
    background: var(--warning-soft);
    color: var(--warning);
}

button[disabled],
.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* Pills / status */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #f1f3f6;
    color: #394150;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pill.ok {
    border-color: #9ed3b2;
    background: var(--success-soft);
    color: var(--success);
}

.pill.bad {
    border-color: #e5a4a4;
    background: var(--danger-soft);
    color: var(--danger);
}

/* Flash messages */

.flash-wrap {
    margin-bottom: 16px;
}

.flash {
    background: var(--warning-soft);
    border: 1px solid #e5c56d;
    color: #5c4300;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* Forms */

form {
    max-width: 100%;
}

.card form,
.section-card form {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    font-size: 15px;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 120px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 7px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin: 6px 0;
}

.full {
    width: 100%;
}

/* Tables */

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

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    table-layout: auto;
}

th,
td {
    border: 1px solid var(--border);
    padding: 9px;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}

th {
    background: #eef2f7;
    font-size: 13px;
    color: #334155;
}

td {
    font-size: 14px;
}

.responsive-table {
    min-width: 720px;
}

.ua,
.user-agent {
    display: inline-block;
    max-width: 460px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Dashboard helpers */

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

.path-text,
.long-text {
    word-break: break-all;
}

/* Mobile */

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px;
    }

    .brand {
        white-space: normal;
    }

    .topnav {
        justify-content: flex-start;
        width: 100%;
    }

    .topnav a {
        flex: 1 1 auto;
    }

    .page,
    .portal-mode .page {
        padding: 16px 10px;
    }

    .portal-hero h1 {
        font-size: 26px;
    }

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

    .card,
    .section-card,
    .empty-state,
    .app-card,
    .script-card {
        padding: 14px;
        border-radius: 12px;
    }

    .btn,
    .button,
    button,
    input[type="submit"] {
        width: 100%;
        min-height: 42px;
    }

    .actions,
    .card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .actions form,
    .card-actions form {
        width: 100%;
    }

    .responsive-table {
        min-width: 0;
    }

    table.responsive-table,
    table.responsive-table thead,
    table.responsive-table tbody,
    table.responsive-table th,
    table.responsive-table td,
    table.responsive-table tr {
        display: block;
        width: 100%;
    }

    table.responsive-table thead {
        display: none;
    }

    table.responsive-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--panel);
        padding: 8px;
        box-shadow: var(--shadow);
    }

    table.responsive-table td {
        border: 0;
        border-bottom: 1px solid #edf0f4;
        padding: 8px 4px;
    }

    table.responsive-table td:last-child {
        border-bottom: 0;
    }

    table.responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 800;
        color: var(--muted);
        margin-bottom: 2px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .ua,
    .user-agent {
        max-width: 100%;
        white-space: normal;
    }
}

/* Dashboard v2.4.1 */

.muted-pill {
    border-color: #c7ced8;
    background: #f1f3f6;
    color: #586273;
}

.pill.warn {
    border-color: #dfc06b;
    background: var(--warning-soft);
    color: var(--warning);
}

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

.app-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 16px;
}

.app-status-card {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.app-status-card.needs-attention {
    border-color: #dfc06b;
    background: #fffdf7;
}

.app-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.app-status-head h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.meta-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.meta-list > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid #edf0f4;
    padding-bottom: 7px;
}

.meta-list > div:last-child {
    border-bottom: 0;
}

.meta-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.meta-value {
    min-width: 0;
    word-break: break-word;
}

.script-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 12px 0;
}

.strong-label {
    font-weight: 800;
    width: 100%;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.dashboard-actions form {
    margin: 0;
}

.dashboard-actions .btn,
.dashboard-actions button {
    width: auto;
}

@media (max-width: 760px) {
    .section-heading-row,
    .app-status-head {
        display: block;
    }

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

    .status-stack {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .meta-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

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

    .dashboard-actions .btn,
    .dashboard-actions button,
    .dashboard-actions form {
        width: 100%;
    }
}

/* Demo Control Center v2.4.2 */

.demo-warning {
    border: 1px solid #dfc06b;
    background: var(--warning-soft);
    color: var(--warning);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.demo-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

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

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

.control-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

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

.control-panel h2 {
    margin-bottom: 6px;
}

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

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

.metric-card strong {
    display: block;
    font-size: 24px;
    margin: 4px 0;
}

.metric-label {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.setting-list,
.fake-list,
.event-feed,
.settings-form-fake {
    display: grid;
    gap: 10px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
}

.fake-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0f4;
    padding-bottom: 8px;
}

.fake-list > div:last-child {
    border-bottom: 0;
}

.button-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-form-fake label {
    display: grid;
    gap: 5px;
}

.event-feed > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 10px;
}

.event-feed p {
    margin: 0;
}

@media (max-width: 900px) {
    .control-grid,
    .control-grid.three {
        grid-template-columns: 1fr;
    }

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

    .control-panel-head {
        display: block;
    }
}

@media (max-width: 560px) {
    .demo-toolbar,
    .button-wall {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .fake-list > div {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Shared app compatibility layer */

body.app-shell {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
}

.app-shell .topbar nav,
.app-shell nav.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.app-shell .cards,
.app-shell .grid-2,
.app-shell .forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.app-shell .link-card {
    color: inherit;
    text-decoration: none;
}

.app-shell .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.app-shell .stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.app-shell .stat strong {
    display: block;
    font-size: 28px;
}

.app-shell .item {
    border-bottom: 1px solid #edf0f4;
    padding: 10px 0;
}

.app-shell .item:last-child {
    border-bottom: none;
}

.app-shell .stack-form {
    display: grid;
    gap: 8px;
}

.app-shell table:not(.responsive-table) {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}

.app-shell .flash {
    background: var(--warning-soft);
    border: 1px solid #e5c56d;
    color: #5c4300;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.app-shell .app-footer-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .app-shell .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-shell .page {
        padding: 16px 10px;
    }

    .app-shell .topbar nav,
    .app-shell nav.topnav {
        justify-content: flex-start;
        width: 100%;
    }

    .app-shell .topbar nav a,
    .app-shell nav.topnav a {
        flex: 1 1 auto;
    }
}

/* Professional Console Refresh v2.4.6 */

:root {
    --bg: #f3f5f8;
    --panel: #ffffff;
    --panel-soft: #f7f9fc;
    --text: #17202c;
    --muted: #5f6b7a;
    --border: #d6dce5;
    --border-strong: #aeb8c6;
    --primary: #174a7c;
    --primary-soft: #e5edf7;
    --success: #17633a;
    --success-soft: #e8f4ed;
    --danger: #9a2323;
    --danger-soft: #f9e8e8;
    --warning: #715000;
    --warning-soft: #fff2cc;
    --shadow: 0 3px 12px rgba(15, 23, 42, 0.055);
    --radius: 10px;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        linear-gradient(180deg, #eef2f7 0, #f3f5f8 220px, #f3f5f8 100%);
    color: var(--text);
}

h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 16px;
    font-weight: 700;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #ccd4df;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.045);
}

.brand {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.topnav a {
    border-radius: 8px;
    background: #ffffff;
    border-color: #c8d0dc;
    color: #263445;
    font-weight: 650;
}

.topnav a:hover {
    background: #eef3f8;
}

.page-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.page-header p {
    max-width: 820px;
}

.card,
.section-card,
.empty-state,
.app-card,
.script-card,
.app-status-card,
.control-panel,
.metric-card,
.stat {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card,
.section-card,
.control-panel {
    border-top: 3px solid #dce3ed;
}

.card > h2,
.section-card > h2,
.control-panel > h2 {
    color: #142133;
}

.btn,
.button,
button,
input[type="submit"] {
    border-radius: 8px;
    font-weight: 650;
    background: #ffffff;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: #10395f;
    color: #ffffff;
}

.btn-alert {
    background: #fff7df;
}

.btn-danger {
    background: #fff1f1;
}

.pill {
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.pill.ok {
    background: var(--success-soft);
    color: var(--success);
}

.pill.bad {
    background: var(--danger-soft);
    color: var(--danger);
}

.pill.warn {
    background: var(--warning-soft);
    color: var(--warning);
}

.muted-pill {
    background: #eef1f5;
    color: #566273;
}

th {
    background: #eef3f8;
    color: #253245;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
    font-size: 12px;
}

td {
    font-size: 14px;
}

pre {
    background: #0f172a;
    border-radius: 8px;
}

code {
    background: #eef2f7;
    border-color: #d7dee8;
}

.portal-hero h1 {
    font-size: 31px;
}

.app-card p,
.control-panel p,
.card p {
    color: #3f4c5c;
}

.dashboard-actions {
    border-top: 1px solid #edf1f5;
    padding-top: 10px;
}

.demo-warning {
    border-radius: 10px;
}

.control-panel-head {
    border-bottom: 1px solid #edf1f5;
    padding-bottom: 10px;
}

.metric-card strong {
    font-size: 22px;
}

.event-feed > div,
.toggle-row,
.fake-list > div {
    border-color: #dce3ed;
}

@media (max-width: 760px) {
    h1 {
        font-size: 24px;
    }

    .topnav a {
        font-size: 13px;
    }

    .page-header {
        padding-bottom: 12px;
    }
}

/* User Preference Classes v2.4.7 */

.pref-text-large {
    font-size: 18px;
}

.pref-text-large .small {
    font-size: 15px;
}

.pref-text-large .btn,
.pref-text-large .button,
.pref-text-large button,
.pref-text-large input,
.pref-text-large select,
.pref-text-large textarea {
    font-size: 16px;
}

.pref-view-compact .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.pref-view-compact .app-card {
    padding: 14px;
}

.pref-view-compact .app-card p {
    min-height: unset;
    font-size: 13px;
}

.pref-view-compact .app-icon {
    font-size: 22px;
}

.preference-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.preference-strip .btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
}

/* Dark Appearance Overrides v2.4.7 */

:root {
    --bg: #0b1120;
    --panel: #111827;
    --panel-soft: #182235;
    --text: #e6eaf0;
    --muted: #a1adbd;
    --border: #2f3b4e;
    --border-strong: #526176;
    --primary: #8ec5ff;
    --primary-soft: #17385c;
    --success: #8ee6ad;
    --success-soft: #122f1f;
    --danger: #ffaaa8;
    --danger-soft: #3b1717;
    --warning: #ffd166;
    --warning-soft: #3a2d0f;
    --shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
}

body {
    background:
        linear-gradient(180deg, #0f172a 0, #0b1120 260px, #0b1120 100%);
    color: var(--text);
}

.topbar,
.card,
.section-card,
.empty-state,
.app-card,
.script-card,
.app-status-card,
.control-panel,
.metric-card,
.stat {
    background: var(--panel);
    color: var(--text);
    border-color: var(--border);
}

.card,
.section-card,
.control-panel {
    border-top-color: #354258;
}

.card > h2,
.section-card > h2,
.control-panel > h2,
h1,
h2,
h3 {
    color: #f2f5f9;
}

.topnav a,
.btn,
.button,
button,
input[type="submit"] {
    background: var(--panel-soft);
    color: var(--text);
    border-color: var(--border-strong);
}

.topnav a:hover,
.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #223047;
}

.btn-primary {
    background: #255b91;
    border-color: #3f7eba;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2e6eae;
}

.btn-alert {
    background: #34290e;
    color: var(--warning);
}

.btn-danger {
    background: #351616;
    color: var(--danger);
}

input,
select,
textarea {
    background: #0b1220;
    color: var(--text);
    border-color: var(--border-strong);
}

th {
    background: #1b2638;
    color: #d8dee8;
}

td {
    color: var(--text);
}

pre,
code {
    background: #050a14;
    color: #e6eaf0;
    border-color: var(--border);
}

.pill {
    background: #1d2a3f;
    color: var(--text);
    border-color: var(--border-strong);
}

.muted,
.small,
.meta-label,
.app-card p,
.control-panel p,
.card p {
    color: var(--muted);
}

.fake-list > div,
.meta-list > div,
table.responsive-table td,
.dashboard-actions,
.control-panel-head {
    border-color: #263247;
}

.demo-warning,
.flash {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: #6d5823;
}

.app-status-card.needs-attention {
    background: #151c2b;
    border-color: #6d5823;
}
