@charset "utf-8";
/* Castlewater CAD viewer theme - black + #00A3DA, no yellow. Loaded on every copyparty page. */
:root, html, html.a, html.az, html.z, html.b, html.bz {
  color-scheme: dark;
  --cw: #00A3DA; --cw-d: #0083b0; --cw-l: #5cc8ee;
  --fg: #e8edf1; --fg-max: #fff; --fg2-max: #fff; --fg-weak: #9aa3aa;
  --bg-u6: #2e2e2e; --bg-u5: #262626; --bg-u4: #202020; --bg-u3: #1c1c1c; --bg-u2: #171717; --bg-u1: #121212;
  --bg: #050505; --bgg: #050505; --bg-d1: #0a0a0a; --bg-d2: #080808; --bg-d3: #000; --bg-max: #000;
  --tab-alt: var(--cw); --row-alt: #0d0d0d; --scroll: var(--cw);
  --a: var(--cw); --a-b: var(--cw-d); --a-hil: var(--cw-l); --a-dark: var(--cw-d); --a-gray: #555;
  --btn-fg: #e8edf1; --btn-bg: #1a1a1a; --btn-h-fg: #fff; --btn-h-bg: #0d3a4c;
  --btn-1-fg: #000; --btn-1-bg: var(--cw); --btn-1h-fg: #000; --btn-1h-bg: var(--cw-l);
  --chk-fg: var(--cw); --op-aa-fg: var(--cw);
  --sort-1: var(--cw); --sort-2: var(--cw-l);
  --sz-k: var(--cw-l); --sz-m: var(--cw); --sz-g: var(--cw); --srv-2: #888; --srv-3: var(--cw); --srv-3b: rgba(0,163,218,.6);
  --tree-bg: #0a0a0a;
  --g-play-bg: #0d3a4c; --g-play-b1: var(--cw); --g-play-b2: var(--cw-l); --g-play-sh: var(--cw-d);
  --g-sel-fg: #fff; --g-sel-bg: #0d3a4c; --g-sel-b1: var(--cw); --g-sel-sh: var(--cw-d);
  --g-fsel-bg: var(--cw-d); --g-fsel-b1: var(--cw); --g-fsel-ts: #003;
  --g-dfg: var(--cw); --g-fg: #e8edf1; --g-bg: #121212; --g-b1: #222; --g-b2: #2c2c2c; --g-f-bg: #1a1a1a; --g-f-b1: var(--cw); --g-f-fg: #fff;
  --f-play-bg: var(--cw); --f-play-fg: #000; --f-sel-sh: var(--cw); --fm-off: var(--cw);
  --u2-tab-1-fg: var(--cw);
}
html, body { background: #050505 !important; color: #e8edf1; font-family: Nunito, "Segoe UI", system-ui, -apple-system, sans-serif !important; }
a { color: var(--cw); }
::selection { background: var(--cw); color: #000; }

/* ---------- file browser page ---------- */
#ht_brw #ops, #ht_brw .opview, #ht_brw #acc_info, #ht_brw #widget, #ht_brw #wfp, #ht_brw #repl, #ht_brw #srv_info,
#ht_brw #entree, #ht_brw #tree, #ht_brw #ghead, #ht_brw #wtoggle, #ht_brw #rcm, #ht_brw #drops, #ht_brw .dropzone,
#ht_brw #lazy, #ht_brw #pro, #ht_brw #epi, #ht_brw #tt, #ht_brw #tth { display: none !important; }
#ht_brw body { padding: 0 !important; margin: 0 !important; }
#ht_brw #wrap { margin: 0 auto !important; padding: 0 clamp(10px, 3vw, 28px) 40px !important; max-width: 1500px; }

#cwbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top) + 10px) clamp(12px, 3vw, 28px) 10px; background: rgba(5,5,5,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 2px solid var(--cw); }
#cwbar .cw-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: 0 0 auto; }
#cwbar .cw-brand img { height: 42px; width: auto; display: block; }
#cwbar .cw-brand b { font-size: 20px; font-weight: 900; letter-spacing: -.2px; white-space: nowrap; }
#cwbar .cw-brand b span { color: var(--cw); }
#cwbar form { flex: 1 1 260px; display: flex; min-width: 0; position: relative; }
#cwbar input[type=search] { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid #2a2a2a; background: #141414;
  color: #fff; font: 700 16px Nunito, "Segoe UI", system-ui, sans-serif; padding: 0 18px 0 44px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A3DA' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center; background-size: 20px; }
#cwbar input[type=search]:focus { border-color: var(--cw); box-shadow: 0 0 0 3px rgba(0,163,218,.25); }
#cwbar .cw-out { flex: 0 0 auto; height: 44px; line-height: 44px; padding: 0 18px; border-radius: 999px; background: #1a1a1a; border: 1px solid #2a2a2a;
  color: #e8edf1; font-weight: 800; font-size: 15px; text-decoration: none; }
#cwbar .cw-out:hover { border-color: var(--cw); color: var(--cw); }
@media (max-width: 640px) {
  #cwbar { gap: 10px; }
  #cwbar .cw-brand img { height: 34px; }
  #cwbar .cw-brand b { font-size: 17px; }
  #cwbar .cw-brand { flex: 1 1 auto; }
  #cwbar form { order: 3; flex: 1 1 100%; }
  #cwbar .cw-out { height: 38px; line-height: 38px; padding: 0 14px; font-size: 14px; }
}

/* breadcrumbs */
#ht_brw #path { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin: 14px auto 12px !important; padding: 0 clamp(10px, 3vw, 28px) !important; max-width: 1500px; box-sizing: border-box;
  font: 800 clamp(16px, 2.2vw, 22px) Nunito, "Segoe UI", system-ui, sans-serif !important; background: none !important; border: 0 !important;
  box-shadow: none !important; position: static !important; }
#ht_brw #path a { color: #e8edf1 !important; background: #141414 !important; border: 1px solid #262626 !important; border-radius: 999px !important;
  padding: 6px 14px !important; margin: 0 !important; text-decoration: none !important; box-shadow: none !important; text-shadow: none !important; line-height: 1.3; }
#ht_brw #path a:last-child { background: var(--cw) !important; color: #000 !important; border-color: var(--cw) !important; }
#ht_brw #path a::before, #ht_brw #path a::after { display: none !important; }
#ht_brw #path i { display: inline-block !important; width: 16px; height: 16px; margin: 0 2px; border: 0 !important; background: none !important; transform: none !important; position: relative; }
#ht_brw #path i::before { content: "\203A"; position: absolute; inset: -6px 0 0 3px; color: #5a6268; font-style: normal; font-size: 22px; line-height: 1; }
#ht_brw #path i:first-of-type, #ht_brw #path a[href="/"], #ht_brw #path a[href="/"] + i { display: none !important; }

/* big thumbnail grid */
#ht_brw #gfiles { display: block !important; }
#ht_brw #ggrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 16vw, 220px), 1fr)); gap: clamp(10px, 1.6vw, 18px);
  padding: 0 !important; margin: 0 !important; }
@media (max-width: 480px) { #ht_brw #ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#ht_brw #ggrid > a { position: relative; width: auto !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column;
  background: #121212 !important; border: 1px solid #222 !important; border-radius: 18px !important; overflow: hidden; box-shadow: none !important;
  text-decoration: none !important; transition: border-color .15s, transform .15s; }
#ht_brw #ggrid > a:hover, #ht_brw #ggrid > a:focus { border-color: var(--cw) !important; transform: translateY(-2px); }
#ht_brw #ggrid > a img { width: 100% !important; height: auto !important; max-height: none !important; max-width: none !important; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  margin: 0 !important; border-radius: 0 !important; background: #0b0b0b; box-shadow: none !important; }
#ht_brw #ggrid > a span { display: block !important; padding: 9px 12px 11px !important; margin: 0 !important; color: #e8edf1 !important; background: none !important;
  font: 800 14px/1.25 Nunito, "Segoe UI", system-ui, sans-serif !important; text-align: left !important; white-space: normal !important;
  word-break: break-word; overflow: hidden; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; border: 0 !important; }
#ht_brw #ggrid > a::before { display: none !important; }
#ht_brw #ggrid > a.sel, #ht_brw #ggrid > a.play { border-color: var(--cw) !important; background: #0d3a4c !important; }
/* folder + CAD-file tiles get our own icons instead of copyparty's coloured placeholders */
#ht_brw #ggrid > a.dir img, #ht_brw #ggrid > a.cw-dir img, #ht_brw #ggrid > a.cw-doc img { display: none !important; }
#ht_brw #ggrid > a.cw-dir::after { content: ""; order: -1; display: block; width: 100%; aspect-ratio: 4 / 3;
  background: #0b0b0b no-repeat center / 46%; }
#ht_brw #ggrid > a.cw-dir::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300A3DA' fill-opacity='.18' stroke='%2300A3DA' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5H9l2 2.5h8.5A1.5 1.5 0 0 1 21 9v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E"); }
#ht_brw #ggrid > a.cw-dir span { color: #fff !important; }
#ht_brw #files { display: none !important; }
.cw-empty { color: #9aa3aa; font-weight: 700; padding: 30px 4px; }

/* search results */
#cwres { display: none; margin: 14px 0 0; }
#ht_brw #ggrid > a > span:not(.cw-ext) { margin-top: auto !important; }
#cwres.on { display: block; }
#cwres h3 { margin: 18px 0 10px; font: 900 15px Nunito, "Segoe UI", system-ui, sans-serif; color: var(--cw); text-transform: uppercase; letter-spacing: 1.5px; }
#cwres .cw-hits { display: grid; gap: 8px; }
#cwres .cw-hit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #121212; border: 1px solid #222; border-radius: 14px;
  color: #e8edf1; text-decoration: none; font-weight: 800; min-width: 0; }
#cwres .cw-hit:hover { border-color: var(--cw); }
#cwres .cw-hit i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(0,163,218,.15); display: grid; place-items: center;
  color: var(--cw); font-style: normal; font-size: 11px; font-weight: 900; }
#cwres .cw-hit b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
#cwres .cw-hit small { flex: 0 1 auto; color: #7b858c; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
#cwres .cw-msg { color: #9aa3aa; font-weight: 700; padding: 10px 2px; }
body.cw-searching #gfiles, body.cw-searching #path { display: none !important; }
@media (max-width: 640px) { #cwres .cw-hit small { display: none; } }

/* image viewer (lightbox) */
#bbox-overlay { background: rgba(0,0,0,.96) !important; }
#bbox-overlay .bbox-btn, #bbox-overlay button { color: #fff !important; background: rgba(0,163,218,.85) !important; border: 0 !important; border-radius: 999px !important; text-shadow: none !important; }
#bbox-overlay figcaption, #bbox-overlay #bbox-halp { background: rgba(0,0,0,.7) !important; color: #e8edf1 !important; }
#toast { --a: var(--cw); }
#toast .tok { background: #0d3a4c !important; border-color: var(--cw) !important; color: #fff !important; }

/* ---------- login page ---------- */
#ht_spl body { display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; margin: 0; padding: 0; }
#ht_spl #wrap { box-sizing: border-box; width: min(calc(100vw - 32px), 420px) !important; margin: clamp(40px, 14vh, 140px) auto 40px !important; padding: 30px 26px 28px !important; background: #121212;
  border: 1px solid #242424; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; max-width: none !important; }
#ht_spl #wrap::before { content: ""; display: block; height: 70px; margin: 0 auto 12px; background: url("/.cw/logo.png") no-repeat center / contain; }
#ht_spl #a, #ht_spl #v, #ht_spl #b, #ht_spl #cc, #ht_spl .agr, #ht_spl #wrap > ul, #ht_spl #w, #ht_spl #wb, #ht_spl #f, #ht_spl #f + ul,
#ht_spl #repl, #ht_spl #pb, #ht_spl #x, #ht_spl #m, #ht_spl #un, #ht_spl #c { display: none !important; }
#ht_spl h1 { font: 900 0/0 a !important; color: transparent !important; border: 0 !important; margin: 0 0 18px !important; }
#ht_spl h1#l::after { content: "Staff login"; display: block; font: 900 26px Nunito, "Segoe UI", system-ui, sans-serif; color: #fff; }
#ht_spl h1#l + div::before { content: "Castlewater CAD designs"; display: block; color: #9aa3aa; font-weight: 700; margin: -10px 0 18px; }
#ht_spl #lf { display: flex; flex-direction: column; gap: 12px; }
#ht_spl #lp, #ht_spl #lu { width: 100% !important; box-sizing: border-box; height: 52px; border-radius: 16px !important; border: 1px solid #2a2a2a !important;
  background: #0a0a0a !important; color: #fff !important; font: 700 18px Nunito, "Segoe UI", system-ui, sans-serif !important; padding: 0 16px !important;
  margin: 0 !important; box-shadow: none !important; outline: none; text-align: center; }
#ht_spl #lp:focus { border-color: var(--cw) !important; box-shadow: 0 0 0 3px rgba(0,163,218,.25) !important; }
#ht_spl #ls { width: 100%; height: 52px; border-radius: 16px !important; border: 0 !important; background: var(--cw) !important; color: #000 !important;
  font: 900 18px Nunito, "Segoe UI", system-ui, sans-serif !important; cursor: pointer; margin: 0 !important; box-shadow: none !important; text-transform: none; }
#ht_spl #ls:active { background: var(--cw-l) !important; }
#ht_spl #lm, #ht_spl #msg { color: #ff6b6b; font-weight: 700; }
#ht_spl #msg { background: none !important; border: 0 !important; margin: 0 0 12px !important; padding: 0 !important; }

#ht_brw #ggrid > a.cw-doc span.cw-ext { order: -1; display: flex !important; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 3;
  width: 100%; box-sizing: border-box; padding: 0 0 9% !important; -webkit-line-clamp: unset; color: var(--cw) !important; text-align: center !important;
  font: 900 15px Nunito, "Segoe UI", system-ui, sans-serif !important; letter-spacing: 1px; background: #0b0b0b no-repeat center 36% / 34%
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3aa' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l5 5v13H6z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") !important; }
#bbox-overlay { z-index: 1000 !important; }
#bbox-overlay { background: #000 !important; }
#bbox-help, #bbox-anim, #bbox-readdir, #bbox-tsel, #bbzoom, #bbox-vmode, #bbox-gopage { display: none !important; }
#bbox-btns { top: calc(env(safe-area-inset-top) + 10px) !important; right: 10px !important; left: auto !important; display: flex; gap: 8px; }
#bbox-btns button { min-width: 44px; height: 44px; font-size: 20px !important; padding: 0 12px !important; margin: 0 !important; }
#bbox-close { background: var(--cw) !important; color: #000 !important; font-weight: 900 !important; }
#bbox-btns #bbox-rotl, #bbox-btns #bbox-rotr, #bbox-btns #bbox-full { background: rgba(255,255,255,.14) !important; color: #fff !important; }
#bbox-overlay figcaption { color: #e8edf1 !important; font: 700 14px Nunito, "Segoe UI", system-ui, sans-serif !important; }
#bbox-btns button, #bbox-overlay .bbox-btn { box-shadow: none !important; border: 0 !important; outline: none !important; text-shadow: none !important; }
#bbox-btns button:focus-visible, #bbox-overlay .bbox-btn:focus-visible { outline: 2px solid var(--cw-l) !important; outline-offset: 2px; }

/* ---------- v2 (23 Nov): no yellow anywhere, blue CSS spinner ---------- */
*:focus, *:focus+label, #pctl *:focus, .btn:focus,
html.y *:focus, html.y *:focus+label, html.y .btn:focus { outline: 2px solid var(--cw) !important; outline-offset: 1px; box-shadow: none !important; }
input[type="text"]:focus, input:not([type]):focus, input[type="search"]:focus, input[type="password"]:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(0,163,218,.25) !important; border-color: var(--cw) !important; outline: none !important; }
#ht_brw #ggrid > a:focus, #ht_brw #ggrid > a:focus-visible { outline: none !important; border-color: var(--cw) !important; box-shadow: 0 0 0 2px var(--cw) !important; }
#ht_brw #ggrid > a.sel, #ht_brw #ggrid > a[tt].sel, #ht_brw #ggrid > a.play, #ht_brw #ggrid > a[tt].play,
#ht_brw #ggrid > a.sel:hover, #ht_brw #ggrid > a.sel:focus {
  background: #0d3a4c !important; border-color: var(--cw) !important; border-top-color: var(--cw) !important; box-shadow: 0 0 0 2px var(--cw) !important; color: #fff !important; }
#toast.warn { background: #0d3a4c !important; border-color: var(--cw) !important; }
#toast.warn #toastc { background: var(--cw) !important; }
#toast.warn #toastt { background: #5cc8ee !important; }
.dumb_loader_thing { font-size: 0 !important; line-height: 0 !important; color: transparent !important; width: 34px !important; height: 34px !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; top: 14px !important; box-sizing: border-box; border-radius: 50%;
  border: 4px solid rgba(0,163,218,.25) !important; border-top-color: #00A3DA !important; overflow: hidden; }
#dlt_t { left: 50% !important; top: 40vh !important; margin-left: -17px !important; }
#dlt_f { right: 14px !important; top: 88px !important; }

/* Back to showroom button (top bar, every page) */
#cwbar .cw-home { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; text-decoration: none !important;
  background: #00A3DA; color: #000 !important; font-weight: 800; font-size: 15px; line-height: 1; height: 44px; box-sizing: border-box; padding: 0 16px 0 10px; border-radius: 999px; border: 2px solid #00A3DA; }
#cwbar .cw-home:hover { background: #5cc8ee; border-color: #5cc8ee; }
#cwbar .cw-home:focus, #cwbar .cw-home:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
#cwbar .cw-home svg { display: block; }
@media (max-width: 640px) { #cwbar .cw-home { height: 40px; padding: 0 12px 0 8px; font-size: 14px; } }

/* date filter bar */
#cwflt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px clamp(12px, 3vw, 28px) 14px; }
#cwflt .cw-seg { display: inline-flex; background: #121212; border: 1px solid #2a2a2a; border-radius: 999px; padding: 3px; gap: 2px; }
#cwflt .cw-seg button { appearance: none; border: 0; background: transparent; color: #c9d1d6; font: 800 14px Nunito, "Segoe UI", system-ui, sans-serif;
  padding: 0 14px; height: 36px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
#cwflt .cw-seg button:hover { color: #00A3DA; }
#cwflt .cw-seg button.on { background: #00A3DA; color: #000; }
#cwflt .cw-seg button:focus-visible { outline: 2px solid #fff !important; outline-offset: 1px; }
#cwflt .cw-fmsg { color: #9aa3aa; font-weight: 700; font-size: 14px; }
#cwflt .cw-fmsg b { color: #00A3DA; }
#cwflt .cw-fmsg a { color: #00A3DA; font-weight: 800; }
#ht_brw #ggrid > a.cw-hide { display: none !important; }
@media (max-width: 640px) {
  #cwflt { gap: 8px; margin: 2px 10px 12px; }
  #cwflt .cw-seg { flex: 1 1 100%; }
  #cwflt .cw-seg button { flex: 1 1 0; padding: 0 6px; height: 34px; font-size: 13px; }
}

#cwbar .cw-home em { font-style: normal; }
#cwflt button:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
#cwflt + #cwres { margin: 0 clamp(12px, 3vw, 28px) 24px; }
@media (max-width: 640px) {
  #cwbar .cw-home em { display: none; }
  #cwbar .cw-home span::first-letter { text-transform: uppercase; }
  #cwbar .cw-home { height: 38px; padding: 0 12px 0 8px; font-size: 14px; }
  #cwbar .cw-brand { gap: 8px; }
  #cwflt + #cwres { margin: 0 10px 20px; }
  #cwres .cw-hit.cw-rec small { display: block !important; }
}
@media (max-width: 380px) { #cwbar .cw-brand b { display: none; } }
@media (max-width: 640px) {
  #cwres .cw-hit.cw-rec { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 2px; }
  #cwres .cw-hit.cw-rec i { grid-row: 1 / span 2; }
  #cwres .cw-hit.cw-rec small { max-width: none; font-size: 13px; }
}
@media (max-width: 480px) { #cwbar .cw-brand b { display: none; } }

/* live filter-as-you-type */
#ht_brw #ggrid > a.cw-qhide { display: none !important; }
#cwqmsg { display: none; margin: -4px clamp(12px, 3vw, 28px) 12px; color: #9aa3aa; font-weight: 700; font-size: 14px; }
#cwqmsg.on { display: block; }
#cwqmsg b { color: #00A3DA; }
#cwqmsg a.cw-deep { display: inline-block; margin-left: 8px; padding: 7px 14px; border-radius: 999px; background: #00A3DA; color: #000; font-weight: 800; text-decoration: none; }
#cwqmsg a.cw-deep.cw-deep-quiet { background: transparent; color: #00A3DA; border: 1px solid #0d3a4c; padding: 6px 13px; }
#cwqmsg a.cw-deep:hover { background: #5cc8ee; color: #000; }
body.cw-searching #cwqmsg { display: none !important; }
#cwres .cw-deephead { margin-bottom: 10px; }
#cwres .cw-deephead a { color: #00A3DA; font-weight: 800; }
@media (max-width: 640px) { #cwqmsg { margin: -2px 10px 10px; } #cwqmsg a.cw-deep { margin: 6px 0 0; } }

/* v17: filter buttons removed */
#cwflt { display: none !important; }
#cwqmsg { margin-top: 0; }

/* v18: on-screen PIN pad on the login page (touch TV keyboard doesn't pop up inside the kiosk iframe) */
#ht_spl #cwpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 2px; }
#ht_spl #cwpad button { height: 64px; border-radius: 16px; border: 1px solid #2a2a2a; background: #1b1b1b; color: #fff;
  font: 900 26px Nunito, "Segoe UI", system-ui, sans-serif; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#ht_spl #cwpad button.fn { font-size: 17px; color: #9aa3aa; }
#ht_spl #cwpad button:active { background: var(--cw); border-color: var(--cw); color: #000; }
/* v18: on-screen keyboard for the folder search (kiosk iframe overlay) */
#cwosk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #0b0b0b; border-top: 2px solid var(--cw);
  padding: 10px max(10px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)); display: none; user-select: none; }
#cwosk.open { display: block; }
#cwosk .r { display: flex; justify-content: center; gap: 8px; margin: 0 auto 8px; max-width: 1100px; }
#cwosk button { flex: 1 1 0; max-width: 96px; height: clamp(48px, 6.4vh, 76px); border-radius: 12px; border: 1px solid #2a2a2a; background: #1b1b1b;
  color: #fff; font: 800 clamp(18px, 2.2vw, 28px) Nunito, "Segoe UI", system-ui, sans-serif; touch-action: manipulation; cursor: pointer; padding: 0; }
#cwosk button.w { max-width: 420px; flex-grow: 5; }
#cwosk button.fn { color: #9aa3aa; font-size: clamp(15px, 1.6vw, 20px); flex-grow: 1.6; max-width: 170px; }
#cwosk button.ok { background: var(--cw); border-color: var(--cw); color: #000; }
#cwosk button:active { background: var(--cw); color: #000; }
body.cw-osk-on #wrap { padding-bottom: 340px; }
