/* PuckServer theme on Flat UI 2.3.0 (Bootstrap 3). Load after flat-ui.min.css.
   Flat means: solid fills, no borders, no shadows, no glows, 6px corners.
   Surfaces are told apart by fill alone. */

/* ── Palettes ─────────────────────────────────────────────────────────────────
   ground   page          surface  cards         raised  inputs, hovers
   sidebar  nav column    side-*   nav text      fill    solid accent behind white text
   link     accent as text on the ground          tile-* solid stat tiles          */
:root, [data-theme="asphalt"] {
  --ps-ground: #22313f; --ps-surface: #2c3e50; --ps-raised: #34495e; --ps-sidebar: #1c2833;
  --ps-text: #ecf0f1; --ps-text-soft: #d0d7dc; --ps-muted: #95a5a6; --ps-faint: #6c7a89;
  --ps-side-text: #bdc3c7; --ps-side-hover: #2c3e50;
  --ps-fill: #3498db; --ps-fill-hi: #5dade2; --ps-link: #5dade2;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #1abc9c; --ps-tile-2: #3498db; --ps-tile-3: #9b59b6;
}
[data-theme="slate"] {
  --ps-ground: #1e272e; --ps-surface: #2d3436; --ps-raised: #3b4245; --ps-sidebar: #182024;
  --ps-text: #f1f2f6; --ps-text-soft: #d6d9dc; --ps-muted: #a4b0be; --ps-faint: #747d8c;
  --ps-side-text: #b2bec3; --ps-side-hover: #2d3436;
  --ps-fill: #00b894; --ps-fill-hi: #00cec9; --ps-link: #55efc4;
  --ps-success: #00b894; --ps-warning: #fdcb6e; --ps-danger: #d63031; --ps-info: #0984e3;
  --ps-tile-1: #00b894; --ps-tile-2: #0984e3; --ps-tile-3: #6c5ce7;
}
[data-theme="espresso"] {
  --ps-ground: #1f1b18; --ps-surface: #2b2522; --ps-raised: #3a322d; --ps-sidebar: #171411;
  --ps-text: #f3ede8; --ps-text-soft: #ddd3cb; --ps-muted: #a89c92; --ps-faint: #7a6e64;
  --ps-side-text: #c2b6ab; --ps-side-hover: #2b2522;
  --ps-fill: #d35400; --ps-fill-hi: #e67e22; --ps-link: #f0a35e;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #c0392b; --ps-info: #2980b9;
  --ps-tile-1: #e67e22; --ps-tile-2: #c0392b; --ps-tile-3: #16a085;
}
[data-theme="forest"] {
  --ps-ground: #18211d; --ps-surface: #222e29; --ps-raised: #2d3b35; --ps-sidebar: #131a17;
  --ps-text: #edf3ef; --ps-text-soft: #d1ddd5; --ps-muted: #95a99d; --ps-faint: #66786d;
  --ps-side-text: #b4c4ba; --ps-side-hover: #222e29;
  --ps-fill: #27ae60; --ps-fill-hi: #2ecc71; --ps-link: #6fdc9c;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #27ae60; --ps-tile-2: #16a085; --ps-tile-3: #2980b9;
}
[data-theme="clouds"] {
  --ps-ground: #ecf0f1; --ps-surface: #ffffff; --ps-raised: #f4f6f7; --ps-sidebar: #2c3e50;
  --ps-text: #34495e; --ps-text-soft: #46596b; --ps-muted: #7f8c8d; --ps-faint: #95a5a6;
  --ps-side-text: #bdc3c7; --ps-side-hover: #34495e;
  --ps-fill: #1abc9c; --ps-fill-hi: #48c9b0; --ps-link: #16a085;
  --ps-success: #27ae60; --ps-warning: #e67e22; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #1abc9c; --ps-tile-2: #3498db; --ps-tile-3: #9b59b6;
}

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* ── Base ─────────────────────────────────────────────────────────────────── */
html, body { background: var(--ps-ground); color: var(--ps-text); }
body { font-size: 16px; min-height: 100vh; }
a { color: var(--ps-link); }
a:hover, a:focus { color: var(--ps-fill-hi); }
h1, h2, h3, h4, h5, h6 { color: var(--ps-text); }
hr { border-top: 2px solid var(--ps-raised); }
.text-muted, .help-block { color: var(--ps-muted); }
code, kbd { background: var(--ps-raised); color: var(--ps-text); }
:focus-visible { outline: 3px solid var(--ps-fill); outline-offset: 2px; }
.msi { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
       display: inline-block; vertical-align: middle; letter-spacing: normal; text-transform: none; white-space: nowrap;
       direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }
.btn .msi { font-size: 18px; margin: -3px 4px 0 -2px; }

/* ── Flat UI components on the palette ────────────────────────────────────── */
.panel, .well { background: var(--ps-surface); border: 0; border-radius: 6px; box-shadow: none; color: var(--ps-text); }
.panel-heading { background: var(--ps-raised) !important; border: 0 !important; color: var(--ps-text) !important; }
.panel-footer { background: var(--ps-surface); border: 0; }

.btn { border: 0; border-radius: 4px; box-shadow: none !important; font-weight: 700; }
.btn-primary, .btn-primary:focus { background: var(--ps-fill); color: #fff; }
.btn-primary:hover, .btn-primary:active, .btn-primary.active { background: var(--ps-fill-hi); color: #fff; }
.btn-default, .btn-default:focus, .btn-info, .btn-info:focus { background: var(--ps-raised); color: var(--ps-text); }
.btn-default:hover, .btn-default:active, .btn-info:hover, .btn-info:active { background: var(--ps-faint); color: #fff; }
.btn-danger, .btn-danger:focus { background: var(--ps-danger); color: #fff; }
.btn-danger:hover, .btn-danger:active { background: color-mix(in srgb, var(--ps-danger) 85%, #fff); color: #fff; }
.btn-inverse { background: rgba(0,0,0,.2); color: inherit; }
.btn-inverse:hover { background: rgba(0,0,0,.3); color: inherit; }

.form-control, .input-group-addon { background: var(--ps-raised); border: 2px solid var(--ps-raised); border-radius: 6px;
                                    color: var(--ps-text); box-shadow: none; }
.form-control:focus { border-color: var(--ps-fill); background: var(--ps-raised); box-shadow: none; }
.form-control::placeholder { color: var(--ps-faint); }
.form-control[disabled], .form-control[readonly] { background: var(--ps-surface); border-color: var(--ps-raised); color: var(--ps-muted); }
.has-error .form-control { border-color: var(--ps-danger); }
label, .control-label { color: var(--ps-text); font-weight: 700; font-size: 15px; }

.alert { border: 0; border-radius: 6px; color: var(--ps-text); }
.alert-success { background: color-mix(in srgb, var(--ps-success) 18%, var(--ps-surface)); }
.alert-info    { background: color-mix(in srgb, var(--ps-info) 18%, var(--ps-surface)); }
.alert-warning { background: color-mix(in srgb, var(--ps-warning) 20%, var(--ps-surface)); }
.alert-danger  { background: color-mix(in srgb, var(--ps-danger) 20%, var(--ps-surface)); }
.alert a { color: inherit; text-decoration: underline; font-weight: 700; }
.alert .close { color: var(--ps-text); }

.progress { background: var(--ps-raised); height: 12px; border-radius: 32px; margin: 0; box-shadow: none; }
.progress-bar { background: var(--ps-fill); box-shadow: none; }
.progress-bar-info { background: var(--ps-info); }
.progress-bar-hot { background: var(--ps-danger); }
.label { border-radius: 4px; font-weight: 700; }
.label-info { background: var(--ps-info); color: #fff; }

.table > thead > tr > th, .table > tbody > tr > td { border-color: var(--ps-raised); }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--ps-raised); }
.table-hover > tbody > tr:hover { background: var(--ps-raised); }

.dropdown-menu, .dropdown-menu-inverse { background: var(--ps-surface); border: 0; border-radius: 6px;
                                         box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 6px; margin-top: 8px; }
.dropdown-menu > li > a, .dropdown-menu-inverse > li > a { color: var(--ps-text); border-radius: 4px; padding: 8px 12px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--ps-raised); color: var(--ps-text); }
.dropdown-menu .divider { background: var(--ps-raised); margin: 6px 0; }

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.ps-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 16px; }
.ps-auth-card { width: 100%; max-width: 420px; }
.ps-auth-card .panel-body { padding: 32px; }
.ps-brand { text-align: center; margin-bottom: 24px; }
.ps-brand-name { font-weight: 900; font-size: 26px; letter-spacing: -0.5px; color: var(--ps-text); }
.ps-brand-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ps-muted); }
.ps-beta { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700;
           vertical-align: middle; letter-spacing: .5px; background: var(--ps-warning); color: #2c3e50; }
.ps-auth-foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ps-muted); }
.ps-otp { font-size: 24px; letter-spacing: 6px; text-align: center; font-family: Menlo, Consolas, monospace; }

/* ── Account page ─────────────────────────────────────────────────────────── */
.ps-page { max-width: 760px; }
.ps-page .panel-body { padding: 24px; }
.ps-section-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.ps-kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.ps-kv dt { color: var(--ps-muted); font-weight: 400; }
.ps-kv dd { margin: 0; word-break: break-all; }
.ps-status { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.ps-status-on  { background: var(--ps-success); color: #fff; }
.ps-status-off { background: var(--ps-raised); color: var(--ps-muted); }
.ps-qr { background: #fff; padding: 12px; display: inline-block; border-radius: 6px; }
.ps-secret { font-family: Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 2px; word-break: break-all; }
.ps-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; font-family: Menlo, Consolas, monospace; font-size: 16px;
            padding: 16px; background: var(--ps-raised); border-radius: 6px; margin: 12px 0; }
.ps-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── App shell ────────────────────────────────────────────────────────────── */
.ps-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--ps-fill); color: #fff; padding: 8px 12px; border-radius: 4px; }
.ps-impersonating { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px;
                    background: var(--ps-warning); color: #2c3e50; font-size: 14px; font-weight: 700; position: sticky; top: 0; z-index: 70; }

.ps-app { display: flex; min-height: 100vh; }
.ps-sidebar { width: 240px; flex: 0 0 240px; background: var(--ps-sidebar); display: flex; flex-direction: column;
              position: sticky; top: 0; height: 100vh; z-index: 60; }
.ps-sidebar-brand { padding: 24px 20px 20px; }
.ps-mark { width: 28px; height: 28px; border-radius: 7px; vertical-align: middle; margin: -4px 9px 0 0; flex: none; }
.ps-mark-lg { display: block; width: 56px; height: 56px; border-radius: 13px; margin: 0 auto 12px; }
.ps-public-head .ps-brand-name { display: inline-flex; align-items: center; }
.ps-public-head .ps-mark { margin-top: 0; }
.ps-sidebar-brand .ps-brand-name { display: flex; align-items: center; white-space: nowrap; }
.ps-sidebar-brand .ps-mark { width: 30px; height: 30px; border-radius: 8px; margin: 0 10px 0 0; }
.ps-sidebar-brand .ps-brand-tag { margin-top: 8px; }
.ps-sidebar-brand .ps-brand-name { display: block; font-size: 19px; color: #fff; text-decoration: none; }
.ps-sidebar-brand .ps-brand-tag { font-size: 10px; margin-top: 2px; color: var(--ps-side-text); opacity: .7; }
.ps-nav { flex: 1; overflow-y: auto; padding: 0 12px 12px; scrollbar-width: thin; scrollbar-color: var(--ps-side-hover) transparent; }
.ps-nav ul { list-style: none; margin: 0; padding: 0; }
.ps-nav li + li { margin-top: 2px; }
.ps-nav-label { padding: 18px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
                color: var(--ps-side-text); opacity: .55; }
.ps-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; font-size: 15px; color: var(--ps-side-text);
            border-radius: 6px; text-decoration: none; transition: background .12s, color .12s; }
.ps-nav a:hover, .ps-nav a:focus { color: #fff; background: var(--ps-side-hover); }
.ps-nav a.active { color: #fff; background: var(--ps-fill); font-weight: 700; }
.ps-nav a.ps-nav-upgrade { color: var(--ps-warning); }
.ps-nav a.ps-nav-upgrade.active { color: #2c3e50; background: var(--ps-warning); }
.ps-sidebar-foot { padding: 16px 12px 20px; }

.ps-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 28px; min-height: 68px; background: var(--ps-ground);
             position: sticky; top: 0; z-index: 50; }
.ps-title { font-size: 24px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-subtitle { font-size: 12px; }
.ps-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ps-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px;
               border: 0; background: transparent; color: var(--ps-muted); }
.ps-icon-btn:hover, .ps-icon-btn:focus { background: var(--ps-surface); color: var(--ps-text); }
.ps-nav-toggle { display: none; }
.ps-user { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ps-text); padding: 4px 8px 4px 4px; border-radius: 6px; font-weight: 700; }
.ps-user:hover, .ps-user:focus { background: var(--ps-surface); }
.ps-avatar { width: 32px; height: 32px; border-radius: 6px; background: var(--ps-fill); color: #fff;
             display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.ps-content { padding: 4px 28px 32px; flex: 1; outline: none; }

.ps-backdrop { display: none; }
@media (max-width: 991px) {
  .ps-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  body.ps-nav-open .ps-sidebar { transform: none; }
  body.ps-nav-open .ps-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .ps-nav-toggle { display: inline-flex; }
  .ps-topbar { padding: 10px 16px; }
  .ps-title { font-size: 20px; }
  .ps-content { padding: 4px 16px 24px; }
  .ps-user-name { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ps-sidebar, .ps-nav a { transition: none; } }

/* ── Shared content pieces ────────────────────────────────────────────────── */
.ps-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.ps-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-muted); margin: 0; }
.ps-link-sm { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.ps-link-sm .msi { font-size: 16px; }
.ps-empty { text-align: center; color: var(--ps-muted); padding: 32px 16px; }
.ps-empty .msi { font-size: 36px; display: block; margin: 0 auto 8px; opacity: .6; }
.ps-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.ps-dot-up { background: var(--ps-success); }
.ps-dot-down { background: var(--ps-danger); }
.ps-dot-unknown { background: var(--ps-warning); }
.ps-dot-loading { background: var(--ps-faint); animation: ps-pulse 1.2s ease-in-out infinite; }
@keyframes ps-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ps-dot-loading { animation: none; } }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.ps-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.ps-stat { border-radius: 6px; padding: 22px 24px; color: #fff; background: var(--ps-tile-1); }
.ps-stat:nth-child(2) { background: var(--ps-tile-2); }
.ps-stat:nth-child(3) { background: var(--ps-tile-3); }
.ps-stat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ps-stat-top .msi { font-size: 28px; opacity: .75; }
.ps-stat-label { font-size: 15px; font-weight: 700; margin: 0; opacity: .9; }
.ps-stat-value { font-size: 44px; font-weight: 900; line-height: 1.1; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.ps-stat-unit { font-size: 15px; font-weight: 400; margin-left: 8px; opacity: .85; }
.ps-stat .progress { background: rgba(0,0,0,.18); height: 8px; }
.ps-stat .progress-bar, .ps-stat .progress-bar-info { background: rgba(255,255,255,.85); opacity: 1 !important; }
.ps-stat .progress-bar-hot { background: #fff; }

.ps-dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ps-news { background: var(--ps-surface); border-radius: 6px; padding: 20px 22px; margin-bottom: 12px; display: flex; gap: 16px; }
.ps-news.is-pinned { box-shadow: inset 4px 0 0 var(--ps-fill); }
.ps-news-icon { font-size: 22px; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; color: #fff;
                display: inline-flex; align-items: center; justify-content: center; background: var(--ps-faint); }
.ps-news-body { flex: 1; min-width: 0; }
.ps-news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; color: var(--ps-muted); }
.ps-news-meta time { margin-left: auto; }
.ps-news h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.ps-news-text { font-size: 15px; color: var(--ps-text-soft); }
.ps-news-text p:last-child { margin-bottom: 0; }
.ps-news-text ul, .ps-news-text ol { padding-left: 1.25em; }
.ps-news-by { font-size: 13px; color: var(--ps-muted); margin: 10px 0 0; }
.ps-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
          text-transform: uppercase; color: #fff; }
.ps-tag-update       { background: var(--ps-info); }
.ps-tag-maintenance  { background: var(--ps-warning); color: #2c3e50; }
.ps-tag-outage       { background: var(--ps-danger); }
.ps-tag-feature      { background: var(--ps-success); }
.ps-tag-announcement { background: var(--ps-faint); }
.ps-icon-update { background: var(--ps-info); } .ps-icon-maintenance { background: var(--ps-warning); color: #2c3e50; }
.ps-icon-outage { background: var(--ps-danger); } .ps-icon-feature { background: var(--ps-success); } .ps-icon-announcement { background: var(--ps-faint); }

.ps-node { background: var(--ps-surface); border-radius: 6px; padding: 16px 18px; margin-bottom: 12px; }
.ps-node-head { display: flex; align-items: center; gap: 10px; }
.ps-node-name { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-node-state { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; color: #fff; }
.ps-node-state.up { background: var(--ps-success); } .ps-node-state.down { background: var(--ps-danger); }
.ps-node-state.unknown { background: var(--ps-warning); color: #2c3e50; }
.ps-metric { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; margin-top: 10px; color: var(--ps-muted); }
.ps-metric .progress { height: 8px; }
.ps-metric-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ps-text); }
.ps-metric-raw { grid-column: 2 / 4; text-align: right; font-size: 11px; font-weight: 400; margin-top: -6px; }

@media (max-width: 991px) {
  .ps-stats { grid-template-columns: 1fr; gap: 12px; }
  .ps-dash { grid-template-columns: 1fr; }
  .ps-stat-value { font-size: 34px; }
}
@media (max-width: 480px) {
  .ps-kv { grid-template-columns: 1fr; }
  .ps-kv dd { margin-bottom: 8px; }
  .ps-auth-card .panel-body { padding: 22px; }
}

/* ── Theme picker + comparison ────────────────────────────────────────────── */
.ps-swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; vertical-align: middle; margin-right: 10px; flex: 0 0 16px;
             background: linear-gradient(135deg, var(--ps-sidebar) 0 50%, var(--ps-fill) 50% 100%); }
.ps-theme-menu > li > a { display: flex; align-items: center; }
.ps-theme-menu > li > a[aria-checked="true"] { font-weight: 700; }
.ps-theme-menu > li > a[aria-checked="true"]::after { content: 'check'; font-family: 'Material Symbols Outlined'; margin-left: auto; padding-left: 16px; }
.ps-compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ps-sample { background: var(--ps-ground); color: var(--ps-text); border-radius: 8px; overflow: hidden; }
.ps-sample-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--ps-surface); }
.ps-sample-head h2 { font-size: 17px; font-weight: 700; margin: 0; display: flex; align-items: center; color: var(--ps-text); }
.ps-sample-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.ps-sample-nav { background: var(--ps-sidebar); padding: 10px 8px; font-size: 13px; }
.ps-sample-nav span { display: block; padding: 7px 10px; color: var(--ps-side-text); border-radius: 4px; margin-bottom: 2px; }
.ps-sample-nav span.on { color: #fff; background: var(--ps-fill); font-weight: 700; }
.ps-sample-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ps-sample-main .ps-stat { padding: 14px 16px; }
.ps-sample-main .ps-stat-value { font-size: 28px; margin: 4px 0 10px; }
.ps-sample-main .form-control { height: 38px; font-size: 14px; }
.ps-sample-main .alert { padding: 10px 12px; margin: 0; font-size: 13px; }
.ps-sample-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Appearance (account page) ────────────────────────────────────────────── */
.ps-theme-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.ps-theme-option { position: relative; display: block; margin: 0; padding: 10px; border-radius: 6px; cursor: pointer;
                   background: var(--ps-ground); color: var(--ps-text); font-weight: 400; box-shadow: inset 0 0 0 2px transparent; }
.ps-theme-option:hover { box-shadow: inset 0 0 0 2px var(--ps-raised); }
.ps-theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.ps-theme-option:has(input:checked) { box-shadow: inset 0 0 0 3px var(--ps-fill); }
.ps-theme-option:has(input:focus-visible) { outline: 3px solid var(--ps-fill); outline-offset: 2px; }
.ps-theme-preview { display: grid; grid-template-columns: 28% 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 56px; margin-bottom: 8px; }
.ps-theme-preview span:nth-child(1) { grid-row: 1 / 3; background: var(--ps-sidebar); border-radius: 4px; }
.ps-theme-preview span:nth-child(2) { background: var(--ps-tile-1); border-radius: 4px; }
.ps-theme-preview span:nth-child(3) { background: var(--ps-surface); border-radius: 4px; box-shadow: inset 24px 0 0 var(--ps-fill); }
.ps-theme-name { display: block; font-weight: 700; font-size: 15px; }
.ps-theme-option:has(input:checked) .ps-theme-name::after { content: 'check_circle'; font-family: 'Material Symbols Outlined'; color: var(--ps-fill); float: right; font-size: 18px; }
.ps-theme-note { display: block; font-size: 12px; color: var(--ps-muted); line-height: 1.35; margin-top: 2px; }

.ps-swatch { box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

/* ── Servers page ─────────────────────────────────────────────────────────── */
.ps-count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 10px; background: var(--ps-raised);
            color: var(--ps-text); font-size: 12px; text-align: center; letter-spacing: 0; }
.ps-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-muted); }
.ps-live.is-stale .ps-dot { background: var(--ps-warning); }
.ps-server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ps-server { background: var(--ps-surface); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: opacity .15s; }
.ps-server.is-busy { opacity: .6; pointer-events: none; }
.ps-server-band { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; color: #fff;
                  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--ps-faint); }
.ps-server.is-online   .ps-server-band { background: var(--ps-success); }
.ps-server.is-starting .ps-server-band { background: var(--ps-warning); color: #2c3e50; }
.ps-server.is-offline  .ps-server-band { background: var(--ps-raised); color: var(--ps-muted); }
.ps-server-shared { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 4px; background: rgba(0,0,0,.18); }
.ps-server-shared .msi { font-size: 14px; }
.ps-server-body { padding: 16px 16px 4px; flex: 1; min-width: 0; }
.ps-server-name { font-size: 19px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; overflow-wrap: anywhere; }
.ps-server-meta { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; color: var(--ps-text-soft); }
.ps-server-meta li { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-server-meta .msi { font-size: 17px; color: var(--ps-muted); }
.ps-server-pw { display: flex; align-items: center; gap: 4px; background: var(--ps-raised); border-radius: 6px; padding: 4px 4px 4px 12px; margin-bottom: 12px; }
.ps-pw-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ps-muted); margin-right: 6px; }
.ps-pw-value { flex: 1; min-width: 0; background: none; color: var(--ps-text); padding: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-icon-btn-sm { width: 32px; height: 32px; }
.ps-icon-btn-sm .msi { font-size: 18px; }
.ps-server-pw .ps-icon-btn:hover, .ps-server-pw .ps-icon-btn:focus { background: var(--ps-surface); }
.ps-server-actions { display: flex; gap: 6px; padding: 12px 16px 16px; flex-wrap: wrap; }
.ps-server-actions .btn { display: inline-flex; align-items: center; gap: 2px; }
.ps-server-actions .btn:first-child { margin-right: auto; }
.ps-btn-icon { padding-left: 10px; padding-right: 10px; }
.ps-btn-icon .msi { margin: 0; }
.ps-btn-del:hover, .ps-btn-del:focus { background: var(--ps-danger); color: #fff; }
.btn[disabled] { opacity: .4; }
.ps-server-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; background: var(--ps-surface); border-radius: 6px; color: var(--ps-muted); }
.ps-server-empty > .msi { font-size: 44px; display: block; margin: 0 auto 8px; opacity: .6; }
.ps-server-empty p { font-size: 17px; margin-bottom: 16px; }
@media (max-width: 480px) {
  .ps-server-grid { grid-template-columns: 1fr; gap: 12px; }
  .ps-btn-text { display: none; }
}

/* Modal */
.modal-content { background: var(--ps-surface); color: var(--ps-text); border: 0; border-radius: 6px; box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.modal-header, .modal-footer { border: 0; padding: 20px 24px; }
.modal-header { padding-bottom: 0; }
.modal-body { padding: 16px 24px 4px; }
.modal-title { font-weight: 700; color: var(--ps-text); }
.modal-header .close { color: var(--ps-text); opacity: .6; text-shadow: none; }
.modal-backdrop.in { opacity: .6; }

/* Toasts */
.ps-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.ps-toast { padding: 12px 16px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 15px; background: var(--ps-raised);
            box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .3s, transform .3s; }
.ps-toast-success { background: var(--ps-success); }
.ps-toast-danger  { background: var(--ps-danger); }
.ps-toast.is-out  { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .ps-toast, .ps-server { transition: none; } }

/* ── Tables + filters ─────────────────────────────────────────────────────── */
.ps-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ps-filter-search { position: relative; flex: 1 1 280px; }
.ps-filter-search .msi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ps-muted); pointer-events: none; }
.ps-filter-search .form-control { padding-left: 40px; }
.ps-filter-role { flex: 0 0 160px; width: 160px; }
.ps-result-count { font-size: 14px; margin: 0 0 12px; }
.ps-table-wrap { overflow-x: auto; background: var(--ps-surface); border-radius: 6px; }
.panel .ps-table-wrap { background: transparent; }
.ps-table { margin: 0; font-size: 15px; }
.ps-table > thead > tr > th { border: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-muted); padding: 12px 16px; white-space: nowrap; }
.ps-table > tbody > tr > td { border-top: 2px solid var(--ps-ground); padding: 12px 16px; vertical-align: middle; }
.panel .ps-table > tbody > tr > td { border-top-color: var(--ps-raised); }
.ps-table > tbody > tr:hover { background: color-mix(in srgb, var(--ps-raised) 50%, transparent); }
.ps-table-compact > thead > tr > th, .ps-table-compact > tbody > tr > td { padding: 8px 10px; }
.ps-table-compact > thead > tr > th:first-child, .ps-table-compact > tbody > tr > td:first-child { padding-left: 0; }
.ps-user-cell { display: flex; align-items: center; gap: 12px; color: var(--ps-text); text-decoration: none; min-width: 220px; }
.ps-user-cell:hover strong, .ps-user-cell:focus strong { color: var(--ps-link); text-decoration: underline; }
.ps-sub { display: block; font-size: 13px; color: var(--ps-muted); font-weight: 400; }
.ps-avatar-sm { width: 34px; height: 34px; font-size: 14px; flex: 0 0 34px; }
.ps-avatar-lg { width: 56px; height: 56px; font-size: 24px; flex: 0 0 56px; }
.ps-num { font-variant-numeric: tabular-nums; }
.ps-nowrap { white-space: nowrap; }
.ps-role, .ps-tier, .ps-yes, .ps-state { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ps-role-user      { background: var(--ps-raised); color: var(--ps-muted); }
.ps-role-support   { background: var(--ps-info); color: #fff; }
.ps-role-developer { background: var(--ps-tile-3); color: #fff; }
.ps-tier           { background: var(--ps-warning); color: #2c3e50; }
.ps-yes            { background: var(--ps-success); color: #fff; }
.ps-state-online   { background: var(--ps-success); color: #fff; }
.ps-state-starting { background: var(--ps-warning); color: #2c3e50; }
.ps-state-offline  { background: var(--ps-raised); color: var(--ps-muted); }
.ps-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ps-pager .btn { display: inline-flex; align-items: center; }
.ps-pager .btn .msi { margin: 0; }

/* ── User detail ──────────────────────────────────────────────────────────── */
.ps-user-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ps-user-layout .panel-body { padding: 20px 22px; }
.ps-profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ps-profile-name { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.ps-profile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 2px solid var(--ps-raised); }
.ps-list li:first-child { border-top: 0; padding-top: 4px; }
.ps-list-meta { margin-left: auto; font-size: 13px; }
.ps-user-side .btn-block { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ps-user-side .btn-block + .help-block { margin-bottom: 14px; }
.ps-user-side form + form { margin-top: 10px; }
.ps-side-form { margin-bottom: 16px; }
.ps-side-form label { font-size: 14px; }
.ps-inline { display: flex; gap: 6px; }
.ps-inline .form-control { flex: 1; min-width: 0; }
.ps-danger-zone { box-shadow: inset 0 4px 0 var(--ps-danger); }
@media (max-width: 991px) { .ps-user-layout { grid-template-columns: 1fr; } }

/* ── Server page ──────────────────────────────────────────────────────────── */
.ps-srv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center;
               background: var(--ps-surface); border-radius: 6px; padding: 20px 24px; margin-bottom: 20px; }
.ps-srv-state { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
                text-transform: uppercase; background: var(--ps-raised); color: var(--ps-muted); }
.ps-srv-state.is-online   { background: var(--ps-success); color: #fff; }
.ps-srv-state.is-starting { background: var(--ps-warning); color: #2c3e50; }
.ps-srv-name { font-size: 24px; font-weight: 700; margin: 8px 0 8px; overflow-wrap: anywhere; }
.ps-srv-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ps-text-soft); font-size: 14px; }
.ps-srv-facts li { display: inline-flex; align-items: center; gap: 6px; }
.ps-srv-facts .msi { font-size: 17px; color: var(--ps-muted); }
.ps-linkish { border: 0; background: none; padding: 0; color: var(--ps-link); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.ps-linkish .msi { font-size: 15px; color: inherit; }
.ps-srv-power { min-width: 300px; }
.ps-power-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-power-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.ps-expiry { margin-top: 14px; }
.ps-expiry-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ps-muted); margin-bottom: 6px; }
.ps-expiry-row .msi { font-size: 16px; margin-right: 4px; }
.ps-expiry-row strong { color: var(--ps-text); font-variant-numeric: tabular-nums; }
.ps-expiry .progress { height: 8px; }

.ps-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; border: 0; margin: 0 0 20px; padding: 0; scrollbar-width: none; }
.ps-tabs > li { float: none; }
.ps-tabs > li > a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; color: var(--ps-muted);
                    font-weight: 700; font-size: 15px; white-space: nowrap; background: transparent; border: 0; }
.ps-tabs > li > a:hover, .ps-tabs > li > a:focus { background: var(--ps-surface); color: var(--ps-text); }
.ps-tabs > li.active > a, .ps-tabs > li.active > a:hover, .ps-tabs > li.active > a:focus { background: var(--ps-fill); color: #fff; }
.ps-tabs .msi { font-size: 19px; }

.ps-overview { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ps-overview .panel-body { padding: 20px 22px; }
.ps-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ps-meter-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--ps-muted); margin-bottom: 8px; }
.ps-meter-top strong { color: var(--ps-text); font-variant-numeric: tabular-nums; }
.ps-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 8px 0 18px; }
.ps-team { border-radius: 6px; padding: 12px; text-align: center; color: #fff; }
.ps-team span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.ps-team strong { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-team-blue { background: #2980b9; } .ps-team-red { background: #c0392b; }
.ps-score-mid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 8px; }
.ps-score-mid strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.ps-score-mid > span:last-child { font-size: 13px; color: var(--ps-muted); }
.ps-phase { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--ps-raised); font-size: 12px; font-weight: 700; }
.ps-teamtag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--ps-raised); }
.ps-teamtag-blue { background: #2980b9; color: #fff; } .ps-teamtag-red { background: #c0392b; color: #fff; }
.ps-stack { display: flex; flex-direction: column; gap: 8px; }
.ps-stack .btn { display: flex; align-items: center; justify-content: flex-start; gap: 6px; text-align: left; }

.ps-console-panel { overflow: hidden; }
.ps-console-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.ps-console-bar .btn { margin-left: auto; display: inline-flex; align-items: center; }
.ps-console { background: #0d1117; color: #c9d1d9; font-family: Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; line-height: 1.55;
              padding: 14px 16px; height: 60vh; min-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; border-radius: 0; border: 0; }
.ps-console-sm { height: 220px; min-height: 0; border-radius: 6px; }
.ps-log-err { color: #ff7b72; } .ps-log-warn { color: #e3b341; } .ps-log-muted { color: #8b949e; font-style: italic; }
.ps-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
.ps-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ps-fill); }
.ps-check-row { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; }

.ps-subnav { display: flex; gap: 4px; padding: 10px 12px 0; overflow-x: auto; border-bottom: 2px solid var(--ps-raised); scrollbar-width: none; }
.ps-subnav button { border: 0; background: none; color: var(--ps-muted); font-weight: 700; font-size: 14px; padding: 10px 12px;
                    border-radius: 6px 6px 0 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.ps-subnav button:hover { color: var(--ps-text); }
.ps-subnav button.active { color: var(--ps-text); border-bottom-color: var(--ps-fill); }
.ps-subnav .msi { font-size: 18px; }
#cfg-body .ps-eyebrow { margin: 22px 0 12px; }
#cfg-body .ps-eyebrow:first-child { margin-top: 4px; }
.ps-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ps-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-span-2 { grid-column: span 2; }
.ps-switch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ps-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ps-raised); border-radius: 6px;
                 padding: 12px 14px; margin: 0; cursor: pointer; font-weight: 400; }
.ps-switch-row strong { display: block; font-size: 15px; }
.ps-switch-row .text-muted { display: block; font-size: 13px; }
.ps-switch { position: relative; display: inline-block; flex: 0 0 auto; margin: 0; cursor: pointer; }
.ps-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-switch span { display: block; width: 44px; height: 24px; border-radius: 12px; background: var(--ps-faint); transition: background .15s; position: relative; }
.ps-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ps-switch input:checked + span { background: var(--ps-fill); }
.ps-switch input:checked + span::after { transform: translateX(20px); }
.ps-switch input:focus-visible + span { outline: 3px solid var(--ps-fill); outline-offset: 2px; }
.ps-switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.ps-switch-sm span { width: 38px; height: 22px; } .ps-switch-sm span::after { width: 16px; height: 16px; }
.ps-switch-sm input:checked + span::after { transform: translateX(16px); }
.ps-mod-head, .ps-mod-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px 36px; gap: 10px; align-items: center; }
.ps-mod-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ps-muted); margin-bottom: 6px; }
.ps-mod-head span:nth-child(2), .ps-mod-head span:nth-child(3) { text-align: center; }
.ps-mod-row { margin-bottom: 10px; }
.ps-mod-row .ps-switch { justify-self: center; }
.ps-mod-name { display: block; font-size: 13px; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-list-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.ps-list-input { flex: 1; min-width: 0; }
.ps-steam { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; }
.ps-steam img { width: 20px; height: 20px; border-radius: 4px; }
.ps-list-row .ps-icon-btn { margin-top: 3px; }
.ps-savebar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--ps-raised); }

.ps-fm { overflow: hidden; }
.ps-fm-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ps-raised); }
.ps-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; flex: 1; }
.ps-crumbs button { border: 0; background: none; color: var(--ps-link); font-weight: 700; padding: 4px 6px; border-radius: 4px; display: inline-flex; align-items: center; }
.ps-crumbs button:hover { background: var(--ps-raised); }
.ps-crumbs > span { color: var(--ps-faint); }
.ps-crumbs .msi { font-size: 18px; }
.ps-fm-actions { display: flex; gap: 6px; }
.ps-fm-actions .btn { display: inline-flex; align-items: center; }
.ps-fm-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 480px; }
.ps-fm-list { border-right: 2px solid var(--ps-raised); overflow-y: auto; max-height: 65vh; padding: 6px; }
.ps-fm-note { padding: 12px; margin: 0; }
.ps-fm-row { display: flex; align-items: center; border-radius: 6px; }
.ps-fm-row:hover, .ps-fm-row.is-open { background: var(--ps-raised); }
.ps-fm-row.is-open { box-shadow: inset 3px 0 0 var(--ps-fill); }
.ps-fm-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ps-text);
              padding: 8px 10px; text-align: left; font-size: 14px; }
.ps-fm-open .msi { font-size: 20px; color: var(--ps-muted); }
.ps-fm-row [data-dir] .msi { color: var(--ps-link); }
.ps-fm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-fm-size { font-size: 12px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-fm-del { opacity: 0; } .ps-fm-row:hover .ps-fm-del, .ps-fm-del:focus { opacity: 1; }
.ps-fm-del:hover { background: var(--ps-danger) !important; color: #fff !important; }
.ps-fm-view { display: flex; flex-direction: column; min-width: 0; }
.ps-fm-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; text-align: center; color: var(--ps-muted); }
.ps-fm-placeholder > .msi { font-size: 44px; opacity: .6; }
.ps-fm-placeholder strong { color: var(--ps-text); }
#fm-editor-wrap { display: flex; flex-direction: column; flex: 1; }
#fm-editor-wrap[hidden] { display: none; }
.ps-fm-editbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid var(--ps-raised); }
.ps-fm-editbar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0; color: var(--ps-text-soft); }
.ps-fm-editbar .btn { display: inline-flex; align-items: center; }
#fm-editor { flex: 1; min-height: 440px; width: 100%; border: 0; resize: vertical; background: #0d1117; color: #c9d1d9; padding: 14px 16px;
             font-family: Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; line-height: 1.55; tab-size: 4; }
#fm-editor:focus { outline: 2px solid var(--ps-fill); outline-offset: -2px; }

.ps-collab-form .btn { display: inline-flex; align-items: center; white-space: nowrap; }
#collab-list li { gap: 12px; }

@media (max-width: 991px) {
  .ps-srv-head { grid-template-columns: 1fr; }
  .ps-srv-power { min-width: 0; }
  .ps-overview { grid-template-columns: 1fr; }
  .ps-fm-body { grid-template-columns: 1fr; }
  .ps-fm-list { border-right: 0; border-bottom: 2px solid var(--ps-raised); max-height: 40vh; }
  .ps-switch-grid, .ps-form-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ps-meters, .ps-form-grid, .ps-switch-grid, .ps-form-grid-3 { grid-template-columns: 1fr; }
  .ps-span-2 { grid-column: auto; }
  .ps-team strong { font-size: 30px; }
  .ps-fm-del { opacity: 1; }
}

/* ── Create server ────────────────────────────────────────────────────────── */
.ps-create { max-width: 860px; }
.ps-create .panel-body { padding: 22px 24px; }
.ps-create .ps-section-title { margin-bottom: 16px; }
.ps-create-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ps-plan-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; background: var(--ps-fill); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.ps-create .ps-switch-grid { margin-top: 4px; }
.ps-create #mods .ps-mod-row { grid-template-columns: minmax(0, 1fr) 64px 64px 36px; }
.ps-locked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ps-raised); border-radius: 6px; padding: 14px 16px; color: var(--ps-text-soft); }
.ps-locked .btn { margin-left: auto; }
.ps-create-submit { display: flex; gap: 10px; margin: 8px 0 32px; }
.ps-create-submit .btn { display: inline-flex; align-items: center; gap: 4px; }
.ps-launch { position: fixed; inset: 0; z-index: 1200; background: color-mix(in srgb, var(--ps-ground) 94%, transparent); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ps-launch[hidden] { display: none; }
.ps-launch-box { text-align: center; max-width: 420px; }
.ps-launch-box h2 { font-size: 24px; font-weight: 700; margin: 20px 0 8px; }
.ps-launch-box #launch-msg { font-size: 17px; color: var(--ps-text-soft); min-height: 1.5em; }
.ps-spinner { display: inline-block; width: 64px; height: 64px; border-radius: 50%; border: 6px solid var(--ps-raised); border-top-color: var(--ps-fill); animation: ps-spin 1s linear infinite; }
@keyframes ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ps-spinner { animation-duration: 3s; } }

/* ── Rich text editor (server names) ──────────────────────────────────────── */
.ps-rich-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.ps-rich-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border: 0; border-radius: 4px;
               background: var(--ps-raised); color: var(--ps-text); font-weight: 700; font-size: 14px; }
.ps-rich-btn:hover, .ps-rich-btn:focus { background: var(--ps-faint); color: #fff; }
.ps-rich-btn .msi { font-size: 18px; }
.ps-rich-btn[data-tag] { width: 34px; padding: 0; justify-content: center; font-size: 16px; }
.ps-rich-group { display: inline-flex; align-items: center; gap: 4px; background: var(--ps-raised); border-radius: 4px; padding: 0 0 0 6px; }
.ps-rich-group .ps-rich-btn { background: transparent; }
.ps-rich-group .ps-rich-btn:hover, .ps-rich-group .ps-rich-btn:focus { background: var(--ps-faint); }
.ps-rich-group input[type=color] { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.ps-rich-group input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.ps-rich-group input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.ps-rich-group input[type=number] { width: 52px; height: 28px; border: 0; border-radius: 4px; background: var(--ps-surface); color: var(--ps-text); font-weight: 700; padding: 0 6px; }
.ps-rich-sep { width: 2px; height: 22px; background: var(--ps-raised); margin: 0 2px; }
.ps-rich-swatches { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 4px; }
.ps-rich-swatch { width: 22px; height: 22px; border-radius: 4px; border: 2px solid rgba(255,255,255,.15); padding: 0; }
.ps-rich-swatch:hover, .ps-rich-swatch:focus { border-color: #fff; transform: scale(1.1); }
.ps-rich-preview { margin-top: 8px; padding: 12px 14px; border-radius: 6px; min-height: 48px; font-size: 20px; line-height: 1.4; color: #fff;
                   overflow-wrap: anywhere; white-space: pre-wrap;
                   background: repeating-linear-gradient(45deg, #151b23 0 14px, #11161d 14px 28px); }
.ps-rich-placeholder { color: #8b949e; font-size: 15px; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .ps-rich-swatch:hover { transform: none; } }

/* ── Support ──────────────────────────────────────────────────────────────── */
.ps-narrow { max-width: 880px; }
.ps-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ps-contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 6px; color: #fff; text-decoration: none; }
.ps-contact-card:hover, .ps-contact-card:focus { color: #fff; filter: brightness(1.08); text-decoration: none; }
.ps-contact-card > .msi { font-size: 30px; }
.ps-contact-card strong { display: block; font-size: 17px; }
.ps-contact-card span span { font-size: 14px; opacity: .9; }
.ps-contact-discord { background: #5865f2; }
.ps-contact-phone { background: var(--ps-tile-1); }
.ps-support { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.ps-filter-pills { display: inline-flex; gap: 4px; background: var(--ps-surface); border-radius: 6px; padding: 4px; margin-bottom: 12px; }
.ps-filter-pills button { border: 0; background: none; color: var(--ps-muted); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 4px; }
.ps-filter-pills button span { opacity: .7; margin-left: 2px; }
.ps-filter-pills button.active { background: var(--ps-fill); color: #fff; }
.ps-ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-ticket { display: flex; align-items: center; gap: 14px; background: var(--ps-surface); border-radius: 6px; padding: 14px 16px; color: var(--ps-text); text-decoration: none; }
.ps-ticket:hover, .ps-ticket:focus { background: var(--ps-raised); color: var(--ps-text); text-decoration: none; }
.ps-ticket-main { flex: 1; min-width: 0; }
.ps-ticket-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.ps-ticket-meta { text-align: right; font-size: 13px; color: var(--ps-muted); display: flex; flex-direction: column; white-space: nowrap; }
.ps-ticket > .msi { color: var(--ps-muted); }
.ps-faq { display: flex; flex-direction: column; gap: 8px; }
.ps-faq-item { background: var(--ps-surface); border-radius: 6px; }
.ps-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; }
.ps-faq-item summary::-webkit-details-marker { display: none; }
.ps-faq-item summary > span:nth-child(2) { flex: 1; }
.ps-faq-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--ps-raised); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ps-link); flex: 0 0 32px; }
.ps-faq-chev { color: var(--ps-muted); transition: transform .15s; }
.ps-faq-item[open] .ps-faq-chev { transform: rotate(180deg); }
.ps-faq-answer { padding: 0 16px 16px 60px; color: var(--ps-text-soft); font-size: 15px; }

/* Ticket conversation */
.ps-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ps-thread-panel { display: flex; flex-direction: column; overflow: hidden; }
.ps-thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 2px solid var(--ps-raised); }
.ps-thread-head h2 { font-size: 19px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.ps-thread { list-style: none; margin: 0; padding: 8px 20px; max-height: 62vh; overflow-y: auto; }
.ps-thread-empty { padding: 24px 0; text-align: center; }
.ps-msg { display: flex; gap: 12px; padding: 14px 0; border-top: 2px solid var(--ps-raised); }
.ps-msg:first-child { border-top: 0; }
.ps-msg.is-staff .ps-avatar { background: var(--ps-tile-3); color: #fff; }
.ps-msg.is-self .ps-avatar { background: var(--ps-fill); color: #fff; }
.ps-msg-body { flex: 1; min-width: 0; }
.ps-msg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; font-size: 14px; }
.ps-msg-meta time { margin-left: auto; font-size: 13px; color: var(--ps-muted); }
.ps-msg-text { font-size: 15px; color: var(--ps-text-soft); overflow-wrap: anywhere; }
.ps-reply { padding: 14px 20px 16px; border-top: 2px solid var(--ps-raised); }
.ps-reply textarea { resize: vertical; min-height: 84px; }
.ps-reply-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.ps-reply-bar .text-danger { margin-right: auto; }
.ps-reply-bar .btn, .ps-ticket-side .btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ps-thread-closed { padding: 16px 20px; border-top: 2px solid var(--ps-raised); color: var(--ps-muted); display: flex; align-items: center; gap: 8px; }
.ps-kv-stack { grid-template-columns: 1fr; gap: 2px; }
.ps-kv-stack dd { margin-bottom: 12px; }
.ps-transfer-route { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--ps-raised); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-weight: 700; }

/* ── API keys ─────────────────────────────────────────────────────────────── */
.ps-newkey { box-shadow: inset 0 4px 0 var(--ps-success); }
.ps-newkey .ps-section-title .msi { color: var(--ps-success); }
.ps-mono { font-family: Menlo, Consolas, monospace; }
.ps-code { background: #0d1117; color: #c9d1d9; border: 0; border-radius: 6px; padding: 14px 16px; font-size: 13px; line-height: 1.55; white-space: pre; overflow-x: auto; margin: 0; }
.ps-method { display: inline-block; min-width: 64px; text-align: center; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; font-family: Menlo, Consolas, monospace; }
.ps-method-get { background: var(--ps-info); } .ps-method-post { background: var(--ps-success); }
.ps-method-patch { background: var(--ps-warning); color: #2c3e50; } .ps-method-delete { background: var(--ps-danger); }

/* ── Billing ──────────────────────────────────────────────────────────────── */
.ps-billing-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--ps-surface); border-radius: 6px; padding: 16px 20px; margin-bottom: 28px;
                  box-shadow: inset 4px 0 0 var(--ps-success); }
.ps-billing-bar.is-cancelling { box-shadow: inset 4px 0 0 var(--ps-warning); }
.ps-billing-bar > .msi { font-size: 28px; color: var(--ps-success); }
.ps-billing-bar.is-cancelling > .msi { color: var(--ps-warning); }
.ps-billing-bar > div:nth-child(2) { flex: 1; min-width: 200px; }
.ps-billing-bar strong { display: block; font-size: 16px; }
.ps-billing-bar span { color: var(--ps-muted); font-size: 14px; }
.ps-billing-bar .btn { display: inline-flex; align-items: center; gap: 4px; }
.ps-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ps-plan { background: var(--ps-surface); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.ps-plan.is-current { box-shadow: 0 0 0 3px var(--ps-success); }
.ps-plan-head { padding: 20px 22px; color: #fff; background: var(--ps-tile-1); position: relative; }
.ps-plan-2 .ps-plan-head { background: var(--ps-tile-2); } .ps-plan-3 .ps-plan-head { background: var(--ps-tile-3); }
.ps-plan-head h3 { color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.ps-plan-badge { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.ps-plan-price { font-size: 34px; font-weight: 900; margin: 0; line-height: 1.1; }
.ps-plan-price span { font-size: 15px; font-weight: 400; opacity: .85; margin-left: 4px; }
.ps-plan-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ps-perks { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-perks li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ps-perks .msi { font-size: 19px; color: var(--ps-success); }
.ps-perks li.is-off { color: var(--ps-muted); }
.ps-perks li.is-off .msi { color: var(--ps-faint); }
.ps-plan-action { margin-top: auto; }
.ps-plan-action .btn { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ps-plan-note { font-size: 13px; margin: 8px 0 0; text-align: center; }
.ps-success-card { max-width: 520px; margin: 32px auto; }
.ps-success-icon { font-size: 56px !important; color: var(--ps-success); opacity: 1 !important; }

@media (max-width: 991px) {
  .ps-support, .ps-ticket-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ps-contact { grid-template-columns: 1fr; }
  .ps-ticket-meta { display: none; }
  .ps-faq-answer { padding-left: 16px; }
}

/* ── Staff: tickets, all servers, news, FAQs ──────────────────────────────── */
.ps-filter-pills a { display: inline-block; color: var(--ps-muted); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 4px; text-decoration: none; }
.ps-filter-pills a span { opacity: .7; margin-left: 2px; }
.ps-filter-pills a:hover { color: var(--ps-text); text-decoration: none; }
.ps-filter-pills a.active { background: var(--ps-fill); color: #fff; }
.ps-filter .ps-filter-pills { margin-bottom: 0; }
.ps-filter .ps-live { align-self: center; }
.ps-ticket-link strong { color: var(--ps-text); }
.ps-ticket-link:hover strong { color: var(--ps-link); text-decoration: underline; }
.ps-row-attn td:first-child { box-shadow: inset 4px 0 0 var(--ps-warning); }
.ps-row-actions .ps-icon-btn { vertical-align: middle; }
.ps-row-actions .ps-icon-btn:disabled { opacity: .35; }
tr.is-busy { opacity: .5; pointer-events: none; }
.ps-stats-sm .ps-stat { padding: 16px 20px; }
.ps-stats-sm .ps-stat-value { font-size: 32px; margin: 6px 0 0; }
.ps-stats-sm { margin-bottom: 20px; }

.ps-manage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.ps-manage > .panel { position: sticky; top: 84px; }
.ps-quill .ql-toolbar.ql-snow, .ps-quill.ql-container.ql-snow, .ps-manage .ql-toolbar.ql-snow { border: 0; background: var(--ps-raised); }
.ps-manage .ql-toolbar.ql-snow { border-radius: 6px 6px 0 0; }
.ps-manage .ql-container.ql-snow { border: 0; background: var(--ps-raised); border-radius: 0 0 6px 6px; color: var(--ps-text); font-family: inherit; font-size: 15px; min-height: 160px; border-top: 2px solid var(--ps-surface); }
.ps-manage .ql-editor.ql-blank::before { color: var(--ps-faint); font-style: normal; }
.ps-manage .ql-snow .ql-stroke { stroke: var(--ps-text-soft); }
.ps-manage .ql-snow .ql-fill { fill: var(--ps-text-soft); }
.ps-manage .ql-snow .ql-picker { color: var(--ps-text-soft); }
.ps-manage .ql-snow button:hover .ql-stroke, .ps-manage .ql-snow .ql-active .ql-stroke { stroke: var(--ps-link); }
.ps-manage .ql-snow .ql-tooltip { background: var(--ps-surface); color: var(--ps-text); border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ps-manage .ql-snow .ql-tooltip input[type=text] { background: var(--ps-raised); color: var(--ps-text); border: 0; }
.ps-news .ps-actions form { display: inline; }
.ps-icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-icon-pick button { width: 36px; height: 36px; border: 0; border-radius: 6px; background: var(--ps-raised); color: var(--ps-text-soft); display: inline-flex; align-items: center; justify-content: center; }
.ps-icon-pick button:hover { background: var(--ps-faint); color: #fff; }
.ps-icon-pick button[aria-checked="true"] { background: var(--ps-fill); color: #fff; }
.ps-faq-admin { padding: 14px 16px; }
.ps-faq-admin.is-hidden { opacity: .6; }
.ps-faq-row { display: flex; gap: 12px; margin-bottom: 10px; }
.ps-faq-copy { flex: 1; min-width: 0; }
.ps-faq-copy strong { margin-right: 6px; }
.ps-faq-copy p { margin: 6px 0 4px; font-size: 15px; color: var(--ps-text-soft); }
.ps-faq-admin .ps-actions { padding-left: 44px; }
.ps-faq-admin .ps-actions form { display: inline; }
@media (max-width: 991px) {
  .ps-manage { grid-template-columns: 1fr; }
  .ps-manage > .panel { position: static; }
}

/* News text: compact paragraphs; Quill saves blank lines as <p><br></p> */
.ps-news-text p { font-size: 15px; line-height: 1.6; margin: 0 0 8px; }
.ps-news-text p:has(> br:only-child) { margin: 0; height: 8px; overflow: hidden; }

/* ── Developer tools ──────────────────────────────────────────────────────── */
.ps-limits td, .ps-limits th[scope="row"] { vertical-align: middle; }
.ps-limits input.form-control { width: 84px; height: 38px; }
.ps-limits th[scope="row"] { min-width: 190px; }
.ps-limits thead th { white-space: nowrap; }
.ps-limits-divider th { background: var(--ps-ground); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-muted); padding-top: 18px !important; }
.ps-limits-divider .ps-link-sm { margin-left: 12px; text-transform: none; letter-spacing: 0; }
.ps-tier-card.is-inactive { opacity: .7; }
.ps-tier-card .ps-section-head { margin-bottom: 16px; }
.ps-tier-new { box-shadow: inset 0 0 0 2px var(--ps-raised); background: transparent; }
.ps-switch-inline { background: transparent; padding: 0; gap: 10px; }

/* ── Public stats page ────────────────────────────────────────────────────── */
.ps-public-head { display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: 0 auto; padding: 20px 16px; }
.ps-public-head .ps-brand-name { font-size: 20px; text-decoration: none; }
.ps-public-main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; }
.ps-public-main h1 { font-size: 34px; font-weight: 900; margin: 8px 0 4px; }
.ps-public-main > .ps-eyebrow { margin: 32px 0 12px; }
.ps-public-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-public-fig { display: flex; align-items: center; gap: 18px; }
.ps-public-fig > .msi { font-size: 40px; color: var(--ps-link); }
.ps-public-fig strong { display: block; font-size: 30px; font-weight: 900; line-height: 1.1; }
.ps-public-fig span span, .ps-public-fig div span { color: var(--ps-muted); }
.ps-public-foot { text-align: center; color: var(--ps-muted); font-size: 14px; padding: 24px 16px 40px; }
@media (max-width: 600px) { .ps-public-pair { grid-template-columns: 1fr; } }
.ps-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; border-radius: 6px; cursor: pointer; text-align: center;
           background: var(--ps-raised); box-shadow: inset 0 0 0 2px var(--ps-raised); color: var(--ps-text-soft); font-weight: 400; margin: 0; }
.ps-drop:hover, .ps-drop.is-over { box-shadow: inset 0 0 0 2px var(--ps-fill); }
.ps-drop > .msi { font-size: 36px; color: var(--ps-link); }
.ps-results { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ps-result { background: var(--ps-ground); border-radius: 6px; padding: 12px 14px; }
.ps-result-node { display: flex; align-items: center; gap: 8px; }
.ps-result ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.ps-result li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.ps-result li .msi { font-size: 16px; }
.ps-result li.is-ok .msi { color: var(--ps-success); } .ps-result li.is-bad .msi { color: var(--ps-danger); }
.ps-result p { margin: 6px 0 0; font-size: 14px; }
.ps-picklist { max-height: 340px; overflow-y: auto; background: var(--ps-ground); border-radius: 6px; padding: 6px; }
.ps-pick-node { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-muted); padding: 10px 8px 4px; }
.ps-pick { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 4px; margin: 0; font-weight: 400; cursor: pointer; }
.ps-pick:hover { background: var(--ps-surface); }
.ps-pick.is-off { opacity: .55; cursor: default; }
.ps-pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--ps-fill); }
.ps-pick > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-details > summary { cursor: pointer; list-style: none; }
.ps-details > summary::-webkit-details-marker { display: none; }
.ps-details > summary::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; float: right; color: var(--ps-muted); }
.ps-details[open] > summary::after { content: 'expand_less'; }
.ps-plain { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ps-text-soft); }
.ps-plain li { margin-bottom: 4px; }
.ps-crumbs a.ps-crumb { color: var(--ps-link); font-weight: 700; padding: 4px 6px; border-radius: 4px; display: inline-flex; align-items: center; }
.ps-crumbs a.ps-crumb:hover { background: var(--ps-raised); text-decoration: none; }

/* ── Node stats: small single-series bar charts ───────────────────────────── */
.ps-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.ps-chart { margin: 0; }
.ps-chart figcaption { margin-bottom: 14px; }
.ps-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 16px;
           border-bottom: 1px solid var(--ps-raised); }
.ps-bars-max { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--ps-muted); }
.ps-bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; cursor: default; }
.ps-bar-col::before { content: ''; position: absolute; inset: 0 -1px; }               /* hit target wider than the mark */
.ps-bar { display: block; width: 100%; max-width: 28px; margin: 0 auto; background: var(--ps-fill); border-radius: 4px 4px 0 0; }
.ps-bar-col:hover .ps-bar, .ps-bar-col:focus-visible .ps-bar { background: var(--ps-fill-hi); }
.ps-bar-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap;
              background: var(--ps-raised); color: var(--ps-text); border-radius: 6px; padding: 6px 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.ps-bar-tip span { color: var(--ps-muted); font-size: 12px; }
.ps-bar-col:hover .ps-bar-tip, .ps-bar-col:focus-visible .ps-bar-tip { display: block; }
.ps-bar-col:first-child .ps-bar-tip { left: 0; transform: none; }
.ps-bar-col:last-child .ps-bar-tip { left: auto; right: 0; transform: none; }
.ps-bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ps-muted); margin-top: 6px; }
.ps-chart-table { margin-top: 10px; font-size: 14px; }
.ps-chart-table summary { cursor: pointer; color: var(--ps-link); font-weight: 700; }
.ps-inline-bar { display: inline-block; vertical-align: middle; width: 110px; height: 8px; background: var(--ps-raised); border-radius: 4px; margin-right: 8px; overflow: hidden; }
.ps-inline-bar span { display: block; height: 100%; background: var(--ps-fill); border-radius: 4px; }
.ps-rank { margin: 0; padding-left: 22px; }
.ps-rank li { padding: 7px 0; border-top: 2px solid var(--ps-raised); }
.ps-rank li:first-child { border-top: 0; }
.ps-rank li span:last-child { float: right; color: var(--ps-muted); font-size: 14px; }
.ps-rank li span:last-child strong { color: var(--ps-text); }
@media (max-width: 991px) { .ps-two { grid-template-columns: 1fr; } .ps-stats-4 { grid-template-columns: 1fr 1fr; } }

/* BYOS: progress steps, check results, setup log */
.ps-h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.ps-small { font-size: 13px; }
.ps-spinner-sm { width: 16px; height: 16px; border-width: 3px; vertical-align: -3px; }
.ps-list-plain { padding-left: 20px; margin: 0 0 8px; }
.ps-list-plain li { margin: 4px 0; }
.ps-steps { display: flex; list-style: none; padding: 0; margin: 20px 0; counter-reset: none; gap: 4px; }
.ps-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ps-raised); color: var(--ps-muted); font-weight: 700; font-size: 14px; border-radius: 4px; }
.ps-steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ps-ground); font-size: 13px; flex: none; }
.ps-steps li.done { color: var(--ps-text); }
.ps-steps li.done > span { background: var(--ps-success); color: #fff; }
.ps-steps li.current { background: var(--ps-fill); color: #fff; }
.ps-steps li.current > span { background: rgba(0,0,0,.2); }
.ps-steps li.bad { background: var(--ps-danger); color: #fff; }
.ps-checks { list-style: none; padding: 0; margin: 16px 0 8px; }
.ps-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 2px solid var(--ps-raised); }
.ps-checks li:first-child { border-top: 0; }
.ps-checks .msi { font-size: 22px; flex: none; }
.ps-checks-ok .msi { color: var(--ps-success); }
.ps-checks-bad .msi { color: var(--ps-danger); }
.ps-checks-info .msi { color: var(--ps-muted); }
.ps-checks-compact li { padding: 4px 0; border: 0; }
.ps-checks-compact .msi { font-size: 18px; }
.ps-byos-approve { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; margin-top: 12px; }
.ps-byos-approve .form-group { flex: 1 1 200px; }
.ps-byos-approve .btn { margin-bottom: 15px; }
.ps-byos-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ps-byos-actions form { display: inline; margin: 0; }
.ps-log { max-height: 320px; overflow: auto; font-size: 12px; white-space: pre-wrap; margin-top: 8px; }
@media (max-width: 600px) { .ps-steps li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; text-align: center; } }
.ps-nav-badge { margin-left: auto; background: var(--ps-warning); color: #2c3e50; font-size: 12px; font-weight: 700; }
.ps-byos-cell-actions { display: inline-flex; gap: 6px; align-items: center; } .ps-byos-cell-actions form { margin: 0; }
.ps-menu-float { position: fixed !important; right: auto !important; bottom: auto !important; margin: 0 !important; z-index: 1060; }

/* Bulk server transfer (node_transfer.php) */
.ps-state-failed { background: var(--ps-danger); color: #fff; }
.ps-bt-progress { display: flex; height: 8px; margin-top: 14px; border-radius: 4px; overflow: hidden; background: var(--ps-raised); }
.ps-bt-bar-done { background: var(--ps-success); }
.ps-bt-bar-failed { background: var(--ps-danger); }

/* ── Server templates ─────────────────────────────────────────────────────── */
.ps-tpl-file { background: var(--ps-raised); border-radius: 6px; padding: 10px 14px; margin-top: 10px; }
.ps-tpl-file > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; list-style: none; }
.ps-tpl-file > summary::-webkit-details-marker { display: none; }
.ps-tpl-file[open] > summary { margin-bottom: 10px; }
.ps-tpl-file code { background: transparent; color: var(--ps-text); padding: 0; }
.ps-tpl-file textarea { min-height: 120px; resize: vertical; font-size: 13px; }
.ps-tpl-files { display: grid; gap: 8px; }
.ps-tpl-files .ps-check code { background: transparent; color: var(--ps-text); padding: 0; word-break: break-all; }
.ps-tpl-mods { display: grid; gap: 8px; margin-bottom: 14px; }
.ps-tpl-mod { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; background: var(--ps-raised); border-radius: 6px; padding: 10px 14px; }
.ps-tpl-mod code { background: transparent; color: var(--ps-text); padding: 0; word-break: break-all; font-weight: 700; }
.ps-tpl-mod .ps-check { margin: 0 0 0 auto; }
.ps-create-submit { flex-wrap: wrap; }
.ps-tpl-add { border-top: 2px solid var(--ps-raised); margin-top: 16px; padding-top: 4px; }
.ps-tpl-add .ps-eyebrow { margin: 14px 0 8px; }
.ps-tpl-add .ps-inline select { flex: 1; min-width: 0; }

/* ── Sign in with Discord ─────────────────────────────────────────────────── */
.ps-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ps-muted); font-size: 13px; }
.ps-or::before, .ps-or::after { content: ""; flex: 1; height: 2px; background: var(--ps-raised); }
.ps-discord-btn, .ps-discord-btn:visited { display: flex; align-items: center; justify-content: center; gap: 10px; background: #5865f2; color: #fff; }
.ps-discord-btn:hover, .ps-discord-btn:focus { background: #4752c4; color: #fff; }

/* Scheduled restart panel (server page, Overview) */
.ps-sched .ps-check { margin-bottom: 14px; }
.ps-sched-fields { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.ps-sched-fields .form-group { margin-bottom: 12px; }
.ps-sched-fields[aria-disabled="true"] { opacity: .55; }
.ps-sched .ps-sched-note { font-size: 12px; margin: 12px 0 0; }
#sched-next { margin: 0 0 12px; white-space: pre-line; font-size: 13px; }
.ps-sched-fields label { display: block; margin-bottom: 4px; }
.ps-sched-fields .form-control { display: block; width: 100%; }
#sched-error:empty { display: none; }

/* ── Email signature builder ─────────────────────────────────────────────── */
.ps-sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ps-sig-preview-box { background: #fff; border-radius: 6px; padding: 4px; }
.ps-sig-src { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 1px; }
@media (max-width: 760px) {
  .ps-sig-grid { grid-template-columns: 1fr; }
}

/* ── Website palettes (50 themes from visme.co/blog/website-color-schemes, generated 2026-11-14) ──────
   Built by gen_themes.py from each palette: dark themes take the darkest colour as their ground, light themes a
   tint of the lightest; the most vivid colour is the accent. Text, links, muted text, buttons and tiles are
   pushed to WCAG contrast targets (text 7-10:1, links/muted 4.5:1, white on fills/tiles 3:1). */
[data-theme="metallic-chic"] { /* 1. Metallic Chic: #3D52A1 #7191E6 #8697C3 #ADBADA #EEE8F6 */
  --ps-ground: #f7f5fb; --ps-surface: #fdfcfe; --ps-raised: #ecebf6; --ps-sidebar: #3d52a1; --ps-text: #324384; --ps-text-soft: #4e5d95; --ps-muted: #6572a3; --ps-faint: #b0b6d0; --ps-side-text: #fcfcfd; --ps-side-hover: #5063aa; --ps-fill: #6c8bdd; --ps-fill-hi: #5f7ac2; --ps-link: #566eaf;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #7191e6; --ps-tile-2: #8394bf; --ps-tile-3: #8a95ae;
}
[data-theme="deep-vintage-mood"] { /* 2. Deep Vintage Mood: #244856 #E74833 #874F42 #90AEAE #FBE9D1 */
  --ps-ground: #1e3b47; --ps-surface: #244856; --ps-raised: #395862; --ps-sidebar: #162d35; --ps-text: #ffffff; --ps-text-soft: #e0e5e7; --ps-muted: #a4b3b9; --ps-faint: #778e96; --ps-side-text: #ccd1d3; --ps-side-hover: #2e4249; --ps-fill: #e74833; --ps-fill-hi: #eb6958; --ps-link: #f2998d;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #e74833; --ps-tile-2: #874f42; --ps-tile-3: #7f9999;
}
[data-theme="cool-collected"] { /* 3. Cool and Collected: #003135 #034951 #964834 #10A4B0 #AEDDE5 */
  --ps-ground: #00282b; --ps-surface: #003135; --ps-raised: #114247; --ps-sidebar: #001e21; --ps-text: #dff1f5; --ps-text-soft: #bfd6da; --ps-muted: #7a9b9e; --ps-faint: #557a7e; --ps-side-text: #c7cece; --ps-side-hover: #1a3537; --ps-fill: #0f9da9; --ps-fill-hi: #0e8b95; --ps-link: #10a4b0;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #10a4b0; --ps-tile-2: #964834; --ps-tile-3: #034951;
}
[data-theme="earthy-serene"] { /* 4. Earthy and Serene: #3F362F #875D37 #93785B #AC8969 #A69180 */
  --ps-ground: #342c27; --ps-surface: #3f362f; --ps-raised: #493f37; --ps-sidebar: #27211d; --ps-text: #efece9; --ps-text-soft: #d7d2cf; --ps-muted: #a6a09c; --ps-faint: #827b76; --ps-side-text: #cfcecd; --ps-side-hover: #3d3834; --ps-fill: #875d37; --ps-fill-hi: #9d7a5b; --ps-link: #b69c85;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #875d37; --ps-tile-2: #ac8969; --ps-tile-3: #93785b;
}
[data-theme="texture-contrast"] { /* 5. Texture and Contrast: #7A97A2 #667A6E #FF834F #FAAE44 #F4EDDB (taken from the site shown) */
  --ps-ground: #faf7ef; --ps-surface: #fefdfb; --ps-raised: #f1efe7; --ps-sidebar: #4b5a51; --ps-text: #3d4942; --ps-text-soft: #58625c; --ps-muted: #6e7771; --ps-faint: #b5b9b5; --ps-side-text: #fbfbfb; --ps-side-hover: #5d6b63; --ps-fill: #db7144; --ps-fill-hi: #c1633c; --ps-link: #ad5936;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #c38835; --ps-tile-2: #e07346; --ps-tile-3: #7a97a2;
}
[data-theme="mechanical-floaty"] { /* 6. Mechanical and Floaty: #15161A #2C2E3A #050A44 #0A21BF #B4B4BE */
  --ps-ground: #040838; --ps-surface: #161b51; --ps-raised: #262a5c; --ps-sidebar: #03062a; --ps-text: #e1e1e5; --ps-text-soft: #c5c5d0; --ps-muted: #8688a2; --ps-faint: #636689; --ps-side-text: #c8c8d0; --ps-side-hover: #1c1f3f; --ps-fill: #0a21bf; --ps-fill-hi: #3649cb; --ps-link: #7683db;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #0a21bf; --ps-tile-2: #2c2e3a; --ps-tile-3: #15161a;
}
[data-theme="pixel-intensity"] { /* 7. Pixel Intensity: #010422 #1088FE #74B2FD #C9A46A #F4271A (taken from the site shown) */
  --ps-ground: #01031c; --ps-surface: #131631; --ps-raised: #1d2546; --ps-sidebar: #010215; --ps-text: #c7e0fe; --ps-text-soft: #aec4e2; --ps-muted: #7685a2; --ps-faint: #57637f; --ps-side-text: #c7c7cc; --ps-side-hover: #1a1c2c; --ps-fill: #1088fe; --ps-fill-hi: #0e78e0; --ps-link: #1088fe;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #1088fe; --ps-tile-2: #f4271a; --ps-tile-3: #ad8d5b;
}
[data-theme="gradient-pop"] { /* 8. Gradient Pop: #141414 #273DB4 #C50900 #F95BA5 #ED7745 */
  --ps-ground: #101010; --ps-surface: #242424; --ps-raised: #392d28; --ps-sidebar: #0c0c0c; --ps-text: #f8c9b5; --ps-text-soft: #dab2a0; --ps-muted: #a2867a; --ps-faint: #75635b; --ps-side-text: #cacaca; --ps-side-hover: #252525; --ps-fill: #df7041; --ps-fill-hi: #c46239; --ps-link: #ed7745;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #c50900; --ps-tile-2: #f459a2; --ps-tile-3: #273db4;
}
[data-theme="cosmic-artistry"] { /* 9. Cosmic Artistry: #212A33 #124E66 #748D92 #D3D9D5 */
  --ps-ground: #1b222a; --ps-surface: #212a33; --ps-raised: #333c43; --ps-sidebar: #141a20; --ps-text: #edf0ee; --ps-text-soft: #d1d4d4; --ps-muted: #91979a; --ps-faint: #6f757a; --ps-side-text: #cbcdce; --ps-side-hover: #2c3136; --ps-fill: #124e66; --ps-fill-hi: #3d6e82; --ps-link: #7397a5;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #124e66; --ps-tile-2: #748d92; --ps-tile-3: #124e66;
}
[data-theme="vibrant-calm"] { /* 10. Vibrant but Calm: #E43D11 #D5536D #FFA2B5 #EFB11E #ECE9E2 */
  --ps-ground: #f6f5f2; --ps-surface: #fdfdfc; --ps-raised: #f5eae4; --ps-sidebar: #a42c0c; --ps-text: #84230a; --ps-text-soft: #95422c; --ps-muted: #a76250; --ps-faint: #cfaaa0; --ps-side-text: #fefdfd; --ps-side-hover: #ad4125; --ps-fill: #b68717; --ps-fill-hi: #a07614; --ps-link: #8f6a12;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #ba8a17; --ps-tile-2: #d5536d; --ps-tile-3: #c77e8d;
}
[data-theme="lively-inviting"] { /* 11. Lively and Inviting: #E9707F #C2C9CF #C2B9B0 #7E685B #AFD276 */
  --ps-ground: #e7e9ec; --ps-surface: #f9fafa; --ps-raised: #e0e2e3; --ps-sidebar: #67554b; --ps-text: #51433a; --ps-text-soft: #685c55; --ps-muted: #7b716b; --ps-faint: #b9b4b1; --ps-side-text: #ffffff; --ps-side-hover: #76665d; --ps-fill: #db6977; --ps-fill-hi: #c15d69; --ps-link: #a34e59;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #e46e7c; --ps-tile-2: #829b57; --ps-tile-3: #979089;
}
[data-theme="striking-simple"] { /* 12. Striking and Simple: #0B0C10 #202932 #C5C6C8 #65FCF3 #44A39D */
  --ps-ground: #090a0d; --ps-surface: #1c1d21; --ps-raised: #233336; --ps-sidebar: #07070a; --ps-text: #c1fefa; --ps-text-soft: #aadedc; --ps-muted: #779998; --ps-faint: #5b7273; --ps-side-text: #c8c9c9; --ps-side-hover: #202022; --ps-fill: #419c97; --ps-fill-hi: #398a85; --ps-link: #44a39d;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #44a39d; --ps-tile-2: #202932; --ps-tile-3: #929394;
}
[data-theme="red-lively"] { /* 13. Red and Lively: #5D001D #E3E2DE #E3AFBC #9B1750 #EE4C7E */
  --ps-ground: #4c0018; --ps-surface: #5d001d; --ps-raised: #6a1730; --ps-sidebar: #3a0012; --ps-text: #f4f3f2; --ps-text-soft: #dfd1d4; --ps-muted: #b18894; --ps-faint: #965c6e; --ps-side-text: #d4c7cb; --ps-side-hover: #4d1a2a; --ps-fill: #ee4c7e; --ps-fill-hi: #d1436f; --ps-link: #f0618d;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #ee4c7e; --ps-tile-2: #9b1750; --ps-tile-3: #b18893;
}
[data-theme="artsy-creative"] { /* 14. Artsy and Creative: #D79922 #EFE2B8 #F13C1D #4056A1 #C5CBE3 */
  --ps-ground: #f8f2df; --ps-surface: #fdfcf7; --ps-raised: #ede9db; --ps-sidebar: #3f549e; --ps-text: #32437e; --ps-text-soft: #4e5d8f; --ps-muted: #67739d; --ps-faint: #b0b6c9; --ps-side-text: #fefeff; --ps-side-hover: #5265a8; --ps-fill: #f13c1d; --ps-fill-hi: #f45f46; --ps-link: #cf3419;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #f13c1d; --ps-tile-2: #c28a1f; --ps-tile-3: #8e92a3;
}
[data-theme="elegant-approachable"] { /* 15. Elegant Yet Approachable: #EEC6BA #EDE2DC #BBB2B5 #113D6A #AD3A61 */
  --ps-ground: #0e3257; --ps-surface: #113d6a; --ps-raised: #274e75; --ps-sidebar: #0b2642; --ps-text: #f8f3f1; --ps-text-soft: #d7dade; --ps-muted: #98a8b9; --ps-faint: #69829d; --ps-side-text: #c9cfd5; --ps-side-hover: #233c55; --ps-fill: #ad3a61; --ps-fill-hi: #bc5d7d; --ps-link: #d396ab;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #ad3a61; --ps-tile-2: #ab8f86; --ps-tile-3: #999294;
}
[data-theme="sleek-futuristic"] { /* 16. Sleek and Futuristic: #2C3532 #126364 #DAAF8D #FFCB9C #D3E8E3 */
  --ps-ground: #242b29; --ps-surface: #2c3532; --ps-raised: #3d4744; --ps-sidebar: #1b211f; --ps-text: #edf6f4; --ps-text-soft: #d2dbd9; --ps-muted: #969f9d; --ps-faint: #757e7c; --ps-side-text: #cdcece; --ps-side-hover: #323735; --ps-fill: #126364; --ps-fill-hi: #3d7f80; --ps-link: #73a3a4;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #ad8a6a; --ps-tile-2: #126364; --ps-tile-3: #ae8c71;
}
[data-theme="innovative-audacious"] { /* 17. Innovative and Audacious: #272727 #747474 #FF652F #FFE401 #13A76B */
  --ps-ground: #202020; --ps-surface: #272727; --ps-raised: #3d3a23; --ps-sidebar: #181818; --ps-text: #fff499; --ps-text-soft: #e1d789; --ps-muted: #9e9866; --ps-faint: #797552; --ps-side-text: #cccccc; --ps-side-hover: #2f2f2f; --ps-fill: #f05f2c; --ps-fill-hi: #d35427; --ps-link: #ff652f;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #fa632e; --ps-tile-2: #13a76b; --ps-tile-3: #747474;
}
[data-theme="texturized-dynamic"] { /* 18. Texturized and Dynamic: #2F4455 #2E151B #DA7B93 #376F70 #1B3333 */
  --ps-ground: #261116; --ps-surface: #2e151b; --ps-raised: #3f1f27; --ps-sidebar: #1d0d11; --ps-text: #f0cad4; --ps-text-soft: #d5b1ba; --ps-muted: #9c7c84; --ps-faint: #785a61; --ps-side-text: #cdcacb; --ps-side-hover: #332529; --ps-fill: #cd748a; --ps-fill-hi: #b4667a; --ps-link: #da7b93;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #376f70; --ps-tile-2: #2f4455; --ps-tile-3: #1b3333;
}
[data-theme="minimal-warm"] { /* 19. Minimal Yet Warm: #EAE8DC #D8C4A3 #8E8D89 #EA8072 #EB5850 */
  --ps-ground: #f6f5ef; --ps-surface: #fdfcfb; --ps-raised: #f5ebe6; --ps-sidebar: #963833; --ps-text: #7a2e2a; --ps-text-soft: #8c4b47; --ps-muted: #9d6662; --ps-faint: #cbaeab; --ps-side-text: #fefcfc; --ps-side-hover: #a14c48; --ps-fill: #d37367; --ps-fill-hi: #b9655a; --ps-link: #a45a50;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #dc786b; --ps-tile-2: #a09179; --ps-tile-3: #8e8d89;
}
[data-theme="vivid-sharp"] { /* 20. Vivid and Sharp: #DB3D87 #2A1B3A #44308F #8265A7 #A4B3B6 */
  --ps-ground: #221630; --ps-surface: #2a1b3a; --ps-raised: #362a46; --ps-sidebar: #1a1124; --ps-text: #dbe1e2; --ps-text-soft: #c2c5ca; --ps-muted: #8b8896; --ps-faint: #6d667a; --ps-side-text: #cdcbcf; --ps-side-hover: #31293a; --ps-fill: #db3d87; --ps-fill-hi: #e1609d; --ps-link: #e05797;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #db3d87; --ps-tile-2: #44308f; --ps-tile-3: #8265a7;
}
[data-theme="clean-energetic"] { /* 21. Clean and Energetic: #557FEB #86CDEB #59B9EB #C1C8E2 #8860D2 */
  --ps-ground: #e6e9f3; --ps-surface: #f9fafc; --ps-raised: #e1e1f1; --ps-sidebar: #65479b; --ps-text: #4f387a; --ps-text-soft: #67538c; --ps-muted: #7b6a9c; --ps-faint: #b8b0cb; --ps-side-text: #fdfdfe; --ps-side-hover: #7459a5; --ps-fill: #557feb; --ps-fill-hi: #4b70cf; --ps-link: #4263b7;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #557feb; --ps-tile-2: #4b9bc5; --ps-tile-3: #669cb3;
}
[data-theme="corporate"] { /* 22. Corporate and Traditional: #89BDBB #264E58 #102E30 #4E4A41 #6E6659 */
  --ps-ground: #0d2627; --ps-surface: #102e30; --ps-raised: #1c3c3e; --ps-sidebar: #0a1d1e; --ps-text: #d0e5e4; --ps-text-soft: #b5cbcb; --ps-muted: #7d9696; --ps-faint: #597374; --ps-side-text: #c9cdcd; --ps-side-hover: #223334; --ps-fill: #6e9796; --ps-fill-hi: #608584; --ps-link: #89bdbb;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #264e58; --ps-tile-2: #6e6659; --ps-tile-3: #4e4a41;
}
[data-theme="blue-refreshing"] { /* 23. Blue and Refreshing: #25274E #474864 #A9ABB7 #2D9CCA #29658A */
  --ps-ground: #1e2040; --ps-surface: #25274e; --ps-raised: #323459; --ps-sidebar: #171830; --ps-text: #dddde2; --ps-text-soft: #c3c4cd; --ps-muted: #8f90a4; --ps-faint: #6b6c86; --ps-side-text: #ccccd2; --ps-side-hover: #2e2f45; --ps-fill: #2c99c6; --ps-fill-hi: #2787ae; --ps-link: #2d9cca;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #2d9cca; --ps-tile-2: #29658a; --ps-tile-3: #474864;
}
[data-theme="clean-modern"] { /* 24. Clean and Modern: #17242A #2D7977 #3AAFA7 #DEF2F1 #FFFFFF */
  --ps-ground: #131e22; --ps-surface: #17242a; --ps-raised: #2e3a3f; --ps-sidebar: #0e161a; --ps-text: #ffffff; --ps-text-soft: #dfe0e1; --ps-muted: #979c9f; --ps-faint: #6f777b; --ps-side-text: #cacccd; --ps-side-hover: #262e31; --ps-fill: #349e96; --ps-fill-hi: #2e8b84; --ps-link: #3aafa7;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #37a49d; --ps-tile-2: #2d7977; --ps-tile-3: #8a9695;
}
[data-theme="vibrant-elegant"] { /* 25. Vibrant and Elegant: #F6EAA2 #F86C6D #A7D1E9 #384685 #24315E */
  --ps-ground: #1e284d; --ps-surface: #24315e; --ps-raised: #394465; --ps-sidebar: #161e3a; --ps-text: #fbf7da; --ps-text-soft: #dddbc8; --ps-muted: #9a9ea2; --ps-faint: #767c8d; --ps-side-text: #ccced4; --ps-side-hover: #2e354e; --ps-fill: #e96666; --ps-fill-hi: #cd595a; --ps-link: #f87273;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #ee6869; --ps-tile-2: #384685; --ps-tile-3: #7896a8;
}
[data-theme="youthful-fun"] { /* 26. Youthful and Fun: #A64AC9 #FCCD03 #FEB491 #F6E6CD #14EAE0 */
  --ps-ground: #fbf4e8; --ps-surface: #fefcf9; --ps-raised: #f6eae7; --ps-sidebar: #7e3899; --ps-text: #672e7d; --ps-text-soft: #7c4b8e; --ps-muted: #90669e; --ps-faint: #c5aeca; --ps-side-text: #fdfcfd; --ps-side-hover: #8b4ca3; --ps-fill: #ab8b02; --ps-fill-hi: #977b02; --ps-link: #836b02;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #b09002; --ps-tile-2: #0ea49d; --ps-tile-3: #bc856b;
}
[data-theme="gorgeous-contrast"] { /* 27. Gorgeous Contrast: #628930 #85C332 #222629 #474A4F #6A6E71 */
  --ps-ground: #1c1f22; --ps-surface: #222629; --ps-raised: #2c362a; --ps-sidebar: #151819; --ps-text: #cee7ad; --ps-text-soft: #b6cc9b; --ps-muted: #829273; --ps-faint: #636f5b; --ps-side-text: #cccccc; --ps-side-hover: #2c2f30; --ps-fill: #6a9c28; --ps-fill-hi: #5e8923; --ps-link: #85c332;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #628930; --ps-tile-2: #474a4f; --ps-tile-3: #6a6e71;
}
[data-theme="effective-accent"] { /* 28. Effective Accent Colors: #FAED23 #46344E #5B5561 #9D8D8E #9C776F */
  --ps-ground: #392b40; --ps-surface: #46344e; --ps-raised: #58464a; --ps-sidebar: #2b2030; --ps-text: #fdf8a7; --ps-text-soft: #e3dc9b; --ps-muted: #b0a581; --ps-faint: #8c7e70; --ps-side-text: #d0ced2; --ps-side-hover: #413745; --ps-fill: #968e15; --ps-fill-hi: #847d12; --ps-link: #faed23;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #9c776f; --ps-tile-2: #9d8d8e; --ps-tile-3: #5b5561;
}
[data-theme="modernity-full-bloom"] { /* 29. Modernity in Full Bloom: #182627 #63CDB6 #54BC99 #3C9360 #F2F2F2 */
  --ps-ground: #141f20; --ps-surface: #182627; --ps-raised: #2e3a3b; --ps-sidebar: #0f1818; --ps-text: #fafafa; --ps-text-soft: #dadcdc; --ps-muted: #949a9b; --ps-faint: #6e7677; --ps-side-text: #cacccc; --ps-side-hover: #272f2f; --ps-fill: #479e81; --ps-fill-hi: #3e8b71; --ps-link: #54bc99;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #4da08e; --ps-tile-2: #48a284; --ps-tile-3: #3c9360;
}
[data-theme="close-nature"] { /* 30. Close to Nature: #697865 #31708F #5085A5 #8FC1E2 #F8F9FB */
  --ps-ground: #fcfcfd; --ps-surface: #fefeff; --ps-raised: #f0f4f7; --ps-sidebar: #295e78; --ps-text: #214c61; --ps-text-soft: #406577; --ps-muted: #5b7b8a; --ps-faint: #aabbc3; --ps-side-text: #fefefe; --ps-side-hover: #3f6e86; --ps-fill: #5085a5; --ps-fill-hi: #467591; --ps-link: #4a7a98;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #5085a5; --ps-tile-2: #7097b0; --ps-tile-3: #697865;
}
[data-theme="bright-pink-pastels"] { /* 31. Bright Pink and Pastels: #9FC3D1 #B29BC9 #F1EBF5 #F171A1 #E84296 */
  --ps-ground: #f9f6fb; --ps-surface: #fdfdfe; --ps-raised: #f8ebf4; --ps-sidebar: #992c63; --ps-text: #7d2451; --ps-text-soft: #8f4269; --ps-muted: #a16081; --ps-faint: #cdaabc; --ps-side-text: #fdfafc; --ps-side-hover: #a34173; --ps-fill: #de6894; --ps-fill-hi: #c35b82; --ps-link: #ae5174;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #e36a97; --ps-tile-2: #7c98a3; --ps-tile-3: #a08bb5;
}
[data-theme="unique-combination"] { /* 32. Unique Combination: #5A243B #79244D #895061 #0677A3 #2F4157 */
  --ps-ground: #4a1e30; --ps-surface: #5a243b; --ps-raised: #522c45; --ps-sidebar: #381625; --ps-text: #dfeef3; --ps-text-soft: #ccd1d9; --ps-muted: #a99ca9; --ps-faint: #8d7181; --ps-side-text: #d3cccf; --ps-side-hover: #4c2e3a; --ps-fill: #0677a3; --ps-fill-hi: #338fb4; --ps-link: #61a9c5;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #79244d; --ps-tile-2: #895061; --ps-tile-3: #2f4157;
}
[data-theme="striking-citrus"] { /* 33. Striking Citrus Colors: #1F2607 #1F651F #52910E #A4A61E #D7CD13 */
  --ps-ground: #191f06; --ps-surface: #1f2607; --ps-raised: #313708; --ps-sidebar: #131804; --ps-text: #efeba1; --ps-text-soft: #d2cf8b; --ps-muted: #91925b; --ps-faint: #6e7141; --ps-side-text: #cbccc8; --ps-side-hover: #2b2f1d; --ps-fill: #96900d; --ps-fill-hi: #847e0c; --ps-link: #d7cd13;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #97991c; --ps-tile-2: #52910e; --ps-tile-3: #1f651f;
}
[data-theme="vivid-blues-orange"] { /* 34. Vivid Blues and Orange: #0EE7DC #0074E3 #1C9CE7 #6BDAEE #F89E02 */
  --ps-ground: #abf7f3; --ps-surface: #eafdfc; --ps-raised: #a0eff2; --ps-sidebar: #0056a8; --ps-text: #004384; --ps-text-soft: #215d94; --ps-muted: #4177a5; --ps-faint: #91b6ce; --ps-side-text: #f9fbfd; --ps-side-hover: #1a67b1; --ps-fill: #c67e02; --ps-fill-hi: #af6f01; --ps-link: #905c01;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #cb8202; --ps-tile-2: #1c9ce7; --ps-tile-3: #4d9dab;
}
[data-theme="rose-red-blueberry"] { /* 35. Rose Red and Blueberry: #4086F6 #5C1F1A #BE4638 #D5A49D #F3E0DC */
  --ps-ground: #4b1915; --ps-surface: #5c1f1a; --ps-raised: #6b322d; --ps-sidebar: #391310; --ps-text: #faf3f1; --ps-text-soft: #e4d5d3; --ps-muted: #b39390; --ps-faint: #986f6c; --ps-side-text: #d3cbca; --ps-side-hover: #4d2b28; --ps-fill: #4086f6; --ps-fill-hi: #3876d8; --ps-link: #619bf8;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #4086f6; --ps-tile-2: #be4638; --ps-tile-3: #b38a84;
}
[data-theme="audacious-unique"] { /* 36. Audacious and Unique: #08105B #0F18A5 #16DB94 #F4E4C0 #E5C481 */
  --ps-ground: #070d4b; --ps-surface: #08105b; --ps-raised: #202565; --ps-sidebar: #050a38; --ps-text: #fbf4e6; --ps-text-soft: #d9d4d2; --ps-muted: #8d8ea7; --ps-faint: #646790; --ps-side-text: #c8c9d3; --ps-side-hover: #1e224c; --ps-fill: #10a26e; --ps-fill-hi: #0e8f60; --ps-link: #16db94;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #11a670; --ps-tile-2: #0f18a5; --ps-tile-3: #a9915f;
}
[data-theme="cheerful-energetic"] { /* 37. Cheerful and Energetic: #FAE8A6 #F6966C #303C6C #B3E0E5 #D0FEFE */
  --ps-ground: #273159; --ps-surface: #303c6c; --ps-raised: #404f7b; --ps-sidebar: #1e2543; --ps-text: #ecffff; --ps-text-soft: #d2e3ea; --ps-muted: #9dacc1; --ps-faint: #7886a4; --ps-side-text: #cdcfd6; --ps-side-hover: #343b56; --ps-fill: #ca7b59; --ps-fill-hi: #b26c4e; --ps-link: #f6966c;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #cf7e5b; --ps-tile-2: #a0946a; --ps-tile-3: #7a989c;
}
[data-theme="snowy-warm"] { /* 38. Snowy Yet Warm: #B3374F #398CEC #E6E3D4 #C5DBF3 #8591A9 */
  --ps-ground: #f4f2ec; --ps-surface: #fcfcfa; --ps-raised: #f0e7e2; --ps-sidebar: #9e3046; --ps-text: #7d2737; --ps-text-soft: #8f4453; --ps-muted: #a1626e; --ps-faint: #ccabb0; --ps-side-text: #fffefe; --ps-side-hover: #a74558; --ps-fill: #398cec; --ps-fill-hi: #327bd0; --ps-link: #2e70bd;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #398cec; --ps-tile-2: #8695a5; --ps-tile-3: #8591a9;
}
[data-theme="rich-colorful"] { /* 39. Rich and Colorful: #F88886 #F3D24D #ECECEC #92CCF4 #5EA1D5 */
  --ps-ground: #f6f6f6; --ps-surface: #fdfdfd; --ps-raised: #edf1f4; --ps-sidebar: #355a77; --ps-text: #2b4a62; --ps-text-soft: #496378; --ps-muted: #607789; --ps-faint: #adb9c2; --ps-side-text: #fafbfb; --ps-side-hover: #496b85; --ps-fill: #a08b33; --ps-fill-hi: #8d7a2d; --ps-link: #7e6d28;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #aa9336; --ps-tile-2: #da7876; --ps-tile-3: #6c97b5;
}
[data-theme="modern-minimalist"] { /* 40. Modern and Minimalist: #19191B #47985E #CDBD81 #A36D84 #B19F9D */
  --ps-ground: #141416; --ps-surface: #19191b; --ps-raised: #2b2925; --ps-sidebar: #101011; --ps-text: #ebe5cd; --ps-text-soft: #cec8b4; --ps-muted: #8c897d; --ps-faint: #69665e; --ps-side-text: #cacacb; --ps-side-hover: #272729; --ps-fill: #47985e; --ps-fill-hi: #3e8653; --ps-link: #47985e;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #47985e; --ps-tile-2: #a36d84; --ps-tile-3: #9f8f8d;
}
[data-theme="intrepid-fearless"] { /* 41. Intrepid and Fearless: #324355 #644E5B #9C5B63 #CB6468 #98A9BD */
  --ps-ground: #293746; --ps-surface: #324355; --ps-raised: #3c4d5f; --ps-sidebar: #1f2a35; --ps-text: #fdfefe; --ps-text-soft: #e1e3e6; --ps-muted: #a7afb6; --ps-faint: #7f8a95; --ps-side-text: #ced0d2; --ps-side-hover: #353f49; --ps-fill: #cb6468; --ps-fill-hi: #b3585c; --ps-link: #de9c9f;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #cb6468; --ps-tile-2: #9c5b63; --ps-tile-3: #644e5b;
}
[data-theme="flat-design-colors"] { /* 42. Flat Design Colors: #008979 #FFCCBB #FFFFFF #D3E3FA #77A6F6 */
  --ps-ground: #ffffff; --ps-surface: #ffffff; --ps-raised: #f0f8f7; --ps-sidebar: #006357; --ps-text: #005249; --ps-text-soft: #246a62; --ps-muted: #45817a; --ps-faint: #9ebdba; --ps-side-text: #fbfcfc; --ps-side-hover: #1a7268; --ps-fill: #668fd4; --ps-fill-hi: #5a7eba; --ps-link: #5374ac;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #6b95dd; --ps-tile-2: #ad8b7f; --ps-tile-3: #8b96a5;
}
[data-theme="eclectic-peaceful"] { /* 43. Eclectic and Peaceful: #844E32 #484854 #87B2D4 #AAA09F #8E826A */
  --ps-ground: #e1ecf4; --ps-surface: #f8fafc; --ps-raised: #d8e2eb; --ps-sidebar: #484854; --ps-text: #454551; --ps-text-soft: #5e5e69; --ps-muted: #72737c; --ps-faint: #b4b5bb; --ps-side-text: #e3e3e5; --ps-side-hover: #5a5a65; --ps-fill: #844e32; --ps-fill-hi: #9a6e57; --ps-link: #844e32;
  --ps-success: #27ae60; --ps-warning: #e67e22; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #844e32; --ps-tile-2: #8e826a; --ps-tile-3: #99908f;
}
[data-theme="classy-traditional"] { /* 44. Classy and Traditional: #5F6366 #4C6E9B #9AA5C1 #9BCED2 #EDB5C0 */
  --ps-ground: #d7ebed; --ps-surface: #f5fafb; --ps-raised: #d0e3e5; --ps-sidebar: #56595c; --ps-text: #424547; --ps-text-soft: #5b5f60; --ps-muted: #6f7375; --ps-faint: #b1b5b6; --ps-side-text: #fefefe; --ps-side-hover: #666a6c; --ps-fill: #4c6e9b; --ps-fill-hi: #6c88ad; --ps-link: #496a95;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #4c6e9b; --ps-tile-2: #b48a92; --ps-tile-3: #8b94ae;
}
[data-theme="accent-colors-pop"] { /* 45. Accent Colors That Pop: #812BB4 #2D283E #564F6E #4C495C #D0D7E1 */
  --ps-ground: #252133; --ps-surface: #2d283e; --ps-raised: #3d3a4e; --ps-sidebar: #1c1926; --ps-text: #eceff3; --ps-text-soft: #d1d3da; --ps-muted: #9695a2; --ps-faint: #767483; --ps-side-text: #cdcccf; --ps-side-hover: #33303c; --ps-fill: #812bb4; --ps-fill-hi: #9851c2; --ps-link: #b27ed1;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #812bb4; --ps-tile-2: #564f6e; --ps-tile-3: #4c495c;
}
[data-theme="corporate-serious"] { /* 46. Corporate and Serious: #265078 #002142 #4B4B67 #1D4356 #2E5F5C */
  --ps-ground: #001b36; --ps-surface: #002142; --ps-raised: #052745; --ps-sidebar: #001429; --ps-text: #bfcecd; --ps-text-soft: #a5b6ba; --ps-muted: #758b97; --ps-faint: #496377; --ps-side-text: #c7cbd0; --ps-side-hover: #1a2c3e; --ps-fill: #265078; --ps-fill-hi: #4d7090; --ps-link: #6e8aa5;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #265078; --ps-tile-2: #1d4356; --ps-tile-3: #4b4b67;
}
[data-theme="glamorous-fashion"] { /* 47. Glamorous and Fashion-Forward: #7E6640 #33266E #111111 #562F34 #A5607C */
  --ps-ground: #0e0e0e; --ps-surface: #222222; --ps-raised: #2f282b; --ps-sidebar: #0b0b0b; --ps-text: #dfc7d1; --ps-text-soft: #c5b0b8; --ps-muted: #94868b; --ps-faint: #6a6164; --ps-side-text: #c9c9c9; --ps-side-hover: #232323; --ps-fill: #a5607c; --ps-fill-hi: #b57d94; --ps-link: #b37990;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #33266e; --ps-tile-2: #7e6640; --ps-tile-3: #562f34;
}
[data-theme="eye-catching-sleek"] { /* 48. Eye-Catching and Sleek: #50203A #CC2D6F #CCCCCC #149F9A #10292D */
  --ps-ground: #0d2225; --ps-surface: #10292d; --ps-raised: #23393d; --ps-sidebar: #0a191c; --ps-text: #ebebeb; --ps-text-soft: #cccfd0; --ps-muted: #889395; --ps-faint: #637375; --ps-side-text: #c9cccd; --ps-side-hover: #223033; --ps-fill: #cc2d6f; --ps-fill-hi: #d55389; --ps-link: #da6595;
  --ps-success: #2ecc71; --ps-warning: #f1c40f; --ps-danger: #e74c3c; --ps-info: #3498db;
  --ps-tile-1: #cc2d6f; --ps-tile-2: #149f9a; --ps-tile-3: #50203a;
}
[data-theme="loud-your-face"] { /* 49. Loud and In-Your-Face: #C44272 #F070A1 #14FFBD #10CA98 #41A076 */
  --ps-ground: #95ffe1; --ps-surface: #e5fff8; --ps-raised: #98f4db; --ps-sidebar: #993359; --ps-text: #762844; --ps-text-soft: #85465d; --ps-muted: #956476; --ps-faint: #baadb3; --ps-side-text: #fffefe; --ps-side-hover: #a3486a; --ps-fill: #0da27a; --ps-fill-hi: #0b8e6b; --ps-link: #0a795b;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #0da67d; --ps-tile-2: #e66c9b; --ps-tile-3: #41a076;
}
[data-theme="lively-soothing"] { /* 50. Lively Yet Soothing: #006672 #9FEDD7 #FFF9C7 #FEE07E #EDE9E6 */
  --ps-ground: #fffce6; --ps-surface: #fffef9; --ps-raised: #f0f3df; --ps-sidebar: #00626d; --ps-text: #005059; --ps-text-soft: #24686f; --ps-muted: #457f84; --ps-faint: #9ebcbc; --ps-side-text: #fefefe; --ps-side-hover: #1a727c; --ps-fill: #9d8b4e; --ps-fill-hi: #8b7a45; --ps-link: #7f703f;
  --ps-success: #27ae60; --ps-warning: #f39c12; --ps-danger: #e74c3c; --ps-info: #2980b9;
  --ps-tile-1: #a38f51; --ps-tile-2: #699c8e; --ps-tile-3: #93908f;
}

/* Theme pickers with the website palettes: the top-bar menu scrolls, Account → Appearance is grouped. */
.ps-theme-menu { max-height: min(70vh, 560px); overflow-y: auto; }
.ps-theme-menu > .dropdown-header { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ps-muted); padding: 8px 16px 4px; }
.ps-theme-group { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ps-muted); margin: 18px 0 0; }
