/* Coin24x7 Portal v1.2 — server-validated site-wide theme presets. */
:root { color-scheme: dark; }
body[data-theme="ocean"] {
  --t-bg:#041525;--t-deep:#061b2c;--t-sidebar:#0a3454;--t-panel1:#103853;--t-panel2:#082239;
  --t-header:rgba(5,31,51,.87);--t-border:rgba(109,209,238,.26);
  --t-text:#effbff;--t-muted:#b4d4e3;--t-accent:#62e9ed;--t-accent2:#69baff;
  --t-btn:#66eced;--t-btnend:#299ad4;--t-btntext:#052336;
  --t-input:#061c30;--t-pill:#174b69;--t-pill-text:#9cf2ff;--t-code:#071e34;
}
body[data-theme="emerald"] {
  --t-bg:#041c1a;--t-deep:#063027;--t-sidebar:#0b3b31;--t-panel1:#123c33;--t-panel2:#082921;
  --t-header:rgba(5,32,26,.88);--t-border:rgba(122,226,168,.25);
  --t-text:#f1fff8;--t-muted:#b6d8c9;--t-accent:#d7b86f;--t-accent2:#85eab1;
  --t-btn:#e5cb85;--t-btnend:#a78e49;--t-btntext:#0a2b20;
  --t-input:#09261e;--t-pill:#245446;--t-pill-text:#e3eab2;--t-code:#092a24;
}
body[data-theme="violet"] {
  --t-bg:#120923;--t-deep:#24113d;--t-sidebar:#301454;--t-panel1:#321b52;--t-panel2:#1c1035;
  --t-header:rgba(30,15,57,.88);--t-border:rgba(193,143,245,.29);
  --t-text:#fcf7ff;--t-muted:#d7bfe9;--t-accent:#f7a4e0;--t-accent2:#af8bff;
  --t-btn:#f1a8e4;--t-btnend:#a68aff;--t-btntext:#210c37;
  --t-input:#23113f;--t-pill:#593174;--t-pill-text:#ffd0fc;--t-code:#25123d;
}
body[data-theme="pearl"] {
  color-scheme: light;
  --t-bg:#f3f6fb;--t-deep:#e9f2ff;--t-sidebar:#14336b;--t-panel1:#ffffff;--t-panel2:#f4f8ff;
  --t-header:rgba(255,255,255,.92);--t-border:rgba(77,107,161,.24);
  --t-text:#132b52;--t-muted:#556984;--t-accent:#215ec4;--t-accent2:#5c87dd;
  --t-btn:#1c64d5;--t-btnend:#1942a9;--t-btntext:#ffffff;
  --t-input:#ffffff;--t-pill:#e3efff;--t-pill-text:#215bb3;--t-code:#f0f5fc;
}
body[data-theme]:not([data-theme="blockmint"]) {
  color:var(--t-text)!important;
  background:radial-gradient(ellipse at 85% 0%,color-mix(in srgb,var(--t-accent) 13%,transparent),transparent 43%),var(--t-bg)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .sidebar {
  background:linear-gradient(175deg,var(--t-sidebar),var(--t-deep))!important;
  border-right:1px solid var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .topbar {
  background:var(--t-header)!important; border-color:var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .panel,
body[data-theme]:not([data-theme="blockmint"]) .stat,
body[data-theme]:not([data-theme="blockmint"]) .package-card {
  background:linear-gradient(145deg,var(--t-panel1),var(--t-panel2))!important;
  border:1px solid var(--t-border)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.1)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .banner,
body[data-theme]:not([data-theme="blockmint"]) .intro-panel {
  background:linear-gradient(115deg,var(--t-sidebar),var(--t-deep))!important;
  border:1px solid var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .panel h2,
body[data-theme]:not([data-theme="blockmint"]) .panel h3,
body[data-theme]:not([data-theme="blockmint"]) .stat strong,
body[data-theme]:not([data-theme="blockmint"]) .package-card h2,
body[data-theme]:not([data-theme="blockmint"]) h1,
body[data-theme]:not([data-theme="blockmint"]) h2,
body[data-theme]:not([data-theme="blockmint"]) h3,
body[data-theme]:not([data-theme="blockmint"]) .account,
body[data-theme]:not([data-theme="blockmint"]) .list-row strong,
body[data-theme]:not([data-theme="blockmint"]) td {color:var(--t-text)!important;}
body[data-theme]:not([data-theme="blockmint"]) .panel p,
body[data-theme]:not([data-theme="blockmint"]) .stat>p,
body[data-theme]:not([data-theme="blockmint"]) .stat small,
body[data-theme]:not([data-theme="blockmint"]) .package-card>p,
body[data-theme]:not([data-theme="blockmint"]) .intro,
body[data-theme]:not([data-theme="blockmint"]) .muted-text,
body[data-theme]:not([data-theme="blockmint"]) .details dt,
body[data-theme]:not([data-theme="blockmint"]) .date,
body[data-theme]:not([data-theme="blockmint"]) .breadcrumbs,
body[data-theme]:not([data-theme="blockmint"]) .account small,
body[data-theme]:not([data-theme="blockmint"]) .panel small {color:var(--t-muted)!important;}
body[data-theme]:not([data-theme="blockmint"]) a,
body[data-theme]:not([data-theme="blockmint"]) .eyebrow,
body[data-theme]:not([data-theme="blockmint"]) .auth-story .story-copy h1 em {color:var(--t-accent)!important;}
body[data-theme]:not([data-theme="blockmint"]) .sidebar nav a {color:#d3e4ff!important;}
body[data-theme]:not([data-theme="blockmint"]) .sidebar nav a.selected,
body[data-theme]:not([data-theme="blockmint"]) .sidebar nav a:hover {
  background:color-mix(in srgb,var(--t-accent) 20%,transparent)!important;color:#fff!important;
}
body[data-theme]:not([data-theme="blockmint"]) .button.primary,
body[data-theme]:not([data-theme="blockmint"]) .button.light {
  background:linear-gradient(115deg,var(--t-btn),var(--t-btnend))!important;
  color:var(--t-btntext)!important;border:0!important;
}
body[data-theme]:not([data-theme="blockmint"]) .button.secondary,
body[data-theme]:not([data-theme="blockmint"]) .button:not(.primary):not(.danger):not(.light) {
  background:var(--t-deep)!important;color:var(--t-text)!important;border-color:var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) input,
body[data-theme]:not([data-theme="blockmint"]) textarea,
body[data-theme]:not([data-theme="blockmint"]) select {
  background:var(--t-input)!important;color:var(--t-text)!important;border-color:var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .field span {color:var(--t-text)!important;}
body[data-theme]:not([data-theme="blockmint"]) .auth-story {
  background:radial-gradient(circle at 35% 35%,color-mix(in srgb,var(--t-accent) 17%,transparent),transparent 57%),linear-gradient(140deg,var(--t-sidebar),var(--t-deep))!important;
}
body[data-theme]:not([data-theme="blockmint"]) .auth-content {
  background:radial-gradient(circle at 95% 0%,color-mix(in srgb,var(--t-accent) 10%,transparent),transparent 50%),var(--t-bg)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .auth-box {
  background:var(--t-panel1)!important;border:1px solid var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .brand-mark {
  background:linear-gradient(120deg,var(--t-btn),var(--t-btnend))!important;
  color:var(--t-btntext)!important;
}
body[data-theme]:not([data-theme="blockmint"]) th,
body[data-theme]:not([data-theme="blockmint"]) .tabs a {
  background:var(--t-panel1)!important;color:var(--t-text)!important;border-color:var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) td,
body[data-theme]:not([data-theme="blockmint"]) .list-row,
body[data-theme]:not([data-theme="blockmint"]) .request-terms {
  border-color:var(--t-border)!important;color:var(--t-text)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .request-terms,
body[data-theme]:not([data-theme="blockmint"]) .paid-commission {
  background:var(--t-deep)!important;
}
body[data-theme]:not([data-theme="blockmint"]) .tabs a.selected {
  background:color-mix(in srgb,var(--t-accent) 17%,var(--t-panel1))!important;color:var(--t-text)!important;border-color:var(--t-accent)!important;
}
body[data-theme]:not([data-theme="blockmint"]) code {
  background:var(--t-pill)!important;color:var(--t-pill-text)!important;border-radius:5px;
}
body[data-theme]:not([data-theme="blockmint"]) pre,
body[data-theme]:not([data-theme="blockmint"]) .panel pre {
  background:var(--t-code)!important;color:var(--t-text)!important;border:1px solid var(--t-border)!important;
}
body[data-theme]:not([data-theme="blockmint"]) pre code,
body[data-theme]:not([data-theme="blockmint"]) .panel pre code {
  background:transparent!important;color:var(--t-text)!important;
}
/* Light preset needs explicit contrast adjustments for the main surface. */
body[data-theme="pearl"] .banner h2,
body[data-theme="pearl"] .banner p,
body[data-theme="pearl"] .auth-story h1,
body[data-theme="pearl"] .auth-story .brand,
body[data-theme="pearl"] .sidebar .brand,
body[data-theme="pearl"] .sidebar .brand small {color:#f7fbff!important;}
body[data-theme="pearl"] .main-footer,
body[data-theme="pearl"] .topbar .breadcrumbs {color:#47617d!important;}
body[data-theme="pearl"] .button.secondary,
body[data-theme="pearl"] .button:not(.primary):not(.danger):not(.light) {background:#e9f0fa!important;color:#173d78!important;}
body[data-theme="pearl"] .sidebar nav a.selected {background:rgba(255,255,255,.16)!important;}
/* Theme selection UX and public downloadable ZIP listing. */
.theme-choices {display:flex;flex-wrap:wrap;gap:9px;margin:2px 0 20px;}
.theme-preview {display:flex;align-items:center;gap:7px;border:1px solid rgba(170,187,220,.35);border-radius:11px;padding:7px 11px;font-size:12px;font-weight:700;color:#d9e7ff;}
.theme-preview b {display:inline-block;width:17px;height:17px;border-radius:50%;border:2px solid rgba(255,255,255,.5);}
.preview-blockmint {background:#102d5b}.preview-blockmint b{background:#d6aa53}
.preview-ocean {background:#124064}.preview-ocean b{background:#5eebed}
.preview-emerald {background:#165340}.preview-emerald b{background:#d7b86f}
.preview-violet {background:#48276b}.preview-violet b{background:#f7a4e0}
.preview-pearl {background:#f3f6fb;color:#193c74}.preview-pearl b{background:#3170db}
.inline-form {display:inline-flex;vertical-align:middle;margin:0;}
.file-delete {color:#ff8e9f!important;text-decoration:underline;}
.download-file-grid {display:flex;flex-wrap:wrap;gap:12px;}
.download-file-grid .button {white-space:normal;overflow-wrap:anywhere;}
@media(max-width:760px){.theme-choices{gap:6px}.theme-preview{padding:6px 8px;font-size:11px}.download-file-grid .button{width:100%;}}
