/* SCD Download Center — visual-only theme v1.0
   Override stylesheet loaded by Copyparty. No application scripts changed. */
html:root {
  color-scheme: dark;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --fg: #dbe5f1;
  --fg-max: #ffffff;
  --fg2-max: #ffffff;
  --fg-weak: #9dafc5;
  --bg-max: #080f1a;
  --bg-d3: #0a1220;
  --bg-d2: #0d1625;
  --bg-d1: #111b2b;
  --bg: #101a2a;
  --bgg: #101a2a;
  --bg-u1: #152033;
  --bg-u2: #192538;
  --bg-u3: #1c2a40;
  --bg-u4: #22344d;
  --bg-u5: #2c405d;
  --bg-u6: #374d69;
  --row-alt: #142034;
  --tree-bg: #131f31;
  --tab-alt: #a5c7ed;
  --scroll: #456784;
  --sel-fg: #fff;
  --sel-bg: #22588e;
  --a: #79b6f4;
  --a-b: #4a91d8;
  --a-hil: #bbdcff;
  --a-dark: #9dc9fd;
  --a-gray: #94a8c1;
  --btn-fg: #dbe9fa;
  --btn-bg: #1a2b42;
  --btn-h-fg: #ffffff;
  --btn-h-bg: #274568;
  --btn-1-fg: #ffffff;
  --btn-1-bg: #205c9d;
  --btn-1h-fg: #ffffff;
  --btn-1h-bg: #2870ba;
  --txt-bg: #101b2c;
  --chk-fg: #c4d7ed;
  --op-aa-fg: #ffffff;
  --op-aa-bg: #204878;
  --op-a-sh: transparent;
  --u2-btn-b1: #354c6a;
  --u2-sbtn-b1: #354c6a;
  --u2-txt-bg: #121e30;
  --u2-tab-bg: #17243a;
  --u2-tab-b1: #344a65;
  --u2-tab-1-fg: #fff;
  --u2-tab-1-bg: #24486f;
  --u2-tab-1-b1: #4374a4;
  --u2-tab-1-b2: #1b3858;
  --u2-tab-1-sh: transparent;
  --u2-b-fg: #ffffff;
  --u2-b1-bg: #275f99;
  --u2-b2-bg: #285c90;
  --sort-1: #89b8ed;
  --sort-2: #abc9ed;
  --sz-b: #abbad0;
  --sz-k: #a2c7f1;
  --sz-m: #a7c7e9;
  --sz-g: #bdd7f2;
  --sz-t: #c8daf0;
  --sz-p: #dce7f4;
  --srv-1: #dce7f4;
  --srv-2: #8ea7c5;
  --srv-3: #8eacd1;
  --srv-3b: #587da2;
  --g-sel-fg: #ffffff;
  --g-sel-bg: #28527f;
  --g-sel-b1: #5687bd;
  --g-sel-sh: transparent;
  --g-fsel-bg: #325b8a;
  --g-fsel-b1: #608ec1;
  --g-fsel-ts: transparent;
  --g-dfg: #9ab5d7;
  --g-fg: #b6d6f8;
  --g-bg: #1c2a40;
  --g-b1: #304564;
  --g-b2: #38506f;
  --g-g1: #1c2a40;
  --g-g2: #283e5b;
  --g-f-bg: #233852;
  --g-f-b1: #354e6b;
  --g-f-fg: #d3e8ff;
  --g-sh: rgba(0,0,0,.15);
  --f-play-bg: #234c78;
  --f-play-fg: #fff;
  --f-sel-sh: #4d8ac8;
  --f-gray: #9eb3cb;
}
html, body {
  background: #101a2a !important;
  color: #dbe5f1 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: .01em;
}
body { font-size: 14px; }
a, #blogout { text-shadow: none !important; }
a:hover { text-decoration: none !important; }
#srv_info {
  left: 18px !important;
  font-size: 12px !important;
  color: #93aac5 !important;
  font-weight: 500;
}
#srv_info span:first-child { color: #f0f6ff; font-weight: 700; letter-spacing: .02em; }
#acc_info { color: #9eb3cd !important; font-size: 12px !important; right: 16px !important; }
#acc_info a, #blogout { color: #93c4fb !important; }
#ops {
  background: #172338 !important;
  border: 1px solid #2a3c55 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 7px 10px !important;
}
#ops a {
  color: #b6cee9 !important;
  font-size: 1.35em !important;
  text-shadow: none !important;
  border-radius: 7px !important;
  transition: background .14s, color .14s;
}
#ops a:hover, #ops a.act {
  color: #f7fbff !important;
  background: #28486c !important;
  box-shadow: none !important;
}
#tree { background: #142035 !important; border-right: 1px solid #2b3b52 !important; }
#treeh { background: #18263a !important; border-bottom: 1px solid #2b3b52 !important; }
#tree ul a.sel, #tree a.sel {
  color: #e8f4ff !important;
  background: #254a73 !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}
#tree li { border-color: #2b405b !important; }
#path { color: #dceafa !important; font-weight: 600 !important; }
#path a { color: #a5c6ee !important; }
#path a:hover { color: #fff !important; background: #253c57 !important; }
#wrap { padding-top: 4px; }
#files {
  border: 1px solid #2a3b52;
  border-radius: 9px;
  overflow: hidden;
  border-spacing: 0 !important;
}
#files thead th {
  background: #1c2c44 !important;
  color: #b4c8e0 !important;
  padding: .75em .8em !important;
  border-bottom: 1px solid #344964 !important;
  font-weight: 600 !important;
}
#files td {
  border-bottom: 1px solid #1f3047;
  padding: .55em .75em !important;
}
#files tbody tr:hover td,
#files tbody tr:hover td+td { background: #203651 !important; box-shadow: none !important; }
#files tr:nth-child(2n) td { background: #142137; }
#files a { color: #9cc7f8 !important; }
#files a:hover { color: #fff !important; background: transparent !important; }
#files tbody tr.sel td, #files tbody tr.sel span {
  background: #26517f !important;
  color: #fff !important;
}
.opbox, .opview {
  color: #dce8f7 !important;
}
input, select, button, textarea, .btn {
  border-radius: 6px !important;
  font-family: inherit !important;
}
input[type="text"], input[type="password"], textarea, select {
  border: 1px solid #38526e !important;
  background: #111e31 !important;
  color: #e5edf8 !important;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(76,151,227,.45) !important;
  outline-offset: 1px;
}
#op_cfg, #op_up2k, #op_bup, #op_mkdir {
  border-color: #2e435e !important;
  box-shadow: none !important;
}
#tt, #toast { border-color: #3a5777; background: #1b2b42; text-shadow: none; }
#toast.ok { background: #15583f; }
#toast.err { background: #7c2532; }
#wfp a, #goh { color: #91b9e8 !important; font-size: .9em !important; font-weight: 500; }
#repl { color: #567494 !important; }
:focus-visible { outline: 2px solid #73b2f1; outline-offset: 2px; }
@media (max-width: 680px) {
  #ops { border-radius: 6px !important; padding: 5px !important; }
  #wrap { margin-left: 10px !important; margin-right: 10px !important; }
  #srv_info { font-size: 10px !important; }
}



/* SCD brand: replace default party accents with quiet corporate chrome. */
#srv_info::before {
    content: "";
    display: inline-block;
    width: 27px;
    height: 27px;
    margin: -3px 10px -8px 0;
    vertical-align: middle;
    background: url("/scd-assets/scd-logo.png") center / contain no-repeat;
}
#ops a { filter: grayscale(.88); }
#ops a.act, #ops a:hover { filter: grayscale(.65); }
#repl { opacity: .4; font-size: 12px; }
#acc_info { font-weight: 500; }
#tree, #wrap, #files, .opview { text-shadow: none !important; }


/* Authentication screen: restrained SCD controls. */
#ht_spl body {
  background: radial-gradient(ellipse at 50% 0%, #172c48 0%, #101a2a 60%, #0b1320 100%) !important;
  min-height: 100vh;
}
#ht_spl #wrap { max-width: 520px; margin: 36px auto !important; }
#ht_spl h1 { color: #eef5fe !important; font-weight: 600; letter-spacing: -.01em; }
#ht_spl #l { border-bottom: 1px solid #344963; padding-bottom: 12px; }
#ht_spl #lp {
  background: #12233a !important;
  color: #f3f8ff !important;
  border: 1px solid #496583 !important;
  border-radius: 6px !important;
  padding: .55em .65em;
}
#ht_spl #ls, #ht_spl .af, #ht_spl #af, #ht_spl #k {
  color: #eaf3ff !important;
  background: #214e7b !important;
  border: 1px solid #3b6895 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  border-radius: 6px !important;
  padding: .45em .8em !important;
}
#ht_spl #ls:hover, #ht_spl .af:hover, #ht_spl #af:hover, #ht_spl #k:hover {
  background: #2b649d !important;
}
#ht_spl #pb { opacity: .35; }


/* SCD Professional refinement v4: no orange, brown, purple or candy controls. */
html:root {
  --fm-off: #879cb7;
  --u2-b1-bg: #275a8a;
  --u2-b2-bg: #22507e;
  --u2-inf-bg: #285f90;
  --u2-inf-b1: #467da9;
  --u2-ok-bg: #206a58;
  --u2-ok-b1: #3e9880;
  --u2-err-bg: #81424b;
  --u2-err-b1: #b46670;
}
#treeh a, #treeh button,
#tree #entree, #tree #treeh,
#ops a, #widget a,
#op_up2k button, #op_up2k a, #op_up2k label,
#op_bup input[type="submit"],
#op_mkdir input[type="submit"],
#u2tab a {
  filter: grayscale(1) brightness(1.15) !important;
}
/* Keep primary action blue, not grey. */
#op_up2k input[type="file"],
#op_bup input[type="file"] { color: #dbe9fb; }
#op_up2k .btn, #op_bup .btn, #op_mkdir .btn,
#op_up2k input[type="submit"], #op_bup input[type="submit"],
#op_mkdir input[type="submit"] {
  border: 1px solid #3b6086 !important;
  color: #eaf2fc !important;
  background: #225482 !important;
  box-shadow: none !important;
}
#files {
  width: min(100%, 1040px);
  margin-top: 14px;
  table-layout: auto;
  border: 1px solid #304158 !important;
  border-radius: 8px !important;
}
#files thead th { font-size: .94em; color: #c8dbf2 !important; }
#files td:nth-child(2), #files th:nth-child(2) { min-width: 210px; }
#files td:nth-child(2) a { overflow-wrap: anywhere; }
#files tbody td:nth-child(3) { white-space: nowrap; }
#wrap { padding-right: 20px; }
#wrap::before {
  content: "FILE MANAGER  /  SCD DOWNLOAD CENTER";
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7fa3cb;
  letter-spacing: .12em;
  margin: 16px 0 4px;
}
#ops a.act { border-bottom: 2px solid #377ab5 !important; }
#tree ul a.sel, #tree a.sel {
  border-left: 3px solid #5c9edd !important;
  color: #eef7ff !important;
}
#u2tab a:focus-visible, #ops a:focus-visible { outline: 2px solid #8bc1ff !important; }
#ht_spl #wrap::before { content: "SCD SECURE ACCESS"; }
@media (max-width: 700px) {
 #files { width:100%; }
 #files td:nth-child(2), #files th:nth-child(2) {min-width:0}
 #wrap::before {letter-spacing:.06em}
}
