/* ==========================================================================
   dotvoid — base: design tokens, reset, shared Aero controls
   ========================================================================== */

:root {
  /* glass tint — updated live by Personalization */
  --glass-rgb: 116, 184, 252;
  --glass-alpha: 0.42;
  --glass-solid: 168, 196, 226;

  --taskbar-h: 40px;
  --icon-size: 48px;
  --cell-w: 84px;

  --font: "Segoe UI", "Open Sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-size: 13px;
  --text: #1b1b1b;
  --text-soft: #5a6472;
  --link: #1e5ebe;
  --link-hover: #3c8be8;
  --panel: #ffffff;
  --panel-alt: #f4f7fb;
  --line: #d6dde8;

  /* Vista list selection */
  --hover-border: #b8d6fb;
  --hover-bg: linear-gradient(to bottom, #fafbfd, #ebf3fd);
  --sel-border: #84acdd;
  --sel-bg: linear-gradient(to bottom, #e3eefc, #c4dcfb);
  --sel-hover-border: #7da2ce;
  --sel-hover-bg: linear-gradient(to bottom, #dcebfc, #b9d4f7);

  --menu-hl-border: #a8d8eb;
  --menu-hl-bg: linear-gradient(to bottom, #f2f9fd, #d9eef8 50%, #c9e6f6 50%, #dbf0fa);

  --shadow-lg: 0 14px 44px rgba(0, 10, 30, .45), 0 3px 10px rgba(0, 10, 30, .3);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0e3f85;
  color: var(--text);
  font: var(--font-size)/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body { position: fixed; inset: 0; }

img,
svg { display: block; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: default; }

[hidden] { display: none !important; }

.noscript {
  position: fixed; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 18px; padding: 24px; text-align: center;
  background: #0b3a7c;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid rgba(60, 160, 255, .85); outline-offset: 1px; }

a { color: var(--link); text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--link-hover); text-decoration: underline; } }

/* --------------------------------------------------------------- scrollbars */
.aero-scroll { scrollbar-width: thin; scrollbar-color: #b9c3cf #f2f4f7; }
.aero-scroll::-webkit-scrollbar { width: 16px; height: 16px; background: linear-gradient(to right, #eef0f3, #f8f9fa); }
.aero-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent; background-clip: padding-box; border-radius: 8px;
  background-color: #c4ccd6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.aero-scroll::-webkit-scrollbar-thumb:hover { background-color: #a4b5c9; }
.aero-scroll::-webkit-scrollbar-corner { background: #f2f4f7; }

/* ------------------------------------------------------------- push buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 76px; height: 26px; padding: 0 12px;
  border: 1px solid #707070; border-radius: 3px;
  background: linear-gradient(to bottom, #f2f2f2 0%, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85);
  color: #111; white-space: nowrap; user-select: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.btn:focus-visible { outline: none; border-color: #3c7fb1; box-shadow: inset 0 0 0 1px #48d8fb, 0 0 0 1px rgba(60, 127, 177, .25); }
@media (hover: hover) {
  .btn:hover {
    border-color: #3c7fb1;
    background: linear-gradient(to bottom, #eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%);
  }
}
.btn:active {
  border-color: #2c628b;
  background: linear-gradient(to bottom, #e5f4fc 0%, #c4e5f6 49%, #98d1ef 50%, #68b3db 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.btn.primary { border-color: #3c7fb1; box-shadow: inset 0 0 0 1px #48d8fb; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn .glyph { width: 14px; height: 14px; }

/* glossy colour button (store / welcome) */
.btn-glossy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 16px; border-radius: 15px;
  border: 1px solid #1d6a2c;
  background: linear-gradient(to bottom, #9fe58a 0%, #5fc34a 48%, #3ea42c 52%, #64c94d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 3px rgba(0, 0, 0, .25);
  color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  white-space: nowrap; user-select: none; transition: filter .15s, transform .1s;
}
.btn-glossy.blue {
  border-color: #134a8a;
  background: linear-gradient(to bottom, #8fd0ff 0%, #3b9bf0 48%, #1d79d6 52%, #45a6f5 100%);
}
.btn-glossy.gray {
  border-color: #6c7480; color: #20262e; text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  background: linear-gradient(to bottom, #ffffff 0%, #eef1f5 48%, #dde2e9 52%, #eef1f5 100%);
}
@media (hover: hover) { .btn-glossy:hover { filter: brightness(1.08) saturate(1.1); } }
.btn-glossy:active { transform: translateY(1px); filter: brightness(.95); }
.btn-glossy:disabled { filter: grayscale(.8); opacity: .6; pointer-events: none; }

/* ----------------------------------------------------------- text controls */
.input {
  height: 24px; padding: 2px 6px;
  border: 1px solid #abadb3; border-top-color: #8e8f8f; border-radius: 2px;
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
@media (hover: hover) { .input:hover { border-color: #5794bf; border-top-color: #3d7bad; } }
.input:focus { border-color: #3d7bad; box-shadow: 0 0 0 2px rgba(80, 160, 230, .18); }

select.input { padding-right: 18px; }

.search-box {
  position: relative; display: flex; align-items: center;
}
.search-box .input { width: 100%; padding-right: 26px; font-style: italic; }
.search-box .input:not(:placeholder-shown),
.search-box .input:focus { font-style: normal; }
.search-box svg {
  position: absolute; right: 7px; width: 14px; height: 14px; color: #3a5c86; pointer-events: none;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] { accent-color: #2f86d6; }

label.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; user-select: none; }
label.check input { margin: 0; width: 15px; height: 15px; }

/* Vista green progress bar */
.progress {
  position: relative; height: 16px; border: 1px solid #8a9aa6; border-radius: 3px; overflow: hidden;
  background: linear-gradient(to bottom, #f3f3f3, #dcdcdc 50%, #cfcfcf 50%, #e6e6e6);
}
.progress > span {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(to bottom, #c9f6a0, #48d42c 50%, #2fb51b 50%, #6ce649);
  transition: width .2s linear;
}
.progress > span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  width: 40%; animation: progress-shine 1.4s linear infinite;
}
@keyframes progress-shine { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.progress.marquee > span { width: 30%; animation: marquee 1.2s ease-in-out infinite; }
@keyframes marquee { from { left: -30%; } to { left: 100%; } }

/* small inline glyph helper */
.glyph { width: 16px; height: 16px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
